webtorrent-fixtures
Advanced tools
Comparing version 1.7.1 to 1.7.2
58
index.js
// Torrent and content test files. Content is Public Domain or Creative Commons. | ||
const { readFileSync } = require('fs') | ||
const fs = require('fs') | ||
const { join } = require('path') | ||
@@ -12,6 +12,6 @@ const parseTorrent = require('parse-torrent') | ||
torrentPath: join(__dirname, 'fixtures', 'leaves.torrent'), | ||
content: readFileSync(join(__dirname, 'fixtures', 'Leaves of Grass by Walt Whitman.epub')), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'leaves.torrent')), | ||
parsedTorrent: parseTorrent(readFileSync(join(__dirname, 'fixtures', 'leaves.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(readFileSync(join(__dirname, 'fixtures', 'leaves.torrent')))) | ||
content: fs.readFileSync(join(__dirname, 'fixtures', 'Leaves of Grass by Walt Whitman.epub')), | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'leaves.torrent')), | ||
parsedTorrent: parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'leaves.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'leaves.torrent')))) | ||
}, | ||
@@ -23,6 +23,6 @@ | ||
torrentPath: join(__dirname, 'fixtures', 'alice.torrent'), | ||
content: readFileSync(join(__dirname, 'fixtures', 'alice.txt')), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'alice.torrent')), | ||
parsedTorrent: parseTorrent(readFileSync(join(__dirname, 'fixtures', 'alice.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(readFileSync(join(__dirname, 'fixtures', 'alice.torrent')))) | ||
content: fs.readFileSync(join(__dirname, 'fixtures', 'alice.txt')), | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'alice.torrent')), | ||
parsedTorrent: parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'alice.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'alice.torrent')))) | ||
}, | ||
@@ -34,5 +34,5 @@ | ||
torrentPath: join(__dirname, 'fixtures', 'folder.torrent'), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'folder.torrent')), | ||
parsedTorrent: parseTorrent(readFileSync(join(__dirname, 'fixtures', 'folder.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(readFileSync(join(__dirname, 'fixtures', 'folder.torrent')))) | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'folder.torrent')), | ||
parsedTorrent: parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'folder.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'folder.torrent')))) | ||
}, | ||
@@ -44,5 +44,5 @@ | ||
torrentPath: join(__dirname, 'fixtures', 'numbers.torrent'), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'numbers.torrent')), | ||
parsedTorrent: parseTorrent(readFileSync(join(__dirname, 'fixtures', 'numbers.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(readFileSync(join(__dirname, 'fixtures', 'numbers.torrent')))) | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'numbers.torrent')), | ||
parsedTorrent: parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'numbers.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'numbers.torrent')))) | ||
}, | ||
@@ -54,5 +54,5 @@ | ||
torrentPath: join(__dirname, 'fixtures', 'lots-of-numbers.torrent'), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'lots-of-numbers.torrent')), | ||
parsedTorrent: parseTorrent(readFileSync(join(__dirname, 'fixtures', 'lots-of-numbers.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(readFileSync(join(__dirname, 'fixtures', 'lots-of-numbers.torrent')))) | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'lots-of-numbers.torrent')), | ||
parsedTorrent: parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'lots-of-numbers.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'lots-of-numbers.torrent')))) | ||
}, | ||
@@ -63,5 +63,5 @@ | ||
torrentPath: join(__dirname, 'fixtures', 'bunny.torrent'), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'bunny.torrent')), | ||
parsedTorrent: parseTorrent(readFileSync(join(__dirname, 'fixtures', 'bunny.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(readFileSync(join(__dirname, 'fixtures', 'bunny.torrent')))) | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'bunny.torrent')), | ||
parsedTorrent: parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'bunny.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'bunny.torrent')))) | ||
}, | ||
@@ -72,5 +72,5 @@ | ||
torrentPath: join(__dirname, 'fixtures', 'sintel.torrent'), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'sintel.torrent')), | ||
parsedTorrent: parseTorrent(readFileSync(join(__dirname, 'fixtures', 'sintel.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(readFileSync(join(__dirname, 'fixtures', 'sintel.torrent')))) | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'sintel.torrent')), | ||
parsedTorrent: parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'sintel.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'sintel.torrent')))) | ||
}, | ||
@@ -82,6 +82,6 @@ | ||
torrentPath: join(__dirname, 'fixtures', 'leaves-metadata.torrent'), | ||
content: readFileSync(join(__dirname, 'fixtures', 'Leaves of Grass by Walt Whitman.epub')), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'leaves-metadata.torrent')), | ||
parsedTorrent: parseTorrent(readFileSync(join(__dirname, 'fixtures', 'leaves-metadata.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(readFileSync(join(__dirname, 'fixtures', 'leaves-metadata.torrent')))) | ||
content: fs.readFileSync(join(__dirname, 'fixtures', 'Leaves of Grass by Walt Whitman.epub')), | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'leaves-metadata.torrent')), | ||
parsedTorrent: parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'leaves-metadata.torrent'))), | ||
magnetURI: parseTorrent.toMagnetURI(parseTorrent(fs.readFileSync(join(__dirname, 'fixtures', 'leaves-metadata.torrent')))) | ||
}, | ||
@@ -92,3 +92,3 @@ | ||
torrentPath: join(__dirname, 'fixtures', 'corrupt.torrent'), | ||
torrent: readFileSync(join(__dirname, 'fixtures', 'corrupt.torrent')) | ||
torrent: fs.readFileSync(join(__dirname, 'fixtures', 'corrupt.torrent')) | ||
}, | ||
@@ -95,0 +95,0 @@ |
{ | ||
"name": "webtorrent-fixtures", | ||
"description": "Sample torrent files for the WebTorrent test suite", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "WebTorrent, LLC", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
580427