@aws-sdk/client-kinesis 3.354.0 → 3.358.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.
@@ -213,7 +213,7 @@ const de_AddTagsToStreamCommand = async (output, context) => {
213
213
  if (output.statusCode >= 300) {
214
214
  return de_AddTagsToStreamCommandError(output, context);
215
215
  }
216
- await collectBody(output.body, context);
216
+ await (0, smithy_client_1.collectBody)(output.body, context);
217
217
  const response = {
218
218
  $metadata: deserializeMetadata(output),
219
219
  };
@@ -255,7 +255,7 @@ const de_CreateStreamCommand = async (output, context) => {
255
255
  if (output.statusCode >= 300) {
256
256
  return de_CreateStreamCommandError(output, context);
257
257
  }
258
- await collectBody(output.body, context);
258
+ await (0, smithy_client_1.collectBody)(output.body, context);
259
259
  const response = {
260
260
  $metadata: deserializeMetadata(output),
261
261
  };
@@ -291,7 +291,7 @@ const de_DecreaseStreamRetentionPeriodCommand = async (output, context) => {
291
291
  if (output.statusCode >= 300) {
292
292
  return de_DecreaseStreamRetentionPeriodCommandError(output, context);
293
293
  }
294
- await collectBody(output.body, context);
294
+ await (0, smithy_client_1.collectBody)(output.body, context);
295
295
  const response = {
296
296
  $metadata: deserializeMetadata(output),
297
297
  };
@@ -333,7 +333,7 @@ const de_DeleteStreamCommand = async (output, context) => {
333
333
  if (output.statusCode >= 300) {
334
334
  return de_DeleteStreamCommandError(output, context);
335
335
  }
336
- await collectBody(output.body, context);
336
+ await (0, smithy_client_1.collectBody)(output.body, context);
337
337
  const response = {
338
338
  $metadata: deserializeMetadata(output),
339
339
  };
@@ -375,7 +375,7 @@ const de_DeregisterStreamConsumerCommand = async (output, context) => {
375
375
  if (output.statusCode >= 300) {
376
376
  return de_DeregisterStreamConsumerCommandError(output, context);
377
377
  }
378
- await collectBody(output.body, context);
378
+ await (0, smithy_client_1.collectBody)(output.body, context);
379
379
  const response = {
380
380
  $metadata: deserializeMetadata(output),
381
381
  };
@@ -762,7 +762,7 @@ const de_IncreaseStreamRetentionPeriodCommand = async (output, context) => {
762
762
  if (output.statusCode >= 300) {
763
763
  return de_IncreaseStreamRetentionPeriodCommandError(output, context);
764
764
  }
765
- await collectBody(output.body, context);
765
+ await (0, smithy_client_1.collectBody)(output.body, context);
766
766
  const response = {
767
767
  $metadata: deserializeMetadata(output),
768
768
  };
@@ -978,7 +978,7 @@ const de_MergeShardsCommand = async (output, context) => {
978
978
  if (output.statusCode >= 300) {
979
979
  return de_MergeShardsCommandError(output, context);
980
980
  }
981
- await collectBody(output.body, context);
981
+ await (0, smithy_client_1.collectBody)(output.body, context);
982
982
  const response = {
983
983
  $metadata: deserializeMetadata(output),
984
984
  };
@@ -1185,7 +1185,7 @@ const de_RemoveTagsFromStreamCommand = async (output, context) => {
1185
1185
  if (output.statusCode >= 300) {
1186
1186
  return de_RemoveTagsFromStreamCommandError(output, context);
1187
1187
  }
1188
- await collectBody(output.body, context);
1188
+ await (0, smithy_client_1.collectBody)(output.body, context);
1189
1189
  const response = {
1190
1190
  $metadata: deserializeMetadata(output),
1191
1191
  };
@@ -1227,7 +1227,7 @@ const de_SplitShardCommand = async (output, context) => {
1227
1227
  if (output.statusCode >= 300) {
1228
1228
  return de_SplitShardCommandError(output, context);
1229
1229
  }
1230
- await collectBody(output.body, context);
1230
+ await (0, smithy_client_1.collectBody)(output.body, context);
1231
1231
  const response = {
1232
1232
  $metadata: deserializeMetadata(output),
1233
1233
  };
@@ -1272,7 +1272,7 @@ const de_StartStreamEncryptionCommand = async (output, context) => {
1272
1272
  if (output.statusCode >= 300) {
1273
1273
  return de_StartStreamEncryptionCommandError(output, context);
1274
1274
  }
1275
- await collectBody(output.body, context);
1275
+ await (0, smithy_client_1.collectBody)(output.body, context);
1276
1276
  const response = {
1277
1277
  $metadata: deserializeMetadata(output),
1278
1278
  };
@@ -1332,7 +1332,7 @@ const de_StopStreamEncryptionCommand = async (output, context) => {
1332
1332
  if (output.statusCode >= 300) {
1333
1333
  return de_StopStreamEncryptionCommandError(output, context);
1334
1334
  }
1335
- await collectBody(output.body, context);
1335
+ await (0, smithy_client_1.collectBody)(output.body, context);
1336
1336
  const response = {
1337
1337
  $metadata: deserializeMetadata(output),
1338
1338
  };
@@ -1465,7 +1465,7 @@ const de_UpdateStreamModeCommand = async (output, context) => {
1465
1465
  if (output.statusCode >= 300) {
1466
1466
  return de_UpdateStreamModeCommandError(output, context);
1467
1467
  }
1468
- await collectBody(output.body, context);
1468
+ await (0, smithy_client_1.collectBody)(output.body, context);
1469
1469
  const response = {
1470
1470
  $metadata: deserializeMetadata(output),
1471
1471
  };
@@ -1994,13 +1994,7 @@ const deserializeMetadata = (output) => ({
1994
1994
  extendedRequestId: output.headers["x-amz-id-2"],
1995
1995
  cfId: output.headers["x-amz-cf-id"],
1996
1996
  });
1997
- const collectBody = (streamBody = new Uint8Array(), context) => {
1998
- if (streamBody instanceof Uint8Array) {
1999
- return Promise.resolve(streamBody);
2000
- }
2001
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2002
- };
2003
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1997
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2004
1998
  const throwDefaultError = (0, smithy_client_1.withBaseException)(KinesisServiceException_1.KinesisServiceException);
2005
1999
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2006
2000
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -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, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, 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, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { KinesisServiceException as __BaseException } from "../models/KinesisServiceException";
4
4
  import { AccessDeniedException, ExpiredIteratorException, ExpiredNextTokenException, InternalFailureException, InvalidArgumentException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, LimitExceededException, ProvisionedThroughputExceededException, ResourceInUseException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
@@ -1932,12 +1932,6 @@ const deserializeMetadata = (output) => ({
1932
1932
  extendedRequestId: output.headers["x-amz-id-2"],
1933
1933
  cfId: output.headers["x-amz-cf-id"],
1934
1934
  });
1935
- const collectBody = (streamBody = new Uint8Array(), context) => {
1936
- if (streamBody instanceof Uint8Array) {
1937
- return Promise.resolve(streamBody);
1938
- }
1939
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1940
- };
1941
1935
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1942
1936
  const throwDefaultError = withBaseException(__BaseException);
1943
1937
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -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-kinesis",
3
3
  "description": "AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native",
4
- "version": "3.354.0",
4
+ "version": "3.358.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",
@@ -22,41 +22,41 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/client-sts": "3.354.0",
26
- "@aws-sdk/config-resolver": "3.354.0",
27
- "@aws-sdk/credential-provider-node": "3.354.0",
28
- "@aws-sdk/eventstream-serde-browser": "3.347.0",
29
- "@aws-sdk/eventstream-serde-config-resolver": "3.347.0",
30
- "@aws-sdk/eventstream-serde-node": "3.347.0",
31
- "@aws-sdk/fetch-http-handler": "3.353.0",
32
- "@aws-sdk/hash-node": "3.347.0",
33
- "@aws-sdk/invalid-dependency": "3.347.0",
34
- "@aws-sdk/middleware-content-length": "3.347.0",
35
- "@aws-sdk/middleware-endpoint": "3.347.0",
36
- "@aws-sdk/middleware-host-header": "3.347.0",
37
- "@aws-sdk/middleware-logger": "3.347.0",
38
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
39
- "@aws-sdk/middleware-retry": "3.354.0",
40
- "@aws-sdk/middleware-serde": "3.347.0",
41
- "@aws-sdk/middleware-signing": "3.354.0",
42
- "@aws-sdk/middleware-stack": "3.347.0",
43
- "@aws-sdk/middleware-user-agent": "3.352.0",
44
- "@aws-sdk/node-config-provider": "3.354.0",
45
- "@aws-sdk/node-http-handler": "3.350.0",
46
- "@aws-sdk/smithy-client": "3.347.0",
47
- "@aws-sdk/types": "3.347.0",
48
- "@aws-sdk/url-parser": "3.347.0",
25
+ "@aws-sdk/client-sts": "3.358.0",
26
+ "@aws-sdk/config-resolver": "3.357.0",
27
+ "@aws-sdk/credential-provider-node": "3.358.0",
28
+ "@aws-sdk/eventstream-serde-browser": "3.357.0",
29
+ "@aws-sdk/eventstream-serde-config-resolver": "3.357.0",
30
+ "@aws-sdk/eventstream-serde-node": "3.357.0",
31
+ "@aws-sdk/fetch-http-handler": "3.357.0",
32
+ "@aws-sdk/hash-node": "3.357.0",
33
+ "@aws-sdk/invalid-dependency": "3.357.0",
34
+ "@aws-sdk/middleware-content-length": "3.357.0",
35
+ "@aws-sdk/middleware-endpoint": "3.357.0",
36
+ "@aws-sdk/middleware-host-header": "3.357.0",
37
+ "@aws-sdk/middleware-logger": "3.357.0",
38
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
39
+ "@aws-sdk/middleware-retry": "3.357.0",
40
+ "@aws-sdk/middleware-serde": "3.357.0",
41
+ "@aws-sdk/middleware-signing": "3.357.0",
42
+ "@aws-sdk/middleware-stack": "3.357.0",
43
+ "@aws-sdk/middleware-user-agent": "3.357.0",
44
+ "@aws-sdk/node-config-provider": "3.357.0",
45
+ "@aws-sdk/node-http-handler": "3.357.0",
46
+ "@aws-sdk/smithy-client": "3.358.0",
47
+ "@aws-sdk/types": "3.357.0",
48
+ "@aws-sdk/url-parser": "3.357.0",
49
49
  "@aws-sdk/util-base64": "3.310.0",
50
50
  "@aws-sdk/util-body-length-browser": "3.310.0",
51
51
  "@aws-sdk/util-body-length-node": "3.310.0",
52
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
53
- "@aws-sdk/util-defaults-mode-node": "3.354.0",
54
- "@aws-sdk/util-endpoints": "3.352.0",
55
- "@aws-sdk/util-retry": "3.347.0",
56
- "@aws-sdk/util-user-agent-browser": "3.347.0",
57
- "@aws-sdk/util-user-agent-node": "3.354.0",
52
+ "@aws-sdk/util-defaults-mode-browser": "3.358.0",
53
+ "@aws-sdk/util-defaults-mode-node": "3.358.0",
54
+ "@aws-sdk/util-endpoints": "3.357.0",
55
+ "@aws-sdk/util-retry": "3.357.0",
56
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
57
+ "@aws-sdk/util-user-agent-node": "3.357.0",
58
58
  "@aws-sdk/util-utf8": "3.310.0",
59
- "@aws-sdk/util-waiter": "3.347.0",
59
+ "@aws-sdk/util-waiter": "3.357.0",
60
60
  "@smithy/protocol-http": "^1.0.1",
61
61
  "@smithy/types": "^1.0.0",
62
62
  "tslib": "^2.5.0"