[Pkg-javascript-commits] [node-finished] 07/10: update bundled ee-first to correct dependency version

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Fri Sep 12 04:47:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to branch master
in repository node-finished.

commit c1020925a7b0afb4206a54712cf9de803c0f9742
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Fri Sep 12 04:27:51 2014 +0000

    update bundled ee-first to correct dependency version
---
 debian/patches/0001-bundle_ee-first_module.patch | 191 ++++++++++++-----------
 1 file changed, 104 insertions(+), 87 deletions(-)

diff --git a/debian/patches/0001-bundle_ee-first_module.patch b/debian/patches/0001-bundle_ee-first_module.patch
index d16d85a..653ac29 100644
--- a/debian/patches/0001-bundle_ee-first_module.patch
+++ b/debian/patches/0001-bundle_ee-first_module.patch
@@ -4,20 +4,6 @@ Description: Bundle ee-first module with this package:
 Auhtor: Leo Iannacone <l3on at ubuntu.com>
 Forwarded: not-needed
 
----
- node_modules/ee-first/.npmignore   |    2 +
- node_modules/ee-first/LICENSE      |   22 +++++++++++++
- node_modules/ee-first/README.md    |    5 +++
- node_modules/ee-first/index.js     |   60 +++++++++++++++++++++++++++++++++++++
- node_modules/ee-first/package.json |   28 +++++++++++++++++
- node_modules/ee-first/test.js      |   60 +++++++++++++++++++++++++++++++++++++
- 6 files changed, 177 insertions(+)
-
---- /dev/null
-+++ b/node_modules/ee-first/.npmignore
-@@ -0,0 +1,2 @@
-+.DS_Store*
-+node_modules
 --- /dev/null
 +++ b/node_modules/ee-first/LICENSE
 @@ -0,0 +1,22 @@
@@ -45,12 +31,70 @@ Forwarded: not-needed
 +THE SOFTWARE.
 --- /dev/null
 +++ b/node_modules/ee-first/README.md
-@@ -0,0 +1,5 @@
-+
+@@ -0,0 +1,63 @@
 +# EE First
 +
++[![NPM version][npm-image]][npm-url]
++[![Build status][travis-image]][travis-url]
++[![Test coverage][coveralls-image]][coveralls-url]
++[![License][license-image]][license-url]
++[![Downloads][downloads-image]][downloads-url]
++[![Gittip][gittip-image]][gittip-url]
++
 +Get the first event in a set of event emitters and event pairs,
 +then clean up after itself.
++
++## Install
++
++```sh
++$ npm install ee-first
++```
++
++## API
++
++```js
++var first = require('ee-first')
++```
++
++### first(arr, listener)
++
++Invoke `listener` on the first event from the list specified in `arr`. `arr` is
++an array of arrays, with each array in the format `[ee, ...event]`. `listener`
++will be called only once, the first time any of the given events are emitted. If
++`error` is one of the listened events, then if that fires first, the `listener`
++will be given the `err` argument.
++
++The `listener` is invoked as `listener(err, ee, event, args)`, where `err` is the
++first argument emitted from an `error` event, if applicable; `ee` is the event
++emitter that fired; `event` is the string event name that fired; and `args` is an
++array of the arguments that were emitted on the event.
++
++```js
++var ee1 = new EventEmitter()
++var ee2 = new EventEmitter()
++
++first([
++  [ee1, 'close', 'end', 'error'],
++  [ee2, 'error']
++], function (err, ee, event, args) {
++  // listener invoked
++})
++```
++
++[npm-image]: https://img.shields.io/npm/v/ee-first.svg?style=flat-square
++[npm-url]: https://npmjs.org/package/ee-first
++[github-tag]: http://img.shields.io/github/tag/jonathanong/ee-first.svg?style=flat-square
++[github-url]: https://github.com/jonathanong/ee-first/tags
++[travis-image]: https://img.shields.io/travis/jonathanong/ee-first.svg?style=flat-square
++[travis-url]: https://travis-ci.org/jonathanong/ee-first
++[coveralls-image]: https://img.shields.io/coveralls/jonathanong/ee-first.svg?style=flat-square
++[coveralls-url]: https://coveralls.io/r/jonathanong/ee-first?branch=master
++[license-image]: http://img.shields.io/npm/l/ee-first.svg?style=flat-square
++[license-url]: LICENSE.md
++[downloads-image]: http://img.shields.io/npm/dm/ee-first.svg?style=flat-square
++[downloads-url]: https://npmjs.org/package/ee-first
++[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
++[gittip-url]: https://www.gittip.com/jonathanong/
 --- /dev/null
 +++ b/node_modules/ee-first/index.js
 @@ -0,0 +1,60 @@
@@ -116,95 +160,68 @@ Forwarded: not-needed
 +}
 --- /dev/null
 +++ b/node_modules/ee-first/package.json
-@@ -0,0 +1,28 @@
+@@ -0,0 +1,64 @@
 +{
 +  "name": "ee-first",
 +  "description": "return the first event in a set of ee/event pairs",
-+  "version": "1.0.3",
++  "version": "1.0.5",
 +  "author": {
 +    "name": "Jonathan Ong",
 +    "email": "me at jongleberry.com",
 +    "url": "http://jongleberry.com"
 +  },
++  "contributors": [
++    {
++      "name": "Douglas Christopher Wilson",
++      "email": "doug at somethingdoug.com"
++    }
++  ],
 +  "license": "MIT",
 +  "repository": {
 +    "type": "git",
-+    "url": "git://github.com/jonathanong/ee-first"
++    "url": "https://github.com/jonathanong/ee-first"
 +  },
 +  "devDependencies": {
++    "istanbul": "0.3.0",
 +    "mocha": "1"
 +  },
++  "files": [
++    "index.js",
++    "LICENSE"
++  ],
 +  "scripts": {
-+    "test": "mocha --reporter spec"
++    "test": "mocha --reporter spec --bail --check-leaks test/",
++    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
++    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
 +  },
-+  "readme": "\n# EE First\n\nGet the first event in a set of event emitters and event pairs,\nthen clean up after itself.\n",
-+  "readmeFilename": "README.md",
++  "gitHead": "c9d9a6881863c0d2fcc2e4ac99a170088c205304",
 +  "bugs": {
 +    "url": "https://github.com/jonathanong/ee-first/issues"
 +  },
-+  "_id": "ee-first at 1.0.3",
-+  "_from": "ee-first at 1.0.3"
++  "homepage": "https://github.com/jonathanong/ee-first",
++  "_id": "ee-first at 1.0.5",
++  "_shasum": "8c9b212898d8cd9f1a9436650ce7be202c9e9ff0",
++  "_from": "ee-first at 1.0.5",
++  "_npmVersion": "1.4.21",
++  "_npmUser": {
++    "name": "dougwilson",
++    "email": "doug at somethingdoug.com"
++  },
++  "maintainers": [
++    {
++      "name": "jongleberry",
++      "email": "jonathanrichardong at gmail.com"
++    },
++    {
++      "name": "dougwilson",
++      "email": "doug at somethingdoug.com"
++    }
++  ],
++  "dist": {
++    "shasum": "8c9b212898d8cd9f1a9436650ce7be202c9e9ff0",
++    "tarball": "http://registry.npmjs.org/ee-first/-/ee-first-1.0.5.tgz"
++  },
++  "directories": {},
++  "_resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.0.5.tgz",
++  "readme": "ERROR: No README data found!"
 +}
---- /dev/null
-+++ b/node_modules/ee-first/test.js
-@@ -0,0 +1,60 @@
-+
-+var EventEmitter = require('events').EventEmitter
-+var assert = require('assert')
-+
-+var first = require('./')
-+
-+describe('first', function () {
-+  var ee1 = new EventEmitter()
-+  var ee2 = new EventEmitter()
-+  var ee3 = new EventEmitter()
-+
-+  it('should emit the first event', function (done) {
-+    first([
-+      [ee1, 'a', 'b', 'c'],
-+      [ee2, 'a', 'b', 'c'],
-+      [ee3, 'a', 'b', 'c'],
-+    ], function (err, ee, event, args) {
-+      assert.ifError(err)
-+      assert.equal(ee, ee2)
-+      assert.equal(event, 'b')
-+      assert.deepEqual(args, [1, 2, 3])
-+      done()
-+    })
-+
-+    ee2.emit('b', 1, 2, 3)
-+  })
-+
-+  it('it should return an error if event === error', function (done) {
-+    first([
-+      [ee1, 'error', 'b', 'c'],
-+      [ee2, 'error', 'b', 'c'],
-+      [ee3, 'error', 'b', 'c'],
-+    ], function (err, ee, event, args) {
-+      assert.equal(err.message, 'boom')
-+      assert.equal(ee, ee3)
-+      assert.equal(event, 'error')
-+      done()
-+    })
-+
-+    ee3.emit('error', new Error('boom'))
-+  })
-+
-+  it('should cleanup after itself', function (done) {
-+    first([
-+      [ee1, 'a', 'b', 'c'],
-+      [ee2, 'a', 'b', 'c'],
-+      [ee3, 'a', 'b', 'c'],
-+    ], function (err, ee, event, args) {
-+      assert.ifError(err)
-+      ;[ee1, ee2, ee3].forEach(function (ee) {
-+        ['a', 'b', 'c'].forEach(function (event) {
-+          assert(!ee.listeners(event).length)
-+        })
-+      })
-+      done()
-+    })
-+
-+    ee1.emit('a')
-+  })
-+})

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-finished.git



More information about the Pkg-javascript-commits mailing list