@aws-sdk/client-codeartifact 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist-cjs/pagination/ListDomainsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListPackageVersionAssetsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListPackageVersionsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListPackagesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListRepositoriesInDomainPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListRepositoriesPaginator.js +2 -24
  7. package/dist-cjs/protocols/Aws_restJson1.js +377 -635
  8. package/dist-es/pagination/ListDomainsPaginator.js +2 -23
  9. package/dist-es/pagination/ListPackageVersionAssetsPaginator.js +2 -23
  10. package/dist-es/pagination/ListPackageVersionsPaginator.js +2 -23
  11. package/dist-es/pagination/ListPackagesPaginator.js +2 -23
  12. package/dist-es/pagination/ListRepositoriesInDomainPaginator.js +2 -23
  13. package/dist-es/pagination/ListRepositoriesPaginator.js +2 -23
  14. package/dist-es/protocols/Aws_restJson1.js +377 -635
  15. package/dist-types/pagination/ListDomainsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListPackageVersionAssetsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListPackageVersionsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListPackagesPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListRepositoriesInDomainPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListRepositoriesPaginator.d.ts +1 -1
  21. package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListPackageVersionAssetsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListPackageVersionsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/ListPackagesPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListRepositoriesInDomainPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListRepositoriesPaginator.d.ts +3 -3
  27. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDomains = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeartifactClient_1 = require("../CodeartifactClient");
5
6
  const ListDomainsCommand_1 = require("../commands/ListDomainsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDomainsCommand_1.ListDomainsCommand(input), ...args);
8
- };
9
- async function* paginateListDomains(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeartifactClient_1.CodeartifactClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDomains = paginateListDomains;
7
+ exports.paginateListDomains = (0, core_1.createPaginator)(CodeartifactClient_1.CodeartifactClient, ListDomainsCommand_1.ListDomainsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPackageVersionAssets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeartifactClient_1 = require("../CodeartifactClient");
5
6
  const ListPackageVersionAssetsCommand_1 = require("../commands/ListPackageVersionAssetsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPackageVersionAssetsCommand_1.ListPackageVersionAssetsCommand(input), ...args);
8
- };
9
- async function* paginateListPackageVersionAssets(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeartifactClient_1.CodeartifactClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPackageVersionAssets = paginateListPackageVersionAssets;
7
+ exports.paginateListPackageVersionAssets = (0, core_1.createPaginator)(CodeartifactClient_1.CodeartifactClient, ListPackageVersionAssetsCommand_1.ListPackageVersionAssetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPackageVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeartifactClient_1 = require("../CodeartifactClient");
5
6
  const ListPackageVersionsCommand_1 = require("../commands/ListPackageVersionsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPackageVersionsCommand_1.ListPackageVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListPackageVersions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeartifactClient_1.CodeartifactClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPackageVersions = paginateListPackageVersions;
7
+ exports.paginateListPackageVersions = (0, core_1.createPaginator)(CodeartifactClient_1.CodeartifactClient, ListPackageVersionsCommand_1.ListPackageVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPackages = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeartifactClient_1 = require("../CodeartifactClient");
5
6
  const ListPackagesCommand_1 = require("../commands/ListPackagesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPackagesCommand_1.ListPackagesCommand(input), ...args);
8
- };
9
- async function* paginateListPackages(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeartifactClient_1.CodeartifactClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPackages = paginateListPackages;
7
+ exports.paginateListPackages = (0, core_1.createPaginator)(CodeartifactClient_1.CodeartifactClient, ListPackagesCommand_1.ListPackagesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRepositoriesInDomain = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeartifactClient_1 = require("../CodeartifactClient");
5
6
  const ListRepositoriesInDomainCommand_1 = require("../commands/ListRepositoriesInDomainCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRepositoriesInDomainCommand_1.ListRepositoriesInDomainCommand(input), ...args);
8
- };
9
- async function* paginateListRepositoriesInDomain(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeartifactClient_1.CodeartifactClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListRepositoriesInDomain = paginateListRepositoriesInDomain;
7
+ exports.paginateListRepositoriesInDomain = (0, core_1.createPaginator)(CodeartifactClient_1.CodeartifactClient, ListRepositoriesInDomainCommand_1.ListRepositoriesInDomainCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRepositories = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeartifactClient_1 = require("../CodeartifactClient");
5
6
  const ListRepositoriesCommand_1 = require("../commands/ListRepositoriesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRepositoriesCommand_1.ListRepositoriesCommand(input), ...args);
8
- };
9
- async function* paginateListRepositories(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeartifactClient_1.CodeartifactClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListRepositories = paginateListRepositories;
7
+ exports.paginateListRepositories = (0, core_1.createPaginator)(CodeartifactClient_1.CodeartifactClient, ListRepositoriesCommand_1.ListRepositoriesCommand, "nextToken", "nextToken", "maxResults");