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

@live-change/framework

Package Overview
Dependencies
Maintainers
1
Versions
333
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/framework - npm Package Compare versions

Comparing version 0.4.41 to 0.4.42

28

lib/App.js

@@ -12,10 +12,6 @@ const crypto = require("crypto")

const RTCMSDao = require("./runtime/Dao.js")
const Dao = require("./runtime/Dao.js")
const ApiServer = require("./runtime/ApiServer.js")
const SessionApiServer = require("./runtime/SessionApiServer.js")
const { Client: ElasticSearch } = require('@elastic/elasticsearch')
const AnalyticsWriter = require('./utils/AnalyticsWriter.js')
const reverseRelationProcessor = require("./processors/reverseRelation.js")

@@ -25,3 +21,2 @@ const indexListProcessor = require("./processors/indexList.js")

const draftGenerator = require("./processors/draftGenerator.js")
const searchIndex = require("./processors/searchIndex.js")
const daoPathView = require("./processors/daoPathView.js")

@@ -34,3 +29,2 @@ const fetchView = require("./processors/fetchView.js")

const databaseUpdater = require("./updaters/database.js")
const elasticSearchUpdater = require("./updaters/elasticsearch.js")

@@ -62,7 +56,5 @@ const accessControlFilter = require("./clientSideFilters/accessControlFilter.js")

]
if(env.SEARCH_INDEX_PREFIX) this.defaultProcessors.push(searchIndex)
this.defaultUpdaters = [
databaseUpdater
]
if(env.SEARCH_INDEX_PREFIX) this.defaultUpdaters.push(elasticSearchUpdater)
this.defaultClientSideFilters = [

@@ -104,18 +96,2 @@ accessControlFilter,

connectToSearch() {
if(!this.env.SEARCH_INDEX_PREFIX) throw new Error("ElasticSearch not configured")
if(this.search) return this.search
this.searchIndexPrefix = this.env.SEARCH_INDEX_PREFIX
this.search = new ElasticSearch({ node: this.env.SEARCH_URL || 'http://localhost:9200' })
//this.search.info(console.log)
return this.search
}
connectToAnalytics() {
if(!this.env.ANALYTICS_INDEX_PREFIX) throw new Error("ElasticSearch analytics not configured")
if(this.analytics) return this.analytics
this.analytics = new AnalyticsWriter(this.env.ANALYTICS_INDEX_PREFIX)
return this.analytics
}
createServiceDefinition( definition ) {

@@ -184,3 +160,3 @@ const config = this.config && this.config.services && this.config.services[definition.name]

async createReactiveDao( config, clientData ) {
return new RTCMSDao(config, clientData)
return new Dao(config, clientData)
}

@@ -187,0 +163,0 @@

5

package.json
{
"name": "@live-change/framework",
"version": "0.4.41",
"version": "0.4.42",
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",

@@ -44,6 +44,3 @@ "main": "index.js",

"websocket": "^1.0.34"
},
"dependencies": {
"@elastic/elasticsearch": "7.13.0"
}
}
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