@prisma/client-engine-runtime 6.16.0-dev.22 → 6.16.0-dev.23
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 -1
- package/dist/index.mjs +4 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1945,6 +1945,7 @@ var TransactionManager = class {
|
|
|
1945
1945
|
this.transactions.set(transaction.id, transaction);
|
|
1946
1946
|
let hasTimedOut = false;
|
|
1947
1947
|
const startTimer = setTimeout(() => hasTimedOut = true, validatedOptions.maxWait);
|
|
1948
|
+
startTimer.unref();
|
|
1948
1949
|
transaction.transaction = await this.driverAdapter.startTransaction(validatedOptions.isolationLevel).catch(rethrowAsUserFacing);
|
|
1949
1950
|
clearTimeout(startTimer);
|
|
1950
1951
|
switch (transaction.status) {
|
|
@@ -2024,7 +2025,7 @@ var TransactionManager = class {
|
|
|
2024
2025
|
}
|
|
2025
2026
|
#startTransactionTimeout(transactionId, timeout) {
|
|
2026
2027
|
const timeoutStartedAt = Date.now();
|
|
2027
|
-
|
|
2028
|
+
const timer = setTimeout(async () => {
|
|
2028
2029
|
debug("Transaction timed out.", { transactionId, timeoutStartedAt, timeout });
|
|
2029
2030
|
const tx = this.transactions.get(transactionId);
|
|
2030
2031
|
if (tx && ["running", "waiting"].includes(tx.status)) {
|
|
@@ -2033,6 +2034,8 @@ var TransactionManager = class {
|
|
|
2033
2034
|
debug("Transaction already committed or rolled back when timeout happened.", transactionId);
|
|
2034
2035
|
}
|
|
2035
2036
|
}, timeout);
|
|
2037
|
+
timer.unref();
|
|
2038
|
+
return timer;
|
|
2036
2039
|
}
|
|
2037
2040
|
async #closeTransaction(tx, status) {
|
|
2038
2041
|
const createClosingPromise = async () => {
|
package/dist/index.mjs
CHANGED
|
@@ -1895,6 +1895,7 @@ var TransactionManager = class {
|
|
|
1895
1895
|
this.transactions.set(transaction.id, transaction);
|
|
1896
1896
|
let hasTimedOut = false;
|
|
1897
1897
|
const startTimer = setTimeout(() => hasTimedOut = true, validatedOptions.maxWait);
|
|
1898
|
+
startTimer.unref();
|
|
1898
1899
|
transaction.transaction = await this.driverAdapter.startTransaction(validatedOptions.isolationLevel).catch(rethrowAsUserFacing);
|
|
1899
1900
|
clearTimeout(startTimer);
|
|
1900
1901
|
switch (transaction.status) {
|
|
@@ -1974,7 +1975,7 @@ var TransactionManager = class {
|
|
|
1974
1975
|
}
|
|
1975
1976
|
#startTransactionTimeout(transactionId, timeout) {
|
|
1976
1977
|
const timeoutStartedAt = Date.now();
|
|
1977
|
-
|
|
1978
|
+
const timer = setTimeout(async () => {
|
|
1978
1979
|
debug("Transaction timed out.", { transactionId, timeoutStartedAt, timeout });
|
|
1979
1980
|
const tx = this.transactions.get(transactionId);
|
|
1980
1981
|
if (tx && ["running", "waiting"].includes(tx.status)) {
|
|
@@ -1983,6 +1984,8 @@ var TransactionManager = class {
|
|
|
1983
1984
|
debug("Transaction already committed or rolled back when timeout happened.", transactionId);
|
|
1984
1985
|
}
|
|
1985
1986
|
}, timeout);
|
|
1987
|
+
timer.unref();
|
|
1988
|
+
return timer;
|
|
1986
1989
|
}
|
|
1987
1990
|
async #closeTransaction(tx, status) {
|
|
1988
1991
|
const createClosingPromise = async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "6.16.0-dev.
|
|
3
|
+
"version": "6.16.0-dev.23",
|
|
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/debug": "6.16.0-dev.
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.16.0-dev.
|
|
34
|
+
"@prisma/debug": "6.16.0-dev.23",
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.16.0-dev.23"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/jest": "29.5.14",
|