@aws-sdk/util-uri-escape
Advanced tools
Comparing version 3.183.0 to 3.186.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06) | ||
**Note:** Version bump only for package @aws-sdk/util-uri-escape | ||
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03) | ||
@@ -8,0 +16,0 @@ |
import { escapeUri } from "./escape-uri"; | ||
export const escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/"); | ||
export var escapeUriPath = function (uri) { return uri.split("/").map(escapeUri).join("/"); }; |
@@ -1,2 +0,4 @@ | ||
export const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); | ||
const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; | ||
export var escapeUri = function (uri) { | ||
return encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); | ||
}; | ||
var hexEncode = function (c) { return "%".concat(c.charCodeAt(0).toString(16).toUpperCase()); }; |
{ | ||
"name": "@aws-sdk/util-uri-escape", | ||
"version": "3.183.0", | ||
"version": "3.186.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", |
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
34374
33