Socket
Socket
Sign inDemoInstall

multiaddr

Package Overview
Dependencies
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiaddr - npm Package Compare versions

Comparing version 7.3.0 to 7.3.1

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="7.3.1"></a>
## [7.3.1](https://github.com/multiformats/js-multiaddr/compare/v7.3.0...v7.3.1) (2020-02-13)
### Bug Fixes
* inspect deprecation warning ([#109](https://github.com/multiformats/js-multiaddr/issues/109)) ([a79a7af](https://github.com/multiformats/js-multiaddr/commit/a79a7af))
<a name="7.3.0"></a>

@@ -2,0 +12,0 @@ # [7.3.0](https://github.com/multiformats/js-multiaddr/compare/v7.2.1...v7.3.0) (2020-02-06)

4

package.json
{
"name": "multiaddr",
"version": "7.3.0",
"version": "7.3.1",
"description": "multiaddr implementation (binary + string representation of network addresses)",

@@ -73,2 +73,3 @@ "leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",

"Steven Allen <steven@stebalien.com>",
"Tony Jin <nijynot@gmail.com>",
"Trond Arne Bråthen <tabrath@gmail.com>",

@@ -81,3 +82,2 @@ "Vasco Santos <vasco.santos@moxy.studio>",

"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>",
"nijynot <nijynot@gmail.com>",
"npm-to-cdn-bot (by Forbes Lindesay) <npmcdn-to-unpkg-bot@users.noreply.github.com>",

@@ -84,0 +84,0 @@ "victorbjelkholm <victor@protocol.ai>"

@@ -9,2 +9,3 @@ 'use strict'

const withIs = require('class-is')
const inspect = Symbol.for('nodejs.util.inspect.custom')

@@ -90,6 +91,24 @@ /**

/**
* Returns Multiaddr as a human-readable string
* Returns Multiaddr as a human-readable string.
* For post Node.js v10.0.0.
* https://nodejs.org/api/deprecations.html#deprecations_dep0079_custom_inspection_function_on_objects_via_inspect
*
* @returns {String}
* @example
* console.log(Multiaddr('/ip4/127.0.0.1/tcp/4001'))
* // '<Multiaddr 047f000001060fa1 - /ip4/127.0.0.1/tcp/4001>'
*/
Multiaddr.prototype[inspect] = function inspectCustom () {
return '<Multiaddr ' +
this.buffer.toString('hex') + ' - ' +
codec.bufferToString(this.buffer) + '>'
}
/**
* Returns Multiaddr as a human-readable string.
* Fallback for pre Node.js v10.0.0.
* https://nodejs.org/api/deprecations.html#deprecations_dep0079_custom_inspection_function_on_objects_via_inspect
*
* @returns {String}
* @example
* Multiaddr('/ip4/127.0.0.1/tcp/4001').inspect()

@@ -96,0 +115,0 @@ * // '<Multiaddr 047f000001060fa1 - /ip4/127.0.0.1/tcp/4001>'

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

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