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

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.11.1 to 0.11.2

7

abstract/iterator-test.js

@@ -16,4 +16,9 @@ var db

}())
, transformSource = function (d) { return { key: d.key, value: d.value } }
, transformSource = function (d) {
return { key: d.key, value: String(d.value) }
}
module.exports.sourceData = sourceData
module.exports.transformSource = transformSource
module.exports.setUp = function (leveldown, test, testCommon) {

@@ -20,0 +25,0 @@ test('setUp common', testCommon.setUp)

17

abstract/ranges-test.js
var db
, sourceData = (function () {
var d = []
, i = 0
, k
for (; i < 100; i++) {
k = (i < 10 ? '0' : '') + i
d.push({
type : 'put'
, key : k
, value : Math.random()
})
}
return d
}())
, transformSource = function (d) { return { key: d.key, value: d.value } }
, sourceData = require('./iterator-test').sourceData
, transformSource = require('./iterator-test').transformSource

@@ -18,0 +5,0 @@ module.exports.setUp = function (leveldown, test, testCommon) {

{
"name" : "abstract-leveldown"
, "description" : "An abstract prototype matching the LevelDOWN API"
, "version" : "0.11.1"
, "contributors" : [
"Rod Vagg <r@va.gg> (https://github.com/rvagg)"
, "John Chesley <john@chesl.es> (https://github.com/chesles/)"
, "Jake Verbaten <raynos2@gmail.com> (https://github.com/raynos)"
, "Dominic Tarr <dominic.tarr@gmail.com> (https://github.com/dominictarr)"
, "Max Ogden <max@maxogden.com> (https://github.com/maxogden)"
, "Lars-Magnus Skog <lars.magnus.skog@gmail.com> (https://github.com/ralphtheninja)"
, "David Björklund <david.bjorklund@gmail.com> (https://github.com/kesla)"
, "Julian Gruber <julian@juliangruber.com> (https://github.com/juliangruber)"
, "Paolo Fragomeni <paolo@async.ly> (https://github.com/hij1nx)"
, "Anton Whalley <anton.whalley@nearform.com> (https://github.com/No9)"
, "Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)"
, "Pedro Teixeira <pedro.teixeira@gmail.com> (https://github.com/pgte)"
, "James Halliday <mail@substack.net> (https://github.com/substack)"
]
, "repository" : {
"type" : "git"
, "url" : "https://github.com/rvagg/node-abstract-leveldown.git"
}
, "homepage" : "https://github.com/rvagg/node-abstract-leveldown"
, "keywords" : [ "leveldb", "leveldown", "levelup" ]
, "main" : "./abstract-leveldown.js"
, "dependencies" : {
"xtend" : "~2.1.1"
}
, "devDependencies" : {
"tap" : "*"
, "sinon" : "*"
, "rimraf" : "*"
}
, "browser" : {
"rimraf" : false
}
, "scripts": {
"test" : "node ./test.js"
}
, "license" : "MIT"
"name": "abstract-leveldown",
"description": "An abstract prototype matching the LevelDOWN API",
"version": "0.11.2",
"contributors": [
"Rod Vagg <r@va.gg> (https://github.com/rvagg)",
"John Chesley <john@chesl.es> (https://github.com/chesles/)",
"Jake Verbaten <raynos2@gmail.com> (https://github.com/raynos)",
"Dominic Tarr <dominic.tarr@gmail.com> (https://github.com/dominictarr)",
"Max Ogden <max@maxogden.com> (https://github.com/maxogden)",
"Lars-Magnus Skog <lars.magnus.skog@gmail.com> (https://github.com/ralphtheninja)",
"David Björklund <david.bjorklund@gmail.com> (https://github.com/kesla)",
"Julian Gruber <julian@juliangruber.com> (https://github.com/juliangruber)",
"Paolo Fragomeni <paolo@async.ly> (https://github.com/hij1nx)",
"Anton Whalley <anton.whalley@nearform.com> (https://github.com/No9)",
"Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)",
"Pedro Teixeira <pedro.teixeira@gmail.com> (https://github.com/pgte)",
"James Halliday <mail@substack.net> (https://github.com/substack)"
],
"repository": {
"type": "git",
"url": "https://github.com/rvagg/node-abstract-leveldown.git"
},
"homepage": "https://github.com/rvagg/node-abstract-leveldown",
"keywords": [
"leveldb",
"leveldown",
"levelup"
],
"main": "./abstract-leveldown.js",
"dependencies": {
"xtend": "~2.1.1"
},
"devDependencies": {
"tap": "*",
"sinon": "*",
"rimraf": "*"
},
"browser": {
"rimraf": false
},
"scripts": {
"test": "node ./test.js"
},
"license": "MIT"
}

@@ -1,5 +0,8 @@

# Abstract LevelDOWN [![Build Status](https://secure.travis-ci.org/rvagg/node-abstract-leveldown.png)](http://travis-ci.org/rvagg/node-abstract-leveldown)
# Abstract LevelDOWN [![Build Status](https://secure.travis-ci.org/rvagg/abstract-leveldown.png)](http://travis-ci.org/rvagg/abstract-leveldown)
An abstract prototype matching the [LevelDOWN](https://github.com/rvagg/node-leveldown/) API. Useful for extending [LevelUP](https://github.com/rvagg/node-levelup) functionality by providing a replacement to LevelDOWN.
[![NPM](https://nodei.co/npm/abstract-leveldown.png?downloads=true)](https://nodei.co/npm/abstract-leveldown/)
[![NPM](https://nodei.co/npm-dl/abstract-leveldown.png?months=6)](https://nodei.co/npm/abstract-leveldown/)
An abstract prototype matching the **[LevelDOWN](https://github.com/rvagg/node-leveldown/)** API. Useful for extending **[LevelUP](https://github.com/rvagg/node-levelup)** functionality by providing a replacement to LevelDOWN.
As of version 0.7, LevelUP allows you to pass a `'db'` option when you create a new instance. This will override the default LevelDOWN store with a LevelDOWN API compatible object.

@@ -78,3 +81,3 @@

See [MemDOWN](https://github.com/rvagg/node-mem/) if you are looking for a complete in-memory replacement for LevelDOWN.
See [MemDOWN](https://github.com/rvagg/memdown/) if you are looking for a complete in-memory replacement for LevelDOWN.

@@ -157,2 +160,2 @@ ## Extensible API

Abstract LevelDOWN is licensed under an MIT +no-false-attribs license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
Abstract LevelDOWN is licensed under an MIT +no-false-attribs license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.

@@ -478,3 +478,3 @@ const tap = require('tap')

var spy = sinon.spy()
, expectedOptions = { options: 1 }
, expectedOptions = { options: 1, reverse: false } // reverse now explicitly set
, test

@@ -491,3 +491,3 @@

test = new Test('foobar')
test.iterator(expectedOptions)
test.iterator({ options: 1 })

@@ -497,3 +497,3 @@ t.equal(spy.callCount, 1, 'got _close() call')

t.equal(spy.getCall(0).args.length, 1, 'got one arguments')
t.equal(spy.getCall(0).args[0], expectedOptions, 'got expected options argument')
t.deepEqual(spy.getCall(0).args[0], expectedOptions, 'got expected options argument')
t.end()

@@ -562,2 +562,2 @@ })

t.end()
})
})

@@ -61,3 +61,3 @@ var path = require('path')

}
if (key == +key) key = +key
//if (key == +key) key = +key
data.push({ key: key, value: value })

@@ -64,0 +64,0 @@ process.nextTick(next)

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