@aws-sdk/eventstream-handler-node 3.972.5 → 3.972.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -79,7 +79,10 @@ class EventStreamPayloadHandler {
79
79
  objectMode: true,
80
80
  });
81
81
  const match = request.headers?.authorization?.match(/Signature=([\w]+)$/);
82
- const priorSignature = match?.[1] ?? query?.["X-Amz-Signature"] ?? "";
82
+ let priorSignature = match?.[1] ?? query?.["X-Amz-Signature"] ?? "";
83
+ if (context.__staticSignature) {
84
+ priorSignature = "";
85
+ }
83
86
  const signingStream = new EventSigningTransformStream({
84
87
  priorSignature,
85
88
  eventStreamCodec: this.eventStreamCodec,
@@ -21,7 +21,10 @@ export class EventStreamPayloadHandler {
21
21
  objectMode: true,
22
22
  });
23
23
  const match = request.headers?.authorization?.match(/Signature=([\w]+)$/);
24
- const priorSignature = match?.[1] ?? query?.["X-Amz-Signature"] ?? "";
24
+ let priorSignature = match?.[1] ?? query?.["X-Amz-Signature"] ?? "";
25
+ if (context.__staticSignature) {
26
+ priorSignature = "";
27
+ }
25
28
  const signingStream = new EventSigningTransformStream({
26
29
  priorSignature,
27
30
  eventStreamCodec: this.eventStreamCodec,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/eventstream-handler-node",
3
- "version": "3.972.5",
3
+ "version": "3.972.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline eventstream-handler-node",