@prisma/client-engine-runtime 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 +16 -12
- package/dist/index.mjs +16 -12
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -3112,20 +3112,24 @@ var TransactionManager = class {
|
|
|
3112
3112
|
#startTransactionTimeout(transactionId, timeout) {
|
|
3113
3113
|
const timeoutStartedAt = Date.now();
|
|
3114
3114
|
const timer = createTimeoutIfDefined(async () => {
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
return;
|
|
3120
|
-
}
|
|
3121
|
-
await this.#runSerialized(tx, async () => {
|
|
3122
|
-
const current = this.transactions.get(transactionId);
|
|
3123
|
-
if (current && ["running", "waiting"].includes(current.status)) {
|
|
3124
|
-
await this.#closeTransaction(current, "timed_out");
|
|
3125
|
-
} else {
|
|
3115
|
+
try {
|
|
3116
|
+
debug("Transaction timed out.", { transactionId, timeoutStartedAt, timeout });
|
|
3117
|
+
const tx = this.transactions.get(transactionId);
|
|
3118
|
+
if (!tx) {
|
|
3126
3119
|
this.#debugTransactionAlreadyClosedOnTimeout(transactionId);
|
|
3120
|
+
return;
|
|
3127
3121
|
}
|
|
3128
|
-
|
|
3122
|
+
await this.#runSerialized(tx, async () => {
|
|
3123
|
+
const current = this.transactions.get(transactionId);
|
|
3124
|
+
if (current && ["running", "waiting"].includes(current.status)) {
|
|
3125
|
+
await this.#closeTransaction(current, "timed_out");
|
|
3126
|
+
} else {
|
|
3127
|
+
this.#debugTransactionAlreadyClosedOnTimeout(transactionId);
|
|
3128
|
+
}
|
|
3129
|
+
});
|
|
3130
|
+
} catch (error) {
|
|
3131
|
+
debug("Error while closing timed-out transaction.", { transactionId, error });
|
|
3132
|
+
}
|
|
3129
3133
|
}, timeout);
|
|
3130
3134
|
timer?.unref?.();
|
|
3131
3135
|
return timer;
|
package/dist/index.mjs
CHANGED
|
@@ -3059,20 +3059,24 @@ var TransactionManager = class {
|
|
|
3059
3059
|
#startTransactionTimeout(transactionId, timeout) {
|
|
3060
3060
|
const timeoutStartedAt = Date.now();
|
|
3061
3061
|
const timer = createTimeoutIfDefined(async () => {
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
return;
|
|
3067
|
-
}
|
|
3068
|
-
await this.#runSerialized(tx, async () => {
|
|
3069
|
-
const current = this.transactions.get(transactionId);
|
|
3070
|
-
if (current && ["running", "waiting"].includes(current.status)) {
|
|
3071
|
-
await this.#closeTransaction(current, "timed_out");
|
|
3072
|
-
} else {
|
|
3062
|
+
try {
|
|
3063
|
+
debug("Transaction timed out.", { transactionId, timeoutStartedAt, timeout });
|
|
3064
|
+
const tx = this.transactions.get(transactionId);
|
|
3065
|
+
if (!tx) {
|
|
3073
3066
|
this.#debugTransactionAlreadyClosedOnTimeout(transactionId);
|
|
3067
|
+
return;
|
|
3074
3068
|
}
|
|
3075
|
-
|
|
3069
|
+
await this.#runSerialized(tx, async () => {
|
|
3070
|
+
const current = this.transactions.get(transactionId);
|
|
3071
|
+
if (current && ["running", "waiting"].includes(current.status)) {
|
|
3072
|
+
await this.#closeTransaction(current, "timed_out");
|
|
3073
|
+
} else {
|
|
3074
|
+
this.#debugTransactionAlreadyClosedOnTimeout(transactionId);
|
|
3075
|
+
}
|
|
3076
|
+
});
|
|
3077
|
+
} catch (error) {
|
|
3078
|
+
debug("Error while closing timed-out transaction.", { transactionId, error });
|
|
3079
|
+
}
|
|
3076
3080
|
}, timeout);
|
|
3077
3081
|
timer?.unref?.();
|
|
3078
3082
|
return timer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
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
|
"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/client-runtime-utils": "7.10.0-dev.
|
|
35
|
-
"@prisma/
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/sqlcommenter": "7.10.0-dev.
|
|
38
|
-
"@prisma/param-graph": "7.10.0-dev.
|
|
39
|
-
"@prisma/json-protocol": "7.10.0-dev.
|
|
34
|
+
"@prisma/client-runtime-utils": "7.10.0-dev.32",
|
|
35
|
+
"@prisma/debug": "7.10.0-dev.32",
|
|
36
|
+
"@prisma/driver-adapter-utils": "7.10.0-dev.32",
|
|
37
|
+
"@prisma/sqlcommenter": "7.10.0-dev.32",
|
|
38
|
+
"@prisma/param-graph": "7.10.0-dev.32",
|
|
39
|
+
"@prisma/json-protocol": "7.10.0-dev.32"
|
|
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/get-dmmf": "7.10.0-dev.
|
|
47
|
-
"@prisma/param-graph-builder": "7.10.0-dev.
|
|
46
|
+
"@prisma/get-dmmf": "7.10.0-dev.32",
|
|
47
|
+
"@prisma/param-graph-builder": "7.10.0-dev.32"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"dist"
|