@smithy/signature-v4
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -38,2 +38,3 @@ var __defProp = Object.defineProperty; | ||
var import_util_middleware = require("@smithy/util-middleware"); | ||
var import_util_utf84 = require("@smithy/util-utf8"); | ||
@@ -544,3 +545,3 @@ | ||
const normalizedPath = `${(path == null ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path == null ? void 0 : path.endsWith("/")) ? "/" : ""}`; | ||
const doubleEncoded = encodeURIComponent(normalizedPath); | ||
const doubleEncoded = (0, import_util_uri_escape.escapeUri)(normalizedPath); | ||
return doubleEncoded.replace(/%2F/g, "/"); | ||
@@ -547,0 +548,0 @@ } |
import { toHex } from "@smithy/util-hex-encoding"; | ||
import { normalizeProvider } from "@smithy/util-middleware"; | ||
import { escapeUri } from "@smithy/util-uri-escape"; | ||
import { toUint8Array } from "@smithy/util-utf8"; | ||
@@ -161,3 +162,3 @@ 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"; | ||
const normalizedPath = `${path?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path?.endsWith("/") ? "/" : ""}`; | ||
const doubleEncoded = encodeURIComponent(normalizedPath); | ||
const doubleEncoded = escapeUri(normalizedPath); | ||
return doubleEncoded.replace(/%2F/g, "/"); | ||
@@ -164,0 +165,0 @@ } |
{ | ||
"name": "@smithy/signature-v4", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm", | ||
@@ -5,0 +5,0 @@ "main": "./dist-cjs/index.js", |
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
97150
1960