cspell 6.19.2 → 6.20.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.
package/README.md
CHANGED
|
@@ -708,9 +708,21 @@ Example:
|
|
|
708
708
|
]
|
|
709
709
|
```
|
|
710
710
|
|
|
711
|
-
<!---
|
|
712
|
-
|
|
711
|
+
<!--- @@inject: ../../static/footer.md --->
|
|
712
|
+
|
|
713
|
+
<br/>
|
|
714
|
+
|
|
715
|
+
---
|
|
713
716
|
|
|
717
|
+
<p align="center">
|
|
718
|
+
Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
|
|
719
|
+
<img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
|
|
720
|
+
</a>
|
|
721
|
+
</p>
|
|
722
|
+
|
|
723
|
+
<!--- @@inject-end: ../../static/footer.md --->
|
|
724
|
+
|
|
725
|
+
<!---
|
|
714
726
|
cSpell:disableCompoundWords
|
|
715
727
|
cSpell:ignore compoundwords stringlength errornumber
|
|
716
728
|
cSpell:ignore jsja goededag alek wheerd behaviour tsmerge QQQQQ ncode
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.__testing__ = exports.calcCacheSettings = exports.createCache = exports.DEFAULT_CACHE_LOCATION = void 0;
|
|
7
7
|
const assert_1 = __importDefault(require("assert"));
|
|
8
|
-
const
|
|
8
|
+
const promises_1 = require("fs/promises");
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
10
|
const errors_1 = require("../errors");
|
|
11
11
|
const DiskCache_1 = require("./DiskCache");
|
|
@@ -48,7 +48,7 @@ async function calcCacheSettings(config, cacheOptions, root) {
|
|
|
48
48
|
exports.calcCacheSettings = calcCacheSettings;
|
|
49
49
|
async function resolveCacheLocation(cacheLocation) {
|
|
50
50
|
try {
|
|
51
|
-
const s = await (0,
|
|
51
|
+
const s = await (0, promises_1.stat)(cacheLocation);
|
|
52
52
|
if (s.isFile())
|
|
53
53
|
return cacheLocation;
|
|
54
54
|
return path_1.default.join(cacheLocation, exports.DEFAULT_CACHE_LOCATION);
|
|
@@ -28,12 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.normalizePath = exports.createFromFile = void 0;
|
|
30
30
|
const file_entry_cache = __importStar(require("file-entry-cache"));
|
|
31
|
-
const
|
|
31
|
+
const fs_1 = require("fs");
|
|
32
32
|
const path = __importStar(require("path"));
|
|
33
33
|
function createFromFile(pathToCache, useCheckSum, useRelative) {
|
|
34
34
|
const absPathToCache = path.resolve(pathToCache);
|
|
35
35
|
const relDir = path.dirname(absPathToCache);
|
|
36
|
-
|
|
36
|
+
(0, fs_1.mkdirSync)(relDir, { recursive: true });
|
|
37
37
|
const create = wrap(() => file_entry_cache.createFromFile(absPathToCache, useCheckSum));
|
|
38
38
|
const feCache = create();
|
|
39
39
|
const cacheWrapper = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { CacheOptions } from './CacheOptions';
|
|
2
|
-
export {
|
|
2
|
+
export { calcCacheSettings, createCache, type CreateCacheSettings, DEFAULT_CACHE_LOCATION } from './createCache';
|
|
3
3
|
export type { CSpellLintResultCache } from './CSpellLintResultCache';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.20.0",
|
|
4
4
|
"description": "A Spelling Checker for Code!",
|
|
5
5
|
"funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -74,16 +74,15 @@
|
|
|
74
74
|
},
|
|
75
75
|
"homepage": "https://streetsidesoftware.github.io/cspell/",
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@cspell/cspell-pipe": "6.
|
|
77
|
+
"@cspell/cspell-pipe": "6.20.0",
|
|
78
78
|
"chalk": "^4.1.2",
|
|
79
79
|
"commander": "^10.0.0",
|
|
80
|
-
"cspell-gitignore": "6.
|
|
81
|
-
"cspell-glob": "6.
|
|
82
|
-
"cspell-lib": "6.
|
|
80
|
+
"cspell-gitignore": "6.20.0",
|
|
81
|
+
"cspell-glob": "6.20.0",
|
|
82
|
+
"cspell-lib": "6.20.0",
|
|
83
83
|
"fast-glob": "^3.2.12",
|
|
84
84
|
"fast-json-stable-stringify": "^2.1.0",
|
|
85
85
|
"file-entry-cache": "^6.0.1",
|
|
86
|
-
"fs-extra": "^11.1.0",
|
|
87
86
|
"get-stdin": "^8.0.0",
|
|
88
87
|
"imurmurhash": "^0.1.4",
|
|
89
88
|
"semver": "^7.3.8",
|
|
@@ -94,20 +93,18 @@
|
|
|
94
93
|
"node": ">=14"
|
|
95
94
|
},
|
|
96
95
|
"devDependencies": {
|
|
97
|
-
"@cspell/cspell-json-reporter": "6.
|
|
98
|
-
"@cspell/cspell-types": "6.
|
|
96
|
+
"@cspell/cspell-json-reporter": "6.20.0",
|
|
97
|
+
"@cspell/cspell-types": "6.20.0",
|
|
99
98
|
"@types/file-entry-cache": "^5.0.2",
|
|
100
|
-
"@types/
|
|
101
|
-
"@types/glob": "^8.0.0",
|
|
99
|
+
"@types/glob": "^8.0.1",
|
|
102
100
|
"@types/imurmurhash": "^0.1.1",
|
|
103
101
|
"@types/micromatch": "^4.0.2",
|
|
104
|
-
"@types/minimatch": "^5.1.2",
|
|
105
102
|
"@types/semver": "^7.3.13",
|
|
106
|
-
"jest": "^29.
|
|
103
|
+
"jest": "^29.4.1",
|
|
107
104
|
"micromatch": "^4.0.5",
|
|
108
|
-
"minimatch": "^
|
|
109
|
-
"rollup": "^3.
|
|
105
|
+
"minimatch": "^6.1.6",
|
|
106
|
+
"rollup": "^3.12.1",
|
|
110
107
|
"rollup-plugin-dts": "^5.1.1"
|
|
111
108
|
},
|
|
112
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "9de0bdd5b8da54daa72ccd6c328274bd796ada33"
|
|
113
110
|
}
|