5etools-utils 0.13.36 → 0.13.37
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/lib/TestData.js +7 -7
- package/package.json +1 -1
- package/schema/brew/adventures.json +1 -1
- package/schema/brew/books.json +1 -1
- package/schema/brew-fast/adventures.json +1 -1
- package/schema/brew-fast/books.json +1 -1
- package/schema/site/adventures.json +1 -1
- package/schema/site/books.json +1 -1
- package/schema/site-fast/adventures.json +1 -1
- package/schema/site-fast/books.json +1 -1
- package/schema/ua/adventures.json +1 -1
- package/schema/ua/books.json +1 -1
- package/schema/ua-fast/adventures.json +1 -1
- package/schema/ua-fast/books.json +1 -1
package/lib/TestData.js
CHANGED
|
@@ -19,20 +19,20 @@ class _ParsedJsonChecker {
|
|
|
19
19
|
|
|
20
20
|
/* -------------------------------------------- */
|
|
21
21
|
|
|
22
|
-
static run (filePath, {fnIsIgnoredFile,
|
|
22
|
+
static run (filePath, {fnIsIgnoredFile, fnIsIgnoredDirectory} = {}) {
|
|
23
23
|
this._fileRecurse({
|
|
24
24
|
filePath,
|
|
25
25
|
fnIsIgnoredFile,
|
|
26
|
-
|
|
26
|
+
fnIsIgnoredDirectory,
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
static _fileRecurse ({filePath, fnIsIgnoredFile,
|
|
30
|
+
static _fileRecurse ({filePath, fnIsIgnoredFile, fnIsIgnoredDirectory}) {
|
|
31
31
|
if (fs.lstatSync(filePath).isDirectory()) {
|
|
32
|
-
if (
|
|
32
|
+
if (fnIsIgnoredDirectory && fnIsIgnoredDirectory(filePath)) return;
|
|
33
33
|
|
|
34
34
|
return fs.readdirSync(filePath)
|
|
35
|
-
.forEach(nxt => this._fileRecurse({filePath: `${filePath}/${nxt}`, fnIsIgnoredFile,
|
|
35
|
+
.forEach(nxt => this._fileRecurse({filePath: `${filePath}/${nxt}`, fnIsIgnoredFile, fnIsIgnoredDirectory}));
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
if (!filePath.endsWith(".json") || (fnIsIgnoredFile && fnIsIgnoredFile(filePath))) return;
|
|
@@ -159,10 +159,10 @@ class DataTester {
|
|
|
159
159
|
ClazzDataTesters,
|
|
160
160
|
{
|
|
161
161
|
fnIsIgnoredFile,
|
|
162
|
-
|
|
162
|
+
fnIsIgnoredDirectory,
|
|
163
163
|
} = {},
|
|
164
164
|
) {
|
|
165
|
-
_ParsedJsonChecker.run(filePath, {fnIsIgnoredFile,
|
|
165
|
+
_ParsedJsonChecker.run(filePath, {fnIsIgnoredFile, fnIsIgnoredDirectory});
|
|
166
166
|
|
|
167
167
|
for (const ClazzDataTester of ClazzDataTesters) {
|
|
168
168
|
await ClazzDataTester.pRun();
|
package/package.json
CHANGED
package/schema/brew/books.json
CHANGED
package/schema/site/books.json
CHANGED
package/schema/ua/books.json
CHANGED