@inflector/optima 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -719,7 +719,7 @@ ${valuesBlock}${isReturning ? "\nRETURNING *" : ""};`;
719
719
  const Result = await (await this.Connection.run(sql)).getRowObjects();
720
720
  if (Result.length != 0) {
721
721
  if (data.returning) {
722
- this.notifyChange({ event: "AddMany", data: Result, time: /* @__PURE__ */ new Date() });
722
+ this.notifyChange({ event: "Update", data: Result, time: /* @__PURE__ */ new Date() });
723
723
  } else {
724
724
  const Updated = PotentialyUpdated;
725
725
  const UpdatedPromises = Updated.map(
@@ -727,7 +727,7 @@ ${valuesBlock}${isReturning ? "\nRETURNING *" : ""};`;
727
727
  );
728
728
  const UpdatedRecords = await Promise.all(UpdatedPromises);
729
729
  this.notifyChange({
730
- event: "Add",
730
+ event: "Update",
731
731
  data: UpdatedRecords,
732
732
  time: /* @__PURE__ */ new Date()
733
733
  });
@@ -749,7 +749,7 @@ ${valuesBlock}${isReturning ? "\nRETURNING *" : ""};`;
749
749
  const Result = await (await this.Connection.run(sql)).getRowObjects();
750
750
  if (Result.length != 0) {
751
751
  if (data.returning) {
752
- this.notifyChange({ event: "DeleteMany", data: Result, time: /* @__PURE__ */ new Date() });
752
+ this.notifyChange({ event: "Delete", data: Result, time: /* @__PURE__ */ new Date() });
753
753
  } else {
754
754
  const DeletedRecords = PotentiallyDeleted;
755
755
  this.notifyChange({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/optima",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "type": "module",
5
5
  "author": "Inflector",
6
6
  "main": "./dist/index.js",