update node_modules

This commit is contained in:
Robert Brignull 2020-08-24 14:02:55 +01:00
parent a6e6d4b72b
commit 3c5b7fba82
3343 changed files with 0 additions and 440474 deletions

20
node_modules/ajv/.tonic_example.js generated vendored
View file

@ -1,20 +0,0 @@
var Ajv = require('ajv');
var ajv = new Ajv({allErrors: true});
var schema = {
"properties": {
"foo": { "type": "string" },
"bar": { "type": "number", "maximum": 3 }
}
};
var validate = ajv.compile(schema);
test({"foo": "abc", "bar": 2});
test({"foo": 2, "bar": 4});
function test(data) {
var valid = validate(data);
if (valid) console.log('Valid!');
else console.log('Invalid: ' + ajv.errorsText(validate.errors));
}