Add transformation for s3 createPresignedPost #2049
Annotations
3 errors
|
test:
src/transforms/v2-to-v3/transformer.spec.ts#L53
AssertionError: expected 'import { S3 } from "@aws-sdk/client-s…' to deeply equal 'import AWS from "aws-sdk";\n\nconst s…'
- Expected
+ Received
- import AWS from "aws-sdk";
+ import { S3 } from "@aws-sdk/client-s3";
- const s3 = new AWS.S3();
+ const s3 = new S3();
const params = { Bucket: "bucket", Fields: { key: "key" } };
- // S3 createPresignedPost with callbacks is not supported in AWS SDK for JavaScript (v3).
- // Please convert to 'client.createPresignedPost(params)', and re-run aws-sdk-js-codemod.
s3.createPresignedPost(params, function (err, data) {
console.log('The URL is', data.url);
});
❯ src/transforms/v2-to-v3/transformer.spec.ts:53:31
|
test
The operation was canceled.
|
Loading