@cspell/url 9.7.0 → 9.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import assert from "node:assert";
2
2
  import Path from "node:path";
3
3
  import { fileURLToPath, pathToFileURL } from "node:url";
4
-
5
4
  //#region src/url.mts
6
5
  const isURLRegEx = /^(\w[\w-]{1,63}:\/|data:|stdin:)/i;
7
6
  /**
@@ -146,7 +145,6 @@ function fixUncUrl(url) {
146
145
  if (url.href.startsWith("file:////")) return new URL(url.href.replace(/^file:\/{4}/, "file://"));
147
146
  return url;
148
147
  }
149
-
150
148
  //#endregion
151
149
  //#region src/dataUrl.mts
152
150
  const regMatchFilename = /filename=([^;,]*)/;
@@ -168,7 +166,6 @@ function urlBasename(url) {
168
166
  function isDataURL(url) {
169
167
  return hasProtocol(url, "data:");
170
168
  }
171
-
172
169
  //#endregion
173
170
  //#region src/fileUrl.mts
174
171
  const isWindows = process.platform === "win32";
@@ -220,7 +217,6 @@ const regExpWindowsFileUrl = /^file:\/\/\/[a-zA-Z]:\//;
220
217
  function isWindowsFileUrl(url) {
221
218
  return regExpWindowsFileUrl.test(url.toString());
222
219
  }
223
-
224
220
  //#endregion
225
221
  //#region src/FileUrlBuilder.mts
226
222
  const isWindowsPathRegEx = regExpWindowsPathDriveLetter;
@@ -396,7 +392,6 @@ var FileUrlBuilder = class {
396
392
  return isUrlLike(url);
397
393
  }
398
394
  };
399
-
400
395
  //#endregion
401
396
  //#region src/defaultFileUrlBuilder.mts
402
397
  const fileUrlBuilder = new FileUrlBuilder();
@@ -434,7 +429,7 @@ function toFileURL(filenameOrUrl, relativeTo) {
434
429
  function toFileDirURL(dir) {
435
430
  return fileUrlBuilder.toFileDirURL(dir);
436
431
  }
437
-
438
432
  //#endregion
439
433
  export { FileUrlBuilder, addTrailingSlash, basenameOfUrlPathname, encodePathChars, fixUncUrl, hasProtocol, isDataURL, isFileURL, isNotUrlLike, isURL, isUrlLike, normalizeFilePathForUrl, normalizeWindowsUrl, toFileDirURL, toFilePathOrHref, toFileURL, toURL, urlBasename, urlDirname, urlParent, urlRelative };
434
+
440
435
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "9.7.0",
7
+ "version": "9.8.0",
8
8
  "description": "URL parsing and manipulation utilities for cspell",
9
9
  "keywords": [
10
10
  "cspell",
@@ -57,5 +57,5 @@
57
57
  "engines": {
58
58
  "node": ">=20"
59
59
  },
60
- "gitHead": "48f64e0bd95b39011af6dc80cd8ae4d519511f73"
60
+ "gitHead": "c822013ce676dffb5fa5544567c25a3ae666718f"
61
61
  }