From 0c6f75442167b8de84f883800383376ce86baaef Mon Sep 17 00:00:00 2001 From: David Dias Date: Fri, 19 May 2017 23:01:00 +0100 Subject: [PATCH] fix: use async/setImmediate --- package.json | 15 ++++++++------- src/index.js | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 3f2ec3f..4618c8c 100644 --- a/package.json +++ b/package.json @@ -30,18 +30,19 @@ }, "homepage": "https://github.com/libp2p/js-ipfs-railing", "devDependencies": { - "aegir": "^11.0.1", + "aegir": "^11.0.2", "chai": "^3.5.0", - "libp2p-swarm": "~0.28.0", - "libp2p-tcp": "~0.10.0", + "libp2p-swarm": "~0.29.1", + "libp2p-tcp": "~0.10.1", "pre-commit": "^1.2.2" }, "dependencies": { - "debug": "^2.6.3", + "async": "^2.4.0", + "debug": "^2.6.8", "lodash": "^4.17.4", "multiaddr": "^2.3.0", - "peer-id": "~0.8.6", - "peer-info": "~0.9.0" + "peer-id": "~0.8.7", + "peer-info": "~0.9.2" }, "pre-commit": [ "lint", @@ -55,4 +56,4 @@ "Nuno Nogueira ", "Richard Littauer " ] -} \ No newline at end of file +} diff --git a/src/index.js b/src/index.js index 39774de..825787c 100644 --- a/src/index.js +++ b/src/index.js @@ -6,6 +6,7 @@ const multiaddr = require('multiaddr') const EventEmitter = require('events').EventEmitter const debug = require('debug') const includes = require('lodash/includes') +const setImmediate = require('async/setImmediate') const log = debug('libp2p:railing') log.error = debug('libp2p:railing:error')