@kaynooo/cli-db 0.8.0 → 0.8.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/cli.js +4 -4
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -14,7 +14,7 @@ import process2 from "process";
|
|
|
14
14
|
// ../kit/src/style.ts
|
|
15
15
|
import process from "process";
|
|
16
16
|
|
|
17
|
-
// ../../node_modules/.bun/@kaynooo+utils@2.31.
|
|
17
|
+
// ../../node_modules/.bun/@kaynooo+utils@2.31.2+d0769e28dc4dad16/node_modules/@kaynooo/utils/dist/chunk-mtetydvc.js
|
|
18
18
|
function x(s) {
|
|
19
19
|
let r = s.startsWith("#") ? s.slice(1).toLowerCase() : s.toLowerCase();
|
|
20
20
|
if (!/^[a-f0-9]+$/.test(r))
|
|
@@ -234,7 +234,7 @@ class e {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
// ../../node_modules/.bun/@kaynooo+utils@2.31.
|
|
237
|
+
// ../../node_modules/.bun/@kaynooo+utils@2.31.2+d0769e28dc4dad16/node_modules/@kaynooo/utils/dist/chunk-y1msbssb.js
|
|
238
238
|
var r = 39;
|
|
239
239
|
var o = 49;
|
|
240
240
|
var f2 = "\x1B[";
|
|
@@ -872,7 +872,7 @@ var {Glob } = globalThis.Bun;
|
|
|
872
872
|
var SESSION_FILES = new Glob("*.json");
|
|
873
873
|
var ACCOUNT_DIRS = new Glob("*/sessions");
|
|
874
874
|
// package.json
|
|
875
|
-
var version = "0.8.
|
|
875
|
+
var version = "0.8.1";
|
|
876
876
|
|
|
877
877
|
// src/args.ts
|
|
878
878
|
var DEFAULT_ENV = "DATABASE_URL";
|
|
@@ -1548,7 +1548,7 @@ var bunConnect = (url, dialect, readOnly) => {
|
|
|
1548
1548
|
try {
|
|
1549
1549
|
await mysqlTransaction({ unsafe: async (statement, params) => connection.unsafe(statement, params) }, work, isReadOnly);
|
|
1550
1550
|
} finally {
|
|
1551
|
-
connection.release();
|
|
1551
|
+
await connection.release();
|
|
1552
1552
|
}
|
|
1553
1553
|
},
|
|
1554
1554
|
async close() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaynooo/cli-db",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"description": "db: run read-only SQL against Postgres, MySQL and MariaDB from the terminal without ever showing the connection credentials.",
|
|
6
6
|
"author": "Kaynooo <contact@kaynooo.fr>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"db": "$npm_execpath src/cli.ts"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@kaynooo/cli-kit": "0.15.
|
|
31
|
+
"@kaynooo/cli-kit": "0.15.2"
|
|
32
32
|
}
|
|
33
33
|
}
|