@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 +1 -1
- package/index.js +1 -1
- package/lib/db.js +1 -1
- package/lib/net.d.ts +1 -1
- package/lib/text.d.ts +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* ------------------------
|
|
9
9
|
*/
|
|
10
10
|
/** --- 当前系统版本号 --- */
|
|
11
|
-
export const VER = '3.0.
|
|
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
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):
|
|
152
|
+
export declare function logicalOr<T, T2>(v1: T, v2: T2): T extends TFalsy ? T2 : T;
|
|
153
153
|
/**
|
|
154
154
|
* --- 为解决精度问题,将字符串数字转换为整数显示 ---
|
|
155
155
|
* --- 以下几个示例都是当 digits 为 2 时 ---
|