+9
-7
@@ -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 |
+5
-4
| { | ||
| "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" | ||
| } |
+2
-2
@@ -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 | ||
| [](https://github.com/hildjj/node-cbor/actions?query=workflow%3ATests) | ||
| [](https://coveralls.io/r/hildjj/node-cbor?branch=master) | ||
| [](https://coveralls.io/r/hildjj/node-cbor?branch=main) | ||
| [](https://david-dm.org/hildjj/node-cbor) |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
4171
0.02%143961
03
50%+ Added
Updated