webtorrent-fixtures
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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": "*" |
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
582648
+ Added@thaunknown/thirty-two@1.0.5(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedbase64-arraybuffer@1.0.2(transitive)
+ Addedbencode@4.0.0(transitive)
+ Addedbep53-range@2.0.0(transitive)
+ Addedcross-fetch-ponyfill@1.0.3(transitive)
+ Addeddata-uri-to-buffer@4.0.1(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedfetch-blob@3.2.0(transitive)
+ Addedformdata-polyfill@4.0.10(transitive)
+ Addedget-stdin@9.0.0(transitive)
+ Addedmagnet-uri@7.0.5(transitive)
+ Addednode-domexception@1.0.0(transitive)
+ Addednode-fetch@3.3.2(transitive)
+ Addedparse-torrent@11.0.17(transitive)
+ Addeduint8-util@2.2.5(transitive)
+ Addedweb-streams-polyfill@3.3.3(transitive)
- Removedbencode@2.0.3(transitive)
- Removedbep53-range@1.1.1(transitive)
- Removedblob-to-buffer@1.2.9(transitive)
- Removeddecompress-response@4.2.1(transitive)
- Removedget-stdin@7.0.0(transitive)
- Removedmagnet-uri@5.4.0(transitive)
- Removedmimic-response@2.1.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedparse-torrent@7.1.3(transitive)
- Removedrusha@0.8.14(transitive)
- Removedsimple-concat@1.0.1(transitive)
- Removedsimple-get@3.1.1(transitive)
- Removedsimple-sha1@3.1.0(transitive)
- Removedthirty-two@1.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedparse-torrent@^11.0.0