Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bittorrent-protocol

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bittorrent-protocol - npm Package Compare versions

Comparing version 1.3.3 to 1.3.4

9

index.js

@@ -126,3 +126,4 @@ module.exports = Wire

Wire.prototype.use = function (Extension) {
if (!Extension.name) {
var name = Extension.name || Extension.prototype.name
if (!name) {
throw new Error('Extension API requires a named function, e.g. function name() {}')

@@ -146,5 +147,5 @@ }

this.extendedMapping[ext] = Extension.name
this._ext[Extension.name] = handler
this[Extension.name] = handler
this.extendedMapping[ext] = name
this._ext[name] = handler
this[name] = handler

@@ -151,0 +152,0 @@ this._nextExt += 1

{
"name": "bittorrent-protocol",
"description": "Simple, robust, BitTorrent peer wire protocol implementation",
"version": "1.3.3",
"version": "1.3.4",
"author": {

@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh",

@@ -247,2 +247,3 @@ # bittorrent-protocol [![build](https://img.shields.io/travis/feross/bittorrent-protocol.svg)](https://travis-ci.org/feross/bittorrent-protocol) [![npm](https://img.shields.io/npm/v/bittorrent-protocol.svg)](https://npmjs.org/package/bittorrent-protocol) [![gittip](https://img.shields.io/gittip/feross.svg)](https://www.gittip.com/feross/)

- [ut_metadata](https://github.com/feross/ut_metadata) - Extension for Peers to Send Metadata Files (BEP 9)
- [ut_pex](https://github.com/fisch0920/ut_pex) - Extension for Peer Discovery (PEX)
- *Add yours here! Send a pull request!*

@@ -249,0 +250,0 @@

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