@live-change/framework 0.6.0 → 0.6.3
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/index.js +1 -0
- package/lib/runtime/LiveDao.js +1 -1
- package/lib/utils.js +12 -1
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -13,6 +13,7 @@ module.exports.utils = require('./lib/utils.js')
|
|
|
13
13
|
module.exports.validation = require('./lib/utils/validation.js')
|
|
14
14
|
module.exports.rangeProperties = module.exports.utils.rangeProperties
|
|
15
15
|
module.exports.encodeIdentifier = module.exports.utils.encodeIdentifier
|
|
16
|
+
module.exports.extractRange = module.exports.utils.extractRange
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
module.exports.ActionDefinition = require('./lib/definition/ActionDefinition.js')
|
package/lib/runtime/LiveDao.js
CHANGED
|
@@ -88,7 +88,7 @@ class LiveDao extends LcDao.DaoProxy {
|
|
|
88
88
|
this.disposed = true
|
|
89
89
|
this.started = false
|
|
90
90
|
for(const observation of this.credentialsObservations) {
|
|
91
|
-
observation.observable.
|
|
91
|
+
observation.observable.unobserve(observation.observer)
|
|
92
92
|
}
|
|
93
93
|
super.dispose()
|
|
94
94
|
}
|
package/lib/utils.js
CHANGED
|
@@ -253,9 +253,20 @@ function encodeIdentifier(parts) {
|
|
|
253
253
|
return parts.map(p => JSON.stringify(p)).join(':')
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
+
function extractRange(properties) {
|
|
257
|
+
return {
|
|
258
|
+
gt: properties.gt,
|
|
259
|
+
gte: properties.gte,
|
|
260
|
+
lt: properties.lt,
|
|
261
|
+
lte: properties.lte,
|
|
262
|
+
reverse: properties.reverse,
|
|
263
|
+
limit: properties.limit
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
256
267
|
module.exports = {
|
|
257
268
|
typeName, toJSON, setDifference, mapDifference, crudChanges,
|
|
258
269
|
getProperty, setProperty, getField, setField, isObject, mergeDeep, generateDefault,
|
|
259
270
|
prefixRange, rangeProperties, fieldListToFieldsObject,
|
|
260
|
-
encodeIdentifier
|
|
271
|
+
encodeIdentifier, extractRange
|
|
261
272
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
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.
|
|
26
|
-
"@live-change/db": "0.5.
|
|
27
|
-
"@live-change/db-store-level": "0.5.
|
|
28
|
-
"@live-change/db-store-lmdb": "0.5.
|
|
24
|
+
"@live-change/dao": "0.4.8",
|
|
25
|
+
"@live-change/dao-websocket": "0.4.8",
|
|
26
|
+
"@live-change/db": "0.5.9",
|
|
27
|
+
"@live-change/db-store-level": "0.5.9",
|
|
28
|
+
"@live-change/db-store-lmdb": "0.5.9",
|
|
29
29
|
"@live-change/sockjs": "^0.4.0-rc.1",
|
|
30
|
-
"@live-change/uid": "
|
|
30
|
+
"@live-change/uid": "0.6.0",
|
|
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": "d9fe68f41bd885b62894868679f7477529463fd4"
|
|
39
39
|
}
|