Skip to content

Commit 4cf1295

Browse files
fix(deps): update webtorrent (#208)
* fix(deps): update webtorrent * fix: tests (#209) --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cas <6506529+ThaUnknown@users.noreply.github.com>
1 parent 0f4d439 commit 4cf1295

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"is-file": false
2020
},
2121
"dependencies": {
22-
"bencode": "^3.0.2",
22+
"bencode": "^3.0.3",
2323
"block-iterator": "^1.1.1",
2424
"fast-readable-async-iterator": "^1.1.1",
2525
"is-file": "^1.0.0",
@@ -34,11 +34,11 @@
3434
"devDependencies": {
3535
"@webtorrent/semantic-release-config": "1.0.8",
3636
"brfs": "2.0.2",
37-
"parse-torrent": "11.0.5",
37+
"parse-torrent": "11.0.6",
3838
"semantic-release": "20.1.0",
3939
"standard": "*",
4040
"tape": "5.6.3",
41-
"webtorrent-fixtures": "2.0.0"
41+
"webtorrent-fixtures": "2.0.2"
4242
},
4343
"engines": {
4444
"node": ">=12"

test/source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ test('verify info-hash an additional source attribute set on the info dict (a wa
6161

6262
// Source is now being read as a Buffer,
6363
// if 'parse-torrent' is updated this test will still pass
64-
t.equal(parsedTorrent.info.source.toString(), 'SOURCE', 'info.source=\'SOURCE\'')
64+
t.equal(Buffer.from(parsedTorrent.info.source).toString(), 'SOURCE', 'info.source=\'SOURCE\'')
6565

6666
t.deepEqual(parsedTorrent.announce, ['http://private.tracker.org/'], 'single private announce url')
6767

test/ssl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import createTorrent from '../index.js'
55
test('create ssl cert torrent', t => {
66
t.plan(2)
77

8-
const sslCert = Buffer.from('content cert X.509')
8+
const sslCert = new Uint8Array(Buffer.from('content cert X.509'))
99

1010
createTorrent(Buffer.from('abc'), {
1111
name: 'abc.txt',

0 commit comments

Comments
 (0)