@aws-sdk/client-greengrass 3.354.0 → 3.357.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.
@@ -2777,7 +2777,7 @@ const de_DeleteConnectorDefinitionCommand = async (output, context) => {
2777
2777
  const contents = (0, smithy_client_1.map)({
2778
2778
  $metadata: deserializeMetadata(output),
2779
2779
  });
2780
- await collectBody(output.body, context);
2780
+ await (0, smithy_client_1.collectBody)(output.body, context);
2781
2781
  return contents;
2782
2782
  };
2783
2783
  exports.de_DeleteConnectorDefinitionCommand = de_DeleteConnectorDefinitionCommand;
@@ -2807,7 +2807,7 @@ const de_DeleteCoreDefinitionCommand = async (output, context) => {
2807
2807
  const contents = (0, smithy_client_1.map)({
2808
2808
  $metadata: deserializeMetadata(output),
2809
2809
  });
2810
- await collectBody(output.body, context);
2810
+ await (0, smithy_client_1.collectBody)(output.body, context);
2811
2811
  return contents;
2812
2812
  };
2813
2813
  exports.de_DeleteCoreDefinitionCommand = de_DeleteCoreDefinitionCommand;
@@ -2837,7 +2837,7 @@ const de_DeleteDeviceDefinitionCommand = async (output, context) => {
2837
2837
  const contents = (0, smithy_client_1.map)({
2838
2838
  $metadata: deserializeMetadata(output),
2839
2839
  });
2840
- await collectBody(output.body, context);
2840
+ await (0, smithy_client_1.collectBody)(output.body, context);
2841
2841
  return contents;
2842
2842
  };
2843
2843
  exports.de_DeleteDeviceDefinitionCommand = de_DeleteDeviceDefinitionCommand;
@@ -2867,7 +2867,7 @@ const de_DeleteFunctionDefinitionCommand = async (output, context) => {
2867
2867
  const contents = (0, smithy_client_1.map)({
2868
2868
  $metadata: deserializeMetadata(output),
2869
2869
  });
2870
- await collectBody(output.body, context);
2870
+ await (0, smithy_client_1.collectBody)(output.body, context);
2871
2871
  return contents;
2872
2872
  };
2873
2873
  exports.de_DeleteFunctionDefinitionCommand = de_DeleteFunctionDefinitionCommand;
@@ -2897,7 +2897,7 @@ const de_DeleteGroupCommand = async (output, context) => {
2897
2897
  const contents = (0, smithy_client_1.map)({
2898
2898
  $metadata: deserializeMetadata(output),
2899
2899
  });
2900
- await collectBody(output.body, context);
2900
+ await (0, smithy_client_1.collectBody)(output.body, context);
2901
2901
  return contents;
2902
2902
  };
2903
2903
  exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
@@ -2927,7 +2927,7 @@ const de_DeleteLoggerDefinitionCommand = async (output, context) => {
2927
2927
  const contents = (0, smithy_client_1.map)({
2928
2928
  $metadata: deserializeMetadata(output),
2929
2929
  });
2930
- await collectBody(output.body, context);
2930
+ await (0, smithy_client_1.collectBody)(output.body, context);
2931
2931
  return contents;
2932
2932
  };
2933
2933
  exports.de_DeleteLoggerDefinitionCommand = de_DeleteLoggerDefinitionCommand;
@@ -2957,7 +2957,7 @@ const de_DeleteResourceDefinitionCommand = async (output, context) => {
2957
2957
  const contents = (0, smithy_client_1.map)({
2958
2958
  $metadata: deserializeMetadata(output),
2959
2959
  });
2960
- await collectBody(output.body, context);
2960
+ await (0, smithy_client_1.collectBody)(output.body, context);
2961
2961
  return contents;
2962
2962
  };
2963
2963
  exports.de_DeleteResourceDefinitionCommand = de_DeleteResourceDefinitionCommand;
@@ -2987,7 +2987,7 @@ const de_DeleteSubscriptionDefinitionCommand = async (output, context) => {
2987
2987
  const contents = (0, smithy_client_1.map)({
2988
2988
  $metadata: deserializeMetadata(output),
2989
2989
  });
2990
- await collectBody(output.body, context);
2990
+ await (0, smithy_client_1.collectBody)(output.body, context);
2991
2991
  return contents;
2992
2992
  };
2993
2993
  exports.de_DeleteSubscriptionDefinitionCommand = de_DeleteSubscriptionDefinitionCommand;
@@ -4786,7 +4786,7 @@ const de_StopBulkDeploymentCommand = async (output, context) => {
4786
4786
  const contents = (0, smithy_client_1.map)({
4787
4787
  $metadata: deserializeMetadata(output),
4788
4788
  });
4789
- await collectBody(output.body, context);
4789
+ await (0, smithy_client_1.collectBody)(output.body, context);
4790
4790
  return contents;
4791
4791
  };
4792
4792
  exports.de_StopBulkDeploymentCommand = de_StopBulkDeploymentCommand;
@@ -4816,7 +4816,7 @@ const de_TagResourceCommand = async (output, context) => {
4816
4816
  const contents = (0, smithy_client_1.map)({
4817
4817
  $metadata: deserializeMetadata(output),
4818
4818
  });
4819
- await collectBody(output.body, context);
4819
+ await (0, smithy_client_1.collectBody)(output.body, context);
4820
4820
  return contents;
4821
4821
  };
4822
4822
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -4846,7 +4846,7 @@ const de_UntagResourceCommand = async (output, context) => {
4846
4846
  const contents = (0, smithy_client_1.map)({
4847
4847
  $metadata: deserializeMetadata(output),
4848
4848
  });
4849
- await collectBody(output.body, context);
4849
+ await (0, smithy_client_1.collectBody)(output.body, context);
4850
4850
  return contents;
4851
4851
  };
4852
4852
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -4914,7 +4914,7 @@ const de_UpdateConnectorDefinitionCommand = async (output, context) => {
4914
4914
  const contents = (0, smithy_client_1.map)({
4915
4915
  $metadata: deserializeMetadata(output),
4916
4916
  });
4917
- await collectBody(output.body, context);
4917
+ await (0, smithy_client_1.collectBody)(output.body, context);
4918
4918
  return contents;
4919
4919
  };
4920
4920
  exports.de_UpdateConnectorDefinitionCommand = de_UpdateConnectorDefinitionCommand;
@@ -4944,7 +4944,7 @@ const de_UpdateCoreDefinitionCommand = async (output, context) => {
4944
4944
  const contents = (0, smithy_client_1.map)({
4945
4945
  $metadata: deserializeMetadata(output),
4946
4946
  });
4947
- await collectBody(output.body, context);
4947
+ await (0, smithy_client_1.collectBody)(output.body, context);
4948
4948
  return contents;
4949
4949
  };
4950
4950
  exports.de_UpdateCoreDefinitionCommand = de_UpdateCoreDefinitionCommand;
@@ -4974,7 +4974,7 @@ const de_UpdateDeviceDefinitionCommand = async (output, context) => {
4974
4974
  const contents = (0, smithy_client_1.map)({
4975
4975
  $metadata: deserializeMetadata(output),
4976
4976
  });
4977
- await collectBody(output.body, context);
4977
+ await (0, smithy_client_1.collectBody)(output.body, context);
4978
4978
  return contents;
4979
4979
  };
4980
4980
  exports.de_UpdateDeviceDefinitionCommand = de_UpdateDeviceDefinitionCommand;
@@ -5004,7 +5004,7 @@ const de_UpdateFunctionDefinitionCommand = async (output, context) => {
5004
5004
  const contents = (0, smithy_client_1.map)({
5005
5005
  $metadata: deserializeMetadata(output),
5006
5006
  });
5007
- await collectBody(output.body, context);
5007
+ await (0, smithy_client_1.collectBody)(output.body, context);
5008
5008
  return contents;
5009
5009
  };
5010
5010
  exports.de_UpdateFunctionDefinitionCommand = de_UpdateFunctionDefinitionCommand;
@@ -5034,7 +5034,7 @@ const de_UpdateGroupCommand = async (output, context) => {
5034
5034
  const contents = (0, smithy_client_1.map)({
5035
5035
  $metadata: deserializeMetadata(output),
5036
5036
  });
5037
- await collectBody(output.body, context);
5037
+ await (0, smithy_client_1.collectBody)(output.body, context);
5038
5038
  return contents;
5039
5039
  };
5040
5040
  exports.de_UpdateGroupCommand = de_UpdateGroupCommand;
@@ -5103,7 +5103,7 @@ const de_UpdateLoggerDefinitionCommand = async (output, context) => {
5103
5103
  const contents = (0, smithy_client_1.map)({
5104
5104
  $metadata: deserializeMetadata(output),
5105
5105
  });
5106
- await collectBody(output.body, context);
5106
+ await (0, smithy_client_1.collectBody)(output.body, context);
5107
5107
  return contents;
5108
5108
  };
5109
5109
  exports.de_UpdateLoggerDefinitionCommand = de_UpdateLoggerDefinitionCommand;
@@ -5133,7 +5133,7 @@ const de_UpdateResourceDefinitionCommand = async (output, context) => {
5133
5133
  const contents = (0, smithy_client_1.map)({
5134
5134
  $metadata: deserializeMetadata(output),
5135
5135
  });
5136
- await collectBody(output.body, context);
5136
+ await (0, smithy_client_1.collectBody)(output.body, context);
5137
5137
  return contents;
5138
5138
  };
5139
5139
  exports.de_UpdateResourceDefinitionCommand = de_UpdateResourceDefinitionCommand;
@@ -5163,7 +5163,7 @@ const de_UpdateSubscriptionDefinitionCommand = async (output, context) => {
5163
5163
  const contents = (0, smithy_client_1.map)({
5164
5164
  $metadata: deserializeMetadata(output),
5165
5165
  });
5166
- await collectBody(output.body, context);
5166
+ await (0, smithy_client_1.collectBody)(output.body, context);
5167
5167
  return contents;
5168
5168
  };
5169
5169
  exports.de_UpdateSubscriptionDefinitionCommand = de_UpdateSubscriptionDefinitionCommand;
@@ -5193,7 +5193,7 @@ const de_UpdateThingRuntimeConfigurationCommand = async (output, context) => {
5193
5193
  const contents = (0, smithy_client_1.map)({
5194
5194
  $metadata: deserializeMetadata(output),
5195
5195
  });
5196
- await collectBody(output.body, context);
5196
+ await (0, smithy_client_1.collectBody)(output.body, context);
5197
5197
  return contents;
5198
5198
  };
5199
5199
  exports.de_UpdateThingRuntimeConfigurationCommand = de_UpdateThingRuntimeConfigurationCommand;
@@ -5274,13 +5274,7 @@ const deserializeMetadata = (output) => ({
5274
5274
  extendedRequestId: output.headers["x-amz-id-2"],
5275
5275
  cfId: output.headers["x-amz-cf-id"],
5276
5276
  });
5277
- const collectBody = (streamBody = new Uint8Array(), context) => {
5278
- if (streamBody instanceof Uint8Array) {
5279
- return Promise.resolve(streamBody);
5280
- }
5281
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5282
- };
5283
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5277
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
5284
5278
  const isSerializableHeaderValue = (value) => value !== undefined &&
5285
5279
  value !== null &&
5286
5280
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { GreengrassServiceException as __BaseException } from "../models/GreengrassServiceException";
4
4
  import { BadRequestException, InternalServerErrorException, } from "../models/models_0";
@@ -5084,12 +5084,6 @@ const deserializeMetadata = (output) => ({
5084
5084
  extendedRequestId: output.headers["x-amz-id-2"],
5085
5085
  cfId: output.headers["x-amz-cf-id"],
5086
5086
  });
5087
- const collectBody = (streamBody = new Uint8Array(), context) => {
5088
- if (streamBody instanceof Uint8Array) {
5089
- return Promise.resolve(streamBody);
5090
- }
5091
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5092
- };
5093
5087
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5094
5088
  const isSerializableHeaderValue = (value) => value !== undefined &&
5095
5089
  value !== null &&
@@ -165,7 +165,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
165
165
  */
166
166
  runtime?: string;
167
167
  /**
168
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
168
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
169
169
  * trait of an operation.
170
170
  */
171
171
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-greengrass",
3
3
  "description": "AWS SDK for JavaScript Greengrass Client for Node.js, Browser and React Native",
4
- "version": "3.354.0",
4
+ "version": "3.357.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,36 +21,36 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.354.0",
25
- "@aws-sdk/config-resolver": "3.354.0",
26
- "@aws-sdk/credential-provider-node": "3.354.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.354.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.354.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.354.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.354.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.354.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",