@startinblox/core 0.19.0-beta.21 → 0.19.0-beta.23

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/dist/index.js CHANGED
@@ -11127,7 +11127,14 @@ class CustomGetter {
11127
11127
  * @param prop
11128
11128
  */
11129
11129
  isFullResource() {
11130
- return Object.keys(this.resource).filter((p) => !p.startsWith("@")).length > 0 || this.resource["@id"].startsWith("_:b");
11130
+ let propertiesKeys = Object.keys(this.resource).filter((p) => !p.startsWith("@"));
11131
+ if (this.resource["@id"].startsWith("_:b"))
11132
+ return true;
11133
+ if (propertiesKeys.length === 1 && propertiesKeys[0] === this.getExpandedPredicate("permissions"))
11134
+ return false;
11135
+ else if (propertiesKeys.length > 0)
11136
+ return true;
11137
+ return false;
11131
11138
  }
11132
11139
  /**
11133
11140
  * Get permissions of a resource
@@ -12097,7 +12104,7 @@ const StoreMixin = {
12097
12104
  this.resourceId = value;
12098
12105
  if (this.nestedField) {
12099
12106
  const resource = await store.getData(value, this.context, void 0, void 0, true);
12100
- const nestedResource = resource ? await resource[store.getExpandedPredicate(this.nestedField, this.context)] : null;
12107
+ const nestedResource = resource ? await resource[this.nestedField] : null;
12101
12108
  this.resourceId = nestedResource ? await nestedResource["@id"] : null;
12102
12109
  if (resource && !this.resourceId && !nestedResource) {
12103
12110
  console.trace();