Comparing version 0.17.2 to 0.17.3
@@ -0,1 +1,11 @@ | ||
<a name="0.17.3"></a> | ||
## [0.17.3](https://github.com/libp2p/js-peer-info/compare/v0.17.2...v0.17.3) (2020-02-13) | ||
### Bug Fixes | ||
* remove use of assert module ([#88](https://github.com/libp2p/js-peer-info/issues/88)) ([a0613c5](https://github.com/libp2p/js-peer-info/commit/a0613c5)) | ||
<a name="0.17.2"></a> | ||
@@ -2,0 +12,0 @@ ## [0.17.2](https://github.com/libp2p/js-peer-info/compare/v0.17.1...v0.17.2) (2020-02-11) |
{ | ||
"name": "peer-info", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "IPFS Peer abstraction JavaScript implementation", | ||
@@ -54,2 +54,3 @@ "leadMaintainer": "Vasco Santos <vasco.santos@moxy.studio>", | ||
"Alan Shaw <alan.shaw@protocol.ai>", | ||
"Alex Potsides <alex@achingbrain.net>", | ||
"Arnaud <arnaud.valensi@gmail.com>", | ||
@@ -56,0 +57,0 @@ "Cayman <caymannava@gmail.com>", |
@@ -6,3 +6,2 @@ 'use strict' | ||
const MultiaddrSet = require('./multiaddr-set') | ||
const assert = require('assert') | ||
@@ -12,3 +11,5 @@ // Peer represents a peer on the IPFS network | ||
constructor (peerId) { | ||
assert(peerId, 'Missing peerId. Use Peer.create() to create one') | ||
if (!peerId) { | ||
throw new Error('Missing peerId. Use Peer.create() to create one') | ||
} | ||
@@ -15,0 +16,0 @@ this.id = peerId |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
6139325
44897