@trivikr-test/signature-v4
Advanced tools
Comparing version 3.55.0 to 3.56.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalizeRegionProvider = exports.normalizeCredentialsProvider = exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; | ||
exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -16,5 +16,2 @@ tslib_1.__exportStar(require("./SignatureV4"), exports); | ||
Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function () { return prepareRequest_1.prepareRequest; } }); | ||
var normalizeProvider_1 = require("./normalizeProvider"); | ||
Object.defineProperty(exports, "normalizeCredentialsProvider", { enumerable: true, get: function () { return normalizeProvider_1.normalizeCredentialsProvider; } }); | ||
Object.defineProperty(exports, "normalizeRegionProvider", { enumerable: true, get: function () { return normalizeProvider_1.normalizeRegionProvider; } }); | ||
tslib_1.__exportStar(require("./credentialDerivation"), exports); |
@@ -5,2 +5,3 @@ "use strict"; | ||
const util_hex_encoding_1 = require("@aws-sdk/util-hex-encoding"); | ||
const util_middleware_1 = require("@aws-sdk/util-middleware"); | ||
const constants_1 = require("./constants"); | ||
@@ -13,3 +14,2 @@ const credentialDerivation_1 = require("./credentialDerivation"); | ||
const moveHeadersToQuery_1 = require("./moveHeadersToQuery"); | ||
const normalizeProvider_1 = require("./normalizeProvider"); | ||
const prepareRequest_1 = require("./prepareRequest"); | ||
@@ -23,4 +23,4 @@ const utilDate_1 = require("./utilDate"); | ||
this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; | ||
this.regionProvider = (0, normalizeProvider_1.normalizeRegionProvider)(region); | ||
this.credentialProvider = (0, normalizeProvider_1.normalizeCredentialsProvider)(credentials); | ||
this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); | ||
this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); | ||
} | ||
@@ -27,0 +27,0 @@ async presign(originalRequest, options = {}) { |
@@ -7,3 +7,2 @@ export * from "./SignatureV4"; | ||
export { prepareRequest } from "./prepareRequest"; | ||
export { normalizeCredentialsProvider, normalizeRegionProvider } from "./normalizeProvider"; | ||
export * from "./credentialDerivation"; |
import { __awaiter, __generator, __values } from "tslib"; | ||
import { toHex } from "@aws-sdk/util-hex-encoding"; | ||
import { normalizeProvider } from "@aws-sdk/util-middleware"; | ||
import { ALGORITHM_IDENTIFIER, ALGORITHM_QUERY_PARAM, AMZ_DATE_HEADER, AMZ_DATE_QUERY_PARAM, AUTH_HEADER, CREDENTIAL_QUERY_PARAM, EVENT_ALGORITHM_IDENTIFIER, EXPIRES_QUERY_PARAM, MAX_PRESIGNED_TTL, SHA256_HEADER, SIGNATURE_QUERY_PARAM, SIGNED_HEADERS_QUERY_PARAM, TOKEN_HEADER, TOKEN_QUERY_PARAM, } from "./constants"; | ||
@@ -10,3 +11,2 @@ import { createScope, getSigningKey } from "./credentialDerivation"; | ||
import { moveHeadersToQuery } from "./moveHeadersToQuery"; | ||
import { normalizeCredentialsProvider, normalizeRegionProvider } from "./normalizeProvider"; | ||
import { prepareRequest } from "./prepareRequest"; | ||
@@ -21,4 +21,4 @@ import { iso8601 } from "./utilDate"; | ||
this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; | ||
this.regionProvider = normalizeRegionProvider(region); | ||
this.credentialProvider = normalizeCredentialsProvider(credentials); | ||
this.regionProvider = normalizeProvider(region); | ||
this.credentialProvider = normalizeProvider(credentials); | ||
} | ||
@@ -25,0 +25,0 @@ SignatureV4.prototype.presign = function (originalRequest, options) { |
@@ -7,3 +7,2 @@ export * from "./SignatureV4"; | ||
export { prepareRequest } from "./prepareRequest"; | ||
export { normalizeCredentialsProvider, normalizeRegionProvider } from "./normalizeProvider"; | ||
export * from "./credentialDerivation"; |
@@ -7,3 +7,2 @@ export * from "./SignatureV4"; | ||
export { prepareRequest } from "./prepareRequest"; | ||
export { normalizeCredentialsProvider, normalizeRegionProvider } from "./normalizeProvider"; | ||
export * from "./credentialDerivation"; |
{ | ||
"name": "@trivikr-test/signature-v4", | ||
"version": "3.55.0", | ||
"version": "3.56.0", | ||
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm", | ||
@@ -26,2 +26,3 @@ "main": "./dist-cjs/index.js", | ||
"@trivikr-test/util-hex-encoding": "3.55.0", | ||
"@trivikr-test/util-middleware": "3.55.0", | ||
"@trivikr-test/util-uri-escape": "3.55.0", | ||
@@ -28,0 +29,0 @@ "tslib": "^2.3.1" |
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
113929
6
55
2232
+ Added@trivikr-test/util-middleware@3.55.0(transitive)