sst 3.17.14 → 3.17.21

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 +11 -0
  2. package/package.json +11 -9
package/dist/resource.js CHANGED
@@ -9,6 +9,17 @@ const environment = {
9
9
  ...env,
10
10
  ...globalThis.process?.env,
11
11
  };
12
+ // Handle consolidated resources JSON (for Windows with many resources)
13
+ if (environment.SST_RESOURCES_JSON) {
14
+ try {
15
+ const allResources = JSON.parse(environment.SST_RESOURCES_JSON);
16
+ Object.assign(raw, allResources);
17
+ }
18
+ catch (error) {
19
+ console.error("Failed to parse SST_RESOURCES_JSON:", error);
20
+ }
21
+ }
22
+ // Handle individual SST_RESOURCE_ environment variables
12
23
  for (const [key, value] of Object.entries(environment)) {
13
24
  if (key.startsWith("SST_RESOURCE_") && value) {
14
25
  raw[key.slice("SST_RESOURCE_".length)] = JSON.parse(value);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.17.14",
6
+ "version": "3.17.21",
7
7
  "main": "./dist/index.js",
8
8
  "repository": {
9
9
  "type": "git",
@@ -27,7 +27,9 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@tsconfig/node20": "20.1.4",
30
+ "@types/aws-lambda": "^8.10.155",
30
31
  "@types/node": "22.10.0",
32
+ "bun-types": "1.3.0",
31
33
  "hono": "4.3.9",
32
34
  "typescript": "5.7.2",
33
35
  "valibot": "^1.0.0-rc.3",
@@ -41,14 +43,14 @@
41
43
  "sst": "./bin/sst.mjs"
42
44
  },
43
45
  "optionalDependencies": {
44
- "sst-linux-x64": "3.17.14",
45
- "sst-linux-x86": "3.17.14",
46
- "sst-linux-arm64": "3.17.14",
47
- "sst-darwin-x64": "3.17.14",
48
- "sst-darwin-arm64": "3.17.14",
49
- "sst-win32-x86": "3.17.14",
50
- "sst-win32-x64": "3.17.14",
51
- "sst-win32-arm64": "3.17.14"
46
+ "sst-linux-x86": "3.17.21",
47
+ "sst-linux-x64": "3.17.21",
48
+ "sst-linux-arm64": "3.17.21",
49
+ "sst-darwin-x64": "3.17.21",
50
+ "sst-darwin-arm64": "3.17.21",
51
+ "sst-win32-arm64": "3.17.21",
52
+ "sst-win32-x86": "3.17.21",
53
+ "sst-win32-x64": "3.17.21"
52
54
  },
53
55
  "dependencies": {
54
56
  "aws-sdk": "2.1692.0",