@live-change/relations-plugin 0.9.98 → 0.9.99
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/relations-plugin",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.99",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.9.
|
|
25
|
+
"@live-change/framework": "^0.9.99",
|
|
26
26
|
"pluralize": "^8.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"typedoc-plugin-markdown": "^4.6.3",
|
|
31
31
|
"typedoc-plugin-rename-defaults": "^0.7.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "be394720644be1eea528f1f5272dd8066081bc93"
|
|
34
34
|
}
|
|
@@ -8,7 +8,8 @@ import {
|
|
|
8
8
|
} from './utilsAny.js'
|
|
9
9
|
import {
|
|
10
10
|
extractObjectData,
|
|
11
|
-
cloneAndPrepareAccessControl as cloneAndPrepareSingleAccessControl
|
|
11
|
+
cloneAndPrepareAccessControl as cloneAndPrepareSingleAccessControl,
|
|
12
|
+
propertiesWithoutDefaults
|
|
12
13
|
} from './utils.js'
|
|
13
14
|
import { allCombinations } from "./combinations.js"
|
|
14
15
|
import { fireChangeTriggers } from "./changeTriggers.js"
|
|
@@ -62,7 +62,8 @@ export function defineObjectView(config, context, external = true) {
|
|
|
62
62
|
const path = config.fields ? modelRuntime().limitedPath(idProp, config.fields) : modelRuntime().path(idProp)
|
|
63
63
|
return path
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const idParts = extractIdParts(otherPropertyNames, properties)
|
|
66
|
+
const id = idParts.length > 1 ? idParts.map(p => JSON.stringify(p)).join(':') : idParts[0]
|
|
66
67
|
const path = config.fields ? modelRuntime().limitedPath(id, config.fields) : modelRuntime().path(id)
|
|
67
68
|
return path
|
|
68
69
|
}
|