Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 06da589

Browse files
authored
Merge pull request #38 from orbitdb/feat/options
Feat/options
2 parents 4f05a19 + c379908 commit 06da589

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
],
2727
"license": "MIT",
2828
"dependencies": {
29-
"orbit-db-store": "~2.7.0"
29+
"orbit-db-store": "~3.0.0"
3030
},
3131
"localMaintainers": [
3232

src/KeyValueStore.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ class KeyValueStore extends Store {
1919
return this._index.get(key)
2020
}
2121

22-
set (key, data) {
23-
return this.put(key, data)
22+
set (key, data, options = {}) {
23+
return this.put(key, data, options)
2424
}
2525

26-
put (key, data) {
26+
put (key, data, options = {}) {
2727
return this._addOperation({
2828
op: 'PUT',
2929
key: key,
3030
value: data
31-
})
31+
}, options)
3232
}
3333

34-
del (key) {
34+
del (key, options = {}) {
3535
return this._addOperation({
3636
op: 'DEL',
3737
key: key,
3838
value: null
39-
})
39+
}, options)
4040
}
4141
}
4242

0 commit comments

Comments
 (0)