dfinity-radix-tree
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -271,3 +271,7 @@ const Graph = require('ipld-graph-builder') | ||
if (key.constructor !== RadixTree.ArrayConstructor) { | ||
return new RadixTree.ArrayConstructor(key.buffer) | ||
if (Buffer.isBuffer(key)) { | ||
return new RadixTree.ArrayConstructor(new Uint8Array(key).buffer) | ||
} else { | ||
return new RadixTree.ArrayConstructor(key.buffer) | ||
} | ||
} else { | ||
@@ -274,0 +278,0 @@ return key |
{ | ||
"name": "dfinity-radix-tree", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "This implements a binary merkle radix tree", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -94,3 +94,3 @@ const borc = require('borc') | ||
if (val !== undefined) { | ||
if (!Buffer.isBuffer(val)) { | ||
if (!val.buffer) { | ||
val = borc.encode(val) | ||
@@ -97,0 +97,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 5 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
408864
49
1574
5