@aws-sdk/client-tnb 3.658.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 CHANGED
@@ -656,7 +656,7 @@ var se_GetSolFunctionPackageCommand = /* @__PURE__ */ __name(async (input, conte
656
656
  }, "se_GetSolFunctionPackageCommand");
657
657
  var se_GetSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (input, context) => {
658
658
  const b = (0, import_core.requestBuilder)(input, context);
659
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
659
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
660
660
  [_a]: input[_a]
661
661
  });
662
662
  b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content");
@@ -667,7 +667,7 @@ var se_GetSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (input
667
667
  }, "se_GetSolFunctionPackageContentCommand");
668
668
  var se_GetSolFunctionPackageDescriptorCommand = /* @__PURE__ */ __name(async (input, context) => {
669
669
  const b = (0, import_core.requestBuilder)(input, context);
670
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
670
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
671
671
  [_a]: input[_a]
672
672
  });
673
673
  b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/vnfd");
@@ -705,7 +705,7 @@ var se_GetSolNetworkPackageCommand = /* @__PURE__ */ __name(async (input, contex
705
705
  }, "se_GetSolNetworkPackageCommand");
706
706
  var se_GetSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (input, context) => {
707
707
  const b = (0, import_core.requestBuilder)(input, context);
708
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
708
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
709
709
  [_a]: input[_a]
710
710
  });
711
711
  b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content");
@@ -815,7 +815,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
815
815
  }, "se_ListTagsForResourceCommand");
816
816
  var se_PutSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (input, context) => {
817
817
  const b = (0, import_core.requestBuilder)(input, context);
818
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
818
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
819
819
  [_ct]: input[_cT] || "application/octet-stream"
820
820
  });
821
821
  b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content");
@@ -829,7 +829,7 @@ var se_PutSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (input
829
829
  }, "se_PutSolFunctionPackageContentCommand");
830
830
  var se_PutSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (input, context) => {
831
831
  const b = (0, import_core.requestBuilder)(input, context);
832
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
832
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
833
833
  [_ct]: input[_cT] || "application/octet-stream"
834
834
  });
835
835
  b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content");
@@ -879,10 +879,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
879
879
  b.bp("/tags/{resourceArn}");
880
880
  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
881
881
  const query = (0, import_smithy_client.map)({
882
- [_tK]: [
883
- (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
884
- () => (input[_tK] || []).map((_entry) => _entry)
885
- ]
882
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
886
883
  });
887
884
  let body;
888
885
  b.m("DELETE").h(headers).q(query).b(body);
@@ -941,7 +938,7 @@ var se_UpdateSolNetworkPackageCommand = /* @__PURE__ */ __name(async (input, con
941
938
  }, "se_UpdateSolNetworkPackageCommand");
942
939
  var se_ValidateSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (input, context) => {
943
940
  const b = (0, import_core.requestBuilder)(input, context);
944
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
941
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
945
942
  [_ct]: input[_cT] || "application/octet-stream"
946
943
  });
947
944
  b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content/validate");
@@ -955,7 +952,7 @@ var se_ValidateSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (
955
952
  }, "se_ValidateSolFunctionPackageContentCommand");
956
953
  var se_ValidateSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (input, context) => {
957
954
  const b = (0, import_core.requestBuilder)(input, context);
958
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
955
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
959
956
  [_ct]: input[_cT] || "application/octet-stream"
960
957
  });
961
958
  b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content/validate");
@@ -1824,7 +1821,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1824
1821
  extendedRequestId: output.headers["x-amz-id-2"],
1825
1822
  cfId: output.headers["x-amz-cf-id"]
1826
1823
  }), "deserializeMetadata");
1827
- 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");
1828
1824
  var _a = "accept";
1829
1825
  var _cT = "contentType";
1830
1826
  var _ct = "content-type";
@@ -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 { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { TnbServiceException as __BaseException } from "../models/TnbServiceException";
6
6
  export const se_CancelSolNetworkOperationCommand = async (input, context) => {
@@ -318,10 +318,7 @@ export const se_UntagResourceCommand = async (input, context) => {
318
318
  b.bp("/tags/{resourceArn}");
319
319
  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
320
320
  const query = map({
321
- [_tK]: [
322
- __expectNonNull(input.tagKeys, `tagKeys`) != null,
323
- () => (input[_tK] || []).map((_entry) => _entry),
324
- ],
321
+ [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
325
322
  });
326
323
  let body;
327
324
  b.m("DELETE").h(headers).q(query).b(body);
@@ -1270,11 +1267,6 @@ const deserializeMetadata = (output) => ({
1270
1267
  cfId: output.headers["x-amz-cf-id"],
1271
1268
  });
1272
1269
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1273
- const isSerializableHeaderValue = (value) => value !== undefined &&
1274
- value !== null &&
1275
- value !== "" &&
1276
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1277
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1278
1270
  const _a = "accept";
1279
1271
  const _cT = "contentType";
1280
1272
  const _ct = "content-type";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-tnb",
3
3
  "description": "AWS SDK for JavaScript Tnb Client for Node.js, Browser and React Native",
4
- "version": "3.658.0",
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-tnb",
@@ -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.658.0",
24
- "@aws-sdk/client-sts": "3.658.0",
25
- "@aws-sdk/core": "3.658.0",
26
- "@aws-sdk/credential-provider-node": "3.658.0",
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,30 +34,30 @@
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.3",
38
- "@smithy/fetch-http-handler": "^3.2.7",
37
+ "@smithy/core": "^2.4.6",
38
+ "@smithy/fetch-http-handler": "^3.2.8",
39
39
  "@smithy/hash-node": "^3.0.6",
40
40
  "@smithy/invalid-dependency": "^3.0.6",
41
41
  "@smithy/middleware-content-length": "^3.0.8",
42
42
  "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.18",
43
+ "@smithy/middleware-retry": "^3.0.21",
44
44
  "@smithy/middleware-serde": "^3.0.6",
45
45
  "@smithy/middleware-stack": "^3.0.6",
46
46
  "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.2",
47
+ "@smithy/node-http-handler": "^3.2.3",
48
48
  "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.2",
49
+ "@smithy/smithy-client": "^3.3.5",
50
50
  "@smithy/types": "^3.4.2",
51
51
  "@smithy/url-parser": "^3.0.6",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.18",
56
- "@smithy/util-defaults-mode-node": "^3.0.18",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
56
+ "@smithy/util-defaults-mode-node": "^3.0.21",
57
57
  "@smithy/util-endpoints": "^2.1.2",
58
58
  "@smithy/util-middleware": "^3.0.6",
59
59
  "@smithy/util-retry": "^3.0.6",
60
- "@smithy/util-stream": "^3.1.6",
60
+ "@smithy/util-stream": "^3.1.8",
61
61
  "@smithy/util-utf8": "^3.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },