@maiyunnet/kebab 3.0.2 → 3.0.3

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/index.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * ------------------------
9
9
  */
10
10
  /** --- 当前系统版本号 --- */
11
- export declare const VER = "3.0.2";
11
+ export declare const VER = "3.0.3";
12
12
  /** --- 框架根目录,以 / 结尾 --- */
13
13
  export declare const ROOT_PATH: string;
14
14
  export declare const LIB_PATH: string;
package/index.js CHANGED
@@ -8,7 +8,7 @@
8
8
  * ------------------------
9
9
  */
10
10
  /** --- 当前系统版本号 --- */
11
- export const VER = '3.0.2';
11
+ export const VER = '3.0.3';
12
12
  // --- 服务端用的路径 ---
13
13
  const imu = import.meta.url.replace('file://', '').replace(/^\/(\w:)/, '$1').replace(/\\/g, '/');
14
14
  /** --- /xxx/xxx --- */
package/lib/db.js CHANGED
@@ -167,7 +167,7 @@ export class Pool {
167
167
  }
168
168
  c.setLost();
169
169
  }).on('end', function () {
170
- lCore.debug('[DB][_getConnection] connection end.');
170
+ // lCore.debug('[DB][_getConnection] connection end.');
171
171
  c.setLost();
172
172
  });
173
173
  conn = c;
package/lib/net.d.ts CHANGED
@@ -14,7 +14,7 @@ import * as lRequest from './net/request.js';
14
14
  import * as response from './net/response.js';
15
15
  /** --- 请求的传入参数选项 --- */
16
16
  export interface IRequestOptions {
17
- 'method'?: 'GET' | 'POST' | 'OPTIONS';
17
+ 'method'?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS';
18
18
  'type'?: 'form' | 'json';
19
19
  /** --- 秒数 --- */
20
20
  'timeout'?: number;
package/lib/text.d.ts CHANGED
@@ -149,7 +149,7 @@ export declare function isTruthy(val: any): val is Exclude<typeof val, TFalsy>;
149
149
  * @param v1 比对值
150
150
  * @param v2 比对值
151
151
  */
152
- export declare function logicalOr<T, T2>(v1: T, v2: T2): [T] extends [TFalsy] ? T2 : T;
152
+ export declare function logicalOr<T, T2>(v1: T, v2: T2): T extends TFalsy ? T2 : T;
153
153
  /**
154
154
  * --- 为解决精度问题,将字符串数字转换为整数显示 ---
155
155
  * --- 以下几个示例都是当 digits 为 2 时 ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maiyunnet/kebab",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
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": [