Socket
Socket
Sign inDemoInstall

@aws-sdk/middleware-endpoint-discovery

Package Overview
Dependencies
Maintainers
4
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.54.1 to 3.55.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
### Features
* **property-provider:** memoize() supports force refresh ([#3413](https://github.com/aws/aws-sdk-js-v3/issues/3413)) ([a79f962](https://github.com/aws/aws-sdk-js-v3/commit/a79f962873ff11a3d6f98199224155bd2ddc0b1e))
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)

@@ -8,0 +19,0 @@

6

dist-cjs/endpointDiscoveryMiddleware.js

@@ -18,3 +18,3 @@ "use strict";

const isEndpointDiscoveryEnabled = await config.endpointDiscoveryEnabled();
const cacheKey = await getCacheKey_1.getCacheKey(commandName, config, { identifiers });
const cacheKey = await (0, getCacheKey_1.getCacheKey)(commandName, config, { identifiers });
if (isDiscoveredEndpointRequired) {

@@ -25,3 +25,3 @@ if (isEndpointDiscoveryEnabled === false) {

}
await updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache(config, {
await (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, {
...middlewareConfig,

@@ -34,3 +34,3 @@ commandName,

else if (isEndpointDiscoveryEnabled) {
updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache(config, {
(0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, {
...middlewareConfig,

@@ -37,0 +37,0 @@ commandName,

@@ -13,3 +13,3 @@ "use strict";

applyToStack: (commandStack) => {
commandStack.add(endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware(pluginConfig, middlewareConfig), exports.endpointDiscoveryMiddlewareOptions);
commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, middlewareConfig), exports.endpointDiscoveryMiddlewareOptions);
},

@@ -20,3 +20,3 @@ });

applyToStack: (commandStack) => {
commandStack.add(endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: true }), exports.endpointDiscoveryMiddlewareOptions);
commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: true }), exports.endpointDiscoveryMiddlewareOptions);
},

@@ -27,5 +27,5 @@ });

applyToStack: (commandStack) => {
commandStack.add(endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: false }), exports.endpointDiscoveryMiddlewareOptions);
commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: false }), exports.endpointDiscoveryMiddlewareOptions);
},
});
exports.getEndpointDiscoveryOptionalPlugin = getEndpointDiscoveryOptionalPlugin;

@@ -11,3 +11,3 @@ var ENV_ENDPOINT_DISCOVERY = ["AWS_ENABLE_ENDPOINT_DISCOVERY", "AWS_ENDPOINT_DISCOVERY_ENABLED"];

if (value === "") {
throw Error("Environment variable " + envKey + " can't be empty of undefined, got \"" + value + "\"");
throw Error("Environment variable ".concat(envKey, " can't be empty of undefined, got \"").concat(value, "\""));
}

@@ -22,3 +22,3 @@ return !isFalsy(value);

if (value === undefined) {
throw Error("Shared config entry " + CONFIG_ENDPOINT_DISCOVERY + " can't be undefined, got \"" + value + "\"");
throw Error("Shared config entry ".concat(CONFIG_ENDPOINT_DISCOVERY, " can't be undefined, got \"").concat(value, "\""));
}

@@ -25,0 +25,0 @@ return !isFalsy(value);

@@ -29,3 +29,3 @@ import { __assign, __awaiter, __generator } from "tslib";

if (isEndpointDiscoveryEnabled === false) {
throw new Error("Endpoint Discovery is disabled but " + commandName + " on " + clientName + " requires it." +
throw new Error("Endpoint Discovery is disabled but ".concat(commandName, " on ").concat(clientName, " requires it.") +
" Please check your configurations.");

@@ -32,0 +32,0 @@ }

import { EndpointCache } from "@aws-sdk/endpoint-cache";
import { Credentials, Provider } from "@aws-sdk/types";
import { Credentials, MemoizedProvider, Provider } from "@aws-sdk/types";
export interface EndpointDiscoveryInputConfig {

@@ -7,3 +7,3 @@ }

isCustomEndpoint: boolean;
credentials: Provider<Credentials>;
credentials: MemoizedProvider<Credentials>;
endpointDiscoveryEnabledProvider: Provider<boolean | undefined>;

@@ -10,0 +10,0 @@ }

import { EndpointCache } from "@aws-sdk/endpoint-cache";
import { Credentials, Provider } from "@aws-sdk/types";
import { Credentials, MemoizedProvider, Provider } from "@aws-sdk/types";
export interface EndpointDiscoveryInputConfig {

@@ -7,3 +7,3 @@ }

isCustomEndpoint: boolean;
credentials: Provider<Credentials>;
credentials: MemoizedProvider<Credentials>;
endpointDiscoveryEnabledProvider: Provider<boolean | undefined>;

@@ -10,0 +10,0 @@ }

{
"name": "@aws-sdk/middleware-endpoint-discovery",
"version": "3.54.1",
"version": "3.55.0",
"scripts": {

@@ -22,3 +22,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"devDependencies": {
"@aws-sdk/node-config-provider": "3.54.1",
"@aws-sdk/node-config-provider": "3.55.0",
"@tsconfig/recommended": "1.0.1",

@@ -29,10 +29,10 @@ "concurrently": "7.0.0",

"typedoc": "0.19.2",
"typescript": "~4.3.5"
"typescript": "~4.6.2"
},
"dependencies": {
"@aws-sdk/config-resolver": "3.54.1",
"@aws-sdk/endpoint-cache": "3.52.0",
"@aws-sdk/protocol-http": "3.54.1",
"@aws-sdk/types": "3.54.1",
"tslib": "^2.3.0"
"@aws-sdk/config-resolver": "3.55.0",
"@aws-sdk/endpoint-cache": "3.55.0",
"@aws-sdk/protocol-http": "3.55.0",
"@aws-sdk/types": "3.55.0",
"tslib": "^2.3.1"
},

@@ -39,0 +39,0 @@ "engines": {

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