New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/middleware-flexible-checksums

Package Overview
Dependencies
Maintainers
5
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-flexible-checksums - npm Package Compare versions

Comparing version 3.714.0 to 3.715.0

dist-es/hasHeaderWithPrefix.js

14

dist-cjs/index.js

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

// src/hasHeaderWithPrefix.ts
var hasHeaderWithPrefix = /* @__PURE__ */ __name((headerPrefix, headers) => {
const soughtHeaderPrefix = headerPrefix.toLowerCase();
for (const headerName of Object.keys(headers)) {
if (headerName.toLowerCase().startsWith(soughtHeaderPrefix)) {
return true;
}
}
return false;
}, "hasHeaderWithPrefix");
// src/isStreaming.ts

@@ -216,2 +227,5 @@ var import_is_array_buffer = require("@smithy/is-array-buffer");

}
if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) {
return next(args);
}
const { request, input } = args;

@@ -218,0 +232,0 @@ const { body: requestBody, headers } = request;

4

dist-es/flexibleChecksumsMiddleware.js

@@ -7,2 +7,3 @@ import { setFeature } from "@aws-sdk/core";

import { hasHeader } from "./hasHeader";
import { hasHeaderWithPrefix } from "./hasHeaderWithPrefix";
import { isStreaming } from "./isStreaming";

@@ -21,2 +22,5 @@ import { selectChecksumAlgorithmFunction } from "./selectChecksumAlgorithmFunction";

}
if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) {
return next(args);
}
const { request, input } = args;

@@ -23,0 +27,0 @@ const { body: requestBody, headers } = request;

2

package.json
{
"name": "@aws-sdk/middleware-flexible-checksums",
"version": "3.714.0",
"version": "3.715.0",
"scripts": {

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

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