Socket
Socket
Sign inDemoInstall

webtorrent-fixtures

Package Overview
Dependencies
Maintainers
9
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webtorrent-fixtures - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## [2.0.1](https://github.com/webtorrent/webtorrent-fixtures/compare/v2.0.0...v2.0.1) (2023-01-31)
### Bug Fixes
* **deps:** update dependency parse-torrent to v11 ([1e82400](https://github.com/webtorrent/webtorrent-fixtures/commit/1e82400da85aebff708bb66bbbca2785296781b5))
* esm imports ([edd66e7](https://github.com/webtorrent/webtorrent-fixtures/commit/edd66e76eb61156f269296cf2f515dd6c5e29f71))
# [2.0.0](https://github.com/webtorrent/webtorrent-fixtures/compare/v1.7.5...v2.0.0) (2022-12-05)

@@ -2,0 +10,0 @@

18

index.js
// Torrent and content test files. Content is Public Domain or Creative Commons.
import fs from 'fs'
import path, { dirname } from 'path'
import parseTorrent from 'parse-torrent'
import parseTorrent, { toMagnetURI } from 'parse-torrent'

@@ -19,3 +19,3 @@ import { fileURLToPath } from 'url'

parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves.torrent'))),
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves.torrent'))))
magnetURI: toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves.torrent'))))
},

@@ -30,3 +30,3 @@

parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'alice.torrent'))),
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'alice.torrent'))))
magnetURI: toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'alice.torrent'))))
},

@@ -40,3 +40,3 @@

parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'folder.torrent'))),
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'folder.torrent'))))
magnetURI: toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'folder.torrent'))))
},

@@ -50,3 +50,3 @@

parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'numbers.torrent'))),
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'numbers.torrent'))))
magnetURI: toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'numbers.torrent'))))
},

@@ -60,3 +60,3 @@

parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'lots-of-numbers.torrent'))),
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'lots-of-numbers.torrent'))))
magnetURI: toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'lots-of-numbers.torrent'))))
},

@@ -69,3 +69,3 @@

parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'bunny.torrent'))),
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'bunny.torrent'))))
magnetURI: toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'bunny.torrent'))))
},

@@ -78,3 +78,3 @@

parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'sintel.torrent'))),
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'sintel.torrent'))))
magnetURI: toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'sintel.torrent'))))
},

@@ -89,3 +89,3 @@

parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves-metadata.torrent'))),
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves-metadata.torrent'))))
magnetURI: toMagnetURI(parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'leaves-metadata.torrent'))))
},

@@ -92,0 +92,0 @@

{
"name": "webtorrent-fixtures",
"description": "Sample torrent files for the WebTorrent test suite",
"version": "2.0.0",
"version": "2.0.1",
"author": {

@@ -21,6 +21,6 @@ "name": "WebTorrent, LLC",

"brfs": "^2.0.0",
"parse-torrent": "^7.0.0"
"parse-torrent": "^11.0.0"
},
"devDependencies": {
"@webtorrent/semantic-release-config": "1.0.7",
"@webtorrent/semantic-release-config": "1.0.8",
"semantic-release": "17.4.7",

@@ -27,0 +27,0 @@ "standard": "*"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc