Skip to content

Commit 2bdec7f

Browse files
authored
Merge pull request #64 from BIBSYSDEV/dependabot/npm_and_yarn/develop/axios-0.24.0
Bump axios from 0.23.0 to 0.24.0
2 parents 188c213 + ebe5b01 commit 2bdec7f

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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",

src/api/api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ import axios from 'axios';
77
setAxiosDefaults();
88

99
export 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

1616
export 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

2323
export 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
),

0 commit comments

Comments
 (0)