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

hypertrie

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypertrie - npm Package Compare versions

Comparing version 3.7.1 to 3.8.0

17

lib/iterator.js

@@ -16,2 +16,3 @@ const Nanoiterator = require('nanoiterator')

this._order = (opts && opts.reverse) ? REVERSE_SORT_ORDER : SORT_ORDER
this._random = !!(opts && opts.random)
this._start = 0

@@ -57,5 +58,6 @@ this._end = 0

const bucket = top.node.trie[i] || []
const order = this._random ? randomOrder() : this._order
for (j = 0; j < this._order.length; j++) {
var val = this._order[j]
for (j = 0; j < order.length; j++) {
var val = order[j]
if (val !== 4 || !this._gt || i !== this._start) {

@@ -128,1 +130,12 @@ const len = this._stack.length

}
function randomOrder () {
const order = [0, 1, 2, 3, 4]
for (let i = 0; i < order.length - 1; i++) {
const n = i + Math.floor(Math.random() * (order.length - i))
const tmp = order[i]
order[i] = order[n]
order[n] = tmp
}
return order
}

2

package.json
{
"name": "hypertrie",
"version": "3.7.1",
"version": "3.8.0",
"description": "Distributed single writer key/value store",

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

@@ -142,3 +142,4 @@ # hypertrie

{
recursive: true
recursive: true,
random: false // does a random order iteration
}

@@ -145,0 +146,0 @@ ```

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