@live-change/framework 0.5.23 → 0.5.27
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.
|
@@ -85,6 +85,7 @@ class ServiceDefinition {
|
|
|
85
85
|
this.processors = []
|
|
86
86
|
this.authenticators = []
|
|
87
87
|
this.beforeStartCallbacks = []
|
|
88
|
+
this.endpoints = []
|
|
88
89
|
this.validators = defaultValidators
|
|
89
90
|
for(let key in definition) this[key] = definition[key]
|
|
90
91
|
}
|
|
@@ -149,6 +150,10 @@ class ServiceDefinition {
|
|
|
149
150
|
this.beforeStartCallbacks.push(callback)
|
|
150
151
|
}
|
|
151
152
|
|
|
153
|
+
endpoint(endpoint) {
|
|
154
|
+
this.endpoints.push(endpoint)
|
|
155
|
+
}
|
|
156
|
+
|
|
152
157
|
toJSON() {
|
|
153
158
|
let models = {}
|
|
154
159
|
for(let key in this.models) models[key] = this.models[key].toJSON()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.27",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
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
|
"devDependencies": {
|
|
24
|
-
"@live-change/dao": "0.4.
|
|
25
|
-
"@live-change/dao-websocket": "0.4.
|
|
24
|
+
"@live-change/dao": "0.4.2",
|
|
25
|
+
"@live-change/dao-websocket": "0.4.2",
|
|
26
26
|
"@live-change/db": "0.5.4",
|
|
27
27
|
"@live-change/db-store-level": "0.5.4",
|
|
28
28
|
"@live-change/db-store-lmdb": "0.5.4",
|
|
29
29
|
"@live-change/sockjs": "^0.4.0-rc.1",
|
|
30
|
-
"@live-change/uid": "0.5.
|
|
30
|
+
"@live-change/uid": "^0.5.27",
|
|
31
31
|
"cookie": "^0.4.1",
|
|
32
32
|
"express": "^4.17.1",
|
|
33
33
|
"os-service": "^2.2.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"tape": "^5.3.2",
|
|
36
36
|
"websocket": "^1.0.34"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "8cdab8d362794c923e765193d2e786fb29587877"
|
|
39
39
|
}
|