Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/ajv-errors.json

raw
1 {
2 "_id": "ajv-errors",
3 "_rev": "11-0f37f5dfbd6af59ec5117afb4dfd125c",
4 "name": "ajv-errors",
5 "description": "Custom error messages in JSON-Schema for Ajv validator",
6 "dist-tags": {
7 "latest": "1.0.1"
8 },
9 "versions": {
10 "0.0.1": {
11 "name": "ajv-errors",
12 "version": "0.0.1",
13 "description": "Custom error messages in JSON-Schema for Ajv validator",
14 "main": "index.js",
15 "scripts": {
16 "test": "echo \"Error: no test specified\" && exit 1"
17 },
18 "repository": {
19 "type": "git",
20 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
21 },
22 "keywords": [
23 "ajv",
24 "json-schema",
25 "validator",
26 "error",
27 "messages"
28 ],
29 "author": "",
30 "license": "MIT",
31 "bugs": {
32 "url": "https://github.com/epoberezkin/ajv-errors/issues"
33 },
34 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
35 "gitHead": "c30cfd8987e0cf23cc39ff8dd6dc1feede17ad9e",
36 "_id": "[email protected]",
37 "_shasum": "9d25c7a77ec8e9ec88017059d32cd699251f2e5b",
38 "_from": ".",
39 "_npmVersion": "3.10.8",
40 "_nodeVersion": "6.9.1",
41 "_npmUser": {
42 "name": "esp",
43 "email": "[email protected]"
44 },
45 "maintainers": [
46 {
47 "name": "esp",
48 "email": "[email protected]"
49 }
50 ],
51 "dist": {
52 "shasum": "9d25c7a77ec8e9ec88017059d32cd699251f2e5b",
53 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-0.0.1.tgz"
54 },
55 "_npmOperationalInternal": {
56 "host": "packages-18-east.internal.npmjs.com",
57 "tmp": "tmp/ajv-errors-0.0.1.tgz_1488714041336_0.44593694899231195"
58 },
59 "directories": {}
60 },
61 "0.1.0": {
62 "name": "ajv-errors",
63 "version": "0.1.0",
64 "description": "Custom error messages in JSON-Schema for Ajv validator",
65 "main": "index.js",
66 "scripts": {
67 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
68 "eslint": "eslint *.js spec",
69 "test-spec": "mocha spec/*.spec.js -R spec",
70 "test-cov": "nyc npm run test-spec",
71 "test": "npm run eslint && npm run build && npm run test-cov"
72 },
73 "repository": {
74 "type": "git",
75 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
76 },
77 "keywords": [
78 "ajv",
79 "json-schema",
80 "validator",
81 "error",
82 "messages"
83 ],
84 "author": "",
85 "license": "MIT",
86 "bugs": {
87 "url": "https://github.com/epoberezkin/ajv-errors/issues"
88 },
89 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
90 "peerDependencies": {
91 "ajv": ">=5.0.0"
92 },
93 "devDependencies": {
94 "ajv": "^5.0.0",
95 "coveralls": "^2.11.16",
96 "dot": "^1.1.1",
97 "eslint": "^3.17.0",
98 "glob": "^7.1.1",
99 "js-beautify": "^1.6.12",
100 "mocha": "^3.2.0",
101 "nyc": "^10.1.2",
102 "pre-commit": "^1.2.2"
103 },
104 "nyc": {
105 "exclude": [
106 "**/spec/**",
107 "node_modules"
108 ],
109 "reporter": [
110 "lcov",
111 "text-summary"
112 ]
113 },
114 "gitHead": "24eb684608f778a592905e8ecc7b1e124683e98d",
115 "_id": "[email protected]",
116 "_shasum": "575fe73af89ca815664c97534f6cb21e0fd3143f",
117 "_from": ".",
118 "_npmVersion": "2.15.9",
119 "_nodeVersion": "4.6.1",
120 "_npmUser": {
121 "name": "esp",
122 "email": "[email protected]"
123 },
124 "maintainers": [
125 {
126 "name": "esp",
127 "email": "[email protected]"
128 }
129 ],
130 "dist": {
131 "shasum": "575fe73af89ca815664c97534f6cb21e0fd3143f",
132 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-0.1.0.tgz"
133 },
134 "_npmOperationalInternal": {
135 "host": "packages-12-west.internal.npmjs.com",
136 "tmp": "tmp/ajv-errors-0.1.0.tgz_1493578076194_0.40459733200259507"
137 },
138 "directories": {}
139 },
140 "0.1.1": {
141 "name": "ajv-errors",
142 "version": "0.1.1",
143 "description": "Custom error messages in JSON-Schema for Ajv validator",
144 "main": "index.js",
145 "scripts": {
146 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
147 "eslint": "eslint *.js spec",
148 "test-spec": "mocha spec/*.spec.js -R spec",
149 "test-cov": "nyc npm run test-spec",
150 "test": "npm run eslint && npm run build && npm run test-cov"
151 },
152 "repository": {
153 "type": "git",
154 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
155 },
156 "keywords": [
157 "ajv",
158 "json-schema",
159 "validator",
160 "error",
161 "messages"
162 ],
163 "author": "",
164 "license": "MIT",
165 "bugs": {
166 "url": "https://github.com/epoberezkin/ajv-errors/issues"
167 },
168 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
169 "peerDependencies": {
170 "ajv": ">=5.0.0"
171 },
172 "devDependencies": {
173 "ajv": "^5.0.0",
174 "coveralls": "^2.11.16",
175 "dot": "^1.1.1",
176 "eslint": "^3.17.0",
177 "glob": "^7.1.1",
178 "js-beautify": "^1.6.12",
179 "mocha": "^3.2.0",
180 "nyc": "^10.1.2",
181 "pre-commit": "^1.2.2"
182 },
183 "nyc": {
184 "exclude": [
185 "**/spec/**",
186 "node_modules"
187 ],
188 "reporter": [
189 "lcov",
190 "text-summary"
191 ]
192 },
193 "gitHead": "5f5941837a99e14593d254dee53476cd64ea4959",
194 "_id": "[email protected]",
195 "_shasum": "0e3efa3f1c043b8ba9cbd7c792a1c4d159b7541c",
196 "_from": ".",
197 "_npmVersion": "2.15.9",
198 "_nodeVersion": "4.6.1",
199 "_npmUser": {
200 "name": "esp",
201 "email": "[email protected]"
202 },
203 "maintainers": [
204 {
205 "name": "esp",
206 "email": "[email protected]"
207 }
208 ],
209 "dist": {
210 "shasum": "0e3efa3f1c043b8ba9cbd7c792a1c4d159b7541c",
211 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-0.1.1.tgz"
212 },
213 "_npmOperationalInternal": {
214 "host": "packages-18-east.internal.npmjs.com",
215 "tmp": "tmp/ajv-errors-0.1.1.tgz_1493581004672_0.3394001806154847"
216 },
217 "directories": {}
218 },
219 "0.1.2": {
220 "name": "ajv-errors",
221 "version": "0.1.2",
222 "description": "Custom error messages in JSON-Schema for Ajv validator",
223 "main": "index.js",
224 "files": [
225 "lib"
226 ],
227 "scripts": {
228 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
229 "eslint": "eslint *.js spec",
230 "test-spec": "mocha spec/*.spec.js -R spec",
231 "test-cov": "nyc npm run test-spec",
232 "test": "npm run eslint && npm run build && npm run test-cov",
233 "prepublish": "npm run build"
234 },
235 "repository": {
236 "type": "git",
237 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
238 },
239 "keywords": [
240 "ajv",
241 "json-schema",
242 "validator",
243 "error",
244 "messages"
245 ],
246 "author": "",
247 "license": "MIT",
248 "bugs": {
249 "url": "https://github.com/epoberezkin/ajv-errors/issues"
250 },
251 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
252 "peerDependencies": {
253 "ajv": ">=5.0.0"
254 },
255 "devDependencies": {
256 "ajv": "^5.0.0",
257 "coveralls": "^2.11.16",
258 "dot": "^1.1.1",
259 "eslint": "^3.17.0",
260 "glob": "^7.1.1",
261 "js-beautify": "^1.6.12",
262 "mocha": "^3.2.0",
263 "nyc": "^10.1.2",
264 "pre-commit": "^1.2.2"
265 },
266 "nyc": {
267 "exclude": [
268 "**/spec/**",
269 "node_modules"
270 ],
271 "reporter": [
272 "lcov",
273 "text-summary"
274 ]
275 },
276 "gitHead": "ef36fa1ad34937b6baab7f5fccc9b1cbed88b7b7",
277 "_id": "[email protected]",
278 "_shasum": "561877abb7f15c44032687e37fd9b7638ada7909",
279 "_from": ".",
280 "_npmVersion": "2.15.9",
281 "_nodeVersion": "4.6.1",
282 "_npmUser": {
283 "name": "esp",
284 "email": "[email protected]"
285 },
286 "maintainers": [
287 {
288 "name": "esp",
289 "email": "[email protected]"
290 }
291 ],
292 "dist": {
293 "shasum": "561877abb7f15c44032687e37fd9b7638ada7909",
294 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-0.1.2.tgz"
295 },
296 "_npmOperationalInternal": {
297 "host": "packages-12-west.internal.npmjs.com",
298 "tmp": "tmp/ajv-errors-0.1.2.tgz_1493583855068_0.06978772417642176"
299 },
300 "directories": {}
301 },
302 "0.2.0": {
303 "name": "ajv-errors",
304 "version": "0.2.0",
305 "description": "Custom error messages in JSON-Schema for Ajv validator",
306 "main": "index.js",
307 "files": [
308 "lib"
309 ],
310 "scripts": {
311 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
312 "eslint": "eslint *.js spec",
313 "test-spec": "mocha spec/*.spec.js -R spec",
314 "test-cov": "nyc npm run test-spec",
315 "test": "npm run eslint && npm run build && npm run test-cov",
316 "prepublish": "npm run build"
317 },
318 "repository": {
319 "type": "git",
320 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
321 },
322 "keywords": [
323 "ajv",
324 "json-schema",
325 "validator",
326 "error",
327 "messages"
328 ],
329 "author": "",
330 "license": "MIT",
331 "bugs": {
332 "url": "https://github.com/epoberezkin/ajv-errors/issues"
333 },
334 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
335 "peerDependencies": {
336 "ajv": ">=5.0.0"
337 },
338 "devDependencies": {
339 "ajv": "^5.0.0",
340 "coveralls": "^2.11.16",
341 "dot": "^1.1.1",
342 "eslint": "^3.17.0",
343 "glob": "^7.1.1",
344 "js-beautify": "^1.6.12",
345 "mocha": "^3.2.0",
346 "nyc": "^10.1.2",
347 "pre-commit": "^1.2.2"
348 },
349 "nyc": {
350 "exclude": [
351 "**/spec/**",
352 "node_modules"
353 ],
354 "reporter": [
355 "lcov",
356 "text-summary"
357 ]
358 },
359 "gitHead": "cd9af6681bfdcf3d6f4bb1c143790b1470762999",
360 "_id": "[email protected]",
361 "_shasum": "008204c64a57c9be5ced529a80b05c094f7cd3c0",
362 "_from": ".",
363 "_npmVersion": "2.15.9",
364 "_nodeVersion": "4.6.1",
365 "_npmUser": {
366 "name": "esp",
367 "email": "[email protected]"
368 },
369 "maintainers": [
370 {
371 "name": "esp",
372 "email": "[email protected]"
373 }
374 ],
375 "dist": {
376 "shasum": "008204c64a57c9be5ced529a80b05c094f7cd3c0",
377 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-0.2.0.tgz"
378 },
379 "_npmOperationalInternal": {
380 "host": "packages-12-west.internal.npmjs.com",
381 "tmp": "tmp/ajv-errors-0.2.0.tgz_1493656328770_0.18939133686944842"
382 },
383 "directories": {}
384 },
385 "0.3.0": {
386 "name": "ajv-errors",
387 "version": "0.3.0",
388 "description": "Custom error messages in JSON-Schema for Ajv validator",
389 "main": "index.js",
390 "files": [
391 "lib"
392 ],
393 "scripts": {
394 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
395 "eslint": "eslint *.js spec",
396 "test-spec": "mocha spec/*.spec.js -R spec",
397 "test-cov": "nyc npm run test-spec",
398 "test": "npm run eslint && npm run build && npm run test-cov",
399 "prepublish": "npm run build"
400 },
401 "repository": {
402 "type": "git",
403 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
404 },
405 "keywords": [
406 "ajv",
407 "json-schema",
408 "validator",
409 "error",
410 "messages"
411 ],
412 "author": "",
413 "license": "MIT",
414 "bugs": {
415 "url": "https://github.com/epoberezkin/ajv-errors/issues"
416 },
417 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
418 "peerDependencies": {
419 "ajv": ">=5.0.0"
420 },
421 "devDependencies": {
422 "ajv": "^5.0.0",
423 "coveralls": "^2.11.16",
424 "dot": "^1.1.1",
425 "eslint": "^3.17.0",
426 "glob": "^7.1.1",
427 "js-beautify": "^1.6.12",
428 "mocha": "^3.2.0",
429 "nyc": "^10.1.2",
430 "pre-commit": "^1.2.2"
431 },
432 "nyc": {
433 "exclude": [
434 "**/spec/**",
435 "node_modules"
436 ],
437 "reporter": [
438 "lcov",
439 "text-summary"
440 ]
441 },
442 "gitHead": "2198d2e98180658c3f11aa27a5b1be6105dd64c3",
443 "_id": "[email protected]",
444 "_shasum": "539c41568e1bfd9cf0f50a33a3bf02c11a38f917",
445 "_from": ".",
446 "_npmVersion": "3.10.8",
447 "_nodeVersion": "6.9.1",
448 "_npmUser": {
449 "name": "esp",
450 "email": "[email protected]"
451 },
452 "maintainers": [
453 {
454 "name": "esp",
455 "email": "[email protected]"
456 }
457 ],
458 "dist": {
459 "shasum": "539c41568e1bfd9cf0f50a33a3bf02c11a38f917",
460 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-0.3.0.tgz"
461 },
462 "_npmOperationalInternal": {
463 "host": "packages-12-west.internal.npmjs.com",
464 "tmp": "tmp/ajv-errors-0.3.0.tgz_1494357272151_0.45966680673882365"
465 },
466 "directories": {}
467 },
468 "0.4.0": {
469 "name": "ajv-errors",
470 "version": "0.4.0",
471 "description": "Custom error messages in JSON-Schema for Ajv validator",
472 "main": "index.js",
473 "files": [
474 "lib"
475 ],
476 "scripts": {
477 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
478 "eslint": "eslint *.js spec",
479 "test-spec": "mocha spec/*.spec.js -R spec",
480 "test-cov": "nyc npm run test-spec",
481 "test": "npm run eslint && npm run build && npm run test-cov",
482 "prepublish": "npm run build"
483 },
484 "repository": {
485 "type": "git",
486 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
487 },
488 "keywords": [
489 "ajv",
490 "json-schema",
491 "validator",
492 "error",
493 "messages"
494 ],
495 "author": "",
496 "license": "MIT",
497 "bugs": {
498 "url": "https://github.com/epoberezkin/ajv-errors/issues"
499 },
500 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
501 "peerDependencies": {
502 "ajv": ">=5.0.0"
503 },
504 "devDependencies": {
505 "ajv": "^5.0.0",
506 "coveralls": "^2.11.16",
507 "dot": "^1.1.1",
508 "eslint": "^3.17.0",
509 "glob": "^7.1.1",
510 "js-beautify": "^1.6.12",
511 "mocha": "^3.2.0",
512 "nyc": "^10.1.2",
513 "pre-commit": "^1.2.2"
514 },
515 "nyc": {
516 "exclude": [
517 "**/spec/**",
518 "node_modules"
519 ],
520 "reporter": [
521 "lcov",
522 "text-summary"
523 ]
524 },
525 "gitHead": "463b2a6dd8b806b0b22bf1a19b55b7bd5141fb48",
526 "_id": "[email protected]",
527 "_shasum": "22f351b6faafdb65c99a04e48d9c0ef608649138",
528 "_from": ".",
529 "_npmVersion": "3.10.8",
530 "_nodeVersion": "6.9.1",
531 "_npmUser": {
532 "name": "esp",
533 "email": "[email protected]"
534 },
535 "maintainers": [
536 {
537 "name": "esp",
538 "email": "[email protected]"
539 }
540 ],
541 "dist": {
542 "shasum": "22f351b6faafdb65c99a04e48d9c0ef608649138",
543 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-0.4.0.tgz"
544 },
545 "_npmOperationalInternal": {
546 "host": "packages-12-west.internal.npmjs.com",
547 "tmp": "tmp/ajv-errors-0.4.0.tgz_1494366397805_0.6618154644966125"
548 },
549 "directories": {}
550 },
551 "0.5.0": {
552 "name": "ajv-errors",
553 "version": "0.5.0",
554 "description": "Custom error messages in JSON-Schema for Ajv validator",
555 "main": "index.js",
556 "files": [
557 "lib"
558 ],
559 "scripts": {
560 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
561 "eslint": "eslint *.js spec",
562 "test-spec": "mocha spec/*.spec.js -R spec",
563 "test-cov": "nyc npm run test-spec",
564 "test": "npm run eslint && npm run build && npm run test-cov",
565 "prepublish": "npm run build"
566 },
567 "repository": {
568 "type": "git",
569 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
570 },
571 "keywords": [
572 "ajv",
573 "json-schema",
574 "validator",
575 "error",
576 "messages"
577 ],
578 "author": "",
579 "license": "MIT",
580 "bugs": {
581 "url": "https://github.com/epoberezkin/ajv-errors/issues"
582 },
583 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
584 "peerDependencies": {
585 "ajv": ">=5.0.0"
586 },
587 "devDependencies": {
588 "ajv": "^5.0.0",
589 "coveralls": "^2.11.16",
590 "dot": "^1.1.1",
591 "eslint": "^3.17.0",
592 "glob": "^7.1.1",
593 "js-beautify": "^1.6.12",
594 "mocha": "^3.2.0",
595 "nyc": "^10.1.2",
596 "pre-commit": "^1.2.2"
597 },
598 "nyc": {
599 "exclude": [
600 "**/spec/**",
601 "node_modules"
602 ],
603 "reporter": [
604 "lcov",
605 "text-summary"
606 ]
607 },
608 "gitHead": "6896050438a254710a674e52802087de0a7d0eb6",
609 "_id": "[email protected]",
610 "_shasum": "e0df4940776e36fa7084c7944c636ac5ea9b747a",
611 "_from": ".",
612 "_npmVersion": "2.15.9",
613 "_nodeVersion": "4.6.1",
614 "_npmUser": {
615 "name": "esp",
616 "email": "[email protected]"
617 },
618 "maintainers": [
619 {
620 "name": "esp",
621 "email": "[email protected]"
622 }
623 ],
624 "dist": {
625 "shasum": "e0df4940776e36fa7084c7944c636ac5ea9b747a",
626 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-0.5.0.tgz"
627 },
628 "_npmOperationalInternal": {
629 "host": "s3://npm-registry-packages",
630 "tmp": "tmp/ajv-errors-0.5.0.tgz_1495899292681_0.15062517416663468"
631 },
632 "directories": {}
633 },
634 "1.0.0": {
635 "name": "ajv-errors",
636 "version": "1.0.0",
637 "description": "Custom error messages in JSON-Schema for Ajv validator",
638 "main": "index.js",
639 "files": [
640 "lib"
641 ],
642 "scripts": {
643 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
644 "eslint": "eslint *.js spec",
645 "test-spec": "mocha spec/*.spec.js -R spec",
646 "test-cov": "nyc npm run test-spec",
647 "test": "npm run eslint && npm run build && npm run test-cov",
648 "prepublish": "npm run build"
649 },
650 "repository": {
651 "type": "git",
652 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
653 },
654 "keywords": [
655 "ajv",
656 "json-schema",
657 "validator",
658 "error",
659 "messages"
660 ],
661 "author": "",
662 "license": "MIT",
663 "bugs": {
664 "url": "https://github.com/epoberezkin/ajv-errors/issues"
665 },
666 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
667 "peerDependencies": {
668 "ajv": ">=5.0.0"
669 },
670 "devDependencies": {
671 "ajv": "^5.0.0",
672 "coveralls": "^2.11.16",
673 "dot": "^1.1.1",
674 "eslint": "^3.17.0",
675 "glob": "^7.1.1",
676 "js-beautify": "^1.6.12",
677 "mocha": "^3.2.0",
678 "nyc": "^10.1.2",
679 "pre-commit": "^1.2.2"
680 },
681 "nyc": {
682 "exclude": [
683 "**/spec/**",
684 "node_modules"
685 ],
686 "reporter": [
687 "lcov",
688 "text-summary"
689 ]
690 },
691 "gitHead": "99e3352b1b3544efc8ec9c7d40e8e0e4fb76545d",
692 "_id": "[email protected]",
693 "_shasum": "ecf021fa108fd17dfb5e6b383f2dd233e31ffc59",
694 "_from": ".",
695 "_npmVersion": "2.15.9",
696 "_nodeVersion": "4.6.1",
697 "_npmUser": {
698 "name": "esp",
699 "email": "[email protected]"
700 },
701 "maintainers": [
702 {
703 "name": "esp",
704 "email": "[email protected]"
705 }
706 ],
707 "dist": {
708 "shasum": "ecf021fa108fd17dfb5e6b383f2dd233e31ffc59",
709 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.0.tgz"
710 },
711 "_npmOperationalInternal": {
712 "host": "s3://npm-registry-packages",
713 "tmp": "tmp/ajv-errors-1.0.0.tgz_1495907979993_0.6698060610797256"
714 },
715 "directories": {}
716 },
717 "1.0.1": {
718 "name": "ajv-errors",
719 "version": "1.0.1",
720 "description": "Custom error messages in JSON-Schema for Ajv validator",
721 "main": "index.js",
722 "scripts": {
723 "build": "node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib",
724 "eslint": "eslint *.js spec",
725 "test-spec": "mocha spec/*.spec.js -R spec",
726 "test-cov": "nyc npm run test-spec",
727 "test": "npm run eslint && npm run build && npm run test-cov",
728 "prepublish": "npm run build"
729 },
730 "repository": {
731 "type": "git",
732 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
733 },
734 "keywords": [
735 "ajv",
736 "json-schema",
737 "validator",
738 "error",
739 "messages"
740 ],
741 "author": "",
742 "license": "MIT",
743 "bugs": {
744 "url": "https://github.com/epoberezkin/ajv-errors/issues"
745 },
746 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
747 "peerDependencies": {
748 "ajv": ">=5.0.0"
749 },
750 "devDependencies": {
751 "ajv": "^5.0.0",
752 "coveralls": "^2.11.16",
753 "dot": "^1.1.1",
754 "eslint": "^3.17.0",
755 "glob": "^7.1.1",
756 "js-beautify": "^1.6.12",
757 "mocha": "^3.2.0",
758 "nyc": "^10.1.2",
759 "pre-commit": "^1.2.2"
760 },
761 "nyc": {
762 "exclude": [
763 "**/spec/**",
764 "node_modules"
765 ],
766 "reporter": [
767 "lcov",
768 "text-summary"
769 ]
770 },
771 "gitHead": "5d134394acb6429840438cc262c36c76d91e356c",
772 "_id": "[email protected]",
773 "_npmVersion": "5.6.0",
774 "_nodeVersion": "10.0.0",
775 "_npmUser": {
776 "name": "esp",
777 "email": "[email protected]"
778 },
779 "dist": {
780 "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==",
781 "shasum": "f35986aceb91afadec4102fbd85014950cefa64d",
782 "tarball": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz",
783 "fileCount": 7,
784 "unpackedSize": 41660,
785 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDX6nCRA9TVsSAnZWagAAu1sP/R1PmaZCddDScGEKSaDw\npqT+zr5jNjcjyX24Pi8uDye/QwvTdAnqO8kqzg6ZHWJk78kmOw3WsqBGk8S9\nzMDXPJweSTWAZvrNYRiGfchCt9lLuuTdGjvgYxGrTEFiUdEXl9U6SScTxs7X\npy9Vd8hfdTa8TKPxWt8Aj7ELTM13Er71B8V82J63k42YomtsMssxER5d2mqx\nOt92KJvlu+w/cvVzjAS1QquBybVzUwlWWTGzxP/SdN6Z0EzPAT9XoKyr0aeg\n2q+6C0+j88ObOP2tMBS5VOl0E5HTB/1lb0VPVZkMEEDedmnT/bj5r+kSnVKU\nTYQRsLb1VsbYqtHWyCIS996DxtfiAh8hUchHJYSdCSz4eiOkteYRvGYKQlYa\n4t/T9EmDpe6HH7GYKujMIFKSSTZRSAIWwenAlARWSEscZlXyD5ql2CiSLdRh\n2UOWf/DK8QzjbaBX4Iki9W+8ResOA/2nA15o2YT9RSfeX10qymAckwkgU/U4\nRB1QSKFpkdpYvrhcdxSnPIGXB5nhmRik/NP+VbdRz8Fqm4Rjz4LmUg4wqkq4\nbs9JsnrqSsknsNrMxB83nBR0L/iHHWfyJZAIow/KWYHF3cIU5CvmBQQIRDc+\nJ6zgHs6x80YIb0qWey/Wz98rJb2L1uYSI3j8TgBzePf/B+g2ozqKS9+pou0K\n6Z7v\r\n=0kuF\r\n-----END PGP SIGNATURE-----\r\n"
786 },
787 "maintainers": [
788 {
789 "name": "esp",
790 "email": "[email protected]"
791 }
792 ],
793 "directories": {},
794 "_npmOperationalInternal": {
795 "host": "s3://npm-registry-packages",
796 "tmp": "tmp/ajv-errors_1.0.1_1544388262825_0.438145911563087"
797 },
798 "_hasShrinkwrap": false
799 }
800 },
801 "readme": "# ajv-errors\nCustom error messages in JSON-Schema for Ajv validator\n\n[![Build Status](https://travis-ci.org/epoberezkin/ajv-errors.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv-errors)\n[![npm version](https://badge.fury.io/js/ajv-errors.svg)](http://badge.fury.io/js/ajv-errors)\n[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/ajv-errors/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/ajv-errors?branch=master)\n[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv)\n\n\n## Contents\n\n- [Install](#install)\n- [Usage](#usage)\n - [Single message](#single-message)\n - [Messages for keywords](#messages-for-keywords)\n - [Messages for properties and items](#messages-for-properties-and-items)\n - [Default message](#default-message)\n- [Templates](#templates)\n- [Options](#options)\n- [License](#license)\n\n\n## Install\n\n```\nnpm install ajv-errors\n```\n\n\n## Usage\n\nAdd the keyword `errorMessages` to Ajv instance:\n\n```javascript\nvar Ajv = require('ajv');\nvar ajv = new Ajv({allErrors: true, jsonPointers: true});\n// Ajv options allErrors and jsonPointers are required\nrequire('ajv-errors')(ajv /*, {singleError: true} */);\n```\n\nSee [Options](#options) below.\n\n\n### Single message\n\nReplace all errors in the current schema and subschemas with a single message:\n\n```javascript\nvar schema = {\n type: 'object',\n required: ['foo'],\n properties: {\n foo: { type: 'integer' }\n },\n additionalProperties: false,\n errorMessage: 'should be an object with an integer property foo only'\n};\n\nvar validate = ajv.compile(schema);\nconsole.log(validate({foo: 'a', bar: 2})); // false\nconsole.log(validate.errors); // processed errors\n```\n\nProcessed errors:\n\n```javascript\n[\n {\n keyword: 'errorMessage',\n message: 'should be an object with an integer property foo only',\n // ...\n params: {\n errors: [\n { keyword: 'additionalProperties', dataPath: '' /* , ... */ },\n { keyword: 'type', dataPath: '.foo' /* , ... */ }\n ]\n }\n }\n]\n```\n\n\n### Messages for keywords\n\nReplace errors for certain keywords in the current schema only:\n\n```javascript\nvar schema = {\n type: 'object',\n required: ['foo'],\n properties: {\n foo: { type: 'integer' }\n },\n additionalProperties: false,\n errorMessage: {\n type: 'should be an object', // will not replace internal \"type\" error for the property \"foo\"\n required: 'should have property foo',\n additionalProperties: 'should not have properties other than foo'\n }\n};\n\nvar validate = ajv.compile(schema);\nconsole.log(validate({foo: 'a', bar: 2})); // false\nconsole.log(validate.errors); // processed errors\n```\n\nProcessed errors:\n\n```javascript\n[\n {\n // original error\n keyword: type,\n dataPath: '/foo',\n // ...\n message: 'should be integer'\n },\n {\n // generated error\n keyword: 'errorMessage',\n message: 'should not have properties other than foo',\n // ...\n params: {\n errors: [\n { keyword: 'additionalProperties' /* , ... */ }\n ]\n },\n }\n]\n```\n\nFor keywords \"required\" and \"dependencies\" it is possible to specify different messages for different properties:\n\n```javascript\nvar schema = {\n type: 'object',\n required: ['foo', 'bar'],\n properties: {\n foo: { type: 'integer' },\n bar: { type: 'string' }\n },\n errorMessage: {\n type: 'should be an object', // will not replace internal \"type\" error for the property \"foo\"\n required: {\n foo: 'should have an integer property \"foo\"',\n bar: 'should have a string property \"bar\"'\n }\n }\n};\n```\n\n\n### Messages for properties and items\n\nReplace errors for properties / items (and deeper), regardless where in schema they were created:\n\n```javascript\nvar schema = {\n type: 'object',\n required: ['foo', 'bar'],\n allOf: [{\n properties: {\n foo: { type: 'integer', minimum: 2 },\n bar: { type: 'string', minLength: 2 }\n },\n additionalProperties: false\n }],\n errorMessage: {\n properties: {\n foo: 'data.foo should be integer >= 2',\n bar: 'data.bar should be string with length >= 2'\n }\n }\n};\n\nvar validate = ajv.compile(schema);\nconsole.log(validate({foo: 1, bar: 'a'})); // false\nconsole.log(validate.errors); // processed errors\n```\n\nProcessed errors:\n\n```javascript\n[\n {\n keyword: 'errorMessage',\n message: 'data.foo should be integer >= 2',\n dataPath: '/foo',\n // ...\n params: {\n errors: [\n { keyword: 'minimum' /* , ... */ }\n ]\n },\n },\n {\n keyword: 'errorMessage',\n message: 'data.bar should be string with length >= 2',\n dataPath: '/bar',\n // ...\n params: {\n errors: [\n { keyword: 'minLength' /* , ... */ }\n ]\n },\n }\n]\n```\n\n\n### Default message\n\nWhen the value of keyword `errorMessage` is an object you can specify a message that will be used if any error appears that is not specified by keywords/properties/items:\n\n```javascript\nvar schema = {\n type: 'object',\n required: ['foo', 'bar'],\n allOf: [{\n properties: {\n foo: { type: 'integer', minimum: 2 },\n bar: { type: 'string', minLength: 2 }\n },\n additionalProperties: false\n }],\n errorMessage: {\n type: 'data should be an object',\n properties: {\n foo: 'data.foo should be integer >= 2',\n bar: 'data.bar should be string with length >= 2'\n },\n _: 'data should have properties \"foo\" and \"bar\" only'\n }\n};\n\nvar validate = ajv.compile(schema);\nconsole.log(validate({})); // false\nconsole.log(validate.errors); // processed errors\n```\n\nProcessed errors:\n\n```javascript\n[\n {\n keyword: 'errorMessage',\n message: 'data should be an object with properties \"foo\" and \"bar\" only',\n dataPath: '',\n // ...\n params: {\n errors: [\n { keyword: 'required' /* , ... */ },\n { keyword: 'required' /* , ... */ }\n ]\n },\n }\n]\n```\n\nThe message in property `_` of `errorMessage` replaces the same errors that would have been replaced if `errorMessage` were a string.\n\n\n## Templates\n\nCustom error messages used in `errorMessage` keyword can be templates using [JSON-pointers](https://tools.ietf.org/html/rfc6901) or [relative JSON-pointers](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00) to data being validated, in which case the value will be interpolated. Also see [examples](https://gist.github.com/geraintluff/5911303) of relative JSON-pointers.\n\nThe syntax to interpolate a value is `${<pointer>}`.\n\nThe values used in messages will be JSON-stringified:\n- to differentiate between `false` and `\"false\"`, etc.\n- to support structured values.\n\nExample:\n\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"size\": {\n \"type\": \"number\",\n \"minimum\": 4\n }\n },\n \"errorMessage\": {\n \"properties\": {\n \"size\": \"size should be a number bigger or equal to 4, current value is ${/size}\"\n }\n }\n}\n```\n\n\n## Options\n\nDefaults:\n\n```javascript\n{\n keepErrors: false,\n singleError: false\n}\n```\n\n- _keepErrors_: keep original errors. Default is to remove matched errors (they will still be available in `params.errors` property of generated error). If an error was matched and included in the error generated by `errorMessage` keyword it will have property `emUsed: true`.\n- _singleError_: create one error for all keywords used in `errorMessage` keyword (error messages defined for properties and items are not merged because they have different dataPaths). Multiple error messages are concatenated. Option values:\n - `false` (default): create multiple errors, one for each message\n - `true`: create single error, messages are concatenated using `\"; \"`\n - non-empty string: this string is used as a separator to concatenate messages\n\n\n## Supporters\n\n[<img src=\"https://media.licdn.com/mpr/mpr/shrinknp_400_400/AAEAAQAAAAAAAAwEAAAAJDg1YzBlYzFjLTA3YWYtNGEzOS1iMTdjLTQ0MTU1NWZjOGM0ZQ.jpg\" width=\"48\" height=\"48\">](https://www.linkedin.com/in/rogerkepler/) [Roger Kepler](https://www.linkedin.com/in/rogerkepler/)\n\n\n## License\n\n[MIT](https://github.com/epoberezkin/ajv-errors/blob/master/LICENSE)\n",
802 "maintainers": [
803 {
804 "name": "esp",
805 "email": "[email protected]"
806 }
807 ],
808 "time": {
809 "modified": "2018-12-09T20:44:25.855Z",
810 "created": "2017-03-05T11:40:42.016Z",
811 "0.0.1": "2017-03-05T11:40:42.016Z",
812 "0.1.0": "2017-04-30T18:47:58.032Z",
813 "0.1.1": "2017-04-30T19:36:45.272Z",
814 "0.1.2": "2017-04-30T20:24:16.937Z",
815 "0.2.0": "2017-05-01T16:32:10.431Z",
816 "0.3.0": "2017-05-09T19:14:33.951Z",
817 "0.4.0": "2017-05-09T21:46:40.263Z",
818 "0.5.0": "2017-05-27T15:34:53.768Z",
819 "1.0.0": "2017-05-27T17:59:41.038Z",
820 "1.0.1": "2018-12-09T20:44:23.016Z"
821 },
822 "homepage": "https://github.com/epoberezkin/ajv-errors#readme",
823 "keywords": [
824 "ajv",
825 "json-schema",
826 "validator",
827 "error",
828 "messages"
829 ],
830 "repository": {
831 "type": "git",
832 "url": "git+https://github.com/epoberezkin/ajv-errors.git"
833 },
834 "bugs": {
835 "url": "https://github.com/epoberezkin/ajv-errors/issues"
836 },
837 "license": "MIT",
838 "readmeFilename": "README.md",
839 "users": {
840 "esilva2902": true,
841 "sopov": true
842 }
843 }