Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webtorrent-fixtures

Package Overview
Dependencies
Maintainers
1
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 1.0.0 to 1.1.0

fixtures/bunny.torrent

20

index.js

@@ -46,8 +46,20 @@ // Torrent and content test files. Content is Public Domain or Creative Commons.

// Torrent file with "private" flag
// Torrent file with "private" flag, and "url-list" property
bunny: {
torrentPath: path.join(__dirname, 'fixtures', 'bunny-private.torrent'),
torrent: fs.readFileSync(path.join(__dirname, 'fixtures', 'bunny-private.torrent')),
parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'bunny-private.torrent')))
torrentPath: path.join(__dirname, 'fixtures', 'bunny.torrent'),
torrent: fs.readFileSync(path.join(__dirname, 'fixtures', 'bunny.torrent')),
parsedTorrent: parseTorrent(fs.readFileSync(path.join(__dirname, 'fixtures', 'bunny.torrent')))
},
// Invalid .torrent file
corrupt: {
torrentPath: path.join(__dirname, 'fixtures', 'corrupt.torrent'),
torrent: fs.readFileSync(path.join(__dirname, 'fixtures', 'corrupt.torrent'))
},
// ip-set formatted files (i.e. blocklists)
blocklist: {
path: path.join(__dirname, 'fixtures', 'blocklist.txt'),
gzipPath: path.join(__dirname, 'fixtures', 'blocklist.txt.gz')
}
}

4

package.json
{
"name": "webtorrent-fixtures",
"description": "List of Packages that Use JavaScript Standard Style",
"version": "1.0.0",
"description": "Sample torrent files for the WebTorrent test suite",
"version": "1.1.0",
"author": {

@@ -6,0 +6,0 @@ "email": "feross@feross.org",

@@ -8,2 +8,6 @@ # webtorrent-fixtures [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url]

### Sample torrent files for the WebTorrent test suite
Torrent and content test files. All files are Public Domain or Creative Commons.
## Usage

@@ -10,0 +14,0 @@

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