@aws-sdk/client-cloudsearch-domain 3.121.0 → 3.130.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-cloudsearch-domain
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-cloudsearch-domain
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -267,9 +267,7 @@ const deserializeAws_restJson1Bucket = (output, context) => {
267
267
  };
268
268
  const deserializeAws_restJson1BucketInfo = (output, context) => {
269
269
  return {
270
- buckets: output.buckets !== undefined && output.buckets !== null
271
- ? deserializeAws_restJson1BucketList(output.buckets, context)
272
- : undefined,
270
+ buckets: output.buckets != null ? deserializeAws_restJson1BucketList(output.buckets, context) : undefined,
273
271
  };
274
272
  };
275
273
  const deserializeAws_restJson1BucketList = (output, context) => {
@@ -368,15 +366,9 @@ const deserializeAws_restJson1Highlights = (output, context) => {
368
366
  };
369
367
  const deserializeAws_restJson1Hit = (output, context) => {
370
368
  return {
371
- exprs: output.exprs !== undefined && output.exprs !== null
372
- ? deserializeAws_restJson1Exprs(output.exprs, context)
373
- : undefined,
374
- fields: output.fields !== undefined && output.fields !== null
375
- ? deserializeAws_restJson1Fields(output.fields, context)
376
- : undefined,
377
- highlights: output.highlights !== undefined && output.highlights !== null
378
- ? deserializeAws_restJson1Highlights(output.highlights, context)
379
- : undefined,
369
+ exprs: output.exprs != null ? deserializeAws_restJson1Exprs(output.exprs, context) : undefined,
370
+ fields: output.fields != null ? deserializeAws_restJson1Fields(output.fields, context) : undefined,
371
+ highlights: output.highlights != null ? deserializeAws_restJson1Highlights(output.highlights, context) : undefined,
380
372
  id: (0, smithy_client_1.expectString)(output.id),
381
373
  };
382
374
  };
@@ -395,9 +387,7 @@ const deserializeAws_restJson1Hits = (output, context) => {
395
387
  return {
396
388
  cursor: (0, smithy_client_1.expectString)(output.cursor),
397
389
  found: (0, smithy_client_1.expectLong)(output.found),
398
- hit: output.hit !== undefined && output.hit !== null
399
- ? deserializeAws_restJson1HitList(output.hit, context)
400
- : undefined,
390
+ hit: output.hit != null ? deserializeAws_restJson1HitList(output.hit, context) : undefined,
401
391
  start: (0, smithy_client_1.expectLong)(output.start),
402
392
  };
403
393
  };
@@ -440,9 +430,7 @@ const deserializeAws_restJson1SuggestModel = (output, context) => {
440
430
  return {
441
431
  found: (0, smithy_client_1.expectLong)(output.found),
442
432
  query: (0, smithy_client_1.expectString)(output.query),
443
- suggestions: output.suggestions !== undefined && output.suggestions !== null
444
- ? deserializeAws_restJson1Suggestions(output.suggestions, context)
445
- : undefined,
433
+ suggestions: output.suggestions != null ? deserializeAws_restJson1Suggestions(output.suggestions, context) : undefined,
446
434
  };
447
435
  };
448
436
  const deserializeAws_restJson1SuggestStatus = (output, context) => {
@@ -482,6 +470,9 @@ const loadRestJsonErrorCode = (output, data) => {
482
470
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
483
471
  const sanitizeErrorCode = (rawValue) => {
484
472
  let cleanValue = rawValue;
473
+ if (typeof cleanValue === "number") {
474
+ cleanValue = cleanValue.toString();
475
+ }
485
476
  if (cleanValue.indexOf(":") >= 0) {
486
477
  cleanValue = cleanValue.split(":")[0];
487
478
  }
@@ -311,9 +311,7 @@ var deserializeAws_restJson1Bucket = function (output, context) {
311
311
  };
312
312
  var deserializeAws_restJson1BucketInfo = function (output, context) {
313
313
  return {
314
- buckets: output.buckets !== undefined && output.buckets !== null
315
- ? deserializeAws_restJson1BucketList(output.buckets, context)
316
- : undefined,
314
+ buckets: output.buckets != null ? deserializeAws_restJson1BucketList(output.buckets, context) : undefined,
317
315
  };
318
316
  };
319
317
  var deserializeAws_restJson1BucketList = function (output, context) {
@@ -408,15 +406,9 @@ var deserializeAws_restJson1Highlights = function (output, context) {
408
406
  };
409
407
  var deserializeAws_restJson1Hit = function (output, context) {
410
408
  return {
411
- exprs: output.exprs !== undefined && output.exprs !== null
412
- ? deserializeAws_restJson1Exprs(output.exprs, context)
413
- : undefined,
414
- fields: output.fields !== undefined && output.fields !== null
415
- ? deserializeAws_restJson1Fields(output.fields, context)
416
- : undefined,
417
- highlights: output.highlights !== undefined && output.highlights !== null
418
- ? deserializeAws_restJson1Highlights(output.highlights, context)
419
- : undefined,
409
+ exprs: output.exprs != null ? deserializeAws_restJson1Exprs(output.exprs, context) : undefined,
410
+ fields: output.fields != null ? deserializeAws_restJson1Fields(output.fields, context) : undefined,
411
+ highlights: output.highlights != null ? deserializeAws_restJson1Highlights(output.highlights, context) : undefined,
420
412
  id: __expectString(output.id),
421
413
  };
422
414
  };
@@ -435,9 +427,7 @@ var deserializeAws_restJson1Hits = function (output, context) {
435
427
  return {
436
428
  cursor: __expectString(output.cursor),
437
429
  found: __expectLong(output.found),
438
- hit: output.hit !== undefined && output.hit !== null
439
- ? deserializeAws_restJson1HitList(output.hit, context)
440
- : undefined,
430
+ hit: output.hit != null ? deserializeAws_restJson1HitList(output.hit, context) : undefined,
441
431
  start: __expectLong(output.start),
442
432
  };
443
433
  };
@@ -479,9 +469,7 @@ var deserializeAws_restJson1SuggestModel = function (output, context) {
479
469
  return {
480
470
  found: __expectLong(output.found),
481
471
  query: __expectString(output.query),
482
- suggestions: output.suggestions !== undefined && output.suggestions !== null
483
- ? deserializeAws_restJson1Suggestions(output.suggestions, context)
484
- : undefined,
472
+ suggestions: output.suggestions != null ? deserializeAws_restJson1Suggestions(output.suggestions, context) : undefined,
485
473
  };
486
474
  };
487
475
  var deserializeAws_restJson1SuggestStatus = function (output, context) {
@@ -528,6 +516,9 @@ var loadRestJsonErrorCode = function (output, data) {
528
516
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
529
517
  var sanitizeErrorCode = function (rawValue) {
530
518
  var cleanValue = rawValue;
519
+ if (typeof cleanValue === "number") {
520
+ cleanValue = cleanValue.toString();
521
+ }
531
522
  if (cleanValue.indexOf(":") >= 0) {
532
523
  cleanValue = cleanValue.split(":")[0];
533
524
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch-domain",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch Domain Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.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",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"