New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-bedrock-agent-runtime

Package Overview
Dependencies
Maintainers
5
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-bedrock-agent-runtime - npm Package Compare versions

Comparing version 3.477.0 to 3.478.0

25

dist-cjs/pagination/RetrievePaginator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.paginateRetrieve = void 0;
const core_1 = require("@smithy/core");
const BedrockAgentRuntimeClient_1 = require("../BedrockAgentRuntimeClient");
const RetrieveCommand_1 = require("../commands/RetrieveCommand");
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new RetrieveCommand_1.RetrieveCommand(input), ...args);
};
async function* paginateRetrieve(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
if (config.client instanceof BedrockAgentRuntimeClient_1.BedrockAgentRuntimeClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected BedrockAgentRuntime | BedrockAgentRuntimeClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
exports.paginateRetrieve = paginateRetrieve;
exports.paginateRetrieve = (0, core_1.createPaginator)(BedrockAgentRuntimeClient_1.BedrockAgentRuntimeClient, RetrieveCommand_1.RetrieveCommand, "nextToken", "nextToken", "");

@@ -0,24 +1,4 @@

import { createPaginator } from "@smithy/core";
import { BedrockAgentRuntimeClient } from "../BedrockAgentRuntimeClient";
import { RetrieveCommand } from "../commands/RetrieveCommand";
const makePagedClientRequest = async (client, input, ...args) => {
return await client.send(new RetrieveCommand(input), ...args);
};
export async function* paginateRetrieve(config, input, ...additionalArguments) {
let token = config.startingToken || undefined;
let hasNext = true;
let page;
while (hasNext) {
input.nextToken = token;
if (config.client instanceof BedrockAgentRuntimeClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
}
else {
throw new Error("Invalid client, expected BedrockAgentRuntime | BedrockAgentRuntimeClient");
}
yield page;
const prevToken = token;
token = page.nextToken;
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
}
return undefined;
}
export const paginateRetrieve = createPaginator(BedrockAgentRuntimeClient, RetrieveCommand, "nextToken", "nextToken", "");

2

dist-types/pagination/RetrievePaginator.d.ts

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

*/
export declare function paginateRetrieve(config: BedrockAgentRuntimePaginationConfiguration, input: RetrieveCommandInput, ...additionalArguments: any): Paginator<RetrieveCommandOutput>;
export declare const paginateRetrieve: (config: BedrockAgentRuntimePaginationConfiguration, input: RetrieveCommandInput, ...rest: any[]) => Paginator<RetrieveCommandOutput>;

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

import { BedrockAgentRuntimePaginationConfiguration } from "./Interfaces";
export declare function paginateRetrieve(
export declare const paginateRetrieve: (
config: BedrockAgentRuntimePaginationConfiguration,
input: RetrieveCommandInput,
...additionalArguments: any
): Paginator<RetrieveCommandOutput>;
...rest: any[]
) => Paginator<RetrieveCommandOutput>;
{
"name": "@aws-sdk/client-bedrock-agent-runtime",
"description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
"version": "3.477.0",
"version": "3.478.0",
"scripts": {

@@ -23,5 +23,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",

@@ -31,6 +31,6 @@ "@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",

@@ -37,0 +37,0 @@ "@aws-sdk/util-user-agent-node": "3.470.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc