Comparing version 2.3.5 to 2.3.6
@@ -5,3 +5,3 @@ import { dirname, default as pathModule } from 'path'; | ||
export let Env, Txn, Dbi, Compression, Cursor, getAddress, clearKeptObjects, setGlobalBuffer, | ||
export let Env, Txn, Dbi, Compression, Cursor, getAddress, createBufferForAddress, clearKeptObjects, setGlobalBuffer, | ||
require, arch, fs, os, onExit, tmpdir, lmdbError, path, EventEmitter, orderedBinary, MsgpackrEncoder, WeakLRUCache, setEnvMap, getEnvMap, getByBinary, detachBuffer, write, position, iterate, native, v8AccelerationEnabled = false; | ||
@@ -40,2 +40,3 @@ | ||
getAddress = externals.getAddress; | ||
createBufferForAddress = externals.createBufferForAddress; | ||
clearKeptObjects = externals.clearKeptObjects || function() {}; | ||
@@ -42,0 +43,0 @@ Cursor = externals.Cursor; |
{ | ||
"name": "lmdb", | ||
"author": "Kris Zyp", | ||
"version": "2.3.5", | ||
"version": "2.3.6", | ||
"description": "Simple, efficient, scalable, high-performance LMDB interface", | ||
@@ -55,7 +55,7 @@ "license": "MIT", | ||
"prepare": "rollup -c", | ||
"before-publish": "rollup -c && prebuildify-ci download && prebuildify --target 16.14.0 && prebuildify --target 14.19.1 && prebuildify --target 17.9.0 && prebuildify --target 18.0.0 && set ENABLE_V8_FUNCTIONS=false&& prebuildify --napi --optional-packages --target 16.14.0 && node util/set-optional-deps.cjs", | ||
"before-publish": "rollup -c && prebuildify-ci download && prebuildify --target 16.14.0 && prebuildify --target 14.19.1 && prebuildify --target 17.9.0 && prebuildify --target 18.0.0 && set ENABLE_V8_FUNCTIONS=false&& prebuildify --napi --optional-packages --target 16.14.0 && node util/set-optional-deps.cjs && npm run test", | ||
"prebuild-libc-expanded": "prebuildify --tag-libc --target 16.14.0 && prebuildify --tag-libc --target 14.19.1 && prebuildify --tag-libc --target 17.9.0 && prebuildify --tag-libc --target 18.0.0 && ENABLE_V8_FUNCTIONS=false prebuildify --tag-libc --napi --optional-packages --target 16.14.0", | ||
"prebuild-libc": "prebuildify --tag-libc --target 17.9.0 && prebuildify --tag-libc --target 18.0.0 && prebuildify --napi --optional-packages --tag-libc --target 16.14.2", | ||
"prebuildify": "prebuildify --target 16.14.2", | ||
"publish-all": "cd prebuilds/win32-x64 && npm publish --otp %OTP% && cd ../darwin-x64 && npm publish --otp %OTP% && cd ../darwin-arm64 && npm publish --otp %OTP% && cd ../linux-x64 && npm publish --otp %OTP% && cd ../linux-arm64 && npm publish --otp %OTP% && cd ../linux-arm && npm publish --otp %OTP% && cd ../.. && npm publish --otp %OTP%", | ||
"prepublishOnly": "cd prebuilds/win32-x64 && npm publish --otp %OTP% && cd ../darwin-x64 && npm publish --otp %OTP% && cd ../darwin-arm64 && npm publish --otp %OTP% && cd ../linux-x64 && npm publish --otp %OTP% && cd ../linux-arm64 && npm publish --otp %OTP% && cd ../linux-arm && npm publish --otp %OTP% && cd ../..", | ||
"recompile": "node-gyp clean && node-gyp configure && node-gyp build", | ||
@@ -97,9 +97,9 @@ "test": "mocha test/**.test.js --recursive && npm run test:types", | ||
"optionalDependencies": { | ||
"lmdb-darwin-arm64": "2.3.4", | ||
"lmdb-darwin-x64": "2.3.4", | ||
"lmdb-linux-arm": "2.3.4", | ||
"lmdb-linux-arm64": "2.3.4", | ||
"lmdb-linux-x64": "2.3.4", | ||
"lmdb-win32-x64": "2.3.4" | ||
"lmdb-darwin-arm64": "2.3.6", | ||
"lmdb-darwin-x64": "2.3.6", | ||
"lmdb-linux-arm": "2.3.6", | ||
"lmdb-linux-arm64": "2.3.6", | ||
"lmdb-linux-x64": "2.3.6", | ||
"lmdb-win32-x64": "2.3.6" | ||
} | ||
} | ||
} |
@@ -178,3 +178,4 @@ import { getAddress, onExit, native } from './native.js'; | ||
float64[position] = (valueArrayBuffer.address || | ||
(valueArrayBuffer.address = (getAddress(valueBuffer) - valueBuffer.byteOffset))) | ||
(valueBuffer.length === 0 ? 0 : // externally allocated buffers of zero-length with the same non-null-pointer can crash node, #161 | ||
(valueArrayBuffer.address = (getAddress(valueBuffer) - valueBuffer.byteOffset)))) | ||
+ valueBuffer.byteOffset; | ||
@@ -181,0 +182,0 @@ mustCompress = valueBuffer[0] >= 250; // this is the compression indicator, so we must compress |
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
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
2305758
5347