@capraconsulting/cals-cli 3.5.2 → 3.7.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.
- package/lib/{cals-cli.js → cals-cli.mjs} +230 -309
- package/lib/{cals-cli.js.map → cals-cli.mjs.map} +1 -1
- package/lib/definition/index.d.ts +1 -1
- package/lib/github/index.d.ts +3 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.es.js +91 -427
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +163 -563
- package/lib/index.js.map +1 -1
- package/lib/snyk/index.d.ts +1 -1
- package/lib/sonarcloud/index.d.ts +2 -1
- package/package.json +21 -17
- package/lib/load-secrets/index.d.ts +0 -2
- package/lib/load-secrets/load-secrets.d.ts +0 -7
- package/lib/load-secrets/types.d.ts +0 -34
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/snyk/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capraconsulting/cals-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "CLI for repeatable tasks in CALS",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
5
7
|
"scripts": {
|
|
6
|
-
"prepare": "
|
|
8
|
+
"prepare": "tsx scripts/create-definition-schema.ts && husky install",
|
|
7
9
|
"build": "rollup -c",
|
|
8
|
-
"test": "jest --coverage src",
|
|
9
|
-
"test:watch": "jest --watch src",
|
|
10
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --coverage src",
|
|
11
|
+
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch src",
|
|
10
12
|
"lint": "eslint .",
|
|
11
13
|
"lint:fix": "eslint --fix .",
|
|
12
14
|
"prepack": "./scripts/build-and-verify.sh",
|
|
@@ -14,24 +16,23 @@
|
|
|
14
16
|
"semantic-release": "semantic-release",
|
|
15
17
|
"watch": "rollup -c -w"
|
|
16
18
|
},
|
|
17
|
-
"license": "Apache-2.0",
|
|
18
19
|
"main": "lib/index.js",
|
|
19
20
|
"module": "lib/index.es.js",
|
|
21
|
+
"types": "lib/index.d.ts",
|
|
20
22
|
"bin": {
|
|
21
|
-
"cals": "lib/cals-cli.
|
|
23
|
+
"cals": "lib/cals-cli.mjs"
|
|
22
24
|
},
|
|
23
25
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/client-secrets-manager": "^3.621.0",
|
|
25
|
-
"@aws-sdk/client-sts": "^3.577.0",
|
|
26
26
|
"@octokit/rest": "^19.0.0",
|
|
27
|
+
"@types/dateformat": "5.0.2",
|
|
27
28
|
"ajv": "^8.11.0",
|
|
28
29
|
"cachedir": "^2.4.0",
|
|
29
|
-
"chalk": "
|
|
30
|
+
"chalk": "4.1.2",
|
|
30
31
|
"execa": "^5.0.0",
|
|
31
32
|
"find-up": "^5.0.0",
|
|
32
33
|
"js-yaml": "^4.1.0",
|
|
33
34
|
"keytar": "^7.9.0",
|
|
34
|
-
"lodash": "^4.17.21",
|
|
35
|
+
"lodash-es": "^4.17.21",
|
|
35
36
|
"node-fetch": "^2.6.7",
|
|
36
37
|
"p-limit": "^3.0.0",
|
|
37
38
|
"p-map": "^4.0.0",
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"rimraf": "^4.0.0",
|
|
40
41
|
"semver": "^7.6.2",
|
|
41
42
|
"sprintf-js": "^1.1.2",
|
|
42
|
-
"yargs": "
|
|
43
|
+
"yargs": "17.7.2"
|
|
43
44
|
},
|
|
44
45
|
"overrides": {
|
|
45
46
|
"semantic-release": {
|
|
@@ -49,35 +50,39 @@
|
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@commitlint/cli": "19.6.0",
|
|
51
52
|
"@commitlint/config-conventional": "19.6.0",
|
|
53
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
54
|
+
"@eslint/js": "^9.16.0",
|
|
52
55
|
"@octokit/types": "10.0.0",
|
|
53
56
|
"@rollup/plugin-alias": "5.1.1",
|
|
54
57
|
"@rollup/plugin-json": "6.1.0",
|
|
55
58
|
"@rollup/plugin-replace": "6.0.1",
|
|
56
59
|
"@types/jest": "29.5.14",
|
|
57
60
|
"@types/js-yaml": "4.0.9",
|
|
58
|
-
"@types/lodash": "4.17.
|
|
59
|
-
"@types/node": "
|
|
61
|
+
"@types/lodash-es": "4.17.12",
|
|
62
|
+
"@types/node": "22.10.1",
|
|
60
63
|
"@types/node-fetch": "2.6.12",
|
|
61
64
|
"@types/read": "0.0.32",
|
|
62
65
|
"@types/rimraf": "3.0.2",
|
|
63
66
|
"@types/semver": "7.5.8",
|
|
64
67
|
"@types/sprintf-js": "1.1.4",
|
|
65
68
|
"@types/yargs": "17.0.33",
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "
|
|
67
|
-
"@typescript-eslint/parser": "
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "8.17.0",
|
|
70
|
+
"@typescript-eslint/parser": "8.17.0",
|
|
68
71
|
"dateformat": "4.6.3",
|
|
69
72
|
"del": "6.1.1",
|
|
70
|
-
"eslint": "
|
|
73
|
+
"eslint": "9.16.0",
|
|
71
74
|
"eslint-config-prettier": "9.1.0",
|
|
72
75
|
"eslint-plugin-prettier": "5.2.1",
|
|
73
76
|
"husky": "8.0.3",
|
|
74
77
|
"jest": "^29.6.1",
|
|
78
|
+
"lodash": "4.17.21",
|
|
75
79
|
"prettier": "3.4.1",
|
|
76
80
|
"rollup": "2.79.2",
|
|
77
81
|
"rollup-plugin-typescript2": "0.36.0",
|
|
78
82
|
"semantic-release": "24.2.0",
|
|
79
83
|
"tempy": "1.0.1",
|
|
80
84
|
"ts-jest": "^29.1.1",
|
|
85
|
+
"tsx": "4.19.2",
|
|
81
86
|
"typescript": "5.7.2",
|
|
82
87
|
"typescript-json-schema": "0.65.1"
|
|
83
88
|
},
|
|
@@ -88,7 +93,6 @@
|
|
|
88
93
|
"type": "git",
|
|
89
94
|
"url": "https://github.com/capralifecycle/cals-cli.git"
|
|
90
95
|
},
|
|
91
|
-
"types": "lib/index.d.ts",
|
|
92
96
|
"engines": {
|
|
93
97
|
"node": ">=12.0.0"
|
|
94
98
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface BaseSecret {
|
|
2
|
-
name: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
/**
|
|
5
|
-
* A list of regions to create read replicas
|
|
6
|
-
* of the secret in.
|
|
7
|
-
*/
|
|
8
|
-
replicaRegions?: string[];
|
|
9
|
-
}
|
|
10
|
-
export type JsonSecretSimpleField = string;
|
|
11
|
-
export interface JsonSecretDescribedField {
|
|
12
|
-
key: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
example?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Used for secrets that are a single plaintext string,
|
|
18
|
-
* and do not require JSON formating.
|
|
19
|
-
*/
|
|
20
|
-
export interface StringSecret extends BaseSecret {
|
|
21
|
-
type: "string";
|
|
22
|
-
}
|
|
23
|
-
export interface JsonSecret extends BaseSecret {
|
|
24
|
-
type: "json";
|
|
25
|
-
fields: (JsonSecretSimpleField | JsonSecretDescribedField)[];
|
|
26
|
-
}
|
|
27
|
-
export type Secret = JsonSecret | StringSecret;
|
|
28
|
-
export interface SecretGroup {
|
|
29
|
-
accountId: string;
|
|
30
|
-
region: string;
|
|
31
|
-
description: string;
|
|
32
|
-
namePrefix: string;
|
|
33
|
-
secrets: Secret[];
|
|
34
|
-
}
|