leveldown
Advanced tools
Comparing version 1.5.3 to 1.6.0
@@ -61,2 +61,7 @@ const util = require('util') | ||
LevelDOWN.prototype.compactRange = function (start, end, callback) { | ||
this.binding.compactRange(start, end, callback) | ||
} | ||
LevelDOWN.prototype.getProperty = function (property) { | ||
@@ -63,0 +68,0 @@ if (typeof property != 'string') |
The MIT License (MIT) | ||
===================== | ||
Copyright (c) 2016 Rod Vagg | ||
Copyright (c) 2017 Rod Vagg | ||
--------------------------- | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "leveldown", | ||
"description": "A Node.js LevelDB binding, primary backend for LevelUP", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"contributors": [ | ||
@@ -18,3 +18,4 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)", | ||
"Pedro Teixeira <pedro.teixeira@gmail.com> (https://github.com/pgte)", | ||
"James Halliday <mail@substack.net> (https://github.com/substack)" | ||
"James Halliday <mail@substack.net> (https://github.com/substack)", | ||
"Gordon Hall <gordonh@member.fsf.org> (https://github.com/bookchin)" | ||
], | ||
@@ -35,4 +36,4 @@ "repository": { | ||
"fast-future": "~1.0.2", | ||
"nan": "~2.4.0", | ||
"prebuild": "^5.0.2" | ||
"nan": "~2.5.1", | ||
"prebuild-install": "^2.1.0" | ||
}, | ||
@@ -50,3 +51,4 @@ "devDependencies": { | ||
"optimist": "~0.6.1", | ||
"prebuild-ci": "^1.0.9", | ||
"prebuild": "^6.0.2", | ||
"prebuild-ci": "^2.0.0", | ||
"readfiletree": "~0.0.1", | ||
@@ -58,3 +60,3 @@ "rimraf": "~2.5.0", | ||
"scripts": { | ||
"install": "prebuild --install", | ||
"install": "prebuild-install || node-gyp rebuild", | ||
"test": "(tape test/*-test.js | faucet) && prebuild-ci", | ||
@@ -61,0 +63,0 @@ "rebuild": "prebuild --compile", |
@@ -43,2 +43,3 @@ LevelDOWN | ||
* <a href="#leveldown_approximateSize"><code><b>leveldown#approximateSize()</b></code></a> | ||
* <a href="#leveldown_compactRange"><code><b>leveldown#compactRange()</b></code></a> | ||
* <a href="#leveldown_getProperty"><code><b>leveldown#getProperty()</b></code></a> | ||
@@ -176,2 +177,12 @@ * <a href="#leveldown_iterator"><code><b>leveldown#iterator()</b></code></a> | ||
-------------------------------------------------------- | ||
<a name="leveldown_compactRange"></a> | ||
### leveldown#compactRange(start, end, callback) | ||
<code>compactRange()</code> is an instance method on an existing database object. Used to manually trigger a database compaction in the range `[start..end)`. | ||
The `start` and `end` parameters may be either `String` or Node.js `Buffer` objects representing keys in the LevelDB store. | ||
The `callback` function will be called with no arguments if the operation is successful or with a single `error` argument if the operation failed for any reason. | ||
-------------------------------------------------------- | ||
<a name="leveldown_getProperty"></a> | ||
@@ -317,16 +328,8 @@ ### leveldown#getProperty(property) | ||
LevelDOWN uses `prebuild` to support prebuilt binaries. See [this list](https://github.com/Level/leveldown/releases) of supported prebuilt platform binaries. When installing LevelDOWN `prebuild --download` will download prebuilt binaries from GitHub if they exist and fallback to a compile step if they don't. | ||
LevelDOWN uses `prebuild` and `prebuild-install` for handling prebuilt binaries. See [this list](https://github.com/Level/leveldown/releases) of supported prebuilt platform binaries. When installing LevelDOWN `prebuild-install` will install prebuilt binaries from GitHub if they exist and fallback to a compile step if they don't. | ||
If you are working on LevelDOWN and want to compile the C++ code you can do: | ||
If you are working on LevelDOWN and want to re-compile the C++ code it's enough to do `npm install`. | ||
``` | ||
$ npm run rebuild [--debug] [--verbose] | ||
``` | ||
If you don't want to use the `prebuild` for the platform you are installing on, specify the `--build-from-source` flag when you install. | ||
or | ||
``` | ||
$ npm i --build-from-source [--debug] [--verbose] | ||
``` | ||
<a name="license"></a> | ||
@@ -336,3 +339,3 @@ License & copyright | ||
Copyright © 2012-2016 **LevelDOWN** [contributors](https://github.com/level/community#contributors). | ||
Copyright © 2012-2017 **LevelDOWN** [contributors](https://github.com/level/community#contributors). | ||
@@ -339,0 +342,0 @@ **LevelDOWN** is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included `LICENSE.md` file for more details. |
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
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
2768141
217
341
0
16
+ Addedprebuild-install@^2.1.0
+ Addeddecompress-response@3.3.0(transitive)
+ Addeddetect-libc@1.0.3(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addednan@2.5.1(transitive)
+ Addednode-abi@2.30.1(transitive)
+ Addedprebuild-install@2.5.3(transitive)
+ Addedpump@2.0.1(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsimple-get@2.8.2(transitive)
+ Addedwhich-pm-runs@1.1.0(transitive)
- Removedprebuild@^5.0.2
- Removedabbrev@1.1.1(transitive)
- Removedafter@0.8.2(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi@0.3.1(transitive)
- Removedarray-index@1.0.0(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasync@2.6.4(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbl@3.0.1(transitive)
- Removedblock-stream@0.0.9(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbuffer-from@0.1.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedd@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedduplexer2@0.0.2(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedexecspawn@1.0.1(transitive)
- Removedext@1.7.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfstream@1.0.12(transitive)
- Removedgauge@1.2.7(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedghreleases@1.0.7(transitive)
- Removedghrepos@2.1.0(transitive)
- Removedghutils@3.2.6(transitive)
- Removedglob@7.2.3(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedhyperquest@2.1.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedisexe@2.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsonist@2.1.2(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash.pad@4.5.1(transitive)
- Removedlodash.padend@4.6.1(transitive)
- Removedlodash.padstart@4.6.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedms@2.0.0(transitive)
- Removednan@2.4.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-abi@1.3.3(transitive)
- Removednode-gyp@3.8.0(transitive)
- Removednode-ninja@1.0.2(transitive)
- Removednopt@3.0.6(transitive)
- Removednpmlog@2.0.4(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedpath-array@1.0.1(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedprebuild@5.1.2(transitive)
- Removedpsl@1.9.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedreadable-stream@1.0.341.1.143.6.2(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@5.3.0(transitive)
- Removedsimple-get@1.4.3(transitive)
- Removedsimple-mime@0.1.0(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstring_decoder@0.10.311.3.0(transitive)
- Removedtar@2.2.2(transitive)
- Removedthrough2@0.6.5(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removedtype@2.7.3(transitive)
- Removedunzip-response@1.0.2(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedurl-template@2.0.8(transitive)
- Removedutil-extend@1.0.3(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedwhich@1.3.1(transitive)
Updatednan@~2.5.1