@prisma/query-plan-executor 7.10.0-dev.30 → 7.10.0-dev.32
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 +18 -13
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -92936,7 +92936,7 @@ __export(index_exports, {
|
|
|
92936
92936
|
module.exports = __toCommonJS(index_exports);
|
|
92937
92937
|
|
|
92938
92938
|
// package.json
|
|
92939
|
-
var version = "7.10.0-dev.
|
|
92939
|
+
var version = "7.10.0-dev.32";
|
|
92940
92940
|
|
|
92941
92941
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
92942
92942
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -105332,20 +105332,24 @@ var TransactionManager = class {
|
|
|
105332
105332
|
#startTransactionTimeout(transactionId, timeout) {
|
|
105333
105333
|
const timeoutStartedAt = Date.now();
|
|
105334
105334
|
const timer = createTimeoutIfDefined(async () => {
|
|
105335
|
-
|
|
105336
|
-
|
|
105337
|
-
|
|
105338
|
-
|
|
105339
|
-
return;
|
|
105340
|
-
}
|
|
105341
|
-
await this.#runSerialized(tx, async () => {
|
|
105342
|
-
const current = this.transactions.get(transactionId);
|
|
105343
|
-
if (current && ["running", "waiting"].includes(current.status)) {
|
|
105344
|
-
await this.#closeTransaction(current, "timed_out");
|
|
105345
|
-
} else {
|
|
105335
|
+
try {
|
|
105336
|
+
debug3("Transaction timed out.", { transactionId, timeoutStartedAt, timeout });
|
|
105337
|
+
const tx = this.transactions.get(transactionId);
|
|
105338
|
+
if (!tx) {
|
|
105346
105339
|
this.#debugTransactionAlreadyClosedOnTimeout(transactionId);
|
|
105340
|
+
return;
|
|
105347
105341
|
}
|
|
105348
|
-
|
|
105342
|
+
await this.#runSerialized(tx, async () => {
|
|
105343
|
+
const current = this.transactions.get(transactionId);
|
|
105344
|
+
if (current && ["running", "waiting"].includes(current.status)) {
|
|
105345
|
+
await this.#closeTransaction(current, "timed_out");
|
|
105346
|
+
} else {
|
|
105347
|
+
this.#debugTransactionAlreadyClosedOnTimeout(transactionId);
|
|
105348
|
+
}
|
|
105349
|
+
});
|
|
105350
|
+
} catch (error44) {
|
|
105351
|
+
debug3("Error while closing timed-out transaction.", { transactionId, error: error44 });
|
|
105352
|
+
}
|
|
105349
105353
|
}, timeout);
|
|
105350
105354
|
timer?.unref?.();
|
|
105351
105355
|
return timer;
|
|
@@ -109651,6 +109655,7 @@ function mapDriverError3(error44) {
|
|
|
109651
109655
|
user: error44.message.split(" ").pop()?.split('"').at(1)
|
|
109652
109656
|
};
|
|
109653
109657
|
case "40001":
|
|
109658
|
+
case "40P01":
|
|
109654
109659
|
return {
|
|
109655
109660
|
kind: "TransactionWriteConflict"
|
|
109656
109661
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.10.0-dev.
|
|
3
|
+
"version": "7.10.0-dev.32",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"hono": "^4.12.23",
|
|
20
20
|
"temporal-polyfill": "0.3.0",
|
|
21
21
|
"zod": "4.1.3",
|
|
22
|
-
"@prisma/adapter-mariadb": "7.10.0-dev.
|
|
23
|
-
"@prisma/
|
|
24
|
-
"@prisma/adapter-
|
|
25
|
-
"@prisma/
|
|
26
|
-
"@prisma/
|
|
22
|
+
"@prisma/adapter-mariadb": "7.10.0-dev.32",
|
|
23
|
+
"@prisma/adapter-mssql": "7.10.0-dev.32",
|
|
24
|
+
"@prisma/driver-adapter-utils": "7.10.0-dev.32",
|
|
25
|
+
"@prisma/client-engine-runtime": "7.10.0-dev.32",
|
|
26
|
+
"@prisma/adapter-pg": "7.10.0-dev.32"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|