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.0 to 1.0.1

9

index.js

@@ -126,4 +126,9 @@ import cbor from 'borc'

const deserialized = decoder.decodeFirst(data)
return deserialized
// borc will decode back-to-back objects into an implicit top-level array, we
// strictly want to only see a single explicit top-level object
const all = decoder.decodeAll(data)
if (all.length !== 1) {
throw new Error('Extraneous CBOR data found beyond initial top-level object')
}
return all[0]
}

@@ -130,0 +135,0 @@

{
"name": "@ipld/dag-cbor",
"version": "1.0.0",
"version": "1.0.1",
"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