@serverless-devs/s 0.0.44 → 0.1.4-18cdd23b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -21
- package/OWNERS +33 -0
- package/_config.yml +1 -0
- package/bin/s +1 -1
- package/lib/daemon/lib.js +327 -0
- package/lib/daemon/report.js +50 -0
- package/lib/daemon/update-cli.js +20 -0
- package/lib/daemon/update-component.js +21 -0
- package/lib/daemon/update-templates.js +19 -0
- package/lib/index.js +1732 -0
- package/package.json +73 -61
- package/readme.md +127 -0
- package/.eslintrc +0 -75
- package/README.md +0 -65
- package/bin/s-config +0 -2
- package/bin/s-config-add +0 -2
- package/bin/s-config-delete +0 -2
- package/bin/s-config-get +0 -3
- package/bin/s-config-update +0 -3
- package/bin/s-deploy +0 -2
- package/bin/s-gui +0 -2
- package/bin/s-init +0 -2
- package/bin/s-platform +0 -2
- package/bin/s-platform-delete +0 -2
- package/bin/s-platform-init +0 -2
- package/bin/s-platform-login +0 -2
- package/bin/s-platform-publish +0 -2
- package/bin/s-remove +0 -2
- package/bin/s-search +0 -2
- package/bin/s-set +0 -2
- package/bin/s-set-analysis +0 -2
- package/bin/s-set-language +0 -2
- package/bin/s-set-output-color +0 -2
- package/compile.tsconfig.json +0 -12
- package/configs/base.tsconfig.json +0 -25
- package/lib/command/command-manager.d.ts +0 -12
- package/lib/command/command-manager.d.ts.map +0 -1
- package/lib/command/command-manager.js +0 -144
- package/lib/command/command-manager.js.map +0 -1
- package/lib/command/index.d.ts +0 -2
- package/lib/command/index.d.ts.map +0 -1
- package/lib/command/index.js +0 -41
- package/lib/command/index.js.map +0 -1
- package/lib/component/hook.d.ts +0 -17
- package/lib/component/hook.d.ts.map +0 -1
- package/lib/component/hook.js +0 -201
- package/lib/component/hook.js.map +0 -1
- package/lib/component/index.d.ts +0 -53
- package/lib/component/index.d.ts.map +0 -1
- package/lib/component/index.js +0 -577
- package/lib/component/index.js.map +0 -1
- package/lib/config/add/add-manager.d.ts +0 -23
- package/lib/config/add/add-manager.d.ts.map +0 -1
- package/lib/config/add/add-manager.js +0 -282
- package/lib/config/add/add-manager.js.map +0 -1
- package/lib/config/add/index.d.ts +0 -2
- package/lib/config/add/index.d.ts.map +0 -1
- package/lib/config/add/index.js +0 -77
- package/lib/config/add/index.js.map +0 -1
- package/lib/config/common/common.d.ts +0 -7
- package/lib/config/common/common.d.ts.map +0 -1
- package/lib/config/common/common.js +0 -175
- package/lib/config/common/common.js.map +0 -1
- package/lib/config/delete/delete-manager.d.ts +0 -11
- package/lib/config/delete/delete-manager.d.ts.map +0 -1
- package/lib/config/delete/delete-manager.js +0 -133
- package/lib/config/delete/delete-manager.js.map +0 -1
- package/lib/config/delete/index.d.ts +0 -2
- package/lib/config/delete/index.d.ts.map +0 -1
- package/lib/config/delete/index.js +0 -77
- package/lib/config/delete/index.js.map +0 -1
- package/lib/config/get/get-manager.d.ts +0 -14
- package/lib/config/get/get-manager.d.ts.map +0 -1
- package/lib/config/get/get-manager.js +0 -205
- package/lib/config/get/get-manager.js.map +0 -1
- package/lib/config/get/index.d.ts +0 -2
- package/lib/config/get/index.d.ts.map +0 -1
- package/lib/config/get/index.js +0 -86
- package/lib/config/get/index.js.map +0 -1
- package/lib/config/index.d.ts +0 -2
- package/lib/config/index.d.ts.map +0 -1
- package/lib/config/index.js +0 -15
- package/lib/config/index.js.map +0 -1
- package/lib/config/update/index.d.ts +0 -2
- package/lib/config/update/index.d.ts.map +0 -1
- package/lib/config/update/index.js +0 -83
- package/lib/config/update/index.js.map +0 -1
- package/lib/config/update/update-manager.d.ts +0 -23
- package/lib/config/update/update-manager.d.ts.map +0 -1
- package/lib/config/update/update-manager.js +0 -208
- package/lib/config/update/update-manager.js.map +0 -1
- package/lib/constants/static-variable.d.ts +0 -12
- package/lib/constants/static-variable.d.ts.map +0 -1
- package/lib/constants/static-variable.js +0 -15
- package/lib/constants/static-variable.js.map +0 -1
- package/lib/entity.d.ts +0 -11
- package/lib/entity.d.ts.map +0 -1
- package/lib/entity.js +0 -3
- package/lib/entity.js.map +0 -1
- package/lib/error/command-error.d.ts +0 -5
- package/lib/error/command-error.d.ts.map +0 -1
- package/lib/error/command-error.js +0 -26
- package/lib/error/command-error.js.map +0 -1
- package/lib/error/config-delete-error.d.ts +0 -5
- package/lib/error/config-delete-error.d.ts.map +0 -1
- package/lib/error/config-delete-error.js +0 -26
- package/lib/error/config-delete-error.js.map +0 -1
- package/lib/error/config-error.d.ts +0 -5
- package/lib/error/config-error.d.ts.map +0 -1
- package/lib/error/config-error.js +0 -26
- package/lib/error/config-error.js.map +0 -1
- package/lib/error/config-get-error.d.ts +0 -5
- package/lib/error/config-get-error.d.ts.map +0 -1
- package/lib/error/config-get-error.js +0 -26
- package/lib/error/config-get-error.js.map +0 -1
- package/lib/error/config-update-error.d.ts +0 -5
- package/lib/error/config-update-error.d.ts.map +0 -1
- package/lib/error/config-update-error.js +0 -26
- package/lib/error/config-update-error.js.map +0 -1
- package/lib/error/init-error.d.ts +0 -5
- package/lib/error/init-error.d.ts.map +0 -1
- package/lib/error/init-error.js +0 -26
- package/lib/error/init-error.js.map +0 -1
- package/lib/error/login-error.d.ts +0 -5
- package/lib/error/login-error.d.ts.map +0 -1
- package/lib/error/login-error.js +0 -26
- package/lib/error/login-error.js.map +0 -1
- package/lib/error/platform-delete-error.d.ts +0 -5
- package/lib/error/platform-delete-error.d.ts.map +0 -1
- package/lib/error/platform-delete-error.js +0 -26
- package/lib/error/platform-delete-error.js.map +0 -1
- package/lib/error/platform-init-error.d.ts +0 -5
- package/lib/error/platform-init-error.d.ts.map +0 -1
- package/lib/error/platform-init-error.js +0 -26
- package/lib/error/platform-init-error.js.map +0 -1
- package/lib/error/platform-publish-error.d.ts +0 -5
- package/lib/error/platform-publish-error.d.ts.map +0 -1
- package/lib/error/platform-publish-error.js +0 -26
- package/lib/error/platform-publish-error.js.map +0 -1
- package/lib/error/search-error.d.ts +0 -5
- package/lib/error/search-error.d.ts.map +0 -1
- package/lib/error/search-error.js +0 -26
- package/lib/error/search-error.js.map +0 -1
- package/lib/error/serverless-error.d.ts +0 -4
- package/lib/error/serverless-error.d.ts.map +0 -1
- package/lib/error/serverless-error.js +0 -20
- package/lib/error/serverless-error.js.map +0 -1
- package/lib/error/set-analysis-error.d.ts +0 -5
- package/lib/error/set-analysis-error.d.ts.map +0 -1
- package/lib/error/set-analysis-error.js +0 -26
- package/lib/error/set-analysis-error.js.map +0 -1
- package/lib/error/set-language-error.d.ts +0 -5
- package/lib/error/set-language-error.d.ts.map +0 -1
- package/lib/error/set-language-error.js +0 -26
- package/lib/error/set-language-error.js.map +0 -1
- package/lib/gui/gui-service.d.ts +0 -11
- package/lib/gui/gui-service.d.ts.map +0 -1
- package/lib/gui/gui-service.js +0 -276
- package/lib/gui/gui-service.js.map +0 -1
- package/lib/gui/index.d.ts +0 -2
- package/lib/gui/index.d.ts.map +0 -1
- package/lib/gui/index.js +0 -67
- package/lib/gui/index.js.map +0 -1
- package/lib/init/init-manager.d.ts +0 -9
- package/lib/init/init-manager.d.ts.map +0 -1
- package/lib/init/init-manager.js +0 -171
- package/lib/init/init-manager.js.map +0 -1
- package/lib/init/init-message.d.ts +0 -6
- package/lib/init/init-message.d.ts.map +0 -1
- package/lib/init/init-message.js +0 -9
- package/lib/init/init-message.js.map +0 -1
- package/lib/init/init.d.ts +0 -2
- package/lib/init/init.d.ts.map +0 -1
- package/lib/init/init.js +0 -87
- package/lib/init/init.js.map +0 -1
- package/lib/platform/delete/index.d.ts +0 -2
- package/lib/platform/delete/index.d.ts.map +0 -1
- package/lib/platform/delete/index.js +0 -89
- package/lib/platform/delete/index.js.map +0 -1
- package/lib/platform/delete/platform-delete-manager.d.ts +0 -4
- package/lib/platform/delete/platform-delete-manager.d.ts.map +0 -1
- package/lib/platform/delete/platform-delete-manager.js +0 -100
- package/lib/platform/delete/platform-delete-manager.js.map +0 -1
- package/lib/platform/index.d.ts +0 -2
- package/lib/platform/index.d.ts.map +0 -1
- package/lib/platform/index.js +0 -25
- package/lib/platform/index.js.map +0 -1
- package/lib/platform/init/index.d.ts +0 -2
- package/lib/platform/init/index.d.ts.map +0 -1
- package/lib/platform/init/index.js +0 -70
- package/lib/platform/init/index.js.map +0 -1
- package/lib/platform/init/platform-init-manager.d.ts +0 -4
- package/lib/platform/init/platform-init-manager.d.ts.map +0 -1
- package/lib/platform/init/platform-init-manager.js +0 -24
- package/lib/platform/init/platform-init-manager.js.map +0 -1
- package/lib/platform/login/index.d.ts +0 -2
- package/lib/platform/login/index.d.ts.map +0 -1
- package/lib/platform/login/index.js +0 -68
- package/lib/platform/login/index.js.map +0 -1
- package/lib/platform/login/login-manager.d.ts +0 -15
- package/lib/platform/login/login-manager.d.ts.map +0 -1
- package/lib/platform/login/login-manager.js +0 -176
- package/lib/platform/login/login-manager.js.map +0 -1
- package/lib/platform/publish/index.d.ts +0 -2
- package/lib/platform/publish/index.d.ts.map +0 -1
- package/lib/platform/publish/index.js +0 -93
- package/lib/platform/publish/index.js.map +0 -1
- package/lib/platform/publish/platform-publish-manager.d.ts +0 -5
- package/lib/platform/publish/platform-publish-manager.d.ts.map +0 -1
- package/lib/platform/publish/platform-publish-manager.js +0 -115
- package/lib/platform/publish/platform-publish-manager.js.map +0 -1
- package/lib/plugin/index.d.ts +0 -20
- package/lib/plugin/index.d.ts.map +0 -1
- package/lib/plugin/index.js +0 -175
- package/lib/plugin/index.js.map +0 -1
- package/lib/s.d.ts +0 -2
- package/lib/s.d.ts.map +0 -1
- package/lib/s.js +0 -134
- package/lib/s.js.map +0 -1
- package/lib/search/search.d.ts +0 -2
- package/lib/search/search.d.ts.map +0 -1
- package/lib/search/search.js +0 -233
- package/lib/search/search.js.map +0 -1
- package/lib/set/analysis/index.d.ts +0 -2
- package/lib/set/analysis/index.d.ts.map +0 -1
- package/lib/set/analysis/index.js +0 -84
- package/lib/set/analysis/index.js.map +0 -1
- package/lib/set/index.d.ts +0 -2
- package/lib/set/index.d.ts.map +0 -1
- package/lib/set/index.js +0 -16
- package/lib/set/index.js.map +0 -1
- package/lib/set/language/index.d.ts +0 -2
- package/lib/set/language/index.d.ts.map +0 -1
- package/lib/set/language/index.js +0 -73
- package/lib/set/language/index.js.map +0 -1
- package/lib/set/output-color/index.d.ts +0 -2
- package/lib/set/output-color/index.d.ts.map +0 -1
- package/lib/set/output-color/index.js +0 -87
- package/lib/set/output-color/index.js.map +0 -1
- package/lib/utils/analysis.d.ts +0 -12
- package/lib/utils/analysis.d.ts.map +0 -1
- package/lib/utils/analysis.js +0 -42
- package/lib/utils/analysis.js.map +0 -1
- package/lib/utils/check-version.d.ts +0 -13
- package/lib/utils/check-version.d.ts.map +0 -1
- package/lib/utils/check-version.js +0 -241
- package/lib/utils/check-version.js.map +0 -1
- package/lib/utils/command.d.ts +0 -14
- package/lib/utils/command.d.ts.map +0 -1
- package/lib/utils/command.js +0 -251
- package/lib/utils/command.js.map +0 -1
- package/lib/utils/common.d.ts +0 -4
- package/lib/utils/common.d.ts.map +0 -1
- package/lib/utils/common.js +0 -50
- package/lib/utils/common.js.map +0 -1
- package/lib/utils/download-manager.d.ts +0 -23
- package/lib/utils/download-manager.d.ts.map +0 -1
- package/lib/utils/download-manager.js +0 -302
- package/lib/utils/download-manager.js.map +0 -1
- package/lib/utils/handler-set-config.d.ts +0 -14
- package/lib/utils/handler-set-config.d.ts.map +0 -1
- package/lib/utils/handler-set-config.js +0 -122
- package/lib/utils/handler-set-config.js.map +0 -1
- package/lib/utils/i18n.d.ts +0 -3
- package/lib/utils/i18n.d.ts.map +0 -1
- package/lib/utils/i18n.js +0 -21
- package/lib/utils/i18n.js.map +0 -1
- package/lib/utils/locales/en.json +0 -9
- package/lib/utils/locales/zh.json +0 -203
- package/lib/utils/logger.d.ts +0 -18
- package/lib/utils/logger.d.ts.map +0 -1
- package/lib/utils/logger.js +0 -196
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/package-type.d.ts +0 -6
- package/lib/utils/package-type.d.ts.map +0 -1
- package/lib/utils/package-type.js +0 -10
- package/lib/utils/package-type.js.map +0 -1
- package/lib/utils/parse.d.ts +0 -26
- package/lib/utils/parse.d.ts.map +0 -1
- package/lib/utils/parse.js +0 -229
- package/lib/utils/parse.js.map +0 -1
- package/lib/utils/repo-template-entity.d.ts +0 -12
- package/lib/utils/repo-template-entity.d.ts.map +0 -1
- package/lib/utils/repo-template-entity.js +0 -3
- package/lib/utils/repo-template-entity.js.map +0 -1
- package/lib/utils/start-service.d.ts +0 -22
- package/lib/utils/start-service.d.ts.map +0 -1
- package/lib/utils/start-service.js +0 -97
- package/lib/utils/start-service.js.map +0 -1
- package/lib/utils/storage.d.ts +0 -3
- package/lib/utils/storage.d.ts.map +0 -1
- package/lib/utils/storage.js +0 -23
- package/lib/utils/storage.js.map +0 -1
- package/lib/utils/url-parser.d.ts +0 -8
- package/lib/utils/url-parser.d.ts.map +0 -1
- package/lib/utils/url-parser.js +0 -58
- package/lib/utils/url-parser.js.map +0 -1
- package/scripts/tests/deploy/parse.ts +0 -0
- package/scripts/tests/download-manager-test.ts +0 -135
- package/scripts/tests/init-manager-test.ts +0 -232
- package/scripts/tests/url-parser-test.ts +0 -44
- package/src/command/command-manager.ts +0 -83
- package/src/command/index.ts +0 -42
- package/src/component/hook.ts +0 -88
- package/src/component/index.ts +0 -433
- package/src/config/add/add-manager.ts +0 -207
- package/src/config/add/index.ts +0 -45
- package/src/config/common/common.ts +0 -186
- package/src/config/delete/delete-manager.ts +0 -51
- package/src/config/delete/index.ts +0 -38
- package/src/config/get/get-manager.ts +0 -148
- package/src/config/get/index.ts +0 -49
- package/src/config/index.ts +0 -13
- package/src/config/update/index.ts +0 -46
- package/src/config/update/update-manager.ts +0 -120
- package/src/constants/static-variable.ts +0 -12
- package/src/entity.ts +0 -10
- package/src/error/command-error.ts +0 -7
- package/src/error/config-delete-error.ts +0 -7
- package/src/error/config-error.ts +0 -7
- package/src/error/config-get-error.ts +0 -7
- package/src/error/config-update-error.ts +0 -7
- package/src/error/init-error.ts +0 -7
- package/src/error/login-error.ts +0 -7
- package/src/error/platform-delete-error.ts +0 -7
- package/src/error/platform-init-error.ts +0 -7
- package/src/error/platform-publish-error.ts +0 -7
- package/src/error/search-error.ts +0 -7
- package/src/error/serverless-error.ts +0 -17
- package/src/error/set-analysis-error.ts +0 -7
- package/src/error/set-language-error.ts +0 -7
- package/src/gui/gui-service.ts +0 -183
- package/src/gui/index.ts +0 -26
- package/src/init/init-manager.ts +0 -104
- package/src/init/init-message.ts +0 -8
- package/src/init/init.ts +0 -56
- package/src/platform/delete/index.ts +0 -46
- package/src/platform/delete/platform-delete-manager.ts +0 -46
- package/src/platform/index.ts +0 -26
- package/src/platform/init/index.ts +0 -33
- package/src/platform/init/platform-init-manager.ts +0 -17
- package/src/platform/login/index.ts +0 -25
- package/src/platform/login/login-manager.ts +0 -121
- package/src/platform/publish/index.ts +0 -52
- package/src/platform/publish/platform-publish-manager.ts +0 -69
- package/src/plugin/index.ts +0 -96
- package/src/s.ts +0 -83
- package/src/search/search.ts +0 -127
- package/src/set/analysis/index.ts +0 -45
- package/src/set/index.ts +0 -19
- package/src/set/language/index.ts +0 -39
- package/src/set/output-color/index.ts +0 -49
- package/src/utils/analysis.ts +0 -36
- package/src/utils/check-version.ts +0 -139
- package/src/utils/command.ts +0 -123
- package/src/utils/common.ts +0 -47
- package/src/utils/download-manager.ts +0 -197
- package/src/utils/handler-set-config.ts +0 -83
- package/src/utils/i18n.ts +0 -21
- package/src/utils/locales/en.json +0 -9
- package/src/utils/locales/zh.json +0 -228
- package/src/utils/logger.ts +0 -84
- package/src/utils/package-type.ts +0 -3
- package/src/utils/parse.ts +0 -176
- package/src/utils/repo-template-entity.ts +0 -14
- package/src/utils/start-service.ts +0 -64
- package/src/utils/storage.ts +0 -20
- package/src/utils/url-parser.ts +0 -60
- package/templates/application/common/publish.yaml +0 -16
- package/templates/application/common/readme.md +0 -99
- package/templates/application/common/src/index.js +0 -13
- package/templates/application/common/src/template.yaml +0 -16
- package/templates/component/common/publish.yaml +0 -24
- package/templates/component/common/readme.md +0 -386
- package/templates/component/common/src/index.js +0 -18
- package/templates/component/common/src/package.json +0 -7
- package/templates/plugin/common/publish.yaml +0 -9
- package/templates/plugin/common/readme.md +0 -128
- package/templates/plugin/common/src/index.js +0 -9
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var program = require("commander");
|
|
40
|
-
var common_1 = require("../common/common");
|
|
41
|
-
var i18n_1 = require("../../utils/i18n");
|
|
42
|
-
var update_manager_1 = require("./update-manager");
|
|
43
|
-
var config_update_error_1 = require("../../error/config-update-error");
|
|
44
|
-
var command_error_1 = require("../../error/command-error");
|
|
45
|
-
var wrongInput = 'Update failed: Please input right format. You can obtain the key information through: s config update -h';
|
|
46
|
-
var description = i18n_1.default.__('s config update help');
|
|
47
|
-
program
|
|
48
|
-
.name('s config update')
|
|
49
|
-
.usage('[options] [name]')
|
|
50
|
-
.helpOption('-h, --help', i18n_1.default.__('Display help for command'))
|
|
51
|
-
.option('-p, --provider [name]', i18n_1.default.__('The cloud service provider. [alibaba/aws/azure/baidu/google/huawei/tencent]'))
|
|
52
|
-
.option('-a , --alias-name [name]', i18n_1.default.__('Key pair alia, if the alias is not set, use default instead'))
|
|
53
|
-
.option('--AccountID [name]', i18n_1.default.__('Update AccountID'))
|
|
54
|
-
.option('--AccessKeyID [name]', i18n_1.default.__('Update AccessKeyID'))
|
|
55
|
-
.option('--AccessKeySecret [name]', i18n_1.default.__('Update AccessKeySecret'))
|
|
56
|
-
.option('--SecretID [name]', i18n_1.default.__('Update SecretID'))
|
|
57
|
-
.option('--SecretKey [name]', i18n_1.default.__('Update SecretKey'))
|
|
58
|
-
.option('--SecretAccessKey [name]', i18n_1.default.__('Update SecretAccessKey'))
|
|
59
|
-
.option('--KeyVault [name]', i18n_1.default.__('Update KeyVault'))
|
|
60
|
-
.option('--Secret [name]', i18n_1.default.__('Update Secret'))
|
|
61
|
-
.option('--PrivateKeyData [name]', i18n_1.default.__('Update PrivateKeyData'))
|
|
62
|
-
.description(description)
|
|
63
|
-
.parse(process.argv);
|
|
64
|
-
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
|
-
return __generator(this, function (_a) {
|
|
66
|
-
switch (_a.label) {
|
|
67
|
-
case 0:
|
|
68
|
-
if (program.args.length === 0 && (program.provider == undefined || program.aliasName == undefined)) {
|
|
69
|
-
program.help();
|
|
70
|
-
}
|
|
71
|
-
else if (program.args.length > 0) {
|
|
72
|
-
throw new config_update_error_1.ConfigUpdateError(wrongInput);
|
|
73
|
-
}
|
|
74
|
-
return [4 /*yield*/, (new update_manager_1.UpdateManager()).updateManager({ Provider: program.provider, AliasName: program.aliasName }, common_1.getInputData(program))];
|
|
75
|
-
case 1:
|
|
76
|
-
_a.sent();
|
|
77
|
-
return [2 /*return*/];
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}); })().catch(function (err) {
|
|
81
|
-
throw new command_error_1.CommandError(err.message);
|
|
82
|
-
});
|
|
83
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/update/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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K,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvB,CAAC;;;;gBACC,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,CAAC,SAAS,IAAI,SAAS,CAAC,EAAE;oBAClG,OAAO,CAAC,IAAI,EAAE,CAAC;iBAChB;qBAAM,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;oBAClC,MAAM,IAAI,uCAAiB,CAAC,UAAU,CAAC,CAAC;iBACzC;gBACD,qBAAM,CAAC,IAAI,8BAAa,EAAE,CAAC,CAAC,aAAa,CACvC,EAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAC,EAC1D,qBAAY,CAAC,OAAO,CAAC,CAAC,EAAA;;gBAFxB,SAEwB,CAAC;;;;KAC1B,CAAC,EAAE,CAAC,KAAK,CAAC,UAAC,GAAG;IACb,MAAM,IAAI,4BAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
interface ConfigMap {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
export declare class UpdateManager {
|
|
5
|
-
protected filePath: string;
|
|
6
|
-
protected promptList: Array<any>;
|
|
7
|
-
protected inputProviderAlias: string;
|
|
8
|
-
protected oldSecretID: ConfigMap;
|
|
9
|
-
protected inputSecretData: ConfigMap;
|
|
10
|
-
protected userInformation: ConfigMap;
|
|
11
|
-
protected context: Array<string>;
|
|
12
|
-
protected provider: string;
|
|
13
|
-
protected aliasName: string;
|
|
14
|
-
constructor();
|
|
15
|
-
updateManager(providerAlias: any, inputSecret: any): Promise<void>;
|
|
16
|
-
inputSecretZero(providerAlias: any): Promise<void>;
|
|
17
|
-
inputSecretNotZero(inputSecret: any): Promise<void>;
|
|
18
|
-
userInputCheck(inputSecret: any): Promise<void>;
|
|
19
|
-
writeFileWay(filePath: string, text: ConfigMap): Promise<void>;
|
|
20
|
-
output(): void;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=update-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-manager.d.ts","sourceRoot":"","sources":["../../../src/config/update/update-manager.ts"],"names":[],"mappings":"AAYA,UAAU,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CAAC;AAEzC,qBAAa,aAAa;IACxB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAM;IACtC,SAAS,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACrC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAM;IACtC,SAAS,CAAC,eAAe,EAAE,SAAS,CAAM;IAC1C,SAAS,CAAC,eAAe,EAAE,SAAS,CAAM;IAC1C,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;;IAMtB,aAAa,CAAC,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG;IAwBlD,eAAe,CAAC,aAAa,EAAE,GAAG;IAuBlC,kBAAkB,CAAC,WAAW,EAAE,GAAG;IAQnC,cAAc,CAAC,WAAW,EAAE,GAAG;IAgB/B,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAQpD,MAAM;CAWP"}
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.UpdateManager = void 0;
|
|
40
|
-
var common_1 = require("../../utils/common");
|
|
41
|
-
var path = require('path');
|
|
42
|
-
var os = require('os');
|
|
43
|
-
var inquirer = require('inquirer');
|
|
44
|
-
var fs = require('fs');
|
|
45
|
-
var yaml = require('js-yaml');
|
|
46
|
-
var logger_1 = require("../../utils/logger");
|
|
47
|
-
var config_update_error_1 = require("../../error/config-update-error");
|
|
48
|
-
var common_2 = require("../common/common");
|
|
49
|
-
var i18n_1 = require("../../utils/i18n");
|
|
50
|
-
var UpdateManager = /** @class */ (function () {
|
|
51
|
-
function UpdateManager() {
|
|
52
|
-
this.promptList = [];
|
|
53
|
-
this.oldSecretID = {};
|
|
54
|
-
this.inputSecretData = {};
|
|
55
|
-
this.userInformation = {};
|
|
56
|
-
// 获得当前用户目录
|
|
57
|
-
this.filePath = path.join(os.homedir(), '.s/access.yaml');
|
|
58
|
-
}
|
|
59
|
-
UpdateManager.prototype.updateManager = function (providerAlias, inputSecret) {
|
|
60
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
61
|
-
var hasProviderAlia;
|
|
62
|
-
return __generator(this, function (_a) {
|
|
63
|
-
switch (_a.label) {
|
|
64
|
-
case 0:
|
|
65
|
-
this.userInformation = yaml.safeLoad(fs.readFileSync(this.filePath, 'utf8'));
|
|
66
|
-
if (!this.userInformation) return [3 /*break*/, 7];
|
|
67
|
-
if (!(providerAlias['Provider'] && providerAlias['AliasName'])) return [3 /*break*/, 6];
|
|
68
|
-
this.provider = String(providerAlias['Provider']).toLocaleLowerCase();
|
|
69
|
-
this.aliasName = String(providerAlias['AliasName']).toLocaleLowerCase();
|
|
70
|
-
this.inputProviderAlias = this.provider + "." + (this.aliasName || 'default');
|
|
71
|
-
hasProviderAlia = Object.keys(this.userInformation).includes(this.inputProviderAlias);
|
|
72
|
-
if (!hasProviderAlia) return [3 /*break*/, 5];
|
|
73
|
-
if (!(Object.keys(inputSecret).length === 0)) return [3 /*break*/, 2];
|
|
74
|
-
return [4 /*yield*/, this.inputSecretZero(providerAlias)];
|
|
75
|
-
case 1:
|
|
76
|
-
_a.sent();
|
|
77
|
-
return [3 /*break*/, 4];
|
|
78
|
-
case 2: return [4 /*yield*/, this.inputSecretNotZero(inputSecret)];
|
|
79
|
-
case 3:
|
|
80
|
-
_a.sent();
|
|
81
|
-
_a.label = 4;
|
|
82
|
-
case 4: return [3 /*break*/, 6];
|
|
83
|
-
case 5: throw new config_update_error_1.ConfigUpdateError('The provider or alias information is not found. You can obtain the key information through: s config get -l');
|
|
84
|
-
case 6: return [3 /*break*/, 8];
|
|
85
|
-
case 7: throw new config_update_error_1.ConfigUpdateError('The configuration list is empty. You can add configuration through: s config add');
|
|
86
|
-
case 8: return [2 /*return*/];
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
UpdateManager.prototype.inputSecretZero = function (providerAlias) {
|
|
92
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
93
|
-
var tempAccess, i, tempName, valueOfValueLength;
|
|
94
|
-
var _this = this;
|
|
95
|
-
return __generator(this, function (_a) {
|
|
96
|
-
switch (_a.label) {
|
|
97
|
-
case 0:
|
|
98
|
-
try {
|
|
99
|
-
Object.keys(common_2.providerCollection).forEach(function (item) {
|
|
100
|
-
if (item === _this.provider) {
|
|
101
|
-
_this.promptList = common_2.providerCollection[item];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
catch (err) {
|
|
106
|
-
throw new config_update_error_1.ConfigUpdateError(err.message);
|
|
107
|
-
}
|
|
108
|
-
tempAccess = this.userInformation[providerAlias['Provider'] + "." + (providerAlias['AliasName'] || 'default')];
|
|
109
|
-
for (i = 0; i < this.promptList.length; i++) {
|
|
110
|
-
tempName = this.promptList[i]['name'];
|
|
111
|
-
valueOfValueLength = tempAccess[tempName].length;
|
|
112
|
-
tempAccess[tempName] = valueOfValueLength > 6 ? tempAccess[tempName].slice(0, 3) + common_1.printn(valueOfValueLength - 6, '*') + tempAccess[tempName].slice(valueOfValueLength - 3, valueOfValueLength) : tempAccess[tempName];
|
|
113
|
-
this.promptList[i]['default'] = tempAccess[tempName];
|
|
114
|
-
}
|
|
115
|
-
return [4 /*yield*/, inquirer.prompt(this.promptList).then(function (answers) {
|
|
116
|
-
_this.inputSecretData = answers;
|
|
117
|
-
})];
|
|
118
|
-
case 1:
|
|
119
|
-
_a.sent();
|
|
120
|
-
return [4 /*yield*/, this.userInputCheck(this.inputSecretData)];
|
|
121
|
-
case 2:
|
|
122
|
-
_a.sent();
|
|
123
|
-
return [2 /*return*/];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
UpdateManager.prototype.inputSecretNotZero = function (inputSecret) {
|
|
129
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
130
|
-
var hasProviderAlia;
|
|
131
|
-
return __generator(this, function (_a) {
|
|
132
|
-
switch (_a.label) {
|
|
133
|
-
case 0:
|
|
134
|
-
hasProviderAlia = Object.keys(this.userInformation).includes(this.inputProviderAlias);
|
|
135
|
-
if (!hasProviderAlia) return [3 /*break*/, 2];
|
|
136
|
-
return [4 /*yield*/, this.userInputCheck(inputSecret)];
|
|
137
|
-
case 1:
|
|
138
|
-
_a.sent();
|
|
139
|
-
_a.label = 2;
|
|
140
|
-
case 2: return [2 /*return*/];
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
// 校验用户输入的信息, 并更新用户信息
|
|
146
|
-
UpdateManager.prototype.userInputCheck = function (inputSecret) {
|
|
147
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
-
var providerAccessFormatSecret;
|
|
149
|
-
var _this = this;
|
|
150
|
-
return __generator(this, function (_a) {
|
|
151
|
-
switch (_a.label) {
|
|
152
|
-
case 0:
|
|
153
|
-
providerAccessFormatSecret = common_2.providerAccessFormat[this.provider];
|
|
154
|
-
this.oldSecretID = this.userInformation[this.inputProviderAlias];
|
|
155
|
-
Object.keys(inputSecret).forEach(function (item) {
|
|
156
|
-
if (!providerAccessFormatSecret.includes(item)) {
|
|
157
|
-
throw new config_update_error_1.ConfigUpdateError('Please Input Right Secret Format: [{{providerAccessFormatSecret}}]', { providerAccessFormatSecret: providerAccessFormatSecret });
|
|
158
|
-
}
|
|
159
|
-
else if (providerAccessFormatSecret.includes(item) && inputSecret[item]) {
|
|
160
|
-
_this.oldSecretID[item] = inputSecret[item];
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
this.userInformation[this.inputProviderAlias] = this.oldSecretID;
|
|
164
|
-
return [4 /*yield*/, this.writeFileWay(this.filePath, this.userInformation)];
|
|
165
|
-
case 1:
|
|
166
|
-
_a.sent();
|
|
167
|
-
this.output();
|
|
168
|
-
return [2 /*return*/];
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
UpdateManager.prototype.writeFileWay = function (filePath, text) {
|
|
174
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
-
var err_1;
|
|
176
|
-
return __generator(this, function (_a) {
|
|
177
|
-
switch (_a.label) {
|
|
178
|
-
case 0:
|
|
179
|
-
_a.trys.push([0, 2, , 3]);
|
|
180
|
-
return [4 /*yield*/, fs.writeFileSync(filePath, yaml.dump(text))];
|
|
181
|
-
case 1:
|
|
182
|
-
_a.sent();
|
|
183
|
-
return [3 /*break*/, 3];
|
|
184
|
-
case 2:
|
|
185
|
-
err_1 = _a.sent();
|
|
186
|
-
throw new config_update_error_1.ConfigUpdateError(err_1.message);
|
|
187
|
-
case 3:
|
|
188
|
-
logger_1.default.success('Update succeeded.');
|
|
189
|
-
return [2 /*return*/];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
UpdateManager.prototype.output = function () {
|
|
195
|
-
logger_1.default.log('');
|
|
196
|
-
logger_1.default.info(i18n_1.default.__(' Provider: {{provider}}', { provider: common_2.providerObject[this.provider] + "(" + this.provider + ")" }));
|
|
197
|
-
if (this.aliasName) {
|
|
198
|
-
logger_1.default.info(i18n_1.default.__(' Alias: {{alias}}', { alias: this.aliasName }));
|
|
199
|
-
}
|
|
200
|
-
for (var item in this.oldSecretID) {
|
|
201
|
-
logger_1.default.info(" " + item + ": " + this.oldSecretID[item]);
|
|
202
|
-
}
|
|
203
|
-
logger_1.default.log('');
|
|
204
|
-
};
|
|
205
|
-
return UpdateManager;
|
|
206
|
-
}());
|
|
207
|
-
exports.UpdateManager = UpdateManager;
|
|
208
|
-
//# sourceMappingURL=update-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-manager.js","sourceRoot":"","sources":["../../../src/config/update/update-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAE1C,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,IAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,IAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACrC,IAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,IAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAChC,6CAAwC;AACxC,uEAAoE;AACpE,2CAA4F;AAC5F,yCAAoC;AAIpC;IAUE;QARU,eAAU,G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AAG,CAAC,CAAC;SACvD;QACD,gBAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IACH,oBAAC;AAAD,CAAC,AAzGD,IAyGC;AAzGY,sCAAa"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const SERVERLESS_HOST = "https://tool.serverlessfans.com";
|
|
2
|
-
export declare const SERVERLESS_API = "https://tool.serverlessfans.com/api";
|
|
3
|
-
export declare const SERVERLESS_CHECK_VERSION: string;
|
|
4
|
-
export declare const SERVERLESS_GET_PACKAGE_PROVIDER: string;
|
|
5
|
-
export declare const SERVERLESS_GET_APP_INFO_URL: string;
|
|
6
|
-
export declare const SERVERLESS_DELETE_PACKAGE_URL: string;
|
|
7
|
-
export declare const SERVERLESS_LOGIN_URL: string;
|
|
8
|
-
export declare const SERVERLESS_SEARCH_URL: string;
|
|
9
|
-
export declare const SERVERLESS_CHECK_COMPONENT_VERSION: string;
|
|
10
|
-
export declare const TEMPLATE_FILE = "template.yaml";
|
|
11
|
-
export declare const PROCESS_ENV_TEMPLATE_NAME = "templateFile";
|
|
12
|
-
//# sourceMappingURL=static-variable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static-variable.d.ts","sourceRoot":"","sources":["../../src/constants/static-variable.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oCAAoC,CAAC;AACjE,eAAO,MAAM,cAAc,wCAAwC,CAAC;AAEpE,eAAO,MAAM,wBAAwB,QAA+B,CAAC;AACrE,eAAO,MAAM,+BAA+B,QAA8C,CAAC;AAC3F,eAAO,MAAM,2BAA2B,QAA6C,CAAC;AACtF,eAAO,MAAM,6BAA6B,QAAqC,CAAC;AAChF,eAAO,MAAM,oBAAoB,QAAiC,CAAC;AACnE,eAAO,MAAM,qBAAqB,QAAqC,CAAC;AACxE,eAAO,MAAM,kCAAkC,QAA6C,CAAC;AAC7F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,yBAAyB,iBAAiB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PROCESS_ENV_TEMPLATE_NAME = exports.TEMPLATE_FILE = exports.SERVERLESS_CHECK_COMPONENT_VERSION = exports.SERVERLESS_SEARCH_URL = exports.SERVERLESS_LOGIN_URL = exports.SERVERLESS_DELETE_PACKAGE_URL = exports.SERVERLESS_GET_APP_INFO_URL = exports.SERVERLESS_GET_PACKAGE_PROVIDER = exports.SERVERLESS_CHECK_VERSION = exports.SERVERLESS_API = exports.SERVERLESS_HOST = void 0;
|
|
4
|
-
exports.SERVERLESS_HOST = 'https://tool.serverlessfans.com';
|
|
5
|
-
exports.SERVERLESS_API = 'https://tool.serverlessfans.com/api';
|
|
6
|
-
exports.SERVERLESS_CHECK_VERSION = exports.SERVERLESS_HOST + '/version';
|
|
7
|
-
exports.SERVERLESS_GET_PACKAGE_PROVIDER = exports.SERVERLESS_API + '/package/object/provider';
|
|
8
|
-
exports.SERVERLESS_GET_APP_INFO_URL = exports.SERVERLESS_API + '/package/get/object/url';
|
|
9
|
-
exports.SERVERLESS_DELETE_PACKAGE_URL = exports.SERVERLESS_API + '/package/object';
|
|
10
|
-
exports.SERVERLESS_LOGIN_URL = exports.SERVERLESS_API + '/user/login';
|
|
11
|
-
exports.SERVERLESS_SEARCH_URL = exports.SERVERLESS_API + '/package/object';
|
|
12
|
-
exports.SERVERLESS_CHECK_COMPONENT_VERSION = exports.SERVERLESS_API + '/package/object/version';
|
|
13
|
-
exports.TEMPLATE_FILE = 'template.yaml';
|
|
14
|
-
exports.PROCESS_ENV_TEMPLATE_NAME = 'templateFile';
|
|
15
|
-
//# sourceMappingURL=static-variable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static-variable.js","sourceRoot":"","sources":["../../src/constants/static-variable.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,iCAAiC,CAAC;AACpD,QAAA,cAAc,GAAG,qCAAqC,CAAC;AAEvD,QAAA,wBAAwB,GAAG,uBAAe,GAAG,UAAU,CAAC;AACxD,QAAA,+BAA+B,GAAG,sBAAc,GAAG,0BAA0B,CAAC;AAC9E,QAAA,2BAA2B,GAAG,sBAAc,GAAG,yBAAyB,CAAC;AACzE,QAAA,6BAA6B,GAAG,sBAAc,GAAG,iBAAiB,CAAC;AACnE,QAAA,oBAAoB,GAAG,sBAAc,GAAG,aAAa,CAAC;AACtD,QAAA,qBAAqB,GAAG,sBAAc,GAAG,iBAAiB,CAAC;AAC3D,QAAA,kCAAkC,GAAG,sBAAc,GAAG,yBAAyB,CAAC;AAChF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,yBAAyB,GAAG,cAAc,CAAC"}
|
package/lib/entity.d.ts
DELETED
package/lib/entity.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../src/entity.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAA;CACd;AACD,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CAC5B"}
|
package/lib/entity.js
DELETED
package/lib/entity.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../src/entity.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-error.d.ts","sourceRoot":"","sources":["../../src/error/command-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,YAAa,SAAQ,eAAe;gBACnC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;CAG1C"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CommandError = void 0;
|
|
17
|
-
var serverless_error_1 = require("./serverless-error");
|
|
18
|
-
var CommandError = /** @class */ (function (_super) {
|
|
19
|
-
__extends(CommandError, _super);
|
|
20
|
-
function CommandError(message, params) {
|
|
21
|
-
return _super.call(this, 'Error', message, params) || this;
|
|
22
|
-
}
|
|
23
|
-
return CommandError;
|
|
24
|
-
}(serverless_error_1.ServerlessError));
|
|
25
|
-
exports.CommandError = CommandError;
|
|
26
|
-
//# sourceMappingURL=command-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-error.js","sourceRoot":"","sources":["../../src/error/command-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqD;AAErD;IAAkC,gCAAe;IAC/C,sBAAY,OAAe,EAAE,MAAY;eACvC,kBAAM,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;IACjC,CAAC;IACH,mBAAC;AAAD,CAAC,AAJD,CAAkC,kCAAe,GAIhD;AAJY,oCAAY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-delete-error.d.ts","sourceRoot":"","sources":["../../src/error/config-delete-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,iBAAkB,SAAQ,eAAe;gBACxC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;CAG1C"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConfigDeleteError = void 0;
|
|
17
|
-
var serverless_error_1 = require("./serverless-error");
|
|
18
|
-
var ConfigDeleteError = /** @class */ (function (_super) {
|
|
19
|
-
__extends(ConfigDeleteError, _super);
|
|
20
|
-
function ConfigDeleteError(message, params) {
|
|
21
|
-
return _super.call(this, 'Deletion failed', message, params) || this;
|
|
22
|
-
}
|
|
23
|
-
return ConfigDeleteError;
|
|
24
|
-
}(serverless_error_1.ServerlessError));
|
|
25
|
-
exports.ConfigDeleteError = ConfigDeleteError;
|
|
26
|
-
//# sourceMappingURL=config-delete-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-delete-error.js","sourceRoot":"","sources":["../../src/error/config-delete-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqD;AAErD;IAAuC,qCAAe;IACpD,2BAAY,OAAe,EAAE,MAAY;eACvC,kBAAM,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC;IAC3C,CAAC;IACH,wBAAC;AAAD,CAAC,AAJD,CAAuC,kCAAe,GAIrD;AAJY,8CAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-error.d.ts","sourceRoot":"","sources":["../../src/error/config-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,WAAY,SAAQ,eAAe;gBAClC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;CAG1C"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConfigError = void 0;
|
|
17
|
-
var serverless_error_1 = require("./serverless-error");
|
|
18
|
-
var ConfigError = /** @class */ (function (_super) {
|
|
19
|
-
__extends(ConfigError, _super);
|
|
20
|
-
function ConfigError(message, params) {
|
|
21
|
-
return _super.call(this, 'Config failed', message, params) || this;
|
|
22
|
-
}
|
|
23
|
-
return ConfigError;
|
|
24
|
-
}(serverless_error_1.ServerlessError));
|
|
25
|
-
exports.ConfigError = ConfigError;
|
|
26
|
-
//# sourceMappingURL=config-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-error.js","sourceRoot":"","sources":["../../src/error/config-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqD;AAErD;IAAiC,+BAAe;IAC9C,qBAAY,OAAe,EAAE,MAAY;eACvC,kBAAM,eAAe,EAAE,OAAO,EAAE,MAAM,CAAC;IACzC,CAAC;IACH,kBAAC;AAAD,CAAC,AAJD,CAAiC,kCAAe,GAI/C;AAJY,kCAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-get-error.d.ts","sourceRoot":"","sources":["../../src/error/config-get-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,cAAe,SAAQ,eAAe;gBACrC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;CAG1C"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConfigGetError = void 0;
|
|
17
|
-
var serverless_error_1 = require("./serverless-error");
|
|
18
|
-
var ConfigGetError = /** @class */ (function (_super) {
|
|
19
|
-
__extends(ConfigGetError, _super);
|
|
20
|
-
function ConfigGetError(message, params) {
|
|
21
|
-
return _super.call(this, 'Get failed', message, params) || this;
|
|
22
|
-
}
|
|
23
|
-
return ConfigGetError;
|
|
24
|
-
}(serverless_error_1.ServerlessError));
|
|
25
|
-
exports.ConfigGetError = ConfigGetError;
|
|
26
|
-
//# sourceMappingURL=config-get-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-get-error.js","sourceRoot":"","sources":["../../src/error/config-get-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqD;AAErD;IAAoC,kCAAe;IACjD,wBAAY,OAAe,EAAE,MAAY;eACvC,kBAAM,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC;IACtC,CAAC;IACH,qBAAC;AAAD,CAAC,AAJD,CAAoC,kCAAe,GAIlD;AAJY,wCAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-update-error.d.ts","sourceRoot":"","sources":["../../src/error/config-update-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,iBAAkB,SAAQ,eAAe;gBACxC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;CAG1C"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConfigUpdateError = void 0;
|
|
17
|
-
var serverless_error_1 = require("./serverless-error");
|
|
18
|
-
var ConfigUpdateError = /** @class */ (function (_super) {
|
|
19
|
-
__extends(ConfigUpdateError, _super);
|
|
20
|
-
function ConfigUpdateError(message, params) {
|
|
21
|
-
return _super.call(this, 'Update failed', message, params) || this;
|
|
22
|
-
}
|
|
23
|
-
return ConfigUpdateError;
|
|
24
|
-
}(serverless_error_1.ServerlessError));
|
|
25
|
-
exports.ConfigUpdateError = ConfigUpdateError;
|
|
26
|
-
//# sourceMappingURL=config-update-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-update-error.js","sourceRoot":"","sources":["../../src/error/config-update-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqD;AAErD;IAAuC,qCAAe;IACpD,2BAAY,OAAe,EAAE,MAAY;eACvC,kBAAM,eAAe,EAAE,OAAO,EAAE,MAAM,CAAC;IACzC,CAAC;IACH,wBAAC;AAAD,CAAC,AAJD,CAAuC,kCAAe,GAIrD;AAJY,8CAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init-error.d.ts","sourceRoot":"","sources":["../../src/error/init-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,SAAU,SAAQ,eAAe;gBAChC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;CAG1C"}
|