mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
Merge branch 'master' into bugfix/issue-2052
This commit is contained in:
commit
99695b68a8
4045
package-lock.json
generated
4045
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
60
package.json
60
package.json
@ -60,27 +60,27 @@
|
||||
"docker": "docker build -t eeelenbaas/openapi-typescript-codegen ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@apidevtools/json-schema-ref-parser": "^11.1.0",
|
||||
"@apidevtools/json-schema-ref-parser": "^11.5.4",
|
||||
"camelcase": "^6.3.0",
|
||||
"commander": "^11.1.0",
|
||||
"commander": "^12.0.0",
|
||||
"fs-extra": "^11.2.0",
|
||||
"handlebars": "^4.7.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "17.0.9",
|
||||
"@angular/animations": "17.0.8",
|
||||
"@angular/cli": "17.0.9",
|
||||
"@angular/common": "17.0.8",
|
||||
"@angular/compiler": "17.0.8",
|
||||
"@angular/compiler-cli": "17.0.8",
|
||||
"@angular/core": "17.0.8",
|
||||
"@angular/forms": "17.0.8",
|
||||
"@angular/platform-browser": "17.0.8",
|
||||
"@angular/platform-browser-dynamic": "17.0.8",
|
||||
"@angular/router": "17.0.8",
|
||||
"@angular-devkit/build-angular": "17.3.0",
|
||||
"@angular/animations": "17.3.0",
|
||||
"@angular/cli": "17.3.0",
|
||||
"@angular/common": "17.3.0",
|
||||
"@angular/compiler": "17.3.0",
|
||||
"@angular/compiler-cli": "17.3.0",
|
||||
"@angular/core": "17.3.0",
|
||||
"@angular/forms": "17.3.0",
|
||||
"@angular/platform-browser": "17.3.0",
|
||||
"@angular/platform-browser-dynamic": "17.3.0",
|
||||
"@angular/router": "17.3.0",
|
||||
"@babel/cli": "7.23.9",
|
||||
"@babel/core": "7.23.9",
|
||||
"@babel/preset-env": "7.23.9",
|
||||
"@babel/core": "7.24.0",
|
||||
"@babel/preset-env": "7.24.0",
|
||||
"@babel/preset-typescript": "7.23.3",
|
||||
"@rollup/plugin-commonjs": "25.0.7",
|
||||
"@rollup/plugin-node-resolve": "15.2.3",
|
||||
@ -91,38 +91,38 @@
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/glob": "8.1.0",
|
||||
"@types/jest": "29.5.12",
|
||||
"@types/node": "20.11.17",
|
||||
"@types/node-fetch": "2.6.10",
|
||||
"@types/qs": "6.9.11",
|
||||
"@typescript-eslint/eslint-plugin": "6.21.0",
|
||||
"@typescript-eslint/parser": "6.21.0",
|
||||
"@types/node": "20.11.28",
|
||||
"@types/node-fetch": "2.6.11",
|
||||
"@types/qs": "6.9.12",
|
||||
"@typescript-eslint/eslint-plugin": "7.2.0",
|
||||
"@typescript-eslint/parser": "7.2.0",
|
||||
"abort-controller": "3.0.0",
|
||||
"axios": "1.6.7",
|
||||
"axios": "1.6.8",
|
||||
"codecov": "3.8.3",
|
||||
"cross-spawn": "7.0.3",
|
||||
"eslint": "8.56.0",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"eslint-plugin-prettier": "5.1.3",
|
||||
"eslint-plugin-simple-import-sort": "10.0.0",
|
||||
"express": "4.18.2",
|
||||
"eslint-plugin-simple-import-sort": "12.0.0",
|
||||
"express": "4.18.3",
|
||||
"form-data": "4.0.0",
|
||||
"glob": "10.3.10",
|
||||
"jest": "29.7.0",
|
||||
"jest-cli": "29.7.0",
|
||||
"node-fetch": "2.7.0",
|
||||
"prettier": "3.2.5",
|
||||
"puppeteer": "21.11.0",
|
||||
"qs": "6.11.2",
|
||||
"puppeteer": "22.5.0",
|
||||
"qs": "6.12.0",
|
||||
"rimraf": "5.0.5",
|
||||
"rollup": "4.7.0",
|
||||
"rollup": "4.13.0",
|
||||
"rxjs": "7.8.1",
|
||||
"ts-node": "10.9.2",
|
||||
"tslib": "2.6.2",
|
||||
"typescript": "5.2.2",
|
||||
"zone.js": "0.14.3"
|
||||
"typescript": "5.4.2",
|
||||
"zone.js": "0.14.4"
|
||||
},
|
||||
"overrides": {
|
||||
"node-fetch": "2.7.0",
|
||||
"rollup": "4.7.0"
|
||||
"rollup": "4.13.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -83,9 +83,9 @@ export class CancelablePromise<T> implements Promise<T> {
|
||||
});
|
||||
}
|
||||
|
||||
get [Symbol.toStringTag]() {
|
||||
return "Cancellable Promise";
|
||||
}
|
||||
get [Symbol.toStringTag]() {
|
||||
return "Cancellable Promise";
|
||||
}
|
||||
|
||||
public then<TResult1 = T, TResult2 = never>(
|
||||
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
|
||||
|
||||
@ -26,7 +26,7 @@ export const getHeaders = (config: OpenAPIConfig, options: ApiRequestOptions): O
|
||||
headers['Authorization'] = `Basic ${credentials}`;
|
||||
}
|
||||
|
||||
if (options.body) {
|
||||
if (options.body !== undefined) {
|
||||
if (options.mediaType) {
|
||||
headers['Content-Type'] = options.mediaType;
|
||||
} else if (isBlob(options.body)) {
|
||||
|
||||
@ -29,7 +29,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
|
||||
headers['Authorization'] = `Basic ${credentials}`;
|
||||
}
|
||||
|
||||
if (options.body) {
|
||||
if (options.body !== undefined) {
|
||||
if (options.mediaType) {
|
||||
headers['Content-Type'] = options.mediaType;
|
||||
} else if (isBlob(options.body)) {
|
||||
|
||||
@ -16,6 +16,7 @@ export const sendRequest = async <T>(
|
||||
data: body ?? formData,
|
||||
method: options.method,
|
||||
withCredentials: config.WITH_CREDENTIALS,
|
||||
withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
|
||||
cancelToken: source.token,
|
||||
};
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
|
||||
headers['Authorization'] = `Basic ${credentials}`;
|
||||
}
|
||||
|
||||
if (options.body) {
|
||||
if (options.body !== undefined) {
|
||||
if (options.mediaType) {
|
||||
headers['Content-Type'] = options.mediaType;
|
||||
} else if (isBlob(options.body)) {
|
||||
|
||||
@ -26,7 +26,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
|
||||
headers['Authorization'] = `Basic ${credentials}`;
|
||||
}
|
||||
|
||||
if (options.body) {
|
||||
if (options.body !== undefined) {
|
||||
if (options.mediaType) {
|
||||
headers['Content-Type'] = options.mediaType;
|
||||
} else if (isBlob(options.body)) {
|
||||
|
||||
@ -26,7 +26,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
|
||||
headers['Authorization'] = `Basic ${credentials}`;
|
||||
}
|
||||
|
||||
if (options.body) {
|
||||
if (options.body !== undefined) {
|
||||
if (options.mediaType) {
|
||||
headers['Content-Type'] = options.mediaType;
|
||||
} else if (isBlob(options.body)) {
|
||||
|
||||
@ -7,6 +7,12 @@ export const createAngularProject = (dir: string, name: string) => {
|
||||
mkdirSync(cwd, {
|
||||
recursive: true,
|
||||
});
|
||||
|
||||
sync('ng', ['analytics', 'off', '--global'], {
|
||||
cwd: resolvePath(cwd),
|
||||
stdio: 'inherit',
|
||||
});
|
||||
|
||||
sync(
|
||||
'ng',
|
||||
[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user