New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-mocha

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-mocha - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

22

index.js
'use strict';
var domain = require('domain');
var gutil = require('gulp-util');
var through2 = require('through2');
var through = require('through2');
var Mocha = require('mocha');
var domain = require('domain');

@@ -24,3 +23,3 @@ module.exports = function (options) {

return through2.obj(function (file, enc, cb) {
return through.obj(function (file, enc, cb) {
mocha.addFile(file.path);

@@ -33,5 +32,5 @@ this.push(file);

function handleException(e) {
function handleException(err) {
clearCache();
stream.emit('error', new gutil.PluginError('gulp-mocha', e));
stream.emit('error', new gutil.PluginError('gulp-mocha', err));
cb();

@@ -45,13 +44,16 @@ }

clearCache();
if (errCount > 0) {
stream.emit('error', new gutil.PluginError('gulp-mocha', errCount + ' ' + (errCount === 1 ? 'test' : 'tests') + ' failed.'));
stream.emit('error', new gutil.PluginError('gulp-mocha', errCount + ' ' + (errCount === 1 ? 'test' : 'tests') + ' failed.', {
showStack: false
}));
}
cb();
});
} catch (err) {
handleException(err);
}
catch (e) {
handleException(e);
}
});
});
};
{
"name": "gulp-mocha",
"version": "0.5.1",
"version": "0.5.2",
"description": "Run Mocha tests",

@@ -36,6 +36,6 @@ "license": "MIT",

"dependencies": {
"gulp-util": "~2.2.0",
"through2": "~0.4.0",
"mocha": "~1"
"gulp-util": "^3.0.0",
"mocha": "^1",
"through2": "^0.5.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc