[Pkg-javascript-commits] [node-leveldown] 09/10: embed fast-future patch

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Fri Sep 12 17:01:01 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-leveldown.

commit 779db76769d3275d5068b17f99cfbea13fa060f2
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Fri Sep 12 16:36:26 2014 +0000

    embed fast-future patch
---
 debian/copyright                       |  4 ++
 debian/patches/embed-fast-future.patch | 73 ++++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 78 insertions(+)

diff --git a/debian/copyright b/debian/copyright
index 26df8f3..3245696 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -15,6 +15,10 @@ Files: *
 Copyright: 2014 Rod Vagg <r at va.gg>
 License: Expat
 
+Files: node_modules/fast-future/*
+Copyright: 2014 David Björklund
+License: Expat
+
 Files: debian/*
 Copyright: 2014 Andrew Kelley <superjoe30 at gmail.com>
 License: Expat
diff --git a/debian/patches/embed-fast-future.patch b/debian/patches/embed-fast-future.patch
new file mode 100644
index 0000000..323fd5c
--- /dev/null
+++ b/debian/patches/embed-fast-future.patch
@@ -0,0 +1,73 @@
+Description: bundle fast-future module
+ leveldown is the only package that depends on fast-future, and fast-future is
+ trivially small.
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+
+--- /dev/null
++++ node-leveldown-1.0.0+dfsg/node_modules/fast-future/fast-future.js
+@@ -0,0 +1,14 @@
++var LIMIT = process.maxTickDepth / 2
++  , factory = function () {
++      var count = 0
++      return function (callback) {
++        if (count >= LIMIT){
++          global.setImmediate(callback)
++          count = 0
++        } else
++          process.nextTick(callback)
++        count++
++      }
++    }
++
++module.exports = global.setImmediate ? factory : function () { return process.nextTick }
+\ No newline at end of file
+--- /dev/null
++++ node-leveldown-1.0.0+dfsg/node_modules/fast-future/package.json
+@@ -0,0 +1,46 @@
++{
++  "name": "fast-future",
++  "version": "1.0.1",
++  "description": "A really fast way to run a callback in the future",
++  "main": "fast-future.js",
++  "scripts": {
++    "test": "tape test.js"
++  },
++  "author": {
++    "name": "David Björklund",
++    "email": "david.bjorklund at gmail.com"
++  },
++  "license": "MIT",
++  "devDependencies": {
++    "tape": "~2.13.1"
++  },
++  "repository": {
++    "type": "git",
++    "url": "git://github.com/kesla/fast-future.git"
++  },
++  "bugs": {
++    "url": "https://github.com/kesla/fast-future/issues"
++  },
++  "homepage": "https://github.com/kesla/fast-future",
++  "_id": "fast-future at 1.0.1",
++  "dist": {
++    "shasum": "6cbd22d999ab39cd10fc79392486e7a678716818",
++    "tarball": "http://registry.npmjs.org/fast-future/-/fast-future-1.0.1.tgz"
++  },
++  "_from": "fast-future@~1.0.0",
++  "_npmVersion": "1.4.3",
++  "_npmUser": {
++    "name": "kesla",
++    "email": "david.bjorklund at gmail.com"
++  },
++  "maintainers": [
++    {
++      "name": "kesla",
++      "email": "david.bjorklund at gmail.com"
++    }
++  ],
++  "directories": {},
++  "_shasum": "6cbd22d999ab39cd10fc79392486e7a678716818",
++  "_resolved": "https://registry.npmjs.org/fast-future/-/fast-future-1.0.1.tgz",
++  "readme": "ERROR: No README data found!"
++}
diff --git a/debian/patches/series b/debian/patches/series
index af72458..188a72f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 use-system-libs.patch
+embed-fast-future.patch

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



More information about the Pkg-javascript-commits mailing list