Socket
Socket
Sign inDemoInstall

abstract-leveldown

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-leveldown - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

5

package.json
{
"name" : "abstract-leveldown"
, "description" : "An abstract prototype matching the LevelDOWN API"
, "version" : "0.7.3"
, "version" : "0.7.4"
, "homepage" : "https://github.com/rvagg/node-abstract-leveldown"

@@ -36,2 +36,5 @@ , "contributors" : [

}
, "browser" : {
"rimraf" : false
}
, "scripts": {

@@ -38,0 +41,0 @@ "test" : "node ./test.js"

32

testCommon.js
const path = require('path')
, fs = require('fs')
, rimraf = require('rimraf')
, fs = process.title != 'browser' && require('fs')
, rimraf = process.title != 'browser' && require('rimraf')

@@ -16,21 +16,23 @@ var dbidx = 0

, cleanup = function (callback) {
fs.readdir(__dirname, function (err, list) {
if (err) return callback(err)
if (process.title != 'browser') {
fs.readdir(__dirname, function (err, list) {
if (err) return callback(err)
list = list.filter(function (f) {
return (/^_leveldown_test_db_/).test(f)
})
list = list.filter(function (f) {
return (/^_leveldown_test_db_/).test(f)
})
if (!list.length)
return callback()
if (!list.length)
return callback()
var ret = 0
var ret = 0
list.forEach(function (f) {
rimraf(path.join(__dirname, f), function (err) {
if (++ret == list.length)
callback()
list.forEach(function (f) {
rimraf(path.join(__dirname, f), function (err) {
if (++ret == list.length)
callback()
})
})
})
})
}
}

@@ -37,0 +39,0 @@

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