From 44f477e965e57ba619d494a7122c69a636906666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E4=B8=96=E5=86=9B?= <30999793+AllForNothing@users.noreply.github.com> Date: Fri, 29 Oct 2021 18:44:20 +0800 Subject: [PATCH] Change ng-swagger-gen to a stable version (#15903) Signed-off-by: AllForNothing --- src/portal/PACKAGE.md | 3 ++- src/portal/package-lock.json | 18 +++++++++--------- src/portal/package.json | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/portal/PACKAGE.md b/src/portal/PACKAGE.md index 7e6fcd93c1d..c68f1c1644a 100644 --- a/src/portal/PACKAGE.md +++ b/src/portal/PACKAGE.md @@ -111,7 +111,8 @@ "express": "^4.17.1", // To generate models and Angular services based on swagger.yaml. Required - "ng-swagger-gen": "^2.3.1", + // do not upgrade it + "ng-swagger-gen": "^1.8.1", // For e2e test. Required "protractor": "^7.0.0", diff --git a/src/portal/package-lock.json b/src/portal/package-lock.json index 53e5822942a..5a8d3c6761b 100644 --- a/src/portal/package-lock.json +++ b/src/portal/package-lock.json @@ -52,7 +52,7 @@ "karma-coverage": "^2.0.3", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", - "ng-swagger-gen": "^2.3.1", + "ng-swagger-gen": "^1.8.1", "protractor": "^7.0.0", "typescript": "~4.3.5" } @@ -11202,13 +11202,13 @@ "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" }, "node_modules/ng-swagger-gen": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/ng-swagger-gen/-/ng-swagger-gen-2.3.1.tgz", - "integrity": "sha512-PJ3nSP0Mpl2vaL7qdkFCF0UDkudk0M2FKNSNMw0le7sbCE4Jft7+s7cMFMDiuxxHEZ7q+w5BDbuUX2ItDDtecA==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/ng-swagger-gen/-/ng-swagger-gen-1.8.1.tgz", + "integrity": "sha512-JyvRMgyNk+mx1hS9HdZjN26DiXAZTPQjb5/++es+GFygH4HgmS8m7HM2TSttIS2RUcHw9Enu+wd3AkAU1B+bAg==", "dev": true, "dependencies": { "argparse": "^1.0.10", - "global-agent": "^2.1.12", + "global-agent": "^2.0.1", "global-tunnel-ng": "^2.7.1", "json-schema-ref-parser": "^5.1.3", "mustache": "^2.3.2", @@ -28072,13 +28072,13 @@ "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" }, "ng-swagger-gen": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/ng-swagger-gen/-/ng-swagger-gen-2.3.1.tgz", - "integrity": "sha512-PJ3nSP0Mpl2vaL7qdkFCF0UDkudk0M2FKNSNMw0le7sbCE4Jft7+s7cMFMDiuxxHEZ7q+w5BDbuUX2ItDDtecA==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/ng-swagger-gen/-/ng-swagger-gen-1.8.1.tgz", + "integrity": "sha512-JyvRMgyNk+mx1hS9HdZjN26DiXAZTPQjb5/++es+GFygH4HgmS8m7HM2TSttIS2RUcHw9Enu+wd3AkAU1B+bAg==", "dev": true, "requires": { "argparse": "^1.0.10", - "global-agent": "^2.1.12", + "global-agent": "^2.0.1", "global-tunnel-ng": "^2.7.1", "json-schema-ref-parser": "^5.1.3", "mustache": "^2.3.2", diff --git a/src/portal/package.json b/src/portal/package.json index 5ff424b8b52..c9626a59d7f 100644 --- a/src/portal/package.json +++ b/src/portal/package.json @@ -67,7 +67,7 @@ "karma-coverage": "^2.0.3", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", - "ng-swagger-gen": "^2.3.1", + "ng-swagger-gen": "^1.8.1", "protractor": "^7.0.0", "eslint": "8.1.0", "typescript": "~4.3.5"