@cspell/url
Advanced tools
+6
-6
@@ -309,12 +309,12 @@ import assert from "node:assert"; | ||
| if (this.isAbsolute(filenameOrUrl) && isFileURL(relativeTo)) { | ||
| const pathname$1 = this.normalizeFilePathForUrl(filenameOrUrl); | ||
| if (isWindowsFileUrl(relativeTo) && !isWindowsPathnameWithDriveLatter(pathname$1)) { | ||
| const pathname = this.normalizeFilePathForUrl(filenameOrUrl); | ||
| if (isWindowsFileUrl(relativeTo) && !isWindowsPathnameWithDriveLatter(pathname)) { | ||
| const relFilePrefix = relativeTo.toString().slice(0, 10); | ||
| return normalizeWindowsUrl(new URL(relFilePrefix + pathname$1)); | ||
| return normalizeWindowsUrl(new URL(relFilePrefix + pathname)); | ||
| } | ||
| return normalizeWindowsUrl(new URL("file://" + pathname$1)); | ||
| return normalizeWindowsUrl(new URL("file://" + pathname)); | ||
| } | ||
| if (isUrlLike(relativeTo)) { | ||
| const pathname$1 = this.normalizeFilePathForUrl(filenameOrUrl); | ||
| return normalizeWindowsUrl(new URL(pathname$1, relativeTo)); | ||
| const pathname = this.normalizeFilePathForUrl(filenameOrUrl); | ||
| return normalizeWindowsUrl(new URL(pathname, relativeTo)); | ||
| } | ||
@@ -321,0 +321,0 @@ const appendSlash = filenameOrUrl.endsWith("/") ? "/" : ""; |
+2
-2
@@ -7,3 +7,3 @@ { | ||
| }, | ||
| "version": "9.6.2", | ||
| "version": "9.6.3", | ||
| "description": "URL parsing and manipulation utilities for cspell", | ||
@@ -61,3 +61,3 @@ "keywords": [ | ||
| }, | ||
| "gitHead": "646e18a04ff36d43f78a74e5055540e0f5297e91" | ||
| "gitHead": "500b996b6c0a6ff025c42ef98db44776f43a9e72" | ||
| } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
27087
-0.04%