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

levelup

Package Overview
Dependencies
Maintainers
1
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 0.4.3 to 0.4.4

2

lib/levelup.js

@@ -50,2 +50,4 @@ /* Copyright (c) 2012 Rod Vagg <@rvagg> */

EventEmitter.call(this)
this.setMaxListeners(Infinity)
this._options = extend(extend({}, defaultOptions), options)

@@ -52,0 +54,0 @@ this._location = location

2

npm-shrinkwrap.json
{
"name": "levelup",
"version": "0.4.3",
"version": "0.4.4",
"dependencies": {

@@ -5,0 +5,0 @@ "errno": {

@@ -16,3 +16,3 @@ {

]
, "version": "0.4.3"
, "version": "0.4.4"
, "main": "lib/levelup.js"

@@ -19,0 +19,0 @@ , "dependencies": {

@@ -98,2 +98,27 @@ /* Copyright (c) 2012 Rod Vagg <@rvagg> */

}
, 'maxListeners warning': function (done) {
var location = common.nextLocation()
// 1) open database without callback, opens in worker thread
, db = levelup(location, { createIfMissing: true, errorIfExists: true, encoding: 'utf8' })
, stderrMock = this.mock(console)
this.closeableDatabases.push(db)
this.cleanupDirs.push(location)
stderrMock.expects('error').never()
// 2) provoke an EventEmitter maxListeners warning
var toPut = 11
for (var i = 0; i < toPut; i++) {
db.put('some', 'string', function (err) {
refute(err)
if (!--toPut) {
done()
}
})
}
}
})
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