Socket
Socket
Sign inDemoInstall

multiformats

Package Overview
Dependencies
5
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc