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

@ipld/dag-cbor

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ipld/dag-cbor - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

4

index.js

@@ -18,3 +18,3 @@ import cbor from 'borc'

function replaceCIDbyTAG (dagNode) {
if (isCircular(dagNode)) {
if (dagNode && typeof dagNode === 'object' && isCircular(dagNode)) {
throw new Error('The object passed has circular references')

@@ -115,3 +115,3 @@ }

const serialized = cbor.encode(nodeTagged)
return serialized
return bytes.coerce(serialized)
}

@@ -118,0 +118,0 @@

{
"name": "@ipld/dag-cbor",
"version": "1.0.5",
"version": "1.0.6",
"description": "JS implementation of dag-cbor",

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

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