@cspell/cspell-tools 6.19.1 → 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 +14 -0
- package/dist/test/console.d.ts +4 -2
- package/dist/test/console.js +19 -9
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -35,3 +35,17 @@ This will read and expand the `english.dic` file based upon the rules in `englis
|
|
|
35
35
|
For large files, this process can take a long time and us a lot of memory.
|
|
36
36
|
|
|
37
37
|
The tool `cspell-trie` can be used to read the contents of a `.trie` or `.trie.gz` file.
|
|
38
|
+
|
|
39
|
+
<!--- @@inject: ../../static/footer.md --->
|
|
40
|
+
|
|
41
|
+
<br/>
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
<p align="center">
|
|
46
|
+
Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
|
|
47
|
+
<img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
|
|
48
|
+
</a>
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
<!--- @@inject-end: ../../static/footer.md --->
|
package/dist/test/console.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
2
|
export declare function spyOnConsole(): {
|
|
3
|
-
log: jest.SpyInstance<void, [message?: any, ...optionalParams: any[]]>;
|
|
4
|
-
error: jest.SpyInstance<void, [message?: any, ...optionalParams: any[]]>;
|
|
3
|
+
log: jest.SpyInstance<void, [message?: any, ...optionalParams: any[]], any>;
|
|
4
|
+
error: jest.SpyInstance<void, [message?: any, ...optionalParams: any[]], any>;
|
|
5
5
|
consoleOutput: () => {
|
|
6
6
|
log: string;
|
|
7
7
|
error: string;
|
|
8
8
|
};
|
|
9
|
+
attach: () => void;
|
|
10
|
+
reset: () => void;
|
|
9
11
|
};
|
|
10
12
|
//# sourceMappingURL=console.d.ts.map
|
package/dist/test/console.js
CHANGED
|
@@ -3,21 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.spyOnConsole = void 0;
|
|
4
4
|
const normalizeOutput_1 = require("./normalizeOutput");
|
|
5
5
|
function spyOnConsole() {
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const con = {
|
|
7
|
+
log: jest.spyOn(console, 'log').mockImplementation(),
|
|
8
|
+
error: jest.spyOn(console, 'error').mockImplementation(),
|
|
9
|
+
consoleOutput,
|
|
10
|
+
attach,
|
|
11
|
+
reset,
|
|
12
|
+
};
|
|
8
13
|
function consoleOutput() {
|
|
9
|
-
const _error = error.mock.calls.map((c) => c.join(',')).join('\n');
|
|
10
|
-
const _log = log.mock.calls.map((c) => c.join(',')).join('\n');
|
|
14
|
+
const _error = con.error.mock.calls.map((c) => c.join(',')).join('\n');
|
|
15
|
+
const _log = con.log.mock.calls.map((c) => c.join(',')).join('\n');
|
|
11
16
|
return {
|
|
12
17
|
log: (0, normalizeOutput_1.normalizeOutput)(_log),
|
|
13
18
|
error: (0, normalizeOutput_1.normalizeOutput)(_error),
|
|
14
19
|
};
|
|
15
20
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
+
function attach() {
|
|
22
|
+
reset();
|
|
23
|
+
con.log = jest.spyOn(console, 'log').mockImplementation();
|
|
24
|
+
con.error = jest.spyOn(console, 'error').mockImplementation();
|
|
25
|
+
}
|
|
26
|
+
function reset() {
|
|
27
|
+
con.log.mockRestore();
|
|
28
|
+
con.error.mockRestore();
|
|
29
|
+
}
|
|
30
|
+
return con;
|
|
21
31
|
}
|
|
22
32
|
exports.spyOnConsole = spyOnConsole;
|
|
23
33
|
//# sourceMappingURL=console.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cspell/cspell-tools",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.20.0",
|
|
4
4
|
"description": "Tools to assist with the development of cSpell",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -48,28 +48,28 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@cspell/cspell-pipe": "6.
|
|
51
|
+
"@cspell/cspell-pipe": "6.20.0",
|
|
52
52
|
"commander": "^10.0.0",
|
|
53
53
|
"cosmiconfig": "^8.0.0",
|
|
54
|
-
"cspell-trie-lib": "6.
|
|
54
|
+
"cspell-trie-lib": "6.20.0",
|
|
55
55
|
"gensequence": "^4.0.3",
|
|
56
56
|
"glob": "^8.1.0",
|
|
57
|
-
"hunspell-reader": "6.
|
|
57
|
+
"hunspell-reader": "6.20.0"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=14"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/glob": "^8.0.
|
|
64
|
-
"@types/jest": "^29.
|
|
63
|
+
"@types/glob": "^8.0.1",
|
|
64
|
+
"@types/jest": "^29.4.0",
|
|
65
65
|
"@types/node": "^18.11.18",
|
|
66
66
|
"@types/rimraf": "^3.0.2",
|
|
67
67
|
"@types/shelljs": "^0.8.11",
|
|
68
|
-
"jest": "^29.
|
|
68
|
+
"jest": "^29.4.1",
|
|
69
69
|
"lorem-ipsum": "^2.0.8",
|
|
70
70
|
"shelljs": "^0.8.5",
|
|
71
71
|
"ts-json-schema-generator": "^1.2.0"
|
|
72
72
|
},
|
|
73
73
|
"main": "bin.js",
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "9de0bdd5b8da54daa72ccd6c328274bd796ada33"
|
|
75
75
|
}
|