Socket
Socket
Sign inDemoInstall

ajv

Package Overview
Dependencies
Maintainers
1
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv - npm Package Compare versions

Comparing version 0.5.0 to 0.5.2

bin/compile_dots

7

lib/compile/index.js
'use strict';
var doT = require('dot')
, fs = require('fs')
, resolve = require('./resolve')
var resolve = require('./resolve')
, util = require('./util')

@@ -12,4 +10,3 @@ , equal = require('./equal');

var RULES = require('./rules')
, validateTemplate = fs.readFileSync(__dirname + '/validate.dot.js')
, validateGenerator = doT.compile(validateTemplate, { definitions: RULES.defs });
, validateGenerator = require('../dotjs/validate');

@@ -16,0 +13,0 @@ module.exports = compile;

{
"name": "ajv",
"version": "0.5.0",
"version": "0.5.2",
"description": "Another JSON schema Validator",

@@ -25,3 +25,2 @@ "main": "lib/ajv.js",

"dependencies": {
"dot": "^1.0.3",
"json-stable-stringify": "^1.0.0"

@@ -31,6 +30,8 @@ },

"chai": "^3.0.0",
"dot": "^1.0.3",
"glob": "^5.0.10",
"js-beautify": "^1.5.6",
"mocha": "^2.2.5"
"mocha": "^2.2.5",
"watch": "^0.16.0"
}
}
# ajv - Another JSON Schema Validator
One of the fastest JSON Schema validators for node.js. It uses [doT templates](https://github.com/olado/doT) to generate super-fast validating functions.
One of the fastest JSON Schema validators for node.js and browser.
It uses precompiled [doT templates](https://github.com/olado/doT) to generate super-fast validating functions.
[![Build Status](https://travis-ci.org/epoberezkin/ajv.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv)

@@ -153,2 +156,14 @@ [![npm version](https://badge.fury.io/js/ajv.svg)](http://badge.fury.io/js/ajv)

## Contributing
All validation functions are generated using doT templates in dot folder. Templates are precompiled so doT is not a run-time dependency.
`bin/compile_dots` to compile templates to dotjs folder
`bin/watch_dots` to automatically compile templates when files in dot folder change
There is pre-commit hook that runs compile_dots and tests.
## Changes history

@@ -155,0 +170,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc