entropic-bond 1.59.0 → 1.59.1

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.
@@ -545,7 +545,7 @@ var w = class extends u {
545
545
  constructor(e) {
546
546
  this._resolveCollectionPaths = () => {
547
547
  throw Error("The method collectionsMatchingTemplate has not been implemented in the concrete data source");
548
- }, this._disabledChangeListeners = /* @__PURE__ */ new Set(), this._collectionsToWatch = {}, e && (this._beforeUpdate = e.beforeUpdateDocument, this._afterUpdate = e.afterUpdateDocument, this._afterDocumentChange = e.afterDocumentChange, this._beforeDocumentChange = e.beforeDocumentChange, this._beforeQueryOwnerCollection = e.beforeQueryOwnerCollection), this.installUpdaters();
548
+ }, this._disabledChangeListeners = /* @__PURE__ */ new Set(), this._collectionsToWatch = {}, e && (this._beforeUpdateDocument = e.beforeUpdateDocument, this._afterUpdateDocument = e.afterUpdateDocument, this._afterDocumentChange = e.afterDocumentChange, this._beforeDocumentChange = e.beforeDocumentChange, this._beforeQueryOwnerCollection = e.beforeQueryOwnerCollection), this.installUpdaters();
549
549
  }
550
550
  installUpdaters() {
551
551
  let e = u.getSystemRegisteredReferencesWithCachedProps();
@@ -564,10 +564,10 @@ var w = class extends u {
564
564
  this._afterDocumentChange = e;
565
565
  }
566
566
  set beforeUpdateDocument(e) {
567
- this._beforeUpdate = e;
567
+ this._beforeUpdateDocument = e;
568
568
  }
569
569
  set afterUpdateDocument(e) {
570
- this._afterUpdate = e;
570
+ this._afterUpdateDocument = e;
571
571
  }
572
572
  set beforeQueryOwnerCollection(e) {
573
573
  this._beforeQueryOwnerCollection = e;
@@ -607,7 +607,7 @@ var w = class extends u {
607
607
  let e = a[t.name].findIndex((e) => e.id === r.before.id);
608
608
  a[t.name][e] = r.after;
609
609
  } else a[`_${t.name}`] = r.after;
610
- this._beforeUpdate?.(a, t), this.disableChangeListener(a), await n.save(a), this.enableChangeListener(a), i[e]?.updatedDocuments.push(a.id), this._afterUpdate?.(a, t);
610
+ this._beforeUpdateDocument?.(a, t, r.after), this.disableChangeListener(a), await n.save(a), this.enableChangeListener(a), i[e]?.updatedDocuments.push(a.id), this._afterUpdateDocument?.(a, t, r.after);
611
611
  } else return Promise.resolve();
612
612
  })]);
613
613
  }));