@aws-sdk/middleware-sdk-transcribe-streaming 3.972.20 → 3.972.21
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 +4 -6
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var serde = require('@smithy/core/serde');
|
|
4
|
-
var protocols = require('@smithy/core/protocols');
|
|
1
|
+
const { v4 } = require("@smithy/core/serde");
|
|
2
|
+
const { HttpRequest } = require("@smithy/core/protocols");
|
|
5
3
|
|
|
6
4
|
const eventStreamPayloadHandler = {
|
|
7
5
|
handle: (next, args) => next(args),
|
|
@@ -9,7 +7,7 @@ const eventStreamPayloadHandler = {
|
|
|
9
7
|
|
|
10
8
|
const injectResponseValuesMiddleware = (config) => (next) => async (args) => {
|
|
11
9
|
if (args.input.SessionId === undefined && isWebSocket(config)) {
|
|
12
|
-
args.input.SessionId =
|
|
10
|
+
args.input.SessionId = v4();
|
|
13
11
|
}
|
|
14
12
|
const requestParams = {
|
|
15
13
|
...args.input,
|
|
@@ -33,7 +31,7 @@ const injectResponseValuesMiddlewareOptions = {
|
|
|
33
31
|
|
|
34
32
|
const websocketPortMiddleware = (options) => (next) => (args) => {
|
|
35
33
|
const { request } = args;
|
|
36
|
-
if (
|
|
34
|
+
if (HttpRequest.isInstance(request) && options.requestHandler.metadata?.handlerProtocol?.includes("websocket")) {
|
|
37
35
|
request.hostname = `${request.hostname}:8443`;
|
|
38
36
|
request.headers.host = request.hostname;
|
|
39
37
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-transcribe-streaming",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.21",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
9
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
10
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
11
11
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
12
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
16
|
"test:watch": "yarn g:vitest watch",
|
|
17
17
|
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
+
"@aws-sdk/types": "^3.973.13",
|
|
28
28
|
"@smithy/core": "^3.24.6",
|
|
29
29
|
"@smithy/types": "^4.14.3",
|
|
30
30
|
"tslib": "^2.6.2"
|