@prisma/client-engine-runtime 6.13.0-dev.6 → 6.13.0-dev.7

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.js CHANGED
@@ -1473,6 +1473,11 @@ var TransactionClosedError = class extends TransactionManagerError {
1473
1473
  super(`Transaction already closed: A ${operation} cannot be executed on a committed transaction.`);
1474
1474
  }
1475
1475
  };
1476
+ var TransactionClosingError = class extends TransactionManagerError {
1477
+ constructor(operation) {
1478
+ super(`Transaction is being closed: A ${operation} cannot be executed on a closing transaction.`);
1479
+ }
1480
+ };
1476
1481
  var TransactionRolledBackError = class extends TransactionManagerError {
1477
1482
  constructor(operation) {
1478
1483
  super(`Transaction already closed: A ${operation} cannot be executed on a transaction that was rolled back.`);
@@ -1623,6 +1628,9 @@ var TransactionManager = class {
1623
1628
  throw new TransactionNotFoundError();
1624
1629
  }
1625
1630
  }
1631
+ if (transaction.status === "closing") {
1632
+ throw new TransactionClosingError(operation);
1633
+ }
1626
1634
  if (["committed", "rolled_back", "timed_out"].includes(transaction.status)) {
1627
1635
  throw new TransactionInternalConsistencyError("Closed transaction found in active transactions map.");
1628
1636
  }
package/dist/index.mjs CHANGED
@@ -1424,6 +1424,11 @@ var TransactionClosedError = class extends TransactionManagerError {
1424
1424
  super(`Transaction already closed: A ${operation} cannot be executed on a committed transaction.`);
1425
1425
  }
1426
1426
  };
1427
+ var TransactionClosingError = class extends TransactionManagerError {
1428
+ constructor(operation) {
1429
+ super(`Transaction is being closed: A ${operation} cannot be executed on a closing transaction.`);
1430
+ }
1431
+ };
1427
1432
  var TransactionRolledBackError = class extends TransactionManagerError {
1428
1433
  constructor(operation) {
1429
1434
  super(`Transaction already closed: A ${operation} cannot be executed on a transaction that was rolled back.`);
@@ -1574,6 +1579,9 @@ var TransactionManager = class {
1574
1579
  throw new TransactionNotFoundError();
1575
1580
  }
1576
1581
  }
1582
+ if (transaction.status === "closing") {
1583
+ throw new TransactionClosingError(operation);
1584
+ }
1577
1585
  if (["committed", "rolled_back", "timed_out"].includes(transaction.status)) {
1578
1586
  throw new TransactionInternalConsistencyError("Closed transaction found in active transactions map.");
1579
1587
  }
@@ -9,6 +9,9 @@ export declare class TransactionNotFoundError extends TransactionManagerError {
9
9
  export declare class TransactionClosedError extends TransactionManagerError {
10
10
  constructor(operation: string);
11
11
  }
12
+ export declare class TransactionClosingError extends TransactionManagerError {
13
+ constructor(operation: string);
14
+ }
12
15
  export declare class TransactionRolledBackError extends TransactionManagerError {
13
16
  constructor(operation: string);
14
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-engine-runtime",
3
- "version": "6.13.0-dev.6",
3
+ "version": "6.13.0-dev.7",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,8 +31,8 @@
31
31
  "nanoid": "5.1.5",
32
32
  "ulid": "3.0.0",
33
33
  "uuid": "11.1.0",
34
- "@prisma/debug": "6.13.0-dev.6",
35
- "@prisma/driver-adapter-utils": "6.13.0-dev.6"
34
+ "@prisma/debug": "6.13.0-dev.7",
35
+ "@prisma/driver-adapter-utils": "6.13.0-dev.7"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/jest": "29.5.14",