orchid-orm 1.49.8 → 1.50.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.
package/dist/index.mjs CHANGED
@@ -2061,6 +2061,9 @@ function ensureTransaction(cb) {
2061
2061
  function isInTransaction() {
2062
2062
  return this.$queryBuilder.isInTransaction();
2063
2063
  }
2064
+ function afterCommit(hook) {
2065
+ this.$queryBuilder.afterCommit(hook);
2066
+ }
2064
2067
 
2065
2068
  const orchidORM = ({
2066
2069
  log,
@@ -2097,6 +2100,7 @@ const orchidORM = ({
2097
2100
  $transaction: transaction,
2098
2101
  $ensureTransaction: ensureTransaction,
2099
2102
  $isInTransaction: isInTransaction,
2103
+ $afterCommit: afterCommit,
2100
2104
  $adapter: adapter,
2101
2105
  $queryBuilder: qb,
2102
2106
  $query: (...args) => qb.query(...args),