@trivikr-test/signature-v4
Advanced tools
Comparing version 3.170.0-es2017 to 3.170.0-es2018
@@ -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, | ||
}; | ||
}, {}); |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2045
101596
+ Added@trivikr-test/is-array-buffer@3.170.0-es2018(transitive)
+ Added@trivikr-test/types@3.170.0-es2018(transitive)
+ Added@trivikr-test/util-hex-encoding@3.170.0-es2018(transitive)
+ Added@trivikr-test/util-middleware@3.170.0-es2018(transitive)
+ Added@trivikr-test/util-uri-escape@3.170.0-es2018(transitive)
- Removed@trivikr-test/is-array-buffer@3.170.0-es2017(transitive)
- Removed@trivikr-test/types@3.170.0-es2017(transitive)
- Removed@trivikr-test/util-hex-encoding@3.170.0-es2017(transitive)
- Removed@trivikr-test/util-middleware@3.170.0-es2017(transitive)
- Removed@trivikr-test/util-uri-escape@3.170.0-es2017(transitive)