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

multiformats

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiformats - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

cid.js

@@ -28,3 +28,7 @@ 'use strict'

constructor (cid, ...args) {
readonly(this, '_baseCache', new Map())
Object.defineProperty(this, '_baseCache', {
value: new Map(),
writable: false,
enumerable: false
})
if (_CID.isCID(cid)) {

@@ -31,0 +35,0 @@ readonly(this, 'version', cid.version)

2

package.json
{
"name": "multiformats",
"version": "0.0.2",
"version": "0.0.3",
"description": "Interface for multihash, multicodec, multibase and CID.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -215,4 +215,6 @@ /* globals before, describe, it */

test('works with deepEquals', () => {
assert.deepStrictEqual(new CID(h1), new CID(h1))
assert.notDeepStrictEqual(new CID(h1), new CID(h2))
const ch1 = new CID(h1)
ch1._baseCache.set('herp', 'derp')
assert.deepStrictEqual(ch1, new CID(h1))
assert.notDeepStrictEqual(ch1, new CID(h2))
})

@@ -219,0 +221,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