@json-to-office/jto 0.3.3 → 0.3.4
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/dist/cli.js +18 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1814,7 +1814,7 @@ var SchemaGenerator = class {
|
|
|
1814
1814
|
// src/services/json-validator.ts
|
|
1815
1815
|
import { readFileSync as readFileSync3, statSync as statSync2, readdirSync } from "fs";
|
|
1816
1816
|
import { resolve as resolve8, join as join4, extname } from "path";
|
|
1817
|
-
import
|
|
1817
|
+
import { glob as glob2 } from "glob";
|
|
1818
1818
|
var JsonValidator = class {
|
|
1819
1819
|
format;
|
|
1820
1820
|
constructor(format = "docx") {
|
|
@@ -2009,7 +2009,7 @@ var JsonValidator = class {
|
|
|
2009
2009
|
} else if (stats.isDirectory()) {
|
|
2010
2010
|
if (options.recursive) {
|
|
2011
2011
|
const pattern = join4(resolvedPath, "**/*.json");
|
|
2012
|
-
return glob2
|
|
2012
|
+
return glob2(pattern, {
|
|
2013
2013
|
ignore: ["**/node_modules/**", "**/dist/**", "**/build/**"]
|
|
2014
2014
|
});
|
|
2015
2015
|
} else {
|
|
@@ -2018,7 +2018,7 @@ var JsonValidator = class {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
}
|
|
2020
2020
|
} catch {
|
|
2021
|
-
return glob2
|
|
2021
|
+
return glob2(pathOrPattern, {
|
|
2022
2022
|
ignore: ["**/node_modules/**", "**/dist/**", "**/build/**"]
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|