@aws-sdk/client-s3-control 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.
@@ -2443,7 +2443,7 @@ const de_DeleteAccessPointCommand = async (output, context) => {
2443
2443
  const contents = (0, smithy_client_1.map)({
2444
2444
  $metadata: deserializeMetadata(output),
2445
2445
  });
2446
- await collectBody(output.body, context);
2446
+ await (0, smithy_client_1.collectBody)(output.body, context);
2447
2447
  return contents;
2448
2448
  };
2449
2449
  exports.de_DeleteAccessPointCommand = de_DeleteAccessPointCommand;
@@ -2467,7 +2467,7 @@ const de_DeleteAccessPointForObjectLambdaCommand = async (output, context) => {
2467
2467
  const contents = (0, smithy_client_1.map)({
2468
2468
  $metadata: deserializeMetadata(output),
2469
2469
  });
2470
- await collectBody(output.body, context);
2470
+ await (0, smithy_client_1.collectBody)(output.body, context);
2471
2471
  return contents;
2472
2472
  };
2473
2473
  exports.de_DeleteAccessPointForObjectLambdaCommand = de_DeleteAccessPointForObjectLambdaCommand;
@@ -2491,7 +2491,7 @@ const de_DeleteAccessPointPolicyCommand = async (output, context) => {
2491
2491
  const contents = (0, smithy_client_1.map)({
2492
2492
  $metadata: deserializeMetadata(output),
2493
2493
  });
2494
- await collectBody(output.body, context);
2494
+ await (0, smithy_client_1.collectBody)(output.body, context);
2495
2495
  return contents;
2496
2496
  };
2497
2497
  exports.de_DeleteAccessPointPolicyCommand = de_DeleteAccessPointPolicyCommand;
@@ -2515,7 +2515,7 @@ const de_DeleteAccessPointPolicyForObjectLambdaCommand = async (output, context)
2515
2515
  const contents = (0, smithy_client_1.map)({
2516
2516
  $metadata: deserializeMetadata(output),
2517
2517
  });
2518
- await collectBody(output.body, context);
2518
+ await (0, smithy_client_1.collectBody)(output.body, context);
2519
2519
  return contents;
2520
2520
  };
2521
2521
  exports.de_DeleteAccessPointPolicyForObjectLambdaCommand = de_DeleteAccessPointPolicyForObjectLambdaCommand;
@@ -2539,7 +2539,7 @@ const de_DeleteBucketCommand = async (output, context) => {
2539
2539
  const contents = (0, smithy_client_1.map)({
2540
2540
  $metadata: deserializeMetadata(output),
2541
2541
  });
2542
- await collectBody(output.body, context);
2542
+ await (0, smithy_client_1.collectBody)(output.body, context);
2543
2543
  return contents;
2544
2544
  };
2545
2545
  exports.de_DeleteBucketCommand = de_DeleteBucketCommand;
@@ -2563,7 +2563,7 @@ const de_DeleteBucketLifecycleConfigurationCommand = async (output, context) =>
2563
2563
  const contents = (0, smithy_client_1.map)({
2564
2564
  $metadata: deserializeMetadata(output),
2565
2565
  });
2566
- await collectBody(output.body, context);
2566
+ await (0, smithy_client_1.collectBody)(output.body, context);
2567
2567
  return contents;
2568
2568
  };
2569
2569
  exports.de_DeleteBucketLifecycleConfigurationCommand = de_DeleteBucketLifecycleConfigurationCommand;
@@ -2587,7 +2587,7 @@ const de_DeleteBucketPolicyCommand = async (output, context) => {
2587
2587
  const contents = (0, smithy_client_1.map)({
2588
2588
  $metadata: deserializeMetadata(output),
2589
2589
  });
2590
- await collectBody(output.body, context);
2590
+ await (0, smithy_client_1.collectBody)(output.body, context);
2591
2591
  return contents;
2592
2592
  };
2593
2593
  exports.de_DeleteBucketPolicyCommand = de_DeleteBucketPolicyCommand;
@@ -2611,7 +2611,7 @@ const de_DeleteBucketReplicationCommand = async (output, context) => {
2611
2611
  const contents = (0, smithy_client_1.map)({
2612
2612
  $metadata: deserializeMetadata(output),
2613
2613
  });
2614
- await collectBody(output.body, context);
2614
+ await (0, smithy_client_1.collectBody)(output.body, context);
2615
2615
  return contents;
2616
2616
  };
2617
2617
  exports.de_DeleteBucketReplicationCommand = de_DeleteBucketReplicationCommand;
@@ -2635,7 +2635,7 @@ const de_DeleteBucketTaggingCommand = async (output, context) => {
2635
2635
  const contents = (0, smithy_client_1.map)({
2636
2636
  $metadata: deserializeMetadata(output),
2637
2637
  });
2638
- await collectBody(output.body, context);
2638
+ await (0, smithy_client_1.collectBody)(output.body, context);
2639
2639
  return contents;
2640
2640
  };
2641
2641
  exports.de_DeleteBucketTaggingCommand = de_DeleteBucketTaggingCommand;
@@ -2659,7 +2659,7 @@ const de_DeleteJobTaggingCommand = async (output, context) => {
2659
2659
  const contents = (0, smithy_client_1.map)({
2660
2660
  $metadata: deserializeMetadata(output),
2661
2661
  });
2662
- await collectBody(output.body, context);
2662
+ await (0, smithy_client_1.collectBody)(output.body, context);
2663
2663
  return contents;
2664
2664
  };
2665
2665
  exports.de_DeleteJobTaggingCommand = de_DeleteJobTaggingCommand;
@@ -2722,7 +2722,7 @@ const de_DeletePublicAccessBlockCommand = async (output, context) => {
2722
2722
  const contents = (0, smithy_client_1.map)({
2723
2723
  $metadata: deserializeMetadata(output),
2724
2724
  });
2725
- await collectBody(output.body, context);
2725
+ await (0, smithy_client_1.collectBody)(output.body, context);
2726
2726
  return contents;
2727
2727
  };
2728
2728
  exports.de_DeletePublicAccessBlockCommand = de_DeletePublicAccessBlockCommand;
@@ -2746,7 +2746,7 @@ const de_DeleteStorageLensConfigurationCommand = async (output, context) => {
2746
2746
  const contents = (0, smithy_client_1.map)({
2747
2747
  $metadata: deserializeMetadata(output),
2748
2748
  });
2749
- await collectBody(output.body, context);
2749
+ await (0, smithy_client_1.collectBody)(output.body, context);
2750
2750
  return contents;
2751
2751
  };
2752
2752
  exports.de_DeleteStorageLensConfigurationCommand = de_DeleteStorageLensConfigurationCommand;
@@ -2770,7 +2770,7 @@ const de_DeleteStorageLensConfigurationTaggingCommand = async (output, context)
2770
2770
  const contents = (0, smithy_client_1.map)({
2771
2771
  $metadata: deserializeMetadata(output),
2772
2772
  });
2773
- await collectBody(output.body, context);
2773
+ await (0, smithy_client_1.collectBody)(output.body, context);
2774
2774
  return contents;
2775
2775
  };
2776
2776
  exports.de_DeleteStorageLensConfigurationTaggingCommand = de_DeleteStorageLensConfigurationTaggingCommand;
@@ -3721,7 +3721,7 @@ const de_PutAccessPointConfigurationForObjectLambdaCommand = async (output, cont
3721
3721
  const contents = (0, smithy_client_1.map)({
3722
3722
  $metadata: deserializeMetadata(output),
3723
3723
  });
3724
- await collectBody(output.body, context);
3724
+ await (0, smithy_client_1.collectBody)(output.body, context);
3725
3725
  return contents;
3726
3726
  };
3727
3727
  exports.de_PutAccessPointConfigurationForObjectLambdaCommand = de_PutAccessPointConfigurationForObjectLambdaCommand;
@@ -3745,7 +3745,7 @@ const de_PutAccessPointPolicyCommand = async (output, context) => {
3745
3745
  const contents = (0, smithy_client_1.map)({
3746
3746
  $metadata: deserializeMetadata(output),
3747
3747
  });
3748
- await collectBody(output.body, context);
3748
+ await (0, smithy_client_1.collectBody)(output.body, context);
3749
3749
  return contents;
3750
3750
  };
3751
3751
  exports.de_PutAccessPointPolicyCommand = de_PutAccessPointPolicyCommand;
@@ -3769,7 +3769,7 @@ const de_PutAccessPointPolicyForObjectLambdaCommand = async (output, context) =>
3769
3769
  const contents = (0, smithy_client_1.map)({
3770
3770
  $metadata: deserializeMetadata(output),
3771
3771
  });
3772
- await collectBody(output.body, context);
3772
+ await (0, smithy_client_1.collectBody)(output.body, context);
3773
3773
  return contents;
3774
3774
  };
3775
3775
  exports.de_PutAccessPointPolicyForObjectLambdaCommand = de_PutAccessPointPolicyForObjectLambdaCommand;
@@ -3793,7 +3793,7 @@ const de_PutBucketLifecycleConfigurationCommand = async (output, context) => {
3793
3793
  const contents = (0, smithy_client_1.map)({
3794
3794
  $metadata: deserializeMetadata(output),
3795
3795
  });
3796
- await collectBody(output.body, context);
3796
+ await (0, smithy_client_1.collectBody)(output.body, context);
3797
3797
  return contents;
3798
3798
  };
3799
3799
  exports.de_PutBucketLifecycleConfigurationCommand = de_PutBucketLifecycleConfigurationCommand;
@@ -3817,7 +3817,7 @@ const de_PutBucketPolicyCommand = async (output, context) => {
3817
3817
  const contents = (0, smithy_client_1.map)({
3818
3818
  $metadata: deserializeMetadata(output),
3819
3819
  });
3820
- await collectBody(output.body, context);
3820
+ await (0, smithy_client_1.collectBody)(output.body, context);
3821
3821
  return contents;
3822
3822
  };
3823
3823
  exports.de_PutBucketPolicyCommand = de_PutBucketPolicyCommand;
@@ -3841,7 +3841,7 @@ const de_PutBucketReplicationCommand = async (output, context) => {
3841
3841
  const contents = (0, smithy_client_1.map)({
3842
3842
  $metadata: deserializeMetadata(output),
3843
3843
  });
3844
- await collectBody(output.body, context);
3844
+ await (0, smithy_client_1.collectBody)(output.body, context);
3845
3845
  return contents;
3846
3846
  };
3847
3847
  exports.de_PutBucketReplicationCommand = de_PutBucketReplicationCommand;
@@ -3865,7 +3865,7 @@ const de_PutBucketTaggingCommand = async (output, context) => {
3865
3865
  const contents = (0, smithy_client_1.map)({
3866
3866
  $metadata: deserializeMetadata(output),
3867
3867
  });
3868
- await collectBody(output.body, context);
3868
+ await (0, smithy_client_1.collectBody)(output.body, context);
3869
3869
  return contents;
3870
3870
  };
3871
3871
  exports.de_PutBucketTaggingCommand = de_PutBucketTaggingCommand;
@@ -3889,7 +3889,7 @@ const de_PutBucketVersioningCommand = async (output, context) => {
3889
3889
  const contents = (0, smithy_client_1.map)({
3890
3890
  $metadata: deserializeMetadata(output),
3891
3891
  });
3892
- await collectBody(output.body, context);
3892
+ await (0, smithy_client_1.collectBody)(output.body, context);
3893
3893
  return contents;
3894
3894
  };
3895
3895
  exports.de_PutBucketVersioningCommand = de_PutBucketVersioningCommand;
@@ -3913,7 +3913,7 @@ const de_PutJobTaggingCommand = async (output, context) => {
3913
3913
  const contents = (0, smithy_client_1.map)({
3914
3914
  $metadata: deserializeMetadata(output),
3915
3915
  });
3916
- await collectBody(output.body, context);
3916
+ await (0, smithy_client_1.collectBody)(output.body, context);
3917
3917
  return contents;
3918
3918
  };
3919
3919
  exports.de_PutJobTaggingCommand = de_PutJobTaggingCommand;
@@ -3979,7 +3979,7 @@ const de_PutPublicAccessBlockCommand = async (output, context) => {
3979
3979
  const contents = (0, smithy_client_1.map)({
3980
3980
  $metadata: deserializeMetadata(output),
3981
3981
  });
3982
- await collectBody(output.body, context);
3982
+ await (0, smithy_client_1.collectBody)(output.body, context);
3983
3983
  return contents;
3984
3984
  };
3985
3985
  exports.de_PutPublicAccessBlockCommand = de_PutPublicAccessBlockCommand;
@@ -4003,7 +4003,7 @@ const de_PutStorageLensConfigurationCommand = async (output, context) => {
4003
4003
  const contents = (0, smithy_client_1.map)({
4004
4004
  $metadata: deserializeMetadata(output),
4005
4005
  });
4006
- await collectBody(output.body, context);
4006
+ await (0, smithy_client_1.collectBody)(output.body, context);
4007
4007
  return contents;
4008
4008
  };
4009
4009
  exports.de_PutStorageLensConfigurationCommand = de_PutStorageLensConfigurationCommand;
@@ -4027,7 +4027,7 @@ const de_PutStorageLensConfigurationTaggingCommand = async (output, context) =>
4027
4027
  const contents = (0, smithy_client_1.map)({
4028
4028
  $metadata: deserializeMetadata(output),
4029
4029
  });
4030
- await collectBody(output.body, context);
4030
+ await (0, smithy_client_1.collectBody)(output.body, context);
4031
4031
  return contents;
4032
4032
  };
4033
4033
  exports.de_PutStorageLensConfigurationTaggingCommand = de_PutStorageLensConfigurationTaggingCommand;
@@ -4051,7 +4051,7 @@ const de_SubmitMultiRegionAccessPointRoutesCommand = async (output, context) =>
4051
4051
  const contents = (0, smithy_client_1.map)({
4052
4052
  $metadata: deserializeMetadata(output),
4053
4053
  });
4054
- await collectBody(output.body, context);
4054
+ await (0, smithy_client_1.collectBody)(output.body, context);
4055
4055
  return contents;
4056
4056
  };
4057
4057
  exports.de_SubmitMultiRegionAccessPointRoutesCommand = de_SubmitMultiRegionAccessPointRoutesCommand;
@@ -7533,13 +7533,7 @@ const deserializeMetadata = (output) => ({
7533
7533
  extendedRequestId: output.headers["x-amz-id-2"],
7534
7534
  cfId: output.headers["x-amz-cf-id"],
7535
7535
  });
7536
- const collectBody = (streamBody = new Uint8Array(), context) => {
7537
- if (streamBody instanceof Uint8Array) {
7538
- return Promise.resolve(streamBody);
7539
- }
7540
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7541
- };
7542
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7536
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
7543
7537
  const isSerializableHeaderValue = (value) => value !== undefined &&
7544
7538
  value !== null &&
7545
7539
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder";
3
3
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
4
4
  import { XMLParser } from "fast-xml-parser";
@@ -7400,12 +7400,6 @@ const deserializeMetadata = (output) => ({
7400
7400
  extendedRequestId: output.headers["x-amz-id-2"],
7401
7401
  cfId: output.headers["x-amz-cf-id"],
7402
7402
  });
7403
- const collectBody = (streamBody = new Uint8Array(), context) => {
7404
- if (streamBody instanceof Uint8Array) {
7405
- return Promise.resolve(streamBody);
7406
- }
7407
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7408
- };
7409
7403
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7410
7404
  const isSerializableHeaderValue = (value) => value !== undefined &&
7411
7405
  value !== null &&
@@ -140,7 +140,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
140
140
  */
141
141
  runtime?: string;
142
142
  /**
143
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
143
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
144
144
  * trait of an operation.
145
145
  */
146
146
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3-control",
3
3
  "description": "AWS SDK for JavaScript S3 Control 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",
@@ -23,41 +23,41 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "3.0.0",
25
25
  "@aws-crypto/sha256-js": "3.0.0",
26
- "@aws-sdk/client-sts": "3.354.0",
27
- "@aws-sdk/config-resolver": "3.354.0",
28
- "@aws-sdk/credential-provider-node": "3.354.0",
29
- "@aws-sdk/fetch-http-handler": "3.353.0",
30
- "@aws-sdk/hash-blob-browser": "3.353.0",
31
- "@aws-sdk/hash-node": "3.347.0",
32
- "@aws-sdk/hash-stream-node": "3.347.0",
33
- "@aws-sdk/invalid-dependency": "3.347.0",
34
- "@aws-sdk/md5-js": "3.347.0",
35
- "@aws-sdk/middleware-apply-body-checksum": "3.347.0",
36
- "@aws-sdk/middleware-content-length": "3.347.0",
37
- "@aws-sdk/middleware-endpoint": "3.347.0",
38
- "@aws-sdk/middleware-host-header": "3.347.0",
39
- "@aws-sdk/middleware-logger": "3.347.0",
40
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
41
- "@aws-sdk/middleware-retry": "3.354.0",
42
- "@aws-sdk/middleware-sdk-s3-control": "3.354.0",
43
- "@aws-sdk/middleware-serde": "3.347.0",
44
- "@aws-sdk/middleware-signing": "3.354.0",
45
- "@aws-sdk/middleware-stack": "3.347.0",
46
- "@aws-sdk/middleware-user-agent": "3.352.0",
47
- "@aws-sdk/node-config-provider": "3.354.0",
48
- "@aws-sdk/node-http-handler": "3.350.0",
49
- "@aws-sdk/smithy-client": "3.347.0",
50
- "@aws-sdk/types": "3.347.0",
51
- "@aws-sdk/url-parser": "3.347.0",
26
+ "@aws-sdk/client-sts": "3.357.0",
27
+ "@aws-sdk/config-resolver": "3.357.0",
28
+ "@aws-sdk/credential-provider-node": "3.357.0",
29
+ "@aws-sdk/fetch-http-handler": "3.357.0",
30
+ "@aws-sdk/hash-blob-browser": "3.357.0",
31
+ "@aws-sdk/hash-node": "3.357.0",
32
+ "@aws-sdk/hash-stream-node": "3.357.0",
33
+ "@aws-sdk/invalid-dependency": "3.357.0",
34
+ "@aws-sdk/md5-js": "3.357.0",
35
+ "@aws-sdk/middleware-apply-body-checksum": "3.357.0",
36
+ "@aws-sdk/middleware-content-length": "3.357.0",
37
+ "@aws-sdk/middleware-endpoint": "3.357.0",
38
+ "@aws-sdk/middleware-host-header": "3.357.0",
39
+ "@aws-sdk/middleware-logger": "3.357.0",
40
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
41
+ "@aws-sdk/middleware-retry": "3.357.0",
42
+ "@aws-sdk/middleware-sdk-s3-control": "3.357.0",
43
+ "@aws-sdk/middleware-serde": "3.357.0",
44
+ "@aws-sdk/middleware-signing": "3.357.0",
45
+ "@aws-sdk/middleware-stack": "3.357.0",
46
+ "@aws-sdk/middleware-user-agent": "3.357.0",
47
+ "@aws-sdk/node-config-provider": "3.357.0",
48
+ "@aws-sdk/node-http-handler": "3.357.0",
49
+ "@aws-sdk/smithy-client": "3.357.0",
50
+ "@aws-sdk/types": "3.357.0",
51
+ "@aws-sdk/url-parser": "3.357.0",
52
52
  "@aws-sdk/util-base64": "3.310.0",
53
53
  "@aws-sdk/util-body-length-browser": "3.310.0",
54
54
  "@aws-sdk/util-body-length-node": "3.310.0",
55
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
56
- "@aws-sdk/util-defaults-mode-node": "3.354.0",
57
- "@aws-sdk/util-endpoints": "3.352.0",
58
- "@aws-sdk/util-retry": "3.347.0",
59
- "@aws-sdk/util-user-agent-browser": "3.347.0",
60
- "@aws-sdk/util-user-agent-node": "3.354.0",
55
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
56
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
57
+ "@aws-sdk/util-endpoints": "3.357.0",
58
+ "@aws-sdk/util-retry": "3.357.0",
59
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
60
+ "@aws-sdk/util-user-agent-node": "3.357.0",
61
61
  "@aws-sdk/util-utf8": "3.310.0",
62
62
  "@aws-sdk/xml-builder": "3.310.0",
63
63
  "@smithy/protocol-http": "^1.0.1",