Skip to content

Commit 2615e01

Browse files
authored
Disable DocumentClient deep import unsupported comments (#848)
1 parent f090978 commit 2615e01

9 files changed

+5
-97
lines changed

.changeset/blue-foxes-return.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"aws-sdk-js-codemod": patch
3+
---
4+
5+
Disable DocumentClient deep import unsupported comments

src/transforms/v2-to-v3/__fixtures__/ddb-doc-client/service-import-deep-named.input.js

-4
This file was deleted.

src/transforms/v2-to-v3/__fixtures__/ddb-doc-client/service-import-deep-named.output.js

-6
This file was deleted.

src/transforms/v2-to-v3/__fixtures__/ddb-doc-client/service-require-deep-named.input.js

-4
This file was deleted.

src/transforms/v2-to-v3/__fixtures__/ddb-doc-client/service-require-deep-named.output.js

-6
This file was deleted.

src/transforms/v2-to-v3/apis/addNotSupportedComments.ts

-27
This file was deleted.

src/transforms/v2-to-v3/apis/getNodesWithDocClientNamedImportFromDeepPath.ts

-46
This file was deleted.

src/transforms/v2-to-v3/apis/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export * from "./addEmptyObjectForUndefined";
22
export * from "./addNotSupportedClientComments";
3-
export * from "./addNotSupportedComments";
43
export * from "./getClientIdentifiersRecord";
54
export * from "./getClientWaiterStates";
65
export * from "./getCommandName";

src/transforms/v2-to-v3/transformer.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { API, FileInfo } from "jscodeshift";
22

33
import {
4-
addNotSupportedComments,
54
addNotSupportedClientComments,
65
removePromiseCalls,
76
replaceWaiterApi,
@@ -49,8 +48,6 @@ const transformer = async (file: FileInfo, api: API) => {
4948
return file.source;
5049
}
5150

52-
addNotSupportedComments(j, source, importType);
53-
5451
const v2GlobalName = getGlobalNameFromModule(j, source);
5552
const v2ClientNamesRecord = getClientNamesRecord(j, source, importType);
5653

0 commit comments

Comments
 (0)