@augment-vir/common
Advanced tools
Comparing version 19.0.0 to 19.0.1
@@ -7,3 +7,3 @@ "use strict"; | ||
* Joins all given arguments together as if they were parts of a URL. Preserves trailing slashes and | ||
* removes consecutive slashes in the path. This also encodes each URL part. | ||
* removes consecutive slashes in the path. | ||
* | ||
@@ -31,3 +31,3 @@ * @example: joinToUrl('https://example.com', 'path1', 'path2/', '/path3/') === 'https://example.com/path1/path2/path3/' | ||
else { | ||
return encodeURIComponent(part); | ||
return part; | ||
} | ||
@@ -34,0 +34,0 @@ }) |
const protocolSplit = '://'; | ||
/** | ||
* Joins all given arguments together as if they were parts of a URL. Preserves trailing slashes and | ||
* removes consecutive slashes in the path. This also encodes each URL part. | ||
* removes consecutive slashes in the path. | ||
* | ||
@@ -27,3 +27,3 @@ * @example: joinToUrl('https://example.com', 'path1', 'path2/', '/path3/') === 'https://example.com/path1/path2/path3/' | ||
else { | ||
return encodeURIComponent(part); | ||
return part; | ||
} | ||
@@ -30,0 +30,0 @@ }) |
/** | ||
* Joins all given arguments together as if they were parts of a URL. Preserves trailing slashes and | ||
* removes consecutive slashes in the path. This also encodes each URL part. | ||
* removes consecutive slashes in the path. | ||
* | ||
@@ -5,0 +5,0 @@ * @example: joinToUrl('https://example.com', 'path1', 'path2/', '/path3/') === 'https://example.com/path1/path2/path3/' |
{ | ||
"name": "@augment-vir/common", | ||
"version": "19.0.0", | ||
"version": "19.0.1", | ||
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common", | ||
@@ -21,3 +21,3 @@ "bugs": { | ||
"scripts": { | ||
"compile": "tsc --project tsconfig.json && tsc --project tsconfig.cjs.json", | ||
"compile": "rm -rf dist && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json", | ||
"test": "echo \"use common-test to run tests\" && exit 0", | ||
@@ -24,0 +24,0 @@ "test:coverage": "npm test", |
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
152286
113
3667