File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 "dependencies" : {
1515 "@material-ui/core" : " ^4.12.3" ,
1616 "@material-ui/lab" : " ^4.0.0-alpha.60" ,
17- "axios" : " ^0.23 .0" ,
17+ "axios" : " ^0.24 .0" ,
1818 "env-cmd" : " ^10.1.0" ,
1919 "formik" : " ^2.2.9" ,
2020 "iframe-resizer" : " ^4.3.2" ,
2929 "devDependencies" : {
3030 "@cypress/code-coverage" : " ^3.9.11" ,
3131 "@cypress/instrument-cra" : " ^1.4.0" ,
32- "@types/react" : " ^17.0.32 " ,
32+ "@types/react" : " ^17.0.33 " ,
3333 "@types/react-dom" : " ^17.0.10" ,
3434 "@types/styled-components" : " ^5.1.15" ,
3535 "@types/yup" : " ^0.29.13" ,
3636 "axios-mock-adapter" : " ^1.20.0" ,
37- "cypress" : " ^8.6 .0" ,
37+ "cypress" : " ^8.7 .0" ,
3838 "cypress-file-upload" : " ^5.0.8" ,
3939 "eslint-config-prettier" : " ^8.3.0" ,
4040 "eslint-plugin-cypress" : " ^2.12.1" ,
4444 "pretty-quick" : " ^3.1.1" ,
4545 "start-server-and-test" : " ^1.14.0" ,
4646 "typescript" : " ^4.4.4" ,
47- "@types/react-router-dom" : " ^5.3.1 "
47+ "@types/react-router-dom" : " ^5.3.2 "
4848 },
4949 "browserslist" : {
5050 "production" : [
Original file line number Diff line number Diff line change @@ -7,21 +7,21 @@ import axios from 'axios';
77setAxiosDefaults ( ) ;
88
99export const getMetadata = ( recordId : string ) : Promise < AxiosResponse < MetaData > > => {
10- return axios . request < MetaData > ( {
10+ return axios . request ( {
1111 url : encodeURI ( `${ API_PATHS . metadata } ?${ QueryParameters . documentId } =${ recordId } ` ) ,
1212 method : 'GET' ,
1313 } ) ;
1414} ;
1515
1616export const getLibraryAccess = ( libuser : string ) : Promise < AxiosResponse < LibraryAccess > > => {
17- return axios . request < LibraryAccess > ( {
17+ return axios . request ( {
1818 url : encodeURI ( `${ API_PATHS . libcheck } ?${ QueryParameters . libuser } =${ libuser } ` ) ,
1919 method : 'GET' ,
2020 } ) ;
2121} ;
2222
2323export const postNCIPRequest = ( request : NCIPRequest ) : Promise < AxiosResponse < NCIPResponse > > => {
24- return axios . request < NCIPResponse > ( {
24+ return axios . request ( {
2525 url : encodeURI ( `${ API_PATHS . ncip } ` ) ,
2626 method : 'POST' ,
2727 data : request ,
@@ -33,7 +33,7 @@ export const getSRU = (
3333 institution : string ,
3434 libraryCode : string
3535) : Promise < AxiosResponse < SRUResponse > > => {
36- return axios . request < SRUResponse > ( {
36+ return axios . request ( {
3737 url : encodeURI (
3838 `${ API_PATHS . sru } ?${ QueryParameters . mms_id } =${ mmsId } &${ QueryParameters . institution } =${ institution } &${ QueryParameters . libraryCode } =${ libraryCode } &recordSchema=isohold`
3939 ) ,
You can’t perform that action at this time.
0 commit comments