@prisma/client-engine-runtime 6.11.0-dev.12 → 6.11.0-dev.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.
- package/dist/index.js +4 -5
- package/dist/index.mjs +4 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1435,17 +1435,16 @@ var TransactionManager = class {
|
|
|
1435
1435
|
transaction: void 0
|
|
1436
1436
|
};
|
|
1437
1437
|
this.transactions.set(transaction.id, transaction);
|
|
1438
|
-
|
|
1439
|
-
|
|
1438
|
+
const startTimer = setTimeout(() => transaction.status = "timed_out", validatedOptions.maxWait);
|
|
1439
|
+
transaction.transaction = await this.driverAdapter.startTransaction(validatedOptions.isolationLevel);
|
|
1440
|
+
clearTimeout(startTimer);
|
|
1440
1441
|
switch (transaction.status) {
|
|
1441
1442
|
case "waiting":
|
|
1442
|
-
transaction.transaction = startedTransaction;
|
|
1443
|
-
clearTimeout(transaction.timer);
|
|
1444
|
-
transaction.timer = void 0;
|
|
1445
1443
|
transaction.status = "running";
|
|
1446
1444
|
transaction.timer = this.startTransactionTimeout(transaction.id, validatedOptions.timeout);
|
|
1447
1445
|
return { id: transaction.id };
|
|
1448
1446
|
case "timed_out":
|
|
1447
|
+
await this.closeTransaction(transaction, "timed_out");
|
|
1449
1448
|
throw new TransactionStartTimeoutError();
|
|
1450
1449
|
case "running":
|
|
1451
1450
|
case "committed":
|
package/dist/index.mjs
CHANGED
|
@@ -1387,17 +1387,16 @@ var TransactionManager = class {
|
|
|
1387
1387
|
transaction: void 0
|
|
1388
1388
|
};
|
|
1389
1389
|
this.transactions.set(transaction.id, transaction);
|
|
1390
|
-
|
|
1391
|
-
|
|
1390
|
+
const startTimer = setTimeout(() => transaction.status = "timed_out", validatedOptions.maxWait);
|
|
1391
|
+
transaction.transaction = await this.driverAdapter.startTransaction(validatedOptions.isolationLevel);
|
|
1392
|
+
clearTimeout(startTimer);
|
|
1392
1393
|
switch (transaction.status) {
|
|
1393
1394
|
case "waiting":
|
|
1394
|
-
transaction.transaction = startedTransaction;
|
|
1395
|
-
clearTimeout(transaction.timer);
|
|
1396
|
-
transaction.timer = void 0;
|
|
1397
1395
|
transaction.status = "running";
|
|
1398
1396
|
transaction.timer = this.startTransactionTimeout(transaction.id, validatedOptions.timeout);
|
|
1399
1397
|
return { id: transaction.id };
|
|
1400
1398
|
case "timed_out":
|
|
1399
|
+
await this.closeTransaction(transaction, "timed_out");
|
|
1401
1400
|
throw new TransactionStartTimeoutError();
|
|
1402
1401
|
case "running":
|
|
1403
1402
|
case "committed":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "6.11.0-dev.
|
|
3
|
+
"version": "6.11.0-dev.13",
|
|
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/
|
|
35
|
-
"@prisma/
|
|
34
|
+
"@prisma/driver-adapter-utils": "6.11.0-dev.13",
|
|
35
|
+
"@prisma/debug": "6.11.0-dev.13"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/jest": "29.5.14",
|