pull-handshake
Advanced tools
Comparing version 1.0.4 to 1.1.0
10
index.js
@@ -17,5 +17,11 @@ | ||
module.exports = function (_cb) { | ||
function isFunction (f) { | ||
return 'function' === typeof f | ||
} | ||
module.exports = function (opts, _cb) { | ||
if(isFunction(opts)) | ||
_cb = opts, opts = {} | ||
_cb = once(_cb) | ||
var reader = Reader() | ||
var reader = Reader(opts && opts.timeout || 5e3) | ||
var writer = Writer(function (err) { | ||
@@ -22,0 +28,0 @@ if(err) _cb(err) |
{ | ||
"name": "pull-handshake", | ||
"description": "easily create a duplex protocol that starts with a handshake", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/dominictarr/pull-handshake", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
5182
109