Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "advance", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"author": "Alan Gutierrez <alan@prettyrobots.com>", | ||
@@ -5,0 +5,0 @@ "description": "In-memory forward iterator for use with the Strata b-tree MVCC tool collection.", |
@@ -1,2 +0,4 @@ | ||
require('proof')(2, require('cadence')(function (step, assert) { | ||
require('proof')(2, require('cadence')(prove)) | ||
function prove (async, assert) { | ||
var values = 'a b c'.split(/\s+/), records = [], keys = [] | ||
@@ -6,5 +8,5 @@ var iterator = require('../..')(values, function (record, callback) { | ||
}) | ||
step(function () { | ||
step(function () { | ||
iterator.next(step()) | ||
async(function () { | ||
async(function () { | ||
iterator.next(async()) | ||
}, function (record, key) { | ||
@@ -15,3 +17,3 @@ if (record && key) { | ||
} else { | ||
return [ step ] | ||
return [ async ] | ||
} | ||
@@ -22,4 +24,4 @@ })() | ||
assert(keys, values, 'keys') | ||
iterator.unlock(step()) | ||
iterator.unlock(async()) | ||
}) | ||
})) | ||
} |
Sorry, the diff of this file is not supported yet
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
6007
12
41