-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace types when named require is used from aws-sdk (#298)
- Loading branch information
Showing
10 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"aws-sdk-js-codemod": patch | ||
--- | ||
|
||
Replace types for requires |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/api-basic-type/global-require.input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const AWS = require("aws-sdk"); | ||
|
||
const testTags: AWS.S3.Tag[] = [{ Key: "key", Value: "value" }]; |
6 changes: 6 additions & 0 deletions
6
src/transforms/v2-to-v3/__fixtures__/api-basic-type/global-require.output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const AWS_S3 = require("@aws-sdk/client-s3"), | ||
{ | ||
S3 | ||
} = AWS_S3; | ||
|
||
const testTags: AWS_S3.Tag[] = [{ Key: "key", Value: "value" }]; |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/api-basic-type/service-require-deep.input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const S3 = require("aws-sdk/clients/s3"); | ||
|
||
const testTags: S3.Tag[] = [{ Key: "key", Value: "value" }]; |
6 changes: 6 additions & 0 deletions
6
src/transforms/v2-to-v3/__fixtures__/api-basic-type/service-require-deep.output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const AWS_S3 = require("@aws-sdk/client-s3"), | ||
{ | ||
S3 | ||
} = AWS_S3; | ||
|
||
const testTags: AWS_S3.Tag[] = [{ Key: "key", Value: "value" }]; |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/api-basic-type/service-require.input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const { S3 } = require("aws-sdk"); | ||
|
||
const testTags: S3.Tag[] = [{ Key: "key", Value: "value" }]; |
6 changes: 6 additions & 0 deletions
6
src/transforms/v2-to-v3/__fixtures__/api-basic-type/service-require.output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const AWS_S3 = require("@aws-sdk/client-s3"), | ||
{ | ||
S3 | ||
} = AWS_S3; | ||
|
||
const testTags: AWS_S3.Tag[] = [{ Key: "key", Value: "value" }]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters