Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update axios #183

Merged
merged 7 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"transform": {
"^.+\\.ts$": "ts-jest"
},
"transformIgnorePatterns": [
"/node_modules/(?!(axios)/)"
],
"testEnvironment": "node",
"collectCoverage": true,
"collectCoverageFrom": [
Expand Down
382 changes: 216 additions & 166 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"license": "license-checker --production --onlyAllow Apache-2.0;MIT;ISC;BSD-2-Clause;BSD-3-Clause"
},
"dependencies": {
"@dvelop-sdk/core": "^2.1.2"
"@dvelop-sdk/core": "^2.1.3"
}
}
}
4 changes: 2 additions & 2 deletions packages/business-objects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"license": "license-checker --production --onlyAllow Apache-2.0;MIT;ISC;BSD-2-Clause;BSD-3-Clause"
},
"dependencies": {
"@dvelop-sdk/core": "^2.1.2"
"@dvelop-sdk/core": "^2.1.3"
}
}
}
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@dvelop-sdk/core",
"description": "This package contains shared functionality for the @dvelop-sdk packages.",
"version": "2.1.2",
"version": "2.1.3",
"license": "Apache-2.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -20,12 +20,12 @@
"access": "public"
},
"dependencies": {
"axios": "^0.23.0",
"axios": "^0.28.0",
"lodash.merge": "^4.6.2",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/lodash.merge": "^4.6.7",
"@types/uuid": "^8.3.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/dms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"license": "license-checker --production --onlyAllow Apache-2.0;MIT;ISC;BSD-2-Clause;BSD-3-Clause"
},
"dependencies": {
"@dvelop-sdk/core": "^2.1.2"
"@dvelop-sdk/core": "^2.1.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface CreateDmsObjectParams {
*/
export function _createDmsObjectDefaultTransformFunction(response: HttpResponse<any>, _: DvelopContext, params: CreateDmsObjectParams): GetDmsObjectParams {

const location: string = response.headers["location"];
const location: string = response.headers["location"] || "";
const matches: RegExpExecArray | null = /^.*\/(.*?)(\?|$)/.exec(location);

if (matches) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface StoreFileTemporarilyParams {
* @category DmsObject
*/
export function _storeFileTemporarilyDefaultTransformFunction(response: HttpResponse, _: DvelopContext, __: StoreFileTemporarilyParams): string {
return response.headers["location"];
return response.headers["location"] || "";
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/express-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"dependencies": {
"@dvelop-sdk/app-router": "^3.2.1",
"@dvelop-sdk/core": "^2.1.2",
"@dvelop-sdk/core": "^2.1.3",
"@dvelop-sdk/identityprovider": "^4.0.2",
"@types/express": "^4.17.13"
}
}
}
4 changes: 2 additions & 2 deletions packages/identityprovider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"license": "license-checker --production --onlyAllow Apache-2.0;MIT;ISC;BSD-2-Clause;BSD-3-Clause"
},
"dependencies": {
"@dvelop-sdk/core": "^2.1.2"
"@dvelop-sdk/core": "^2.1.3"
}
}
}
4 changes: 2 additions & 2 deletions packages/logging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"access": "public"
},
"dependencies": {
"@dvelop-sdk/core": "^2.1.2"
"@dvelop-sdk/core": "^2.1.3"
}
}
}
4 changes: 2 additions & 2 deletions packages/task/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"access": "public"
},
"dependencies": {
"@dvelop-sdk/core": "^2.1.2"
"@dvelop-sdk/core": "^2.1.3"
}
}
}
2 changes: 1 addition & 1 deletion packages/task/src/tasks/create-task/create-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface CreateTaskParams {
* @category Task
*/
export function _createTaskDefaultTransformFunction(response: HttpResponse, _: DvelopContext, __: CreateTaskParams): string {
return response.headers["location"];
return response.headers["location"] || "";
}

/**
Expand Down
Loading