abstract-leveldown
Advanced tools
Comparing version 2.1.4 to 2.2.0
@@ -81,2 +81,24 @@ var db | ||
module.exports.sync = function (test) { | ||
test('sync put', function (t) { | ||
db.put('foo', 'bar', { sync: true }, function (err) { | ||
t.error(err) | ||
db.get('foo', function (err, value) { | ||
t.error(err) | ||
t.equal(value.toString(), 'bar') | ||
t.end() | ||
}) | ||
}) | ||
}) | ||
test('sync put just before close', function (t) { | ||
t.plan(2) | ||
db.put('foo', 'bar', { sync: true }, function (err) { | ||
t.error(err) | ||
}) | ||
db.close(function (err) { | ||
t.error(err) | ||
}) | ||
}) | ||
} | ||
module.exports.tearDown = function (test, testCommon) { | ||
@@ -93,2 +115,2 @@ test('tearDown', function (t) { | ||
module.exports.tearDown(test, testCommon) | ||
} | ||
} |
{ | ||
"name": "abstract-leveldown", | ||
"description": "An abstract prototype matching the LevelDOWN API", | ||
"version": "2.1.4", | ||
"version": "2.2.0", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
114613
2664
1