Socket
Socket
Sign inDemoInstall

sorted-btree

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sorted-btree - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

0

interfaces.d.ts

@@ -0,0 +0,0 @@

6

package.json
{
"name": "sorted-btree",
"version": "1.2.0",
"version": "1.2.1",
"description": "A sorted list of key-value pairs in a fast, typed in-memory B+ tree with a powerful API.",
"main": "b+tree.js",
"typings": "b+tree",
"scripts": {

@@ -80,3 +81,4 @@ "test": "tsc && echo //ts-jest-issue-657 >interfaces.js && jest",

],
"bail": true
"bail": true,
"testEnvironment": "node"
},

@@ -83,0 +85,0 @@ "testpack": {

@@ -1,11 +0,1 @@

var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
(function (factory) {

@@ -25,19 +15,9 @@ if (typeof module === "object" && typeof module.exports === "object") {

function SortedArray(entries, compare) {
var e_1, _a;
this.cmp = compare || (function (a, b) { return a < b ? -1 : a > b ? 1 : a === b ? 0 : a - b; });
this.a = [];
if (entries !== undefined)
try {
for (var entries_1 = __values(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {
var e = entries_1_1.value;
this.set(e[0], e[1]);
}
for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
var e = entries_1[_i];
this.set(e[0], e[1]);
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (entries_1_1 && !entries_1_1.done && (_a = entries_1.return)) _a.call(entries_1);
}
finally { if (e_1) throw e_1.error; }
}
}

@@ -44,0 +24,0 @@ Object.defineProperty(SortedArray.prototype, "size", {

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