Comparing version 1.6.7 to 1.6.8
@@ -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(); |
@@ -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
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 13 instances in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance 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
7010490
132
6459
11
16
16