@capraconsulting/cals-cli 3.2.11 → 3.3.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 +2 -2
- package/lib/index.es.js +10 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +10 -1
- package/lib/index.js.map +1 -1
- package/lib/load-secrets/types.d.ts +8 -1
- package/package.json +2 -2
package/lib/cals-cli.js
CHANGED
|
@@ -68,7 +68,7 @@ var read__default = /*#__PURE__*/_interopDefaultLegacy(read);
|
|
|
68
68
|
var findUp__default = /*#__PURE__*/_interopDefaultLegacy(findUp);
|
|
69
69
|
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
|
|
70
70
|
|
|
71
|
-
var version = "3.
|
|
71
|
+
var version = "3.3.0";
|
|
72
72
|
var engines = {
|
|
73
73
|
node: ">=12.0.0"
|
|
74
74
|
};
|
|
@@ -3417,7 +3417,7 @@ async function main() {
|
|
|
3417
3417
|
/ /___/ ___ |/ /______/ /
|
|
3418
3418
|
\\____/_/ |_/_____/____/
|
|
3419
3419
|
cli ${version}
|
|
3420
|
-
built ${"2023-11-
|
|
3420
|
+
built ${"2023-11-24T13:48:55+0000"}
|
|
3421
3421
|
|
|
3422
3422
|
https://github.com/capralifecycle/cals-cli/
|
|
3423
3423
|
|
package/lib/index.es.js
CHANGED
|
@@ -23,7 +23,7 @@ import { strict } from 'assert';
|
|
|
23
23
|
import execa from 'execa';
|
|
24
24
|
import { Transform } from 'stream';
|
|
25
25
|
|
|
26
|
-
var version = "3.
|
|
26
|
+
var version = "3.3.0";
|
|
27
27
|
|
|
28
28
|
class CacheProvider {
|
|
29
29
|
constructor(config) {
|
|
@@ -1193,6 +1193,12 @@ class LoadSecrets {
|
|
|
1193
1193
|
throw e;
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
|
+
async handleStringUpdate() {
|
|
1197
|
+
return await this.getInput({
|
|
1198
|
+
prompt: "Enter value (Ctrl+C to abort): ",
|
|
1199
|
+
silent: this.silent,
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1196
1202
|
async handleJsonUpdate(secret) {
|
|
1197
1203
|
this.reporter.log("The secret is of type JSON with these expected fields:");
|
|
1198
1204
|
for (const field of secret.fields) {
|
|
@@ -1283,6 +1289,9 @@ class LoadSecrets {
|
|
|
1283
1289
|
throw e;
|
|
1284
1290
|
}
|
|
1285
1291
|
}
|
|
1292
|
+
else if (secret.type === "string") {
|
|
1293
|
+
secretValue = await this.handleStringUpdate();
|
|
1294
|
+
}
|
|
1286
1295
|
else {
|
|
1287
1296
|
throw new Error(`Unsupported type`);
|
|
1288
1297
|
}
|
package/lib/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -64,7 +64,7 @@ var process__namespace = /*#__PURE__*/_interopNamespace(process$1);
|
|
|
64
64
|
var read__default = /*#__PURE__*/_interopDefaultLegacy(read);
|
|
65
65
|
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
|
|
66
66
|
|
|
67
|
-
var version = "3.
|
|
67
|
+
var version = "3.3.0";
|
|
68
68
|
|
|
69
69
|
class CacheProvider {
|
|
70
70
|
constructor(config) {
|
|
@@ -1234,6 +1234,12 @@ class LoadSecrets {
|
|
|
1234
1234
|
throw e;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
+
async handleStringUpdate() {
|
|
1238
|
+
return await this.getInput({
|
|
1239
|
+
prompt: "Enter value (Ctrl+C to abort): ",
|
|
1240
|
+
silent: this.silent,
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1237
1243
|
async handleJsonUpdate(secret) {
|
|
1238
1244
|
this.reporter.log("The secret is of type JSON with these expected fields:");
|
|
1239
1245
|
for (const field of secret.fields) {
|
|
@@ -1324,6 +1330,9 @@ class LoadSecrets {
|
|
|
1324
1330
|
throw e;
|
|
1325
1331
|
}
|
|
1326
1332
|
}
|
|
1333
|
+
else if (secret.type === "string") {
|
|
1334
|
+
secretValue = await this.handleStringUpdate();
|
|
1335
|
+
}
|
|
1327
1336
|
else {
|
|
1328
1337
|
throw new Error(`Unsupported type`);
|
|
1329
1338
|
}
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -8,11 +8,18 @@ export interface JsonSecretDescribedField {
|
|
|
8
8
|
description?: string;
|
|
9
9
|
example?: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Used for secrets that are a single plaintext string,
|
|
13
|
+
* and do not require JSON formating.
|
|
14
|
+
*/
|
|
15
|
+
export interface StringSecret extends BaseSecret {
|
|
16
|
+
type: "string";
|
|
17
|
+
}
|
|
11
18
|
export interface JsonSecret extends BaseSecret {
|
|
12
19
|
type: "json";
|
|
13
20
|
fields: (JsonSecretSimpleField | JsonSecretDescribedField)[];
|
|
14
21
|
}
|
|
15
|
-
export type Secret = JsonSecret;
|
|
22
|
+
export type Secret = JsonSecret | StringSecret;
|
|
16
23
|
export interface SecretGroup {
|
|
17
24
|
accountId: string;
|
|
18
25
|
region: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capraconsulting/cals-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "CLI for repeatable tasks in CALS",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "node scripts/create-definition-schema.js && husky install",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@typescript-eslint/parser": "5.62.0",
|
|
63
63
|
"dateformat": "4.6.3",
|
|
64
64
|
"del": "6.1.1",
|
|
65
|
-
"eslint": "8.
|
|
65
|
+
"eslint": "8.54.0",
|
|
66
66
|
"eslint-config-prettier": "9.0.0",
|
|
67
67
|
"eslint-plugin-prettier": "5.0.1",
|
|
68
68
|
"husky": "8.0.3",
|