@live-change/framework 0.7.0 → 0.7.2
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/utils.js +4 -1
- package/package.json +3 -3
package/lib/utils.js
CHANGED
|
@@ -190,7 +190,10 @@ function generateDefault(properties) {
|
|
|
190
190
|
function prefixRange({ gt, lt, gte, lte, limit, reverse }, prefix, from = "") {
|
|
191
191
|
function getPrefix(id) {
|
|
192
192
|
if(id.length > from.length) {
|
|
193
|
-
if(id.slice(0, from.length) != from)
|
|
193
|
+
if(id.slice(0, from.length) != from) {
|
|
194
|
+
console.error("ID:", id, "does not start with", from)
|
|
195
|
+
throw new Error("id does not match prefix")
|
|
196
|
+
}
|
|
194
197
|
id = id.slice(from.length)
|
|
195
198
|
}
|
|
196
199
|
if(id === '') return `${prefix}:`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@live-change/db-store-level": "0.5.18",
|
|
28
28
|
"@live-change/db-store-lmdb": "0.5.18",
|
|
29
29
|
"@live-change/sockjs": "0.4.1",
|
|
30
|
-
"@live-change/uid": "^0.7.
|
|
30
|
+
"@live-change/uid": "^0.7.2",
|
|
31
31
|
"cookie": "^0.4.1",
|
|
32
32
|
"express": "^4.18.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": "946630a9b716bf48c6b77aea43c79b200bc82f9e"
|
|
39
39
|
}
|