Comparing version 4.2.0 to 4.2.1
@@ -11,2 +11,3 @@ var raf = require('random-access-file') | ||
var multiplexer = require('./mux') | ||
var version = require('./package.json').version | ||
@@ -21,3 +22,3 @@ // Key-less constant hypercore to bootstrap hypercore-protocol replication. | ||
this._id = (opts||{})._id || Math.floor(Math.random() * 1000).toString(16) // for debugging | ||
debug(this._id, 'multifeed @ ' + require(path.join(__dirname,'package.json')).version) | ||
debug(this._id, 'multifeed @ ' + version) | ||
this._feeds = {} | ||
@@ -24,0 +25,0 @@ this._feedKeyToFeed = {} |
@@ -139,3 +139,2 @@ var protocol = require('hypercore-protocol') | ||
debug(this._id + ' [REPLICATION] destroyed due to', err) | ||
this.emit('error', err) | ||
this.stream.destroy(err) | ||
@@ -142,0 +141,0 @@ } else { |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/multifeed.git" |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1
26031