Socket
Socket
Sign inDemoInstall

ee-first

Package Overview
Dependencies
0
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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) {

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc