@aws-sdk/client-sagemaker-runtime 3.654.0 → 3.658.1
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 +5 -6
- package/dist-es/protocols/Aws_restJson1.js +1 -6
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -417,7 +417,7 @@ var import_core2 = require("@aws-sdk/core");
|
|
|
417
417
|
|
|
418
418
|
var se_InvokeEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
419
419
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
420
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
420
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
421
421
|
[_ct]: input[_CT] || "application/octet-stream",
|
|
422
422
|
[_a]: input[_A],
|
|
423
423
|
[_xasca]: input[_CA],
|
|
@@ -440,14 +440,14 @@ var se_InvokeEndpointCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
440
440
|
}, "se_InvokeEndpointCommand");
|
|
441
441
|
var se_InvokeEndpointAsyncCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
442
442
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
443
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
443
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
444
444
|
[_xasct]: input[_CT],
|
|
445
445
|
[_xasa]: input[_A],
|
|
446
446
|
[_xasca]: input[_CA],
|
|
447
447
|
[_xasii]: input[_II],
|
|
448
448
|
[_xasi]: input[_IL],
|
|
449
|
-
[_xasr]: [() => isSerializableHeaderValue(input[_RTTLS]), () => input[_RTTLS].toString()],
|
|
450
|
-
[_xasi_]: [() => isSerializableHeaderValue(input[_ITS]), () => input[_ITS].toString()]
|
|
449
|
+
[_xasr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_RTTLS]), () => input[_RTTLS].toString()],
|
|
450
|
+
[_xasi_]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_ITS]), () => input[_ITS].toString()]
|
|
451
451
|
});
|
|
452
452
|
b.bp("/endpoints/{EndpointName}/async-invocations");
|
|
453
453
|
b.p("EndpointName", () => input.EndpointName, "{EndpointName}", false);
|
|
@@ -457,7 +457,7 @@ var se_InvokeEndpointAsyncCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
457
457
|
}, "se_InvokeEndpointAsyncCommand");
|
|
458
458
|
var se_InvokeEndpointWithResponseStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
459
459
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
460
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
460
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
461
461
|
[_ct]: input[_CT] || "application/octet-stream",
|
|
462
462
|
[_xasa]: input[_A],
|
|
463
463
|
[_xasca]: input[_CA],
|
|
@@ -716,7 +716,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
716
716
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
717
717
|
cfId: output.headers["x-amz-cf-id"]
|
|
718
718
|
}), "deserializeMetadata");
|
|
719
|
-
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
720
719
|
var _A = "Accept";
|
|
721
720
|
var _CA = "CustomAttributes";
|
|
722
721
|
var _CSI = "ClosedSessionId";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { InternalDependencyException, InternalFailure, InternalStreamFailure, ModelError, ModelNotReadyException, ModelStreamError, ServiceUnavailable, ValidationError, } from "../models/models_0";
|
|
5
5
|
import { SageMakerRuntimeServiceException as __BaseException } from "../models/SageMakerRuntimeServiceException";
|
|
6
6
|
export const se_InvokeEndpointCommand = async (input, context) => {
|
|
@@ -305,11 +305,6 @@ const deserializeMetadata = (output) => ({
|
|
|
305
305
|
cfId: output.headers["x-amz-cf-id"],
|
|
306
306
|
});
|
|
307
307
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
308
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
309
|
-
value !== null &&
|
|
310
|
-
value !== "" &&
|
|
311
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
312
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
313
308
|
const _A = "Accept";
|
|
314
309
|
const _CA = "CustomAttributes";
|
|
315
310
|
const _CSI = "ClosedSessionId";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.658.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sagemaker-runtime",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.658.1",
|
|
24
|
+
"@aws-sdk/client-sts": "3.658.1",
|
|
25
|
+
"@aws-sdk/core": "3.658.1",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.658.1",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.654.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.654.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.654.0",
|
|
@@ -34,33 +34,33 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.654.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.654.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.8",
|
|
37
|
-
"@smithy/core": "^2.4.
|
|
37
|
+
"@smithy/core": "^2.4.6",
|
|
38
38
|
"@smithy/eventstream-serde-browser": "^3.0.9",
|
|
39
39
|
"@smithy/eventstream-serde-config-resolver": "^3.0.6",
|
|
40
40
|
"@smithy/eventstream-serde-node": "^3.0.8",
|
|
41
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
41
|
+
"@smithy/fetch-http-handler": "^3.2.8",
|
|
42
42
|
"@smithy/hash-node": "^3.0.6",
|
|
43
43
|
"@smithy/invalid-dependency": "^3.0.6",
|
|
44
44
|
"@smithy/middleware-content-length": "^3.0.8",
|
|
45
45
|
"@smithy/middleware-endpoint": "^3.1.3",
|
|
46
|
-
"@smithy/middleware-retry": "^3.0.
|
|
46
|
+
"@smithy/middleware-retry": "^3.0.21",
|
|
47
47
|
"@smithy/middleware-serde": "^3.0.6",
|
|
48
48
|
"@smithy/middleware-stack": "^3.0.6",
|
|
49
49
|
"@smithy/node-config-provider": "^3.1.7",
|
|
50
|
-
"@smithy/node-http-handler": "^3.2.
|
|
50
|
+
"@smithy/node-http-handler": "^3.2.3",
|
|
51
51
|
"@smithy/protocol-http": "^4.1.3",
|
|
52
|
-
"@smithy/smithy-client": "^3.3.
|
|
52
|
+
"@smithy/smithy-client": "^3.3.5",
|
|
53
53
|
"@smithy/types": "^3.4.2",
|
|
54
54
|
"@smithy/url-parser": "^3.0.6",
|
|
55
55
|
"@smithy/util-base64": "^3.0.0",
|
|
56
56
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
57
57
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^3.0.21",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^3.0.21",
|
|
60
60
|
"@smithy/util-endpoints": "^2.1.2",
|
|
61
61
|
"@smithy/util-middleware": "^3.0.6",
|
|
62
62
|
"@smithy/util-retry": "^3.0.6",
|
|
63
|
-
"@smithy/util-stream": "^3.1.
|
|
63
|
+
"@smithy/util-stream": "^3.1.8",
|
|
64
64
|
"@smithy/util-utf8": "^3.0.0",
|
|
65
65
|
"tslib": "^2.6.2"
|
|
66
66
|
},
|