@prisma/query-plan-executor 7.1.0 → 7.1.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 +4 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -97752,7 +97752,7 @@ __export(index_exports, {
|
|
|
97752
97752
|
module.exports = __toCommonJS(index_exports);
|
|
97753
97753
|
|
|
97754
97754
|
// package.json
|
|
97755
|
-
var version = "7.1.
|
|
97755
|
+
var version = "7.1.1-dev.1";
|
|
97756
97756
|
|
|
97757
97757
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
97758
97758
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -107831,14 +107831,16 @@ var TransactionManager = class {
|
|
|
107831
107831
|
const abortController = new AbortController();
|
|
107832
107832
|
const startTimer = createTimeoutIfDefined(() => abortController.abort(), options.maxWait);
|
|
107833
107833
|
startTimer?.unref?.();
|
|
107834
|
+
const startTransactionPromise = this.driverAdapter.startTransaction(options.isolationLevel).catch(rethrowAsUserFacing);
|
|
107834
107835
|
transaction.transaction = await Promise.race([
|
|
107835
|
-
|
|
107836
|
+
startTransactionPromise.finally(() => clearTimeout(startTimer)),
|
|
107836
107837
|
once(abortController.signal, "abort").then(() => void 0)
|
|
107837
107838
|
]);
|
|
107838
107839
|
this.transactions.set(transaction.id, transaction);
|
|
107839
107840
|
switch (transaction.status) {
|
|
107840
107841
|
case "waiting":
|
|
107841
107842
|
if (abortController.signal.aborted) {
|
|
107843
|
+
void startTransactionPromise.then((tx) => tx.rollback()).catch((e2) => debug3("error in discarded transaction:", e2));
|
|
107842
107844
|
await this.#closeTransaction(transaction, "timed_out");
|
|
107843
107845
|
throw new TransactionStartTimeoutError();
|
|
107844
107846
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1-dev.1",
|
|
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",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"temporal-polyfill": "0.3.0",
|
|
21
21
|
"vitest": "3.2.4",
|
|
22
22
|
"zod": "4.1.3",
|
|
23
|
-
"@prisma/adapter-pg": "7.1.
|
|
24
|
-
"@prisma/
|
|
25
|
-
"@prisma/adapter-
|
|
26
|
-
"@prisma/
|
|
27
|
-
"@prisma/driver-adapter-utils": "7.1.
|
|
23
|
+
"@prisma/adapter-pg": "7.1.1-dev.1",
|
|
24
|
+
"@prisma/adapter-mariadb": "7.1.1-dev.1",
|
|
25
|
+
"@prisma/adapter-mssql": "7.1.1-dev.1",
|
|
26
|
+
"@prisma/client-engine-runtime": "7.1.1-dev.1",
|
|
27
|
+
"@prisma/driver-adapter-utils": "7.1.1-dev.1"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|