File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
scripts/generateNewClientTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33 CLIENT_NAMES_MAP ,
44 CLIENT_PACKAGE_NAMES_MAP ,
55} from "../../src/transforms/v2-to-v3/config" ;
6- import { getV3DefaultLocalName } from "../../src/transforms/v2-to-v3/utils" ;
6+ import { getDefaultLocalName } from "../../src/transforms/v2-to-v3/utils" ;
77import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix" ;
88
99export interface V3PackageImportEqualsCodeOptions {
@@ -18,7 +18,7 @@ export const getV3PackageImportEqualsCode = (
1818 const { useLocalSuffix = false } = options || { } ;
1919
2020 for ( const v2ClientName of clientsToTest ) {
21- const v3ClientDefaultLocalName = getV3DefaultLocalName ( v2ClientName ) ;
21+ const v3ClientDefaultLocalName = getDefaultLocalName ( v2ClientName ) ;
2222 const v3ClientPackageName = `@aws-sdk/${ CLIENT_PACKAGE_NAMES_MAP [ v2ClientName ] } ` ;
2323 content += `import ${ v3ClientDefaultLocalName } = require("${ v3ClientPackageName } ");\n\n` ;
2424
@@ -30,7 +30,7 @@ export const getV3PackageImportEqualsCode = (
3030 const v3ObjectPattern =
3131 v3ClientName === v2ClientLocalName ? v3ClientName : `${ v3ClientName } : ${ v2ClientLocalName } ` ;
3232 content +=
33- `const {\n` + ` ${ v3ObjectPattern } \n` + `} = ${ getV3DefaultLocalName ( v2ClientName ) } ;\n\n` ;
33+ `const {\n` + ` ${ v3ObjectPattern } \n` + `} = ${ getDefaultLocalName ( v2ClientName ) } ;\n\n` ;
3434 }
3535
3636 return content ;
You can’t perform that action at this time.
0 commit comments