Skip to content

Commit

Permalink
fix(deps): update webtorrent (#208)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
renovate[bot] and ThaUnknown authored Jan 31, 2023
1 parent 0f4d439 commit 4cf1295
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion test/ssl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4cf1295

Please sign in to comment.