cspell 8.19.0 → 8.19.1

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.
@@ -1,6 +1,6 @@
1
1
  export { pkgDir } from './dirname.js';
2
2
  export declare const name = "cspell";
3
- export declare const version = "8.19.0";
3
+ export declare const version = "8.19.1";
4
4
  export declare const engines: {
5
5
  node: string;
6
6
  };
@@ -1,7 +1,7 @@
1
1
  // This file is generated by tools/patch-version.mjs
2
2
  export { pkgDir } from './dirname.js';
3
3
  export const name = 'cspell';
4
- export const version = '8.19.0';
4
+ export const version = '8.19.1';
5
5
  export const engines = { node: '>=18' };
6
6
  export const npmPackage = { name, version, engines };
7
7
  //# sourceMappingURL=pkgInfo.js.map
@@ -1,8 +1,8 @@
1
1
  import { promises as fs } from 'node:fs';
2
2
  import * as path from 'node:path';
3
3
  import { posix } from 'node:path';
4
- import { fileOrGlobToGlob, GlobMatcher } from 'cspell-glob';
5
- import { glob } from 'tinyglobby';
4
+ import { fileOrGlobToGlob, GlobMatcher, workaroundPicomatchBug } from 'cspell-glob';
5
+ import { glob as tinyGlob } from 'tinyglobby';
6
6
  import { clean } from './util.js';
7
7
  const defaultExcludeGlobs = ['node_modules/**'];
8
8
  /**
@@ -137,4 +137,11 @@ export async function normalizeFileOrGlobsToRoot(globs, root) {
137
137
  const adjustedGlobs = await Promise.all(globs.map((g) => adjustPossibleDirectory(g, root)));
138
138
  return normalizeGlobsToRoot(adjustedGlobs, root, false);
139
139
  }
140
+ function glob(patterns, options) {
141
+ patterns =
142
+ typeof patterns === 'string'
143
+ ? workaroundPicomatchBug(patterns)
144
+ : patterns.map((g) => workaroundPicomatchBug(g));
145
+ return tinyGlob(patterns, options);
146
+ }
140
147
  //# sourceMappingURL=glob.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell",
3
- "version": "8.19.0",
3
+ "version": "8.19.1",
4
4
  "description": "A Spelling Checker for Code!",
5
5
  "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
6
6
  "bin": {
@@ -81,19 +81,19 @@
81
81
  },
82
82
  "homepage": "https://cspell.org/",
83
83
  "dependencies": {
84
- "@cspell/cspell-json-reporter": "8.19.0",
85
- "@cspell/cspell-pipe": "8.19.0",
86
- "@cspell/cspell-types": "8.19.0",
87
- "@cspell/dynamic-import": "8.19.0",
88
- "@cspell/url": "8.19.0",
84
+ "@cspell/cspell-json-reporter": "8.19.1",
85
+ "@cspell/cspell-pipe": "8.19.1",
86
+ "@cspell/cspell-types": "8.19.1",
87
+ "@cspell/dynamic-import": "8.19.1",
88
+ "@cspell/url": "8.19.1",
89
89
  "chalk": "^5.4.1",
90
90
  "chalk-template": "^1.1.0",
91
91
  "commander": "^13.1.0",
92
- "cspell-dictionary": "8.19.0",
93
- "cspell-gitignore": "8.19.0",
94
- "cspell-glob": "8.19.0",
95
- "cspell-io": "8.19.0",
96
- "cspell-lib": "8.19.0",
92
+ "cspell-dictionary": "8.19.1",
93
+ "cspell-gitignore": "8.19.1",
94
+ "cspell-glob": "8.19.1",
95
+ "cspell-io": "8.19.1",
96
+ "cspell-lib": "8.19.1",
97
97
  "fast-json-stable-stringify": "^2.1.0",
98
98
  "file-entry-cache": "^9.1.0",
99
99
  "get-stdin": "^9.0.0",
@@ -111,5 +111,5 @@
111
111
  "micromatch": "^4.0.8",
112
112
  "minimatch": "^9.0.5"
113
113
  },
114
- "gitHead": "ebfecabea342ba34ee368178f3864a7a194936d5"
114
+ "gitHead": "66fdb8ff1cfb93b5c90c93ad7fbbcc91df39cc2b"
115
115
  }