Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const BeeDiffStream = require('.')
const Hyperbee = require('hyperbee')
const ram = require('random-access-memory')
const Autobase = require('autobase')
const Corestore = require('corestore')

Expand All @@ -25,7 +24,7 @@ async function main () {
valueEncoding: 'json' // the apply function will receive batches of jsons
}

const store = new Corestore(ram)
const store = new Corestore('./example.db')
const base = new Autobase(store, null, opts)
await base.append({ add: ['e1', 'entry1'] })
await base.append({ add: ['e2', 'entry2'] })
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
"author": "Holepunch",
"license": "Apache-2.0",
"devDependencies": {
"autobase": "^6.0.0",
"autobase-test-helpers": "^2.0.4",
"autobase": "^7.0.0",
"autobase-test-helpers": "^3.0.0",
"brittle": "^3.1.1",
"corestore": "^6.5.0",
"corestore": "^7.0.0",
"hyperbee": "^2.5.0",
"random-access-memory": "^6.1.0",
"standard": "^17.0.0"
"standard": "^17.0.0",
"test-tmp": "^1.4.0"
},
"dependencies": {
"b4a": "^1.6.1",
Expand Down
Loading