Skip to content

Commit 1988ce9

Browse files
committed
Updates to the dependencies & fix TS problems (new package version 1.0.1)
1 parent defa8bd commit 1988ce9

File tree

9 files changed

+9456
-23430
lines changed

9 files changed

+9456
-23430
lines changed

package-lock.json

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

package.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@essquare/typescript-openapi-codegen",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
55
"author": "Ferdi Koomen",
66
"homepage": "https://github.com/essquare/typescript-openapi-codegen",
@@ -60,65 +60,65 @@
6060
},
6161
"dependencies": {
6262
"camelcase": "^6.3.0",
63-
"commander": "^9.3.0",
63+
"commander": "^11.0.0",
6464
"fs-extra": "^11.1.1",
6565
"handlebars": "^4.7.7",
6666
"json-schema-ref-parser": "^9.0.9"
6767
},
6868
"devDependencies": {
69-
"@angular-devkit/build-angular": "14.0.1",
70-
"@angular/animations": "14.0.1",
71-
"@angular/cli": "14.0.1",
72-
"@angular/common": "14.0.1",
73-
"@angular/compiler": "14.0.1",
74-
"@angular/compiler-cli": "14.0.1",
75-
"@angular/core": "14.0.1",
76-
"@angular/forms": "14.0.1",
77-
"@angular/platform-browser": "14.0.1",
78-
"@angular/platform-browser-dynamic": "14.0.1",
79-
"@angular/router": "14.0.1",
80-
"@babel/cli": "7.21.0",
81-
"@babel/core": "7.21.4",
82-
"@babel/preset-env": "7.21.4",
83-
"@babel/preset-typescript": "7.21.4",
84-
"@rollup/plugin-commonjs": "24.1.0",
85-
"@rollup/plugin-node-resolve": "15.0.2",
86-
"@rollup/plugin-terser": "0.4.1",
87-
"@rollup/plugin-typescript": "11.1.0",
69+
"@angular-devkit/build-angular": "16.1.5",
70+
"@angular/animations": "16.1.6",
71+
"@angular/cli": "16.1.5",
72+
"@angular/common": "16.1.6",
73+
"@angular/compiler": "16.1.6",
74+
"@angular/compiler-cli": "16.1.6",
75+
"@angular/core": "16.1.6",
76+
"@angular/forms": "16.1.6",
77+
"@angular/platform-browser": "16.1.6",
78+
"@angular/platform-browser-dynamic": "16.1.6",
79+
"@angular/router": "16.1.6",
80+
"@babel/cli": "7.22.9",
81+
"@babel/core": "7.22.9",
82+
"@babel/preset-env": "7.22.9",
83+
"@babel/preset-typescript": "7.22.5",
84+
"@rollup/plugin-commonjs": "25.0.3",
85+
"@rollup/plugin-node-resolve": "15.1.0",
86+
"@rollup/plugin-terser": "0.4.3",
87+
"@rollup/plugin-typescript": "11.1.2",
8888
"@types/cross-spawn": "6.0.2",
8989
"@types/express": "4.17.17",
9090
"@types/fs-extra": "^11.0.1",
9191
"@types/glob": "8.1.0",
92-
"@types/jest": "29.5.1",
93-
"@types/node": "18.16.1",
94-
"@types/node-fetch": "2.6.3",
92+
"@types/jest": "29.5.3",
93+
"@types/node": "20.4.4",
94+
"@types/node-fetch": "2.6.4",
9595
"@types/qs": "6.9.7",
96-
"@typescript-eslint/eslint-plugin": "5.59.1",
97-
"@typescript-eslint/parser": "5.59.1",
96+
"@typescript-eslint/eslint-plugin": "6.2.0",
97+
"@typescript-eslint/parser": "6.2.0",
9898
"abort-controller": "3.0.0",
99-
"axios": "^1.3.6",
100-
"bson": "^5.2.0",
99+
"axios": "^1.4.0",
100+
"bson": "^5.4.0",
101101
"codecov": "3.8.3",
102102
"cross-spawn": "7.0.3",
103-
"eslint": "8.39.0",
103+
"eslint": "8.45.0",
104104
"eslint-config-prettier": "8.8.0",
105-
"eslint-plugin-prettier": "4.2.1",
105+
"eslint-plugin-prettier": "5.0.0",
106106
"eslint-plugin-simple-import-sort": "10.0.0",
107107
"express": "4.18.2",
108108
"form-data": "4.0.0",
109-
"glob": "10.2.2",
110-
"jest": "29.5.0",
111-
"jest-cli": "29.5.0",
112-
"prettier": "2.8.8",
113-
"puppeteer": "19.11.1",
114-
"qs": "6.11.1",
115-
"rimraf": "5.0.0",
116-
"rollup": "3.21.0",
117-
"rxjs": "7.5.6",
109+
"glob": "10.3.3",
110+
"jest": "29.6.1",
111+
"jest-cli": "29.6.1",
112+
"prettier": "3.0.0",
113+
"puppeteer": "20.9.0",
114+
"qs": "6.11.2",
115+
"rimraf": "5.0.1",
116+
"rollup": "3.26.3",
117+
"rxjs": "7.8.1",
118118
"ts-node": "10.9.1",
119-
"tslib": "2.5.0",
120-
"typescript": "4.7.4",
121-
"zone.js": "0.11.8"
119+
"tslib": "2.6.1",
120+
"typescript": "5.1.6",
121+
"zone.js": "0.13.1"
122122
},
123123
"resolutions": {
124124
"node-fetch": "2.6.7"

src/templates/core/axios/sendRequest.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const sendRequest = async <T>(
3838
}
3939
return textData;
4040
});
41-
if (axios.defaults.transformResponse instanceof Array<AxiosResponseTransformer>) {
41+
if (axios.defaults.transformResponse instanceof Array) {
4242
transformers.push(...axios.defaults.transformResponse);
4343
} else if (axios.defaults.transformResponse !== undefined) {
4444
transformers.push(axios.defaults.transformResponse);

test/e2e/client.babel.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('client.babel', () => {
9999
} catch (e) {
100100
error = (e as Error).message;
101101
}
102-
expect(error).toContain('CancelError: Request aborted');
102+
expect(error).toContain('Request aborted');
103103
});
104104

105105
it('should throw known error (500)', async () => {

test/e2e/client.fetch.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('client.fetch', () => {
9797
} catch (e) {
9898
error = (e as Error).message;
9999
}
100-
expect(error).toContain('CancelError: Request aborted');
100+
expect(error).toContain('Request aborted');
101101
});
102102

103103
it('should throw known error (500)', async () => {

test/e2e/client.xhr.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('client.xhr', () => {
9797
} catch (e) {
9898
error = (e as Error).message;
9999
}
100-
expect(error).toContain('CancelError: Request aborted');
100+
expect(error).toContain('Request aborted');
101101
});
102102

103103
it('should throw known error (500)', async () => {

test/e2e/v3.babel.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('v3.babel', () => {
9292
} catch (e) {
9393
error = (e as Error).message;
9494
}
95-
expect(error).toContain('CancelError: Request aborted');
95+
expect(error).toContain('Request aborted');
9696
});
9797

9898
it('should throw known error (500)', async () => {

test/e2e/v3.fetch.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('v3.fetch', () => {
9090
} catch (e) {
9191
error = (e as Error).message;
9292
}
93-
expect(error).toContain('CancelError: Request aborted');
93+
expect(error).toContain('Request aborted');
9494
});
9595

9696
it('should throw known error (500)', async () => {

test/e2e/v3.xhr.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('v3.xhr', () => {
9090
} catch (e) {
9191
error = (e as Error).message;
9292
}
93-
expect(error).toContain('CancelError: Request aborted');
93+
expect(error).toContain('Request aborted');
9494
});
9595

9696
it('should throw known error (500)', async () => {

0 commit comments

Comments
 (0)