@prisma/client-engine-runtime 7.9.0-dev.9 → 7.9.1-dev.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.js +11 -1
- package/dist/index.mjs +11 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -2659,7 +2659,17 @@ var TransactionManager = class {
|
|
|
2659
2659
|
switch (transaction.status) {
|
|
2660
2660
|
case "waiting":
|
|
2661
2661
|
if (abortController.signal.aborted) {
|
|
2662
|
-
void startTransactionPromise.then((tx) =>
|
|
2662
|
+
void startTransactionPromise.then(async (tx) => {
|
|
2663
|
+
if (tx.options.usePhantomQuery) {
|
|
2664
|
+
await tx.rollback();
|
|
2665
|
+
} else {
|
|
2666
|
+
try {
|
|
2667
|
+
await tx.executeRaw(ROLLBACK_QUERY());
|
|
2668
|
+
} finally {
|
|
2669
|
+
await tx.rollback();
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
}).catch((e) => debug("error in discarded transaction:", e));
|
|
2663
2673
|
await this.#closeTransaction(transaction, "timed_out");
|
|
2664
2674
|
throw new TransactionStartTimeoutError();
|
|
2665
2675
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2606,7 +2606,17 @@ var TransactionManager = class {
|
|
|
2606
2606
|
switch (transaction.status) {
|
|
2607
2607
|
case "waiting":
|
|
2608
2608
|
if (abortController.signal.aborted) {
|
|
2609
|
-
void startTransactionPromise.then((tx) =>
|
|
2609
|
+
void startTransactionPromise.then(async (tx) => {
|
|
2610
|
+
if (tx.options.usePhantomQuery) {
|
|
2611
|
+
await tx.rollback();
|
|
2612
|
+
} else {
|
|
2613
|
+
try {
|
|
2614
|
+
await tx.executeRaw(ROLLBACK_QUERY());
|
|
2615
|
+
} finally {
|
|
2616
|
+
await tx.rollback();
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
}).catch((e) => debug("error in discarded transaction:", e));
|
|
2610
2620
|
await this.#closeTransaction(transaction, "timed_out");
|
|
2611
2621
|
throw new TransactionStartTimeoutError();
|
|
2612
2622
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "7.9.
|
|
3
|
+
"version": "7.9.1-dev.1",
|
|
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,20 +31,20 @@
|
|
|
31
31
|
"nanoid": "5.1.5",
|
|
32
32
|
"ulid": "3.0.0",
|
|
33
33
|
"uuid": "14.0.0",
|
|
34
|
-
"@prisma/
|
|
35
|
-
"@prisma/
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/json-protocol": "7.9.
|
|
34
|
+
"@prisma/client-runtime-utils": "7.9.1-dev.1",
|
|
35
|
+
"@prisma/debug": "7.9.1-dev.1",
|
|
36
|
+
"@prisma/sqlcommenter": "7.9.1-dev.1",
|
|
37
|
+
"@prisma/param-graph": "7.9.1-dev.1",
|
|
38
|
+
"@prisma/driver-adapter-utils": "7.9.1-dev.1",
|
|
39
|
+
"@prisma/json-protocol": "7.9.1-dev.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@codspeed/benchmark.js-plugin": "4.0.0",
|
|
43
43
|
"@types/benchmark": "2.1.5",
|
|
44
44
|
"@types/node": "~20.19.24",
|
|
45
45
|
"benchmark": "2.1.4",
|
|
46
|
-
"@prisma/
|
|
47
|
-
"@prisma/
|
|
46
|
+
"@prisma/param-graph-builder": "7.9.1-dev.1",
|
|
47
|
+
"@prisma/get-dmmf": "7.9.1-dev.1"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"dist"
|