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

@trivikr-test/signature-v4

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/signature-v4 - npm Package Compare versions

Comparing version 3.170.0-es2017 to 3.170.0-es2018

15

dist-es/cloneRequest.js

@@ -1,9 +0,12 @@

import { __rest } from "tslib";
export const cloneRequest = (_a) => {
var { headers, query } = _a, rest = __rest(_a, ["headers", "query"]);
return (Object.assign(Object.assign({}, rest), { headers: Object.assign({}, headers), query: query ? cloneQuery(query) : undefined }));
};
export const cloneRequest = ({ headers, query, ...rest }) => ({
...rest,
headers: { ...headers },
query: query ? cloneQuery(query) : undefined,
});
export const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => {
const param = query[paramName];
return Object.assign(Object.assign({}, carry), { [paramName]: Array.isArray(param) ? [...param] : param });
return {
...carry,
[paramName]: Array.isArray(param) ? [...param] : param,
};
}, {});

7

dist-es/moveHeadersToQuery.js

@@ -12,4 +12,7 @@ import { cloneRequest } from "./cloneRequest";

}
return Object.assign(Object.assign({}, request), { headers,
query });
return {
...request,
headers,
query,
};
};
{
"name": "@trivikr-test/signature-v4",
"version": "3.170.0-es2017",
"version": "3.170.0-es2018",
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",

@@ -24,7 +24,7 @@ "main": "./dist-cjs/index.js",

"dependencies": {
"@trivikr-test/is-array-buffer": "3.170.0-es2017",
"@trivikr-test/types": "3.170.0-es2017",
"@trivikr-test/util-hex-encoding": "3.170.0-es2017",
"@trivikr-test/util-middleware": "3.170.0-es2017",
"@trivikr-test/util-uri-escape": "3.170.0-es2017",
"@trivikr-test/is-array-buffer": "3.170.0-es2018",
"@trivikr-test/types": "3.170.0-es2018",
"@trivikr-test/util-hex-encoding": "3.170.0-es2018",
"@trivikr-test/util-middleware": "3.170.0-es2018",
"@trivikr-test/util-uri-escape": "3.170.0-es2018",
"tslib": "^2.3.1"

@@ -34,4 +34,4 @@ },

"@aws-crypto/sha256-js": "2.0.0",
"@trivikr-test/protocol-http": "3.170.0-es2017",
"@trivikr-test/util-buffer-from": "3.170.0-es2017",
"@trivikr-test/protocol-http": "3.170.0-es2018",
"@trivikr-test/util-buffer-from": "3.170.0-es2018",
"@tsconfig/recommended": "1.0.1",

@@ -38,0 +38,0 @@ "concurrently": "7.0.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