@aws-sdk/client-efs 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.
@@ -934,7 +934,7 @@ const de_CreateTagsCommand = async (output, context) => {
934
934
  const contents = (0, smithy_client_1.map)({
935
935
  $metadata: deserializeMetadata(output),
936
936
  });
937
- await collectBody(output.body, context);
937
+ await (0, smithy_client_1.collectBody)(output.body, context);
938
938
  return contents;
939
939
  };
940
940
  exports.de_CreateTagsCommand = de_CreateTagsCommand;
@@ -970,7 +970,7 @@ const de_DeleteAccessPointCommand = async (output, context) => {
970
970
  const contents = (0, smithy_client_1.map)({
971
971
  $metadata: deserializeMetadata(output),
972
972
  });
973
- await collectBody(output.body, context);
973
+ await (0, smithy_client_1.collectBody)(output.body, context);
974
974
  return contents;
975
975
  };
976
976
  exports.de_DeleteAccessPointCommand = de_DeleteAccessPointCommand;
@@ -1006,7 +1006,7 @@ const de_DeleteFileSystemCommand = async (output, context) => {
1006
1006
  const contents = (0, smithy_client_1.map)({
1007
1007
  $metadata: deserializeMetadata(output),
1008
1008
  });
1009
- await collectBody(output.body, context);
1009
+ await (0, smithy_client_1.collectBody)(output.body, context);
1010
1010
  return contents;
1011
1011
  };
1012
1012
  exports.de_DeleteFileSystemCommand = de_DeleteFileSystemCommand;
@@ -1045,7 +1045,7 @@ const de_DeleteFileSystemPolicyCommand = async (output, context) => {
1045
1045
  const contents = (0, smithy_client_1.map)({
1046
1046
  $metadata: deserializeMetadata(output),
1047
1047
  });
1048
- await collectBody(output.body, context);
1048
+ await (0, smithy_client_1.collectBody)(output.body, context);
1049
1049
  return contents;
1050
1050
  };
1051
1051
  exports.de_DeleteFileSystemPolicyCommand = de_DeleteFileSystemPolicyCommand;
@@ -1084,7 +1084,7 @@ const de_DeleteMountTargetCommand = async (output, context) => {
1084
1084
  const contents = (0, smithy_client_1.map)({
1085
1085
  $metadata: deserializeMetadata(output),
1086
1086
  });
1087
- await collectBody(output.body, context);
1087
+ await (0, smithy_client_1.collectBody)(output.body, context);
1088
1088
  return contents;
1089
1089
  };
1090
1090
  exports.de_DeleteMountTargetCommand = de_DeleteMountTargetCommand;
@@ -1123,7 +1123,7 @@ const de_DeleteReplicationConfigurationCommand = async (output, context) => {
1123
1123
  const contents = (0, smithy_client_1.map)({
1124
1124
  $metadata: deserializeMetadata(output),
1125
1125
  });
1126
- await collectBody(output.body, context);
1126
+ await (0, smithy_client_1.collectBody)(output.body, context);
1127
1127
  return contents;
1128
1128
  };
1129
1129
  exports.de_DeleteReplicationConfigurationCommand = de_DeleteReplicationConfigurationCommand;
@@ -1162,7 +1162,7 @@ const de_DeleteTagsCommand = async (output, context) => {
1162
1162
  const contents = (0, smithy_client_1.map)({
1163
1163
  $metadata: deserializeMetadata(output),
1164
1164
  });
1165
- await collectBody(output.body, context);
1165
+ await (0, smithy_client_1.collectBody)(output.body, context);
1166
1166
  return contents;
1167
1167
  };
1168
1168
  exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
@@ -1673,7 +1673,7 @@ const de_ModifyMountTargetSecurityGroupsCommand = async (output, context) => {
1673
1673
  const contents = (0, smithy_client_1.map)({
1674
1674
  $metadata: deserializeMetadata(output),
1675
1675
  });
1676
- await collectBody(output.body, context);
1676
+ await (0, smithy_client_1.collectBody)(output.body, context);
1677
1677
  return contents;
1678
1678
  };
1679
1679
  exports.de_ModifyMountTargetSecurityGroupsCommand = de_ModifyMountTargetSecurityGroupsCommand;
@@ -1891,7 +1891,7 @@ const de_TagResourceCommand = async (output, context) => {
1891
1891
  const contents = (0, smithy_client_1.map)({
1892
1892
  $metadata: deserializeMetadata(output),
1893
1893
  });
1894
- await collectBody(output.body, context);
1894
+ await (0, smithy_client_1.collectBody)(output.body, context);
1895
1895
  return contents;
1896
1896
  };
1897
1897
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -1930,7 +1930,7 @@ const de_UntagResourceCommand = async (output, context) => {
1930
1930
  const contents = (0, smithy_client_1.map)({
1931
1931
  $metadata: deserializeMetadata(output),
1932
1932
  });
1933
- await collectBody(output.body, context);
1933
+ await (0, smithy_client_1.collectBody)(output.body, context);
1934
1934
  return contents;
1935
1935
  };
1936
1936
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -2530,13 +2530,7 @@ const deserializeMetadata = (output) => ({
2530
2530
  extendedRequestId: output.headers["x-amz-id-2"],
2531
2531
  cfId: output.headers["x-amz-cf-id"],
2532
2532
  });
2533
- const collectBody = (streamBody = new Uint8Array(), context) => {
2534
- if (streamBody instanceof Uint8Array) {
2535
- return Promise.resolve(streamBody);
2536
- }
2537
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2538
- };
2539
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2533
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2540
2534
  const isSerializableHeaderValue = (value) => value !== undefined &&
2541
2535
  value !== null &&
2542
2536
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, 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, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, 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, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { EFSServiceException as __BaseException } from "../models/EFSServiceException";
@@ -2466,12 +2466,6 @@ const deserializeMetadata = (output) => ({
2466
2466
  extendedRequestId: output.headers["x-amz-id-2"],
2467
2467
  cfId: output.headers["x-amz-cf-id"],
2468
2468
  });
2469
- const collectBody = (streamBody = new Uint8Array(), context) => {
2470
- if (streamBody instanceof Uint8Array) {
2471
- return Promise.resolve(streamBody);
2472
- }
2473
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2474
- };
2475
2469
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2476
2470
  const isSerializableHeaderValue = (value) => value !== undefined &&
2477
2471
  value !== null &&
@@ -103,7 +103,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
103
103
  */
104
104
  runtime?: string;
105
105
  /**
106
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
106
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
107
107
  * trait of an operation.
108
108
  */
109
109
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-efs",
3
3
  "description": "AWS SDK for JavaScript Efs 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",