diff options
author | Julen Garcia Leunda <hicom150@gmail.com> | 2021-06-17 07:15:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 07:15:49 +0300 |
commit | 73c941c6eb3b539efbbbb499ab3d033531347b19 (patch) | |
tree | be6333241137b452388f9a6548d033574f21c313 /package.json | |
parent | 711318d026b678948a3236aed5df8331d93b332c (diff) |
fix: make utp-native optional (#1966)
* Add optional utp-native
* Add error log when uTP cannot be loaded
* Fix review suggestions
* Remove an additional require call
Co-authored-by: Alex <alxmorais8@msn.com>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/package.json b/package.json index 9673928..53552ac 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,14 @@ "browser": { "./lib/server.js": false, "./lib/conn-pool.js": false, + "./lib/utp.js": false, "bittorrent-dht/client": false, "fs": false, "fs-chunk-store": "memory-chunk-store", "load-ip-set": false, "net": false, "os": false, - "ut_pex": false, - "utp-native": false + "ut_pex": false }, "browserify": { "transform": [ @@ -28,12 +28,12 @@ "url": "https://github.com/webtorrent/webtorrent/issues" }, "chromeapp": { + "./lib/utp.js": false, "fs-chunk-store": "memory-chunk-store", "http": "http-node", "load-ip-set": false, "net": "chrome-net", - "os": false, - "utp-native": false + "os": false }, "dependencies": { "addr-to-ip-port": "^1.5.1", @@ -78,8 +78,7 @@ "torrent-piece": "^2.0.1", "unordered-array-remove": "^1.0.2", "ut_metadata": "^3.5.2", - "ut_pex": "^3.0.0", - "utp-native": "^2.4.0" + "ut_pex": "^3.0.0" }, "devDependencies": { "@webtorrent/semantic-release-config": "1.0.5", @@ -99,6 +98,9 @@ "tape": "5.2.2", "webtorrent-fixtures": "1.7.3" }, + "optionalDependencies": { + "utp-native": "^2.4.0" + }, "engines": { "node": ">=10" }, |