@live-change/server 0.7.33 → 0.7.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Services.js +2 -2
- package/package.json +8 -8
package/lib/Services.js
CHANGED
|
@@ -42,14 +42,14 @@ class Services {
|
|
|
42
42
|
for(const plugin of this.config.plugins) {
|
|
43
43
|
const entryFile = await this.getServiceEntryFile(plugin)
|
|
44
44
|
debug("PLUGIN", plugin, 'ENTRY FILE', entryFile)
|
|
45
|
-
this.plugins.push(
|
|
45
|
+
this.plugins.push((await import(entryFile)).default)
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
if(this.config.services) {
|
|
49
49
|
for(const service of this.config.services) {
|
|
50
50
|
const entryFile = await this.getServiceEntryFile(service)
|
|
51
51
|
debug("SERVICE", service, 'ENTRY FILE', entryFile)
|
|
52
|
-
const definition =
|
|
52
|
+
const definition = (await import(entryFile)).default
|
|
53
53
|
if(definition.name != service.name) {
|
|
54
54
|
console.error("SERVICE", service, "NAME", service.name, "MISMATCH", definition.name)
|
|
55
55
|
process.exit(1)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/server",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.34",
|
|
4
4
|
"description": "Live Change Framework - server",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/live-change/live-change-framework",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/dao": "0.5.
|
|
25
|
-
"@live-change/dao-sockjs": "0.5.
|
|
26
|
-
"@live-change/db-server": "0.6.
|
|
27
|
-
"@live-change/framework": "^0.7.
|
|
24
|
+
"@live-change/dao": "0.5.22",
|
|
25
|
+
"@live-change/dao-sockjs": "0.5.22",
|
|
26
|
+
"@live-change/db-server": "0.6.23",
|
|
27
|
+
"@live-change/framework": "^0.7.34",
|
|
28
28
|
"@live-change/sockjs": "0.4.1",
|
|
29
|
-
"@live-change/uid": "^0.7.
|
|
30
|
-
"dotenv": "^16.0.
|
|
29
|
+
"@live-change/uid": "^0.7.34",
|
|
30
|
+
"dotenv": "^16.0.3",
|
|
31
31
|
"express": "^4.18.2",
|
|
32
32
|
"express-static-gzip": "2.1.7",
|
|
33
33
|
"http-proxy-middleware": "2.0.6",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"websocket": "^1.0.34",
|
|
39
39
|
"yargs": "^17.5.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "730c14caf86069665193ce157b2663358abef342"
|
|
42
42
|
}
|