@aws-sdk/client-transcribe-streaming 3.1076.0 → 3.1077.0
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 -3
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +11 -13
package/dist-cjs/index.js
CHANGED
|
@@ -14,9 +14,10 @@ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
|
14
14
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
15
15
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
16
16
|
const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
|
|
17
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
17
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
18
18
|
const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
|
|
19
19
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
20
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
20
21
|
const { getTranscribeStreamingPlugin } = require("@aws-sdk/middleware-sdk-transcribe-streaming");
|
|
21
22
|
|
|
22
23
|
const defaultTranscribeStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
@@ -72,7 +73,7 @@ const commonParams = {
|
|
|
72
73
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
73
74
|
};
|
|
74
75
|
|
|
75
|
-
var version = "3.
|
|
76
|
+
var version = "3.1076.0";
|
|
76
77
|
var packageInfo = {
|
|
77
78
|
version: version};
|
|
78
79
|
|
|
@@ -855,6 +856,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
855
856
|
serviceTarget: "Transcribe",
|
|
856
857
|
},
|
|
857
858
|
serviceId: config?.serviceId ?? "Transcribe Streaming",
|
|
859
|
+
sha256: config?.sha256 ?? Sha256,
|
|
858
860
|
urlParser: config?.urlParser ?? parseUrl,
|
|
859
861
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
860
862
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -893,7 +895,6 @@ const getRuntimeConfig = (config) => {
|
|
|
893
895
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
894
896
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
895
897
|
}, config),
|
|
896
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
897
898
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
898
899
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
899
900
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
|
|
5
4
|
import { WebSocketFetchHandler as WebSocketRequestHandler, } from "@aws-sdk/middleware-websocket";
|
|
@@ -29,7 +28,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
29
28
|
requestHandler: WebSocketRequestHandler.create(config?.requestHandler
|
|
30
29
|
?? defaultConfigProvider, HttpRequestHandler.create(defaultConfigProvider)),
|
|
31
30
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
32
|
-
sha256: config?.sha256 ?? Sha256,
|
|
33
31
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
34
32
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
33
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -7,7 +7,7 @@ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smi
|
|
|
7
7
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
8
8
|
import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
|
|
9
9
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
10
|
-
import { calculateBodyLength
|
|
10
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
11
11
|
import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
13
|
export const getRuntimeConfig = (config) => {
|
|
@@ -42,7 +42,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
42
42
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
43
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
44
44
|
}, config),
|
|
45
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
46
45
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
47
46
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
48
47
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
|
|
3
2
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
3
|
export const getRuntimeConfig = (config) => {
|
|
@@ -8,6 +7,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
8
7
|
...config,
|
|
9
8
|
runtime: "react-native",
|
|
10
9
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => eventStreamPayloadHandler),
|
|
11
|
-
sha256: config?.sha256 ?? Sha256,
|
|
12
10
|
};
|
|
13
11
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "Transcribe",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "Transcribe Streaming",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -15,7 +15,6 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
|
|
|
15
15
|
region: string | import("@smithy/types").Provider<any>;
|
|
16
16
|
requestHandler: WebSocketRequestHandler;
|
|
17
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
18
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
19
18
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
20
19
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
21
20
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
|
|
|
26
25
|
[setting: string]: unknown;
|
|
27
26
|
};
|
|
28
27
|
apiVersion: string;
|
|
28
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
29
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
30
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
31
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -16,7 +16,6 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
|
|
|
16
16
|
region: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
18
18
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
19
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
20
19
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
21
20
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
21
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
@@ -28,6 +27,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
|
|
|
28
27
|
[setting: string]: unknown;
|
|
29
28
|
};
|
|
30
29
|
apiVersion: string;
|
|
30
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
31
31
|
urlParser: import("@smithy/types").UrlParser;
|
|
32
32
|
base64Decoder: import("@smithy/types").Decoder;
|
|
33
33
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -5,7 +5,6 @@ import type { TranscribeStreamingClientConfig } from "./TranscribeStreamingClien
|
|
|
5
5
|
export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
7
|
eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
|
|
8
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
9
8
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/core/transport").HttpRequest, import("@smithy/core/transport").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
10
9
|
updateHttpClientConfig(key: never, value: never): void;
|
|
11
10
|
httpHandlerConfigs(): {};
|
|
@@ -17,6 +16,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
|
|
|
17
16
|
[setting: string]: unknown;
|
|
18
17
|
};
|
|
19
18
|
apiVersion: string;
|
|
19
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
20
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
21
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
22
22
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
|
|
|
21
21
|
defaultNamespace?: string;
|
|
22
22
|
};
|
|
23
23
|
serviceId: string;
|
|
24
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
24
25
|
urlParser: import("@smithy/types").UrlParser;
|
|
25
26
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
26
27
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
@@ -22,7 +22,6 @@ export declare const getRuntimeConfig: (
|
|
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
|
23
23
|
requestHandler: WebSocketRequestHandler;
|
|
24
24
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
26
25
|
streamCollector: (
|
|
27
26
|
stream:
|
|
28
27
|
| import("stream").Readable
|
|
@@ -44,6 +43,7 @@ export declare const getRuntimeConfig: (
|
|
|
44
43
|
[setting: string]: unknown;
|
|
45
44
|
};
|
|
46
45
|
apiVersion: string;
|
|
46
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
47
47
|
urlParser: import("@smithy/types").UrlParser;
|
|
48
48
|
base64Decoder: import("@smithy/types").Decoder;
|
|
49
49
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -25,7 +25,6 @@ export declare const getRuntimeConfig: (
|
|
|
25
25
|
| RequestHandler
|
|
26
26
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
29
28
|
streamCollector: (
|
|
30
29
|
stream:
|
|
31
30
|
| import("stream").Readable
|
|
@@ -46,6 +45,7 @@ export declare const getRuntimeConfig: (
|
|
|
46
45
|
[setting: string]: unknown;
|
|
47
46
|
};
|
|
48
47
|
apiVersion: string;
|
|
48
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
49
49
|
urlParser: import("@smithy/types").UrlParser;
|
|
50
50
|
base64Decoder: import("@smithy/types").Decoder;
|
|
51
51
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -4,7 +4,6 @@ export declare const getRuntimeConfig: (
|
|
|
4
4
|
) => {
|
|
5
5
|
runtime: string;
|
|
6
6
|
eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
|
|
7
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
8
7
|
requestHandler:
|
|
9
8
|
| import("@smithy/types").NodeHttpHandlerOptions
|
|
10
9
|
| import("@smithy/types").FetchHttpHandlerOptions
|
|
@@ -33,6 +32,7 @@ export declare const getRuntimeConfig: (
|
|
|
33
32
|
[setting: string]: unknown;
|
|
34
33
|
};
|
|
35
34
|
apiVersion: string;
|
|
35
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
36
36
|
urlParser: import("@smithy/types").UrlParser;
|
|
37
37
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
38
38
|
streamCollector: (
|
|
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (
|
|
|
26
26
|
defaultNamespace?: string;
|
|
27
27
|
};
|
|
28
28
|
serviceId: string;
|
|
29
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
29
30
|
urlParser: import("@smithy/types").UrlParser;
|
|
30
31
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
31
32
|
utf8Encoder: (input: Uint8Array | string) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-transcribe-streaming",
|
|
3
3
|
"description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1077.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -27,23 +27,21 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-
|
|
31
|
-
"@aws-
|
|
32
|
-
"@aws-sdk/
|
|
33
|
-
"@aws-sdk/
|
|
34
|
-
"@aws-sdk/
|
|
35
|
-
"@aws-sdk/middleware-
|
|
36
|
-
"@aws-sdk/middleware-sdk-transcribe-streaming": "^3.972.22",
|
|
37
|
-
"@aws-sdk/middleware-websocket": "^3.972.32",
|
|
30
|
+
"@aws-sdk/core": "^3.974.25",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.60",
|
|
32
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.24",
|
|
33
|
+
"@aws-sdk/middleware-eventstream": "^3.972.20",
|
|
34
|
+
"@aws-sdk/middleware-sdk-transcribe-streaming": "^3.972.23",
|
|
35
|
+
"@aws-sdk/middleware-websocket": "^3.972.33",
|
|
38
36
|
"@aws-sdk/types": "^3.973.14",
|
|
39
|
-
"@smithy/core": "^3.
|
|
40
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
41
|
-
"@smithy/node-http-handler": "^4.9.
|
|
37
|
+
"@smithy/core": "^3.28.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^5.6.1",
|
|
39
|
+
"@smithy/node-http-handler": "^4.9.1",
|
|
42
40
|
"@smithy/types": "^4.15.0",
|
|
43
41
|
"tslib": "^2.6.2"
|
|
44
42
|
},
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@smithy/snapshot-testing": "^2.2.
|
|
44
|
+
"@smithy/snapshot-testing": "^2.2.4",
|
|
47
45
|
"@tsconfig/node20": "20.1.8",
|
|
48
46
|
"@types/node": "^20.14.8",
|
|
49
47
|
"concurrently": "7.0.0",
|