@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.
- package/dist-cjs/pagination/ListDomainsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPackageVersionAssetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPackagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRepositoriesInDomainPaginator.js +2 -24
- package/dist-cjs/pagination/ListRepositoriesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +377 -635
- package/dist-es/pagination/ListDomainsPaginator.js +2 -23
- package/dist-es/pagination/ListPackageVersionAssetsPaginator.js +2 -23
- package/dist-es/pagination/ListPackageVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListPackagesPaginator.js +2 -23
- package/dist-es/pagination/ListRepositoriesInDomainPaginator.js +2 -23
- package/dist-es/pagination/ListRepositoriesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +377 -635
- package/dist-types/pagination/ListDomainsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPackageVersionAssetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPackageVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPackagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRepositoriesInDomainPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRepositoriesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPackageVersionAssetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPackageVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPackagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRepositoriesInDomainPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRepositoriesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
2
3
|
import { ListDomainsCommand } from "../commands/ListDomainsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDomainsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDomains(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeartifactClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDomains = createPaginator(CodeartifactClient, ListDomainsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
2
3
|
import { ListPackageVersionAssetsCommand, } from "../commands/ListPackageVersionAssetsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPackageVersionAssetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPackageVersionAssets(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeartifactClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPackageVersionAssets = createPaginator(CodeartifactClient, ListPackageVersionAssetsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
2
3
|
import { ListPackageVersionsCommand, } from "../commands/ListPackageVersionsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPackageVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPackageVersions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeartifactClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPackageVersions = createPaginator(CodeartifactClient, ListPackageVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
2
3
|
import { ListPackagesCommand, } from "../commands/ListPackagesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPackagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPackages(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeartifactClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPackages = createPaginator(CodeartifactClient, ListPackagesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
2
3
|
import { ListRepositoriesInDomainCommand, } from "../commands/ListRepositoriesInDomainCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRepositoriesInDomainCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRepositoriesInDomain(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeartifactClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRepositoriesInDomain = createPaginator(CodeartifactClient, ListRepositoriesInDomainCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
2
3
|
import { ListRepositoriesCommand, } from "../commands/ListRepositoriesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRepositoriesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRepositories(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeartifactClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Codeartifact | CodeartifactClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRepositories = createPaginator(CodeartifactClient, ListRepositoriesCommand, "nextToken", "nextToken", "maxResults");
|