@aws-sdk/client-mediapackagev2 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 CHANGED
@@ -525,7 +525,7 @@ var ScteFilter = {
525
525
  // src/protocols/Aws_restJson1.ts
526
526
  var se_CreateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
527
527
  const b = (0, import_core.requestBuilder)(input, context);
528
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
528
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
529
529
  "content-type": "application/json",
530
530
  [_xact]: input[_CT] ?? (0, import_uuid.v4)()
531
531
  });
@@ -545,7 +545,7 @@ var se_CreateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
545
545
  }, "se_CreateChannelCommand");
546
546
  var se_CreateChannelGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
547
547
  const b = (0, import_core.requestBuilder)(input, context);
548
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
548
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
549
549
  "content-type": "application/json",
550
550
  [_xact]: input[_CT] ?? (0, import_uuid.v4)()
551
551
  });
@@ -563,7 +563,7 @@ var se_CreateChannelGroupCommand = /* @__PURE__ */ __name(async (input, context)
563
563
  }, "se_CreateChannelGroupCommand");
564
564
  var se_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
565
565
  const b = (0, import_core.requestBuilder)(input, context);
566
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
566
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
567
567
  "content-type": "application/json",
568
568
  [_xact]: input[_CT] ?? (0, import_uuid.v4)()
569
569
  });
@@ -795,10 +795,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
795
795
  b.bp("/tags/{ResourceArn}");
796
796
  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
797
797
  const query = (0, import_smithy_client.map)({
798
- [_tK]: [
799
- (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
800
- () => (input[_TK] || []).map((_entry) => _entry)
801
- ]
798
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
802
799
  });
803
800
  let body;
804
801
  b.m("DELETE").h(headers).q(query).b(body);
@@ -806,7 +803,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
806
803
  }, "se_UntagResourceCommand");
807
804
  var se_UpdateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
808
805
  const b = (0, import_core.requestBuilder)(input, context);
809
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
806
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
810
807
  "content-type": "application/json",
811
808
  [_xauim]: input[_ET]
812
809
  });
@@ -824,7 +821,7 @@ var se_UpdateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
824
821
  }, "se_UpdateChannelCommand");
825
822
  var se_UpdateChannelGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
826
823
  const b = (0, import_core.requestBuilder)(input, context);
827
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
824
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
828
825
  "content-type": "application/json",
829
826
  [_xauim]: input[_ET]
830
827
  });
@@ -841,7 +838,7 @@ var se_UpdateChannelGroupCommand = /* @__PURE__ */ __name(async (input, context)
841
838
  }, "se_UpdateChannelGroupCommand");
842
839
  var se_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
843
840
  const b = (0, import_core.requestBuilder)(input, context);
844
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
841
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
845
842
  "content-type": "application/json",
846
843
  [_xauim]: input[_ET]
847
844
  });
@@ -1580,7 +1577,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1580
1577
  extendedRequestId: output.headers["x-amz-id-2"],
1581
1578
  cfId: output.headers["x-amz-cf-id"]
1582
1579
  }), "deserializeMetadata");
1583
- 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");
1584
1580
  var _CT = "ClientToken";
1585
1581
  var _ET = "ETag";
1586
1582
  var _MR = "MaxResults";
@@ -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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { MediaPackageV2ServiceException as __BaseException } from "../models/MediaPackageV2ServiceException";
6
6
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
@@ -264,10 +264,7 @@ export const se_UntagResourceCommand = async (input, context) => {
264
264
  b.bp("/tags/{ResourceArn}");
265
265
  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
266
266
  const query = map({
267
- [_tK]: [
268
- __expectNonNull(input.TagKeys, `TagKeys`) != null,
269
- () => (input[_TK] || []).map((_entry) => _entry),
270
- ],
267
+ [_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
271
268
  });
272
269
  let body;
273
270
  b.m("DELETE").h(headers).q(query).b(body);
@@ -1062,11 +1059,6 @@ const deserializeMetadata = (output) => ({
1062
1059
  cfId: output.headers["x-amz-cf-id"],
1063
1060
  });
1064
1061
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1065
- const isSerializableHeaderValue = (value) => value !== undefined &&
1066
- value !== null &&
1067
- value !== "" &&
1068
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1069
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1070
1062
  const _CT = "ClientToken";
1071
1063
  const _ET = "ETag";
1072
1064
  const _MR = "MaxResults";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediapackagev2",
3
3
  "description": "AWS SDK for JavaScript Mediapackagev2 Client for Node.js, Browser and React Native",
4
- "version": "3.654.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-mediapackagev2",
@@ -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.654.0",
24
- "@aws-sdk/client-sts": "3.654.0",
25
- "@aws-sdk/core": "3.654.0",
26
- "@aws-sdk/credential-provider-node": "3.654.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,26 +34,26 @@
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",