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.
@@ -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,