@live-change/framework 0.9.105 → 0.9.106
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.
|
@@ -10,8 +10,16 @@ export interface ModelIndexDefinitionSpecification {
|
|
|
10
10
|
multi?: boolean,
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
export type ValidationConfig = string | {
|
|
14
|
+
name: string,
|
|
15
|
+
[key: string]: any
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
export interface ModelPropertyDefinitionSpecification {
|
|
14
19
|
type?: any,
|
|
20
|
+
default?: ((...args: any[]) => any) | any,
|
|
21
|
+
updated?: (...args: any[]) => any,
|
|
22
|
+
validation?: ValidationConfig[],
|
|
15
23
|
index?: ModelIndexDefinitionSpecification
|
|
16
24
|
}
|
|
17
25
|
|
package/lib/utils.js
CHANGED
|
@@ -229,7 +229,6 @@ function prefixRange({ gt, lt, gte, lte, limit, reverse }, prefix, from = "") {
|
|
|
229
229
|
if(id.length > from.length) {
|
|
230
230
|
if(id.slice(0, from.length) !== from) {
|
|
231
231
|
console.error("ID:", id, "does not start with", from)
|
|
232
|
-
console.trace('id does not match prefix')
|
|
233
232
|
throw new Error("id does not match prefix")
|
|
234
233
|
}
|
|
235
234
|
id = id.slice(from.length)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.106",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@live-change/dao": "^0.9.
|
|
26
|
-
"@live-change/uid": "^0.9.
|
|
25
|
+
"@live-change/dao": "^0.9.106",
|
|
26
|
+
"@live-change/uid": "^0.9.106",
|
|
27
27
|
"typedoc": "0.28.3",
|
|
28
28
|
"typedoc-plugin-markdown": "^4.6.3",
|
|
29
29
|
"typedoc-plugin-rename-defaults": "^0.7.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "1afc853b9044a57046dae972df68d89c8c1cd1a6"
|
|
32
32
|
}
|