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

orbit-db-feedstore

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orbit-db-feedstore - npm Package Compare versions

Comparing version 0.1.8 to 0.2.0

4

package.json
{
"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)

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