-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update all dependencies #190
base: master
Are you sure you want to change the base?
Conversation
@@ -779,7 +783,6 @@ var torrentStream = function (link, opts, cb) { | |||
if (!port) return findPort(opts.port || DEFAULT_PORT, cb) | |||
engine.port = port | |||
swarm.listen(engine.port, cb) | |||
discovery.updatePort(engine.port) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this line, it should not be necessary right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The discovery needs to announce the same port, is that done somewhere else now?
Awesome stuff @G-Ray - See my one comment |
peerId: bufferFrom(opts.id), | ||
dht: (opts.dht !== undefined) ? opts.dht : true, | ||
tracker: (opts.tracker !== undefined) ? opts.tracker : true, | ||
port: engine.port || DEFAULT_PORT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be done here right ?
I just re-updated this with the very latest deps. node >= 10 is now required due to |
@@ -21,7 +21,7 @@ test('fixture can verify the torrent', function (t) { | |||
t.plan(2) | |||
fixture.on('ready', function () { | |||
t.ok(true, 'seed should be ready') | |||
t.deepEqual(fixture.bitfield.buffer.toString('hex'), 'c0', 'should verify all the pieces') | |||
t.deepEqual(fixture.bitfield.buffer[0], 192, 'should verify all the pieces') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bitfield >= 3 should support node 8, but on travis we get
---expected
+++ actual
@@ -1,1 +1,1 @@
-192
+0
test: test/auto-block.js fixture can verify the torrent
stack: |
Object.<anonymous> (test/auto-block.js:24:7)
index.js:568:16
Looks like this PR stalled. Although some dependencies are again outdated, if the effort invested is significant, I would merge this if possible and update again in another PR. |
Thank you @pataquets for your interest in this Pull Request ! 🤗 |
Fair enough. Thanks for the heads up, @G-Ray. |
Using webtorrent makes sense 👍 |
Thanks @mafintosh . In case you don't have interest or bandwidth for maintaining the project, may I suggest you to post a notice in the main readme? |
I updated all the dependencies to the latest version.
torrent-discovery
's api has changed a bit, do not hesitate to request changes if necessary.