bugsnag-build-reporter
Advanced tools
Comparing version 1.0.0-1 to 1.0.0-2
@@ -0,5 +1,7 @@ | ||
const inspect = require('util').inspect | ||
module.exports = schema => (opts, cb) => { | ||
const errors = Object.keys(schema).reduce((accum, key) => { | ||
if (schema[key].validate(opts[key])) return accum | ||
return accum.concat({ key, message: schema[key].message, value: opts[key] }) | ||
return accum.concat({ key, message: schema[key].message, value: inspect(opts[key]) }) | ||
}, []) | ||
@@ -6,0 +8,0 @@ if (!errors.length) return cb(null, opts) |
{ | ||
"name": "bugsnag-build-reporter", | ||
"version": "1.0.0-1", | ||
"version": "1.0.0-2", | ||
"description": "A tool for reporting your application's builds to Bugsnag", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18918
452