├── .DS_Store ├── .bowerrc ├── .data └── .gitignore ├── .editorconfig ├── .gitignore ├── Readme.md ├── app.js ├── bin └── webseed ├── bower.json ├── cache └── .gitignore ├── config ├── allowedDomains.js ├── config.js ├── index.js ├── localStorage.js └── memoryStorage.js ├── index.js ├── lib ├── TorrentFileCache.js ├── __test__ │ └── isAllowedUrlDomain.js ├── createTorrent.js ├── isAllowedUrlDomain.js ├── magnet2torrent.js ├── parseTorrent.js ├── progress.js ├── sendTorrentFile.js ├── sendTorrentFileFromInfoHash.js ├── sendTorrentFileFromPeers.js └── webseed.js ├── middleware ├── markdown.js └── torrent │ ├── __test__ │ └── torrentFilterMiddleware.test.js │ ├── torrent-blacklist.txt │ └── torrentFilterMiddleware.js ├── package-lock.json ├── package.json ├── pm2.json ├── public ├── css │ ├── github-markdown.css │ └── style.css ├── file │ └── .gitignore ├── images │ ├── .DS_Store │ ├── .gitignore │ ├── favicon-16x16.png │ └── favicon.ico ├── test.html ├── torrent │ └── .gitignore └── videos │ └── infinite-prism.mp4 ├── routes ├── file │ ├── file.js │ └── index.js ├── index.js ├── torrent │ ├── index.js │ └── torrent.js └── url │ ├── index.js │ └── url.js ├── storage ├── __test__ │ ├── localStorage.test.js │ └── memoryStorage.test.js ├── localStorage.js ├── memoryStorage.js └── serializer.js └── yarn.lock /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seedess/webseed/2077e11aed460a746e2415beba20209d8c993aa4/.DS_Store -------------------------------------------------------------------------------- /.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "public/components", 3 | "json": "bower.json" 4 | } 5 | -------------------------------------------------------------------------------- /.data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | public/components 3 | .sass-cache 4 | npm-debug.log -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # Seedess Webseed Server 2 | 3 | Open Source P2P Video Streaming BitTorrent Server used by [Seedess.com](https://seedess.com) 4 | 5 | ## Read First! 6 | 7 | Seedess Webseed Server 8 | ([GitHub Repo](https://github.com/Seedess/webseed)) uses [BitTorrent technology](https://en.wikipedia.org/wiki/BitTorrent) in a novel way. It creates a secure private P2P network authenticated by 3rd party apps to secure users. It limits video streaming to content available to that within the "domain" or CDNs of the private P2P network. This secures the network from sharing of content not authorized by that domain. 9 | 10 | Seedess is an aim to change the way BitTorrent is viewed - as a secure and efficient P2P video streaming technology. 11 | 12 | ## WebSeed 13 | 14 | Webseed allows a BitTorrent network to serve files from a server. 15 | 16 | ## Private BitTorrent Networks 17 | 18 | A Private BitTorrent Network allows companies to leverage the BitTorrent technology in a secure, private closed network to distribute video to their viewers. 19 | 20 | ## Intoduction 21 | 22 | Seedess WebSeed Server streams videos into your private BitTtorrent network. 23 | 24 | Traditional BitTorrent is only as effective as the number of "seeds" (peers sharing files) into the network thus not feasible for corporate video streamin networks. 25 | 26 | Seedess creates a network where video files are always available and streamed from the fastest source. That source is usually another viewer (peer) or a CDN (cloudflare, amazon, google cloud etc.) or a cached copy on your server. 27 | 28 | This effectively creates an efficient and secure video streaming network topology while reducing your video streaming bandwidth by up to 70%. 29 | 30 | ## Reducing video streaming bandwidth by 70% 31 | 32 | The major portion of the video streaming is done over P2P while the initial connections are made to your video streaming server or CDN to seed the network with the video stream. 33 | 34 | Imagine there are 1000 simultaneous viewers of your 4K video. Traditionally you would have 1000 streams to your video streaming server. This would be very inefficient and costly. By using BitTorrent for 70% of the videos, you would only be streaming to 300 viewers. These viewers then stream to the other 700 viewers over BitTorrent. This is efficient and cost effective in comparison. 35 | 36 | In most cases, a users upload speed is higher than their download speed. This is because the upload link is hardly utilized. Given this a user can utilize this higher speed link to stream more video data then they receive. 37 | 38 | Even the most widely distributed CDN cannot be as efficient as a P2P network. If you are on the same wifi connection as another peer you can use up to the limit of the wifi network speed! This is because your connection is over the local network instead of the broad internet. P2P ensures you get the fastest route to the video stream. 39 | 40 | ## Security and Authentication 41 | 42 | BitTorrent itself is a very secure technology integrity wise. Videos stream integrity is created by a secure encryption that matches each piece of data with a signature (cryptographic hash). The video piece is only shown to the viewer if it is deemed authentic. 43 | 44 | The P2P network created by Seedess requires valid SSL certificates for the domains where videos are served. All communication with these domains is done via secure SSL. 45 | 46 | In order to make the network private see the section on "Private Server Authentication". 47 | 48 | ## Install 49 | 50 | Node.js is required on the server 51 | 52 | ``` 53 | git clone git@github.com:Seedess/webseed.git 54 | cd webseed 55 | ``` 56 | 57 | ## Start 58 | 59 | Start with default options 60 | 61 | ``` 62 | npm start 63 | ``` 64 | 65 | ## Production 66 | 67 | Start with setting host (public interface) and port (http port) 68 | 69 | ``` 70 | sudo HOST=0.0.0.0 PORT=80 npm start 71 | ``` 72 | 73 | Or alternatively use the default settings and create a reverse proxy to serve to the internet. eg: [Nginx reverse proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) 74 | 75 | # API 76 | 77 | ## API Variables 78 | 79 | Input variables 80 | 81 | * `{infoHash}` - The hash of the torrent. Found in the magnet and can also be found by querying your server. 82 | * `{fileName}` - The name of a specific file. Found by the directory listing for a torrent. 83 | * `{url}` - The full absolute URL to a video file 84 | 85 | Response variables 86 | 87 | * `{torrentFile}` - The `.torrent` file containing information on downloading a torrent and the piece index. 88 | * `{videoStream}` - HTTP video stream supporting range requests 89 | 90 | Input and Response variables 91 | 92 | * `{magnet}` - The magnet URL for a torrent. It contains information on downloading this torrent (without piece index). 93 | 94 | ## API Routes 95 | 96 | ### Torrent (.torrent) 97 | 98 | The `.torrent` file from `{infoHash}` 99 | 100 | * GET - `http://localhost:8002/torrent/{infoHash}.torrent` 101 | * Returns `{torrentFile}` 102 | 103 | The `.torrent` file from `{url}`. Note the `domain` must be one approved by configuration `./config/allowedDomains.json` 104 | 105 | * GET - `http://localhost:8002/torrent/url/{url}` 106 | * Returns `{torrentFile}` 107 | 108 | ### Directory 109 | 110 | Directory listing of files in a torrent 111 | 112 | * GET - `http://localhost:8002/file/{infoHash}` 113 | * Returns HTML `{fileList}` 114 | 115 | Directory listing of files in a torrent (JSON) 116 | 117 | * GET - `http://localhost:8002/file/{infoHash}?json=1` 118 | * Returns JSON `{fileList}` 119 | 120 | ### File 121 | 122 | Stream a video file 123 | 124 | * GET - `http://localhost:8002/file/{infoHash}/{fileName}` 125 | * Returns `{videoStream}` 126 | 127 | ## Private Server Authentication 128 | 129 | You can create a custom private server in your own app by using `app.js`. 130 | 131 | Seedess exposes the express app in `app.js` which is used to start the server. You can hook into the app using [express middleware](https://expressjs.com/en/guide/using-middleware.html). 132 | 133 | * Seedess authentication hook is for hooking into your 3rd party authentication. Not the other way around. 134 | * Seedess then uses your existing authentication to privatize the video stream and P2P network to authenticated users. 135 | 136 | This example checks the `token` http header or GET query. Searches the database for the user session with that token. 137 | 138 | Your implementation may vary. 139 | 140 | > In this example we assume you cloned the git repository to a folder `webseed`. 141 | 142 | ``` 143 | const app = require('./webseed/app'); 144 | 145 | const NODE_ENV = process.env.NODE_ENVIRONMENT 146 | const PORT = process.env.PORT || 8002 147 | const HOST = process.env.HOST || 'localhost' 148 | 149 | // sample the authentication hook 150 | app.use(async function authentication(req, res, next) { 151 | const token = req.header.token || req.query.token 152 | // change to your authentication mechanism 153 | const user = await Session.findOne({ where: { token }}) 154 | if (user) next() 155 | else next(new Error('Not authorized')) 156 | }) 157 | 158 | // necessary initializations 159 | app.addRoutes() 160 | app.catch404() 161 | app.catchErrors() 162 | 163 | // start the server 164 | app.listen(PORT, HOST, function() { 165 | console.log('Seedess server listening at http://' + HOST + ':' + PORT); 166 | }); 167 | ``` 168 | 169 | ### JWT based authentication 170 | 171 | In your external app you need to create a signed token for each user. 172 | 173 | ``` 174 | const jwt = require("jsonwebtoken"); 175 | 176 | const SECRET = process.env.SECRET || 'iloveyouniverse' 177 | const hourSecs = 60 * 60 178 | 179 | const data = { userId: 'foo', userName: 'bar' } 180 | const token = jwt.sign(data, SECRET, { expiresIn: hourSecs }) 181 | ``` 182 | 183 | When querying Seedess WebSeed Server send your token in the `token` HTTP header or GET query. 184 | 185 | Eg: `http://localhost:8002/?token=foo` 186 | 187 | Hook into the authentication process: 188 | 189 | ``` 190 | const jwt = require("jsonwebtoken"); 191 | const app = require('./webseed/app'); 192 | 193 | const NODE_ENV = process.env.NODE_ENVIRONMENT 194 | const PORT = process.env.PORT || 8002 195 | const HOST = process.env.HOST || 'localhost' 196 | 197 | const SECRET = process.env.SECRET || 'iloveyouniverse' 198 | const hourSecs = 60 * 60 199 | 200 | // sample JWT authentication hook 201 | app.use(function authentication(req, res, next) { 202 | const token = req.header.token || req.query.token 203 | const data = jwt.verify(token, SECRET) 204 | if (!data.userId) { 205 | next(new Error('Not authorized')) 206 | } else { 207 | req.session = data 208 | next() 209 | } 210 | }) 211 | 212 | // necessary initializations 213 | app.addRoutes() 214 | app.catch404() 215 | app.catchErrors() 216 | 217 | // start the server 218 | app.listen(PORT, HOST, function() { 219 | console.log('Seedess server listening at http://' + HOST + ':' + PORT); 220 | }); 221 | ``` -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var path = require('path'); 3 | var favicon = require('serve-favicon'); 4 | var logger = require('morgan'); 5 | var cookieParser = require('cookie-parser'); 6 | var bodyParser = require('body-parser'); 7 | var debug = require('debug')('seedess:server') 8 | 9 | var app = express(); 10 | 11 | app.set('env', process.env.NODE_ENV || 'development') 12 | debug('env', app.get('env')) 13 | 14 | // cors 15 | app.use(function(req, res, next) { 16 | const origin = req.headers.origin || '*' 17 | debug('Sending cors headers', origin) 18 | res.setHeader('Access-Control-Allow-Origin', origin) 19 | if (req.method === 'OPTIONS' && req.headers['access-control-request-headers']) { 20 | res.setHeader('Access-Control-Allow-Methods', 'POST, GET, OPTIONS') 21 | res.setHeader( 22 | 'Access-Control-Allow-Headers', 23 | req.headers['access-control-request-headers'] 24 | ) 25 | return res.end() 26 | } 27 | next(); 28 | }); 29 | 30 | app.use(favicon(__dirname + '/public/images/favicon.ico')); 31 | app.use(logger('dev')); 32 | app.use(bodyParser.json()); 33 | app.use(bodyParser.urlencoded({ 34 | extended: true 35 | })); 36 | app.use(cookieParser()); 37 | app.use((req, res, next) => { 38 | res.header('Accept-Ranges', 'bytes') 39 | next() 40 | }) 41 | app.use(express.static(path.join(__dirname, 'public'))); 42 | 43 | /** 44 | * add routes 45 | */ 46 | app.addRoutes = () => { 47 | app.use('/', require('./routes/index')); 48 | app.use('/torrent', require('./routes/torrent')); 49 | app.use('/file', require('./routes/file')); 50 | app.use('/url', require('./routes/url')) 51 | } 52 | 53 | /** 54 | * catch 404 and forward to error handler 55 | */ 56 | app.catch404 = () => { 57 | app.use(function(req, res, next) { 58 | debug('404 Error') 59 | var err = new Error('Not Found'); 60 | err.status = 404; 61 | next(err); 62 | }); 63 | } 64 | 65 | /** 66 | * in production error handler no stacktraces leaked to user 67 | */ 68 | app.catchErrors = () => { 69 | app.use(function(error, req, res, next) { 70 | error = error || {} 71 | const { status, message, stack } = error 72 | error.status = error.status || 500; 73 | const env = app.get('env') 74 | 75 | debug('Error', env, error) 76 | res.status(error.status || 500) 77 | if (env === 'development') { 78 | res.json({ error: { status, message, stack } }) 79 | } else { 80 | res.json({ error: { status, message } }) 81 | } 82 | }); 83 | } 84 | 85 | 86 | module.exports = app; 87 | -------------------------------------------------------------------------------- /bin/webseed: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../index'); 3 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "torrent-web-seed", 3 | "version": "0.0.1", 4 | "ignore": [ 5 | "**/.*", 6 | "node_modules", 7 | "components" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /config/allowedDomains.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | "localhost", 3 | "seedess.com", 4 | "cdn.seedess.com" 5 | ] -------------------------------------------------------------------------------- /config/config.js: -------------------------------------------------------------------------------- 1 | const configs = { 2 | localStorage: require('./localStorage'), 3 | memoryStorage: require('./memoryStorage'), 4 | allowedDomains: require('./allowedDomains') 5 | } 6 | 7 | /** 8 | * Sets the global configuration and returns it 9 | */ 10 | module.exports = function config(overrides) { 11 | if (overrides) { 12 | Object.keys(overrides).forEach(key => { 13 | Object.assign(configs[key], overrides[key]) 14 | }) 15 | } 16 | return configs 17 | } -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./config') -------------------------------------------------------------------------------- /config/localStorage.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../storage/localStorage') -------------------------------------------------------------------------------- /config/memoryStorage.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../storage/memoryStorage') -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const app = require('./app'); 2 | const { torrentFilterMiddleware } = require('./middleware/torrent/torrentFilterMiddleware') 3 | 4 | const PORT = process.env.PORT || 8002 5 | const HOST = process.env.HOST || 'localhost' 6 | 7 | // blacklist torrents 8 | app.use(torrentFilterMiddleware) 9 | 10 | // necessary initializations 11 | app.addRoutes() 12 | app.catch404() 13 | app.catchErrors() 14 | 15 | const server = app.listen(PORT, HOST, function() { 16 | const { address, port } = HOST === 'localhost' 17 | ? { address: 'localhost', port: PORT } 18 | : server.address() 19 | console.log('Seedess server listening at http://' + address + ':' + port); 20 | }); -------------------------------------------------------------------------------- /lib/TorrentFileCache.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs') 2 | const path = require('path') 3 | const configs = require('../config')() 4 | const localStorage = configs.localStorage() 5 | const parseTorrent = require('../lib/parseTorrent') 6 | const memoryStorage = configs.memoryStorage() 7 | const createTorrent = require('../lib/createTorrent') 8 | 9 | const FetchStream = require("fetch").FetchStream 10 | 11 | const debug = require('debug')('seedess:webseed:TorrentFileCache') 12 | 13 | module.exports = class TorrentFileCache { 14 | 15 | constructor(cacheDirectory) { 16 | this.cacheDirectory = cacheDirectory || path.resolve(__dirname + '/../cache/torrent') 17 | } 18 | 19 | _getCachePath(infoHash) { 20 | return path.resolve(this.cacheDirectory + '/' + infoHash + '.torrent') 21 | } 22 | 23 | /** 24 | * Retrieve cached .torrent file given it's infoHash 25 | * @param {string} infoHash 26 | * @return {Promise} 27 | */ 28 | async getTorrentFileByInfoHash(infoHash) { 29 | debug('getTorrentFileByInfoHash', infoHash) 30 | if (infoHash.length != 40) { 31 | cb(new Error('Invalid Infohash length')) 32 | } 33 | const path = this._getCachePath(infoHash) 34 | debug('Requesting torrent file: ', infoHash, path) 35 | return new Promise(resolve => { 36 | const exists = fs.existsSync(path) 37 | resolve(exists ? fs.readFileSync(path) : null) 38 | }) 39 | } 40 | 41 | /** 42 | * Write torrent file to disk indexed by infoHash 43 | * @param {string} infoHash 44 | * @param {string|Buffer} torrent 45 | * @return {Promise} path 46 | */ 47 | async setTorrentFileByInfoHash(infoHash, torrent) { 48 | debug('setTorrentFileByInfoHash', infoHash, torrent) 49 | if (infoHash.length != 40) { 50 | cb(new Error('Invalid Infohash length')) 51 | } 52 | const path = this._getCachePath(infoHash) 53 | return new Promise((resolve, reject) => { 54 | fs.writeFile(path, torrent, error => { 55 | if (error) reject(error) 56 | resolve(path) 57 | }) 58 | }) 59 | } 60 | 61 | /** 62 | * Retrieve cached .torrent file given it's url 63 | * @param {string} url 64 | * @return {Promise} 65 | */ 66 | async getTorrentFileByUrl(url) { 67 | debug('getTorrentFileByUrl', url) 68 | const infoHash = await localStorage.getItem('url:infoHash:' + url) 69 | return infoHash ? this.getTorrentFileByInfoHash(infoHash) : null 70 | } 71 | 72 | /** 73 | * Write torrent file to disk indexed by url -> infoHash 74 | * @param {string} url 75 | * @param {string|Buffer} torrent 76 | * @return {Promise} path 77 | */ 78 | async setTorrentFileByUrl(url, torrent) { 79 | debug('setTorrentFileByUrl', url, torrent) 80 | const { infoHash } = parseTorrent(torrent) 81 | await localStorage.setItem('url:infoHash:' + url, infoHash) 82 | return this.setTorrentFileByInfoHash(infoHash, torrent) 83 | } 84 | 85 | /** 86 | * Create torrent file from url 87 | * @note Ensures a single process in memory 88 | * @param {string} url 89 | * @param {any} torrentOpts 90 | * @return {Promise} path 91 | */ 92 | async createTorrentFileFromUrl(url, torrentOpts) { 93 | debug('createTorrentFileFromUrl', url, torrentOpts) 94 | 95 | // ensure we re-use existing process task for same url 96 | const existingProcess = await memoryStorage.getItem('url:torrent:p:' + url) 97 | if (existingProcess) return existingProcess 98 | 99 | const name = url.split('/').pop() 100 | const defaultOpts = { name, urlList: [ url ], pieceLength: 1048576 } 101 | torrentOpts = Object.assign(defaultOpts, torrentOpts) 102 | 103 | const processPromise = new Promise((resolve, reject) => { 104 | debug('Fetching file stream from', url) 105 | const stream = new FetchStream(url) 106 | createTorrent(stream, torrentOpts, (err, torrent) => { 107 | if (err) return reject(err) 108 | // save torrentInfo in parallel 109 | this.setTorrentFileByUrl(url, torrent) 110 | resolve(torrent) 111 | }) 112 | }) 113 | 114 | memoryStorage.setItem('url:torrent:p:' + url, processPromise) 115 | 116 | return processPromise 117 | } 118 | 119 | } -------------------------------------------------------------------------------- /lib/__test__/isAllowedUrlDomain.js: -------------------------------------------------------------------------------- 1 | const assert = require('assert'); 2 | const isAllowedUrlDomain = require('../isAllowedUrlDomain') 3 | 4 | describe('isAllowedUrlDomain', () => { 5 | 6 | it ('will not match different domain', async () => { 7 | const url = 'https://cdn.seedess.com/video.mp4' 8 | const test = isAllowedUrlDomain(url, ['foo', 'bar']) 9 | assert.ok(!test) 10 | }) 11 | 12 | it ('will not match sub domain', async () => { 13 | const url = 'https://cdn.seedess.com/video.mp4' 14 | const test = isAllowedUrlDomain(url, ['foo', 'seedess.com']) 15 | assert.ok(!test) 16 | }) 17 | 18 | it ('matches complete domain', async () => { 19 | const url = 'https://cdn.seedess.com/video.mp4' 20 | const test = isAllowedUrlDomain(url, ['foo', 'cdn.seedess.com']) 21 | assert.ok(test) 22 | }) 23 | 24 | it ('matches sub domain pattern', async () => { 25 | const url = 'https://cdn.seedess.com/video.mp4' 26 | const test = isAllowedUrlDomain(url, ['foo', '*.seedess.com']) 27 | assert.ok(test) 28 | }) 29 | 30 | it ('matches glob * pattern', async () => { 31 | const url = 'https://cdn.seedess.com/video.mp4' 32 | const test = isAllowedUrlDomain(url, ['foo', '*']) 33 | assert.ok(test) 34 | }) 35 | 36 | }) -------------------------------------------------------------------------------- /lib/createTorrent.js: -------------------------------------------------------------------------------- 1 | 2 | const createTorrent = require('create-torrent') 3 | 4 | module.exports = createTorrent -------------------------------------------------------------------------------- /lib/isAllowedUrlDomain.js: -------------------------------------------------------------------------------- 1 | const minimatch = require("minimatch") 2 | const debug = require('debug')('seedess:webseed:isAllowedUrlDomain') 3 | 4 | // polyfill URL 5 | if (typeof URL === 'undefined') { 6 | URL = function(url) { return require('url').parse(url) } 7 | } 8 | 9 | /** 10 | * Tests the url domain matches with a list of domain|pattern 11 | * @param {string} url 12 | * @param {Array} [domains] 13 | */ 14 | module.exports = function isAllowedUrlDomain(url, allowedDomains) { 15 | const urlInfo = new URL(url) 16 | debug('isAllowedUrlDomain', urlInfo, allowedDomains) 17 | return allowedDomains.find(pattern => { 18 | return pattern === urlInfo.hostname 19 | || minimatch(urlInfo.hostname, pattern, {matchBase: true}) 20 | }) 21 | } -------------------------------------------------------------------------------- /lib/magnet2torrent.js: -------------------------------------------------------------------------------- 1 | var WebTorrent = require('webtorrent') 2 | var store = require('memory-chunk-store') 3 | 4 | module.exports = function magnet2torrent(magnet, callback) { 5 | try { 6 | var client = new WebTorrent() 7 | client.add(magnet, {store: store}, onTorrent) 8 | } catch(err) { 9 | callback(err) 10 | } 11 | 12 | function onTorrent(torrent) { 13 | var file = torrent.torrentFile 14 | callback(null, file) 15 | console.log('Destroying torrent') 16 | torrent.swarm.destroy() 17 | torrent.destroy() 18 | client.destroy() 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /lib/parseTorrent.js: -------------------------------------------------------------------------------- 1 | 2 | const parseTorrent = require('parse-torrent') 3 | 4 | module.exports = parseTorrent -------------------------------------------------------------------------------- /lib/progress.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var prettyBytes = require('pretty-bytes') 3 | var cliBuffer = require('./cliBuffer') 4 | var cliBuf = new cliBuffer() 5 | 6 | cliBuf.line('') 7 | var totalProgressLine = cliBuf.line('Starting Torrents..') 8 | cliBuf.line('') 9 | 10 | function torrenProgress(client, torrent) { 11 | var torrentFileName = path.basename(torrent.name, path.extname(torrent.name)) + '.torrent' 12 | var progressLine = cliBuf.line() 13 | 14 | // todo: Update speed via single setInterval to run for all torrents 15 | function updateSpeed () { 16 | var progress = (100 * torrent.progress).toFixed(1) 17 | var progressTotal = 0 18 | client.torrents.forEach(function(torrent) { 19 | progressTotal += torrent.progress 20 | }) 21 | progressTotal = (100 * progressTotal/client.torrents.length).toFixed(1) 22 | 23 | if (!opts.q) { 24 | 25 | totalProgressLine.update( 26 | 'Active Torrents: ' + client.torrents.length + ' ' + 27 | 'Progress: ' + progressTotal + '% ' + 28 | 'Download speed: ' + prettyBytes(client.downloadSpeed) + '/s ' + 29 | 'Upload speed: ' + prettyBytes(client.uploadSpeed) + '/s') 30 | 31 | progressLine.update( 32 | 'Torrent Name: "' + (torrentFileName).replace(/[^a-z0-9\-\.\+]/ig, ' ') + '" ' + 33 | 'Magnet: ' + torrent.infoHash + ' ' + 34 | 'Peers:' + torrent.swarm.wires.length + ' ' + 35 | 'Progress: ' + progress + '% ' + 36 | 'Download speed: ' + prettyBytes(torrent.downloadSpeed) + '/s ' + 37 | 'Upload speed: ' + prettyBytes(torrent.uploadSpeed) + '/s' 38 | ) 39 | } 40 | } 41 | 42 | updateSpeed() 43 | setInterval(updateSpeed, 5000) 44 | } 45 | 46 | module.exports = torrenProgress -------------------------------------------------------------------------------- /lib/sendTorrentFile.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sends the torrent file as attachment 3 | * @param {Expresss.Response} res 4 | * @param {object} torrentInfo (from parse-torrent) 5 | * @param {Blob|Stream} torrent .torrent file 6 | */ 7 | module.exports = function sendTorrentFile(res, torrentInfo, torrent, { format, filename }) { 8 | if (format === 'json') { 9 | const json = { ...torrentInfo } 10 | delete json.infoBuffer 11 | delete json.infoHashBuffer 12 | json.info.name = json.info.name.toString() 13 | delete json.info.pieces 14 | return res.json(json) 15 | } 16 | res.header("content-disposition", 'attachment; filename="' + (filename || torrentInfo.infoHash) + '.torrent"') 17 | res.send(torrent) 18 | } -------------------------------------------------------------------------------- /lib/sendTorrentFileFromInfoHash.js: -------------------------------------------------------------------------------- 1 | 2 | const fs = require('fs') 3 | const sendTorrentFileFromPeers = require('./sendTorrentFileFromPeers') 4 | const sendTorrentFile = require('./sendTorrentFile') 5 | const debug = require('debug')('seedess:webseed:torrentFileFromInfoHash') 6 | 7 | module.exports = function sendTorrentFileFromInfoHash(res, infoHash) { 8 | const path = './cache/torrent/' + infoHash + '.torrent' 9 | 10 | debug('Requesting torrent file: ', infoHash + '.torrent') 11 | 12 | if (infoHash.length != 40) { 13 | return next(new Error('Invalid Infohash length')) 14 | } 15 | 16 | fs.access(path, fs.R_OK, function(err) { 17 | if (!err) { 18 | sendTorrentFile(res, { infoHash }, fs.createReadStream(path)) 19 | } else { 20 | sendTorrentFileFromPeers(infoHash, res, path) 21 | } 22 | }) 23 | } -------------------------------------------------------------------------------- /lib/sendTorrentFileFromPeers.js: -------------------------------------------------------------------------------- 1 | var magnet2torrent = require('../lib/magnet2torrent') 2 | const debug = require('debug')('seedess:webseed:sendTorrentFileFromPeers') 3 | 4 | /** 5 | * Retrieves torrent info from bitTorrent and sends to HTTP Response 6 | * @note this is slow and can fail if no peers are available 7 | * @param {string} infoHash 8 | * @param {express.Response} res 9 | */ 10 | module.exports = function sendTorrentFileFromPeers(infoHash, res, path) { 11 | debug('sendTorrentFileFromPeers with magnet2torrent', infoHash) 12 | magnet2torrent(infoHash, function(err, torrentFile) { 13 | debug('magnet2torrent callback', { infoHash, err, torrentFile }) 14 | if (err) { 15 | return next(err) 16 | } 17 | debug('Torrent file received from peer metadata: ', torrentFile) 18 | fs.writeFile(path, torrentFile, function(err) { 19 | if (err) { 20 | debug('Error writing torrent file to cache ' + path) 21 | } 22 | }) 23 | res.header("content-disposition", 'attachment; filename="' + infoHash + '.torrent"') 24 | res.send(torrentFile) 25 | }) 26 | } -------------------------------------------------------------------------------- /lib/webseed.js: -------------------------------------------------------------------------------- 1 | var debug = require('debug')('torrent-webseed:webseed') 2 | var mime = require('mime') 3 | var pump = require('pump') 4 | var rangeParser = require('range-parser') 5 | 6 | function getFileByPath(torrent, path) { 7 | for (let file of torrent.files) { 8 | if (file.path == path) { 9 | return file 10 | } 11 | } 12 | } 13 | 14 | function webSeed (torrent, path, req, res) { 15 | 16 | debug('webseed: req received for torrent webseed ' + torrent.name) 17 | 18 | // Allow CORS requests to specify arbitrary headers, e.g. 'Range', 19 | // by responding to the OPTIONS preflight request with the specified 20 | // origin and requested headers. 21 | if (req.method === 'OPTIONS' && req.headers['access-control-request-headers']) { 22 | res.setHeader('Access-Control-Allow-Methods', 'POST, GET, OPTIONS') 23 | res.setHeader( 24 | 'Access-Control-Allow-Headers', 25 | req.headers['access-control-request-headers'] 26 | ) 27 | res.setHeader('Access-Control-Max-Age', '1728000') 28 | return res.end() 29 | } 30 | 31 | if (req.headers.origin) { 32 | res.setHeader('Access-Control-Allow-Origin', req.headers.origin) 33 | } 34 | 35 | if (path === '/favicon.ico') return res.end() 36 | 37 | if (torrent.ready) { 38 | debug('Torrent ready', path, torrent.infoHash) 39 | onReady() 40 | } 41 | else { 42 | debug('Torrent NOT ready, listen for onReady', path) 43 | torrent.once('ready', onReady) 44 | } 45 | 46 | function onReady () { 47 | 48 | debug('Torrent metadata ready', path, torrent.infoHash) 49 | 50 | var file = getFileByPath(torrent, path) 51 | 52 | if (!file) { 53 | res.statusCode = 404 54 | return res.end('404 Not Found') 55 | } 56 | 57 | res.setHeader('Accept-Ranges', 'bytes') 58 | res.setHeader('Content-Type', mime.getType(file.name)) 59 | res.statusCode = 200 60 | 61 | // Support DLNA streaming 62 | res.setHeader('transferMode.dlna.org', 'Streaming') 63 | res.setHeader( 64 | 'contentFeatures.dlna.org', 65 | 'DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000' 66 | ) 67 | 68 | var range 69 | if (req.headers.range) { 70 | res.statusCode = 206 71 | // no support for multi-range reqs 72 | range = rangeParser(file.length, req.headers.range)[0] 73 | debug('range %s', JSON.stringify(range)) 74 | res.setHeader( 75 | 'Content-Range', 76 | 'bytes ' + range.start + '-' + range.end + '/' + file.length 77 | ) 78 | res.setHeader('Content-Length', range.end - range.start + 1) 79 | } else { 80 | res.setHeader('Content-Length', file.length) 81 | } 82 | if (req.method === 'HEAD') res.end() 83 | 84 | debug('webseed: pumping to response stream: ', range) 85 | pump(file.createReadStream(range), res) 86 | } 87 | 88 | } 89 | 90 | module.exports = webSeed 91 | -------------------------------------------------------------------------------- /middleware/markdown.js: -------------------------------------------------------------------------------- 1 | const showdown = require('showdown') 2 | const converter = new showdown.Converter() 3 | 4 | module.exports = (req, res, next) => { 5 | res.markdown = markdown => { 6 | const html = ` 7 | 8 | 9 | 24 |
25 | ${converter.makeHtml(markdown)} 26 |
27 | ` 28 | res.send(html) 29 | } 30 | next() 31 | } -------------------------------------------------------------------------------- /middleware/torrent/__test__/torrentFilterMiddleware.test.js: -------------------------------------------------------------------------------- 1 | var { isTorrentInBlacklist, torrentFilterMiddleware } = require('../torrentFilterMiddleware') 2 | var infoHash = 'ec4d759c6105ef49b56a69fdc08dbb8df07a126f' 3 | 4 | /** 5 | * @see https://jestjs.io/docs/tutorial-async 6 | */ 7 | describe('torrentsFileterMiddleware', () => { 8 | 9 | it('Return true when blacklisted', async () => { 10 | expect(await isTorrentInBlacklist(infoHash)).toBe(true) 11 | }) 12 | 13 | it('Middleware calls next', async () => { 14 | await torrentFilterMiddleware({ originalUrl: 'non-blacklisted-infohash' }, null, err => { 15 | expect(err).toEqual(undefined) 16 | }) 17 | }) 18 | 19 | it('Middleware throws when torrent blacklisted', async () => { 20 | await torrentFilterMiddleware({ originalUrl: 'file/' + infoHash }, null, err => { 21 | expect(err).toEqual(new Error('Torrent is blacklisted')) 22 | }) 23 | }) 24 | }) -------------------------------------------------------------------------------- /middleware/torrent/torrent-blacklist.txt: -------------------------------------------------------------------------------- 1 | ec4d759c6105ef49b56a69fdc08dbb8df07a126f 2 | -------------------------------------------------------------------------------- /middleware/torrent/torrentFilterMiddleware.js: -------------------------------------------------------------------------------- 1 | var debug = require('debug')('seedess:middleware:torrentFilter') 2 | 3 | /** 4 | * Blacklist of torrents by infoHash in each line of file 5 | */ 6 | var blacklistFile = require('path').join(__dirname, 'torrent-blacklist.txt') 7 | async function isTorrentInBlacklist(infoHash) { 8 | return new Promise(async (resolve) => { 9 | var readInterface = require('readline').createInterface({ 10 | input: require('fs').createReadStream(blacklistFile), 11 | console: false 12 | }); 13 | readInterface.on('line', line => { 14 | if (line === infoHash) resolve(true) 15 | }) 16 | readInterface.on('close', () => { 17 | resolve(false) 18 | }) 19 | }) 20 | } 21 | 22 | function matchInfoHashFromUrl(url) { 23 | const matches = url.match(/[a-f0-9]{40}/) 24 | return matches ? matches[0] : false 25 | } 26 | 27 | 28 | /** 29 | * Torrent blacklist middleware 30 | * @throws When torrent is blacklisted 31 | * @returns {next} when not blacklisted 32 | */ 33 | async function torrentFilterMiddleware(req, res, next) { 34 | var url = req.originalUrl 35 | var infoHash = matchInfoHashFromUrl(url) 36 | debug('torrentFilterMiddleware', { infoHash }) 37 | if (infoHash) { 38 | var isBlacklist = await isTorrentInBlacklist(infoHash) 39 | debug('torrentFilterMiddleware', { infoHash, isBlacklist }) 40 | if (isBlacklist) { 41 | return next(new Error('Torrent is blacklisted')) 42 | } 43 | } 44 | next() 45 | } 46 | 47 | module.exports = { torrentFilterMiddleware, isTorrentInBlacklist } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "torrent-web-seed", 3 | "version": "0.0.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "accepts": { 8 | "version": "1.3.7", 9 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 10 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 11 | "requires": { 12 | "mime-types": "~2.1.24", 13 | "negotiator": "0.6.2" 14 | } 15 | }, 16 | "addr-to-ip-port": { 17 | "version": "1.5.1", 18 | "resolved": "https://registry.npmjs.org/addr-to-ip-port/-/addr-to-ip-port-1.5.1.tgz", 19 | "integrity": "sha512-bA+dyydTNuQtrEDJ0g9eR7XabNhvrM5yZY0hvTbNK3yvoeC73ZqMES6E1cEqH9WPxs4uMtMsOjfwS4FmluhsAA==" 20 | }, 21 | "address": { 22 | "version": "1.1.2", 23 | "resolved": "https://registry.npmjs.org/address/-/address-1.1.2.tgz", 24 | "integrity": "sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA==" 25 | }, 26 | "ansi-colors": { 27 | "version": "3.2.3", 28 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", 29 | "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", 30 | "dev": true 31 | }, 32 | "ansi-regex": { 33 | "version": "3.0.0", 34 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 35 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 36 | "dev": true 37 | }, 38 | "ansi-styles": { 39 | "version": "3.2.1", 40 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 41 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 42 | "dev": true, 43 | "requires": { 44 | "color-convert": "^1.9.0" 45 | } 46 | }, 47 | "anymatch": { 48 | "version": "3.1.1", 49 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", 50 | "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", 51 | "dev": true, 52 | "requires": { 53 | "normalize-path": "^3.0.0", 54 | "picomatch": "^2.0.4" 55 | } 56 | }, 57 | "app-root-path": { 58 | "version": "2.2.1", 59 | "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-2.2.1.tgz", 60 | "integrity": "sha512-91IFKeKk7FjfmezPKkwtaRvSpnUc4gDwPAjA1YZ9Gn0q0PPeW+vbeUsZuyDwjI7+QTHhcLen2v25fi/AmhvbJA==" 61 | }, 62 | "argparse": { 63 | "version": "1.0.10", 64 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 65 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 66 | "dev": true, 67 | "requires": { 68 | "sprintf-js": "~1.0.2" 69 | } 70 | }, 71 | "array-flatten": { 72 | "version": "1.1.1", 73 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 74 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 75 | }, 76 | "balanced-match": { 77 | "version": "1.0.0", 78 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 79 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 80 | }, 81 | "basic-auth": { 82 | "version": "2.0.1", 83 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", 84 | "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", 85 | "requires": { 86 | "safe-buffer": "5.1.2" 87 | }, 88 | "dependencies": { 89 | "safe-buffer": { 90 | "version": "5.1.2", 91 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 92 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 93 | } 94 | } 95 | }, 96 | "bencode": { 97 | "version": "2.0.1", 98 | "resolved": "https://registry.npmjs.org/bencode/-/bencode-2.0.1.tgz", 99 | "integrity": "sha512-2uhEl8FdjSBUyb69qDTgOEeeqDTa+n3yMQzLW0cOzNf1Ow5bwcg3idf+qsWisIKRH8Bk8oC7UXL8irRcPA8ZEQ==", 100 | "requires": { 101 | "safe-buffer": "^5.1.1" 102 | } 103 | }, 104 | "binary-extensions": { 105 | "version": "2.0.0", 106 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", 107 | "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==", 108 | "dev": true 109 | }, 110 | "binary-search": { 111 | "version": "1.3.6", 112 | "resolved": "https://registry.npmjs.org/binary-search/-/binary-search-1.3.6.tgz", 113 | "integrity": "sha512-nbE1WxOTTrUWIfsfZ4aHGYu5DOuNkbxGokjV6Z2kxfJK3uaAb8zNK1muzOeipoLHZjInT4Br88BHpzevc681xA==" 114 | }, 115 | "biskviit": { 116 | "version": "1.0.1", 117 | "resolved": "https://registry.npmjs.org/biskviit/-/biskviit-1.0.1.tgz", 118 | "integrity": "sha1-A3oM1LcbnjMf2QoRIt4X3EnkIKc=", 119 | "requires": { 120 | "psl": "^1.1.7" 121 | } 122 | }, 123 | "bitfield": { 124 | "version": "3.0.0", 125 | "resolved": "https://registry.npmjs.org/bitfield/-/bitfield-3.0.0.tgz", 126 | "integrity": "sha512-hJmWKucJQfdSkQPDPBKmWogM9s8+NOSzDT9QVbJbjinXaQ0bJKPu/cn98qRWy3PDNWtKw4XaoUP3XruGRIKEgg==" 127 | }, 128 | "bittorrent-dht": { 129 | "version": "9.0.3", 130 | "resolved": "https://registry.npmjs.org/bittorrent-dht/-/bittorrent-dht-9.0.3.tgz", 131 | "integrity": "sha512-6FISjApL62THEMyptDm0kPTAnInBn8Sft3dK/JZcCI07LRIpIP+3Z6gle6xJUhyRVs6K5HmXAtaRatFsOEySOg==", 132 | "requires": { 133 | "bencode": "^2.0.0", 134 | "debug": "^4.1.1", 135 | "inherits": "^2.0.1", 136 | "k-bucket": "^5.0.0", 137 | "k-rpc": "^5.0.0", 138 | "last-one-wins": "^1.0.4", 139 | "lru": "^3.1.0", 140 | "randombytes": "^2.0.5", 141 | "record-cache": "^1.0.2", 142 | "simple-sha1": "^3.0.0" 143 | }, 144 | "dependencies": { 145 | "simple-sha1": { 146 | "version": "3.0.1", 147 | "resolved": "https://registry.npmjs.org/simple-sha1/-/simple-sha1-3.0.1.tgz", 148 | "integrity": "sha512-q7ehqWfHc1VhOm7sW099YDZ4I0yYX7rqyhqqhHV1IYeUTjPOhHyD3mXvv8k2P+rO7+7c8R4/D+8ffzC9BE7Cqg==", 149 | "requires": { 150 | "queue-microtask": "^1.1.2", 151 | "rusha": "^0.8.1" 152 | } 153 | } 154 | } 155 | }, 156 | "bittorrent-peerid": { 157 | "version": "1.3.2", 158 | "resolved": "https://registry.npmjs.org/bittorrent-peerid/-/bittorrent-peerid-1.3.2.tgz", 159 | "integrity": "sha512-3xPhNfklf4xzxFVw9Y7W5dnGNhubVF0r8BK3imIsB6E3aDA4d6WhsceK1Yusos0TiiB9QZrdCsVXVqs26sFMxw==" 160 | }, 161 | "bittorrent-protocol": { 162 | "version": "3.1.1", 163 | "resolved": "https://registry.npmjs.org/bittorrent-protocol/-/bittorrent-protocol-3.1.1.tgz", 164 | "integrity": "sha512-kthSXghQ9DRQ4Lrjr1ceyIeEMeL5x9WiaSrQyR+5Nrr3g9QY6MvDeq+KLQz17R6094iDmT/LgFbQYAPj09/oUA==", 165 | "requires": { 166 | "bencode": "^2.0.0", 167 | "bitfield": "^3.0.0", 168 | "debug": "^4.1.1", 169 | "randombytes": "^2.0.5", 170 | "readable-stream": "^3.0.0", 171 | "speedometer": "^1.0.0", 172 | "unordered-array-remove": "^1.0.2" 173 | }, 174 | "dependencies": { 175 | "readable-stream": { 176 | "version": "3.6.0", 177 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 178 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 179 | "requires": { 180 | "inherits": "^2.0.3", 181 | "string_decoder": "^1.1.1", 182 | "util-deprecate": "^1.0.1" 183 | } 184 | } 185 | } 186 | }, 187 | "bittorrent-tracker": { 188 | "version": "9.14.5", 189 | "resolved": "https://registry.npmjs.org/bittorrent-tracker/-/bittorrent-tracker-9.14.5.tgz", 190 | "integrity": "sha512-Y1ng5r2qGCgDldjd9eYL8Mv1DjCo6eljqC+T6IMcwmYx0h20KNPKTxJkyNT5gaeJkAhM+p+jmhlV7/ty535Txg==", 191 | "requires": { 192 | "bencode": "^2.0.0", 193 | "bittorrent-peerid": "^1.0.2", 194 | "bn.js": "^5.0.0", 195 | "bufferutil": "^4.0.0", 196 | "chrome-dgram": "^3.0.2", 197 | "compact2string": "^1.2.0", 198 | "debug": "^4.0.1", 199 | "ip": "^1.0.1", 200 | "lru": "^3.0.0", 201 | "minimist": "^1.1.1", 202 | "once": "^1.3.0", 203 | "random-iterate": "^1.0.1", 204 | "randombytes": "^2.0.3", 205 | "run-parallel": "^1.1.2", 206 | "run-series": "^1.0.2", 207 | "simple-get": "^3.0.0", 208 | "simple-peer": "^9.0.0", 209 | "simple-websocket": "^8.0.0", 210 | "string2compact": "^1.1.1", 211 | "unordered-array-remove": "^1.0.2", 212 | "utf-8-validate": "^5.0.1", 213 | "ws": "^7.0.0" 214 | } 215 | }, 216 | "blob-to-buffer": { 217 | "version": "1.2.8", 218 | "resolved": "https://registry.npmjs.org/blob-to-buffer/-/blob-to-buffer-1.2.8.tgz", 219 | "integrity": "sha512-re0AIxakF504MgeMtIyJkVcZ8T5aUxtp/QmTMlmjyb3P44E1BEv5x3LATBGApWAJATyXHtkXRD+gWTmeyYLiQA==" 220 | }, 221 | "block-stream2": { 222 | "version": "2.0.0", 223 | "resolved": "https://registry.npmjs.org/block-stream2/-/block-stream2-2.0.0.tgz", 224 | "integrity": "sha512-1oI+RHHUEo64xomy1ozLgVJetFlHkIfQfJzTBQrj6xWnEMEPooeo2fZoqFjp0yzfHMBrgxwgh70tKp6T17+i3g==", 225 | "requires": { 226 | "readable-stream": "^3.4.0" 227 | }, 228 | "dependencies": { 229 | "readable-stream": { 230 | "version": "3.6.0", 231 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 232 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 233 | "requires": { 234 | "inherits": "^2.0.3", 235 | "string_decoder": "^1.1.1", 236 | "util-deprecate": "^1.0.1" 237 | } 238 | } 239 | } 240 | }, 241 | "bn.js": { 242 | "version": "5.1.1", 243 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.1.1.tgz", 244 | "integrity": "sha512-IUTD/REb78Z2eodka1QZyyEk66pciRcP6Sroka0aI3tG/iwIdYLrBD62RsubR7vqdt3WyX8p4jxeatzmRSphtA==" 245 | }, 246 | "body-parser": { 247 | "version": "1.19.0", 248 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 249 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 250 | "requires": { 251 | "bytes": "3.1.0", 252 | "content-type": "~1.0.4", 253 | "debug": "2.6.9", 254 | "depd": "~1.1.2", 255 | "http-errors": "1.7.2", 256 | "iconv-lite": "0.4.24", 257 | "on-finished": "~2.3.0", 258 | "qs": "6.7.0", 259 | "raw-body": "2.4.0", 260 | "type-is": "~1.6.17" 261 | }, 262 | "dependencies": { 263 | "debug": { 264 | "version": "2.6.9", 265 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 266 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 267 | "requires": { 268 | "ms": "2.0.0" 269 | } 270 | } 271 | } 272 | }, 273 | "brace-expansion": { 274 | "version": "1.1.11", 275 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 276 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 277 | "requires": { 278 | "balanced-match": "^1.0.0", 279 | "concat-map": "0.0.1" 280 | } 281 | }, 282 | "braces": { 283 | "version": "3.0.2", 284 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 285 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 286 | "dev": true, 287 | "requires": { 288 | "fill-range": "^7.0.1" 289 | } 290 | }, 291 | "browser-stdout": { 292 | "version": "1.3.1", 293 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 294 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 295 | "dev": true 296 | }, 297 | "browserify-package-json": { 298 | "version": "1.0.1", 299 | "resolved": "https://registry.npmjs.org/browserify-package-json/-/browserify-package-json-1.0.1.tgz", 300 | "integrity": "sha1-mN3oqlxWH9bT/km7qhArdLOW/eo=" 301 | }, 302 | "buffer-alloc": { 303 | "version": "1.2.0", 304 | "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", 305 | "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", 306 | "requires": { 307 | "buffer-alloc-unsafe": "^1.1.0", 308 | "buffer-fill": "^1.0.0" 309 | } 310 | }, 311 | "buffer-alloc-unsafe": { 312 | "version": "1.1.0", 313 | "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", 314 | "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" 315 | }, 316 | "buffer-fill": { 317 | "version": "1.0.0", 318 | "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", 319 | "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=" 320 | }, 321 | "bufferutil": { 322 | "version": "4.0.1", 323 | "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.1.tgz", 324 | "integrity": "sha512-xowrxvpxojqkagPcWRQVXZl0YXhRhAtBEIq3VoER1NH5Mw1n1o0ojdspp+GS2J//2gCVyrzQDApQ4unGF+QOoA==", 325 | "optional": true, 326 | "requires": { 327 | "node-gyp-build": "~3.7.0" 328 | } 329 | }, 330 | "bytes": { 331 | "version": "3.1.0", 332 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 333 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 334 | }, 335 | "camelcase": { 336 | "version": "5.3.1", 337 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 338 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" 339 | }, 340 | "chalk": { 341 | "version": "2.4.2", 342 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 343 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 344 | "dev": true, 345 | "requires": { 346 | "ansi-styles": "^3.2.1", 347 | "escape-string-regexp": "^1.0.5", 348 | "supports-color": "^5.3.0" 349 | }, 350 | "dependencies": { 351 | "supports-color": { 352 | "version": "5.5.0", 353 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 354 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 355 | "dev": true, 356 | "requires": { 357 | "has-flag": "^3.0.0" 358 | } 359 | } 360 | } 361 | }, 362 | "chokidar": { 363 | "version": "3.3.0", 364 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz", 365 | "integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==", 366 | "dev": true, 367 | "requires": { 368 | "anymatch": "~3.1.1", 369 | "braces": "~3.0.2", 370 | "fsevents": "~2.1.1", 371 | "glob-parent": "~5.1.0", 372 | "is-binary-path": "~2.1.0", 373 | "is-glob": "~4.0.1", 374 | "normalize-path": "~3.0.0", 375 | "readdirp": "~3.2.0" 376 | } 377 | }, 378 | "chrome-dgram": { 379 | "version": "3.0.4", 380 | "resolved": "https://registry.npmjs.org/chrome-dgram/-/chrome-dgram-3.0.4.tgz", 381 | "integrity": "sha512-G8rOANSvSRC4hGny/K/ec1gXtNuZGzryFeoev49u0J4g/qws7H25vMKQlbD9izuedFVHwXFTdKQG62Tf/7Cmwg==", 382 | "requires": { 383 | "inherits": "^2.0.1", 384 | "run-series": "^1.1.2" 385 | } 386 | }, 387 | "chrome-dns": { 388 | "version": "1.0.1", 389 | "resolved": "https://registry.npmjs.org/chrome-dns/-/chrome-dns-1.0.1.tgz", 390 | "integrity": "sha512-HqsYJgIc8ljJJOqOzLphjAs79EUuWSX3nzZi2LNkzlw3GIzAeZbaSektC8iT/tKvLqZq8yl1GJu5o6doA4TRbg==", 391 | "requires": { 392 | "chrome-net": "^3.3.2" 393 | } 394 | }, 395 | "chrome-net": { 396 | "version": "3.3.3", 397 | "resolved": "https://registry.npmjs.org/chrome-net/-/chrome-net-3.3.3.tgz", 398 | "integrity": "sha512-11jL8+Ogna8M5TEdyalE8IG6cpaFEU3YcaxAj3YjZKjRM/PeT70pZbrUY+xoGwqiEJZwJE4Td2CvGxUvS9ytKQ==", 399 | "requires": { 400 | "inherits": "^2.0.1" 401 | } 402 | }, 403 | "chunk-store-stream": { 404 | "version": "4.1.0", 405 | "resolved": "https://registry.npmjs.org/chunk-store-stream/-/chunk-store-stream-4.1.0.tgz", 406 | "integrity": "sha512-GjkZ16bFKMFnb8LrGZXAPeRoLXZTLu9ges6LCErJe28bMp6zKLxjWuJ7TYzR0jWq9nwo58hXG3BXZYy66Vze0Q==", 407 | "requires": { 408 | "block-stream2": "^2.0.0", 409 | "readable-stream": "^3.4.0" 410 | }, 411 | "dependencies": { 412 | "readable-stream": { 413 | "version": "3.6.0", 414 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 415 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 416 | "requires": { 417 | "inherits": "^2.0.3", 418 | "string_decoder": "^1.1.1", 419 | "util-deprecate": "^1.0.1" 420 | } 421 | } 422 | } 423 | }, 424 | "cliui": { 425 | "version": "5.0.0", 426 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", 427 | "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", 428 | "dev": true, 429 | "requires": { 430 | "string-width": "^3.1.0", 431 | "strip-ansi": "^5.2.0", 432 | "wrap-ansi": "^5.1.0" 433 | }, 434 | "dependencies": { 435 | "ansi-regex": { 436 | "version": "4.1.0", 437 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 438 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 439 | "dev": true 440 | }, 441 | "string-width": { 442 | "version": "3.1.0", 443 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 444 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 445 | "dev": true, 446 | "requires": { 447 | "emoji-regex": "^7.0.1", 448 | "is-fullwidth-code-point": "^2.0.0", 449 | "strip-ansi": "^5.1.0" 450 | } 451 | }, 452 | "strip-ansi": { 453 | "version": "5.2.0", 454 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 455 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 456 | "dev": true, 457 | "requires": { 458 | "ansi-regex": "^4.1.0" 459 | } 460 | } 461 | } 462 | }, 463 | "color-convert": { 464 | "version": "1.9.3", 465 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 466 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 467 | "requires": { 468 | "color-name": "1.1.3" 469 | } 470 | }, 471 | "color-name": { 472 | "version": "1.1.3", 473 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 474 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 475 | }, 476 | "compact2string": { 477 | "version": "1.4.1", 478 | "resolved": "https://registry.npmjs.org/compact2string/-/compact2string-1.4.1.tgz", 479 | "integrity": "sha512-3D+EY5nsRhqnOwDxveBv5T8wGo4DEvYxjDtPGmdOX+gfr5gE92c2RC0w2wa+xEefm07QuVqqcF3nZJUZ92l/og==", 480 | "requires": { 481 | "ipaddr.js": ">= 0.1.5" 482 | } 483 | }, 484 | "concat-map": { 485 | "version": "0.0.1", 486 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 487 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 488 | }, 489 | "content-disposition": { 490 | "version": "0.5.3", 491 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 492 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 493 | "requires": { 494 | "safe-buffer": "5.1.2" 495 | }, 496 | "dependencies": { 497 | "safe-buffer": { 498 | "version": "5.1.2", 499 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 500 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 501 | } 502 | } 503 | }, 504 | "content-type": { 505 | "version": "1.0.4", 506 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 507 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 508 | }, 509 | "cookie": { 510 | "version": "0.4.0", 511 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 512 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 513 | }, 514 | "cookie-parser": { 515 | "version": "1.4.5", 516 | "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.5.tgz", 517 | "integrity": "sha512-f13bPUj/gG/5mDr+xLmSxxDsB9DQiTIfhJS/sqjrmfAWiAN+x2O4i/XguTL9yDZ+/IFDanJ+5x7hC4CXT9Tdzw==", 518 | "requires": { 519 | "cookie": "0.4.0", 520 | "cookie-signature": "1.0.6" 521 | } 522 | }, 523 | "cookie-signature": { 524 | "version": "1.0.6", 525 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 526 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 527 | }, 528 | "create-torrent": { 529 | "version": "4.4.1", 530 | "resolved": "https://registry.npmjs.org/create-torrent/-/create-torrent-4.4.1.tgz", 531 | "integrity": "sha512-LuoXnCRMKEo3KR3jEbCRpP3Nu2TUhLTlb/axP9+rl+ouhBpxTaHaTTN1bdUS2x2VK3wWyCBl1OZHyHhlRBntWg==", 532 | "requires": { 533 | "bencode": "^2.0.0", 534 | "block-stream2": "^2.0.0", 535 | "filestream": "^5.0.0", 536 | "is-file": "^1.0.0", 537 | "junk": "^3.1.0", 538 | "minimist": "^1.1.0", 539 | "multistream": "^4.0.0", 540 | "once": "^1.3.0", 541 | "piece-length": "^2.0.1", 542 | "readable-stream": "^3.0.2", 543 | "run-parallel": "^1.0.0", 544 | "simple-sha1": "^3.0.0" 545 | } 546 | }, 547 | "debug": { 548 | "version": "4.1.1", 549 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 550 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 551 | "requires": { 552 | "ms": "^2.1.1" 553 | }, 554 | "dependencies": { 555 | "ms": { 556 | "version": "2.1.2", 557 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 558 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 559 | } 560 | } 561 | }, 562 | "decamelize": { 563 | "version": "1.2.0", 564 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 565 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 566 | }, 567 | "decompress-response": { 568 | "version": "4.2.1", 569 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz", 570 | "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==", 571 | "requires": { 572 | "mimic-response": "^2.0.0" 573 | } 574 | }, 575 | "define-properties": { 576 | "version": "1.1.3", 577 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 578 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 579 | "dev": true, 580 | "requires": { 581 | "object-keys": "^1.0.12" 582 | } 583 | }, 584 | "depd": { 585 | "version": "1.1.2", 586 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 587 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 588 | }, 589 | "destroy": { 590 | "version": "1.0.4", 591 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 592 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 593 | }, 594 | "diff": { 595 | "version": "3.5.0", 596 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 597 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 598 | "dev": true 599 | }, 600 | "ee-first": { 601 | "version": "1.1.1", 602 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 603 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 604 | }, 605 | "emoji-regex": { 606 | "version": "7.0.3", 607 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 608 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" 609 | }, 610 | "encodeurl": { 611 | "version": "1.0.2", 612 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 613 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 614 | }, 615 | "encoding": { 616 | "version": "0.1.12", 617 | "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", 618 | "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", 619 | "requires": { 620 | "iconv-lite": "~0.4.13" 621 | } 622 | }, 623 | "end-of-stream": { 624 | "version": "1.4.0", 625 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.0.tgz", 626 | "integrity": "sha1-epDYM+/abPpurA9JSduw+tOmMgY=", 627 | "requires": { 628 | "once": "^1.4.0" 629 | } 630 | }, 631 | "es-abstract": { 632 | "version": "1.17.5", 633 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", 634 | "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", 635 | "dev": true, 636 | "requires": { 637 | "es-to-primitive": "^1.2.1", 638 | "function-bind": "^1.1.1", 639 | "has": "^1.0.3", 640 | "has-symbols": "^1.0.1", 641 | "is-callable": "^1.1.5", 642 | "is-regex": "^1.0.5", 643 | "object-inspect": "^1.7.0", 644 | "object-keys": "^1.1.1", 645 | "object.assign": "^4.1.0", 646 | "string.prototype.trimleft": "^2.1.1", 647 | "string.prototype.trimright": "^2.1.1" 648 | } 649 | }, 650 | "es-to-primitive": { 651 | "version": "1.2.1", 652 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", 653 | "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", 654 | "dev": true, 655 | "requires": { 656 | "is-callable": "^1.1.4", 657 | "is-date-object": "^1.0.1", 658 | "is-symbol": "^1.0.2" 659 | } 660 | }, 661 | "escape-html": { 662 | "version": "1.0.3", 663 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 664 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 665 | }, 666 | "escape-string-regexp": { 667 | "version": "1.0.5", 668 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 669 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 670 | "dev": true 671 | }, 672 | "esprima": { 673 | "version": "4.0.1", 674 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 675 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 676 | "dev": true 677 | }, 678 | "etag": { 679 | "version": "1.8.1", 680 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 681 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 682 | }, 683 | "express": { 684 | "version": "4.17.1", 685 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 686 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 687 | "requires": { 688 | "accepts": "~1.3.7", 689 | "array-flatten": "1.1.1", 690 | "body-parser": "1.19.0", 691 | "content-disposition": "0.5.3", 692 | "content-type": "~1.0.4", 693 | "cookie": "0.4.0", 694 | "cookie-signature": "1.0.6", 695 | "debug": "2.6.9", 696 | "depd": "~1.1.2", 697 | "encodeurl": "~1.0.2", 698 | "escape-html": "~1.0.3", 699 | "etag": "~1.8.1", 700 | "finalhandler": "~1.1.2", 701 | "fresh": "0.5.2", 702 | "merge-descriptors": "1.0.1", 703 | "methods": "~1.1.2", 704 | "on-finished": "~2.3.0", 705 | "parseurl": "~1.3.3", 706 | "path-to-regexp": "0.1.7", 707 | "proxy-addr": "~2.0.5", 708 | "qs": "6.7.0", 709 | "range-parser": "~1.2.1", 710 | "safe-buffer": "5.1.2", 711 | "send": "0.17.1", 712 | "serve-static": "1.14.1", 713 | "setprototypeof": "1.1.1", 714 | "statuses": "~1.5.0", 715 | "type-is": "~1.6.18", 716 | "utils-merge": "1.0.1", 717 | "vary": "~1.1.2" 718 | }, 719 | "dependencies": { 720 | "debug": { 721 | "version": "2.6.9", 722 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 723 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 724 | "requires": { 725 | "ms": "2.0.0" 726 | } 727 | }, 728 | "safe-buffer": { 729 | "version": "5.1.2", 730 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 731 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 732 | } 733 | } 734 | }, 735 | "fetch": { 736 | "version": "1.1.0", 737 | "resolved": "https://registry.npmjs.org/fetch/-/fetch-1.1.0.tgz", 738 | "integrity": "sha1-CoJ58Gvjf58Ou1Z1YKMKSA2lmi4=", 739 | "requires": { 740 | "biskviit": "1.0.1", 741 | "encoding": "0.1.12" 742 | } 743 | }, 744 | "filestream": { 745 | "version": "5.0.0", 746 | "resolved": "https://registry.npmjs.org/filestream/-/filestream-5.0.0.tgz", 747 | "integrity": "sha512-5H3RqSaJp12THfZiNWodYM7TiKfQvrpX+EIOrB1XvCceTys4yvfEIl8wDp+/yI8qj6Bxym8m0NYWwVXDAet/+A==", 748 | "requires": { 749 | "readable-stream": "^3.4.0", 750 | "typedarray-to-buffer": "^3.0.0" 751 | } 752 | }, 753 | "fill-range": { 754 | "version": "7.0.1", 755 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 756 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 757 | "dev": true, 758 | "requires": { 759 | "to-regex-range": "^5.0.1" 760 | } 761 | }, 762 | "finalhandler": { 763 | "version": "1.1.2", 764 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 765 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 766 | "requires": { 767 | "debug": "2.6.9", 768 | "encodeurl": "~1.0.2", 769 | "escape-html": "~1.0.3", 770 | "on-finished": "~2.3.0", 771 | "parseurl": "~1.3.3", 772 | "statuses": "~1.5.0", 773 | "unpipe": "~1.0.0" 774 | }, 775 | "dependencies": { 776 | "debug": { 777 | "version": "2.6.9", 778 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 779 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 780 | "requires": { 781 | "ms": "2.0.0" 782 | } 783 | } 784 | } 785 | }, 786 | "find-up": { 787 | "version": "3.0.0", 788 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 789 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 790 | "dev": true, 791 | "requires": { 792 | "locate-path": "^3.0.0" 793 | } 794 | }, 795 | "flat": { 796 | "version": "4.1.0", 797 | "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", 798 | "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", 799 | "dev": true, 800 | "requires": { 801 | "is-buffer": "~2.0.3" 802 | } 803 | }, 804 | "forwarded": { 805 | "version": "0.1.2", 806 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 807 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 808 | }, 809 | "freelist": { 810 | "version": "1.0.3", 811 | "resolved": "https://registry.npmjs.org/freelist/-/freelist-1.0.3.tgz", 812 | "integrity": "sha1-AGd1UJ85NXAXhNPtL8nxLJ3xurI=" 813 | }, 814 | "fresh": { 815 | "version": "0.5.2", 816 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 817 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 818 | }, 819 | "fs-chunk-store": { 820 | "version": "2.0.1", 821 | "resolved": "https://registry.npmjs.org/fs-chunk-store/-/fs-chunk-store-2.0.1.tgz", 822 | "integrity": "sha512-V9PXz33rhq6E9lFmvmElmLyvEvnSeryU/TzfHnCEIpEU6Y/2Fyc4xEeeneV/pUgKG1mRAKSU+DBtHyO2GQ2EBA==", 823 | "requires": { 824 | "random-access-file": "^2.0.1", 825 | "randombytes": "^2.0.3", 826 | "rimraf": "^3.0.0", 827 | "run-parallel": "^1.1.2", 828 | "thunky": "^1.0.1" 829 | } 830 | }, 831 | "fs.realpath": { 832 | "version": "1.0.0", 833 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 834 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 835 | }, 836 | "fsevents": { 837 | "version": "2.1.2", 838 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.2.tgz", 839 | "integrity": "sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==", 840 | "dev": true, 841 | "optional": true 842 | }, 843 | "function-bind": { 844 | "version": "1.1.1", 845 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 846 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 847 | "dev": true 848 | }, 849 | "get-browser-rtc": { 850 | "version": "1.0.2", 851 | "resolved": "https://registry.npmjs.org/get-browser-rtc/-/get-browser-rtc-1.0.2.tgz", 852 | "integrity": "sha1-u81AyEUaftTvXDc7gWmkCd0dEdk=" 853 | }, 854 | "get-caller-file": { 855 | "version": "2.0.5", 856 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 857 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 858 | "dev": true 859 | }, 860 | "get-stdin": { 861 | "version": "7.0.0", 862 | "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-7.0.0.tgz", 863 | "integrity": "sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ==" 864 | }, 865 | "glob": { 866 | "version": "7.1.6", 867 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 868 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 869 | "requires": { 870 | "fs.realpath": "^1.0.0", 871 | "inflight": "^1.0.4", 872 | "inherits": "2", 873 | "minimatch": "^3.0.4", 874 | "once": "^1.3.0", 875 | "path-is-absolute": "^1.0.0" 876 | } 877 | }, 878 | "glob-parent": { 879 | "version": "5.1.2", 880 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 881 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 882 | "dev": true, 883 | "requires": { 884 | "is-glob": "^4.0.1" 885 | } 886 | }, 887 | "graceful-fs": { 888 | "version": "4.1.11", 889 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", 890 | "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" 891 | }, 892 | "growl": { 893 | "version": "1.10.5", 894 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 895 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 896 | "dev": true 897 | }, 898 | "has": { 899 | "version": "1.0.3", 900 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 901 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 902 | "dev": true, 903 | "requires": { 904 | "function-bind": "^1.1.1" 905 | } 906 | }, 907 | "has-flag": { 908 | "version": "3.0.0", 909 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 910 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 911 | "dev": true 912 | }, 913 | "has-symbols": { 914 | "version": "1.0.1", 915 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", 916 | "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", 917 | "dev": true 918 | }, 919 | "he": { 920 | "version": "1.2.0", 921 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 922 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 923 | "dev": true 924 | }, 925 | "http-errors": { 926 | "version": "1.7.2", 927 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 928 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 929 | "requires": { 930 | "depd": "~1.1.2", 931 | "inherits": "2.0.3", 932 | "setprototypeof": "1.1.1", 933 | "statuses": ">= 1.5.0 < 2", 934 | "toidentifier": "1.0.0" 935 | } 936 | }, 937 | "http-node": { 938 | "version": "github:feross/http-node#342ef8624495343ffd050bd0808b3750cf0e3974", 939 | "from": "github:feross/http-node#webtorrent", 940 | "requires": { 941 | "chrome-net": "^3.3.3", 942 | "freelist": "^1.0.3", 943 | "http-parser-js": "^0.4.3" 944 | } 945 | }, 946 | "http-parser-js": { 947 | "version": "0.4.13", 948 | "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.13.tgz", 949 | "integrity": "sha1-O9bW/ebjFyyTNMOzO2wZPYD+ETc=" 950 | }, 951 | "iconv-lite": { 952 | "version": "0.4.24", 953 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 954 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 955 | "requires": { 956 | "safer-buffer": ">= 2.1.2 < 3" 957 | } 958 | }, 959 | "immediate-chunk-store": { 960 | "version": "2.1.0", 961 | "resolved": "https://registry.npmjs.org/immediate-chunk-store/-/immediate-chunk-store-2.1.0.tgz", 962 | "integrity": "sha512-QshP0SFpsy/bHQBjYMgzCcnLoqTj6PHFg8ZkPi2WbTw1qddNy0puuPDaFlXyrsZAdWMT3QziPDMzfj+mzCVMYg==", 963 | "requires": { 964 | "queue-microtask": "^1.1.2" 965 | } 966 | }, 967 | "imurmurhash": { 968 | "version": "0.1.4", 969 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 970 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" 971 | }, 972 | "inflight": { 973 | "version": "1.0.6", 974 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 975 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 976 | "requires": { 977 | "once": "^1.3.0", 978 | "wrappy": "1" 979 | } 980 | }, 981 | "inherits": { 982 | "version": "2.0.3", 983 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 984 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 985 | }, 986 | "ip": { 987 | "version": "1.1.5", 988 | "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", 989 | "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" 990 | }, 991 | "ip-set": { 992 | "version": "1.0.2", 993 | "resolved": "https://registry.npmjs.org/ip-set/-/ip-set-1.0.2.tgz", 994 | "integrity": "sha512-Mb6kv78bTi4RNAIIWL8Bbre7hXOR2pNUi3j8FaQkLaitf/ZWxkq3/iIwXNYk2ACO3IMfdVdQrOkUtwZblO7uBA==", 995 | "requires": { 996 | "ip": "^1.1.3" 997 | } 998 | }, 999 | "ipaddr.js": { 1000 | "version": "1.9.1", 1001 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1002 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 1003 | }, 1004 | "is-ascii": { 1005 | "version": "1.0.0", 1006 | "resolved": "https://registry.npmjs.org/is-ascii/-/is-ascii-1.0.0.tgz", 1007 | "integrity": "sha1-8CrQJZoJIc0Zn/Ic4bCeD2tOOSk=" 1008 | }, 1009 | "is-binary-path": { 1010 | "version": "2.1.0", 1011 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1012 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1013 | "dev": true, 1014 | "requires": { 1015 | "binary-extensions": "^2.0.0" 1016 | } 1017 | }, 1018 | "is-buffer": { 1019 | "version": "2.0.4", 1020 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", 1021 | "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==", 1022 | "dev": true 1023 | }, 1024 | "is-callable": { 1025 | "version": "1.1.5", 1026 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", 1027 | "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", 1028 | "dev": true 1029 | }, 1030 | "is-date-object": { 1031 | "version": "1.0.2", 1032 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", 1033 | "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", 1034 | "dev": true 1035 | }, 1036 | "is-extglob": { 1037 | "version": "2.1.1", 1038 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1039 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 1040 | "dev": true 1041 | }, 1042 | "is-file": { 1043 | "version": "1.0.0", 1044 | "resolved": "https://registry.npmjs.org/is-file/-/is-file-1.0.0.tgz", 1045 | "integrity": "sha1-KKRM+9nT2xkwRfIrZfzo7fliBZY=" 1046 | }, 1047 | "is-fullwidth-code-point": { 1048 | "version": "2.0.0", 1049 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1050 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1051 | "dev": true 1052 | }, 1053 | "is-glob": { 1054 | "version": "4.0.1", 1055 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 1056 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 1057 | "dev": true, 1058 | "requires": { 1059 | "is-extglob": "^2.1.1" 1060 | } 1061 | }, 1062 | "is-number": { 1063 | "version": "7.0.0", 1064 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1065 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1066 | "dev": true 1067 | }, 1068 | "is-regex": { 1069 | "version": "1.0.5", 1070 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", 1071 | "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", 1072 | "dev": true, 1073 | "requires": { 1074 | "has": "^1.0.3" 1075 | } 1076 | }, 1077 | "is-symbol": { 1078 | "version": "1.0.3", 1079 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", 1080 | "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", 1081 | "dev": true, 1082 | "requires": { 1083 | "has-symbols": "^1.0.1" 1084 | } 1085 | }, 1086 | "is-typedarray": { 1087 | "version": "1.0.0", 1088 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 1089 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 1090 | }, 1091 | "isexe": { 1092 | "version": "2.0.0", 1093 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1094 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1095 | "dev": true 1096 | }, 1097 | "js-yaml": { 1098 | "version": "3.13.1", 1099 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 1100 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 1101 | "dev": true, 1102 | "requires": { 1103 | "argparse": "^1.0.7", 1104 | "esprima": "^4.0.0" 1105 | } 1106 | }, 1107 | "junk": { 1108 | "version": "3.1.0", 1109 | "resolved": "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz", 1110 | "integrity": "sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==" 1111 | }, 1112 | "k-bucket": { 1113 | "version": "5.0.0", 1114 | "resolved": "https://registry.npmjs.org/k-bucket/-/k-bucket-5.0.0.tgz", 1115 | "integrity": "sha512-r/q+wV/Kde62/tk+rqyttEJn6h0jR7x+incdMVSYTqK73zVxVrzJa70kJL49cIKen8XjIgUZKSvk8ktnrQbK4w==", 1116 | "requires": { 1117 | "randombytes": "^2.0.3" 1118 | } 1119 | }, 1120 | "k-rpc": { 1121 | "version": "5.1.0", 1122 | "resolved": "https://registry.npmjs.org/k-rpc/-/k-rpc-5.1.0.tgz", 1123 | "integrity": "sha512-FGc+n70Hcjoa/X2JTwP+jMIOpBz+pkRffHnSl9yrYiwUxg3FIgD50+u1ePfJUOnRCnx6pbjmVk5aAeB1wIijuQ==", 1124 | "requires": { 1125 | "k-bucket": "^5.0.0", 1126 | "k-rpc-socket": "^1.7.2", 1127 | "randombytes": "^2.0.5" 1128 | } 1129 | }, 1130 | "k-rpc-socket": { 1131 | "version": "1.11.1", 1132 | "resolved": "https://registry.npmjs.org/k-rpc-socket/-/k-rpc-socket-1.11.1.tgz", 1133 | "integrity": "sha512-8xtA8oqbZ6v1Niryp2/g4GxW16EQh5MvrUylQoOG+zcrDff5CKttON2XUXvMwlIHq4/2zfPVFiinAccJ+WhxoA==", 1134 | "requires": { 1135 | "bencode": "^2.0.0", 1136 | "chrome-dgram": "^3.0.2", 1137 | "chrome-dns": "^1.0.0", 1138 | "chrome-net": "^3.3.2" 1139 | } 1140 | }, 1141 | "last-one-wins": { 1142 | "version": "1.0.4", 1143 | "resolved": "https://registry.npmjs.org/last-one-wins/-/last-one-wins-1.0.4.tgz", 1144 | "integrity": "sha1-wb/Qy8tGeQ7JFWuNGu6Py4bNoio=" 1145 | }, 1146 | "load-ip-set": { 1147 | "version": "2.1.0", 1148 | "resolved": "https://registry.npmjs.org/load-ip-set/-/load-ip-set-2.1.0.tgz", 1149 | "integrity": "sha512-taz7U6B+F7Zq90dfIKwqsB1CrFKelSEmMGC68OUqem8Cgd1QZygQBYb2Fk9i6muBSfH4xwF/Pjt4KKlAdOyWZw==", 1150 | "requires": { 1151 | "ip-set": "^1.0.0", 1152 | "netmask": "^1.0.6", 1153 | "once": "^1.3.0", 1154 | "simple-get": "^3.0.0", 1155 | "split": "^1.0.0" 1156 | } 1157 | }, 1158 | "localstorage-memory": { 1159 | "version": "1.0.3", 1160 | "resolved": "https://registry.npmjs.org/localstorage-memory/-/localstorage-memory-1.0.3.tgz", 1161 | "integrity": "sha512-t9P8WB6DcVttbw/W4PIE8HOqum8Qlvx5SjR6oInwR9Uia0EEmyUeBh7S+weKByW+l/f45Bj4L/dgZikGFDM6ng==" 1162 | }, 1163 | "localstorage-ponyfill": { 1164 | "version": "1.0.2", 1165 | "resolved": "https://registry.npmjs.org/localstorage-ponyfill/-/localstorage-ponyfill-1.0.2.tgz", 1166 | "integrity": "sha512-D2HfgIvSsTaw8sNzhTZJnWFDDMhxqy8FYmX0Y+J/e1//DCQiUTpm4ekjaodDFNr2tXHrE5EiyCrx1agHqRT50g==", 1167 | "requires": { 1168 | "app-root-path": "^2.1.0", 1169 | "localstorage-memory": "^1.0.3", 1170 | "mkdirp": "^0.5.1", 1171 | "node-localstorage": "^1.3.1" 1172 | } 1173 | }, 1174 | "locate-path": { 1175 | "version": "3.0.0", 1176 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", 1177 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", 1178 | "requires": { 1179 | "p-locate": "^3.0.0", 1180 | "path-exists": "^3.0.0" 1181 | }, 1182 | "dependencies": { 1183 | "path-exists": { 1184 | "version": "3.0.0", 1185 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 1186 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" 1187 | } 1188 | } 1189 | }, 1190 | "lodash": { 1191 | "version": "4.17.21", 1192 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1193 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 1194 | "dev": true 1195 | }, 1196 | "log-symbols": { 1197 | "version": "3.0.0", 1198 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", 1199 | "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", 1200 | "dev": true, 1201 | "requires": { 1202 | "chalk": "^2.4.2" 1203 | } 1204 | }, 1205 | "lru": { 1206 | "version": "3.1.0", 1207 | "resolved": "https://registry.npmjs.org/lru/-/lru-3.1.0.tgz", 1208 | "integrity": "sha1-6n+4VG2DczOWoTCR12z+tMBoN9U=", 1209 | "requires": { 1210 | "inherits": "^2.0.1" 1211 | } 1212 | }, 1213 | "magnet-uri": { 1214 | "version": "5.2.4", 1215 | "resolved": "https://registry.npmjs.org/magnet-uri/-/magnet-uri-5.2.4.tgz", 1216 | "integrity": "sha512-VYaJMxhr8B9BrCiNINUsuhaEe40YnG+AQBwcqUKO66lSVaI9I3A1iH/6EmEwRI8OYUg5Gt+4lLE7achg676lrg==", 1217 | "requires": { 1218 | "thirty-two": "^1.0.1", 1219 | "uniq": "^1.0.1" 1220 | } 1221 | }, 1222 | "media-typer": { 1223 | "version": "0.3.0", 1224 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1225 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1226 | }, 1227 | "mediasource": { 1228 | "version": "2.3.0", 1229 | "resolved": "https://registry.npmjs.org/mediasource/-/mediasource-2.3.0.tgz", 1230 | "integrity": "sha512-fqm86UwHvAnneIv40Uy1sDQaFtAByq/k0SQ3uCtbnEeSQNT1s5TDHCZOD1VmYCHwfY1jL2NjoZVwzZKYqy3L7A==", 1231 | "requires": { 1232 | "inherits": "^2.0.1", 1233 | "readable-stream": "^3.0.0", 1234 | "to-arraybuffer": "^1.0.1" 1235 | }, 1236 | "dependencies": { 1237 | "readable-stream": { 1238 | "version": "3.6.0", 1239 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1240 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1241 | "requires": { 1242 | "inherits": "^2.0.3", 1243 | "string_decoder": "^1.1.1", 1244 | "util-deprecate": "^1.0.1" 1245 | } 1246 | } 1247 | } 1248 | }, 1249 | "memory-chunk-store": { 1250 | "version": "1.3.0", 1251 | "resolved": "https://registry.npmjs.org/memory-chunk-store/-/memory-chunk-store-1.3.0.tgz", 1252 | "integrity": "sha512-6LsOpHKKhxYrLhHmOJdBCUtSO7op5rUs1pag0fhjHo0QiXRyna0bwYf4EmQuL7InUeF2J7dUMPr6VMogRyf9NA==" 1253 | }, 1254 | "merge-descriptors": { 1255 | "version": "1.0.1", 1256 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1257 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1258 | }, 1259 | "methods": { 1260 | "version": "1.1.2", 1261 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1262 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1263 | }, 1264 | "mime": { 1265 | "version": "1.6.0", 1266 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1267 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 1268 | }, 1269 | "mime-db": { 1270 | "version": "1.43.0", 1271 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", 1272 | "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==" 1273 | }, 1274 | "mime-types": { 1275 | "version": "2.1.26", 1276 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", 1277 | "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", 1278 | "requires": { 1279 | "mime-db": "1.43.0" 1280 | } 1281 | }, 1282 | "mimic-response": { 1283 | "version": "2.1.0", 1284 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz", 1285 | "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==" 1286 | }, 1287 | "minimatch": { 1288 | "version": "3.0.4", 1289 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1290 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1291 | "requires": { 1292 | "brace-expansion": "^1.1.7" 1293 | } 1294 | }, 1295 | "minimist": { 1296 | "version": "1.2.5", 1297 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1298 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 1299 | }, 1300 | "mkdirp": { 1301 | "version": "0.5.5", 1302 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 1303 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 1304 | "requires": { 1305 | "minimist": "^1.2.5" 1306 | } 1307 | }, 1308 | "mkdirp-classic": { 1309 | "version": "0.5.2", 1310 | "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.2.tgz", 1311 | "integrity": "sha512-ejdnDQcR75gwknmMw/tx02AuRs8jCtqFoFqDZMjiNxsu85sRIJVXDKHuLYvUUPRBUtV2FpSZa9bL1BUa3BdR2g==" 1312 | }, 1313 | "mocha": { 1314 | "version": "7.1.1", 1315 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-7.1.1.tgz", 1316 | "integrity": "sha512-3qQsu3ijNS3GkWcccT5Zw0hf/rWvu1fTN9sPvEd81hlwsr30GX2GcDSSoBxo24IR8FelmrAydGC6/1J5QQP4WA==", 1317 | "dev": true, 1318 | "requires": { 1319 | "ansi-colors": "3.2.3", 1320 | "browser-stdout": "1.3.1", 1321 | "chokidar": "3.3.0", 1322 | "debug": "3.2.6", 1323 | "diff": "3.5.0", 1324 | "escape-string-regexp": "1.0.5", 1325 | "find-up": "3.0.0", 1326 | "glob": "7.1.3", 1327 | "growl": "1.10.5", 1328 | "he": "1.2.0", 1329 | "js-yaml": "3.13.1", 1330 | "log-symbols": "3.0.0", 1331 | "minimatch": "3.0.4", 1332 | "mkdirp": "0.5.3", 1333 | "ms": "2.1.1", 1334 | "node-environment-flags": "1.0.6", 1335 | "object.assign": "4.1.0", 1336 | "strip-json-comments": "2.0.1", 1337 | "supports-color": "6.0.0", 1338 | "which": "1.3.1", 1339 | "wide-align": "1.1.3", 1340 | "yargs": "13.3.2", 1341 | "yargs-parser": "13.1.2", 1342 | "yargs-unparser": "1.6.0" 1343 | }, 1344 | "dependencies": { 1345 | "debug": { 1346 | "version": "3.2.6", 1347 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 1348 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 1349 | "dev": true, 1350 | "requires": { 1351 | "ms": "^2.1.1" 1352 | } 1353 | }, 1354 | "glob": { 1355 | "version": "7.1.3", 1356 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", 1357 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", 1358 | "dev": true, 1359 | "requires": { 1360 | "fs.realpath": "^1.0.0", 1361 | "inflight": "^1.0.4", 1362 | "inherits": "2", 1363 | "minimatch": "^3.0.4", 1364 | "once": "^1.3.0", 1365 | "path-is-absolute": "^1.0.0" 1366 | } 1367 | }, 1368 | "mkdirp": { 1369 | "version": "0.5.3", 1370 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.3.tgz", 1371 | "integrity": "sha512-P+2gwrFqx8lhew375MQHHeTlY8AuOJSrGf0R5ddkEndUkmwpgUob/vQuBD1V22/Cw1/lJr4x+EjllSezBThzBg==", 1372 | "dev": true, 1373 | "requires": { 1374 | "minimist": "^1.2.5" 1375 | } 1376 | }, 1377 | "ms": { 1378 | "version": "2.1.1", 1379 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1380 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 1381 | "dev": true 1382 | } 1383 | } 1384 | }, 1385 | "morgan": { 1386 | "version": "1.10.0", 1387 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", 1388 | "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", 1389 | "requires": { 1390 | "basic-auth": "~2.0.1", 1391 | "debug": "2.6.9", 1392 | "depd": "~2.0.0", 1393 | "on-finished": "~2.3.0", 1394 | "on-headers": "~1.0.2" 1395 | }, 1396 | "dependencies": { 1397 | "debug": { 1398 | "version": "2.6.9", 1399 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1400 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1401 | "requires": { 1402 | "ms": "2.0.0" 1403 | } 1404 | }, 1405 | "depd": { 1406 | "version": "2.0.0", 1407 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 1408 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" 1409 | } 1410 | } 1411 | }, 1412 | "mp4-box-encoding": { 1413 | "version": "1.4.1", 1414 | "resolved": "https://registry.npmjs.org/mp4-box-encoding/-/mp4-box-encoding-1.4.1.tgz", 1415 | "integrity": "sha512-2/PRtGGiqPc/VEhbm7xAQ+gbb7yzHjjMAv6MpAifr5pCpbh3fQUdj93uNgwPiTppAGu8HFKe3PeU+OdRyAxStA==", 1416 | "requires": { 1417 | "uint64be": "^2.0.2" 1418 | } 1419 | }, 1420 | "mp4-stream": { 1421 | "version": "3.1.0", 1422 | "resolved": "https://registry.npmjs.org/mp4-stream/-/mp4-stream-3.1.0.tgz", 1423 | "integrity": "sha512-ZQQjf0VEiqPucwRvmT3e0pfZfMSE3nc5ngGUiN1+2VMxCtrInrlAjZ2K6jpNmxSZ/roiQne/ovYJYTeOvZDXPw==", 1424 | "requires": { 1425 | "mp4-box-encoding": "^1.3.0", 1426 | "next-event": "^1.0.0", 1427 | "readable-stream": "^3.0.6" 1428 | }, 1429 | "dependencies": { 1430 | "readable-stream": { 1431 | "version": "3.6.0", 1432 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1433 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1434 | "requires": { 1435 | "inherits": "^2.0.3", 1436 | "string_decoder": "^1.1.1", 1437 | "util-deprecate": "^1.0.1" 1438 | } 1439 | } 1440 | } 1441 | }, 1442 | "ms": { 1443 | "version": "2.0.0", 1444 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1445 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1446 | }, 1447 | "multistream": { 1448 | "version": "4.0.0", 1449 | "resolved": "https://registry.npmjs.org/multistream/-/multistream-4.0.0.tgz", 1450 | "integrity": "sha512-t0C8MAtH/d3Y+5nooEtUMWli92lVw9Jhx4uOhRl5GAwS5vc+YTmp/VXNJNsCBAMeEyK/6zhbk6x9JE3AiCvo4g==", 1451 | "requires": { 1452 | "readable-stream": "^3.4.0" 1453 | }, 1454 | "dependencies": { 1455 | "readable-stream": { 1456 | "version": "3.6.0", 1457 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1458 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1459 | "requires": { 1460 | "inherits": "^2.0.3", 1461 | "string_decoder": "^1.1.1", 1462 | "util-deprecate": "^1.0.1" 1463 | } 1464 | } 1465 | } 1466 | }, 1467 | "negotiator": { 1468 | "version": "0.6.2", 1469 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1470 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 1471 | }, 1472 | "netmask": { 1473 | "version": "1.0.6", 1474 | "resolved": "https://registry.npmjs.org/netmask/-/netmask-1.0.6.tgz", 1475 | "integrity": "sha1-ICl+idhvb2QA8lDZ9Pa0wZRfzTU=" 1476 | }, 1477 | "next-event": { 1478 | "version": "1.0.0", 1479 | "resolved": "https://registry.npmjs.org/next-event/-/next-event-1.0.0.tgz", 1480 | "integrity": "sha1-53eKzeLlWALgrRh5w5z2917aYdg=" 1481 | }, 1482 | "node-environment-flags": { 1483 | "version": "1.0.6", 1484 | "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz", 1485 | "integrity": "sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw==", 1486 | "dev": true, 1487 | "requires": { 1488 | "object.getownpropertydescriptors": "^2.0.3", 1489 | "semver": "^5.7.0" 1490 | } 1491 | }, 1492 | "node-gyp-build": { 1493 | "version": "3.7.0", 1494 | "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-3.7.0.tgz", 1495 | "integrity": "sha512-L/Eg02Epx6Si2NXmedx+Okg+4UHqmaf3TNcxd50SF9NQGcJaON3AtU++kax69XV7YWz4tUspqZSAsVofhFKG2w==", 1496 | "optional": true 1497 | }, 1498 | "node-localstorage": { 1499 | "version": "1.3.1", 1500 | "resolved": "https://registry.npmjs.org/node-localstorage/-/node-localstorage-1.3.1.tgz", 1501 | "integrity": "sha512-NMWCSWWc6JbHT5PyWlNT2i8r7PgGYXVntmKawY83k/M0UJScZ5jirb61TLnqKwd815DfBQu+lR3sRw08SPzIaQ==", 1502 | "requires": { 1503 | "write-file-atomic": "^1.1.4" 1504 | } 1505 | }, 1506 | "normalize-path": { 1507 | "version": "3.0.0", 1508 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1509 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1510 | "dev": true 1511 | }, 1512 | "object-inspect": { 1513 | "version": "1.7.0", 1514 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", 1515 | "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", 1516 | "dev": true 1517 | }, 1518 | "object-keys": { 1519 | "version": "1.1.1", 1520 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 1521 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 1522 | "dev": true 1523 | }, 1524 | "object.assign": { 1525 | "version": "4.1.0", 1526 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", 1527 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", 1528 | "dev": true, 1529 | "requires": { 1530 | "define-properties": "^1.1.2", 1531 | "function-bind": "^1.1.1", 1532 | "has-symbols": "^1.0.0", 1533 | "object-keys": "^1.0.11" 1534 | } 1535 | }, 1536 | "object.getownpropertydescriptors": { 1537 | "version": "2.1.0", 1538 | "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz", 1539 | "integrity": "sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg==", 1540 | "dev": true, 1541 | "requires": { 1542 | "define-properties": "^1.1.3", 1543 | "es-abstract": "^1.17.0-next.1" 1544 | } 1545 | }, 1546 | "on-finished": { 1547 | "version": "2.3.0", 1548 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1549 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1550 | "requires": { 1551 | "ee-first": "1.1.1" 1552 | } 1553 | }, 1554 | "on-headers": { 1555 | "version": "1.0.2", 1556 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 1557 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" 1558 | }, 1559 | "once": { 1560 | "version": "1.4.0", 1561 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1562 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1563 | "requires": { 1564 | "wrappy": "1" 1565 | } 1566 | }, 1567 | "p-limit": { 1568 | "version": "2.3.0", 1569 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 1570 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 1571 | "requires": { 1572 | "p-try": "^2.0.0" 1573 | } 1574 | }, 1575 | "p-locate": { 1576 | "version": "3.0.0", 1577 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", 1578 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", 1579 | "requires": { 1580 | "p-limit": "^2.0.0" 1581 | } 1582 | }, 1583 | "p-try": { 1584 | "version": "2.2.0", 1585 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 1586 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" 1587 | }, 1588 | "package-json-versionify": { 1589 | "version": "1.0.4", 1590 | "resolved": "https://registry.npmjs.org/package-json-versionify/-/package-json-versionify-1.0.4.tgz", 1591 | "integrity": "sha1-WGBYepRIc6a35tJujlH/siMVvxc=", 1592 | "requires": { 1593 | "browserify-package-json": "^1.0.0" 1594 | } 1595 | }, 1596 | "parse-numeric-range": { 1597 | "version": "0.0.2", 1598 | "resolved": "https://registry.npmjs.org/parse-numeric-range/-/parse-numeric-range-0.0.2.tgz", 1599 | "integrity": "sha1-tPCdQTx6282Yf26SM8e0shDJOOQ=" 1600 | }, 1601 | "parse-torrent": { 1602 | "version": "7.1.2", 1603 | "resolved": "https://registry.npmjs.org/parse-torrent/-/parse-torrent-7.1.2.tgz", 1604 | "integrity": "sha512-1boHRA+aV7aeZBIg0rMBYhtfizAd/BXCXOCh/klYrgVnSpUAuJUIzQrIGkCsb93U1KOVN6C3NZOgpNy8htmqgw==", 1605 | "requires": { 1606 | "bencode": "^2.0.0", 1607 | "blob-to-buffer": "^1.2.6", 1608 | "get-stdin": "^7.0.0", 1609 | "magnet-uri": "^5.1.3", 1610 | "simple-get": "^3.0.1", 1611 | "simple-sha1": "^3.0.0" 1612 | } 1613 | }, 1614 | "parseurl": { 1615 | "version": "1.3.3", 1616 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1617 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1618 | }, 1619 | "path-is-absolute": { 1620 | "version": "1.0.1", 1621 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1622 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 1623 | }, 1624 | "path-to-regexp": { 1625 | "version": "0.1.7", 1626 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1627 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1628 | }, 1629 | "picomatch": { 1630 | "version": "2.2.2", 1631 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", 1632 | "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", 1633 | "dev": true 1634 | }, 1635 | "piece-length": { 1636 | "version": "2.0.1", 1637 | "resolved": "https://registry.npmjs.org/piece-length/-/piece-length-2.0.1.tgz", 1638 | "integrity": "sha512-dBILiDmm43y0JPISWEmVGKBETQjwJe6mSU9GND+P9KW0SJGUwoU/odyH1nbalOP9i8WSYuqf1lQnaj92Bhw+Ug==" 1639 | }, 1640 | "pretty-bytes": { 1641 | "version": "5.3.0", 1642 | "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.3.0.tgz", 1643 | "integrity": "sha512-hjGrh+P926p4R4WbaB6OckyRtO0F0/lQBiT+0gnxjV+5kjPBrfVBFCsCLbMqVQeydvIoouYTCmmEURiH3R1Bdg==" 1644 | }, 1645 | "proxy-addr": { 1646 | "version": "2.0.6", 1647 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 1648 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 1649 | "requires": { 1650 | "forwarded": "~0.1.2", 1651 | "ipaddr.js": "1.9.1" 1652 | } 1653 | }, 1654 | "psl": { 1655 | "version": "1.8.0", 1656 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", 1657 | "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" 1658 | }, 1659 | "pump": { 1660 | "version": "3.0.0", 1661 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1662 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1663 | "requires": { 1664 | "end-of-stream": "^1.1.0", 1665 | "once": "^1.3.1" 1666 | } 1667 | }, 1668 | "punycode": { 1669 | "version": "1.3.2", 1670 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", 1671 | "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" 1672 | }, 1673 | "qs": { 1674 | "version": "6.7.0", 1675 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1676 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 1677 | }, 1678 | "querystring": { 1679 | "version": "0.2.0", 1680 | "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", 1681 | "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=" 1682 | }, 1683 | "queue-microtask": { 1684 | "version": "1.1.2", 1685 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.1.2.tgz", 1686 | "integrity": "sha512-F9wwNePtXrzZenAB3ax0Y8TSKGvuB7Qw16J30hspEUTbfUM+H827XyN3rlpwhVmtm5wuZtbKIHjOnwDn7MUxWQ==" 1687 | }, 1688 | "random-access-file": { 1689 | "version": "2.1.4", 1690 | "resolved": "https://registry.npmjs.org/random-access-file/-/random-access-file-2.1.4.tgz", 1691 | "integrity": "sha512-WAcBP5iLhg1pbjZA40WyMenjK7c5gJUY6Pi5HJ3fLJCeVFNSZv3juf20yFMKxBdvcX5GKbX/HZSfFzlLBdGTdQ==", 1692 | "requires": { 1693 | "mkdirp-classic": "^0.5.2", 1694 | "random-access-storage": "^1.1.1" 1695 | } 1696 | }, 1697 | "random-access-storage": { 1698 | "version": "1.4.1", 1699 | "resolved": "https://registry.npmjs.org/random-access-storage/-/random-access-storage-1.4.1.tgz", 1700 | "integrity": "sha512-DbCc2TIzOxPaHF6KCbr8zLtiYOJQQQCBHUVNHV/SckUQobCBB2YkDtbLdxGnPwPNpJfEyMWxDAm36A2xkbxxtw==", 1701 | "requires": { 1702 | "inherits": "^2.0.3" 1703 | } 1704 | }, 1705 | "random-iterate": { 1706 | "version": "1.0.1", 1707 | "resolved": "https://registry.npmjs.org/random-iterate/-/random-iterate-1.0.1.tgz", 1708 | "integrity": "sha1-99l9kt7mZl7F9toIx/ljytSyrJk=" 1709 | }, 1710 | "randombytes": { 1711 | "version": "2.1.0", 1712 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1713 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1714 | "requires": { 1715 | "safe-buffer": "^5.1.0" 1716 | } 1717 | }, 1718 | "range-parser": { 1719 | "version": "1.2.1", 1720 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1721 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1722 | }, 1723 | "range-slice-stream": { 1724 | "version": "2.0.0", 1725 | "resolved": "https://registry.npmjs.org/range-slice-stream/-/range-slice-stream-2.0.0.tgz", 1726 | "integrity": "sha512-PPYLwZ63lXi6Tv2EZ8w3M4FzC0rVqvxivaOVS8pXSp5FMIHFnvi4MWHL3UdFLhwSy50aNtJsgjY0mBC6oFL26Q==", 1727 | "requires": { 1728 | "readable-stream": "^3.0.2" 1729 | }, 1730 | "dependencies": { 1731 | "readable-stream": { 1732 | "version": "3.6.0", 1733 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1734 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1735 | "requires": { 1736 | "inherits": "^2.0.3", 1737 | "string_decoder": "^1.1.1", 1738 | "util-deprecate": "^1.0.1" 1739 | } 1740 | } 1741 | } 1742 | }, 1743 | "raw-body": { 1744 | "version": "2.4.0", 1745 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1746 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1747 | "requires": { 1748 | "bytes": "3.1.0", 1749 | "http-errors": "1.7.2", 1750 | "iconv-lite": "0.4.24", 1751 | "unpipe": "1.0.0" 1752 | } 1753 | }, 1754 | "readable-stream": { 1755 | "version": "3.6.0", 1756 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1757 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1758 | "requires": { 1759 | "inherits": "^2.0.3", 1760 | "string_decoder": "^1.1.1", 1761 | "util-deprecate": "^1.0.1" 1762 | } 1763 | }, 1764 | "readdirp": { 1765 | "version": "3.2.0", 1766 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz", 1767 | "integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==", 1768 | "dev": true, 1769 | "requires": { 1770 | "picomatch": "^2.0.4" 1771 | } 1772 | }, 1773 | "record-cache": { 1774 | "version": "1.1.0", 1775 | "resolved": "https://registry.npmjs.org/record-cache/-/record-cache-1.1.0.tgz", 1776 | "integrity": "sha512-u8rbtLEJV7HRacl/ZYwSBFD8NFyB3PfTTfGLP37IW3hftQCwu6z4Q2RLyxo1YJUNRTEzJfpLpGwVuEYdaIkG9Q==" 1777 | }, 1778 | "render-media": { 1779 | "version": "3.4.0", 1780 | "resolved": "https://registry.npmjs.org/render-media/-/render-media-3.4.0.tgz", 1781 | "integrity": "sha512-0BTIvIBS4xdC/qPpoj8ZsdZ/YoQhn+DutUqBkur1yUs5SnDoruiAtaHFJhxle8pREnNN/kT8E8fkftgMkJ8Tvg==", 1782 | "requires": { 1783 | "debug": "^4.1.1", 1784 | "is-ascii": "^1.0.0", 1785 | "mediasource": "^2.1.0", 1786 | "stream-to-blob-url": "^3.0.0", 1787 | "videostream": "^3.2.0" 1788 | } 1789 | }, 1790 | "require-directory": { 1791 | "version": "2.1.1", 1792 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1793 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" 1794 | }, 1795 | "require-main-filename": { 1796 | "version": "2.0.0", 1797 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 1798 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", 1799 | "dev": true 1800 | }, 1801 | "rimraf": { 1802 | "version": "3.0.2", 1803 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1804 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1805 | "requires": { 1806 | "glob": "^7.1.3" 1807 | } 1808 | }, 1809 | "run-parallel": { 1810 | "version": "1.1.9", 1811 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz", 1812 | "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==" 1813 | }, 1814 | "run-parallel-limit": { 1815 | "version": "1.0.5", 1816 | "resolved": "https://registry.npmjs.org/run-parallel-limit/-/run-parallel-limit-1.0.5.tgz", 1817 | "integrity": "sha512-NsY+oDngvrvMxKB3G8ijBzIema6aYbQMD2bHOamvN52BysbIGTnEY2xsNyfrcr9GhY995/t/0nQN3R3oZvaDlg==" 1818 | }, 1819 | "run-series": { 1820 | "version": "1.1.8", 1821 | "resolved": "https://registry.npmjs.org/run-series/-/run-series-1.1.8.tgz", 1822 | "integrity": "sha512-+GztYEPRpIsQoCSraWHDBs9WVy4eVME16zhOtDB4H9J4xN0XRhknnmLOl+4gRgZtu8dpp9N/utSPjKH/xmDzXg==" 1823 | }, 1824 | "rusha": { 1825 | "version": "0.8.13", 1826 | "resolved": "https://registry.npmjs.org/rusha/-/rusha-0.8.13.tgz", 1827 | "integrity": "sha1-mghOe4YLF7/zAVuSxnpqM2GRUTo=" 1828 | }, 1829 | "safe-buffer": { 1830 | "version": "5.1.1", 1831 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 1832 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" 1833 | }, 1834 | "safer-buffer": { 1835 | "version": "2.1.2", 1836 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1837 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1838 | }, 1839 | "semver": { 1840 | "version": "5.7.1", 1841 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1842 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 1843 | "dev": true 1844 | }, 1845 | "send": { 1846 | "version": "0.17.1", 1847 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1848 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1849 | "requires": { 1850 | "debug": "2.6.9", 1851 | "depd": "~1.1.2", 1852 | "destroy": "~1.0.4", 1853 | "encodeurl": "~1.0.2", 1854 | "escape-html": "~1.0.3", 1855 | "etag": "~1.8.1", 1856 | "fresh": "0.5.2", 1857 | "http-errors": "~1.7.2", 1858 | "mime": "1.6.0", 1859 | "ms": "2.1.1", 1860 | "on-finished": "~2.3.0", 1861 | "range-parser": "~1.2.1", 1862 | "statuses": "~1.5.0" 1863 | }, 1864 | "dependencies": { 1865 | "debug": { 1866 | "version": "2.6.9", 1867 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1868 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1869 | "requires": { 1870 | "ms": "2.0.0" 1871 | }, 1872 | "dependencies": { 1873 | "ms": { 1874 | "version": "2.0.0", 1875 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1876 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1877 | } 1878 | } 1879 | }, 1880 | "ms": { 1881 | "version": "2.1.1", 1882 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1883 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1884 | } 1885 | } 1886 | }, 1887 | "serve-favicon": { 1888 | "version": "2.5.0", 1889 | "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.5.0.tgz", 1890 | "integrity": "sha1-k10kDN/g9YBTB/3+ln2IlCosvPA=", 1891 | "requires": { 1892 | "etag": "~1.8.1", 1893 | "fresh": "0.5.2", 1894 | "ms": "2.1.1", 1895 | "parseurl": "~1.3.2", 1896 | "safe-buffer": "5.1.1" 1897 | }, 1898 | "dependencies": { 1899 | "ms": { 1900 | "version": "2.1.1", 1901 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1902 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1903 | } 1904 | } 1905 | }, 1906 | "serve-static": { 1907 | "version": "1.14.1", 1908 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1909 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1910 | "requires": { 1911 | "encodeurl": "~1.0.2", 1912 | "escape-html": "~1.0.3", 1913 | "parseurl": "~1.3.3", 1914 | "send": "0.17.1" 1915 | } 1916 | }, 1917 | "set-blocking": { 1918 | "version": "2.0.0", 1919 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 1920 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" 1921 | }, 1922 | "setprototypeof": { 1923 | "version": "1.1.1", 1924 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1925 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1926 | }, 1927 | "showdown": { 1928 | "version": "1.9.1", 1929 | "resolved": "https://registry.npmjs.org/showdown/-/showdown-1.9.1.tgz", 1930 | "integrity": "sha512-9cGuS382HcvExtf5AHk7Cb4pAeQQ+h0eTr33V1mu+crYWV4KvWAw6el92bDrqGEk5d46Ai/fhbEUwqJ/mTCNEA==", 1931 | "requires": { 1932 | "yargs": "^14.2" 1933 | }, 1934 | "dependencies": { 1935 | "ansi-regex": { 1936 | "version": "4.1.0", 1937 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1938 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" 1939 | }, 1940 | "ansi-styles": { 1941 | "version": "3.2.1", 1942 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 1943 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 1944 | "requires": { 1945 | "color-convert": "^1.9.0" 1946 | } 1947 | }, 1948 | "cliui": { 1949 | "version": "5.0.0", 1950 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", 1951 | "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", 1952 | "requires": { 1953 | "string-width": "^3.1.0", 1954 | "strip-ansi": "^5.2.0", 1955 | "wrap-ansi": "^5.1.0" 1956 | } 1957 | }, 1958 | "find-up": { 1959 | "version": "3.0.0", 1960 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 1961 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 1962 | "requires": { 1963 | "locate-path": "^3.0.0" 1964 | } 1965 | }, 1966 | "get-caller-file": { 1967 | "version": "2.0.5", 1968 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1969 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" 1970 | }, 1971 | "is-fullwidth-code-point": { 1972 | "version": "2.0.0", 1973 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1974 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 1975 | }, 1976 | "require-main-filename": { 1977 | "version": "2.0.0", 1978 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 1979 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" 1980 | }, 1981 | "string-width": { 1982 | "version": "3.1.0", 1983 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1984 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1985 | "requires": { 1986 | "emoji-regex": "^7.0.1", 1987 | "is-fullwidth-code-point": "^2.0.0", 1988 | "strip-ansi": "^5.1.0" 1989 | } 1990 | }, 1991 | "strip-ansi": { 1992 | "version": "5.2.0", 1993 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1994 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1995 | "requires": { 1996 | "ansi-regex": "^4.1.0" 1997 | } 1998 | }, 1999 | "which-module": { 2000 | "version": "2.0.0", 2001 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 2002 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" 2003 | }, 2004 | "wrap-ansi": { 2005 | "version": "5.1.0", 2006 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", 2007 | "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", 2008 | "requires": { 2009 | "ansi-styles": "^3.2.0", 2010 | "string-width": "^3.0.0", 2011 | "strip-ansi": "^5.0.0" 2012 | } 2013 | }, 2014 | "yargs": { 2015 | "version": "14.2.3", 2016 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-14.2.3.tgz", 2017 | "integrity": "sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg==", 2018 | "requires": { 2019 | "cliui": "^5.0.0", 2020 | "decamelize": "^1.2.0", 2021 | "find-up": "^3.0.0", 2022 | "get-caller-file": "^2.0.1", 2023 | "require-directory": "^2.1.1", 2024 | "require-main-filename": "^2.0.0", 2025 | "set-blocking": "^2.0.0", 2026 | "string-width": "^3.0.0", 2027 | "which-module": "^2.0.0", 2028 | "y18n": "^4.0.0", 2029 | "yargs-parser": "^15.0.1" 2030 | } 2031 | }, 2032 | "yargs-parser": { 2033 | "version": "15.0.1", 2034 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.1.tgz", 2035 | "integrity": "sha512-0OAMV2mAZQrs3FkNpDQcBk1x5HXb8X4twADss4S0Iuk+2dGnLOE/fRHrsYm542GduMveyA77OF4wrNJuanRCWw==", 2036 | "requires": { 2037 | "camelcase": "^5.0.0", 2038 | "decamelize": "^1.2.0" 2039 | } 2040 | } 2041 | } 2042 | }, 2043 | "simple-concat": { 2044 | "version": "1.0.0", 2045 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz", 2046 | "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY=" 2047 | }, 2048 | "simple-get": { 2049 | "version": "3.1.0", 2050 | "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.0.tgz", 2051 | "integrity": "sha512-bCR6cP+aTdScaQCnQKbPKtJOKDp/hj9EDLJo3Nw4y1QksqaovlW/bnptB6/c1e+qmNIDHRK+oXFDdEqBT8WzUA==", 2052 | "requires": { 2053 | "decompress-response": "^4.2.0", 2054 | "once": "^1.3.1", 2055 | "simple-concat": "^1.0.0" 2056 | } 2057 | }, 2058 | "simple-peer": { 2059 | "version": "9.6.2", 2060 | "resolved": "https://registry.npmjs.org/simple-peer/-/simple-peer-9.6.2.tgz", 2061 | "integrity": "sha512-EOKoImCaqtNvXIntxT1CBBK/3pVi7tMAoJ3shdyd9qk3zLm3QPiRLb/sPC1G2xvKJkJc5fkQjCXqRZ0AknwTig==", 2062 | "requires": { 2063 | "debug": "^4.0.1", 2064 | "get-browser-rtc": "^1.0.0", 2065 | "queue-microtask": "^1.1.0", 2066 | "randombytes": "^2.0.3", 2067 | "readable-stream": "^3.4.0" 2068 | }, 2069 | "dependencies": { 2070 | "readable-stream": { 2071 | "version": "3.6.0", 2072 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 2073 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 2074 | "requires": { 2075 | "inherits": "^2.0.3", 2076 | "string_decoder": "^1.1.1", 2077 | "util-deprecate": "^1.0.1" 2078 | } 2079 | } 2080 | } 2081 | }, 2082 | "simple-sha1": { 2083 | "version": "3.0.1", 2084 | "resolved": "https://registry.npmjs.org/simple-sha1/-/simple-sha1-3.0.1.tgz", 2085 | "integrity": "sha512-q7ehqWfHc1VhOm7sW099YDZ4I0yYX7rqyhqqhHV1IYeUTjPOhHyD3mXvv8k2P+rO7+7c8R4/D+8ffzC9BE7Cqg==", 2086 | "requires": { 2087 | "queue-microtask": "^1.1.2", 2088 | "rusha": "^0.8.1" 2089 | } 2090 | }, 2091 | "simple-websocket": { 2092 | "version": "8.1.1", 2093 | "resolved": "https://registry.npmjs.org/simple-websocket/-/simple-websocket-8.1.1.tgz", 2094 | "integrity": "sha512-06I3cwOD5Q3LdVd6qfyDGp1U9eau9x9qniSL3b/aDgM5bsJX4nZfCuii2UCFcTfrDq0jCXF4NQ/38qeC8CJZTg==", 2095 | "requires": { 2096 | "debug": "^4.1.1", 2097 | "queue-microtask": "^1.1.0", 2098 | "randombytes": "^2.0.3", 2099 | "readable-stream": "^3.1.1", 2100 | "ws": "^7.0.0" 2101 | }, 2102 | "dependencies": { 2103 | "readable-stream": { 2104 | "version": "3.6.0", 2105 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 2106 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 2107 | "requires": { 2108 | "inherits": "^2.0.3", 2109 | "string_decoder": "^1.1.1", 2110 | "util-deprecate": "^1.0.1" 2111 | } 2112 | } 2113 | } 2114 | }, 2115 | "slide": { 2116 | "version": "1.1.6", 2117 | "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz", 2118 | "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=" 2119 | }, 2120 | "speedometer": { 2121 | "version": "1.1.0", 2122 | "resolved": "https://registry.npmjs.org/speedometer/-/speedometer-1.1.0.tgz", 2123 | "integrity": "sha512-z/wAiTESw2XVPssY2XRcme4niTc4S5FkkJ4gknudtVoc33Zil8TdTxHy5torRcgqMqksJV2Yz8HQcvtbsnw0mQ==" 2124 | }, 2125 | "split": { 2126 | "version": "1.0.1", 2127 | "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", 2128 | "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", 2129 | "requires": { 2130 | "through": "2" 2131 | } 2132 | }, 2133 | "sprintf-js": { 2134 | "version": "1.0.3", 2135 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 2136 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 2137 | "dev": true 2138 | }, 2139 | "statuses": { 2140 | "version": "1.5.0", 2141 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 2142 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 2143 | }, 2144 | "stream-to-blob": { 2145 | "version": "2.0.0", 2146 | "resolved": "https://registry.npmjs.org/stream-to-blob/-/stream-to-blob-2.0.0.tgz", 2147 | "integrity": "sha512-E+YitTtIHo7RQ4Cmgl+EzlMpqvLroTynRgt4t0pI4y5oz/piqlBQB8NFXLIWcjGOsKw+THnImrdpWcOCVxK25Q==" 2148 | }, 2149 | "stream-to-blob-url": { 2150 | "version": "3.0.0", 2151 | "resolved": "https://registry.npmjs.org/stream-to-blob-url/-/stream-to-blob-url-3.0.0.tgz", 2152 | "integrity": "sha512-Mu1iPvbBkzdUPCZ+J+XBr/oagjOBfj4vpErHRIe08QzWeILSDtF5LXo6v44HeQFpx7dfqcBKjGUbSNCJ+38zqQ==", 2153 | "requires": { 2154 | "stream-to-blob": "^2.0.0" 2155 | } 2156 | }, 2157 | "stream-with-known-length-to-buffer": { 2158 | "version": "1.0.3", 2159 | "resolved": "https://registry.npmjs.org/stream-with-known-length-to-buffer/-/stream-with-known-length-to-buffer-1.0.3.tgz", 2160 | "integrity": "sha512-4Wi2v47HMkNdRWrlFJNlIsrhV6z6nCyVKVAIiq14MAnc7wILEAINmn96IiPWTcXzT8y2S6yfBoX++MUxqiovag==", 2161 | "requires": { 2162 | "once": "^1.3.3" 2163 | } 2164 | }, 2165 | "string-width": { 2166 | "version": "2.1.1", 2167 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 2168 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 2169 | "dev": true, 2170 | "requires": { 2171 | "is-fullwidth-code-point": "^2.0.0", 2172 | "strip-ansi": "^4.0.0" 2173 | } 2174 | }, 2175 | "string.prototype.trimend": { 2176 | "version": "1.0.0", 2177 | "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.0.tgz", 2178 | "integrity": "sha512-EEJnGqa/xNfIg05SxiPSqRS7S9qwDhYts1TSLR1BQfYUfPe1stofgGKvwERK9+9yf+PpfBMlpBaCHucXGPQfUA==", 2179 | "dev": true, 2180 | "requires": { 2181 | "define-properties": "^1.1.3", 2182 | "es-abstract": "^1.17.5" 2183 | } 2184 | }, 2185 | "string.prototype.trimleft": { 2186 | "version": "2.1.2", 2187 | "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz", 2188 | "integrity": "sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw==", 2189 | "dev": true, 2190 | "requires": { 2191 | "define-properties": "^1.1.3", 2192 | "es-abstract": "^1.17.5", 2193 | "string.prototype.trimstart": "^1.0.0" 2194 | } 2195 | }, 2196 | "string.prototype.trimright": { 2197 | "version": "2.1.2", 2198 | "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz", 2199 | "integrity": "sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg==", 2200 | "dev": true, 2201 | "requires": { 2202 | "define-properties": "^1.1.3", 2203 | "es-abstract": "^1.17.5", 2204 | "string.prototype.trimend": "^1.0.0" 2205 | } 2206 | }, 2207 | "string.prototype.trimstart": { 2208 | "version": "1.0.0", 2209 | "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.0.tgz", 2210 | "integrity": "sha512-iCP8g01NFYiiBOnwG1Xc3WZLyoo+RuBymwIlWncShXDDJYWN6DbnM3odslBJdgCdRlq94B5s63NWAZlcn2CS4w==", 2211 | "dev": true, 2212 | "requires": { 2213 | "define-properties": "^1.1.3", 2214 | "es-abstract": "^1.17.5" 2215 | } 2216 | }, 2217 | "string2compact": { 2218 | "version": "1.3.0", 2219 | "resolved": "https://registry.npmjs.org/string2compact/-/string2compact-1.3.0.tgz", 2220 | "integrity": "sha512-004ulKKANDuQilQsNxy2lisrpMG0qUJxBU+2YCEF7KziRyNR0Nredm2qk0f1V82nva59H3y9GWeHXE63HzGRFw==", 2221 | "requires": { 2222 | "addr-to-ip-port": "^1.0.1", 2223 | "ipaddr.js": "^1.0.1" 2224 | } 2225 | }, 2226 | "string_decoder": { 2227 | "version": "1.3.0", 2228 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 2229 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 2230 | "requires": { 2231 | "safe-buffer": "~5.2.0" 2232 | }, 2233 | "dependencies": { 2234 | "safe-buffer": { 2235 | "version": "5.2.0", 2236 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", 2237 | "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" 2238 | } 2239 | } 2240 | }, 2241 | "strip-ansi": { 2242 | "version": "4.0.0", 2243 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 2244 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 2245 | "dev": true, 2246 | "requires": { 2247 | "ansi-regex": "^3.0.0" 2248 | } 2249 | }, 2250 | "strip-json-comments": { 2251 | "version": "2.0.1", 2252 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 2253 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 2254 | "dev": true 2255 | }, 2256 | "supports-color": { 2257 | "version": "6.0.0", 2258 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", 2259 | "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", 2260 | "dev": true, 2261 | "requires": { 2262 | "has-flag": "^3.0.0" 2263 | } 2264 | }, 2265 | "thirty-two": { 2266 | "version": "1.0.2", 2267 | "resolved": "https://registry.npmjs.org/thirty-two/-/thirty-two-1.0.2.tgz", 2268 | "integrity": "sha1-TKL//AKlEpDSdEueP1V2k8prYno=" 2269 | }, 2270 | "through": { 2271 | "version": "2.3.8", 2272 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 2273 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" 2274 | }, 2275 | "thunky": { 2276 | "version": "1.1.0", 2277 | "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", 2278 | "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" 2279 | }, 2280 | "to-arraybuffer": { 2281 | "version": "1.0.1", 2282 | "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", 2283 | "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=" 2284 | }, 2285 | "to-regex-range": { 2286 | "version": "5.0.1", 2287 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2288 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2289 | "dev": true, 2290 | "requires": { 2291 | "is-number": "^7.0.0" 2292 | } 2293 | }, 2294 | "toidentifier": { 2295 | "version": "1.0.0", 2296 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 2297 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 2298 | }, 2299 | "torrent-discovery": { 2300 | "version": "9.2.1", 2301 | "resolved": "https://registry.npmjs.org/torrent-discovery/-/torrent-discovery-9.2.1.tgz", 2302 | "integrity": "sha512-bjKkbTEkcoZTXF8nhcRu6UWqbkpUsehd/6umoZqjgj/dM8nD3O7wNkPZrmls+vVf+2LT9ejZMlNUvZCqSe8cqg==", 2303 | "requires": { 2304 | "bittorrent-dht": "^9.0.0", 2305 | "bittorrent-tracker": "^9.0.0", 2306 | "debug": "^4.0.0", 2307 | "run-parallel": "^1.1.2" 2308 | } 2309 | }, 2310 | "torrent-piece": { 2311 | "version": "2.0.0", 2312 | "resolved": "https://registry.npmjs.org/torrent-piece/-/torrent-piece-2.0.0.tgz", 2313 | "integrity": "sha512-H/Z/yCuvZJj1vl1IQHI8dvF2QrUuXRJoptT5DW5967/dsLpXlCg+uyhFR5lfNj5mNaYePUbKtnL+qKWZGXv4Nw==" 2314 | }, 2315 | "type-is": { 2316 | "version": "1.6.18", 2317 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2318 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2319 | "requires": { 2320 | "media-typer": "0.3.0", 2321 | "mime-types": "~2.1.24" 2322 | } 2323 | }, 2324 | "typedarray-to-buffer": { 2325 | "version": "3.1.5", 2326 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", 2327 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", 2328 | "requires": { 2329 | "is-typedarray": "^1.0.0" 2330 | } 2331 | }, 2332 | "uint64be": { 2333 | "version": "2.0.2", 2334 | "resolved": "https://registry.npmjs.org/uint64be/-/uint64be-2.0.2.tgz", 2335 | "integrity": "sha512-9QqdvpGQTXgxthP+lY4e/gIBy+RuqcBaC6JVwT5I3bDLgT/btL6twZMR0pI3/Fgah9G/pdwzIprE5gL6v9UvyQ==", 2336 | "requires": { 2337 | "buffer-alloc": "^1.1.0" 2338 | } 2339 | }, 2340 | "uniq": { 2341 | "version": "1.0.1", 2342 | "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", 2343 | "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=" 2344 | }, 2345 | "unordered-array-remove": { 2346 | "version": "1.0.2", 2347 | "resolved": "https://registry.npmjs.org/unordered-array-remove/-/unordered-array-remove-1.0.2.tgz", 2348 | "integrity": "sha1-xUbo+I4xegzyZEyX7LV9umbSUO8=" 2349 | }, 2350 | "unpipe": { 2351 | "version": "1.0.0", 2352 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2353 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 2354 | }, 2355 | "url": { 2356 | "version": "0.11.0", 2357 | "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", 2358 | "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", 2359 | "requires": { 2360 | "punycode": "1.3.2", 2361 | "querystring": "0.2.0" 2362 | } 2363 | }, 2364 | "ut_metadata": { 2365 | "version": "3.5.0", 2366 | "resolved": "https://registry.npmjs.org/ut_metadata/-/ut_metadata-3.5.0.tgz", 2367 | "integrity": "sha512-eqiRaDYiDl94uVB9oR8Yor+xl0rSKUovsqDxMt+hXzJt1yLYAo0HksVLlSiPPwkXBGFpERQADPanCi0EGhixnw==", 2368 | "requires": { 2369 | "bencode": "^2.0.0", 2370 | "bitfield": "^3.0.0", 2371 | "debug": "^4.0.0", 2372 | "simple-sha1": "^3.0.0" 2373 | }, 2374 | "dependencies": { 2375 | "simple-sha1": { 2376 | "version": "3.0.1", 2377 | "resolved": "https://registry.npmjs.org/simple-sha1/-/simple-sha1-3.0.1.tgz", 2378 | "integrity": "sha512-q7ehqWfHc1VhOm7sW099YDZ4I0yYX7rqyhqqhHV1IYeUTjPOhHyD3mXvv8k2P+rO7+7c8R4/D+8ffzC9BE7Cqg==", 2379 | "requires": { 2380 | "queue-microtask": "^1.1.2", 2381 | "rusha": "^0.8.1" 2382 | } 2383 | } 2384 | } 2385 | }, 2386 | "ut_pex": { 2387 | "version": "2.0.0", 2388 | "resolved": "https://registry.npmjs.org/ut_pex/-/ut_pex-2.0.0.tgz", 2389 | "integrity": "sha512-Uc0IxXGlES1DfeG+ITUISAvCF4Uldj7tt/n7s3TBt0KyXqDViOO26X5WfwXtUpEwn8fyZyerzf/YOK4rIZ2S3Q==", 2390 | "requires": { 2391 | "bencode": "^2.0.0", 2392 | "compact2string": "^1.2.0", 2393 | "string2compact": "^1.2.5" 2394 | } 2395 | }, 2396 | "utf-8-validate": { 2397 | "version": "5.0.2", 2398 | "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.2.tgz", 2399 | "integrity": "sha512-SwV++i2gTD5qh2XqaPzBnNX88N6HdyhQrNNRykvcS0QKvItV9u3vPEJr+X5Hhfb1JC0r0e1alL0iB09rY8+nmw==", 2400 | "optional": true, 2401 | "requires": { 2402 | "node-gyp-build": "~3.7.0" 2403 | } 2404 | }, 2405 | "util-deprecate": { 2406 | "version": "1.0.2", 2407 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2408 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 2409 | }, 2410 | "utils-merge": { 2411 | "version": "1.0.1", 2412 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2413 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 2414 | }, 2415 | "vary": { 2416 | "version": "1.1.2", 2417 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2418 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 2419 | }, 2420 | "videostream": { 2421 | "version": "3.2.1", 2422 | "resolved": "https://registry.npmjs.org/videostream/-/videostream-3.2.1.tgz", 2423 | "integrity": "sha512-Z4EcsX9aYNJZD1M+0jCeQ0t+5ETlHE88B2SF1fCuVxfn+XxHGJVec6tbHGqpULk4esOOLJEipAScOCDGHk+teQ==", 2424 | "requires": { 2425 | "binary-search": "^1.3.4", 2426 | "mediasource": "^2.2.2", 2427 | "mp4-box-encoding": "^1.3.0", 2428 | "mp4-stream": "^3.0.0", 2429 | "pump": "^3.0.0", 2430 | "range-slice-stream": "^2.0.0" 2431 | } 2432 | }, 2433 | "webtorrent": { 2434 | "version": "0.108.1", 2435 | "resolved": "https://registry.npmjs.org/webtorrent/-/webtorrent-0.108.1.tgz", 2436 | "integrity": "sha512-+w6JaqGKZBZHVrYLmG2VDuRLZlUhQrkLXw0/nw3VKV4aloICWGwBKzjLclXmexUhnqeVzZjCRIQgSZ8+YmgJUQ==", 2437 | "requires": { 2438 | "addr-to-ip-port": "^1.4.2", 2439 | "bitfield": "^3.0.0", 2440 | "bittorrent-dht": "^9.0.0", 2441 | "bittorrent-protocol": "^3.0.0", 2442 | "chrome-net": "^3.3.2", 2443 | "chunk-store-stream": "^4.0.0", 2444 | "create-torrent": "^4.0.0", 2445 | "debug": "^4.1.0", 2446 | "end-of-stream": "1.4.1", 2447 | "escape-html": "^1.0.3", 2448 | "fs-chunk-store": "^2.0.0", 2449 | "http-node": "github:feross/http-node#webtorrent", 2450 | "immediate-chunk-store": "^2.0.0", 2451 | "load-ip-set": "^2.1.0", 2452 | "memory-chunk-store": "^1.2.0", 2453 | "mime": "^2.4.0", 2454 | "multistream": "^4.0.0", 2455 | "package-json-versionify": "^1.0.2", 2456 | "parse-numeric-range": "^0.0.2", 2457 | "parse-torrent": "^7.0.0", 2458 | "pump": "^3.0.0", 2459 | "random-iterate": "^1.0.1", 2460 | "randombytes": "^2.0.3", 2461 | "range-parser": "^1.2.0", 2462 | "readable-stream": "^3.0.6", 2463 | "render-media": "^3.0.0", 2464 | "run-parallel": "^1.1.6", 2465 | "run-parallel-limit": "^1.0.3", 2466 | "simple-concat": "^1.0.0", 2467 | "simple-get": "^3.0.1", 2468 | "simple-peer": "^9.0.0", 2469 | "simple-sha1": "^3.0.1", 2470 | "speedometer": "^1.0.0", 2471 | "stream-to-blob": "^2.0.0", 2472 | "stream-to-blob-url": "^3.0.0", 2473 | "stream-with-known-length-to-buffer": "^1.0.0", 2474 | "torrent-discovery": "^9.1.1", 2475 | "torrent-piece": "^2.0.0", 2476 | "unordered-array-remove": "^1.0.2", 2477 | "ut_metadata": "^3.3.0", 2478 | "ut_pex": "^2.0.0" 2479 | }, 2480 | "dependencies": { 2481 | "end-of-stream": { 2482 | "version": "1.4.1", 2483 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", 2484 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", 2485 | "requires": { 2486 | "once": "^1.4.0" 2487 | } 2488 | }, 2489 | "mime": { 2490 | "version": "2.4.4", 2491 | "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz", 2492 | "integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==" 2493 | }, 2494 | "readable-stream": { 2495 | "version": "3.6.0", 2496 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 2497 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 2498 | "requires": { 2499 | "inherits": "^2.0.3", 2500 | "string_decoder": "^1.1.1", 2501 | "util-deprecate": "^1.0.1" 2502 | } 2503 | }, 2504 | "simple-sha1": { 2505 | "version": "3.0.1", 2506 | "resolved": "https://registry.npmjs.org/simple-sha1/-/simple-sha1-3.0.1.tgz", 2507 | "integrity": "sha512-q7ehqWfHc1VhOm7sW099YDZ4I0yYX7rqyhqqhHV1IYeUTjPOhHyD3mXvv8k2P+rO7+7c8R4/D+8ffzC9BE7Cqg==", 2508 | "requires": { 2509 | "queue-microtask": "^1.1.2", 2510 | "rusha": "^0.8.1" 2511 | } 2512 | } 2513 | } 2514 | }, 2515 | "which": { 2516 | "version": "1.3.1", 2517 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 2518 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 2519 | "dev": true, 2520 | "requires": { 2521 | "isexe": "^2.0.0" 2522 | } 2523 | }, 2524 | "which-module": { 2525 | "version": "2.0.0", 2526 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 2527 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 2528 | "dev": true 2529 | }, 2530 | "wide-align": { 2531 | "version": "1.1.3", 2532 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 2533 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 2534 | "dev": true, 2535 | "requires": { 2536 | "string-width": "^1.0.2 || 2" 2537 | } 2538 | }, 2539 | "wrap-ansi": { 2540 | "version": "5.1.0", 2541 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", 2542 | "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", 2543 | "dev": true, 2544 | "requires": { 2545 | "ansi-styles": "^3.2.0", 2546 | "string-width": "^3.0.0", 2547 | "strip-ansi": "^5.0.0" 2548 | }, 2549 | "dependencies": { 2550 | "ansi-regex": { 2551 | "version": "4.1.0", 2552 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 2553 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 2554 | "dev": true 2555 | }, 2556 | "string-width": { 2557 | "version": "3.1.0", 2558 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 2559 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 2560 | "dev": true, 2561 | "requires": { 2562 | "emoji-regex": "^7.0.1", 2563 | "is-fullwidth-code-point": "^2.0.0", 2564 | "strip-ansi": "^5.1.0" 2565 | } 2566 | }, 2567 | "strip-ansi": { 2568 | "version": "5.2.0", 2569 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 2570 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 2571 | "dev": true, 2572 | "requires": { 2573 | "ansi-regex": "^4.1.0" 2574 | } 2575 | } 2576 | } 2577 | }, 2578 | "wrappy": { 2579 | "version": "1.0.2", 2580 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2581 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 2582 | }, 2583 | "write-file-atomic": { 2584 | "version": "1.3.4", 2585 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz", 2586 | "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", 2587 | "requires": { 2588 | "graceful-fs": "^4.1.11", 2589 | "imurmurhash": "^0.1.4", 2590 | "slide": "^1.1.5" 2591 | } 2592 | }, 2593 | "ws": { 2594 | "version": "7.4.6", 2595 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", 2596 | "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==" 2597 | }, 2598 | "y18n": { 2599 | "version": "4.0.1", 2600 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", 2601 | "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==" 2602 | }, 2603 | "yargs": { 2604 | "version": "13.3.2", 2605 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", 2606 | "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", 2607 | "dev": true, 2608 | "requires": { 2609 | "cliui": "^5.0.0", 2610 | "find-up": "^3.0.0", 2611 | "get-caller-file": "^2.0.1", 2612 | "require-directory": "^2.1.1", 2613 | "require-main-filename": "^2.0.0", 2614 | "set-blocking": "^2.0.0", 2615 | "string-width": "^3.0.0", 2616 | "which-module": "^2.0.0", 2617 | "y18n": "^4.0.0", 2618 | "yargs-parser": "^13.1.2" 2619 | }, 2620 | "dependencies": { 2621 | "ansi-regex": { 2622 | "version": "4.1.0", 2623 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 2624 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 2625 | "dev": true 2626 | }, 2627 | "string-width": { 2628 | "version": "3.1.0", 2629 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 2630 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 2631 | "dev": true, 2632 | "requires": { 2633 | "emoji-regex": "^7.0.1", 2634 | "is-fullwidth-code-point": "^2.0.0", 2635 | "strip-ansi": "^5.1.0" 2636 | } 2637 | }, 2638 | "strip-ansi": { 2639 | "version": "5.2.0", 2640 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 2641 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 2642 | "dev": true, 2643 | "requires": { 2644 | "ansi-regex": "^4.1.0" 2645 | } 2646 | } 2647 | } 2648 | }, 2649 | "yargs-parser": { 2650 | "version": "13.1.2", 2651 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", 2652 | "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", 2653 | "dev": true, 2654 | "requires": { 2655 | "camelcase": "^5.0.0", 2656 | "decamelize": "^1.2.0" 2657 | } 2658 | }, 2659 | "yargs-unparser": { 2660 | "version": "1.6.0", 2661 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", 2662 | "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", 2663 | "dev": true, 2664 | "requires": { 2665 | "flat": "^4.1.0", 2666 | "lodash": "^4.17.15", 2667 | "yargs": "^13.3.0" 2668 | } 2669 | } 2670 | } 2671 | } 2672 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "torrent-web-seed", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node ./bin/webseed", 7 | "watch": "DEBUG=seedess:* nodemon ./bin/webseed", 8 | "debug": "DEBUG=seedess:* nodemon -x electron-scope ./bin/webseed", 9 | "test": "jest -w" 10 | }, 11 | "dependencies": { 12 | "address": "^1.1.2", 13 | "body-parser": "^1.19.0", 14 | "cookie-parser": "^1.4.5", 15 | "create-torrent": "^4.4.1", 16 | "debug": "^4.1.1", 17 | "express": "^4.17.1", 18 | "fetch": "^1.1.0", 19 | "localstorage-ponyfill": "^1.0.2", 20 | "memory-chunk-store": "^1.2.0", 21 | "mime": "^2.5.2", 22 | "minimatch": "^3.0.4", 23 | "morgan": "^1.10.0", 24 | "parse-torrent": "^7.1.2", 25 | "pretty-bytes": "^5.3.0", 26 | "serve-favicon": "^2.5.0", 27 | "showdown": "^1.9.1", 28 | "url": "^0.11.0", 29 | "webtorrent": "^0.108.1" 30 | }, 31 | "devDependencies": { 32 | "jest": "^27.3.1" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /pm2.json: -------------------------------------------------------------------------------- 1 | { 2 | "apps": [ 3 | { 4 | "name": "webseed", 5 | "script": "./bin/webseed", 6 | "log_date_format": "YYYY-MM-DD", 7 | "exec_mode": "fork_mode", 8 | "env": { 9 | "PORT": 8002, 10 | "DEBUG": "seedess:*" 11 | } 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /public/css/github-markdown.css: -------------------------------------------------------------------------------- 1 | .markdown-body .octicon { 2 | display: inline-block; 3 | fill: currentColor; 4 | vertical-align: text-bottom; 5 | } 6 | 7 | .markdown-body .anchor { 8 | float: left; 9 | line-height: 1; 10 | margin-left: -20px; 11 | padding-right: 4px; 12 | } 13 | 14 | .markdown-body .anchor:focus { 15 | outline: none; 16 | } 17 | 18 | .markdown-body h1 .octicon-link, 19 | .markdown-body h2 .octicon-link, 20 | .markdown-body h3 .octicon-link, 21 | .markdown-body h4 .octicon-link, 22 | .markdown-body h5 .octicon-link, 23 | .markdown-body h6 .octicon-link { 24 | color: #1b1f23; 25 | vertical-align: middle; 26 | visibility: hidden; 27 | } 28 | 29 | .markdown-body h1:hover .anchor, 30 | .markdown-body h2:hover .anchor, 31 | .markdown-body h3:hover .anchor, 32 | .markdown-body h4:hover .anchor, 33 | .markdown-body h5:hover .anchor, 34 | .markdown-body h6:hover .anchor { 35 | text-decoration: none; 36 | } 37 | 38 | .markdown-body h1:hover .anchor .octicon-link, 39 | .markdown-body h2:hover .anchor .octicon-link, 40 | .markdown-body h3:hover .anchor .octicon-link, 41 | .markdown-body h4:hover .anchor .octicon-link, 42 | .markdown-body h5:hover .anchor .octicon-link, 43 | .markdown-body h6:hover .anchor .octicon-link { 44 | visibility: visible; 45 | } 46 | 47 | .markdown-body h1:hover .anchor .octicon-link:before, 48 | .markdown-body h2:hover .anchor .octicon-link:before, 49 | .markdown-body h3:hover .anchor .octicon-link:before, 50 | .markdown-body h4:hover .anchor .octicon-link:before, 51 | .markdown-body h5:hover .anchor .octicon-link:before, 52 | .markdown-body h6:hover .anchor .octicon-link:before { 53 | width: 16px; 54 | height: 16px; 55 | content: ' '; 56 | display: inline-block; 57 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E"); 58 | }.markdown-body { 59 | -ms-text-size-adjust: 100%; 60 | -webkit-text-size-adjust: 100%; 61 | line-height: 1.5; 62 | color: #24292e; 63 | font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; 64 | font-size: 16px; 65 | line-height: 1.5; 66 | word-wrap: break-word; 67 | } 68 | 69 | .markdown-body details { 70 | display: block; 71 | } 72 | 73 | .markdown-body summary { 74 | display: list-item; 75 | } 76 | 77 | .markdown-body a { 78 | background-color: initial; 79 | } 80 | 81 | .markdown-body a:active, 82 | .markdown-body a:hover { 83 | outline-width: 0; 84 | } 85 | 86 | .markdown-body strong { 87 | font-weight: inherit; 88 | font-weight: bolder; 89 | } 90 | 91 | .markdown-body h1 { 92 | font-size: 2em; 93 | margin: .67em 0; 94 | } 95 | 96 | .markdown-body img { 97 | border-style: none; 98 | } 99 | 100 | .markdown-body code, 101 | .markdown-body kbd, 102 | .markdown-body pre { 103 | font-family: monospace,monospace; 104 | font-size: 1em; 105 | } 106 | 107 | .markdown-body hr { 108 | box-sizing: initial; 109 | height: 0; 110 | overflow: visible; 111 | } 112 | 113 | .markdown-body input { 114 | font: inherit; 115 | margin: 0; 116 | } 117 | 118 | .markdown-body input { 119 | overflow: visible; 120 | } 121 | 122 | .markdown-body [type=checkbox] { 123 | box-sizing: border-box; 124 | padding: 0; 125 | } 126 | 127 | .markdown-body * { 128 | box-sizing: border-box; 129 | } 130 | 131 | .markdown-body input { 132 | font-family: inherit; 133 | font-size: inherit; 134 | line-height: inherit; 135 | } 136 | 137 | .markdown-body a { 138 | color: #0366d6; 139 | text-decoration: none; 140 | } 141 | 142 | .markdown-body a:hover { 143 | text-decoration: underline; 144 | } 145 | 146 | .markdown-body strong { 147 | font-weight: 600; 148 | } 149 | 150 | .markdown-body hr { 151 | height: 0; 152 | margin: 15px 0; 153 | overflow: hidden; 154 | background: transparent; 155 | border: 0; 156 | border-bottom: 1px solid #dfe2e5; 157 | } 158 | 159 | .markdown-body hr:after, 160 | .markdown-body hr:before { 161 | display: table; 162 | content: ""; 163 | } 164 | 165 | .markdown-body hr:after { 166 | clear: both; 167 | } 168 | 169 | .markdown-body table { 170 | border-spacing: 0; 171 | border-collapse: collapse; 172 | } 173 | 174 | .markdown-body td, 175 | .markdown-body th { 176 | padding: 0; 177 | } 178 | 179 | .markdown-body details summary { 180 | cursor: pointer; 181 | } 182 | 183 | .markdown-body kbd { 184 | display: inline-block; 185 | padding: 3px 5px; 186 | font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; 187 | line-height: 10px; 188 | color: #444d56; 189 | vertical-align: middle; 190 | background-color: #fafbfc; 191 | border: 1px solid #d1d5da; 192 | border-radius: 3px; 193 | box-shadow: inset 0 -1px 0 #d1d5da; 194 | } 195 | 196 | .markdown-body h1, 197 | .markdown-body h2, 198 | .markdown-body h3, 199 | .markdown-body h4, 200 | .markdown-body h5, 201 | .markdown-body h6 { 202 | margin-top: 0; 203 | margin-bottom: 0; 204 | } 205 | 206 | .markdown-body h1 { 207 | font-size: 32px; 208 | } 209 | 210 | .markdown-body h1, 211 | .markdown-body h2 { 212 | font-weight: 600; 213 | } 214 | 215 | .markdown-body h2 { 216 | font-size: 24px; 217 | } 218 | 219 | .markdown-body h3 { 220 | font-size: 20px; 221 | } 222 | 223 | .markdown-body h3, 224 | .markdown-body h4 { 225 | font-weight: 600; 226 | } 227 | 228 | .markdown-body h4 { 229 | font-size: 16px; 230 | } 231 | 232 | .markdown-body h5 { 233 | font-size: 14px; 234 | } 235 | 236 | .markdown-body h5, 237 | .markdown-body h6 { 238 | font-weight: 600; 239 | } 240 | 241 | .markdown-body h6 { 242 | font-size: 12px; 243 | } 244 | 245 | .markdown-body p { 246 | margin-top: 0; 247 | margin-bottom: 10px; 248 | } 249 | 250 | .markdown-body blockquote { 251 | margin: 0; 252 | } 253 | 254 | .markdown-body ol, 255 | .markdown-body ul { 256 | padding-left: 0; 257 | margin-top: 0; 258 | margin-bottom: 0; 259 | } 260 | 261 | .markdown-body ol ol, 262 | .markdown-body ul ol { 263 | list-style-type: lower-roman; 264 | } 265 | 266 | .markdown-body ol ol ol, 267 | .markdown-body ol ul ol, 268 | .markdown-body ul ol ol, 269 | .markdown-body ul ul ol { 270 | list-style-type: lower-alpha; 271 | } 272 | 273 | .markdown-body dd { 274 | margin-left: 0; 275 | } 276 | 277 | .markdown-body code, 278 | .markdown-body pre { 279 | font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; 280 | font-size: 12px; 281 | } 282 | 283 | .markdown-body pre { 284 | margin-top: 0; 285 | margin-bottom: 0; 286 | } 287 | 288 | .markdown-body input::-webkit-inner-spin-button, 289 | .markdown-body input::-webkit-outer-spin-button { 290 | margin: 0; 291 | -webkit-appearance: none; 292 | appearance: none; 293 | } 294 | 295 | .markdown-body :checked+.radio-label { 296 | position: relative; 297 | z-index: 1; 298 | border-color: #0366d6; 299 | } 300 | 301 | .markdown-body .border { 302 | border: 1px solid #e1e4e8!important; 303 | } 304 | 305 | .markdown-body .border-0 { 306 | border: 0!important; 307 | } 308 | 309 | .markdown-body .border-bottom { 310 | border-bottom: 1px solid #e1e4e8!important; 311 | } 312 | 313 | .markdown-body .rounded-1 { 314 | border-radius: 3px!important; 315 | } 316 | 317 | .markdown-body .bg-white { 318 | background-color: #fff!important; 319 | } 320 | 321 | .markdown-body .bg-gray-light { 322 | background-color: #fafbfc!important; 323 | } 324 | 325 | .markdown-body .text-gray-light { 326 | color: #6a737d!important; 327 | } 328 | 329 | .markdown-body .mb-0 { 330 | margin-bottom: 0!important; 331 | } 332 | 333 | .markdown-body .my-2 { 334 | margin-top: 8px!important; 335 | margin-bottom: 8px!important; 336 | } 337 | 338 | .markdown-body .pl-0 { 339 | padding-left: 0!important; 340 | } 341 | 342 | .markdown-body .py-0 { 343 | padding-top: 0!important; 344 | padding-bottom: 0!important; 345 | } 346 | 347 | .markdown-body .pl-1 { 348 | padding-left: 4px!important; 349 | } 350 | 351 | .markdown-body .pl-2 { 352 | padding-left: 8px!important; 353 | } 354 | 355 | .markdown-body .py-2 { 356 | padding-top: 8px!important; 357 | padding-bottom: 8px!important; 358 | } 359 | 360 | .markdown-body .pl-3, 361 | .markdown-body .px-3 { 362 | padding-left: 16px!important; 363 | } 364 | 365 | .markdown-body .px-3 { 366 | padding-right: 16px!important; 367 | } 368 | 369 | .markdown-body .pl-4 { 370 | padding-left: 24px!important; 371 | } 372 | 373 | .markdown-body .pl-5 { 374 | padding-left: 32px!important; 375 | } 376 | 377 | .markdown-body .pl-6 { 378 | padding-left: 40px!important; 379 | } 380 | 381 | .markdown-body .f6 { 382 | font-size: 12px!important; 383 | } 384 | 385 | .markdown-body .lh-condensed { 386 | line-height: 1.25!important; 387 | } 388 | 389 | .markdown-body .text-bold { 390 | font-weight: 600!important; 391 | } 392 | 393 | .markdown-body .pl-c { 394 | color: #6a737d; 395 | } 396 | 397 | .markdown-body .pl-c1, 398 | .markdown-body .pl-s .pl-v { 399 | color: #005cc5; 400 | } 401 | 402 | .markdown-body .pl-e, 403 | .markdown-body .pl-en { 404 | color: #6f42c1; 405 | } 406 | 407 | .markdown-body .pl-s .pl-s1, 408 | .markdown-body .pl-smi { 409 | color: #24292e; 410 | } 411 | 412 | .markdown-body .pl-ent { 413 | color: #22863a; 414 | } 415 | 416 | .markdown-body .pl-k { 417 | color: #d73a49; 418 | } 419 | 420 | .markdown-body .pl-pds, 421 | .markdown-body .pl-s, 422 | .markdown-body .pl-s .pl-pse .pl-s1, 423 | .markdown-body .pl-sr, 424 | .markdown-body .pl-sr .pl-cce, 425 | .markdown-body .pl-sr .pl-sra, 426 | .markdown-body .pl-sr .pl-sre { 427 | color: #032f62; 428 | } 429 | 430 | .markdown-body .pl-smw, 431 | .markdown-body .pl-v { 432 | color: #e36209; 433 | } 434 | 435 | .markdown-body .pl-bu { 436 | color: #b31d28; 437 | } 438 | 439 | .markdown-body .pl-ii { 440 | color: #fafbfc; 441 | background-color: #b31d28; 442 | } 443 | 444 | .markdown-body .pl-c2 { 445 | color: #fafbfc; 446 | background-color: #d73a49; 447 | } 448 | 449 | .markdown-body .pl-c2:before { 450 | content: "^M"; 451 | } 452 | 453 | .markdown-body .pl-sr .pl-cce { 454 | font-weight: 700; 455 | color: #22863a; 456 | } 457 | 458 | .markdown-body .pl-ml { 459 | color: #735c0f; 460 | } 461 | 462 | .markdown-body .pl-mh, 463 | .markdown-body .pl-mh .pl-en, 464 | .markdown-body .pl-ms { 465 | font-weight: 700; 466 | color: #005cc5; 467 | } 468 | 469 | .markdown-body .pl-mi { 470 | font-style: italic; 471 | color: #24292e; 472 | } 473 | 474 | .markdown-body .pl-mb { 475 | font-weight: 700; 476 | color: #24292e; 477 | } 478 | 479 | .markdown-body .pl-md { 480 | color: #b31d28; 481 | background-color: #ffeef0; 482 | } 483 | 484 | .markdown-body .pl-mi1 { 485 | color: #22863a; 486 | background-color: #f0fff4; 487 | } 488 | 489 | .markdown-body .pl-mc { 490 | color: #e36209; 491 | background-color: #ffebda; 492 | } 493 | 494 | .markdown-body .pl-mi2 { 495 | color: #f6f8fa; 496 | background-color: #005cc5; 497 | } 498 | 499 | .markdown-body .pl-mdr { 500 | font-weight: 700; 501 | color: #6f42c1; 502 | } 503 | 504 | .markdown-body .pl-ba { 505 | color: #586069; 506 | } 507 | 508 | .markdown-body .pl-sg { 509 | color: #959da5; 510 | } 511 | 512 | .markdown-body .pl-corl { 513 | text-decoration: underline; 514 | color: #032f62; 515 | } 516 | 517 | .markdown-body .mb-0 { 518 | margin-bottom: 0!important; 519 | } 520 | 521 | .markdown-body .my-2 { 522 | margin-bottom: 8px!important; 523 | } 524 | 525 | .markdown-body .my-2 { 526 | margin-top: 8px!important; 527 | } 528 | 529 | .markdown-body .pl-0 { 530 | padding-left: 0!important; 531 | } 532 | 533 | .markdown-body .py-0 { 534 | padding-top: 0!important; 535 | padding-bottom: 0!important; 536 | } 537 | 538 | .markdown-body .pl-1 { 539 | padding-left: 4px!important; 540 | } 541 | 542 | .markdown-body .pl-2 { 543 | padding-left: 8px!important; 544 | } 545 | 546 | .markdown-body .py-2 { 547 | padding-top: 8px!important; 548 | padding-bottom: 8px!important; 549 | } 550 | 551 | .markdown-body .pl-3 { 552 | padding-left: 16px!important; 553 | } 554 | 555 | .markdown-body .pl-4 { 556 | padding-left: 24px!important; 557 | } 558 | 559 | .markdown-body .pl-5 { 560 | padding-left: 32px!important; 561 | } 562 | 563 | .markdown-body .pl-6 { 564 | padding-left: 40px!important; 565 | } 566 | 567 | .markdown-body .pl-7 { 568 | padding-left: 48px!important; 569 | } 570 | 571 | .markdown-body .pl-8 { 572 | padding-left: 64px!important; 573 | } 574 | 575 | .markdown-body .pl-9 { 576 | padding-left: 80px!important; 577 | } 578 | 579 | .markdown-body .pl-10 { 580 | padding-left: 96px!important; 581 | } 582 | 583 | .markdown-body .pl-11 { 584 | padding-left: 112px!important; 585 | } 586 | 587 | .markdown-body .pl-12 { 588 | padding-left: 128px!important; 589 | } 590 | 591 | .markdown-body hr { 592 | border-bottom-color: #eee; 593 | } 594 | 595 | .markdown-body kbd { 596 | display: inline-block; 597 | padding: 3px 5px; 598 | font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; 599 | line-height: 10px; 600 | color: #444d56; 601 | vertical-align: middle; 602 | background-color: #fafbfc; 603 | border: 1px solid #d1d5da; 604 | border-radius: 3px; 605 | box-shadow: inset 0 -1px 0 #d1d5da; 606 | } 607 | 608 | .markdown-body:after, 609 | .markdown-body:before { 610 | display: table; 611 | content: ""; 612 | } 613 | 614 | .markdown-body:after { 615 | clear: both; 616 | } 617 | 618 | .markdown-body>:first-child { 619 | margin-top: 0!important; 620 | } 621 | 622 | .markdown-body>:last-child { 623 | margin-bottom: 0!important; 624 | } 625 | 626 | .markdown-body a:not([href]) { 627 | color: inherit; 628 | text-decoration: none; 629 | } 630 | 631 | .markdown-body blockquote, 632 | .markdown-body details, 633 | .markdown-body dl, 634 | .markdown-body ol, 635 | .markdown-body p, 636 | .markdown-body pre, 637 | .markdown-body table, 638 | .markdown-body ul { 639 | margin-top: 0; 640 | margin-bottom: 16px; 641 | } 642 | 643 | .markdown-body hr { 644 | height: .25em; 645 | padding: 0; 646 | margin: 24px 0; 647 | background-color: #e1e4e8; 648 | border: 0; 649 | } 650 | 651 | .markdown-body blockquote { 652 | padding: 0 1em; 653 | color: #6a737d; 654 | border-left: .25em solid #dfe2e5; 655 | } 656 | 657 | .markdown-body blockquote>:first-child { 658 | margin-top: 0; 659 | } 660 | 661 | .markdown-body blockquote>:last-child { 662 | margin-bottom: 0; 663 | } 664 | 665 | .markdown-body h1, 666 | .markdown-body h2, 667 | .markdown-body h3, 668 | .markdown-body h4, 669 | .markdown-body h5, 670 | .markdown-body h6 { 671 | margin-top: 24px; 672 | margin-bottom: 16px; 673 | font-weight: 600; 674 | line-height: 1.25; 675 | } 676 | 677 | .markdown-body h1 { 678 | font-size: 2em; 679 | } 680 | 681 | .markdown-body h1, 682 | .markdown-body h2 { 683 | padding-bottom: .3em; 684 | border-bottom: 1px solid #eaecef; 685 | } 686 | 687 | .markdown-body h2 { 688 | font-size: 1.5em; 689 | } 690 | 691 | .markdown-body h3 { 692 | font-size: 1.25em; 693 | } 694 | 695 | .markdown-body h4 { 696 | font-size: 1em; 697 | } 698 | 699 | .markdown-body h5 { 700 | font-size: .875em; 701 | } 702 | 703 | .markdown-body h6 { 704 | font-size: .85em; 705 | color: #6a737d; 706 | } 707 | 708 | .markdown-body ol, 709 | .markdown-body ul { 710 | padding-left: 2em; 711 | } 712 | 713 | .markdown-body ol ol, 714 | .markdown-body ol ul, 715 | .markdown-body ul ol, 716 | .markdown-body ul ul { 717 | margin-top: 0; 718 | margin-bottom: 0; 719 | } 720 | 721 | .markdown-body li { 722 | word-wrap: break-all; 723 | } 724 | 725 | .markdown-body li>p { 726 | margin-top: 16px; 727 | } 728 | 729 | .markdown-body li+li { 730 | margin-top: .25em; 731 | } 732 | 733 | .markdown-body dl { 734 | padding: 0; 735 | } 736 | 737 | .markdown-body dl dt { 738 | padding: 0; 739 | margin-top: 16px; 740 | font-size: 1em; 741 | font-style: italic; 742 | font-weight: 600; 743 | } 744 | 745 | .markdown-body dl dd { 746 | padding: 0 16px; 747 | margin-bottom: 16px; 748 | } 749 | 750 | .markdown-body table { 751 | display: block; 752 | width: 100%; 753 | overflow: auto; 754 | } 755 | 756 | .markdown-body table th { 757 | font-weight: 600; 758 | } 759 | 760 | .markdown-body table td, 761 | .markdown-body table th { 762 | padding: 6px 13px; 763 | border: 1px solid #dfe2e5; 764 | } 765 | 766 | .markdown-body table tr { 767 | background-color: #fff; 768 | border-top: 1px solid #c6cbd1; 769 | } 770 | 771 | .markdown-body table tr:nth-child(2n) { 772 | background-color: #f6f8fa; 773 | } 774 | 775 | .markdown-body img { 776 | max-width: 100%; 777 | box-sizing: initial; 778 | background-color: #fff; 779 | } 780 | 781 | .markdown-body img[align=right] { 782 | padding-left: 20px; 783 | } 784 | 785 | .markdown-body img[align=left] { 786 | padding-right: 20px; 787 | } 788 | 789 | .markdown-body code { 790 | padding: .2em .4em; 791 | margin: 0; 792 | font-size: 85%; 793 | background-color: rgba(27,31,35,.05); 794 | border-radius: 3px; 795 | } 796 | 797 | .markdown-body pre { 798 | word-wrap: normal; 799 | } 800 | 801 | .markdown-body pre>code { 802 | padding: 0; 803 | margin: 0; 804 | font-size: 100%; 805 | word-break: normal; 806 | white-space: pre; 807 | background: transparent; 808 | border: 0; 809 | } 810 | 811 | .markdown-body .highlight { 812 | margin-bottom: 16px; 813 | } 814 | 815 | .markdown-body .highlight pre { 816 | margin-bottom: 0; 817 | word-break: normal; 818 | } 819 | 820 | .markdown-body .highlight pre, 821 | .markdown-body pre { 822 | padding: 16px; 823 | overflow: auto; 824 | font-size: 85%; 825 | line-height: 1.45; 826 | background-color: #f6f8fa; 827 | border-radius: 3px; 828 | } 829 | 830 | .markdown-body pre code { 831 | display: inline; 832 | max-width: auto; 833 | padding: 0; 834 | margin: 0; 835 | overflow: visible; 836 | line-height: inherit; 837 | word-wrap: normal; 838 | background-color: initial; 839 | border: 0; 840 | } 841 | 842 | .markdown-body .commit-tease-sha { 843 | display: inline-block; 844 | font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; 845 | font-size: 90%; 846 | color: #444d56; 847 | } 848 | 849 | .markdown-body .full-commit .btn-outline:not(:disabled):hover { 850 | color: #005cc5; 851 | border-color: #005cc5; 852 | } 853 | 854 | .markdown-body .blob-wrapper { 855 | overflow-x: auto; 856 | overflow-y: hidden; 857 | } 858 | 859 | .markdown-body .blob-wrapper-embedded { 860 | max-height: 240px; 861 | overflow-y: auto; 862 | } 863 | 864 | .markdown-body .blob-num { 865 | width: 1%; 866 | min-width: 50px; 867 | padding-right: 10px; 868 | padding-left: 10px; 869 | font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; 870 | font-size: 12px; 871 | line-height: 20px; 872 | color: rgba(27,31,35,.3); 873 | text-align: right; 874 | white-space: nowrap; 875 | vertical-align: top; 876 | cursor: pointer; 877 | -webkit-user-select: none; 878 | -moz-user-select: none; 879 | -ms-user-select: none; 880 | user-select: none; 881 | } 882 | 883 | .markdown-body .blob-num:hover { 884 | color: rgba(27,31,35,.6); 885 | } 886 | 887 | .markdown-body .blob-num:before { 888 | content: attr(data-line-number); 889 | } 890 | 891 | .markdown-body .blob-code { 892 | position: relative; 893 | padding-right: 10px; 894 | padding-left: 10px; 895 | line-height: 20px; 896 | vertical-align: top; 897 | } 898 | 899 | .markdown-body .blob-code-inner { 900 | overflow: visible; 901 | font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; 902 | font-size: 12px; 903 | color: #24292e; 904 | word-wrap: normal; 905 | white-space: pre; 906 | } 907 | 908 | .markdown-body .pl-token.active, 909 | .markdown-body .pl-token:hover { 910 | cursor: pointer; 911 | background: #ffea7f; 912 | } 913 | 914 | .markdown-body .tab-size[data-tab-size="1"] { 915 | -moz-tab-size: 1; 916 | tab-size: 1; 917 | } 918 | 919 | .markdown-body .tab-size[data-tab-size="2"] { 920 | -moz-tab-size: 2; 921 | tab-size: 2; 922 | } 923 | 924 | .markdown-body .tab-size[data-tab-size="3"] { 925 | -moz-tab-size: 3; 926 | tab-size: 3; 927 | } 928 | 929 | .markdown-body .tab-size[data-tab-size="4"] { 930 | -moz-tab-size: 4; 931 | tab-size: 4; 932 | } 933 | 934 | .markdown-body .tab-size[data-tab-size="5"] { 935 | -moz-tab-size: 5; 936 | tab-size: 5; 937 | } 938 | 939 | .markdown-body .tab-size[data-tab-size="6"] { 940 | -moz-tab-size: 6; 941 | tab-size: 6; 942 | } 943 | 944 | .markdown-body .tab-size[data-tab-size="7"] { 945 | -moz-tab-size: 7; 946 | tab-size: 7; 947 | } 948 | 949 | .markdown-body .tab-size[data-tab-size="8"] { 950 | -moz-tab-size: 8; 951 | tab-size: 8; 952 | } 953 | 954 | .markdown-body .tab-size[data-tab-size="9"] { 955 | -moz-tab-size: 9; 956 | tab-size: 9; 957 | } 958 | 959 | .markdown-body .tab-size[data-tab-size="10"] { 960 | -moz-tab-size: 10; 961 | tab-size: 10; 962 | } 963 | 964 | .markdown-body .tab-size[data-tab-size="11"] { 965 | -moz-tab-size: 11; 966 | tab-size: 11; 967 | } 968 | 969 | .markdown-body .tab-size[data-tab-size="12"] { 970 | -moz-tab-size: 12; 971 | tab-size: 12; 972 | } 973 | 974 | .markdown-body .task-list-item { 975 | list-style-type: none; 976 | } 977 | 978 | .markdown-body .task-list-item+.task-list-item { 979 | margin-top: 3px; 980 | } 981 | 982 | .markdown-body .task-list-item input { 983 | margin: 0 .2em .25em -1.6em; 984 | vertical-align: middle; 985 | } -------------------------------------------------------------------------------- /public/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 50px; 3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 4 | } 5 | 6 | a { 7 | color: #00B7FF; 8 | } -------------------------------------------------------------------------------- /public/file/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /public/images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seedess/webseed/2077e11aed460a746e2415beba20209d8c993aa4/public/images/.DS_Store -------------------------------------------------------------------------------- /public/images/.gitignore: -------------------------------------------------------------------------------- 1 | .* 2 | !.gitignore -------------------------------------------------------------------------------- /public/images/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seedess/webseed/2077e11aed460a746e2415beba20209d8c993aa4/public/images/favicon-16x16.png -------------------------------------------------------------------------------- /public/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seedess/webseed/2077e11aed460a746e2415beba20209d8c993aa4/public/images/favicon.ico -------------------------------------------------------------------------------- /public/test.html: -------------------------------------------------------------------------------- 1 | hello -------------------------------------------------------------------------------- /public/torrent/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /public/videos/infinite-prism.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Seedess/webseed/2077e11aed460a746e2415beba20209d8c993aa4/public/videos/infinite-prism.mp4 -------------------------------------------------------------------------------- /routes/file/file.js: -------------------------------------------------------------------------------- 1 | var express = require('express') 2 | var router = express.Router() 3 | var debug = require('debug')('seedess:webseed:file') 4 | var fs = require('fs') 5 | var WebTorrent = require('webtorrent') 6 | var store = require('memory-chunk-store') 7 | var webseed = require('../../lib/webseed') 8 | var prettyBytes = require('pretty-bytes') 9 | var path = require('path') 10 | 11 | const maxConns = 100 12 | const maxLifetime = 60*1000 // ms 13 | var file_save_path = path.resolve(__dirname, '../cache/file/') 14 | const torrentOpts = { store, path: file_save_path } 15 | 16 | let timeouts = {} // torrent lifetime timeouts 17 | 18 | // todo: set maxConns per torrent depending on load 19 | var client = new WebTorrent({ 20 | maxConns: getOptimalMaxConnsPerTorrent(1, maxConns), // limit connections per torrent for mem usage 21 | }) 22 | 23 | // cleanup and progress display 24 | onCompleteDestorySwarm(client) 25 | 26 | function showError(err, next) { 27 | next(err) 28 | } 29 | 30 | function getOptimalMaxConnsPerTorrent(numTorrents, maxConns) { 31 | return Math.ceil((maxConns - (maxConns / ( (numTorrents + 10) * 0.1))) / numTorrents) 32 | } 33 | 34 | function selectFiles(torrent, selected_files = []) { 35 | // Remove default selection (whole torrent) 36 | torrent.deselect(0, torrent.pieces.length - 1, false) 37 | 38 | // Add selections (individual files) 39 | if (torrent.files) { 40 | for (let file of torrent.files) { 41 | if (selected_files.indexOf(file) != -1) { 42 | debug('electing file ' + file.path + ' of torrent ' + torrent.name) 43 | file.select() 44 | } else { 45 | debug('deselecting file ' + file.path + ' of torrent ' + torrent.name) 46 | file.deselect() 47 | } 48 | } 49 | } 50 | } 51 | 52 | function getFileByPath(torrent, path) { 53 | for (let file of torrent.files) { 54 | if (file.path == path) { 55 | return file 56 | } 57 | } 58 | } 59 | 60 | function getClientStats(client) { 61 | const numTorrents = client.torrents.length 62 | const numPeers = client.torrents.reduce((sum, torrent) => sum + torrent.numPeers, 0) 63 | client.maxConns = getOptimalMaxConnsPerTorrent(numTorrents, maxConns) 64 | return { 65 | 'Progress': numTorrents + ' torrents.', 66 | 'Peers': numPeers, 67 | 'maxConns': client.maxConns, 68 | 'progress': parseFloat(client.progress * 100).toFixed(2) + '%', 69 | 'downloaded': prettyBytes(client.torrents.reduce((sum, torrent) => sum + torrent.received, 0)), 70 | 'downloadSpeed': prettyBytes(client.downloadSpeed), 71 | 'uploadSpeed': prettyBytes(client.uploadSpeed) 72 | } 73 | } 74 | 75 | function getTorrentStats(torrent) { 76 | return { 77 | 'name': torrent.name, 78 | 'progress': parseFloat(torrent.progress * 100).toFixed(2) + '%', 79 | 'speed': prettyBytes(torrent.uploadSpeed) + ' / ' + prettyBytes(torrent.downloadSpeed), 80 | 'peers': torrent.numPeers, 81 | 'ratio': parseFloat(torrent.ratio).toFixed(2), 82 | 'downloaded': prettyBytes(torrent.received), 83 | 'uploaded': prettyBytes(torrent.uploaded), 84 | 'infoHash:': torrent.infoHash, 85 | 'path': torrent.path 86 | } 87 | } 88 | 89 | function onCompleteDestorySwarm(client) { 90 | var interval = 10000 91 | var timer = setInterval(() => { 92 | 93 | if (client.torrents.length) { 94 | const numTorrents = client.torrents.length 95 | const numPeers = client.torrents.reduce((sum, torrent) => sum + torrent.numPeers, 0) 96 | client.maxConns = getOptimalMaxConnsPerTorrent(numTorrents, maxConns) 97 | 98 | debug(getClientStats(client)) 99 | client.torrents.forEach(torrent => { 100 | debug(getTorrentStats(torrent)) 101 | 102 | if (torrent.progress == 1) { 103 | debug('Destroying swarm, torrent fully downloaded.', torrent.name, torrent.path) 104 | torrent.destroy() 105 | } 106 | }) 107 | } 108 | 109 | }, interval) 110 | } 111 | 112 | // destroys torrents not requested after some time 113 | function renewTorrentLifetime(torrent) { 114 | clearTimeout(timeouts[torrent.infoHash]) 115 | debug('Timeout on destroy torrent cleared', torrent.infoHash) 116 | timeouts[torrent.infoHash] = setTimeout(() => { 117 | if (!torrent || torrent.destroyed) return debug('Torrent already destroyed') 118 | debug('Destroying torrent ', torrent.infoHash, torrent.name, ' max lifetime ', maxLifetime/1000 + 'secs') 119 | //client.remove(torrent.infoHash) // fixme 120 | selectFiles(torrent, []) // remove when client.remove() doesn't cause errors 121 | }, maxLifetime) 122 | } 123 | 124 | function getLocalTorrentFilePath(infoHash, cb) { 125 | const torrentFilePath = './public/cache/' + infoHash + '.torrent' 126 | fs.access(torrentFilePath, fs.R_OK, function(err) { 127 | cb(err, !err && torrentFilePath) 128 | }) 129 | } 130 | 131 | /* List torrent files /file/:infoHash */ 132 | router.get('/:infoHash', function(req, res, next) { 133 | var infoHash = new String(req.params.infoHash).toLowerCase() 134 | const sendJson = req.query.json 135 | 136 | debug('GET file/:infoHash ', { infoHash, sendJson }) 137 | if (infoHash.length != 40) { 138 | return showError(new Error('Invalid Infohash length'), next) 139 | } 140 | 141 | var sendResp = (torrent) => { 142 | 143 | debug('sendResp', torrent) 144 | 145 | if (sendJson) { 146 | const { name, infoHash, created, createdBy, length, pieceLength, lastPieceLength, magnetURI, timeRemaining, received, uploaded, downloadSpeed, progress, ratio, numPeers, comment } = torrent 147 | return res.json({ 148 | torrent: { 149 | name, infoHash, created, createdBy, length, pieceLength, lastPieceLength, magnetURI, timeRemaining, received, uploaded, downloadSpeed, progress, ratio, numPeers, comment, 150 | files: torrent.files.map(({ name, length }) => ({ name, length})) 151 | } 152 | }) 153 | } 154 | 155 | res.setHeader('Content-Type', 'text/html') 156 | var listHtml = "" 157 | if (torrent.files) { 158 | listHtml = torrent.files.map(function (file, i) { 159 | return '
  • ' + file.path + ' ' + 160 | '(' + prettyBytes(file.length) + ')
  • ' 161 | }).join('
    ') 162 | } 163 | 164 | var html = '

    ' + torrent.name + '

      ' + listHtml + '
    ' 165 | return res.end(html) 166 | } 167 | 168 | // torrent already exists in client. Send metadata when ready 169 | var torrent = client.get(infoHash) 170 | if (torrent) { 171 | debug('Existing torrent, sending metadata ', infoHash) 172 | renewTorrentLifetime(torrent) 173 | sendResp(torrent) 174 | return 175 | } 176 | 177 | debug('New torrent, retrieving metadata ', infoHash) 178 | 179 | getLocalTorrentFilePath(infoHash, function(err, torrentPath) { 180 | const torrentId = err ? infoHash : torrentPath 181 | 182 | client.add(torrentId, torrentOpts, function(torrent) { 183 | debug('got torrent metadata!') 184 | renewTorrentLifetime(torrent) 185 | 186 | //torrent.pause() // stop adding peers 187 | selectFiles(torrent, []) // deselect/deprioritize whole torrent 188 | 189 | sendResp(torrent) 190 | }) 191 | 192 | }) 193 | }); 194 | 195 | /* webseed torrent file /file/:infoHash/path/to/file.ext */ 196 | router.get('/:infoHash/*', function(req, res, next) { 197 | var infoHash = new String(req.params.infoHash).toLowerCase(), 198 | _path = req.params[0] 199 | 200 | debug('GET file/:infoHash/:path ', infoHash, _path) 201 | if (infoHash.length != 40) { 202 | return showError(new Error('Invalid Infohash length'), next) 203 | } 204 | 205 | var torrent = client.get(infoHash) 206 | if (torrent) { 207 | debug('Resuming webseed on existing torrent... ', infoHash, _path) 208 | 209 | // todo: fix 210 | //renewTorrentLifetime(torrent) 211 | 212 | webseed(torrent, _path, req, res, next) 213 | } else { 214 | debug('New webseed: ', infoHash, _path) 215 | 216 | getLocalTorrentFilePath(infoHash, function(err, torrentPath) { 217 | const torrentId = err ? infoHash : torrentPath 218 | 219 | client.add(torrentId, torrentOpts, function(torrent) { 220 | 221 | //renewTorrentLifetime(torrent) 222 | 223 | // select only requested file 224 | const file = getFileByPath(torrent, _path) 225 | selectFiles(torrent, [file]) 226 | 227 | debug('Got torrent metadata. Starting webseed on new torrent. ', infoHash, _path) 228 | webseed(torrent, _path, req, res, next) 229 | }) 230 | 231 | }) 232 | 233 | } 234 | 235 | }); 236 | 237 | module.exports = router; 238 | -------------------------------------------------------------------------------- /routes/file/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./file') -------------------------------------------------------------------------------- /routes/index.js: -------------------------------------------------------------------------------- 1 | var express = require('express') 2 | var router = express.Router() 3 | var markdown = require('../middleware/markdown') 4 | var fs = require('fs') 5 | var debug = require('debug')('seedess:webseed:index') 6 | 7 | /* GET home page. */ 8 | router.get('/', markdown, function(req, res) { 9 | debug('getting /') 10 | res.markdown(fs.readFileSync(__dirname + '/../Readme.md').toString()) 11 | }); 12 | 13 | 14 | module.exports = router; -------------------------------------------------------------------------------- /routes/torrent/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./torrent') -------------------------------------------------------------------------------- /routes/torrent/torrent.js: -------------------------------------------------------------------------------- 1 | var express = require('express') 2 | var router = express.Router() 3 | var debug = require('debug')('seedess:webseed:torrent') 4 | const sendTorrentFileFromInfoHash = require('../../lib/sendTorrentFileFromInfoHash') 5 | 6 | const configs = require('../../config')() 7 | const localStorage = configs.localStorage() 8 | const memoryStorage = configs.memoryStorage() 9 | const { allowedDomains } = configs 10 | const createTorrent = require('../../lib/createTorrent') 11 | const parseTorrent = require('../../lib/parseTorrent') 12 | const FetchStream = require("fetch").FetchStream 13 | const sendTorrentFile = require('../../lib/sendTorrentFile') 14 | const isAllowedUrlDomain = require('../../lib/isAllowedUrlDomain') 15 | 16 | /** 17 | * Get the torrent file for the URL 18 | * @example /create?url={url} 19 | */ 20 | router.get('/create', async function(req, res, next) { 21 | const { url } = req.query 22 | 23 | debug('Requesting torrent from url: ', url) 24 | 25 | const allowedDomain = isAllowedUrlDomain(url, allowedDomains) 26 | if (!allowedDomain) { 27 | return next(new TypeError('URL is not in the allowed domains list')) 28 | } 29 | debug('Allowing torrent from url', url, 'found in ', allowedDomain) 30 | 31 | const torrentInfo = await localStorage.getItem('url:torrent:' + url) 32 | 33 | if (torrentInfo) { 34 | debug('Found torrentInfo', torrentInfo) 35 | torrentInfo.created = new Date(torrentInfo.created) 36 | const torrent = parseTorrent.toTorrentFile(torrentInfo) 37 | return sendTorrentFile(res, torrentInfo, torrent) 38 | } 39 | 40 | // ensure we only have one stream to a url per server 41 | let stream = await memoryStorage.getItem('url:stream:' + url) 42 | if (!stream) { 43 | debug('Fetching file stream from', url) 44 | stream = new FetchStream(url) 45 | await memoryStorage.setItem('url:stream:' + url, stream) 46 | } 47 | debug('We should have a stream', stream) 48 | 49 | const torrentOpts = { name: url.split('/').pop() } 50 | createTorrent(stream, torrentOpts, (err, torrent) => { 51 | if (err) return next(err) 52 | const torrentInfo = parseTorrent(torrent) 53 | // stream and save torrentInfo in parallel 54 | localStorage.setItem('url:torrent:' + url, torrentInfo) 55 | return sendTorrentFile(res, torrentInfo, torrent) 56 | }) 57 | 58 | }); 59 | 60 | /* get .torrent file */ 61 | router.get('/:infoHash', function(req, res, next) { 62 | var infoHash = req.params.infoHash.replace(/\..*$/, '') 63 | debug('torrent file request', infoHash) 64 | sendTorrentFileFromInfoHash(res, infoHash) 65 | }); 66 | 67 | module.exports = router; 68 | -------------------------------------------------------------------------------- /routes/url/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./url') -------------------------------------------------------------------------------- /routes/url/url.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const router = express.Router() 3 | const debug = require('debug')('seedess:webseed:url') 4 | const configs = require('../../config')() 5 | const parseTorrent = require('../../lib/parseTorrent') 6 | const isAllowedUrlDomain = require('../../lib/isAllowedUrlDomain') 7 | const { allowedDomains } = configs 8 | const sendTorrentFile = require('../../lib/sendTorrentFile') 9 | const TorrentFileCache = require('../../lib/TorrentFileCache') 10 | 11 | // keep cache outside router to share between routes 12 | const cache = new TorrentFileCache() 13 | 14 | /** 15 | * Get the torrent file for the URL 16 | * @example /url/{videoUrl} 17 | * @example /?url={videoUrl} 18 | */ 19 | router.get(['/', '/:url'], async function(req, res, next) { 20 | const { url, format } = { ...req.params, ...req.query } 21 | 22 | debug('Requesting torrent from url: ', url) 23 | 24 | const allowedDomain = isAllowedUrlDomain(url, allowedDomains) 25 | if (!allowedDomain) { 26 | return next(new TypeError('URL is not in the allowed domains list')) 27 | } 28 | debug('Allowing torrent from url', url, 'matching ', allowedDomain) 29 | 30 | let torrent = await cache.getTorrentFileByUrl(url) 31 | 32 | if (torrent) { 33 | debug('Found torrent', torrent) 34 | const torrentInfo = parseTorrent(torrent) 35 | //return sendTorrentFile(res, torrentInfo, torrent, { format }) 36 | } 37 | 38 | torrent = await cache.createTorrentFileFromUrl(url) 39 | const torrentInfo = parseTorrent(torrent) 40 | sendTorrentFile(res, torrentInfo, torrent, { format }) 41 | 42 | }); 43 | 44 | 45 | module.exports = router; 46 | -------------------------------------------------------------------------------- /storage/__test__/localStorage.test.js: -------------------------------------------------------------------------------- 1 | const assert = require('assert'); 2 | const localStorage = require('../localStorage')() 3 | 4 | describe('localStorage', () => { 5 | 6 | it ('saves objects by value', async () => { 7 | const item = { id: 'foo' } 8 | await localStorage.setItem('foo', item) 9 | const savedItem = await localStorage.getItem('foo') 10 | assert.deepEqual(item, savedItem) 11 | }) 12 | 13 | }) -------------------------------------------------------------------------------- /storage/__test__/memoryStorage.test.js: -------------------------------------------------------------------------------- 1 | const assert = require('assert'); 2 | const memoryStorage = require('../memoryStorage')() 3 | 4 | describe('memoryStorage', () => { 5 | 6 | it ('saves objects by reference', async () => { 7 | const item = { id: 'foo' } 8 | await memoryStorage.setItem('foo', item) 9 | const savedItem = await memoryStorage.getItem('foo') 10 | assert.strictEqual(item, savedItem) 11 | }) 12 | 13 | }) -------------------------------------------------------------------------------- /storage/localStorage.js: -------------------------------------------------------------------------------- 1 | const { createLocalStorage } = require("localstorage-ponyfill"); 2 | const localStorage = createLocalStorage({ mode: 'node', storeFilePath: '../.data/' }) 3 | const { serialize, unserialize } = require('./serializer') 4 | 5 | module.exports = () => ({ 6 | setItem: (key, data) => localStorage.setItem(key, serialize(data)), 7 | getItem: (key) => unserialize(localStorage.getItem(key)) 8 | }) -------------------------------------------------------------------------------- /storage/memoryStorage.js: -------------------------------------------------------------------------------- 1 | const storage = new Map() 2 | 3 | module.exports = () => ({ 4 | setItem: (key, data) => storage.set(key, data), 5 | getItem: (key) => storage.get(key) 6 | }) 7 | -------------------------------------------------------------------------------- /storage/serializer.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | serialize: data => JSON.stringify(data), 3 | unserialize: data => data ? JSON.parse(data) : data 4 | } --------------------------------------------------------------------------------