Socket
Socket
Sign inDemoInstall

@smithy/middleware-endpoint

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/middleware-endpoint - npm Package Compare versions

Comparing version 3.0.5 to 3.1.0

7

dist-cjs/index.js

@@ -82,2 +82,9 @@ var __defProp = Object.defineProperty;

}
if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
return async () => {
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
const configValue = (credentials == null ? void 0 : credentials.accountId) ?? (credentials == null ? void 0 : credentials.AccountId);
return configValue;
};
}
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {

@@ -84,0 +91,0 @@ return async () => {

@@ -16,2 +16,9 @@ export const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => {

}
if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
return async () => {
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
const configValue = credentials?.accountId ?? credentials?.AccountId;
return configValue;
};
}
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {

@@ -18,0 +25,0 @@ return async () => {

2

package.json
{
"name": "@smithy/middleware-endpoint",
"version": "3.0.5",
"version": "3.1.0",
"scripts": {

@@ -5,0 +5,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",

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