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

advance

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advance - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

2

package.json
{
"name": "advance",
"version": "0.0.16",
"version": "0.0.17",
"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.",

In-memory forward iterator for use with the Strata b-tree MVCC tool collection.
```javascript
function comparator (a, b) { return +a - +b }
var test = cadence(function () {
var iterator
async(function () {
iterator = advance.forward(comparator, [ 1, 2, 3 ])
iterator.next(async())
}, function (more) {
assert.ok(more)
var items = [], item
while (item = iterator.get()) {
items.push(item)
}
assert.deepEqual(items, [ 1, 2, 3 ], 'next')
iterator.next(async())
}, function (more) {
assert.ok(!more)
iterator.unlock(async())
})
})
test(function (error) { if (error) throw error })
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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