Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

leveldown

Package Overview
Dependencies
Maintainers
3
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leveldown - npm Package Compare versions

Comparing version 1.5.3 to 1.6.0

5

leveldown.js

@@ -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')

2

LICENSE.md
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 &amp; copyright

Copyright &copy; 2012-2016 **LevelDOWN** [contributors](https://github.com/level/community#contributors).
Copyright &copy; 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

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