Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@aws-sdk/middleware-endpoint

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-endpoint - npm Package Compare versions

Comparing version 3.299.0 to 3.303.0

2

dist-types/adaptors/createConfigValueProvider.d.ts
/**
* Normalize some key of the client config to an async provider.
* @private
* @internal
*

@@ -5,0 +5,0 @@ * @param configKey - the key to look up in config.

import { EndpointParameters, EndpointV2, HandlerExecutionContext } from "@aws-sdk/types";
import { EndpointResolvedConfig } from "../resolveEndpointConfig";
import { EndpointParameterInstructions } from "../types";
/**
* @internal
*/
export type EndpointParameterInstructionsSupplier = Partial<{

@@ -13,3 +16,3 @@ getEndpointParameterInstructions(): EndpointParameterInstructions;

*
* @private
* @internal
* @param commandInput - the input of the Command in question.

@@ -23,2 +26,5 @@ * @param instructionsSupplier - this is typically a Command constructor. A static function supplying the

export declare const getEndpointFromInstructions: <T extends EndpointParameters, CommandInput extends Record<string, unknown>, Config extends Record<string, unknown>>(commandInput: CommandInput, instructionsSupplier: EndpointParameterInstructionsSupplier, clientConfig: Partial<EndpointResolvedConfig<T>> & Config, context?: HandlerExecutionContext) => Promise<EndpointV2>;
/**
* @internal
*/
export declare const resolveParams: <T extends EndpointParameters, CommandInput extends Record<string, unknown>, Config extends Record<string, unknown>>(commandInput: CommandInput, instructionsSupplier: EndpointParameterInstructionsSupplier, clientConfig: Partial<EndpointResolvedConfig<T>> & Config) => Promise<EndpointParameters>;

@@ -0,2 +1,8 @@

/**
* @internal
*/
export * from "./getEndpointFromInstructions";
/**
* @internal
*/
export * from "./toEndpointV1";
import { Endpoint, EndpointV2 } from "@aws-sdk/types";
/**
* @internal
*/
export declare const toEndpointV1: (endpoint: string | Endpoint | EndpointV2) => Endpoint;

@@ -5,3 +5,3 @@ import { EndpointParameters, SerializeMiddleware } from "@aws-sdk/types";

/**
* @private
* @internal
*/

@@ -8,0 +8,0 @@ export declare const endpointMiddleware: <T extends EndpointParameters>({ config, instructions, }: {

import { EndpointParameters, Pluggable, RelativeMiddlewareOptions, SerializeHandlerOptions } from "@aws-sdk/types";
import { EndpointResolvedConfig } from "./resolveEndpointConfig";
import { EndpointParameterInstructions } from "./types";
/**
* @internal
*/
export declare const endpointMiddlewareOptions: SerializeHandlerOptions & RelativeMiddlewareOptions;
/**
* @internal
*/
export declare const getEndpointPlugin: <T extends EndpointParameters>(config: EndpointResolvedConfig<T>, instructions: EndpointParameterInstructions) => Pluggable<any, any>;

@@ -0,5 +1,20 @@

/**
* @internal
*/
export * from "./adaptors";
/**
* @internal
*/
export * from "./endpointMiddleware";
/**
* @internal
*/
export * from "./getEndpointPlugin";
/**
* @internal
*/
export * from "./resolveEndpointConfig";
/**
* @internal
*/
export * from "./types";
import { Endpoint, EndpointParameters, EndpointV2, Logger, Provider, UrlParser } from "@aws-sdk/types";
/**
* @internal
*
* Endpoint config interfaces and resolver for Endpoint v2. They live in separate package to allow per-service onboarding.

@@ -47,2 +49,4 @@ * When all services onboard Endpoint v2, the resolver in config-resolver package can be removed.

/**
* @internal
*
* This supercedes the similarly named EndpointsResolvedConfig (no parametric types)

@@ -81,3 +85,6 @@ * from resolveEndpointsConfig.ts in @aws-sdk/config-resolver.

}
/**
* @internal
*/
export declare const resolveEndpointConfig: <T, P extends EndpointParameters = EndpointParameters>(input: T & EndpointInputConfig<P> & PreviouslyResolved<P>) => T & EndpointResolvedConfig<P>;
export {};

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

/**
* @internal
*/
export * from "./s3";
import { EndpointParameters } from "@aws-sdk/types";
/**
* @internal
*/
export declare const resolveParamsForS3: (endpointParams: EndpointParameters) => Promise<EndpointParameters>;
/**
* @internal
*/
export declare const DOT_PATTERN: RegExp;
/**
* @internal
*/
export declare const S3_HOSTNAME_PATTERN: RegExp;

@@ -14,2 +23,5 @@ /**

export declare const isDnsCompatibleBucketName: (bucketName: string) => boolean;
/**
* @internal
*/
export declare const isArnBucketName: (bucketName: string) => boolean;

@@ -0,4 +1,10 @@

/**
* @internal
*/
export interface EndpointParameterInstructions {
[name: string]: BuiltInParamInstruction | ClientContextParamInstruction | StaticContextParamInstruction | ContextParamInstruction;
}
/**
* @internal
*/
export interface BuiltInParamInstruction {

@@ -8,2 +14,5 @@ type: "builtInParams";

}
/**
* @internal
*/
export interface ClientContextParamInstruction {

@@ -13,2 +22,5 @@ type: "clientContextParams";

}
/**
* @internal
*/
export interface StaticContextParamInstruction {

@@ -18,2 +30,5 @@ type: "staticContextParams";

}
/**
* @internal
*/
export interface ContextParamInstruction {

@@ -20,0 +35,0 @@ type: "contextParams";

{
"name": "@aws-sdk/middleware-endpoint",
"version": "3.299.0",
"version": "3.303.0",
"scripts": {

@@ -23,6 +23,6 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"dependencies": {
"@aws-sdk/middleware-serde": "3.296.0",
"@aws-sdk/types": "3.296.0",
"@aws-sdk/url-parser": "3.296.0",
"@aws-sdk/util-middleware": "3.296.0",
"@aws-sdk/middleware-serde": "3.303.0",
"@aws-sdk/types": "3.303.0",
"@aws-sdk/url-parser": "3.303.0",
"@aws-sdk/util-middleware": "3.303.0",
"tslib": "^2.5.0"

@@ -29,0 +29,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