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

@aws-sdk/middleware-stack

Package Overview
Dependencies
Maintainers
4
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.54.1 to 3.55.0

8

CHANGELOG.md

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

# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
**Note:** Version bump only for package @aws-sdk/middleware-stack
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)

@@ -8,0 +16,0 @@

4

dist-cjs/MiddlewareStack.js

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

},
clone: () => cloneTo(exports.constructStack()),
clone: () => cloneTo((0, exports.constructStack)()),
use: (plugin) => {

@@ -190,3 +190,3 @@ plugin.applyToStack(stack);

concat: (from) => {
const cloned = cloneTo(exports.constructStack());
const cloned = cloneTo((0, exports.constructStack)());
cloned.use(from);

@@ -193,0 +193,0 @@ return cloned;

@@ -57,3 +57,3 @@ import { __assign, __read, __spreadArray, __values } from "tslib";

else {
expandedMiddlewareList.push.apply(expandedMiddlewareList, __spreadArray([], __read(expandRelativeMiddlewareList(entry))));
expandedMiddlewareList.push.apply(expandedMiddlewareList, __spreadArray([], __read(expandRelativeMiddlewareList(entry)), false));
}

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

else {
expandedMiddlewareList.push.apply(expandedMiddlewareList, __spreadArray([], __read(expandRelativeMiddlewareList(entry))));
expandedMiddlewareList.push.apply(expandedMiddlewareList, __spreadArray([], __read(expandRelativeMiddlewareList(entry)), false));
}

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

if (toMiddleware === undefined) {
throw new Error(entry.toMiddleware + " is not found when adding " + (entry.name || "anonymous") + " middleware " + entry.relation + " " + entry.toMiddleware);
throw new Error("".concat(entry.toMiddleware, " is not found when adding ").concat(entry.name || "anonymous", " middleware ").concat(entry.relation, " ").concat(entry.toMiddleware));
}

@@ -107,3 +107,3 @@ if (entry.relation === "after") {

.reduce(function (wholeList, expendedMiddlewareList) {
wholeList.push.apply(wholeList, __spreadArray([], __read(expendedMiddlewareList)));
wholeList.push.apply(wholeList, __spreadArray([], __read(expendedMiddlewareList), false));
return wholeList;

@@ -121,8 +121,8 @@ }, []);

if (!override)
throw new Error("Duplicate middleware name '" + name + "'");
throw new Error("Duplicate middleware name '".concat(name, "'"));
var toOverrideIndex = absoluteEntries.findIndex(function (entry) { return entry.name === name; });
var toOverride = absoluteEntries[toOverrideIndex];
if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {
throw new Error("\"" + name + "\" middleware with " + toOverride.priority + " priority in " + toOverride.step + " step cannot be " +
("overridden by same-name middleware with " + entry.priority + " priority in " + entry.step + " step."));
throw new Error("\"".concat(name, "\" middleware with ").concat(toOverride.priority, " priority in ").concat(toOverride.step, " step cannot be ") +
"overridden by same-name middleware with ".concat(entry.priority, " priority in ").concat(entry.step, " step."));
}

@@ -141,8 +141,8 @@ absoluteEntries.splice(toOverrideIndex, 1);

if (!override)
throw new Error("Duplicate middleware name '" + name + "'");
throw new Error("Duplicate middleware name '".concat(name, "'"));
var toOverrideIndex = relativeEntries.findIndex(function (entry) { return entry.name === name; });
var toOverride = relativeEntries[toOverrideIndex];
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
throw new Error("\"" + name + "\" middleware " + toOverride.relation + " \"" + toOverride.toMiddleware + "\" middleware cannot be overridden " +
("by same-name middleware " + entry.relation + " \"" + entry.toMiddleware + "\" middleware."));
throw new Error("\"".concat(name, "\" middleware ").concat(toOverride.relation, " \"").concat(toOverride.toMiddleware, "\" middleware cannot be overridden ") +
"by same-name middleware ".concat(entry.relation, " \"").concat(entry.toMiddleware, "\" middleware."));
}

@@ -149,0 +149,0 @@ relativeEntries.splice(toOverrideIndex, 1);

{
"name": "@aws-sdk/middleware-stack",
"version": "3.54.1",
"version": "3.55.0",
"description": "Provides a means for composing multiple middleware functions into a single handler",

@@ -24,6 +24,6 @@ "scripts": {

"dependencies": {
"tslib": "^2.3.0"
"tslib": "^2.3.1"
},
"devDependencies": {
"@aws-sdk/types": "3.54.1",
"@aws-sdk/types": "3.55.0",
"@tsconfig/recommended": "1.0.1",

@@ -34,3 +34,3 @@ "concurrently": "7.0.0",

"typedoc": "0.19.2",
"typescript": "~4.3.5"
"typescript": "~4.6.2"
},

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