-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add imports after the first occurrence of aws-sdk (#622)
- Loading branch information
Showing
58 changed files
with
335 additions
and
466 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 | ||
--- | ||
|
||
Add imports after the first occurrence of aws-sdk |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const CLIENTS_TO_TEST = ["ACM", "AccessAnalyzer", "Discovery"]; | ||
export const CLIENTS_TO_TEST = ["AccessAnalyzer", "Discovery", "ACM"]; | ||
|
||
export const LOCAL_NAME_SUFFIX = "Client"; |
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
5 changes: 4 additions & 1 deletion
5
scripts/generateNewClientTests/getServiceImportDeepWithNameOutput.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
3 changes: 2 additions & 1 deletion
3
scripts/generateNewClientTests/getServiceImportEqualsOutput.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
5 changes: 4 additions & 1 deletion
5
scripts/generateNewClientTests/getServiceImportEqualsWithNameOutput.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
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
5 changes: 4 additions & 1 deletion
5
scripts/generateNewClientTests/getServiceRequireDeepWithNameOutput.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
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
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
4 changes: 2 additions & 2 deletions
4
src/transforms/v2-to-v3/__fixtures__/new-client/global-require-property-with-name.input.js
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
const ACMClient = require("aws-sdk").ACM; | ||
const AccessAnalyzerClient = require("aws-sdk").AccessAnalyzer; | ||
const DiscoveryClient = require("aws-sdk").Discovery; | ||
const ACMClient = require("aws-sdk").ACM; | ||
|
||
new ACMClient(); | ||
new AccessAnalyzerClient(); | ||
new DiscoveryClient(); | ||
new ACMClient(); |
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
4 changes: 2 additions & 2 deletions
4
src/transforms/v2-to-v3/__fixtures__/new-client/global-require-property.input.js
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
const ACM = require("aws-sdk").ACM; | ||
const AccessAnalyzer = require("aws-sdk").AccessAnalyzer; | ||
const Discovery = require("aws-sdk").Discovery; | ||
const ACM = require("aws-sdk").ACM; | ||
|
||
new ACM(); | ||
new AccessAnalyzer(); | ||
new Discovery(); | ||
new ACM(); |
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
4 changes: 2 additions & 2 deletions
4
src/transforms/v2-to-v3/__fixtures__/new-client/service-import-deep-star-with-name.input.js
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
import * as ACMClient from "aws-sdk/clients/acm"; | ||
import * as AccessAnalyzerClient from "aws-sdk/clients/accessanalyzer"; | ||
import * as DiscoveryClient from "aws-sdk/clients/discovery"; | ||
import * as ACMClient from "aws-sdk/clients/acm"; | ||
|
||
new ACMClient(); | ||
new AccessAnalyzerClient(); | ||
new DiscoveryClient(); | ||
new ACMClient(); |
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
4 changes: 2 additions & 2 deletions
4
src/transforms/v2-to-v3/__fixtures__/new-client/service-import-deep-star.input.js
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
import * as ACM from "aws-sdk/clients/acm"; | ||
import * as AccessAnalyzer from "aws-sdk/clients/accessanalyzer"; | ||
import * as Discovery from "aws-sdk/clients/discovery"; | ||
import * as ACM from "aws-sdk/clients/acm"; | ||
|
||
new ACM(); | ||
new AccessAnalyzer(); | ||
new Discovery(); | ||
new ACM(); |
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
4 changes: 2 additions & 2 deletions
4
src/transforms/v2-to-v3/__fixtures__/new-client/service-import-deep-with-name.input.js
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
import ACMClient from "aws-sdk/clients/acm"; | ||
import AccessAnalyzerClient from "aws-sdk/clients/accessanalyzer"; | ||
import DiscoveryClient from "aws-sdk/clients/discovery"; | ||
import ACMClient from "aws-sdk/clients/acm"; | ||
|
||
new ACMClient(); | ||
new AccessAnalyzerClient(); | ||
new DiscoveryClient(); | ||
new ACMClient(); |
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
4 changes: 2 additions & 2 deletions
4
src/transforms/v2-to-v3/__fixtures__/new-client/service-import-deep.input.js
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
import ACM from "aws-sdk/clients/acm"; | ||
import AccessAnalyzer from "aws-sdk/clients/accessanalyzer"; | ||
import Discovery from "aws-sdk/clients/discovery"; | ||
import ACM from "aws-sdk/clients/acm"; | ||
|
||
new ACM(); | ||
new AccessAnalyzer(); | ||
new Discovery(); | ||
new ACM(); |
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
4 changes: 2 additions & 2 deletions
4
src/transforms/v2-to-v3/__fixtures__/new-client/service-import-equals-with-name.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
import ACMClient = require("aws-sdk/clients/acm"); | ||
import AccessAnalyzerClient = require("aws-sdk/clients/accessanalyzer"); | ||
import DiscoveryClient = require("aws-sdk/clients/discovery"); | ||
import ACMClient = require("aws-sdk/clients/acm"); | ||
|
||
new ACMClient(); | ||
new AccessAnalyzerClient(); | ||
new DiscoveryClient(); | ||
new ACMClient(); |
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
4 changes: 2 additions & 2 deletions
4
src/transforms/v2-to-v3/__fixtures__/new-client/service-import-equals.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
import ACM = require("aws-sdk/clients/acm"); | ||
import AccessAnalyzer = require("aws-sdk/clients/accessanalyzer"); | ||
import Discovery = require("aws-sdk/clients/discovery"); | ||
import ACM = require("aws-sdk/clients/acm"); | ||
|
||
new ACM(); | ||
new AccessAnalyzer(); | ||
new Discovery(); | ||
new ACM(); |
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
6 changes: 3 additions & 3 deletions
6
src/transforms/v2-to-v3/__fixtures__/new-client/service-import-with-name.input.js
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// This file is generated by scripts/generateNewClientTests/index.ts | ||
// Do not edit this file directly. Instead, edit the script and run it to regenerate this file. | ||
import { | ||
ACM as ACMClient, | ||
AccessAnalyzer as AccessAnalyzerClient, | ||
Discovery as DiscoveryClient | ||
Discovery as DiscoveryClient, | ||
ACM as ACMClient | ||
} from "aws-sdk"; | ||
|
||
new ACMClient(); | ||
new AccessAnalyzerClient(); | ||
new DiscoveryClient(); | ||
new ACMClient(); |
Oops, something went wrong.