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

cbor

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cbor - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

16

lib/utils.js

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

const stream = require('stream')
const TextDecoder = require('@cto.af/textdecoder')
const constants = require('./constants')

@@ -17,7 +18,10 @@ const { NUMBYTES, SHIFT32, BI, SYMS } = constants

// polyfill node-inspect-extracted in, if you're on the web
// I don't think getting here is possible in non-webpack node. The normal
// methods of causing require('util') to fail don't work with
// internal packages.
/* istanbul ignore next */
util = require('node-inspect-extracted')
}
// I don't think the else is possible in node. The normal
// methods of causing require('util') to fail don't work with
// internal packages.
exports.inspect = util ? util.inspect : /* istanbul ignore next */ null
exports.inspect = util.inspect

@@ -28,5 +32,3 @@ /**

*/
/* istanbul ignore next */ // TextDecoder in node 11+, browsers
const TD = (typeof TextDecoder === 'function') ? TextDecoder : util.TextDecoder
const td = new TD('utf8', {fatal: true, ignoreBOM: true})
const td = new TextDecoder('utf8', {fatal: true, ignoreBOM: true})
exports.utf8 = buf => td.decode(buf)

@@ -33,0 +35,0 @@ exports.utf8.checksUTF8 = true

{
"name": "cbor",
"version": "7.0.2",
"version": "7.0.3",
"description": "Encode and parse data in the Concise Binary Object Representation (CBOR) data format (RFC7049).",

@@ -11,3 +11,3 @@ "main": "./lib/cbor.js",

},
"homepage": "https://github.com/hildjj/node-cbor/tree/master/packages/cbor",
"homepage": "https://github.com/hildjj/node-cbor/tree/main/packages/cbor",
"directories": {

@@ -48,3 +48,4 @@ "lib": "lib"

"dependencies": {
"nofilter": "^2.0.0"
"@cto.af/textdecoder": "^0.0.0",
"nofilter": "^2.0.3"
},

@@ -69,3 +70,3 @@ "peerDependencies": {

},
"gitHead": "119733b563bf64f6f2414c0c45eb4cb00c8b477f"
"gitHead": "2c4a9b783032290011582ccd8328e88b8ca6da50"
}

@@ -10,3 +10,3 @@ # cbor

Ava's [support
statement](https://github.com/avajs/ava/blob/master/docs/support-statement.md)
statement](https://github.com/avajs/ava/blob/main/docs/support-statement.md)
is what we will be using as well. Currently, that means Node `10`+ is

@@ -257,3 +257,3 @@ required. If you need to support an older version of Node (back to version

[![Build Status](https://github.com/hildjj/node-cbor/workflows/Tests/badge.svg)](https://github.com/hildjj/node-cbor/actions?query=workflow%3ATests)
[![Coverage Status](https://coveralls.io/repos/hildjj/node-cbor/badge.svg?branch=master)](https://coveralls.io/r/hildjj/node-cbor?branch=master)
[![Coverage Status](https://coveralls.io/repos/hildjj/node-cbor/badge.svg?branch=main)](https://coveralls.io/r/hildjj/node-cbor?branch=main)
[![Dependency Status](https://david-dm.org/hildjj/node-cbor.svg)](https://david-dm.org/hildjj/node-cbor)
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