sst 2.0.36 → 2.0.37
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/bootstrap.js +1 -1
- package/package.json +1 -1
- package/runtime/server.js +1 -5
- package/sst.mjs +4 -6
- package/support/bridge/bridge.mjs +23 -23
package/bootstrap.js
CHANGED
|
@@ -105,7 +105,7 @@ export async function bootstrapSST(tags) {
|
|
|
105
105
|
const fn = new Function(stack, "MetadataHandler", {
|
|
106
106
|
code: Code.fromAsset(path.resolve(__dirname, "support/bootstrap-metadata-function")),
|
|
107
107
|
handler: "index.handler",
|
|
108
|
-
runtime:
|
|
108
|
+
runtime: project.config.region?.startsWith("us-gov-")
|
|
109
109
|
? Runtime.NODEJS_16_X
|
|
110
110
|
: Runtime.NODEJS_18_X,
|
|
111
111
|
environment: {
|
package/package.json
CHANGED
package/runtime/server.js
CHANGED
|
@@ -74,11 +74,7 @@ export const useRuntimeServer = Context.memo(async () => {
|
|
|
74
74
|
"Lambda-Runtime-Deadline-Ms": Date.now() + payload.deadline,
|
|
75
75
|
"Lambda-Runtime-Invoked-Function-Arn": payload.context.invokedFunctionArn,
|
|
76
76
|
"Lambda-Runtime-Client-Context": JSON.stringify(payload.context.clientContext || {}),
|
|
77
|
-
|
|
78
|
-
? {
|
|
79
|
-
"Lambda-Runtime-Cognito-Identity": JSON.stringify(payload.context.identity),
|
|
80
|
-
}
|
|
81
|
-
: {}),
|
|
77
|
+
"Lambda-Runtime-Cognito-Identity": JSON.stringify(payload.context.identity || {}),
|
|
82
78
|
});
|
|
83
79
|
res.json(payload.event);
|
|
84
80
|
});
|
package/sst.mjs
CHANGED
|
@@ -2302,11 +2302,9 @@ var init_server2 = __esm({
|
|
|
2302
2302
|
"Lambda-Runtime-Client-Context": JSON.stringify(
|
|
2303
2303
|
payload.context.clientContext || {}
|
|
2304
2304
|
),
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
)
|
|
2309
|
-
} : {}
|
|
2305
|
+
"Lambda-Runtime-Cognito-Identity": JSON.stringify(
|
|
2306
|
+
payload.context.identity || {}
|
|
2307
|
+
)
|
|
2310
2308
|
});
|
|
2311
2309
|
res.json(payload.event);
|
|
2312
2310
|
}
|
|
@@ -2711,7 +2709,7 @@ async function bootstrapSST(tags) {
|
|
|
2711
2709
|
path8.resolve(__dirname, "support/bootstrap-metadata-function")
|
|
2712
2710
|
),
|
|
2713
2711
|
handler: "index.handler",
|
|
2714
|
-
runtime:
|
|
2712
|
+
runtime: project.config.region?.startsWith("us-gov-") ? Runtime.NODEJS_16_X : Runtime.NODEJS_18_X,
|
|
2715
2713
|
environment: {
|
|
2716
2714
|
BUCKET_NAME: bucket.bucketName
|
|
2717
2715
|
},
|