Socket
Socket
Sign inDemoInstall

@smithy/middleware-endpoint

Package Overview
Dependencies
Maintainers
2
Versions
49
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 2.2.3 to 2.3.0

8

dist-cjs/adaptors/createConfigValueProvider.js

@@ -13,2 +13,10 @@ "use strict";

};
if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") {
return async () => {
var _a;
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
const configValue = (_a = credentials === null || credentials === void 0 ? void 0 : credentials.credentialScope) !== null && _a !== void 0 ? _a : credentials === null || credentials === void 0 ? void 0 : credentials.CredentialScope;
return configValue;
};
}
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {

@@ -15,0 +23,0 @@ return async () => {

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

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

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

14

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

@@ -26,8 +26,8 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",

"dependencies": {
"@smithy/middleware-serde": "^2.0.15",
"@smithy/node-config-provider": "^2.1.8",
"@smithy/shared-ini-file-loader": "^2.2.7",
"@smithy/types": "^2.7.0",
"@smithy/url-parser": "^2.0.15",
"@smithy/util-middleware": "^2.0.8",
"@smithy/middleware-serde": "^2.0.16",
"@smithy/node-config-provider": "^2.1.9",
"@smithy/shared-ini-file-loader": "^2.2.8",
"@smithy/types": "^2.8.0",
"@smithy/url-parser": "^2.0.16",
"@smithy/util-middleware": "^2.0.9",
"tslib": "^2.5.0"

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