@aws-sdk/middleware-sdk-transcribe-streaming 3.972.10 → 3.972.12
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var serde = require('@smithy/core/serde');
|
|
4
|
+
var protocols = require('@smithy/core/protocols');
|
|
5
5
|
|
|
6
6
|
const eventStreamPayloadHandler = {
|
|
7
7
|
handle: (next, args) => next(args),
|
|
@@ -9,7 +9,7 @@ const eventStreamPayloadHandler = {
|
|
|
9
9
|
|
|
10
10
|
const injectResponseValuesMiddleware = (config) => (next) => async (args) => {
|
|
11
11
|
if (args.input.SessionId === undefined && isWebSocket(config)) {
|
|
12
|
-
args.input.SessionId =
|
|
12
|
+
args.input.SessionId = serde.v4();
|
|
13
13
|
}
|
|
14
14
|
const requestParams = {
|
|
15
15
|
...args.input,
|
|
@@ -33,7 +33,7 @@ const injectResponseValuesMiddlewareOptions = {
|
|
|
33
33
|
|
|
34
34
|
const websocketPortMiddleware = (options) => (next) => (args) => {
|
|
35
35
|
const { request } = args;
|
|
36
|
-
if (
|
|
36
|
+
if (protocols.HttpRequest.isInstance(request) && options.requestHandler.metadata?.handlerProtocol?.includes("websocket")) {
|
|
37
37
|
request.hostname = `${request.hostname}:8443`;
|
|
38
38
|
request.headers.host = request.hostname;
|
|
39
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpRequest } from "@smithy/
|
|
1
|
+
import { HttpRequest } from "@smithy/core/protocols";
|
|
2
2
|
export const websocketPortMiddleware = (options) => (next) => (args) => {
|
|
3
3
|
const { request } = args;
|
|
4
4
|
if (HttpRequest.isInstance(request) && options.requestHandler.metadata?.handlerProtocol?.includes("websocket")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-transcribe-streaming",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.12",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -24,13 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@aws-sdk/core": "^3.974.10",
|
|
27
28
|
"@aws-sdk/types": "^3.973.8",
|
|
28
|
-
"@
|
|
29
|
-
"@smithy/
|
|
30
|
-
"@smithy/protocol-http": "^5.3.14",
|
|
31
|
-
"@smithy/signature-v4": "^5.3.14",
|
|
29
|
+
"@smithy/core": "^3.24.1",
|
|
30
|
+
"@smithy/signature-v4": "^5.4.1",
|
|
32
31
|
"@smithy/types": "^4.14.1",
|
|
33
|
-
"@smithy/uuid": "^1.1.2",
|
|
34
32
|
"tslib": "^2.6.2"
|
|
35
33
|
},
|
|
36
34
|
"devDependencies": {
|