@aws-sdk/core
Advanced tools
Comparing version 3.716.0 to 3.723.0
@@ -40,6 +40,3 @@ "use strict"; | ||
var import_protocol_http = require("@smithy/protocol-http"); | ||
var getDateHeader = /* @__PURE__ */ __name((response) => { | ||
var _a, _b; | ||
return import_protocol_http.HttpResponse.isInstance(response) ? ((_a = response.headers) == null ? void 0 : _a.date) ?? ((_b = response.headers) == null ? void 0 : _b.Date) : void 0; | ||
}, "getDateHeader"); | ||
var getDateHeader = /* @__PURE__ */ __name((response) => import_protocol_http.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0, "getDateHeader"); | ||
@@ -69,3 +66,2 @@ // src/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.ts | ||
var validateSigningProperties = /* @__PURE__ */ __name(async (signingProperties) => { | ||
var _a, _b, _c; | ||
const context = throwSigningPropertyError( | ||
@@ -76,3 +72,3 @@ "context", | ||
const config = throwSigningPropertyError("config", signingProperties.config); | ||
const authScheme = (_c = (_b = (_a = context.endpointV2) == null ? void 0 : _a.properties) == null ? void 0 : _b.authSchemes) == null ? void 0 : _c[0]; | ||
const authScheme = context.endpointV2?.properties?.authSchemes?.[0]; | ||
const signerFunction = throwSigningPropertyError( | ||
@@ -83,5 +79,5 @@ "signer", | ||
const signer = await signerFunction(authScheme); | ||
const signingRegion = signingProperties == null ? void 0 : signingProperties.signingRegion; | ||
const signingRegionSet = signingProperties == null ? void 0 : signingProperties.signingRegionSet; | ||
const signingName = signingProperties == null ? void 0 : signingProperties.signingName; | ||
const signingRegion = signingProperties?.signingRegion; | ||
const signingRegionSet = signingProperties?.signingRegionSet; | ||
const signingName = signingProperties?.signingName; | ||
return { | ||
@@ -95,5 +91,7 @@ config, | ||
}, "validateSigningProperties"); | ||
var _AwsSdkSigV4Signer = class _AwsSdkSigV4Signer { | ||
var AwsSdkSigV4Signer = class { | ||
static { | ||
__name(this, "AwsSdkSigV4Signer"); | ||
} | ||
async sign(httpRequest, identity, signingProperties) { | ||
var _a; | ||
if (!import_protocol_http2.HttpRequest.isInstance(httpRequest)) { | ||
@@ -106,7 +104,7 @@ throw new Error("The request is not an instance of `HttpRequest` and cannot be signed"); | ||
const handlerExecutionContext = signingProperties.context; | ||
if (((_a = handlerExecutionContext == null ? void 0 : handlerExecutionContext.authSchemes) == null ? void 0 : _a.length) ?? 0 > 1) { | ||
if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) { | ||
const [first, second] = handlerExecutionContext.authSchemes; | ||
if ((first == null ? void 0 : first.name) === "sigv4a" && (second == null ? void 0 : second.name) === "sigv4") { | ||
signingRegion = (second == null ? void 0 : second.signingRegion) ?? signingRegion; | ||
signingName = (second == null ? void 0 : second.signingName) ?? signingName; | ||
if (first?.name === "sigv4a" && second?.name === "sigv4") { | ||
signingRegion = second?.signingRegion ?? signingRegion; | ||
signingName = second?.signingName ?? signingName; | ||
} | ||
@@ -144,4 +142,2 @@ } | ||
}; | ||
__name(_AwsSdkSigV4Signer, "AwsSdkSigV4Signer"); | ||
var AwsSdkSigV4Signer = _AwsSdkSigV4Signer; | ||
var AWSSDKSigV4Signer = AwsSdkSigV4Signer; | ||
@@ -151,5 +147,7 @@ | ||
var import_protocol_http3 = require("@smithy/protocol-http"); | ||
var _AwsSdkSigV4ASigner = class _AwsSdkSigV4ASigner extends AwsSdkSigV4Signer { | ||
var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer { | ||
static { | ||
__name(this, "AwsSdkSigV4ASigner"); | ||
} | ||
async sign(httpRequest, identity, signingProperties) { | ||
var _a; | ||
if (!import_protocol_http3.HttpRequest.isInstance(httpRequest)) { | ||
@@ -161,3 +159,3 @@ throw new Error("The request is not an instance of `HttpRequest` and cannot be signed"); | ||
); | ||
const configResolvedSigningRegionSet = await ((_a = config.sigv4aSigningRegionSet) == null ? void 0 : _a.call(config)); | ||
const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.(); | ||
const multiRegionOverride = (configResolvedSigningRegionSet ?? signingRegionSet ?? [signingRegion]).join(","); | ||
@@ -172,4 +170,2 @@ const signedRequest = await signer.sign(httpRequest, { | ||
}; | ||
__name(_AwsSdkSigV4ASigner, "AwsSdkSigV4ASigner"); | ||
var AwsSdkSigV4ASigner = _AwsSdkSigV4ASigner; | ||
@@ -176,0 +172,0 @@ // src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.ts |
@@ -114,3 +114,3 @@ "use strict"; | ||
} catch (e) { | ||
if ((e == null ? void 0 : e.name) === "SyntaxError") { | ||
if (e?.name === "SyntaxError") { | ||
Object.defineProperty(e, "$responseBodyText", { | ||
@@ -206,7 +206,6 @@ value: encoded | ||
var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => { | ||
var _a; | ||
if (((_a = data == null ? void 0 : data.Error) == null ? void 0 : _a.Code) !== void 0) { | ||
if (data?.Error?.Code !== void 0) { | ||
return data.Error.Code; | ||
} | ||
if ((data == null ? void 0 : data.Code) !== void 0) { | ||
if (data?.Code !== void 0) { | ||
return data.Code; | ||
@@ -213,0 +212,0 @@ } |
{ | ||
"name": "@aws-sdk/core", | ||
"version": "3.716.0", | ||
"version": "3.723.0", | ||
"description": "Core functions & classes shared by multiple AWS SDK clients.", | ||
@@ -84,11 +84,11 @@ "scripts": { | ||
"dependencies": { | ||
"@aws-sdk/types": "3.714.0", | ||
"@smithy/core": "^2.5.5", | ||
"@smithy/node-config-provider": "^3.1.12", | ||
"@smithy/property-provider": "^3.1.11", | ||
"@smithy/protocol-http": "^4.1.8", | ||
"@smithy/signature-v4": "^4.2.4", | ||
"@smithy/smithy-client": "^3.5.1", | ||
"@smithy/types": "^3.7.2", | ||
"@smithy/util-middleware": "^3.0.11", | ||
"@aws-sdk/types": "3.723.0", | ||
"@smithy/core": "^3.0.0", | ||
"@smithy/node-config-provider": "^4.0.0", | ||
"@smithy/property-provider": "^4.0.0", | ||
"@smithy/protocol-http": "^5.0.0", | ||
"@smithy/signature-v4": "^5.0.0", | ||
"@smithy/smithy-client": "^4.0.0", | ||
"@smithy/types": "^4.0.0", | ||
"@smithy/util-middleware": "^4.0.0", | ||
"fast-xml-parser": "4.4.1", | ||
@@ -102,6 +102,6 @@ "tslib": "^2.6.2" | ||
"rimraf": "3.0.2", | ||
"typescript": "~4.9.5" | ||
"typescript": "~5.2.2" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -108,0 +108,0 @@ "typesVersions": { |
77939
1834
+ Added@aws-sdk/types@3.723.0(transitive)
+ Added@smithy/abort-controller@4.0.1(transitive)
+ Added@smithy/core@3.1.1(transitive)
+ Added@smithy/fetch-http-handler@5.0.1(transitive)
+ Added@smithy/is-array-buffer@4.0.0(transitive)
+ Added@smithy/middleware-endpoint@4.0.2(transitive)
+ Added@smithy/middleware-serde@4.0.1(transitive)
+ Added@smithy/middleware-stack@4.0.1(transitive)
+ Added@smithy/node-config-provider@4.0.1(transitive)
+ Added@smithy/node-http-handler@4.0.2(transitive)
+ Added@smithy/property-provider@4.0.1(transitive)
+ Added@smithy/protocol-http@5.0.1(transitive)
+ Added@smithy/querystring-builder@4.0.1(transitive)
+ Added@smithy/querystring-parser@4.0.1(transitive)
+ Added@smithy/shared-ini-file-loader@4.0.1(transitive)
+ Added@smithy/signature-v4@5.0.1(transitive)
+ Added@smithy/smithy-client@4.1.2(transitive)
+ Added@smithy/types@4.1.0(transitive)
+ Added@smithy/url-parser@4.0.1(transitive)
+ Added@smithy/util-base64@4.0.0(transitive)
+ Added@smithy/util-body-length-browser@4.0.0(transitive)
+ Added@smithy/util-buffer-from@4.0.0(transitive)
+ Added@smithy/util-hex-encoding@4.0.0(transitive)
+ Added@smithy/util-middleware@4.0.1(transitive)
+ Added@smithy/util-stream@4.0.2(transitive)
+ Added@smithy/util-uri-escape@4.0.0(transitive)
+ Added@smithy/util-utf8@4.0.0(transitive)
- Removed@aws-sdk/types@3.714.0(transitive)
- Removed@smithy/abort-controller@3.1.9(transitive)
- Removed@smithy/core@2.5.7(transitive)
- Removed@smithy/fetch-http-handler@4.1.3(transitive)
- Removed@smithy/is-array-buffer@3.0.0(transitive)
- Removed@smithy/middleware-endpoint@3.2.8(transitive)
- Removed@smithy/middleware-serde@3.0.11(transitive)
- Removed@smithy/middleware-stack@3.0.11(transitive)
- Removed@smithy/node-config-provider@3.1.12(transitive)
- Removed@smithy/node-http-handler@3.3.3(transitive)
- Removed@smithy/property-provider@3.1.11(transitive)
- Removed@smithy/protocol-http@4.1.8(transitive)
- Removed@smithy/querystring-builder@3.0.11(transitive)
- Removed@smithy/querystring-parser@3.0.11(transitive)
- Removed@smithy/shared-ini-file-loader@3.1.12(transitive)
- Removed@smithy/signature-v4@4.2.4(transitive)
- Removed@smithy/smithy-client@3.7.0(transitive)
- Removed@smithy/types@3.7.2(transitive)
- Removed@smithy/url-parser@3.0.11(transitive)
- Removed@smithy/util-base64@3.0.0(transitive)
- Removed@smithy/util-body-length-browser@3.0.0(transitive)
- Removed@smithy/util-buffer-from@3.0.0(transitive)
- Removed@smithy/util-hex-encoding@3.0.0(transitive)
- Removed@smithy/util-middleware@3.0.11(transitive)
- Removed@smithy/util-stream@3.3.4(transitive)
- Removed@smithy/util-uri-escape@3.0.0(transitive)
- Removed@smithy/util-utf8@3.0.0(transitive)
Updated@aws-sdk/types@3.723.0
Updated@smithy/core@^3.0.0
Updated@smithy/protocol-http@^5.0.0
Updated@smithy/signature-v4@^5.0.0
Updated@smithy/smithy-client@^4.0.0
Updated@smithy/types@^4.0.0