@nitronjs/framework 0.3.6 → 0.3.8
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.
|
@@ -50,7 +50,10 @@ class MySQLDriver {
|
|
|
50
50
|
const connection = await this.#pool.getConnection();
|
|
51
51
|
|
|
52
52
|
try {
|
|
53
|
-
|
|
53
|
+
try {
|
|
54
|
+
await connection.query("SET SESSION MAX_EXECUTION_TIME = 60000");
|
|
55
|
+
}
|
|
56
|
+
catch {}
|
|
54
57
|
|
|
55
58
|
return await connection.execute(sql, bindings);
|
|
56
59
|
}
|
|
@@ -91,7 +94,11 @@ class MySQLDriver {
|
|
|
91
94
|
async withTransaction(callback, options = {}) {
|
|
92
95
|
const connection = await this.#pool.getConnection();
|
|
93
96
|
|
|
94
|
-
|
|
97
|
+
try {
|
|
98
|
+
await connection.query("SET SESSION MAX_EXECUTION_TIME = 60000");
|
|
99
|
+
}
|
|
100
|
+
catch {}
|
|
101
|
+
|
|
95
102
|
await connection.beginTransaction();
|
|
96
103
|
|
|
97
104
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitronjs/framework",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "NitronJS is a modern and extensible Node.js MVC framework built on Fastify. It focuses on clean architecture, modular structure, and developer productivity, offering built-in routing, middleware, configuration management, CLI tooling, and native React integration for scalable full-stack applications.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"njs": "./cli/njs.js"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@tailwindcss/oxide": "^4.2.2",
|
|
27
27
|
"@types/react": "^19.2.7",
|
|
28
28
|
"@types/react-dom": "^19.2.3",
|
|
29
|
-
"bcrypt": "^
|
|
29
|
+
"bcrypt": "^6.0.0",
|
|
30
30
|
"dotenv": "^17.2.3",
|
|
31
31
|
"es-module-lexer": "^2.0.0",
|
|
32
32
|
"esbuild": "^0.27.2",
|