You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@cspell/url

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cspell/url - npm Package Compare versions

Comparing version
9.6.2
to
9.6.3
+6
-6
dist/index.js

@@ -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("/") ? "/" : "";

@@ -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"
}