1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 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@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@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@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@gmail.com"
+ },
+ "maintainers": [
+ {
+ "name": "kesla",
+ "email": "david.bjorklund@gmail.com"
+ }
+ ],
+ "directories": {},
+ "_shasum": "6cbd22d999ab39cd10fc79392486e7a678716818",
+ "_resolved": "https://registry.npmjs.org/fast-future/-/fast-future-1.0.1.tgz",
+ "readme": "ERROR: No README data found!"
+}
|