Socket
Socket
Sign inDemoInstall

create-torrent

Package Overview
Dependencies
Maintainers
9
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-torrent - npm Package Compare versions

Comparing version 5.0.8 to 5.0.9

7

CHANGELOG.md

@@ -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 @@

5

index.js

@@ -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) {

2

package.json
{
"name": "create-torrent",
"description": "Create .torrent files",
"version": "5.0.8",
"version": "5.0.9",
"author": {

@@ -6,0 +6,0 @@ "name": "WebTorrent LLC",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc