Socket
Book a DemoInstallSign in
Socket

@aws-sdk/client-cognito-identity

Package Overview
Dependencies
Maintainers
5
Versions
491
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-cognito-identity - npm Package Compare versions

Comparing version

to
3.478.0

26

dist-cjs/pagination/ListIdentityPoolsPaginator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.paginateListIdentityPools = void 0;
const core_1 = require("@smithy/core");
const CognitoIdentityClient_1 = require("../CognitoIdentityClient");
const ListIdentityPoolsCommand_1 = require("../commands/ListIdentityPoolsCommand");
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListIdentityPoolsCommand_1.ListIdentityPoolsCommand(input), ...args);
};
async function* paginateListIdentityPools(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.NextToken = token;
input["MaxResults"] = config.pageSize;
if (config.client instanceof CognitoIdentityClient_1.CognitoIdentityClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected CognitoIdentity | CognitoIdentityClient");
}
yield page;
const prevToken = token;
token = page.NextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
exports.paginateListIdentityPools = paginateListIdentityPools;
exports.paginateListIdentityPools = (0, core_1.createPaginator)(CognitoIdentityClient_1.CognitoIdentityClient, ListIdentityPoolsCommand_1.ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");

@@ -0,25 +1,4 @@

import { createPaginator } from "@smithy/core";
import { CognitoIdentityClient } from "../CognitoIdentityClient";
import { ListIdentityPoolsCommand, } from "../commands/ListIdentityPoolsCommand";
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new ListIdentityPoolsCommand(input), ...args);
};
export async function* paginateListIdentityPools(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.NextToken = token;
input["MaxResults"] = config.pageSize;
if (config.client instanceof CognitoIdentityClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected CognitoIdentity | CognitoIdentityClient");
}
yield page;
const prevToken = token;
token = page.NextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
export const paginateListIdentityPools = createPaginator(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");

2

dist-types/pagination/ListIdentityPoolsPaginator.d.ts

@@ -7,2 +7,2 @@ import { Paginator } from "@smithy/types";

*/
export declare function paginateListIdentityPools(config: CognitoIdentityPaginationConfiguration, input: ListIdentityPoolsCommandInput, ...additionalArguments: any): Paginator<ListIdentityPoolsCommandOutput>;
export declare const paginateListIdentityPools: (config: CognitoIdentityPaginationConfiguration, input: ListIdentityPoolsCommandInput, ...rest: any[]) => Paginator<ListIdentityPoolsCommandOutput>;

@@ -7,6 +7,6 @@ import { Paginator } from "@smithy/types";

import { CognitoIdentityPaginationConfiguration } from "./Interfaces";
export declare function paginateListIdentityPools(
export declare const paginateListIdentityPools: (
config: CognitoIdentityPaginationConfiguration,
input: ListIdentityPoolsCommandInput,
...additionalArguments: any
): Paginator<ListIdentityPoolsCommandOutput>;
...rest: any[]
) => Paginator<ListIdentityPoolsCommandOutput>;
{
"name": "@aws-sdk/client-cognito-identity",
"description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
"version": "3.477.0",
"version": "3.478.0",
"scripts": {

@@ -24,5 +24,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "3.477.0",
"@aws-sdk/client-sts": "3.478.0",
"@aws-sdk/core": "3.477.0",
"@aws-sdk/credential-provider-node": "3.477.0",
"@aws-sdk/credential-provider-node": "3.478.0",
"@aws-sdk/middleware-host-header": "3.468.0",

@@ -32,9 +32,10 @@ "@aws-sdk/middleware-logger": "3.468.0",

"@aws-sdk/middleware-signing": "3.468.0",
"@aws-sdk/middleware-user-agent": "3.470.0",
"@aws-sdk/middleware-user-agent": "3.478.0",
"@aws-sdk/region-config-resolver": "3.470.0",
"@aws-sdk/types": "3.468.0",
"@aws-sdk/util-endpoints": "3.470.0",
"@aws-sdk/util-endpoints": "3.478.0",
"@aws-sdk/util-user-agent-browser": "3.468.0",
"@aws-sdk/util-user-agent-node": "3.470.0",
"@smithy/config-resolver": "^2.0.21",
"@smithy/core": "^1.2.0",
"@smithy/fetch-http-handler": "^2.3.1",

@@ -65,3 +66,3 @@ "@smithy/hash-node": "^2.0.17",

"devDependencies": {
"@aws-sdk/client-iam": "3.477.0",
"@aws-sdk/client-iam": "3.478.0",
"@smithy/service-client-documentation-generator": "^2.0.0",

@@ -68,0 +69,0 @@ "@tsconfig/node14": "1.0.3",

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.