Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhelmer committed Feb 13, 2016
1 parent 253fd9e commit ad1af90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@
'use strict';

var map = require('map-stream');
var through2 = require('through2');

/**
* Through stream with a simple passthrough after a specified duration.
*
* @name wait
* @param {number} timeout - The duration to wait, in milliseconds.
* @param {object} [options] - The options used to modify the behavior of the function.
* @param {boolean} [options.through2] - If set to `true`, will use through2 streams instead of through streams.
* @return {stream} - The through stream for piping.
*/
function wait(timeout, options) {
function wait(timeout) {
return map(function(file, cb) {
setTimeout(function() {
cb(null, file);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wait-stream",
"version": "1.0.0",
"version": "1.0.1",
"description": "Simple wait module for through and through2 node streams",
"repository": "justinhelmer/wait-stream",
"keywords": [
Expand Down

0 comments on commit ad1af90

Please sign in to comment.