@prantlf/jsonlint 14.0.0 → 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 +15 -5
- package/lib/cli.js +5 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [14.0.1](https://github.com/prantlf/jsonlint/compare/v14.0.0...v14.0.1) (2023-03-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Prevent setting a constant variable ([c7e940c](https://github.com/prantlf/jsonlint/commit/c7e940c4d59b594bca3c32ff974c91b69d44feb6))
|
|
14
|
+
|
|
1
15
|
# [14.0.0](https://github.com/prantlf/jsonlint/compare/v13.1.0...v14.0.0) (2023-03-05)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -8,11 +22,7 @@
|
|
|
8
22
|
|
|
9
23
|
### BREAKING CHANGES
|
|
10
24
|
|
|
11
|
-
* Although you shouldn't notice any change on the behaviour of the command line, something unexpected might've changed. Something did change
|
|
12
|
-
- if you're annoyed by inserting "--" between the multi-value option and other
|
|
13
|
-
arguments, you don't have to do it any more. Multi-value options can be entered
|
|
14
|
-
either using the option prefix multiple times for each value, or using
|
|
15
|
-
the option prefix just once and separating the values by commas.
|
|
25
|
+
* Although you shouldn't notice any change on the behaviour of the command line, something unexpected might've changed. Something did change: if you're annoyed by inserting "--" between the multi-value option and other arguments, you don't have to do it any more. Multi-value options can be entered either using the option prefix multiple times for each value, or using the option prefix just once and separating the values by commas.
|
|
16
26
|
|
|
17
27
|
# [13.1.0](https://github.com/prantlf/jsonlint/compare/v13.0.1...v13.1.0) (2023-03-05)
|
|
18
28
|
|
package/lib/cli.js
CHANGED
|
@@ -499,15 +499,13 @@ function processPatterns (patterns) {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
function main () {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
if (args.length) {
|
|
506
|
-
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))
|
|
507
505
|
if (dynamic) {
|
|
508
|
-
processPatterns(
|
|
506
|
+
processPatterns(files)
|
|
509
507
|
} else {
|
|
510
|
-
for (const file of
|
|
508
|
+
for (const file of files) {
|
|
511
509
|
processSource(file, false)
|
|
512
510
|
}
|
|
513
511
|
}
|
package/package.json
CHANGED