create-torrent
Advanced tools
Comparing version 5.0.8 to 5.0.9
@@ -0,1 +1,8 @@ | ||
## [5.0.9](https://github.com/webtorrent/create-torrent/compare/v5.0.8...v5.0.9) (2022-11-10) | ||
### Bug Fixes | ||
* hash faster than callback ([#186](https://github.com/webtorrent/create-torrent/issues/186)) ([298f356](https://github.com/webtorrent/create-torrent/commit/298f356c9ba7832c22eee954025ab50bf29dc922)) | ||
## [5.0.8](https://github.com/webtorrent/create-torrent/compare/v5.0.7...v5.0.8) (2022-11-10) | ||
@@ -2,0 +9,0 @@ |
@@ -226,2 +226,4 @@ /*! create-torrent. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */ | ||
const i = pieceNum | ||
++pieceNum | ||
if (++remainingHashes < MAX_OUTSTANDING_HASHES) resolve() | ||
sha1(chunk, hash => { | ||
@@ -235,6 +237,5 @@ pieces[i] = hash | ||
}) | ||
++pieceNum | ||
if (++remainingHashes < MAX_OUTSTANDING_HASHES) resolve() | ||
}) | ||
} | ||
if (remainingHashes === 0) return cb(null, Buffer.from(pieces.join(''), 'hex'), length) | ||
ended = true | ||
@@ -241,0 +242,0 @@ } catch (err) { |
{ | ||
"name": "create-torrent", | ||
"description": "Create .torrent files", | ||
"version": "5.0.8", | ||
"version": "5.0.9", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "WebTorrent LLC", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27374
467