@live-change/framework 0.5.0 → 0.5.1
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/App.js +5 -2
- package/package.json +2 -1
package/lib/App.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { uidGenerator, randomString } = require('@live-change/uid')
|
|
2
2
|
|
|
3
3
|
const ReactiveDao = require("@live-change/dao")
|
|
4
4
|
|
|
@@ -70,6 +70,9 @@ class App {
|
|
|
70
70
|
this.profileLog = profileLog
|
|
71
71
|
|
|
72
72
|
this.databaseName = config?.db?.name || 'test'
|
|
73
|
+
|
|
74
|
+
this.instanceId = randomString(4)
|
|
75
|
+
this.uidGenerator = uidGenerator(this.instanceId)
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
createServiceDefinition( definition ) {
|
|
@@ -148,7 +151,7 @@ class App {
|
|
|
148
151
|
}
|
|
149
152
|
|
|
150
153
|
generateUid() {
|
|
151
|
-
return
|
|
154
|
+
return this.uidGenerator()
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
async clientSideDefinition( service, client, filters ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@live-change/db": "^0.3.62",
|
|
27
27
|
"@live-change/db-store-level": "^0.1.14",
|
|
28
28
|
"@live-change/db-store-lmdb": "^0.1.21",
|
|
29
|
+
"@live-change/uid": "^0.1.2",
|
|
29
30
|
"cookie": "^0.4.1",
|
|
30
31
|
"encoding-down": "^7.0.0",
|
|
31
32
|
"express": "^4.17.1",
|