cspell-glob 9.6.2 → 9.6.3

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 +8 -8
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -60,14 +60,14 @@ function toGlobPatternWithRoot(glob, root, builder) {
60
60
  if (isGlobPatternWithRoot(glob)) return fixPatternRoot({ ...glob }, builder);
61
61
  const rootUrl = builder.toFileDirURL(root);
62
62
  if (typeof glob === "string") return filePathOrGlobToGlob(glob, rootUrl, builder);
63
- const pattern$1 = {
63
+ const pattern = {
64
64
  isGlobalPattern: isGlobalGlob(glob.glob),
65
65
  ...glob,
66
66
  root: glob.root ?? root
67
67
  };
68
- fixPatternRoot(pattern$1, builder);
69
- fixPatternGlob(pattern$1, builder);
70
- return pattern$1;
68
+ fixPatternRoot(pattern, builder);
69
+ fixPatternGlob(pattern, builder);
70
+ return pattern;
71
71
  }
72
72
  const pattern = toPattern();
73
73
  if (pattern.glob.startsWith(GlobPlaceHolders.cwd)) {
@@ -510,7 +510,7 @@ function buildMatcherFn(_id, patterns, options) {
510
510
  const relFilePathname = builder.relative(new URL("file:///"), fileUrl);
511
511
  let lastRoot = new URL("placeHolder://");
512
512
  let lastRel = "";
513
- function rootToUrl$1(root) {
513
+ function rootToUrl(root) {
514
514
  const found = mapRoots.get(root);
515
515
  if (found) return found;
516
516
  const url = builder.toFileDirURL(root);
@@ -524,11 +524,11 @@ function buildMatcherFn(_id, patterns, options) {
524
524
  }
525
525
  return lastRel;
526
526
  }
527
- function testRules(rules$1, matched) {
528
- for (const rule of rules$1) {
527
+ function testRules(rules, matched) {
528
+ for (const rule of rules) {
529
529
  const pattern = rule.pattern;
530
530
  const root = pattern.root;
531
- const rootURL = rootToUrl$1(root);
531
+ const rootURL = rootToUrl(root);
532
532
  const isRelPat = !pattern.isGlobalPattern;
533
533
  let fname = relFilePathname;
534
534
  if (isRelPat) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "9.6.2",
7
+ "version": "9.6.3",
8
8
  "description": "Glob matcher for cspell",
9
9
  "keywords": [
10
10
  "cspell",
@@ -58,7 +58,7 @@
58
58
  "node": ">=20"
59
59
  },
60
60
  "dependencies": {
61
- "@cspell/url": "9.6.2",
61
+ "@cspell/url": "9.6.3",
62
62
  "picomatch": "^4.0.3"
63
63
  },
64
64
  "devDependencies": {
@@ -66,5 +66,5 @@
66
66
  "@types/picomatch": "^4.0.2",
67
67
  "micromatch": "^4.0.8"
68
68
  },
69
- "gitHead": "646e18a04ff36d43f78a74e5055540e0f5297e91"
69
+ "gitHead": "500b996b6c0a6ff025c42ef98db44776f43a9e72"
70
70
  }