Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trivikr-test/middleware-signing

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trivikr-test/middleware-signing - npm Package Compare versions

Comparing version 3.170.0-es2017 to 3.170.0-es2018

27

dist-es/configurations.js

@@ -26,3 +26,10 @@ import { memoize } from "@trivikr-test/property-provider";

input.signingName = input.signingName || signingService || input.serviceId;
const params = Object.assign(Object.assign({}, input), { credentials: normalizedCreds, region: input.signingRegion, service: input.signingName, sha256, uriEscapePath: signingEscapePath });
const params = {
...input,
credentials: normalizedCreds,
region: input.signingRegion,
service: input.signingName,
sha256,
uriEscapePath: signingEscapePath,
};
const signerConstructor = input.signerConstructor || SignatureV4;

@@ -32,4 +39,9 @@ return new signerConstructor(params);

}
return Object.assign(Object.assign({}, input), { systemClockOffset,
signingEscapePath, credentials: normalizedCreds, signer });
return {
...input,
systemClockOffset,
signingEscapePath,
credentials: normalizedCreds,
signer,
};
};

@@ -54,4 +66,9 @@ export const resolveSigV4AuthConfig = (input) => {

}
return Object.assign(Object.assign({}, input), { systemClockOffset,
signingEscapePath, credentials: normalizedCreds, signer });
return {
...input,
systemClockOffset,
signingEscapePath,
credentials: normalizedCreds,
signer,
};
};

@@ -58,0 +75,0 @@ const normalizeProvider = (input) => {

7

dist-es/middleware.js

@@ -8,7 +8,10 @@ import { HttpRequest, HttpResponse } from "@trivikr-test/protocol-http";

const signer = await options.signer();
const output = await next(Object.assign(Object.assign({}, args), { request: await signer.sign(args.request, {
const output = await next({
...args,
request: await signer.sign(args.request, {
signingDate: getSkewCorrectedDate(options.systemClockOffset),
signingRegion: context["signing_region"],
signingService: context["signing_service"],
}) })).catch((error) => {
}),
}).catch((error) => {
var _a;

@@ -15,0 +18,0 @@ const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response);

{
"name": "@trivikr-test/middleware-signing",
"version": "3.170.0-es2017",
"version": "3.170.0-es2018",
"scripts": {

@@ -23,6 +23,6 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"dependencies": {
"@trivikr-test/property-provider": "3.170.0-es2017",
"@trivikr-test/protocol-http": "3.170.0-es2017",
"@trivikr-test/signature-v4": "3.170.0-es2017",
"@trivikr-test/types": "3.170.0-es2017",
"@trivikr-test/property-provider": "3.170.0-es2018",
"@trivikr-test/protocol-http": "3.170.0-es2018",
"@trivikr-test/signature-v4": "3.170.0-es2018",
"@trivikr-test/types": "3.170.0-es2018",
"tslib": "^2.3.1"

@@ -29,0 +29,0 @@ },

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