@live-change/framework
Advanced tools
Comparing version 0.4.41 to 0.4.42
@@ -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 @@ |
{ | ||
"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" | ||
} | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
7
158374
57
4294
- Removed@elastic/elasticsearch@7.13.0
- Removed@elastic/elasticsearch@7.13.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removedhpagent@0.1.2(transitive)
- Removedms@2.1.3(transitive)
- Removedsecure-json-parse@2.7.0(transitive)