1 | {
|
---|
2 | "name": "ajv",
|
---|
3 | "version": "8.17.1",
|
---|
4 | "description": "Another JSON Schema Validator",
|
---|
5 | "main": "dist/ajv.js",
|
---|
6 | "types": "dist/ajv.d.ts",
|
---|
7 | "files": [
|
---|
8 | "lib/",
|
---|
9 | "dist/",
|
---|
10 | ".runkit_example.js"
|
---|
11 | ],
|
---|
12 | "scripts": {
|
---|
13 | "eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" --ignore-pattern spec/JSON-Schema-Test-Suite",
|
---|
14 | "prettier:write": "prettier --write \"./**/*.{json,yaml,js,ts}\"",
|
---|
15 | "prettier:check": "prettier --list-different \"./**/*.{json,yaml,js,ts}\"",
|
---|
16 | "test-spec": "cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register \"spec/**/*.spec.{ts,js}\" -R dot",
|
---|
17 | "test-codegen": "nyc cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register 'spec/codegen.spec.ts' -R spec",
|
---|
18 | "test-debug": "npm run test-spec -- --inspect-brk",
|
---|
19 | "test-cov": "nyc npm run test-spec",
|
---|
20 | "rollup": "rm -rf bundle && rollup -c",
|
---|
21 | "bundle": "rm -rf bundle && node ./scripts/bundle.js ajv ajv7 ajv7 && node ./scripts/bundle.js 2019 ajv2019 ajv2019 && node ./scripts/bundle.js 2020 ajv2020 ajv2020 && node ./scripts/bundle.js jtd ajvJTD ajvJTD",
|
---|
22 | "build": "rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts && rm dist/refs/json-schema-2020-12/index.ts && rm dist/refs/jtd-schema.ts",
|
---|
23 | "json-tests": "rm -rf spec/_json/*.js && node scripts/jsontests",
|
---|
24 | "test-karma": "karma start",
|
---|
25 | "test-browser": "rm -rf .browser && npm run bundle && scripts/prepare-tests && karma start",
|
---|
26 | "test-all": "npm run test-cov && if-node-version 12 npm run test-browser",
|
---|
27 | "test": "npm run json-tests && npm run prettier:check && npm run eslint && npm link && npm link --legacy-peer-deps ajv && npm run test-cov",
|
---|
28 | "test-ci": "AJV_FULL_TEST=true npm test",
|
---|
29 | "prepublish": "npm run build",
|
---|
30 | "benchmark": "npm i && npm run build && npm link && cd ./benchmark && npm link --legacy-peer-deps ajv && npm i && node ./jtd",
|
---|
31 | "docs:dev": "./scripts/prepare-site && vuepress dev docs",
|
---|
32 | "docs:build": "./scripts/prepare-site && vuepress build docs"
|
---|
33 | },
|
---|
34 | "nyc": {
|
---|
35 | "exclude": [
|
---|
36 | "**/spec/**",
|
---|
37 | "node_modules"
|
---|
38 | ],
|
---|
39 | "reporter": [
|
---|
40 | "lcov",
|
---|
41 | "text-summary"
|
---|
42 | ]
|
---|
43 | },
|
---|
44 | "repository": "ajv-validator/ajv",
|
---|
45 | "keywords": [
|
---|
46 | "JSON",
|
---|
47 | "schema",
|
---|
48 | "validator",
|
---|
49 | "validation",
|
---|
50 | "jsonschema",
|
---|
51 | "json-schema",
|
---|
52 | "json-schema-validator",
|
---|
53 | "json-schema-validation"
|
---|
54 | ],
|
---|
55 | "author": "Evgeny Poberezkin",
|
---|
56 | "license": "MIT",
|
---|
57 | "bugs": "https://github.com/ajv-validator/ajv/issues",
|
---|
58 | "homepage": "https://ajv.js.org",
|
---|
59 | "runkitExampleFilename": ".runkit_example.js",
|
---|
60 | "dependencies": {
|
---|
61 | "fast-deep-equal": "^3.1.3",
|
---|
62 | "fast-uri": "^3.0.1",
|
---|
63 | "json-schema-traverse": "^1.0.0",
|
---|
64 | "require-from-string": "^2.0.2"
|
---|
65 | },
|
---|
66 | "devDependencies": {
|
---|
67 | "@ajv-validator/config": "^0.5.0",
|
---|
68 | "@rollup/plugin-commonjs": "^25.0.7",
|
---|
69 | "@rollup/plugin-json": "^6.1.0",
|
---|
70 | "@rollup/plugin-node-resolve": "^15.2.3",
|
---|
71 | "@rollup/plugin-typescript": "^11.1.6",
|
---|
72 | "@types/chai": "^4.3.11",
|
---|
73 | "@types/mocha": "^10.0.6",
|
---|
74 | "@types/node": "^20.11.30",
|
---|
75 | "@types/require-from-string": "^1.2.3",
|
---|
76 | "@typescript-eslint/eslint-plugin": "^7.3.1",
|
---|
77 | "@typescript-eslint/parser": "^7.3.1",
|
---|
78 | "ajv-formats": "^3.0.1",
|
---|
79 | "browserify": "^17.0.0",
|
---|
80 | "chai": "^4.4.1",
|
---|
81 | "cross-env": "^7.0.3",
|
---|
82 | "dayjs": "^1.11.10",
|
---|
83 | "dayjs-plugin-utc": "^0.1.2",
|
---|
84 | "eslint": "^8.57.0",
|
---|
85 | "eslint-config-prettier": "^9.1.0",
|
---|
86 | "glob": "^10.3.10",
|
---|
87 | "husky": "^9.0.11",
|
---|
88 | "if-node-version": "^1.1.1",
|
---|
89 | "jimp": "^0.22.10",
|
---|
90 | "js-beautify": "^1.15.1",
|
---|
91 | "json-schema-test": "^2.0.0",
|
---|
92 | "karma": "^6.4.2",
|
---|
93 | "karma-chrome-launcher": "^3.2.0",
|
---|
94 | "karma-mocha": "^2.0.1",
|
---|
95 | "lint-staged": "^15.2.2",
|
---|
96 | "mocha": "^10.3.0",
|
---|
97 | "module-from-string": "^3.3.0",
|
---|
98 | "node-fetch": "^3.3.2",
|
---|
99 | "nyc": "^15.1.0",
|
---|
100 | "prettier": "3.0.3",
|
---|
101 | "re2": "^1.20.9",
|
---|
102 | "rollup": "^2.79.1",
|
---|
103 | "rollup-plugin-terser": "^7.0.2",
|
---|
104 | "ts-node": "^10.9.2",
|
---|
105 | "tsify": "^5.0.4",
|
---|
106 | "typescript": "5.3.3",
|
---|
107 | "uri-js": "^4.4.1"
|
---|
108 | },
|
---|
109 | "collective": {
|
---|
110 | "type": "opencollective",
|
---|
111 | "url": "https://opencollective.com/ajv"
|
---|
112 | },
|
---|
113 | "funding": {
|
---|
114 | "type": "github",
|
---|
115 | "url": "https://github.com/sponsors/epoberezkin"
|
---|
116 | },
|
---|
117 | "prettier": "@ajv-validator/config/prettierrc.json",
|
---|
118 | "husky": {
|
---|
119 | "hooks": {
|
---|
120 | "pre-commit": "lint-staged && npm test"
|
---|
121 | }
|
---|
122 | },
|
---|
123 | "lint-staged": {
|
---|
124 | "*.{json,yaml,js,ts}": "prettier --write"
|
---|
125 | }
|
---|
126 | }
|
---|