Bones/node_modules/har-validator/lib/async.js

15 lines
304 B
JavaScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
'use strict'
var runner = require('./runner')
var schemas = require('./schemas')
module.exports = function (data, cb) {
return runner(schemas.har, data, cb)
}
Object.keys(schemas).map(function (name) {
module.exports[name] = function (data, cb) {
return runner(schemas[name], data, cb)
}
})