@aws-sdk/eventstream-handler-node 3.972.27 → 3.972.29
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
|
@@ -77,7 +77,6 @@ class EventStreamPayloadHandler {
|
|
|
77
77
|
if (!(payload instanceof Readable)) {
|
|
78
78
|
throw new Error("Eventstream payload must be a Readable stream.");
|
|
79
79
|
}
|
|
80
|
-
const payloadStream = payload;
|
|
81
80
|
request.body = new PassThrough({
|
|
82
81
|
objectMode: true,
|
|
83
82
|
});
|
|
@@ -96,7 +95,7 @@ class EventStreamPayloadHandler {
|
|
|
96
95
|
let resolvePipeline;
|
|
97
96
|
const pipelineError = new Promise((resolve, reject) => {
|
|
98
97
|
resolvePipeline = () => resolve(undefined);
|
|
99
|
-
pipeline(
|
|
98
|
+
pipeline(payload, signingStream, request.body, (err) => {
|
|
100
99
|
if (err) {
|
|
101
100
|
reject(new Error(`Pipeline error in @aws-sdk/eventstream-handler-node: ${err.message}`, { cause: err }));
|
|
102
101
|
}
|
|
@@ -18,7 +18,6 @@ export class EventStreamPayloadHandler {
|
|
|
18
18
|
if (!(payload instanceof Readable)) {
|
|
19
19
|
throw new Error("Eventstream payload must be a Readable stream.");
|
|
20
20
|
}
|
|
21
|
-
const payloadStream = payload;
|
|
22
21
|
request.body = new PassThrough({
|
|
23
22
|
objectMode: true,
|
|
24
23
|
});
|
|
@@ -37,7 +36,7 @@ export class EventStreamPayloadHandler {
|
|
|
37
36
|
let resolvePipeline;
|
|
38
37
|
const pipelineError = new Promise((resolve, reject) => {
|
|
39
38
|
resolvePipeline = () => resolve(undefined);
|
|
40
|
-
pipeline(
|
|
39
|
+
pipeline(payload, signingStream, request.body, (err) => {
|
|
41
40
|
if (err) {
|
|
42
41
|
reject(new Error(`Pipeline error in @aws-sdk/eventstream-handler-node: ${err.message}`, { cause: err }));
|
|
43
42
|
}
|
|
@@ -16,9 +16,5 @@ export declare class EventSigningTransformStream extends Transform {
|
|
|
16
16
|
private readonly systemClockOffsetProvider;
|
|
17
17
|
private readonly staticCredentials?;
|
|
18
18
|
constructor(options: EventSigningStreamOptions);
|
|
19
|
-
_transform(
|
|
20
|
-
chunk: Uint8Array,
|
|
21
|
-
encoding: string,
|
|
22
|
-
callback: TransformCallback
|
|
23
|
-
): Promise<void>;
|
|
19
|
+
_transform(chunk: Uint8Array, encoding: string, callback: TransformCallback): Promise<void>;
|
|
24
20
|
}
|
|
@@ -18,9 +18,7 @@ export interface EventStreamPayloadHandlerOptions {
|
|
|
18
18
|
systemClockOffset?: number;
|
|
19
19
|
credentials?: AwsCredentialIdentityProvider;
|
|
20
20
|
}
|
|
21
|
-
export declare class EventStreamPayloadHandler
|
|
22
|
-
implements IEventStreamPayloadHandler
|
|
23
|
-
{
|
|
21
|
+
export declare class EventStreamPayloadHandler implements IEventStreamPayloadHandler {
|
|
24
22
|
private readonly messageSigner;
|
|
25
23
|
private readonly eventStreamCodec;
|
|
26
24
|
private readonly systemClockOffsetProvider;
|
|
@@ -29,6 +27,6 @@ export declare class EventStreamPayloadHandler
|
|
|
29
27
|
handle<T extends MetadataBearer>(
|
|
30
28
|
next: FinalizeHandler<any, T>,
|
|
31
29
|
args: FinalizeHandlerArguments<any>,
|
|
32
|
-
context?: HandlerExecutionContext
|
|
30
|
+
context?: HandlerExecutionContext,
|
|
33
31
|
): Promise<FinalizeHandlerOutput<T>>;
|
|
34
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/eventstream-handler-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.29",
|
|
4
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/eventstream-handler-node",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "AWS SDK for JavaScript Team",
|
|
8
|
+
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
13
|
+
"directory": "packages-internal/eventstream-handler-node"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist-*/**"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"main": "./dist-cjs/index.js",
|
|
20
|
+
"module": "./dist-es/index.js",
|
|
21
|
+
"types": "./dist-types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
"<4.5": {
|
|
24
|
+
"dist-types/*": [
|
|
25
|
+
"dist-types/ts3.4/*"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
4
29
|
"scripts": {
|
|
5
30
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
31
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -12,18 +37,9 @@
|
|
|
12
37
|
"test": "yarn g:vitest run",
|
|
13
38
|
"test:watch": "yarn g:vitest watch"
|
|
14
39
|
},
|
|
15
|
-
"main": "./dist-cjs/index.js",
|
|
16
|
-
"module": "./dist-es/index.js",
|
|
17
|
-
"types": "./dist-types/index.d.ts",
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"author": {
|
|
20
|
-
"name": "AWS SDK for JavaScript Team",
|
|
21
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
22
|
-
},
|
|
23
|
-
"license": "Apache-2.0",
|
|
24
40
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "^3.974.
|
|
26
|
-
"@smithy/core": "^3.29.
|
|
41
|
+
"@aws-sdk/types": "^3.974.2",
|
|
42
|
+
"@smithy/core": "^3.29.4",
|
|
27
43
|
"@smithy/types": "^4.16.1",
|
|
28
44
|
"tslib": "^2.6.2"
|
|
29
45
|
},
|
|
@@ -37,21 +53,5 @@
|
|
|
37
53
|
},
|
|
38
54
|
"engines": {
|
|
39
55
|
"node": ">=20.0.0"
|
|
40
|
-
},
|
|
41
|
-
"typesVersions": {
|
|
42
|
-
"<4.5": {
|
|
43
|
-
"dist-types/*": [
|
|
44
|
-
"dist-types/ts3.4/*"
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"files": [
|
|
49
|
-
"dist-*/**"
|
|
50
|
-
],
|
|
51
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/eventstream-handler-node",
|
|
52
|
-
"repository": {
|
|
53
|
-
"type": "git",
|
|
54
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
55
|
-
"directory": "packages-internal/eventstream-handler-node"
|
|
56
56
|
}
|
|
57
57
|
}
|