Comparing version 1.6.10 to 1.6.12
@@ -587,2 +587,4 @@ const fs = require('fs') | ||
throw new Error('Invalid value to put in database ' + value + ' (' + (typeof value) +'), consider using encoder') | ||
if (this.dupSort && value.length > 1978) | ||
throw new Error('The value is larger than the maximum size (1978) for a value in a dupSort database') | ||
let operations = this.getScheduledOperations() | ||
@@ -622,2 +624,4 @@ let index = operations.push(ifVersion == null ? version == null ? [id, value] : [id, value, version] : [id, value, version, ifVersion]) - 1 | ||
} | ||
if (this.dupSort && value.length > 1978) | ||
throw new Error('The value is larger than the maximum size (1978) for a value in a dupSort database') | ||
if (localTxn) { | ||
@@ -624,0 +628,0 @@ writeTxn.commit() |
{ | ||
"name": "lmdb", | ||
"author": "Kris Zyp", | ||
"version": "1.6.10", | ||
"version": "1.6.12", | ||
"description": "Simple, efficient, scalable data store wrapper for LMDB", | ||
@@ -29,5 +29,5 @@ "license": "MIT", | ||
"install": "node-gyp-build", | ||
"prebuild": "prebuildify --target 17.0.1 && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0", | ||
"prebuild": "prebuildify --target 17.0.1 && prebuildify --target 16.9.0 && prebuildify --target 15.5.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0", | ||
"prebuild-arm64": "prebuildify --arch=arm64 --target 17.0.1 && prebuildify --arch=arm64 --target 16.9.0 && prebuildify --arch=arm64 --target 14.17.6", | ||
"before-publish": "prebuildify-ci download && prebuildify --target 17.0.1 && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0 && prebuildify --target electron@13.1.4", | ||
"before-publish": "prebuildify-ci download && prebuildify --target 17.0.1 && prebuildify --target 16.9.0 && prebuildify --target 15.5.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", | ||
@@ -34,0 +34,0 @@ "test": "mocha test/**.test.js --recursive && npm run test:types", |
@@ -543,2 +543,4 @@ 'use strict'; | ||
//expect(() => db.put({ foo: 'bar' }, 'hello')).to.throw(); | ||
expect(() => db.put('x'.repeat(1979), 'hello')).to.throw(); | ||
expect(() => db2.put('x', 'x'.repeat(1979))).to.throw(); | ||
}); | ||
@@ -545,0 +547,0 @@ it('put options (sync)', function() { |
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
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
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 9 instances 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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 4 instances in 1 package
14189140
144
8477
23
12