Socket
Socket
Sign inDemoInstall

lmdb

Package Overview
Dependencies
Maintainers
3
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lmdb - npm Package Compare versions

Comparing version 2.8.0 to 2.8.1

2

index.d.ts

@@ -293,2 +293,4 @@ declare namespace lmdb {

export const ABORT: {};
/* A constant that can be returned in RangeIterable#map function to skip (filter out) the current value */
export const SKIP: {};
/* A constant that can be used as a conditional versions for put and ifVersion to indicate that the write should conditional on the key/entry existing */

@@ -295,0 +297,0 @@ export const IF_EXISTS: number;

@@ -23,2 +23,3 @@ import { EventEmitter } from 'events';

export { levelup } from './level.js';
export { SKIP } from './util/RangeIterable.js';
import { levelup } from './level.js';

@@ -25,0 +26,0 @@ export { clearKeptObjects } from './native.js';

16

package.json
{
"name": "lmdb",
"author": "Kris Zyp",
"version": "2.8.0",
"version": "2.8.1",
"description": "Simple, efficient, scalable, high-performance LMDB interface",

@@ -81,3 +81,3 @@ "license": "MIT",

"dependencies": {
"msgpackr": "1.9.1",
"msgpackr": "^1.9.5",
"node-addon-api": "^6.1.0",

@@ -110,9 +110,9 @@ "node-gyp-build-optional-packages": "5.1.0",

"optionalDependencies": {
"@lmdb/lmdb-darwin-arm64": "2.8.0",
"@lmdb/lmdb-darwin-x64": "2.8.0",
"@lmdb/lmdb-linux-arm": "2.8.0",
"@lmdb/lmdb-linux-arm64": "2.8.0",
"@lmdb/lmdb-linux-x64": "2.8.0",
"@lmdb/lmdb-win32-x64": "2.8.0"
"@lmdb/lmdb-darwin-arm64": "2.8.1",
"@lmdb/lmdb-darwin-x64": "2.8.1",
"@lmdb/lmdb-linux-arm": "2.8.1",
"@lmdb/lmdb-linux-arm64": "2.8.1",
"@lmdb/lmdb-linux-x64": "2.8.1",
"@lmdb/lmdb-win32-x64": "2.8.1"
}
}

@@ -16,3 +16,3 @@ [![license](https://img.shields.io/badge/license-MIT-brightgreen)](LICENSE)

`lmdb-js` is used in many heavy-use production applications, including as a high-performance cache for builds in [Parcel](https://parceljs.org/) and [Elasticsearch's Kibana](https://www.elastic.co/kibana/), as the storage layer for [HarperDB](https://harperdb.io/) and [Gatsby](https://www.gatsbyjs.com/)'s database, and for search and analytical engine for our [clinical medical research](https://drevidence.com).
`lmdb-js` is used in many heavy-use production applications, including as a high-performance cache for builds in [Parcel](https://parceljs.org/) and [Elasticsearch's Kibana](https://www.elastic.co/kibana/), as the storage layer for [HarperDB](https://harperdb.io/) and [Gatsby](https://www.gatsbyjs.com/)'s database, and for search and analytical engine for [clinical medical research](https://drevidence.com).

@@ -19,0 +19,0 @@ <a href="https://www.elastic.co/kibana/"><img src="https://static-www.elastic.co/v3/assets/bltefdd0b53724fa2ce/blt4466841eed0bf232/5d082a5e97f2babb5af907ee/logo-kibana-32-color.svg" width="40" align="right"></a>

@@ -1,2 +0,2 @@

const SKIP = {};
export const SKIP = {};
const DONE = {

@@ -78,3 +78,8 @@ value: null,

filter(func) {
return this.map(element => func(element) ? element : SKIP);
return this.map(element => {
let result = func(element);
// handle promise
if (result?.then) return result.then((result) => result ? element : SKIP);
else return result ? element : SKIP;
});
}

@@ -81,0 +86,0 @@

@@ -711,13 +711,13 @@ import { getAddress, getBufferAddress, write, compress, lmdbError } from './native.js';

if (writeTxn)
return this.put(key, value, versionOrOptions, ifVersion);
return this.put(key, value, versionOrOptions, ifVersion) === SYNC_PROMISE_SUCCESS;
else
return this.transactionSync(() =>
this.put(key, value, versionOrOptions, ifVersion) == SYNC_PROMISE_SUCCESS, overlappingSync? 0x10002 : 2); // non-abortable, async flush
this.put(key, value, versionOrOptions, ifVersion) === SYNC_PROMISE_SUCCESS, overlappingSync? 0x10002 : 2); // non-abortable, async flush
},
removeSync(key, ifVersionOrValue) {
if (writeTxn)
return this.remove(key, ifVersionOrValue);
return this.remove(key, ifVersionOrValue) === SYNC_PROMISE_SUCCESS;
else
return this.transactionSync(() =>
this.remove(key, ifVersionOrValue) == SYNC_PROMISE_SUCCESS, overlappingSync? 0x10002 : 2); // non-abortable, async flush
this.remove(key, ifVersionOrValue) === SYNC_PROMISE_SUCCESS, overlappingSync? 0x10002 : 2); // non-abortable, async flush
},

@@ -724,0 +724,0 @@ transaction(callback) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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