@prisma/client-engine-runtime 6.16.0-integration-push-prynymnkvlrn.4 → 6.16.0
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
|
@@ -1949,6 +1949,7 @@ var TransactionManager = class {
|
|
|
1949
1949
|
this.transactions.set(transaction.id, transaction);
|
|
1950
1950
|
let hasTimedOut = false;
|
|
1951
1951
|
const startTimer = setTimeout(() => hasTimedOut = true, validatedOptions.maxWait);
|
|
1952
|
+
startTimer.unref();
|
|
1952
1953
|
transaction.transaction = await this.driverAdapter.startTransaction(validatedOptions.isolationLevel).catch(rethrowAsUserFacing);
|
|
1953
1954
|
clearTimeout(startTimer);
|
|
1954
1955
|
switch (transaction.status) {
|
|
@@ -2028,7 +2029,7 @@ var TransactionManager = class {
|
|
|
2028
2029
|
}
|
|
2029
2030
|
#startTransactionTimeout(transactionId, timeout) {
|
|
2030
2031
|
const timeoutStartedAt = Date.now();
|
|
2031
|
-
|
|
2032
|
+
const timer = setTimeout(async () => {
|
|
2032
2033
|
debug("Transaction timed out.", { transactionId, timeoutStartedAt, timeout });
|
|
2033
2034
|
const tx = this.transactions.get(transactionId);
|
|
2034
2035
|
if (tx && ["running", "waiting"].includes(tx.status)) {
|
|
@@ -2037,6 +2038,8 @@ var TransactionManager = class {
|
|
|
2037
2038
|
debug("Transaction already committed or rolled back when timeout happened.", transactionId);
|
|
2038
2039
|
}
|
|
2039
2040
|
}, timeout);
|
|
2041
|
+
timer.unref();
|
|
2042
|
+
return timer;
|
|
2040
2043
|
}
|
|
2041
2044
|
async #closeTransaction(tx, status) {
|
|
2042
2045
|
const createClosingPromise = async () => {
|
package/dist/index.mjs
CHANGED
|
@@ -1899,6 +1899,7 @@ var TransactionManager = class {
|
|
|
1899
1899
|
this.transactions.set(transaction.id, transaction);
|
|
1900
1900
|
let hasTimedOut = false;
|
|
1901
1901
|
const startTimer = setTimeout(() => hasTimedOut = true, validatedOptions.maxWait);
|
|
1902
|
+
startTimer.unref();
|
|
1902
1903
|
transaction.transaction = await this.driverAdapter.startTransaction(validatedOptions.isolationLevel).catch(rethrowAsUserFacing);
|
|
1903
1904
|
clearTimeout(startTimer);
|
|
1904
1905
|
switch (transaction.status) {
|
|
@@ -1978,7 +1979,7 @@ var TransactionManager = class {
|
|
|
1978
1979
|
}
|
|
1979
1980
|
#startTransactionTimeout(transactionId, timeout) {
|
|
1980
1981
|
const timeoutStartedAt = Date.now();
|
|
1981
|
-
|
|
1982
|
+
const timer = setTimeout(async () => {
|
|
1982
1983
|
debug("Transaction timed out.", { transactionId, timeoutStartedAt, timeout });
|
|
1983
1984
|
const tx = this.transactions.get(transactionId);
|
|
1984
1985
|
if (tx && ["running", "waiting"].includes(tx.status)) {
|
|
@@ -1987,6 +1988,8 @@ var TransactionManager = class {
|
|
|
1987
1988
|
debug("Transaction already committed or rolled back when timeout happened.", transactionId);
|
|
1988
1989
|
}
|
|
1989
1990
|
}, timeout);
|
|
1991
|
+
timer.unref();
|
|
1992
|
+
return timer;
|
|
1990
1993
|
}
|
|
1991
1994
|
async #closeTransaction(tx, status) {
|
|
1992
1995
|
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
|
|
3
|
+
"version": "6.16.0",
|
|
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/
|
|
35
|
-
"@prisma/
|
|
34
|
+
"@prisma/debug": "6.16.0",
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.16.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/jest": "29.5.14",
|