@maiyunnet/kebab 8.0.1 → 8.0.2

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/doc/kebab-rag.md CHANGED
@@ -576,9 +576,9 @@ Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.
576
576
 
577
577
  ***
578
578
 
579
- ### name
579
+ ### name?
580
580
 
581
- > **name**: `string`
581
+ > `optional` **name**: `string`
582
582
 
583
583
  Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
584
584
 
@@ -1385,7 +1385,7 @@ index/variables/VER.md
1385
1385
 
1386
1386
  # Variable: VER
1387
1387
 
1388
- > `const` **VER**: `"8.0.1"` = `'8.0.1'`
1388
+ > `const` **VER**: `"8.0.2"` = `'8.0.2'`
1389
1389
 
1390
1390
  Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
1391
1391
 
@@ -6838,9 +6838,9 @@ Defined in: [lib/db/pool.ts:27](https://github.com/maiyunnet/kebab/blob/master/l
6838
6838
 
6839
6839
  ***
6840
6840
 
6841
- ### name
6841
+ ### name?
6842
6842
 
6843
- > **name**: `string`
6843
+ > `optional` **name**: `string`
6844
6844
 
6845
6845
  Defined in: [lib/db/pool.ts:24](https://github.com/maiyunnet/kebab/blob/master/lib/db/pool.ts#L24)
6846
6846
 
package/index.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * --- 本文件用来定义每个目录实体地址的常量 ---
6
6
  */
7
7
  /** --- 当前系统版本号 --- */
8
- export declare const VER = "8.0.1";
8
+ export declare const VER = "8.0.2";
9
9
  /** --- 框架根目录,以 / 结尾 --- */
10
10
  export declare const ROOT_PATH: string;
11
11
  export declare const LIB_PATH: string;
@@ -118,7 +118,7 @@ export interface IConfigDb {
118
118
  'host': string;
119
119
  'port': number;
120
120
  'charset': string;
121
- 'name': string;
121
+ 'name'?: string;
122
122
  'user': string;
123
123
  'pwd': string;
124
124
  }
package/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * --- 本文件用来定义每个目录实体地址的常量 ---
7
7
  */
8
8
  /** --- 当前系统版本号 --- */
9
- export const VER = '8.0.1';
9
+ export const VER = '8.0.2';
10
10
  // --- 服务端用的路径 ---
11
11
  const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
12
12
  /** --- /xxx/xxx --- */
package/lib/db/pool.d.ts CHANGED
@@ -9,7 +9,7 @@ export interface IConnectionInfo {
9
9
  'last': number;
10
10
  'host': string;
11
11
  'port': number;
12
- 'name': string;
12
+ 'name'?: string;
13
13
  'user': string;
14
14
  'lost': boolean;
15
15
  'using': boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maiyunnet/kebab",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Simple, easy-to-use, and fully-featured Node.js framework that is ready-to-use out of the box.",
5
5
  "type": "module",
6
6
  "keywords": [
package/sys/mod.js CHANGED
@@ -766,7 +766,7 @@ export default class Mod {
766
766
  }
767
767
  const r = await this._db.query(this._sql.getSql(), this._sql.getData());
768
768
  if (r.rows === null) {
769
- lCore.log(this._ctr ?? {}, '[first, mod] ' + lText.stringifyJson(r.error?.message ?? '').slice(1, -1).replace(/"/g, '""'), '-error');
769
+ lCore.log(this._ctr ?? {}, '[MOD][first] ' + (lText.stringifyJson(r.error?.message ?? '').slice(1, -1) + '-' + this._sql.format()).replace(/"/g, '""'), '-error');
770
770
  return false;
771
771
  }
772
772
  if (r.rows.length === 0) {