Trivikram Kamat
Trivikram Kamat
This happens as the `AsyncGenerator` was added in `es2018.asyncgenerator` which was release in TypeScript 3.6 * Code: https://github.com/microsoft/TypeScript/blob/v3.6-beta/lib/lib.es2018.asyncgenerator.d.ts * PR which added it https://github.com/microsoft/TypeScript/pull/32578
Alternatives is requesting importing package.json directly. CJS ```js const { version } = require("@aws-sdk/client-s3/package.json"); console.log(version); ```
MJS has two options Use createRequire to require package.json ```js import { createRequire } from "module" const require = createRequire(import.meta.url) const { version } = require("@aws-sdk/client-s3/package.json"); console.log(version); ``` Default import...
Verified that: * createRequire was added in v12.x: https://nodejs.org/docs/latest-v12.x/api/module.html#module_module_createrequire_filename * `import.meta.url` is present in v14.x: https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_import_meta_url
An application can run downlevel-dts on types provides by it's dependencies, but it's usually easier to just upgrade typescript.
I'll provide a minimal repro for InvalidSignatureException in next comment. --- @gastonlifschitz Looks like in the v3 equivalent code for `logMySqlResponseTimes` you call `return await` although the returned value is...
The SDK only signs requests in the process of executing an API operation. By default we do not allow any significant delay between signing a request and sending it over...
A purposeful reproduction for InvalidSignatureException using middleware which adds a delay of 5+ minutes at the end of finalizeRequest step (i.e. between awsAuthMiddleware and handler): ```js import { SSM }...
We confirmed that this issue is caused because of the [NodeJs Async Init Problem](https://barker.tech/aws-lambda-nodejs-async-init-88b5c24af567#fd75) in Lambda. Below is the reproduction of the issue without the SDK. ### Code creation ####...
For a workaround, you can move the api call inside the Lambda handler as follows: ### Before ```js // ... const client = new SSM(); const secret = await client.getSecretValue(params);...