baja-lite 1.5.32 → 1.6.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.d.ts +2 -1
- package/sql.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baja-lite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.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.11.0",
|
|
41
|
-
"baja-lite-field": "1.4.
|
|
41
|
+
"baja-lite-field": "1.4.20",
|
|
42
42
|
"decimal.js": "10.6.0",
|
|
43
43
|
"html-parse-stringify": "3.0.1",
|
|
44
44
|
"iterare": "1.2.1",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/better-sqlite3": "7.6.13",
|
|
57
57
|
"@types/mustache": "4.2.6",
|
|
58
|
-
"@types/node": "24.
|
|
58
|
+
"@types/node": "24.3.0",
|
|
59
59
|
"@types/shelljs": "0.8.17",
|
|
60
60
|
"@types/sqlstring": "2.3.2",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
62
|
-
"@typescript-eslint/parser": "8.
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "8.40.0",
|
|
62
|
+
"@typescript-eslint/parser": "8.40.0",
|
|
63
63
|
"better-sqlite3": "12.2.0",
|
|
64
64
|
"ioredis": "5.7.0",
|
|
65
65
|
"mongodb": "6.18.0",
|
package/sql.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ExtensionCodec } from "@msgpack/msgpack";
|
|
2
2
|
import { _columns, _columnsNoId, _def, _deleteState, _fields, _ids, _index, _logicIds, _stateFileName, AField, DBType, EnumMap, FieldOption } from 'baja-lite-field';
|
|
3
|
+
import pino from 'pino';
|
|
3
4
|
import { XML } from './convert-xml.js';
|
|
4
5
|
export declare const extensionCodec: ExtensionCodec<undefined>;
|
|
5
6
|
declare const _daoDBName: unique symbol;
|
|
@@ -25,7 +26,7 @@ export declare const _GlobalSqlOption: unique symbol;
|
|
|
25
26
|
export declare const _EventBus: unique symbol;
|
|
26
27
|
export declare const _path: unique symbol;
|
|
27
28
|
export declare const _fs: unique symbol;
|
|
28
|
-
export declare const logger:
|
|
29
|
+
export declare const logger: pino.Logger<never, boolean>;
|
|
29
30
|
export declare enum MapperIfUndefined {
|
|
30
31
|
Null = 0,
|
|
31
32
|
Skip = 1,
|
package/sql.js
CHANGED
|
@@ -3344,7 +3344,7 @@ export class SqlService {
|
|
|
3344
3344
|
}
|
|
3345
3345
|
_generSql(dbType, _sql, _params) {
|
|
3346
3346
|
const params = [];
|
|
3347
|
-
const sql = formatDialect(_sql?.replace(/\:(\w+)/g, (txt, key) => {
|
|
3347
|
+
const sql = formatDialect(_sql?.replace(/\:([\w.]+)/g, (txt, key) => {
|
|
3348
3348
|
let V = LGet(_params, key);
|
|
3349
3349
|
if (V !== undefined) {
|
|
3350
3350
|
return this._setParam(V, params);
|