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

@smithy/middleware-compression

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/middleware-compression - npm Package Compare versions

Comparing version 3.0.10 to 3.0.11

6

dist-cjs/index.js

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

if (isRequestCompressed) {
if (headers["Content-Encoding"]) {
if (headers["content-encoding"]) {
updatedHeaders = {
...headers,
"Content-Encoding": `${headers["Content-Encoding"]},${algorithm}`
"content-encoding": `${headers["content-encoding"]},${algorithm}`
};
} else {
updatedHeaders = { ...headers, "Content-Encoding": algorithm };
updatedHeaders = { ...headers, "content-encoding": algorithm };
}

@@ -130,0 +130,0 @@ break;

@@ -40,10 +40,10 @@ import { HttpRequest } from "@smithy/protocol-http";

if (isRequestCompressed) {
if (headers["Content-Encoding"]) {
if (headers["content-encoding"]) {
updatedHeaders = {
...headers,
"Content-Encoding": `${headers["Content-Encoding"]},${algorithm}`,
"content-encoding": `${headers["content-encoding"]},${algorithm}`,
};
}
else {
updatedHeaders = { ...headers, "Content-Encoding": algorithm };
updatedHeaders = { ...headers, "content-encoding": algorithm };
}

@@ -50,0 +50,0 @@ break;

{
"name": "@smithy/middleware-compression",
"version": "3.0.10",
"version": "3.0.11",
"description": "Middleware and Plugin for request compression.",

@@ -19,7 +19,7 @@ "scripts": {

"@smithy/is-array-buffer": "^3.0.0",
"@smithy/node-config-provider": "^3.1.7",
"@smithy/protocol-http": "^4.1.3",
"@smithy/types": "^3.4.2",
"@smithy/node-config-provider": "^3.1.8",
"@smithy/protocol-http": "^4.1.4",
"@smithy/types": "^3.5.0",
"@smithy/util-config-provider": "^3.0.0",
"@smithy/util-middleware": "^3.0.6",
"@smithy/util-middleware": "^3.0.7",
"@smithy/util-utf8": "^3.0.0",

@@ -26,0 +26,0 @@ "fflate": "0.8.1",

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