@aws-sdk/client-api-gateway 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
@@ -1269,7 +1269,7 @@ var se_GetDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
1269
1269
  b.p("restApiId", () => input.restApiId, "{restApiId}", false);
1270
1270
  b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
1271
1271
  const query = (0, import_smithy_client.map)({
1272
- [_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)]
1272
+ [_e]: [() => input.embed !== void 0, () => input[_e] || []]
1273
1273
  });
1274
1274
  let body;
1275
1275
  b.m("GET").h(headers).q(query).b(body);
@@ -1361,7 +1361,7 @@ var se_GetDomainNamesCommand = /* @__PURE__ */ __name(async (input, context) =>
1361
1361
  }, "se_GetDomainNamesCommand");
1362
1362
  var se_GetExportCommand = /* @__PURE__ */ __name(async (input, context) => {
1363
1363
  const b = (0, import_core.requestBuilder)(input, context);
1364
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1364
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1365
1365
  [_ac]: input[_a]
1366
1366
  });
1367
1367
  b.bp("/restapis/{restApiId}/stages/{stageName}/exports/{exportType}");
@@ -1510,7 +1510,7 @@ var se_GetResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1510
1510
  b.p("restApiId", () => input.restApiId, "{restApiId}", false);
1511
1511
  b.p("resourceId", () => input.resourceId, "{resourceId}", false);
1512
1512
  const query = (0, import_smithy_client.map)({
1513
- [_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)]
1513
+ [_e]: [() => input.embed !== void 0, () => input[_e] || []]
1514
1514
  });
1515
1515
  let body;
1516
1516
  b.m("GET").h(headers).q(query).b(body);
@@ -1524,7 +1524,7 @@ var se_GetResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
1524
1524
  const query = (0, import_smithy_client.map)({
1525
1525
  [_p]: [, input[_p]],
1526
1526
  [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
1527
- [_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)]
1527
+ [_e]: [() => input.embed !== void 0, () => input[_e] || []]
1528
1528
  });
1529
1529
  let body;
1530
1530
  b.m("GET").h(headers).q(query).b(body);
@@ -1961,10 +1961,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1961
1961
  b.bp("/tags/{resourceArn}");
1962
1962
  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1963
1963
  const query = (0, import_smithy_client.map)({
1964
- [_tK]: [
1965
- (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1966
- () => (input[_tK] || []).map((_entry) => _entry)
1967
- ]
1964
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
1968
1965
  });
1969
1966
  let body;
1970
1967
  b.m("DELETE").h(headers).q(query).b(body);
@@ -4805,7 +4802,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
4805
4802
  extendedRequestId: output.headers["x-amz-id-2"],
4806
4803
  cfId: output.headers["x-amz-cf-id"]
4807
4804
  }), "deserializeMetadata");
4808
- 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");
4809
4805
  var _a = "accepts";
4810
4806
  var _ac = "accept";
4811
4807
  var _cD = "contentDisposition";
@@ -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, convertMap, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, convertMap, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { APIGatewayServiceException as __BaseException } from "../models/APIGatewayServiceException";
5
5
  import { BadRequestException, ConflictException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
6
6
  export const se_CreateApiKeyCommand = async (input, context) => {
@@ -634,7 +634,7 @@ export const se_GetDeploymentCommand = async (input, context) => {
634
634
  b.p("restApiId", () => input.restApiId, "{restApiId}", false);
635
635
  b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
636
636
  const query = map({
637
- [_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)],
637
+ [_e]: [() => input.embed !== void 0, () => input[_e] || []],
638
638
  });
639
639
  let body;
640
640
  b.m("GET").h(headers).q(query).b(body);
@@ -875,7 +875,7 @@ export const se_GetResourceCommand = async (input, context) => {
875
875
  b.p("restApiId", () => input.restApiId, "{restApiId}", false);
876
876
  b.p("resourceId", () => input.resourceId, "{resourceId}", false);
877
877
  const query = map({
878
- [_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)],
878
+ [_e]: [() => input.embed !== void 0, () => input[_e] || []],
879
879
  });
880
880
  let body;
881
881
  b.m("GET").h(headers).q(query).b(body);
@@ -889,7 +889,7 @@ export const se_GetResourcesCommand = async (input, context) => {
889
889
  const query = map({
890
890
  [_p]: [, input[_p]],
891
891
  [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
892
- [_e]: [() => input.embed !== void 0, () => (input[_e] || []).map((_entry) => _entry)],
892
+ [_e]: [() => input.embed !== void 0, () => input[_e] || []],
893
893
  });
894
894
  let body;
895
895
  b.m("GET").h(headers).q(query).b(body);
@@ -1310,10 +1310,7 @@ export const se_UntagResourceCommand = async (input, context) => {
1310
1310
  b.bp("/tags/{resourceArn}");
1311
1311
  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1312
1312
  const query = map({
1313
- [_tK]: [
1314
- __expectNonNull(input.tagKeys, `tagKeys`) != null,
1315
- () => (input[_tK] || []).map((_entry) => _entry),
1316
- ],
1313
+ [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
1317
1314
  });
1318
1315
  let body;
1319
1316
  b.m("DELETE").h(headers).q(query).b(body);
@@ -4131,11 +4128,6 @@ const deserializeMetadata = (output) => ({
4131
4128
  cfId: output.headers["x-amz-cf-id"],
4132
4129
  });
4133
4130
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4134
- const isSerializableHeaderValue = (value) => value !== undefined &&
4135
- value !== null &&
4136
- value !== "" &&
4137
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4138
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
4139
4131
  const _a = "accepts";
4140
4132
  const _ac = "accept";
4141
4133
  const _cD = "contentDisposition";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-api-gateway",
3
3
  "description": "AWS SDK for JavaScript Api Gateway 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-api-gateway",
@@ -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",
@@ -35,30 +35,30 @@
35
35
  "@aws-sdk/util-user-agent-browser": "3.654.0",
36
36
  "@aws-sdk/util-user-agent-node": "3.654.0",
37
37
  "@smithy/config-resolver": "^3.0.8",
38
- "@smithy/core": "^2.4.3",
39
- "@smithy/fetch-http-handler": "^3.2.7",
38
+ "@smithy/core": "^2.4.6",
39
+ "@smithy/fetch-http-handler": "^3.2.8",
40
40
  "@smithy/hash-node": "^3.0.6",
41
41
  "@smithy/invalid-dependency": "^3.0.6",
42
42
  "@smithy/middleware-content-length": "^3.0.8",
43
43
  "@smithy/middleware-endpoint": "^3.1.3",
44
- "@smithy/middleware-retry": "^3.0.18",
44
+ "@smithy/middleware-retry": "^3.0.21",
45
45
  "@smithy/middleware-serde": "^3.0.6",
46
46
  "@smithy/middleware-stack": "^3.0.6",
47
47
  "@smithy/node-config-provider": "^3.1.7",
48
- "@smithy/node-http-handler": "^3.2.2",
48
+ "@smithy/node-http-handler": "^3.2.3",
49
49
  "@smithy/protocol-http": "^4.1.3",
50
- "@smithy/smithy-client": "^3.3.2",
50
+ "@smithy/smithy-client": "^3.3.5",
51
51
  "@smithy/types": "^3.4.2",
52
52
  "@smithy/url-parser": "^3.0.6",
53
53
  "@smithy/util-base64": "^3.0.0",
54
54
  "@smithy/util-body-length-browser": "^3.0.0",
55
55
  "@smithy/util-body-length-node": "^3.0.0",
56
- "@smithy/util-defaults-mode-browser": "^3.0.18",
57
- "@smithy/util-defaults-mode-node": "^3.0.18",
56
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
57
+ "@smithy/util-defaults-mode-node": "^3.0.21",
58
58
  "@smithy/util-endpoints": "^2.1.2",
59
59
  "@smithy/util-middleware": "^3.0.6",
60
60
  "@smithy/util-retry": "^3.0.6",
61
- "@smithy/util-stream": "^3.1.6",
61
+ "@smithy/util-stream": "^3.1.8",
62
62
  "@smithy/util-utf8": "^3.0.0",
63
63
  "tslib": "^2.6.2"
64
64
  },