@firebase/database 1.1.5 → 1.1.6-20261111165442

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.esm.js CHANGED
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, stringToByteArray, Sha1, base64,
4
4
  import { Logger, LogLevel } from '@firebase/logger';
5
5
 
6
6
  const name = "@firebase/database";
7
- const version = "1.1.5";
7
+ const version = "1.1.6-20261111165442";
8
8
 
9
9
  /**
10
10
  * @license
@@ -11674,7 +11674,11 @@ function repoAbortTransactionsOnNode(repo, node) {
11674
11674
  let events = [];
11675
11675
  let lastSent = -1;
11676
11676
  for (let i = 0; i < queue.length; i++) {
11677
- if (queue[i].status === 3 /* TransactionStatus.SENT_NEEDS_ABORT */) ;
11677
+ if (queue[i].status === 3 /* TransactionStatus.SENT_NEEDS_ABORT */) {
11678
+ assert(lastSent === i - 1, 'All SENT_NEEDS_ABORT items should be at beginning of queue.');
11679
+ // Keep waiting for the outstanding response to clean up this transaction.
11680
+ lastSent = i;
11681
+ }
11678
11682
  else if (queue[i].status === 1 /* TransactionStatus.SENT */) {
11679
11683
  assert(lastSent === i - 1, 'All SENT items should be at beginning of queue.');
11680
11684
  lastSent = i;