gulp-jsinspect
Advanced tools
Comparing version 1.0.0 to 1.0.1
10
index.js
@@ -41,2 +41,4 @@ 'use strict'; | ||
} | ||
var self = this; | ||
@@ -56,3 +58,3 @@ var inspector = new Inspector(paths, { | ||
inspector.on('match', function() { | ||
this.emit('error', new gutil.PluginError('jsinspect-gulp', 'jsinspect failed', { | ||
self.emit('error', new gutil.PluginError('jsinspect-gulp', 'jsinspect failed', { | ||
showStack: false | ||
@@ -66,2 +68,8 @@ })); | ||
}); | ||
inspector.on('error', function(err){ | ||
self.emit('error', new gutil.PluginError('jsinspect-gulp', err.message, { | ||
showStack: false | ||
})); | ||
}); | ||
@@ -68,0 +76,0 @@ inspector.run(); |
{ | ||
"name": "gulp-jsinspect", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Gulp plugin for running jsinspect (detect copy-pasted and structurally similar code)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -0,0 +0,0 @@ # gulp-[jsinspect](https://github.com/danielstjules/jsinspect) |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4496
61
0