Skip to content
Browse files

Switch to new pliers plugin interface

  • Loading branch information...
1 parent 01f43cf commit 9c5422430dff755ca4fb0f1af581cbc529bad9df @domharrington domharrington committed Feb 19, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 pliers-npm-security-check.js
View
7 pliers-npm-security-check.js
@@ -1,9 +1,9 @@
var fs = require('fs')
, request = require('request')
-module.exports = function (pliers, name) {
+module.exports = function (pliers) {
- pliers(name || 'npmSecurityCheck', function (done) {
+ return function (done) {
fs.createReadStream('./npm-shrinkwrap.json').pipe(
request.post('https://nodesecurity.io/validate/shrinkwrap', function (error, res) {
if (error) done(new Error('Problem contacting nodesecurity.io web service'))
@@ -15,5 +15,6 @@ module.exports = function (pliers, name) {
})
}
}))
- })
+ }
+
}

0 comments on commit 9c54224

Please sign in to comment.
Something went wrong with that request. Please try again.