abstract-leveldown
Advanced tools
Comparing version 0.6.1 to 0.7.0
@@ -33,2 +33,7 @@ /* Copyright (c) 2013 Rod Vagg, MIT License */ | ||
AbstractChainedBatch.prototype.clear = function () { | ||
this._operations = [] | ||
return this | ||
} | ||
AbstractChainedBatch.prototype.write = function (options, callback) { | ||
@@ -35,0 +40,0 @@ if (typeof options == 'function') |
@@ -92,2 +92,7 @@ var db | ||
test('test batch#clear() doesn\'t throw', function (t) { | ||
db.batch().clear() | ||
t.end() | ||
}) | ||
test('test batch#write() with no callback', function (t) { | ||
@@ -116,2 +121,6 @@ try { | ||
db.batch() | ||
.put('1', 'one') | ||
.del('2', 'two') | ||
.put('3', 'three') | ||
.clear() | ||
.put('one', 'I') | ||
@@ -118,0 +127,0 @@ .put('two', 'II') |
{ | ||
"name" : "abstract-leveldown" | ||
, "description" : "An abstract prototype matching the LevelDOWN API" | ||
, "version" : "0.6.1" | ||
, "version" : "0.7.0" | ||
, "homepage" : "https://github.com/rvagg/node-abstract-leveldown" | ||
@@ -6,0 +6,0 @@ , "contributors" : [ |
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
82817
1809