@aws-sdk/core 3.810.0 → 3.816.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/dist-cjs/submodules/httpAuthSchemes/index.js +2 -0
- package/dist-cjs/submodules/protocols/index.js +8 -5
- package/dist-es/submodules/httpAuthSchemes/index.js +1 -0
- package/dist-es/submodules/protocols/json/parseJsonBody.js +8 -5
- package/dist-types/submodules/httpAuthSchemes/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
AwsSdkSigV4Signer: () => AwsSdkSigV4Signer,
|
|
27
27
|
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: () => NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
28
28
|
NODE_SIGV4A_CONFIG_OPTIONS: () => NODE_SIGV4A_CONFIG_OPTIONS,
|
|
29
|
+
getBearerTokenEnvKey: () => getBearerTokenEnvKey,
|
|
29
30
|
resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config,
|
|
30
31
|
resolveAwsSdkSigV4AConfig: () => resolveAwsSdkSigV4AConfig,
|
|
31
32
|
resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config,
|
|
@@ -382,6 +383,7 @@ __name(bindCallerConfig, "bindCallerConfig");
|
|
|
382
383
|
AwsSdkSigV4Signer,
|
|
383
384
|
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
384
385
|
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
386
|
+
getBearerTokenEnvKey,
|
|
385
387
|
resolveAWSSDKSigV4Config,
|
|
386
388
|
resolveAwsSdkSigV4AConfig,
|
|
387
389
|
resolveAwsSdkSigV4Config,
|
|
@@ -148,11 +148,14 @@ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
|
148
148
|
if (headerKey !== void 0) {
|
|
149
149
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
150
150
|
}
|
|
151
|
-
if (data
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
151
|
+
if (data && typeof data === "object") {
|
|
152
|
+
const codeKey = findKey(data, "code");
|
|
153
|
+
if (codeKey && data[codeKey] !== void 0) {
|
|
154
|
+
return sanitizeErrorCode(data[codeKey]);
|
|
155
|
+
}
|
|
156
|
+
if (data["__type"] !== void 0) {
|
|
157
|
+
return sanitizeErrorCode(data["__type"]);
|
|
158
|
+
}
|
|
156
159
|
}
|
|
157
160
|
}, "loadRestJsonErrorCode");
|
|
158
161
|
|
|
@@ -42,10 +42,13 @@ export const loadRestJsonErrorCode = (output, data) => {
|
|
|
42
42
|
if (headerKey !== undefined) {
|
|
43
43
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
44
44
|
}
|
|
45
|
-
if (data
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
if (data && typeof data === "object") {
|
|
46
|
+
const codeKey = findKey(data, "code");
|
|
47
|
+
if (codeKey && data[codeKey] !== undefined) {
|
|
48
|
+
return sanitizeErrorCode(data[codeKey]);
|
|
49
|
+
}
|
|
50
|
+
if (data["__type"] !== undefined) {
|
|
51
|
+
return sanitizeErrorCode(data["__type"]);
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
};
|
package/package.json
CHANGED