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

abstract-leveldown

Package Overview
Dependencies
Maintainers
3
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 2.1.2 to 2.1.3

12

package.json
{
"name": "abstract-leveldown",
"description": "An abstract prototype matching the LevelDOWN API",
"version": "2.1.2",
"version": "2.1.3",
"contributors": [

@@ -33,8 +33,8 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)",

"dependencies": {
"xtend": "~3.0.0"
"xtend": "~4.0.0"
},
"devDependencies": {
"tap": "*",
"sinon": "*",
"rimraf": "*"
"rimraf": "~2.3.2",
"sinon": "~1.14.1",
"tape": "~4.0.0"
},

@@ -45,5 +45,5 @@ "browser": {

"scripts": {
"test": "node ./test.js"
"test": "node test.js"
},
"license": "MIT"
}

@@ -1,2 +0,2 @@

const tap = require('tap')
const test = require('tape')
, sinon = require('sinon')

@@ -15,40 +15,40 @@ , util = require('util')

require('./abstract/leveldown-test').args(factory, tap.test, testCommon)
require('./abstract/leveldown-test').args(factory, test, testCommon)
require('./abstract/open-test').args(factory, tap.test, testCommon)
require('./abstract/open-test').args(factory, test, testCommon)
require('./abstract/del-test').setUp(factory, tap.test, testCommon)
require('./abstract/del-test').args(tap.test)
require('./abstract/del-test').setUp(factory, test, testCommon)
require('./abstract/del-test').args(test)
require('./abstract/get-test').setUp(factory, tap.test, testCommon)
require('./abstract/get-test').args(tap.test)
require('./abstract/get-test').setUp(factory, test, testCommon)
require('./abstract/get-test').args(test)
require('./abstract/put-test').setUp(factory, tap.test, testCommon)
require('./abstract/put-test').args(tap.test)
require('./abstract/put-test').setUp(factory, test, testCommon)
require('./abstract/put-test').args(test)
require('./abstract/put-get-del-test').setUp(factory, tap.test, testCommon)
require('./abstract/put-get-del-test').errorKeys(tap.test)
//require('./abstract/put-get-del-test').nonErrorKeys(tap.test, testCommon)
require('./abstract/put-get-del-test').errorValues(tap.test)
//require('./abstract/test/put-get-del-test').nonErrorKeys(tap.test, testCommon)
require('./abstract/put-get-del-test').tearDown(tap.test, testCommon)
require('./abstract/put-get-del-test').setUp(factory, test, testCommon)
require('./abstract/put-get-del-test').errorKeys(test)
//require('./abstract/put-get-del-test').nonErrorKeys(test, testCommon)
require('./abstract/put-get-del-test').errorValues(test)
//require('./abstract/test/put-get-del-test').nonErrorKeys(test, testCommon)
require('./abstract/put-get-del-test').tearDown(test, testCommon)
require('./abstract/approximate-size-test').setUp(factory, tap.test, testCommon)
require('./abstract/approximate-size-test').args(tap.test)
require('./abstract/approximate-size-test').setUp(factory, test, testCommon)
require('./abstract/approximate-size-test').args(test)
require('./abstract/batch-test').setUp(factory, tap.test, testCommon)
require('./abstract/batch-test').args(tap.test)
require('./abstract/batch-test').setUp(factory, test, testCommon)
require('./abstract/batch-test').args(test)
require('./abstract/chained-batch-test').setUp(factory, tap.test, testCommon)
require('./abstract/chained-batch-test').args(tap.test)
require('./abstract/chained-batch-test').setUp(factory, test, testCommon)
require('./abstract/chained-batch-test').args(test)
require('./abstract/close-test').close(factory, tap.test, testCommon)
require('./abstract/close-test').close(factory, test, testCommon)
require('./abstract/iterator-test').setUp(factory, tap.test, testCommon)
require('./abstract/iterator-test').args(tap.test)
require('./abstract/iterator-test').sequence(tap.test)
require('./abstract/iterator-test').setUp(factory, test, testCommon)
require('./abstract/iterator-test').args(test)
require('./abstract/iterator-test').sequence(test)
/*** extensibility ***/
tap.test('test core extensibility', function (t) {
test('test core extensibility', function (t) {
function Test (location) {

@@ -65,3 +65,3 @@ AbstractLevelDOWN.call(this, location)

tap.test('test open() extensibility', function (t) {
test('test open() extensibility', function (t) {
var spy = sinon.spy()

@@ -101,3 +101,3 @@ , expectedCb = function () {}

tap.test('test close() extensibility', function (t) {
test('test close() extensibility', function (t) {
var spy = sinon.spy()

@@ -125,3 +125,3 @@ , expectedCb = function () {}

tap.test('test get() extensibility', function (t) {
test('test get() extensibility', function (t) {
var spy = sinon.spy()

@@ -164,3 +164,3 @@ , expectedCb = function () {}

tap.test('test del() extensibility', function (t) {
test('test del() extensibility', function (t) {
var spy = sinon.spy()

@@ -201,3 +201,3 @@ , expectedCb = function () {}

tap.test('test put() extensibility', function (t) {
test('test put() extensibility', function (t) {
var spy = sinon.spy()

@@ -241,3 +241,3 @@ , expectedCb = function () {}

tap.test('test approximateSize() extensibility', function (t) {
test('test approximateSize() extensibility', function (t) {
var spy = sinon.spy()

@@ -269,3 +269,3 @@ , expectedCb = function () {}

tap.test('test batch() extensibility', function (t) {
test('test batch() extensibility', function (t) {
var spy = sinon.spy()

@@ -316,3 +316,3 @@ , expectedCb = function () {}

tap.test('test chained batch() (array) extensibility', function (t) {
test('test chained batch() (array) extensibility', function (t) {
var spy = sinon.spy()

@@ -359,3 +359,3 @@ , expectedCb = function () {}

tap.test('test chained batch() (custom _chainedBatch) extensibility', function (t) {
test('test chained batch() (custom _chainedBatch) extensibility', function (t) {
var spy = sinon.spy()

@@ -387,3 +387,3 @@ , test

tap.test('test AbstractChainedBatch extensibility', function (t) {
test('test AbstractChainedBatch extensibility', function (t) {
function Test (db) {

@@ -400,3 +400,3 @@ AbstractChainedBatch.call(this, db)

tap.test('test write() extensibility', function (t) {
test('test write() extensibility', function (t) {
var spy = sinon.spy()

@@ -421,3 +421,3 @@ , spycb = sinon.spy()

// awkward here cause of nextTick & an internal wrapped cb
t.type(spy.getCall(0).args[0], 'function', 'got a callback function')
t.equal(typeof spy.getCall(0).args[0], 'function', 'got a callback function')
t.equal(spycb.callCount, 0, 'spycb not called')

@@ -429,3 +429,3 @@ spy.getCall(0).args[0]()

tap.test('test put() extensibility', function (t) {
test('test put() extensibility', function (t) {
var spy = sinon.spy()

@@ -456,3 +456,3 @@ , expectedKey = 'key'

tap.test('test del() extensibility', function (t) {
test('test del() extensibility', function (t) {
var spy = sinon.spy()

@@ -481,3 +481,3 @@ , expectedKey = 'key'

tap.test('test clear() extensibility', function (t) {
test('test clear() extensibility', function (t) {
var spy = sinon.spy()

@@ -504,3 +504,3 @@ , returnValue

tap.test('test iterator() extensibility', function (t) {
test('test iterator() extensibility', function (t) {
var spy = sinon.spy()

@@ -528,3 +528,3 @@ , expectedOptions = { options: 1, reverse: false, keys: true, values: true, limit: -1, keyAsBuffer: true, valueAsBuffer: true }

tap.test('test AbstractIterator extensibility', function (t) {
test('test AbstractIterator extensibility', function (t) {
function Test (db) {

@@ -541,3 +541,3 @@ AbstractIterator.call(this, db)

tap.test('test next() extensibility', function (t) {
test('test next() extensibility', function (t) {
var spy = sinon.spy()

@@ -562,3 +562,3 @@ , spycb = sinon.spy()

// awkward here cause of nextTick & an internal wrapped cb
t.type(spy.getCall(0).args[0], 'function', 'got a callback function')
t.equal(typeof spy.getCall(0).args[0], 'function', 'got a callback function')
t.equal(spycb.callCount, 0, 'spycb not called')

@@ -570,3 +570,3 @@ spy.getCall(0).args[0]()

tap.test('test end() extensibility', function (t) {
test('test end() extensibility', function (t) {
var spy = sinon.spy()

@@ -573,0 +573,0 @@ , expectedCb = function () {}

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