New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/core

Package Overview
Dependencies
Maintainers
5
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/core - npm Package Compare versions

Comparing version 3.716.0 to 3.723.0

40

dist-cjs/submodules/httpAuthSchemes/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc