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 3
3
CLIENT_NAMES_MAP ,
4
4
CLIENT_PACKAGE_NAMES_MAP ,
5
5
} 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" ;
7
7
import { getClientNameWithLocalSuffix } from "./getClientNameWithLocalSuffix" ;
8
8
9
9
export interface V3PackageImportEqualsCodeOptions {
@@ -18,7 +18,7 @@ export const getV3PackageImportEqualsCode = (
18
18
const { useLocalSuffix = false } = options || { } ;
19
19
20
20
for ( const v2ClientName of clientsToTest ) {
21
- const v3ClientDefaultLocalName = getV3DefaultLocalName ( v2ClientName ) ;
21
+ const v3ClientDefaultLocalName = getDefaultLocalName ( v2ClientName ) ;
22
22
const v3ClientPackageName = `@aws-sdk/${ CLIENT_PACKAGE_NAMES_MAP [ v2ClientName ] } ` ;
23
23
content += `import ${ v3ClientDefaultLocalName } = require("${ v3ClientPackageName } ");\n\n` ;
24
24
@@ -30,7 +30,7 @@ export const getV3PackageImportEqualsCode = (
30
30
const v3ObjectPattern =
31
31
v3ClientName === v2ClientLocalName ? v3ClientName : `${ v3ClientName } : ${ v2ClientLocalName } ` ;
32
32
content +=
33
- `const {\n` + ` ${ v3ObjectPattern } \n` + `} = ${ getV3DefaultLocalName ( v2ClientName ) } ;\n\n` ;
33
+ `const {\n` + ` ${ v3ObjectPattern } \n` + `} = ${ getDefaultLocalName ( v2ClientName ) } ;\n\n` ;
34
34
}
35
35
36
36
return content ;
You can’t perform that action at this time.
0 commit comments