diff --git a/package.json b/package.json index 20bc446e..8a314aaa 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "is-file": false }, "dependencies": { - "bencode": "^3.0.2", + "bencode": "^3.0.3", "block-iterator": "^1.1.1", "fast-readable-async-iterator": "^1.1.1", "is-file": "^1.0.0", @@ -34,11 +34,11 @@ "devDependencies": { "@webtorrent/semantic-release-config": "1.0.8", "brfs": "2.0.2", - "parse-torrent": "11.0.5", + "parse-torrent": "11.0.6", "semantic-release": "20.1.0", "standard": "*", "tape": "5.6.3", - "webtorrent-fixtures": "2.0.0" + "webtorrent-fixtures": "2.0.2" }, "engines": { "node": ">=12" diff --git a/test/source.js b/test/source.js index a8b62e1b..74e4bd1d 100644 --- a/test/source.js +++ b/test/source.js @@ -61,7 +61,7 @@ test('verify info-hash an additional source attribute set on the info dict (a wa // Source is now being read as a Buffer, // if 'parse-torrent' is updated this test will still pass - t.equal(parsedTorrent.info.source.toString(), 'SOURCE', 'info.source=\'SOURCE\'') + t.equal(Buffer.from(parsedTorrent.info.source).toString(), 'SOURCE', 'info.source=\'SOURCE\'') t.deepEqual(parsedTorrent.announce, ['http://private.tracker.org/'], 'single private announce url') diff --git a/test/ssl.js b/test/ssl.js index 4b52e66a..302605a6 100644 --- a/test/ssl.js +++ b/test/ssl.js @@ -5,7 +5,7 @@ import createTorrent from '../index.js' test('create ssl cert torrent', t => { t.plan(2) - const sslCert = Buffer.from('content cert X.509') + const sslCert = new Uint8Array(Buffer.from('content cert X.509')) createTorrent(Buffer.from('abc'), { name: 'abc.txt',