diff options
Diffstat (limited to 'node_modules/request/node_modules/har-validator/lib/async.js')
-rw-r--r-- | node_modules/request/node_modules/har-validator/lib/async.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/request/node_modules/har-validator/lib/async.js b/node_modules/request/node_modules/har-validator/lib/async.js new file mode 100644 index 000000000..77b99a7db --- /dev/null +++ b/node_modules/request/node_modules/har-validator/lib/async.js @@ -0,0 +1,14 @@ +'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) + } +}) |