Skip to content

Commit

Permalink
Merge pull request #184 from d-velop/develop
Browse files Browse the repository at this point in the history
Update axios
  • Loading branch information
LenKlose authored Mar 11, 2024
2 parents fae1afb + 96ff334 commit 538ffe6
Show file tree
Hide file tree
Showing 13 changed files with 238 additions and 185 deletions.
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

0 comments on commit 538ffe6

Please sign in to comment.