@live-change/relations-plugin 0.9.81 → 0.9.83
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 +3 -3
- package/src/itemOf.ts +2 -2
- package/src/utils.ts +1 -0
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.83",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.9.
|
|
25
|
+
"@live-change/framework": "^0.9.83",
|
|
26
26
|
"pluralize": "^8.0.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "db3fcd19e6e3a47dda84d3906e697623f057713a"
|
|
29
29
|
}
|
package/src/itemOf.ts
CHANGED
|
@@ -61,9 +61,9 @@ export default function(service: ServiceDefinition<ServiceDefinitionSpecificatio
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
defineSingleView(config, context,
|
|
64
|
-
config.readAccess || config.readAccessControl || config.writeAccessControl)
|
|
64
|
+
!!(config.readAccess || config.readAccessControl || config.writeAccessControl))
|
|
65
65
|
defineRangeView(config, context,
|
|
66
|
-
config.readAccess || config.readAccessControl || config.writeAccessControl)
|
|
66
|
+
!!(config.readAccess || config.readAccessControl || config.writeAccessControl))
|
|
67
67
|
/// TODO: multiple views with limited fields
|
|
68
68
|
|
|
69
69
|
defineGlobalRangeView(config, context, !!config.readAllAccess)
|
package/src/utils.ts
CHANGED
|
@@ -167,6 +167,7 @@ export function processModelsAnnotation<PreparedConfig extends RelationConfig>
|
|
|
167
167
|
config = { what: config }
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
// @ts-ignore
|
|
170
171
|
console.log("MODEL " + modelName + " IS " + annotation + " " + config.what ?? '')
|
|
171
172
|
|
|
172
173
|
const what = (Array.isArray(config.what) ? config.what : [config.what])
|