baja-lite 1.3.53 → 1.4.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/package.json +5 -5
- package/sql.js +10 -2
- package/wx/base.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baja-lite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "some util for self",
|
|
5
5
|
"homepage": "https://github.com/void-soul/baja-lite",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@msgpack/msgpack": "3.1.2",
|
|
39
39
|
"@types/request-promise": "4.1.51",
|
|
40
40
|
"axios": "1.10.0",
|
|
41
|
-
"baja-lite-field": "1.
|
|
41
|
+
"baja-lite-field": "1.4.0",
|
|
42
42
|
"decimal.js": "10.5.0",
|
|
43
43
|
"html-parse-stringify": "3.0.1",
|
|
44
44
|
"iterare": "1.2.1",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"@types/better-sqlite3": "7.6.13",
|
|
58
58
|
"@types/lodash.get": "4.4.9",
|
|
59
59
|
"@types/mustache": "4.2.6",
|
|
60
|
-
"@types/node": "24.0.
|
|
60
|
+
"@types/node": "24.0.3",
|
|
61
61
|
"@types/shelljs": "0.8.16",
|
|
62
62
|
"@types/sqlstring": "2.3.2",
|
|
63
|
-
"@typescript-eslint/eslint-plugin": "8.34.
|
|
64
|
-
"@typescript-eslint/parser": "8.34.
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "8.34.1",
|
|
64
|
+
"@typescript-eslint/parser": "8.34.1",
|
|
65
65
|
"better-sqlite3": "11.10.0",
|
|
66
66
|
"ioredis": "5.6.1",
|
|
67
67
|
"mongodb": "6.17.0",
|
package/sql.js
CHANGED
|
@@ -77,12 +77,20 @@ export const _GlobalSqlOption = Symbol('GlobalSqlOption');
|
|
|
77
77
|
export const _EventBus = Symbol('EventBus');
|
|
78
78
|
export const _path = Symbol('path');
|
|
79
79
|
export const _fs = Symbol('fs');
|
|
80
|
-
export const logger =
|
|
80
|
+
export const logger = pino({
|
|
81
81
|
name: 'sql',
|
|
82
82
|
transport: {
|
|
83
83
|
target: 'pino-pretty'
|
|
84
84
|
}
|
|
85
|
-
})
|
|
85
|
+
});
|
|
86
|
+
// export const logger =
|
|
87
|
+
// process.env['NODE_ENV'] !== 'production' ?
|
|
88
|
+
// pino({
|
|
89
|
+
// name: 'sql',
|
|
90
|
+
// transport: {
|
|
91
|
+
// target: 'pino-pretty'
|
|
92
|
+
// }
|
|
93
|
+
// }) : pino({ name: 'sql' });
|
|
86
94
|
globalThis[_resultMap_SQLID] = {};
|
|
87
95
|
// #endregion
|
|
88
96
|
// #region 可选配置
|
package/wx/base.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
2
|
+
import pino from 'pino';
|
|
2
3
|
import * as rp from 'request-promise';
|
|
3
4
|
import { Throw } from '../error.js';
|
|
4
|
-
import pino from 'pino';
|
|
5
5
|
const logger = process.env['NODE_ENV'] !== 'production' ? pino({
|
|
6
6
|
name: 'wx',
|
|
7
7
|
transport: {
|