@firebase/database 1.1.5 → 1.1.6-20261110194028

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.cjs.js CHANGED
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
8
8
  var logger$1 = require('@firebase/logger');
9
9
 
10
10
  const name = "@firebase/database";
11
- const version = "1.1.5";
11
+ const version = "1.1.6-20261110194028";
12
12
 
13
13
  /**
14
14
  * @license
@@ -11678,7 +11678,11 @@ function repoAbortTransactionsOnNode(repo, node) {
11678
11678
  let events = [];
11679
11679
  let lastSent = -1;
11680
11680
  for (let i = 0; i < queue.length; i++) {
11681
- if (queue[i].status === 3 /* TransactionStatus.SENT_NEEDS_ABORT */) ;
11681
+ if (queue[i].status === 3 /* TransactionStatus.SENT_NEEDS_ABORT */) {
11682
+ util.assert(lastSent === i - 1, 'All SENT_NEEDS_ABORT items should be at beginning of queue.');
11683
+ // Keep waiting for the outstanding response to clean up this transaction.
11684
+ lastSent = i;
11685
+ }
11682
11686
  else if (queue[i].status === 1 /* TransactionStatus.SENT */) {
11683
11687
  util.assert(lastSent === i - 1, 'All SENT items should be at beginning of queue.');
11684
11688
  lastSent = i;