sst 3.2.22 → 3.2.24

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 (2) hide show
  1. package/dist/resource.js +7 -1
  2. package/package.json +6 -6
package/dist/resource.js CHANGED
@@ -14,7 +14,8 @@ for (const [key, value] of Object.entries(environment)) {
14
14
  raw[key.slice("SST_RESOURCE_".length)] = JSON.parse(value);
15
15
  }
16
16
  }
17
- if (env.SST_KEY_FILE && env.SST_KEY) {
17
+ // @ts-expect-error
18
+ if (env.SST_KEY_FILE && env.SST_KEY && !globalThis.SST_KEY_FILE_DATA) {
18
19
  const key = Buffer.from(env.SST_KEY, "base64");
19
20
  const encryptedData = readFileSync(env.SST_KEY_FILE);
20
21
  const nonce = Buffer.alloc(12, 0);
@@ -27,6 +28,11 @@ if (env.SST_KEY_FILE && env.SST_KEY) {
27
28
  const decryptedData = JSON.parse(decrypted.toString());
28
29
  Object.assign(raw, decryptedData);
29
30
  }
31
+ // @ts-expect-error
32
+ if (globalThis.SST_KEY_FILE_DATA) {
33
+ // @ts-expect-error
34
+ Object.assign(raw, globalThis.SST_KEY_FILE_DATA);
35
+ }
30
36
  export function fromCloudflareEnv(input) {
31
37
  for (let [key, value] of Object.entries(input)) {
32
38
  if (typeof value === "string") {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.2.22",
6
+ "version": "3.2.24",
7
7
  "main": "./dist/index.js",
8
8
  "exports": {
9
9
  ".": "./dist/index.js",
@@ -47,11 +47,11 @@
47
47
  }
48
48
  },
49
49
  "optionalDependencies": {
50
- "sst-linux-x64": "3.2.22",
51
- "sst-linux-x86": "3.2.22",
52
- "sst-linux-arm64": "3.2.22",
53
- "sst-darwin-x64": "3.2.22",
54
- "sst-darwin-arm64": "3.2.22"
50
+ "sst-linux-x64": "3.2.24",
51
+ "sst-linux-x86": "3.2.24",
52
+ "sst-linux-arm64": "3.2.24",
53
+ "sst-darwin-x64": "3.2.24",
54
+ "sst-darwin-arm64": "3.2.24"
55
55
  },
56
56
  "dependencies": {
57
57
  "aws4fetch": "^1.0.18",