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

levelup

Package Overview
Dependencies
Maintainers
3
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

levelup - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

8

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## [4.3.1] - 2019-10-03
### Fixed
- Fix floating promise in constructor ([#680](https://github.com/Level/levelup/issues/680)) ([**@vweevers**](https://github.com/vweevers))
## [4.3.0] - 2019-09-30

@@ -1087,2 +1093,4 @@

[4.3.1]: https://github.com/Level/levelup/compare/v4.3.0...v4.3.1
[4.3.0]: https://github.com/Level/levelup/compare/v4.2.0...v4.3.0

@@ -1089,0 +1097,0 @@

5

lib/levelup.js

@@ -34,2 +34,3 @@ var EventEmitter = require('events').EventEmitter

var error
var self = this

@@ -59,3 +60,5 @@ EventEmitter.call(this)

this.db = new DeferredLevelDOWN(db)
this.open(callback)
this.open(callback || function (err) {
if (err) self.emit('error', err)
})

@@ -62,0 +65,0 @@ // Create manifest based on deferred-leveldown's

2

package.json
{
"name": "levelup",
"version": "4.3.0",
"version": "4.3.1",
"description": "Fast & simple storage - a Node.js-style LevelDB wrapper",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -114,3 +114,3 @@ # levelup

Calling `levelup(db)` will also open the underlying store. This is an asynchronous operation which will trigger your callback if you provide one. The callback should take the form `function (err, db) {}` where `db` is the `levelup` instance. If you don't provide a callback, any read & write operations are simply queued internally until the store is fully opened.
Calling `levelup(db)` will also open the underlying store. This is an asynchronous operation which will trigger your callback if you provide one. The callback should take the form `function (err, db) {}` where `db` is the `levelup` instance. If you don't provide a callback, any read & write operations are simply queued internally until the store is fully opened, unless it fails to open, in which case an `error` event will be emitted.

@@ -491,2 +491,3 @@ This leads to two alternative ways of managing a `levelup` instance:

| `closed` | Store has closed. | - |
| `error` | An error occurred | `error` (Error) |

@@ -493,0 +494,0 @@ For example you can do:

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