@prantlf/jsonlint 12.0.0 → 13.0.1
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 +407 -0
- package/README.md +9 -9
- package/lib/cli.js +6 -4
- package/lib/index.d.ts +10 -2
- package/lib/validator.js +45 -35
- package/package.json +11 -7
- package/web/ajv.min.js +7 -1
- package/web/ajv.min.js.map +1 -7
- package/web/jsonlint.html +23 -5
- package/web/validator.min.js +3 -3
- package/web/validator.min.js.map +3 -3
- package/lib/schema-drafts.js +0 -482
- package/web/ajv7.min.js +0 -8
- package/web/ajv7.min.js.map +0 -1
- package/web/schema-drafts.min.js +0 -2
- package/web/schema-drafts.min.js.map +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prantlf/jsonlint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.1",
|
|
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": [
|
|
@@ -39,13 +39,11 @@
|
|
|
39
39
|
"node": ">= 14"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
|
-
"
|
|
43
|
-
"lint": "denolint",
|
|
44
|
-
"build": "npm run compile && npm run compile:tests",
|
|
45
|
-
"compile": "npm run compile:jsonlint && esbuild --minify --sourcemap --outfile=web/jsonlint.min.js lib/jsonlint.js && esbuild --minify --sourcemap --outfile=web/validator.min.js lib/validator.js && esbuild --minify --sourcemap --outfile=web/formatter.min.js lib/formatter.js && esbuild --minify --sourcemap --outfile=web/sorter.min.js lib/sorter.js && esbuild --minify --sourcemap --outfile=web/printer.min.js lib/printer.js && node scripts/bundle-schema-drafts && esbuild --minify --sourcemap --outfile=web/schema-drafts.min.js lib/schema-drafts.js && esbuild --minify --sourcemap --outfile=web/ajv.min.js node_modules/ajv/dist/ajv.bundle.js",
|
|
42
|
+
"build": "npm run compile:jsonlint && rollup -c && npm run minify && npm run compile:tests",
|
|
46
43
|
"compile:jsonlint": "cat.js src/prefix.js.txt src/unicode.js src/custom-parser.js src/pointer.js src/native-parser.js src/configurable-parser.js src/suffix.js.txt > lib/jsonlint.js",
|
|
44
|
+
"minify": "esbuild --minify --sourcemap --outfile=web/jsonlint.min.js lib/jsonlint.js && esbuild --minify --sourcemap --outfile=web/validator.min.js lib/validator.js && esbuild --minify --sourcemap --outfile=web/formatter.min.js lib/formatter.js && esbuild --minify --sourcemap --outfile=web/sorter.min.js lib/sorter.js && esbuild --minify --sourcemap --outfile=web/printer.min.js lib/printer.js",
|
|
47
45
|
"compile:tests": "tsc --moduleResolution node --module es2022 test/types.test.ts && mv.js test/types.test.js test/types.test.mjs",
|
|
48
|
-
"test": "
|
|
46
|
+
"test": "denolint && c8 node test/types.test.mjs && c8 --no-clean node test/parse1 && c8 --no-clean node test/parse1 --native-parser && c8 --no-clean node test/parse2 && c8 --no-clean node test/parse3 && c8 --no-clean node test/parse4 && c8 --no-clean node test/parse5 && c8 --no-clean node test/portable && c8 --no-clean node test/tokenize && c8 --no-clean node test/print && c8 --no-clean node lib/cli package.json test/recursive && c8 --no-clean node lib/cli -sq test/passes/hasOwnProperty.json && c8 --no-clean node lib/cli -s -e json-schema-draft-04 -V test/passes/schema-04.json test/passes/data-04.json && c8 --no-clean node lib/cli -s -e json-schema-draft-07 -V test/passes/schema-07.json test/passes/data-07.json && c8 --no-clean node lib/cli -C test/passes/comments.txt && c8 --no-clean node lib/cli -pS test/passes/strings.txt && c8 --no-clean node lib/cli -M json5 test/passes/json5.text && c8 --no-clean node lib/cli -v && c8 --no-clean node lib/cli -h && c8 --no-clean node lib/cli -Pc test/fails/10.json || c8 --no-clean node lib/cli -f test/.jsonrc.yml 'test/**/*.json' '!**/fails' && c8 report",
|
|
49
47
|
"start": "http-server -c 5",
|
|
50
48
|
"web": "npm run web:sync && npm run web:deploy",
|
|
51
49
|
"web:clone": "test ! -d ../jsonlint-pages && git clone --single-branch --branch gh-pages `git remote get-url origin` ../jsonlint-pages",
|
|
@@ -75,13 +73,17 @@
|
|
|
75
73
|
]
|
|
76
74
|
},
|
|
77
75
|
"dependencies": {
|
|
78
|
-
"ajv": "
|
|
76
|
+
"ajv": "8.12.0",
|
|
77
|
+
"ajv-draft-04": "1.0.0",
|
|
79
78
|
"commander": "10.0.0",
|
|
80
79
|
"cosmiconfig": "8.1.0",
|
|
81
80
|
"diff": "5.1.0",
|
|
82
81
|
"fast-glob": "3.2.12"
|
|
83
82
|
},
|
|
84
83
|
"devDependencies": {
|
|
84
|
+
"@rollup/plugin-commonjs": "24.0.1",
|
|
85
|
+
"@rollup/plugin-json": "6.0.0",
|
|
86
|
+
"@rollup/plugin-node-resolve": "15.0.1",
|
|
85
87
|
"@semantic-release/changelog": "6.0.2",
|
|
86
88
|
"@semantic-release/git": "10.0.1",
|
|
87
89
|
"@types/node": "18.14.6",
|
|
@@ -92,6 +94,8 @@
|
|
|
92
94
|
"esbuild": "0.17.11",
|
|
93
95
|
"http-server": "14.1.1",
|
|
94
96
|
"js-yaml": "4.1.0",
|
|
97
|
+
"rollup": "3.18.0",
|
|
98
|
+
"rollup-plugin-swc-minify": "1.0.5",
|
|
95
99
|
"tehanu": "1.0.1",
|
|
96
100
|
"tehanu-repo-coco": "1.0.0",
|
|
97
101
|
"tehanu-teru": "1.0.0",
|