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

gulp-batch

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-batch - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

index.js
'use strict';
var array = require('stream-array');
var bach = require('bach');
var asyncDone = require('async-done');

@@ -31,8 +31,7 @@ module.exports = function (opts, cb, errorHandler) {

var holdOn = true;
var waiter = bach.parallel(cb.bind(cb, array(batch)));
batch = [];
waiter(function (err) {
asyncDone(cb.bind(cb, array(batch)), function (err) {
holdOn = false;
if (err && typeof errorHandler === 'function') { errorHandler(err); }
});
batch = [];
}

@@ -39,0 +38,0 @@

{
"name": "gulp-batch",
"version": "1.0.0",
"version": "1.0.1",
"description": "Event batcher for gulp-watcher",

@@ -37,5 +37,5 @@ "main": "index.js",

"dependencies": {
"bach": "^0.3.0",
"async-done": "^0.4.0",
"stream-array": "^0.1.3"
}
}

@@ -14,11 +14,7 @@ # [gulp](https://github.com/gulpjs/gulp)-batch [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]

```js
// npm i gulp gulp-watch gulp-mocha gulp-batch
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var batch = require('gulp-batch');
gulp.src(['lib/**', 'test/**'], batch(function(events) {
return events
.pipe(mocha({ reporter: 'list' }));
gulp.watch(['lib/**', 'test/**'], batch(function(events) {
return events.pipe(console.log);
}));

@@ -25,0 +21,0 @@ ```

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