@aws-sdk/client-cloudsearch 3.259.0 → 3.262.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.
@@ -3196,10 +3196,10 @@ const deserializeAws_queryOptionStatus = (output, context) => {
3196
3196
  PendingDeletion: undefined,
3197
3197
  };
3198
3198
  if (output["CreationDate"] !== undefined) {
3199
- contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["CreationDate"]));
3199
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["CreationDate"]));
3200
3200
  }
3201
3201
  if (output["UpdateDate"] !== undefined) {
3202
- contents.UpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["UpdateDate"]));
3202
+ contents.UpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["UpdateDate"]));
3203
3203
  }
3204
3204
  if (output["UpdateVersion"] !== undefined) {
3205
3205
  contents.UpdateVersion = (0, smithy_client_1.strictParseInt32)(output["UpdateVersion"]);
@@ -3480,7 +3480,7 @@ const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
3480
3480
  .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
3481
3481
  .join("&");
3482
3482
  const loadQueryErrorCode = (output, data) => {
3483
- if (data.Error.Code !== undefined) {
3483
+ if (data.Error?.Code !== undefined) {
3484
3484
  return data.Error.Code;
3485
3485
  }
3486
3486
  if (output.statusCode == 404) {
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { CloudSearchServiceException as __BaseException } from "../models/CloudSearchServiceException";
5
5
  import { BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
@@ -3140,10 +3140,10 @@ const deserializeAws_queryOptionStatus = (output, context) => {
3140
3140
  PendingDeletion: undefined,
3141
3141
  };
3142
3142
  if (output["CreationDate"] !== undefined) {
3143
- contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(output["CreationDate"]));
3143
+ contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationDate"]));
3144
3144
  }
3145
3145
  if (output["UpdateDate"] !== undefined) {
3146
- contents.UpdateDate = __expectNonNull(__parseRfc3339DateTime(output["UpdateDate"]));
3146
+ contents.UpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UpdateDate"]));
3147
3147
  }
3148
3148
  if (output["UpdateVersion"] !== undefined) {
3149
3149
  contents.UpdateVersion = __strictParseInt32(output["UpdateVersion"]);
@@ -3424,7 +3424,7 @@ const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
3424
3424
  .map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
3425
3425
  .join("&");
3426
3426
  const loadQueryErrorCode = (output, data) => {
3427
- if (data.Error.Code !== undefined) {
3427
+ if (data.Error?.Code !== undefined) {
3428
3428
  return data.Error.Code;
3429
3429
  }
3430
3430
  if (output.statusCode == 404) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch Client for Node.js, Browser and React Native",
4
- "version": "3.259.0",
4
+ "version": "3.262.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",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.259.0",
23
+ "@aws-sdk/client-sts": "3.262.0",
24
24
  "@aws-sdk/config-resolver": "3.259.0",
25
- "@aws-sdk/credential-provider-node": "3.259.0",
25
+ "@aws-sdk/credential-provider-node": "3.261.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.257.0",
27
27
  "@aws-sdk/hash-node": "3.257.0",
28
28
  "@aws-sdk/invalid-dependency": "3.257.0",
@@ -39,14 +39,14 @@
39
39
  "@aws-sdk/node-config-provider": "3.259.0",
40
40
  "@aws-sdk/node-http-handler": "3.257.0",
41
41
  "@aws-sdk/protocol-http": "3.257.0",
42
- "@aws-sdk/smithy-client": "3.257.0",
42
+ "@aws-sdk/smithy-client": "3.261.0",
43
43
  "@aws-sdk/types": "3.257.0",
44
44
  "@aws-sdk/url-parser": "3.257.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.257.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.259.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.261.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.261.0",
50
50
  "@aws-sdk/util-endpoints": "3.257.0",
51
51
  "@aws-sdk/util-retry": "3.257.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.257.0",