orbit-db-feedstore
Advanced tools
Comparing version 0.1.8 to 0.2.0
{ | ||
"name": "orbit-db-feedstore", | ||
"version": "0.1.8", | ||
"version": "0.2.0", | ||
"description": "Feed store for orbit-db", | ||
@@ -12,4 +12,4 @@ "main": "src/FeedStore.js", | ||
"dependencies": { | ||
"orbit-db-eventstore": "^0.1.9" | ||
"orbit-db-eventstore": "~0.2.0" | ||
} | ||
} |
'use strict' | ||
const EventIndex = require('orbit-db-eventstore/src/EventIndex') | ||
class FeedIndex { | ||
constructor() { | ||
this._index = {} | ||
} | ||
class FeedIndex extends EventIndex { | ||
updateIndex(oplog, added) { | ||
added.reduce((handled, item) => { | ||
get() { | ||
return Object.keys(this._index).map((f) => this._index[f]) | ||
} | ||
updateIndex(oplog) { | ||
oplog.items.reduce((handled, item) => { | ||
if(!handled.includes(item.hash)) { | ||
@@ -9,0 +15,0 @@ handled.push(item.hash) |
@@ -17,6 +17,3 @@ 'use strict' | ||
key: null, | ||
value: hash, | ||
meta: { | ||
ts: new Date().getTime() | ||
} | ||
value: hash | ||
} | ||
@@ -23,0 +20,0 @@ return this._addOperation(operation) |
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
42
4121
+ Addeddexie@1.5.1(transitive)
+ Addedfs-pull-blob-store@0.4.1(transitive)
+ Addedidb-pull-blob-store@0.5.1(transitive)
+ Addedipfs-log@2.0.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedlock@0.1.4(transitive)
+ Addedlooper@2.0.04.0.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedorbit-db-cache@0.0.7(transitive)
+ Addedorbit-db-eventstore@0.2.0(transitive)
+ Addedorbit-db-store@0.2.3(transitive)
+ Addedp-map@1.0.0(transitive)
+ Addedp-whilst@1.0.0(transitive)
+ Addedpull-cat@1.1.11(transitive)
+ Addedpull-defer@0.2.3(transitive)
+ Addedpull-file@1.1.0(transitive)
+ Addedpull-pushable@2.2.0(transitive)
+ Addedpull-stream@3.6.14(transitive)
+ Addedpull-utf8-decoder@1.0.2(transitive)
+ Addedpull-window@2.1.4(transitive)
+ Addedpull-write@1.1.4(transitive)
+ Addedpull-write-file@0.2.4(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
- Removedbluebird@3.7.2(transitive)
- Removedipfs-log@1.6.0-beta.8(transitive)
- Removedlodash.differencewith@4.5.0(transitive)
- Removedlodash.findindex@4.6.0(transitive)
- Removedlodash.flatten@4.4.0(transitive)
- Removedlodash.slice@4.2.0(transitive)
- Removedlodash.take@4.1.1(transitive)
- Removedlodash.unionwith@4.6.0(transitive)
- Removedorbit-db-eventstore@0.1.9(transitive)
- Removedorbit-db-store@0.1.16(transitive)
Updatedorbit-db-eventstore@~0.2.0