@live-change/relations-plugin 0.9.203 → 0.9.205
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/propertyOf.ts +1 -1
- package/src/utilsAny.ts +2 -2
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.205",
|
|
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.205",
|
|
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": "ef195e51ea283e56d891b11da5d5f586691507db"
|
|
34
34
|
}
|
package/src/propertyOf.ts
CHANGED
|
@@ -77,7 +77,7 @@ export default function(service, app) {
|
|
|
77
77
|
|| config.readAccess || config.readAccessControl
|
|
78
78
|
|| config.writeAccess || config.writeAccessControl))
|
|
79
79
|
defineRangeViews(config, context,
|
|
80
|
-
!!(config.listAccess || config.readAccess || config.listAccessControl))
|
|
80
|
+
!!(config.listAccess || config.readAccess || config.listAccessControl || config.readAccessControl))
|
|
81
81
|
|
|
82
82
|
if(config.views) {
|
|
83
83
|
for(const view of config.views) {
|
package/src/utilsAny.ts
CHANGED
|
@@ -326,8 +326,8 @@ export function defineAnyTypeIndexes(config, context, useId = false) {
|
|
|
326
326
|
//property: [propertyName+'Type'],
|
|
327
327
|
function: async function(input, output, { indexName }) {
|
|
328
328
|
const index = await input.index(indexName)
|
|
329
|
-
await index.onChange(async (
|
|
330
|
-
const id =
|
|
329
|
+
await index.onChange(async (indexEntry, oldIndexEntry) => {
|
|
330
|
+
const id = indexEntry?.id ?? oldIndexEntry?.id
|
|
331
331
|
const typeJson = id.slice(0, id.indexOf(':'))
|
|
332
332
|
try {
|
|
333
333
|
const type = JSON.parse(typeJson)
|