Version 1
[yaffs-website] / node_modules / phantomjs-prebuilt / node_modules / har-validator / lib / async.js
diff --git a/node_modules/phantomjs-prebuilt/node_modules/har-validator/lib/async.js b/node_modules/phantomjs-prebuilt/node_modules/har-validator/lib/async.js
new file mode 100644 (file)
index 0000000..77b99a7
--- /dev/null
@@ -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)
+  }
+})