Comparing version 1.1.0 to 1.1.1
29
index.js
@@ -0,3 +1,25 @@ | ||
/*! | ||
* ee-first | ||
* Copyright(c) 2014 Jonathan Ong | ||
* MIT Licensed | ||
*/ | ||
module.exports = function first(stuff, done) { | ||
'use strict' | ||
/** | ||
* Module exports. | ||
* @public | ||
*/ | ||
module.exports = first | ||
/** | ||
* Get the first event in a set of event emitters and event pairs. | ||
* | ||
* @param {array} stuff | ||
* @param {function} done | ||
* @public | ||
*/ | ||
function first(stuff, done) { | ||
if (!Array.isArray(stuff)) | ||
@@ -53,2 +75,7 @@ throw new TypeError('arg must be an array of [ee, events...] arrays') | ||
/** | ||
* Create the event listener. | ||
* @private | ||
*/ | ||
function listener(event, done) { | ||
@@ -55,0 +82,0 @@ return function onevent(arg1) { |
{ | ||
"name": "ee-first", | ||
"description": "return the first event in a set of ee/event pairs", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -17,4 +17,4 @@ "name": "Jonathan Ong", | ||
"devDependencies": { | ||
"istanbul": "0.3.2", | ||
"mocha": "1" | ||
"istanbul": "0.3.9", | ||
"mocha": "2.2.5" | ||
}, | ||
@@ -21,0 +21,0 @@ "files": [ |
@@ -0,0 +0,0 @@ # EE First |
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
6259
75