@prantlf/jsonlint 14.0.1 → 14.0.2
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/CHANGELOG.md +7 -0
- package/lib/cli.js +5 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [14.0.2](https://github.com/prantlf/jsonlint/compare/v14.0.1...v14.0.2) (2023-03-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Recognise property "patterns" in the config file again ([2619904](https://github.com/prantlf/jsonlint/commit/2619904760c4f03fa0b93893ecaf8ccecff1d6ad)), closes [#18](https://github.com/prantlf/jsonlint/issues/18)
|
|
7
|
+
|
|
1
8
|
## [14.0.1](https://github.com/prantlf/jsonlint/compare/v14.0.0...v14.0.1) (2023-03-07)
|
|
2
9
|
|
|
3
10
|
|
package/lib/cli.js
CHANGED
|
@@ -499,12 +499,13 @@ function processPatterns (patterns) {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
function main () {
|
|
502
|
-
|
|
503
|
-
|
|
502
|
+
const files = args.length && args || params.patterns || []
|
|
503
|
+
if (files.length) {
|
|
504
|
+
const dynamic = files.some(file => isDynamicPattern(file))
|
|
504
505
|
if (dynamic) {
|
|
505
|
-
processPatterns(
|
|
506
|
+
processPatterns(files)
|
|
506
507
|
} else {
|
|
507
|
-
for (const file of
|
|
508
|
+
for (const file of files) {
|
|
508
509
|
processSource(file, false)
|
|
509
510
|
}
|
|
510
511
|
}
|
package/package.json
CHANGED