Socket
Socket
Sign inDemoInstall

@aws-sdk/eventstream-handler-node

Package Overview
Dependencies
Maintainers
5
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/eventstream-handler-node - npm Package Compare versions

Comparing version 3.609.0 to 3.620.0

19

dist-cjs/index.js

@@ -99,2 +99,3 @@ "use strict";

async handle(next, args, context = {}) {
var _a, _b;
const request = args.request;

@@ -109,11 +110,4 @@ const { body: payload, query } = request;

});
let result;
try {
result = await next(args);
} catch (e) {
request.body.end();
throw e;
}
const match = (request.headers["authorization"] || "").match(/Signature=([\w]+)$/);
const priorSignature = (match || [])[1] || query && query["X-Amz-Signature"] || "";
const match = (_b = (_a = request.headers) == null ? void 0 : _a.authorization) == null ? void 0 : _b.match(/Signature=([\w]+)$/);
const priorSignature = (match == null ? void 0 : match[1]) ?? (query == null ? void 0 : query["X-Amz-Signature"]) ?? "";
const signingStream = new EventSigningStream({

@@ -130,2 +124,9 @@ priorSignature,

});
let result;
try {
result = await next(args);
} catch (e) {
request.body.end();
throw e;
}
return result;

@@ -132,0 +133,0 @@ }

@@ -20,12 +20,4 @@ import { EventStreamCodec } from "@smithy/eventstream-codec";

});
let result;
try {
result = await next(args);
}
catch (e) {
request.body.end();
throw e;
}
const match = (request.headers["authorization"] || "").match(/Signature=([\w]+)$/);
const priorSignature = (match || [])[1] || (query && query["X-Amz-Signature"]) || "";
const match = request.headers?.authorization?.match(/Signature=([\w]+)$/);
const priorSignature = match?.[1] ?? query?.["X-Amz-Signature"] ?? "";
const signingStream = new EventSigningStream({

@@ -42,4 +34,12 @@ priorSignature,

});
let result;
try {
result = await next(args);
}
catch (e) {
request.body.end();
throw e;
}
return result;
}
}
{
"name": "@aws-sdk/eventstream-handler-node",
"version": "3.609.0",
"version": "3.620.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