@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 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
- if (args.length) {
503
- const dynamic = args.some(file => isDynamicPattern(file))
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(args)
506
+ processPatterns(files)
506
507
  } else {
507
- for (const file of args) {
508
+ for (const file of files) {
508
509
  processSource(file, false)
509
510
  }
510
511
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prantlf/jsonlint",
3
- "version": "14.0.1",
3
+ "version": "14.0.2",
4
4
  "description": "JSON/CJSON/JSON5 parser, syntax and schema validator and pretty-printer.",
5
5
  "author": "Ferdinand Prantl <prantlf@gmail.com> (http://prantl.tk)",
6
6
  "contributors": [