@geek-fun/serverlessinsight 0.0.5 → 0.1.0

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.
Files changed (59) hide show
  1. package/dist/package.json +22 -14
  2. package/dist/src/commands/deploy.js +2 -1
  3. package/dist/src/commands/destroy.js +10 -0
  4. package/dist/src/commands/index.js +28 -13
  5. package/dist/src/commands/template.js +26 -0
  6. package/dist/src/commands/validate.js +4 -5
  7. package/dist/src/common/actionContext.js +13 -7
  8. package/dist/src/common/constants.js +4 -0
  9. package/dist/src/common/iacHelper.js +53 -13
  10. package/dist/src/common/imsClient.js +52 -0
  11. package/dist/src/common/index.d.ts +3 -1
  12. package/dist/src/common/index.js +3 -1
  13. package/dist/src/common/providerEnum.js +11 -0
  14. package/dist/src/common/rosClient.js +92 -9
  15. package/dist/src/parser/databaseParser.js +27 -0
  16. package/dist/src/parser/eventParser.js +15 -0
  17. package/dist/src/parser/functionParser.js +20 -0
  18. package/dist/src/parser/index.d.ts +2 -0
  19. package/dist/src/parser/index.js +36 -0
  20. package/dist/src/parser/tagParser.js +10 -0
  21. package/dist/src/stack/deploy.js +57 -13
  22. package/dist/src/stack/index.d.ts +0 -2
  23. package/dist/src/stack/index.js +0 -16
  24. package/dist/src/stack/rfsStack/function.js +32 -0
  25. package/dist/src/stack/rfsStack/index.d.ts +9 -0
  26. package/dist/src/stack/rfsStack/index.js +39 -0
  27. package/dist/src/stack/rosStack/bootstrap.js +40 -0
  28. package/dist/src/stack/rosStack/database.js +78 -0
  29. package/dist/src/stack/rosStack/event.js +127 -0
  30. package/dist/src/stack/rosStack/function.js +88 -0
  31. package/dist/src/stack/rosStack/index.d.ts +7 -0
  32. package/dist/src/stack/rosStack/index.js +69 -0
  33. package/dist/src/stack/rosStack/rosStack.js +1 -0
  34. package/dist/src/stack/rosStack/stage.js +46 -0
  35. package/dist/src/stack/rosStack/tag.js +11 -0
  36. package/dist/src/stack/rosStack/vars.js +49 -0
  37. package/dist/src/types/assets.js +2 -0
  38. package/dist/src/types/domains/context.js +8 -0
  39. package/dist/src/types/domains/database.js +12 -0
  40. package/dist/src/types/domains/function.js +2 -0
  41. package/dist/src/types/domains/provider.js +2 -0
  42. package/dist/src/types/domains/tag.js +2 -0
  43. package/dist/src/types/domains/vars.js +2 -0
  44. package/dist/src/types/index.d.ts +44 -0
  45. package/dist/src/types/index.js +23 -0
  46. package/dist/src/validator/databaseSchema.js +41 -0
  47. package/dist/src/validator/eventSchema.js +41 -0
  48. package/dist/src/validator/functionSchema.js +45 -0
  49. package/dist/src/validator/iacSchema.js +42 -0
  50. package/dist/src/validator/index.d.ts +1 -0
  51. package/dist/src/validator/index.js +5 -0
  52. package/dist/src/validator/rootSchema.js +52 -0
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +22 -14
  55. package/dist/src/common/provider.js +0 -11
  56. package/dist/src/stack/iacSchema.js +0 -145
  57. package/dist/src/stack/iacStack.js +0 -146
  58. package/dist/src/stack/parse.js +0 -46
  59. /package/dist/src/{types.js → types/domains/event.js} +0 -0
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.resolveStages = void 0;
37
+ const ros = __importStar(require("@alicloud/ros-cdk-core"));
38
+ const common_1 = require("../../common");
39
+ const lodash_1 = require("lodash");
40
+ const resolveStages = (scope, stages, context) => {
41
+ if ((0, lodash_1.isEmpty)(stages)) {
42
+ return undefined;
43
+ }
44
+ new ros.RosMapping(scope, 'stages', { mapping: (0, common_1.replaceReference)(stages, context) });
45
+ };
46
+ exports.resolveStages = resolveStages;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveTags = void 0;
4
+ const common_1 = require("../../common");
5
+ const resolveTags = (tags, context) => {
6
+ return tags?.reduce((acc, tag) => {
7
+ acc[tag.key] = (0, common_1.replaceReference)(tag.value, context);
8
+ return acc;
9
+ }, {});
10
+ };
11
+ exports.resolveTags = resolveTags;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.resloveVars = void 0;
37
+ const ros = __importStar(require("@alicloud/ros-cdk-core"));
38
+ const ros_cdk_core_1 = require("@alicloud/ros-cdk-core");
39
+ const lodash_1 = require("lodash");
40
+ const resloveVars = (scope, vars) => {
41
+ if ((0, lodash_1.isEmpty)(vars)) {
42
+ return undefined;
43
+ }
44
+ Object.entries(vars).map(([id, value]) => new ros.RosParameter(scope, id, {
45
+ type: ros_cdk_core_1.RosParameterType.STRING,
46
+ defaultValue: value,
47
+ }));
48
+ };
49
+ exports.resloveVars = resloveVars;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TemplateFormat = void 0;
4
+ var TemplateFormat;
5
+ (function (TemplateFormat) {
6
+ TemplateFormat["YAML"] = "YAML";
7
+ TemplateFormat["JSON"] = "JSON";
8
+ })(TemplateFormat || (exports.TemplateFormat = TemplateFormat = {}));
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DatabaseEnum = exports.DatabaseEngineMode = void 0;
4
+ var DatabaseEngineMode;
5
+ (function (DatabaseEngineMode) {
6
+ DatabaseEngineMode["SEARCH"] = "SEARCH";
7
+ DatabaseEngineMode["TIMESERIES"] = "TIMESERIES";
8
+ })(DatabaseEngineMode || (exports.DatabaseEngineMode = DatabaseEngineMode = {}));
9
+ var DatabaseEnum;
10
+ (function (DatabaseEnum) {
11
+ DatabaseEnum["ELASTICSEARCH_SERVERLESS"] = "ELASTICSEARCH_SERVERLESS";
12
+ })(DatabaseEnum || (exports.DatabaseEnum = DatabaseEnum = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,44 @@
1
+ import { Stages, Vars } from './domains/vars';
2
+ import { Tags } from './domains/tag';
3
+ import { EventDomain, EventRaw } from './domains/event';
4
+ import { DatabaseDomain, DatabaseRaw } from './domains/database';
5
+ import { FunctionDomain, FunctionRaw } from './domains/function';
6
+ import { Provider } from './domains/provider';
7
+ export * from './domains/database';
8
+ export * from './domains/event';
9
+ export * from './domains/function';
10
+ export * from './domains/tag';
11
+ export * from './domains/vars';
12
+ export * from './domains/context';
13
+ export * from './assets';
14
+ export type ServerlessIacRaw = {
15
+ version: string;
16
+ provider: Provider;
17
+ vars: Vars;
18
+ stages: Stages;
19
+ service: string;
20
+ tags: Tags;
21
+ functions: {
22
+ [key: string]: FunctionRaw;
23
+ };
24
+ events: {
25
+ [key: string]: EventRaw;
26
+ };
27
+ databases: {
28
+ [key: string]: DatabaseRaw;
29
+ };
30
+ };
31
+ export type ServerlessIac = {
32
+ version: string;
33
+ provider: Provider;
34
+ service: string;
35
+ vars?: Vars;
36
+ stages?: Stages;
37
+ tags?: Array<{
38
+ key: string;
39
+ value: string;
40
+ }>;
41
+ functions?: Array<FunctionDomain>;
42
+ events?: Array<EventDomain>;
43
+ databases?: Array<DatabaseDomain>;
44
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./domains/database"), exports);
18
+ __exportStar(require("./domains/event"), exports);
19
+ __exportStar(require("./domains/function"), exports);
20
+ __exportStar(require("./domains/tag"), exports);
21
+ __exportStar(require("./domains/vars"), exports);
22
+ __exportStar(require("./domains/context"), exports);
23
+ __exportStar(require("./assets"), exports);
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.databaseSchema = void 0;
4
+ exports.databaseSchema = {
5
+ $id: 'https://serverlessinsight.geekfun.club/schemas/databaseschema.json',
6
+ type: 'object',
7
+ patternProperties: {
8
+ '.*': {
9
+ type: 'object',
10
+ properties: {
11
+ name: { type: 'string' },
12
+ type: { type: 'string', enum: ['ELASTICSEARCH_SERVERLESS'] },
13
+ version: { type: 'string' },
14
+ engine_mode: { type: 'string', enum: ['SEARCH', 'TIMESERIES'] },
15
+ cu: { type: 'number' },
16
+ storage_size: { type: 'number' },
17
+ security: {
18
+ type: 'object',
19
+ properties: {
20
+ basic_auth: {
21
+ type: 'object',
22
+ properties: {
23
+ password: { type: 'string' },
24
+ },
25
+ required: ['password'],
26
+ },
27
+ },
28
+ required: ['basic_auth'],
29
+ },
30
+ network: {
31
+ type: 'object',
32
+ properties: {
33
+ public: { type: 'boolean' },
34
+ },
35
+ },
36
+ },
37
+ required: ['name', 'type', 'version', 'security', 'cu', 'storage_size'],
38
+ additionalProperties: false,
39
+ },
40
+ },
41
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.eventSchema = void 0;
4
+ exports.eventSchema = {
5
+ $id: 'https://serverlessinsight.geekfun.club/schemas/eventschema.json',
6
+ type: 'object',
7
+ patternProperties: {
8
+ '.*': {
9
+ type: 'object',
10
+ properties: {
11
+ name: { type: 'string' },
12
+ type: { type: 'string', enum: ['API_GATEWAY'] },
13
+ triggers: {
14
+ type: 'array',
15
+ items: {
16
+ method: { type: 'string', enum: ['GET', 'POST', 'PUT', 'DELETE', 'ANY'] },
17
+ path: { type: 'string' },
18
+ backend: { type: 'string' },
19
+ required: ['method', 'path', 'backend'],
20
+ },
21
+ },
22
+ custom_domain: {
23
+ type: 'object',
24
+ properties: {
25
+ domain_name: { type: 'string' },
26
+ certificate_name: { type: 'string' },
27
+ certificate_body: { type: 'string' },
28
+ certificate_private_key: { type: 'string' },
29
+ },
30
+ required: [
31
+ 'domain_name',
32
+ 'certificate_name',
33
+ 'certificate_body',
34
+ 'certificate_private_key',
35
+ ],
36
+ },
37
+ },
38
+ required: ['name', 'type', 'triggers'],
39
+ },
40
+ },
41
+ };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.functionSchema = void 0;
4
+ exports.functionSchema = {
5
+ $id: 'https://serverlessinsight.geekfun.club/schemas/functionschema.json',
6
+ type: 'object',
7
+ patternProperties: {
8
+ '.*': {
9
+ type: 'object',
10
+ properties: {
11
+ name: { type: 'string' },
12
+ runtime: {
13
+ type: 'string',
14
+ enum: [
15
+ 'nodejs20',
16
+ 'nodejs18',
17
+ 'nodejs16',
18
+ 'nodejs14',
19
+ 'nodejs12',
20
+ 'nodejs10',
21
+ 'nodejs8',
22
+ 'python3.10',
23
+ 'python3.9',
24
+ 'python3',
25
+ 'PHP 7.2',
26
+ 'Java 11',
27
+ '.NET Core 3.1',
28
+ 'Go 1.x',
29
+ ],
30
+ },
31
+ handler: { type: 'string' },
32
+ code: { type: 'string' },
33
+ memory: { type: 'number' },
34
+ timeout: { type: 'number' },
35
+ environment: {
36
+ type: 'object',
37
+ additionalProperties: {
38
+ type: ['string', 'number', 'boolean'],
39
+ },
40
+ },
41
+ },
42
+ additionalProperties: false,
43
+ },
44
+ },
45
+ };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.validateYaml = void 0;
7
+ const ajv_1 = __importDefault(require("ajv"));
8
+ const common_1 = require("../common");
9
+ const rootSchema_1 = require("./rootSchema");
10
+ const databaseSchema_1 = require("./databaseSchema");
11
+ const eventSchema_1 = require("./eventSchema");
12
+ const functionSchema_1 = require("./functionSchema");
13
+ class IacSchemaErrors extends Error {
14
+ constructor(errors) {
15
+ super(`Invalid yaml`);
16
+ this.schemaErrors = errors.map((error) => ({
17
+ instancePath: error.instancePath,
18
+ schemaPath: error.schemaPath,
19
+ message: error.message,
20
+ allowedValues: error.params?.allowedValues,
21
+ type: error.keyword,
22
+ }));
23
+ }
24
+ get errors() {
25
+ return this.schemaErrors;
26
+ }
27
+ }
28
+ const ajv = new ajv_1.default({ allowUnionTypes: true, strict: false, allErrors: true });
29
+ const validate = ajv
30
+ .addSchema(functionSchema_1.functionSchema)
31
+ .addSchema(eventSchema_1.eventSchema)
32
+ .addSchema(databaseSchema_1.databaseSchema)
33
+ .compile(rootSchema_1.rootSchema);
34
+ const validateYaml = (iacJson) => {
35
+ const valid = validate(iacJson);
36
+ if (!valid) {
37
+ common_1.logger.debug(`Invalid yaml: ${JSON.stringify(validate.errors)}`);
38
+ throw new IacSchemaErrors(validate.errors);
39
+ }
40
+ return true;
41
+ };
42
+ exports.validateYaml = validateYaml;
@@ -0,0 +1 @@
1
+ export { validateYaml } from './iacSchema';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateYaml = void 0;
4
+ var iacSchema_1 = require("./iacSchema");
5
+ Object.defineProperty(exports, "validateYaml", { enumerable: true, get: function () { return iacSchema_1.validateYaml; } });
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rootSchema = void 0;
4
+ exports.rootSchema = {
5
+ $id: 'https://serverlessinsight.geekfun.club/schemas/schema.json',
6
+ type: 'object',
7
+ properties: {
8
+ version: { type: 'string', enum: ['0.0.0', '0.0.1'] },
9
+ provider: {
10
+ type: 'object',
11
+ properties: {
12
+ name: { type: 'string', enum: ['huawei', 'aliyun'] },
13
+ region: { type: 'string' },
14
+ },
15
+ },
16
+ service: { type: 'string' },
17
+ vars: {
18
+ type: 'object',
19
+ additionalProperties: {
20
+ type: ['string', 'number', 'boolean'],
21
+ },
22
+ },
23
+ stages: {
24
+ type: 'object',
25
+ patternProperties: {
26
+ '.*': {
27
+ type: 'object',
28
+ additionalProperties: {
29
+ type: ['string', 'number', 'boolean'],
30
+ },
31
+ },
32
+ },
33
+ },
34
+ tags: {
35
+ type: 'object',
36
+ additionalProperties: {
37
+ type: ['string', 'number', 'boolean'],
38
+ },
39
+ },
40
+ functions: {
41
+ $ref: 'https://serverlessinsight.geekfun.club/schemas/functionschema.json',
42
+ },
43
+ events: {
44
+ $ref: 'https://serverlessinsight.geekfun.club/schemas/eventschema.json',
45
+ },
46
+ databases: {
47
+ $ref: 'https://serverlessinsight.geekfun.club/schemas/databaseschema.json',
48
+ },
49
+ },
50
+ required: ['version', 'provider', 'service'],
51
+ additionalProperties: false,
52
+ };
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/types.ts","../src/commands/deploy.ts","../src/commands/index.ts","../src/commands/validate.ts","../src/common/actionContext.ts","../src/common/getVersion.ts","../src/common/iacHelper.ts","../src/common/index.ts","../src/common/logger.ts","../src/common/provider.ts","../src/common/rosClient.ts","../src/lang/index.ts","../src/stack/deploy.ts","../src/stack/iacSchema.ts","../src/stack/iacStack.ts","../src/stack/index.ts","../src/stack/parse.ts"],"version":"5.6.2"}
1
+ {"root":["../src/index.ts","../src/commands/deploy.ts","../src/commands/destroy.ts","../src/commands/index.ts","../src/commands/template.ts","../src/commands/validate.ts","../src/common/actionContext.ts","../src/common/constants.ts","../src/common/getVersion.ts","../src/common/iacHelper.ts","../src/common/imsClient.ts","../src/common/index.ts","../src/common/logger.ts","../src/common/providerEnum.ts","../src/common/rosClient.ts","../src/lang/index.ts","../src/parser/databaseParser.ts","../src/parser/eventParser.ts","../src/parser/functionParser.ts","../src/parser/index.ts","../src/parser/tagParser.ts","../src/stack/deploy.ts","../src/stack/index.ts","../src/stack/rfsStack/function.ts","../src/stack/rfsStack/index.ts","../src/stack/rosStack/bootstrap.ts","../src/stack/rosStack/database.ts","../src/stack/rosStack/event.ts","../src/stack/rosStack/function.ts","../src/stack/rosStack/index.ts","../src/stack/rosStack/rosStack.ts","../src/stack/rosStack/stage.ts","../src/stack/rosStack/tag.ts","../src/stack/rosStack/vars.ts","../src/types/assets.ts","../src/types/index.ts","../src/types/domains/context.ts","../src/types/domains/database.ts","../src/types/domains/event.ts","../src/types/domains/function.ts","../src/types/domains/provider.ts","../src/types/domains/tag.ts","../src/types/domains/vars.ts","../src/validator/databaseSchema.ts","../src/validator/eventSchema.ts","../src/validator/functionSchema.ts","../src/validator/iacSchema.ts","../src/validator/index.ts","../src/validator/rootSchema.ts"],"version":"5.7.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geek-fun/serverlessinsight",
3
- "version": "0.0.5",
3
+ "version": "0.1.0",
4
4
  "description": "Full life cycle cross providers serverless application management for your fast-growing business.",
5
5
  "homepage": "https://serverlessinsight.geekfun.club",
6
6
  "main": "dist/src/index.js",
@@ -49,35 +49,43 @@
49
49
  "function"
50
50
  ],
51
51
  "dependencies": {
52
+ "@alicloud/ims20190815": "^2.1.4",
52
53
  "@alicloud/openapi-client": "^0.4.12",
53
54
  "@alicloud/ros-cdk-apigateway": "^1.4.0",
54
55
  "@alicloud/ros-cdk-core": "^1.4.0",
56
+ "@alicloud/ros-cdk-elasticsearchserverless": "^1.4.0",
55
57
  "@alicloud/ros-cdk-fc3": "^1.4.0",
58
+ "@alicloud/ros-cdk-oss": "^1.4.0",
59
+ "@alicloud/ros-cdk-ossdeployment": "^1.4.0",
56
60
  "@alicloud/ros-cdk-ram": "^1.4.0",
57
- "@alicloud/ros20190910": "^3.5.0",
61
+ "@alicloud/ros20190910": "^3.5.2",
58
62
  "ajv": "^8.17.1",
63
+ "ali-oss": "^6.22.0",
59
64
  "chalk": "^5.3.0",
60
65
  "commander": "^12.1.0",
61
66
  "i18n": "^0.15.1",
62
- "pino": "^9.4.0",
63
- "pino-pretty": "^11.2.2",
64
- "yaml": "^2.5.1"
67
+ "lodash": "^4.17.21",
68
+ "pino": "^9.5.0",
69
+ "pino-pretty": "^13.0.0",
70
+ "yaml": "^2.6.1"
65
71
  },
66
72
  "devDependencies": {
73
+ "@types/ali-oss": "^6.16.11",
67
74
  "@types/i18n": "^0.13.12",
68
- "@types/jest": "^29.5.13",
69
- "@types/node": "^22.7.4",
70
- "@typescript-eslint/eslint-plugin": "^8.8.0",
71
- "@typescript-eslint/parser": "^8.8.0",
72
- "eslint": "^8.57.1",
75
+ "@types/jest": "^29.5.14",
76
+ "@types/lodash": "^4.17.13",
77
+ "@types/node": "^22.10.1",
78
+ "@typescript-eslint/eslint-plugin": "^8.17.0",
79
+ "@typescript-eslint/parser": "^8.17.0",
80
+ "eslint": "^9.16.0",
73
81
  "eslint-config-prettier": "^9.1.0",
74
82
  "eslint-plugin-prettier": "^5.2.1",
75
- "globals": "^15.9.0",
76
- "husky": "^9.1.6",
83
+ "globals": "^15.13.0",
84
+ "husky": "^9.1.7",
77
85
  "jest": "^29.7.0",
78
- "prettier": "^3.3.3",
86
+ "prettier": "^3.4.2",
79
87
  "ts-jest": "^29.2.5",
80
88
  "ts-node": "^10.9.2",
81
- "typescript": "^5.6.2"
89
+ "typescript": "^5.7.2"
82
90
  }
83
91
  }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROVIDER = void 0;
4
- var PROVIDER;
5
- (function (PROVIDER) {
6
- PROVIDER["HUAWEI"] = "HUAWEI";
7
- PROVIDER["ALIBABA"] = "ALIBABA";
8
- // TENCENT = 'TENCENT',
9
- // AWS = 'AZURE',
10
- // AZURE = 'AZURE',
11
- })(PROVIDER || (exports.PROVIDER = PROVIDER = {}));