Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
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 1.6.7 to 1.6.8

dist/index.cjs

5

index.js

@@ -89,5 +89,6 @@ const { sync: mkdirpSync } = require('mkdirp')

}, options)
if (options.asyncTransactionOrder == 'before')
if (options.asyncTransactionOrder == 'before') {
console.warn('asyncTransactionOrder: "before" is deprecated')
asyncTransactionAfter = false
else if (options.asyncTransactionOrder == 'strict') {
} else if (options.asyncTransactionOrder == 'strict') {
asyncTransactionStrictOrder = true

@@ -94,0 +95,0 @@ asyncTransactionAfter = false

{
"name": "lmdb",
"author": "Kris Zyp",
"version": "1.6.7",
"version": "1.6.8",
"description": "Simple, efficient, scalable data store wrapper for LMDB",

@@ -29,2 +29,6 @@ "license": "MIT",

"install": "node-gyp-build",
"prebuild": "run-script-os",
"prebuild:darwin": "prebuildify --arch=arm64 --target 16.9.0 && prebuildify --arch=arm64 --target 14.17.6 && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0",
"prebuild:default": "prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0",
"before-publish": "prebuildify-ci download && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0 && prebuildify --target electron@13.1.4",
"recompile": "node-gyp clean && node-gyp configure && node-gyp build -d",

@@ -55,6 +59,8 @@ "test": "mocha test/**.test.js --recursive && npm run test:types",

"mocha": "^8.3.2",
"node-gyp": "^8.0.0",
"prebuildify": "^4.2.0",
"prebuildify-ci": "^1.0.5",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"tsd": "^0.14.0"
}
}

@@ -513,2 +513,29 @@ 'use strict';

})
it('big keys', async function() {
let keyBase = ''
for (let i = 0; i < 1900; i++) {
keyBase += 'A'
}
let keys = []
let promise
for (let i = 40; i < 120; i++) {
let key = String.fromCharCode(i) + keyBase
keys.push(key)
promise = db.put(key, i)
}
await promise
let returnedKeys = []
for (let { key, value } of db.getRange({})) {
if (key.length > 1000) {
returnedKeys.push(key)
should.equal(key.charCodeAt(0), value)
should.equal(db.get(key), value)
promise = db.remove(key)
}
}
returnedKeys.should.deep.equal(keys)
await promise
should.equal(db.get(returnedKeys[0]), undefined)
});
it('invalid key', async function() {

@@ -515,0 +542,0 @@ expect(() => db.get({ foo: 'bar' })).to.throw();

2

test/node-lmdb.test.js

@@ -16,3 +16,3 @@ 'use strict';

describe('Node.js LMDB Bindings', function() {
describe.skip('Node.js LMDB Bindings', function() {
var testDirPath = path.resolve(__dirname, './testdata');

@@ -19,0 +19,0 @@ var testBackupDirPath = path.resolve(__dirname, './testdata/backup');

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

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

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

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