Comparing version 0.3.0 to 0.4.0
@@ -63,2 +63,5 @@ var util = require('util') | ||
function MemDOWN (location) { | ||
if (!(this instanceof MemDOWN)) | ||
return new MemDOWN(location) | ||
AbstractLevelDOWN.call(this, location) | ||
@@ -65,0 +68,0 @@ this._store = {} |
{ | ||
"name" : "memdown" | ||
, "description" : "An drop-in replacement for LevelDOWN that works in memory only" | ||
, "version" : "0.3.0" | ||
, "version" : "0.4.0" | ||
, "homepage" : "https://github.com/rvagg/node-memdown" | ||
@@ -6,0 +6,0 @@ , "authors" : [ |
26
test.js
@@ -7,27 +7,23 @@ var test = require('tape') | ||
, factory = function (location) { | ||
return new MemDOWN(location) | ||
} | ||
/*** compatibility with basic LevelDOWN API ***/ | ||
require('abstract-leveldown/abstract/leveldown-test').args(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/leveldown-test').args(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/open-test').args(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/open-test').open(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/open-test').args(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/open-test').open(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/del-test').all(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/del-test').all(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/get-test').all(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/get-test').all(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/put-test').all(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/put-test').all(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/put-get-del-test').all(factory, test, testCommon, testBuffer, process.browser && Uint8Array) | ||
require('abstract-leveldown/abstract/put-get-del-test').all(MemDOWN, test, testCommon, testBuffer, process.browser && Uint8Array) | ||
require('abstract-leveldown/abstract/batch-test').all(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/chained-batch-test').all(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/batch-test').all(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/chained-batch-test').all(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/close-test').close(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/close-test').close(MemDOWN, test, testCommon) | ||
require('abstract-leveldown/abstract/iterator-test').all(factory, test, testCommon) | ||
require('abstract-leveldown/abstract/iterator-test').all(MemDOWN, test, testCommon) | ||
@@ -34,0 +30,0 @@ test('unsorted entry, sorted iterator', function (t) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24472
204