sst 2.8.29 → 2.10.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/cli/commands/secrets/list.js +8 -1
- package/package.json +9 -9
- package/sst.mjs +10 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const list = (program) => program.command("list [format]", "Fetch all the secrets", (yargs) => yargs.positional("format", {
|
|
2
2
|
type: "string",
|
|
3
|
-
choices: ["table", "env"],
|
|
3
|
+
choices: ["table", "env", "json"],
|
|
4
4
|
}), async (args) => {
|
|
5
5
|
const { Config } = await import("../../../config.js");
|
|
6
6
|
const { gray } = await import("colorette");
|
|
@@ -11,6 +11,13 @@ export const list = (program) => program.command("list [format]", "Fetch all the
|
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
switch (args.format || "table") {
|
|
14
|
+
case "json":
|
|
15
|
+
const env = Object.fromEntries(Object.entries(secrets).map(([key, { value, fallback }]) => [
|
|
16
|
+
key,
|
|
17
|
+
value || fallback,
|
|
18
|
+
]));
|
|
19
|
+
console.log(JSON.stringify(env, null, 2));
|
|
20
|
+
break;
|
|
14
21
|
case "env":
|
|
15
22
|
for (const [key, value] of Object.entries(secrets)) {
|
|
16
23
|
console.log(`${key}=${value.value || value.fallback}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sideEffects": false,
|
|
3
3
|
"name": "sst",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.10.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sst": "cli/sst.js"
|
|
7
7
|
},
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://sst.dev",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-cdk/aws-apigatewayv2-alpha": "^2.
|
|
29
|
-
"@aws-cdk/aws-apigatewayv2-authorizers-alpha": "^2.
|
|
30
|
-
"@aws-cdk/aws-apigatewayv2-integrations-alpha": "^2.
|
|
31
|
-
"@aws-cdk/cloud-assembly-schema": "2.
|
|
32
|
-
"@aws-cdk/cloudformation-diff": "2.
|
|
33
|
-
"@aws-cdk/cx-api": "2.
|
|
28
|
+
"@aws-cdk/aws-apigatewayv2-alpha": "^2.79.1-alpha.0",
|
|
29
|
+
"@aws-cdk/aws-apigatewayv2-authorizers-alpha": "^2.79.1-alpha.0",
|
|
30
|
+
"@aws-cdk/aws-apigatewayv2-integrations-alpha": "^2.79.1-alpha.0",
|
|
31
|
+
"@aws-cdk/cloud-assembly-schema": "2.79.1",
|
|
32
|
+
"@aws-cdk/cloudformation-diff": "2.79.1",
|
|
33
|
+
"@aws-cdk/cx-api": "2.79.1",
|
|
34
34
|
"@aws-sdk/client-cloudformation": "^3.279.0",
|
|
35
35
|
"@aws-sdk/client-iam": "^3.279.0",
|
|
36
36
|
"@aws-sdk/client-iot": "^3.279.0",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@babel/generator": "^7.20.5",
|
|
51
51
|
"@trpc/server": "9.16.0",
|
|
52
52
|
"adm-zip": "^0.5.10",
|
|
53
|
-
"aws-cdk-lib": "2.
|
|
53
|
+
"aws-cdk-lib": "2.79.1",
|
|
54
54
|
"aws-iot-device-sdk": "^2.2.12",
|
|
55
55
|
"aws-sdk": "^2.1326.0",
|
|
56
56
|
"builtin-modules": "3.2.0",
|
|
57
|
-
"cdk-assets": "2.
|
|
57
|
+
"cdk-assets": "2.79.1",
|
|
58
58
|
"chalk": "^5.2.0",
|
|
59
59
|
"chokidar": "^3.5.3",
|
|
60
60
|
"ci-info": "^3.7.0",
|
package/sst.mjs
CHANGED
|
@@ -7706,7 +7706,7 @@ var list = (program2) => program2.command(
|
|
|
7706
7706
|
"Fetch all the secrets",
|
|
7707
7707
|
(yargs2) => yargs2.positional("format", {
|
|
7708
7708
|
type: "string",
|
|
7709
|
-
choices: ["table", "env"]
|
|
7709
|
+
choices: ["table", "env", "json"]
|
|
7710
7710
|
}),
|
|
7711
7711
|
async (args) => {
|
|
7712
7712
|
const { Config: Config2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -7718,6 +7718,15 @@ var list = (program2) => program2.command(
|
|
|
7718
7718
|
return;
|
|
7719
7719
|
}
|
|
7720
7720
|
switch (args.format || "table") {
|
|
7721
|
+
case "json":
|
|
7722
|
+
const env = Object.fromEntries(
|
|
7723
|
+
Object.entries(secrets2).map(([key, { value, fallback }]) => [
|
|
7724
|
+
key,
|
|
7725
|
+
value || fallback
|
|
7726
|
+
])
|
|
7727
|
+
);
|
|
7728
|
+
console.log(JSON.stringify(env, null, 2));
|
|
7729
|
+
break;
|
|
7721
7730
|
case "env":
|
|
7722
7731
|
for (const [key, value] of Object.entries(secrets2)) {
|
|
7723
7732
|
console.log(`${key}=${value.value || value.fallback}`);
|