@aws-sdk/client-sts 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.
@@ -857,7 +857,7 @@ const deserializeAws_queryCredentials = (output, context) => {
857
857
  contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]);
858
858
  }
859
859
  if (output["Expiration"] !== undefined) {
860
- contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Expiration"]));
860
+ contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Expiration"]));
861
861
  }
862
862
  return contents;
863
863
  };
@@ -1074,7 +1074,7 @@ const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
1074
1074
  .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
1075
1075
  .join("&");
1076
1076
  const loadQueryErrorCode = (output, data) => {
1077
- if (data.Error.Code !== undefined) {
1077
+ if (data.Error?.Code !== undefined) {
1078
1078
  return data.Error.Code;
1079
1079
  }
1080
1080
  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, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
5
5
  import { STSServiceException as __BaseException } from "../models/STSServiceException";
@@ -838,7 +838,7 @@ const deserializeAws_queryCredentials = (output, context) => {
838
838
  contents.SessionToken = __expectString(output["SessionToken"]);
839
839
  }
840
840
  if (output["Expiration"] !== undefined) {
841
- contents.Expiration = __expectNonNull(__parseRfc3339DateTime(output["Expiration"]));
841
+ contents.Expiration = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Expiration"]));
842
842
  }
843
843
  return contents;
844
844
  };
@@ -1055,7 +1055,7 @@ const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
1055
1055
  .map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
1056
1056
  .join("&");
1057
1057
  const loadQueryErrorCode = (output, data) => {
1058
- if (data.Error.Code !== undefined) {
1058
+ if (data.Error?.Code !== undefined) {
1059
1059
  return data.Error.Code;
1060
1060
  }
1061
1061
  if (output.statusCode == 404) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts 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",
@@ -23,7 +23,7 @@
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
25
  "@aws-sdk/config-resolver": "3.259.0",
26
- "@aws-sdk/credential-provider-node": "3.259.0",
26
+ "@aws-sdk/credential-provider-node": "3.261.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.257.0",
28
28
  "@aws-sdk/hash-node": "3.257.0",
29
29
  "@aws-sdk/invalid-dependency": "3.257.0",
@@ -41,14 +41,14 @@
41
41
  "@aws-sdk/node-config-provider": "3.259.0",
42
42
  "@aws-sdk/node-http-handler": "3.257.0",
43
43
  "@aws-sdk/protocol-http": "3.257.0",
44
- "@aws-sdk/smithy-client": "3.257.0",
44
+ "@aws-sdk/smithy-client": "3.261.0",
45
45
  "@aws-sdk/types": "3.257.0",
46
46
  "@aws-sdk/url-parser": "3.257.0",
47
47
  "@aws-sdk/util-base64": "3.208.0",
48
48
  "@aws-sdk/util-body-length-browser": "3.188.0",
49
49
  "@aws-sdk/util-body-length-node": "3.208.0",
50
- "@aws-sdk/util-defaults-mode-browser": "3.257.0",
51
- "@aws-sdk/util-defaults-mode-node": "3.259.0",
50
+ "@aws-sdk/util-defaults-mode-browser": "3.261.0",
51
+ "@aws-sdk/util-defaults-mode-node": "3.261.0",
52
52
  "@aws-sdk/util-endpoints": "3.257.0",
53
53
  "@aws-sdk/util-retry": "3.257.0",
54
54
  "@aws-sdk/util-user-agent-browser": "3.257.0",