@live-change/relations-plugin 0.9.203 → 0.9.204

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.203",
3
+ "version": "0.9.204",
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.203",
25
+ "@live-change/framework": "^0.9.204",
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": "4d4ce413fe747da2c398eb4ad378e37cc81874b3"
33
+ "gitHead": "6ac17ccf3c184ca4d7ef920f63827dbfd8749f96"
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 (obj, oldObj) => {
330
- const id = obj?.id ?? oldObj?.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)