Skip to content

Commit 6ad0852

Browse files
committed
Merge branch 'master' of https://github.com/ferdikoomen/openapi-typescript-codegen into features
2 parents 75c9d80 + 9d7c22b commit 6ad0852

28 files changed

+939
-883
lines changed

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openapi-typescript-codegen",
3-
"version": "0.4.10",
3+
"version": "0.4.11",
44
"description": "NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification.",
55
"author": "Ferdi Koomen",
66
"homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen",
@@ -57,8 +57,8 @@
5757
"codecov": "codecov --token=66c30c23-8954-4892-bef9-fbaed0a2e42b"
5858
},
5959
"dependencies": {
60-
"camelcase": "5.3.1",
61-
"commander": "6.0.0",
60+
"camelcase": "6.0.0",
61+
"commander": "6.1.0",
6262
"handlebars": "4.7.6",
6363
"js-yaml": "3.14.0",
6464
"mkdirp": "1.0.4",
@@ -67,31 +67,31 @@
6767
"stringify-object": "^3.3.0"
6868
},
6969
"devDependencies": {
70-
"@babel/core": "7.11.1",
71-
"@babel/preset-env": "7.11.0",
70+
"@babel/core": "7.11.6",
71+
"@babel/preset-env": "7.11.5",
7272
"@babel/preset-typescript": "7.10.4",
73-
"@rollup/plugin-commonjs": "14.0.0",
74-
"@rollup/plugin-node-resolve": "8.4.0",
75-
"@types/jest": "26.0.9",
73+
"@rollup/plugin-commonjs": "15.0.0",
74+
"@rollup/plugin-node-resolve": "9.0.0",
75+
"@types/jest": "26.0.13",
7676
"@types/js-yaml": "3.12.5",
7777
"@types/mkdirp": "1.0.1",
78-
"@types/node": "14.0.27",
78+
"@types/node": "14.6.4",
7979
"@types/rimraf": "3.0.0",
80-
"@typescript-eslint/eslint-plugin": "3.8.0",
81-
"@typescript-eslint/parser": "3.8.0",
80+
"@typescript-eslint/eslint-plugin": "4.0.0",
81+
"@typescript-eslint/parser": "3.10.1",
8282
"codecov": "3.7.2",
83-
"eslint": "7.6.0",
83+
"eslint": "7.8.1",
8484
"eslint-config-prettier": "6.11.0",
8585
"eslint-plugin-prettier": "3.1.4",
8686
"eslint-plugin-simple-import-sort": "5.0.3",
8787
"glob": "7.1.6",
88-
"jest": "26.2.2",
89-
"jest-cli": "26.2.2",
90-
"prettier": "2.0.5",
91-
"rollup": "2.23.1",
92-
"rollup-plugin-terser": "7.0.0",
88+
"jest": "26.4.2",
89+
"jest-cli": "26.4.2",
90+
"prettier": "2.1.1",
91+
"rollup": "2.26.10",
92+
"rollup-plugin-terser": "7.0.2",
9393
"rollup-plugin-typescript2": "0.27.2",
94-
"typescript": "3.9.7"
94+
"typescript": "4.0.2"
9595
},
9696
"peerDependencies": {
9797
"node-fetch": "*"

src/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ describe('index', () => {
2424
it('downloads and parses v2 without issues', async () => {
2525
await OpenAPI.generate({
2626
input: 'https://raw.githubusercontent.com/ferdikoomen/openapi-typescript-codegen/master/test/mock/v2/spec.json',
27-
output: './test/result/v22/',
27+
output: './test/result/v2-downloaded/',
2828
write: false,
2929
});
3030
});
3131

3232
it('downloads and parses v3 without issues', async () => {
3333
await OpenAPI.generate({
3434
input: 'https://raw.githubusercontent.com/ferdikoomen/openapi-typescript-codegen/master/test/mock/v3/spec.json',
35-
output: './test/result/v33/',
35+
output: './test/result/v3-downloaded/',
3636
write: false,
3737
});
3838
});

src/templates/core/ApiError.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* istanbul ignore file */
22
/* tslint:disable */
33
/* eslint-disable */
4-
/* prettier-ignore */
54

65
import { isSuccess } from './isSuccess';
76
import { Result } from './Result';

src/templates/core/OpenAPI.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* istanbul ignore file */
22
/* tslint:disable */
33
/* eslint-disable */
4-
/* prettier-ignore */
54

65
interface Config {
76
BASE: string;

src/templates/core/RequestOptions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* istanbul ignore file */
22
/* tslint:disable */
33
/* eslint-disable */
4-
/* prettier-ignore */
54

65
export interface RequestOptions {
76
method: 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch';

src/templates/core/Result.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* istanbul ignore file */
22
/* tslint:disable */
33
/* eslint-disable */
4-
/* prettier-ignore */
54

65
export interface Result {
76
url: string;

src/templates/core/getFormData.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* istanbul ignore file */
22
/* tslint:disable */
33
/* eslint-disable */
4-
/* prettier-ignore */
54

65
/**
76
* Get FormData from object. This method is needed to upload

src/templates/core/getQueryString.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* istanbul ignore file */
22
/* tslint:disable */
33
/* eslint-disable */
4-
/* prettier-ignore */
54

65
/**
76
* Get query string from query parameters object. This method also

src/templates/core/isSuccess.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* istanbul ignore file */
22
/* tslint:disable */
33
/* eslint-disable */
4-
/* prettier-ignore */
54

65
/**
76
* Check success response code.

src/templates/core/request.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* istanbul ignore file */
22
/* tslint:disable */
33
/* eslint-disable */
4-
/* prettier-ignore */
54

65
import { getFormData } from './getFormData';
76
import { getQueryString } from './getQueryString';

0 commit comments

Comments
 (0)