Open mutongwu opened 9 months ago
var endpoint = new AWS.Endpoint(domain);
Feature Request: https://github.com/aws/aws-sdk-js-codemod/issues/694
@mutongwu Where is the signer used in your sample code?
I see only the following lines:
var signer = new AWS.Signers.V4(request, "es");
signer.addAuthorization(credentials, new Date());
The Signers.V4 was removed from public interface https://github.com/aws/aws-sdk-js/issues/1247
Self-service
Describe the bug
I'd like to update my nodejs version from 16.x to 18.x. And when I run
npx aws-sdk-js-codemod -t v2-to-v3
, he statementvar AWS = require("aws-sdk");
not changed after converted.Steps to reproduce
source fie
output
Observed behavior
Expected behavior
require("aws-sdk"); should changed to something from '@aws-sdk/XXX' right? And
AWS.Signers
,AWS.HttpRequest
,AWS.Endpoint
should changed relevantlyEnvironment
Additional context
No response