@live-change/relations-plugin 0.8.142 → 0.8.144
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.8.
|
|
3
|
+
"version": "0.8.144",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.8.
|
|
25
|
+
"@live-change/framework": "^0.8.144",
|
|
26
26
|
"pluralize": "^8.0.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "cea115baa7d457fa6e3865d025662b1e11b15aac"
|
|
29
29
|
}
|
|
@@ -78,8 +78,7 @@ function defineSingleView(config, context, external = true) {
|
|
|
78
78
|
service.views[viewName] = new ViewDefinition({
|
|
79
79
|
name: viewName,
|
|
80
80
|
properties: {
|
|
81
|
-
...viewProperties
|
|
82
|
-
...App.utils.rangeProperties
|
|
81
|
+
...viewProperties
|
|
83
82
|
},
|
|
84
83
|
returns: {
|
|
85
84
|
type: model
|
|
@@ -87,8 +86,8 @@ function defineSingleView(config, context, external = true) {
|
|
|
87
86
|
internal: !external,
|
|
88
87
|
access: external && (config.readAccess || config.writeAccess),
|
|
89
88
|
accessControl,
|
|
90
|
-
daoPath(properties, { client, context }) {
|
|
91
|
-
const idParts =
|
|
89
|
+
async daoPath(properties, { client, context }) {
|
|
90
|
+
const idParts = extractTypeAndIdParts(otherPropertyNames, properties)
|
|
92
91
|
const prefix = App.encodeIdentifier(idParts)
|
|
93
92
|
const range = {
|
|
94
93
|
gte: prefix+'_'+properties[modelPropertyName],
|