sst 2.19.2 → 2.20.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/package.json +2 -2
- package/runtime/handlers/node.js +13 -6
- package/sst.mjs +300 -21
- package/support/base-site-archiver.mjs +14 -14
- package/support/bootstrap-metadata-function/index.mjs +3734 -1114
- package/support/bridge/bridge.mjs +36 -36
- package/support/custom-resources/index.mjs +8495 -3739
- package/support/edge-function/edge-lambda-version.mjs +2 -2
- package/support/edge-function/edge-lambda.mjs +2 -2
- package/support/edge-function/s3-bucket.mjs +2 -2
- package/support/event-bus-retrier/index.mjs +24 -24
- package/support/job-invoker/index.mjs +2836 -576
- package/support/nodejs-runtime/index.mjs +2 -0
- package/support/rds-migrator/index.mjs +19 -19
- package/support/script-function/index.mjs +3491 -943
- package/support/ssr-site-function-archiver.mjs +11 -11
|
@@ -104,7 +104,9 @@ while (true) {
|
|
|
104
104
|
Number(result.headers["lambda-runtime-deadline-ms"]) - Date.now(),
|
|
105
105
|
0
|
|
106
106
|
),
|
|
107
|
+
// If identity is null, we want to mimick AWS behavior and return undefined
|
|
107
108
|
identity: JSON.parse(result.headers["lambda-runtime-cognito-identity"]) ?? void 0,
|
|
109
|
+
// If clientContext is null, we want to mimick AWS behavior and return undefined
|
|
108
110
|
clientContext: JSON.parse(result.headers["lambda-runtime-client-context"]) ?? void 0,
|
|
109
111
|
functionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
|
|
110
112
|
functionVersion: process.env.AWS_LAMBDA_FUNCTION_VERSION,
|