@maiyunnet/kebab 3.1.4 → 3.1.5

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/sys/mod.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * Project: Mutton, User: JianSuoQiYue
3
3
  * Date: 2019-6-4 21:35
4
- * Last: 2020-4-14 13:33:51, 2022-07-23 16:01:34, 2022-09-06 22:59:26, 2023-5-24 19:11:37, 2023-6-13 21:47:58, 2023-7-10 18:54:03, 2023-8-23 17:03:16, 2023-12-11 15:21:22, 2023-12-20 23:12:03, 2024-3-8 16:05:29, 2024-3-20 19:58:15, 2024-8-11 21:14:54, 2024-10-5 14:00:22, 2024-12-14 19:58:34
4
+ * Last: 2020-4-14 13:33:51, 2022-07-23 16:01:34, 2022-09-06 22:59:26, 2023-5-24 19:11:37, 2023-6-13 21:47:58, 2023-7-10 18:54:03, 2023-8-23 17:03:16, 2023-12-11 15:21:22, 2023-12-20 23:12:03, 2024-3-8 16:05:29, 2024-3-20 19:58:15, 2024-8-11 21:14:54, 2024-10-5 14:00:22, 2024-12-14 19:58:34, 2025-9-23 11:01:36
5
5
  */
6
6
  import * as lSql from '#lib/sql.js';
7
7
  import * as lDb from '#lib/db.js';
8
8
  import * as sCtr from '#sys/ctr.js';
9
- import * as types from '#types/index.js';
9
+ import * as kebab from '#index.js';
10
10
  /** --- 只获取变量 --- */
11
11
  type TOnlyProperties<T> = {
12
12
  [K in keyof T as T[K] extends (...args: any[]) => any ? never : K]: T[K];
13
13
  };
14
14
  /** --- 条数列表 --- */
15
- declare class Rows<T extends Mod> implements types.Rows<T> {
15
+ declare class Rows<T extends Mod> implements CRows<T> {
16
16
  private readonly _items;
17
17
  constructor(initialItems?: T[]);
18
18
  /** --- 总行数 --- */
@@ -72,7 +72,7 @@ export default class Mod {
72
72
  'alias'?: string;
73
73
  'row'?: Record<string, any>;
74
74
  'select'?: string | string[];
75
- 'where'?: string | types.Json;
75
+ 'where'?: string | kebab.Json;
76
76
  'contain'?: {
77
77
  'key': string;
78
78
  'list': string[];
@@ -114,7 +114,7 @@ export default class Mod {
114
114
  * @param update 要更新的数据
115
115
  * @param opt 选项
116
116
  */
117
- static insertDuplicate(db: lDb.Pool | lDb.Transaction, data: Record<string, any>, update: types.Json, opt?: {
117
+ static insertDuplicate(db: lDb.Pool | lDb.Transaction, data: Record<string, any>, update: kebab.Json, opt?: {
118
118
  'pre'?: sCtr.Ctr | string;
119
119
  'index'?: string;
120
120
  }): Promise<boolean | null>;
@@ -124,7 +124,7 @@ export default class Mod {
124
124
  * @param where 筛选条件
125
125
  * @param opt 选项
126
126
  */
127
- static removeByWhere(db: lDb.Pool | lDb.Transaction, where: string | types.Json, opt?: {
127
+ static removeByWhere(db: lDb.Pool | lDb.Transaction, where: string | kebab.Json, opt?: {
128
128
  'raw'?: boolean;
129
129
  'pre'?: sCtr.Ctr | string;
130
130
  'index'?: string;
@@ -137,7 +137,7 @@ export default class Mod {
137
137
  * @param where 筛选条件
138
138
  * @param opt 选项
139
139
  */
140
- static removeByWhereSql(db: lDb.Pool | lDb.Transaction, where: string | types.Json, opt?: {
140
+ static removeByWhereSql(db: lDb.Pool | lDb.Transaction, where: string | kebab.Json, opt?: {
141
141
  'raw'?: boolean;
142
142
  'pre'?: sCtr.Ctr | string;
143
143
  'index'?: string;
@@ -151,7 +151,7 @@ export default class Mod {
151
151
  * @param where 筛选条件
152
152
  * @param opt 选项
153
153
  */
154
- static updateByWhere(db: lDb.Pool | lDb.Transaction, data: types.Json, where: string | types.Json, opt?: {
154
+ static updateByWhere(db: lDb.Pool | lDb.Transaction, data: kebab.Json, where: string | kebab.Json, opt?: {
155
155
  'raw'?: boolean;
156
156
  'pre'?: sCtr.Ctr | string;
157
157
  'index'?: string | string[];
@@ -164,7 +164,7 @@ export default class Mod {
164
164
  * @param where 筛选条件
165
165
  * @param opt 选项
166
166
  */
167
- static updateByWhereSql(data: types.Json, where: string | types.Json, opt?: {
167
+ static updateByWhereSql(data: kebab.Json, where: string | kebab.Json, opt?: {
168
168
  'raw'?: boolean;
169
169
  'pre'?: sCtr.Ctr | string;
170
170
  'index'?: string;
@@ -193,7 +193,7 @@ export default class Mod {
193
193
  * @param s 筛选条件数组或字符串
194
194
  * @param opt 选项
195
195
  */
196
- static where<T extends Mod>(db: lDb.Pool | lDb.Transaction, s?: string | types.Json, opt?: {
196
+ static where<T extends Mod>(db: lDb.Pool | lDb.Transaction, s?: string | kebab.Json, opt?: {
197
197
  'ctr'?: sCtr.Ctr;
198
198
  'raw'?: boolean;
199
199
  'pre'?: string;
@@ -227,7 +227,7 @@ export default class Mod {
227
227
  'pre'?: string;
228
228
  'index'?: string;
229
229
  }): Promise<false | null | (T & Record<string, any>)>;
230
- static one(db: lDb.Pool | lDb.Transaction, s: string | types.Json, opt: {
230
+ static one(db: lDb.Pool | lDb.Transaction, s: string | kebab.Json, opt: {
231
231
  'ctr'?: sCtr.Ctr;
232
232
  'raw'?: boolean;
233
233
  'pre'?: string;
@@ -236,7 +236,7 @@ export default class Mod {
236
236
  'by'?: [string | string[], 'DESC' | 'ASC'];
237
237
  'array': true;
238
238
  }): Promise<false | null | Record<string, any>>;
239
- static one<T extends Mod>(db: lDb.Pool | lDb.Transaction, s: string | types.Json, opt: {
239
+ static one<T extends Mod>(db: lDb.Pool | lDb.Transaction, s: string | kebab.Json, opt: {
240
240
  'ctr'?: sCtr.Ctr;
241
241
  'raw'?: boolean;
242
242
  'pre'?: string;
@@ -251,7 +251,7 @@ export default class Mod {
251
251
  * @param s 筛选条件数组或字符串
252
252
  * @param opt 选项
253
253
  */
254
- static oneArray(db: lDb.Pool | lDb.Transaction, s: string | types.Json, opt?: {
254
+ static oneArray(db: lDb.Pool | lDb.Transaction, s: string | kebab.Json, opt?: {
255
255
  'ctr'?: sCtr.Ctr;
256
256
  'raw'?: boolean;
257
257
  'pre'?: string;
@@ -264,7 +264,7 @@ export default class Mod {
264
264
  * @param where where 条件
265
265
  * @param opt 选项
266
266
  */
267
- static primarys(db: lDb.Pool | lDb.Transaction, where?: string | types.Json, opt?: {
267
+ static primarys(db: lDb.Pool | lDb.Transaction, where?: string | kebab.Json, opt?: {
268
268
  'ctr'?: sCtr.Ctr;
269
269
  'raw'?: boolean;
270
270
  'pre'?: string;
@@ -287,7 +287,7 @@ export default class Mod {
287
287
  * @param notWhere 若要不存在才成功,则要传入限定条件
288
288
  * @param table 可对限定条件传入适当的表
289
289
  */
290
- create(notWhere?: string | types.Json, table?: string): Promise<boolean>;
290
+ create(notWhere?: string | kebab.Json, table?: string): Promise<boolean>;
291
291
  /**
292
292
  * --- 唯一键冲突则替换,不冲突则创建数据 ---
293
293
  */
@@ -318,12 +318,12 @@ export default class Mod {
318
318
  * @param f 要联合查询的表列表、单个表、sql 对象
319
319
  * @param type 类型
320
320
  */
321
- union(f: lSql.Sql | string | types.IModUnionItem | string[] | types.IModUnionItem[], type?: string): this;
321
+ union(f: lSql.Sql | string | IModUnionItem | string[] | IModUnionItem[], type?: string): this;
322
322
  /**
323
323
  * --- 所有联合查询表数据 ---
324
324
  * @param f 要联合查询的表列表、单个表、sql 对象
325
325
  */
326
- unionAll(f: lSql.Sql | string | types.IModUnionItem | string[] | types.IModUnionItem[]): this;
326
+ unionAll(f: lSql.Sql | string | IModUnionItem | string[] | IModUnionItem[]): this;
327
327
  all(): Promise<false | Rows<this>>;
328
328
  all(key: string): Promise<false | Record<string, this>>;
329
329
  allArray(): Promise<false | Array<Record<string, any>>>;
@@ -346,59 +346,59 @@ export default class Mod {
346
346
  * @param index 给本表增加 index 分表项
347
347
  * @param pre 前缀
348
348
  */
349
- join(f: string, s?: types.Json, type?: string, index?: string, pre?: string): this;
349
+ join(f: string, s?: kebab.Json, type?: string, index?: string, pre?: string): this;
350
350
  /**
351
351
  * --- left join 方法 ---
352
352
  * @param f 表名
353
353
  * @param s ON 信息
354
354
  * @param index 给本表增加 index 分表项
355
355
  */
356
- leftJoin(f: string, s: types.Json, index?: string, pre?: string): this;
356
+ leftJoin(f: string, s: kebab.Json, index?: string, pre?: string): this;
357
357
  /**
358
358
  * --- right join 方法 ---
359
359
  * @param f 表名
360
360
  * @param s ON 信息
361
361
  * @param index 给本表增加 index 分表项
362
362
  */
363
- rightJoin(f: string, s: types.Json, index?: string, pre?: string): this;
363
+ rightJoin(f: string, s: kebab.Json, index?: string, pre?: string): this;
364
364
  /**
365
365
  * --- inner join 方法 ---
366
366
  * @param f 表名
367
367
  * @param s ON 信息
368
368
  * @param index 给本表增加 index 分表项
369
369
  */
370
- innerJoin(f: string, s: types.Json, index?: string, pre?: string): this;
370
+ innerJoin(f: string, s: kebab.Json, index?: string, pre?: string): this;
371
371
  /**
372
372
  * --- full join 方法 ---
373
373
  * @param f 表名
374
374
  * @param s ON 信息
375
375
  * @param index 给本表增加 index 分表项
376
376
  */
377
- fullJoin(f: string, s: types.Json, index?: string, pre?: string): this;
377
+ fullJoin(f: string, s: kebab.Json, index?: string, pre?: string): this;
378
378
  /**
379
379
  * --- cross join 方法 ---
380
380
  * @param f 表名
381
381
  * @param s ON 信息
382
382
  * @param index 给本表增加 index 分表项
383
383
  */
384
- crossJoin(f: string, s: types.Json, index?: string, pre?: string): this;
384
+ crossJoin(f: string, s: kebab.Json, index?: string, pre?: string): this;
385
385
  /**
386
386
  * --- 筛选器 ---
387
387
  * @param s 筛选条件数组或字符串
388
388
  */
389
- having(s: types.Json): this;
389
+ having(s: kebab.Json): this;
390
390
  /**
391
391
  * --- 筛选器 ---
392
392
  * @param s 筛选条件数组或字符串
393
393
  * @param raw 是否包含已被软删除的数据
394
394
  */
395
- filter(s: types.Json, raw?: boolean): this;
395
+ filter(s: kebab.Json, raw?: boolean): this;
396
396
  /**
397
397
  * --- 是 filter 的别名 ---
398
398
  * @param s 筛选条件数组或字符串
399
399
  * @param raw 是否包含已被软删除的数据
400
400
  */
401
- where(s: types.Json, raw?: boolean): this;
401
+ where(s: kebab.Json, raw?: boolean): this;
402
402
  /**
403
403
  * --- ORDER BY ---
404
404
  * @param c 字段字符串或数组
@@ -474,4 +474,18 @@ export default class Mod {
474
474
  */
475
475
  protected _keyGenerator(): string;
476
476
  }
477
+ /** --- mod ls 对象 --- */
478
+ export declare class CRows<T> implements Iterable<T> {
479
+ /** --- 总行数 --- */
480
+ get length(): number;
481
+ /** --- 通过索引获取一个对象 --- */
482
+ item(index: number): T;
483
+ /** --- 转换为数组对象 --- */
484
+ toArray(): Array<Record<string, kebab.DbValue>>;
485
+ [Symbol.iterator](): Iterator<T>;
486
+ }
487
+ export interface IModUnionItem {
488
+ 'field': string;
489
+ 'where'?: any;
490
+ }
477
491
  export {};
package/sys/mod.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Project: Mutton, User: JianSuoQiYue
3
3
  * Date: 2019-6-4 21:35
4
- * Last: 2020-4-14 13:33:51, 2022-07-23 16:01:34, 2022-09-06 22:59:26, 2023-5-24 19:11:37, 2023-6-13 21:47:58, 2023-7-10 18:54:03, 2023-8-23 17:03:16, 2023-12-11 15:21:22, 2023-12-20 23:12:03, 2024-3-8 16:05:29, 2024-3-20 19:58:15, 2024-8-11 21:14:54, 2024-10-5 14:00:22, 2024-12-14 19:58:34
4
+ * Last: 2020-4-14 13:33:51, 2022-07-23 16:01:34, 2022-09-06 22:59:26, 2023-5-24 19:11:37, 2023-6-13 21:47:58, 2023-7-10 18:54:03, 2023-8-23 17:03:16, 2023-12-11 15:21:22, 2023-12-20 23:12:03, 2024-3-8 16:05:29, 2024-3-20 19:58:15, 2024-8-11 21:14:54, 2024-10-5 14:00:22, 2024-12-14 19:58:34, 2025-9-23 11:01:36
5
5
  */
6
6
  import * as lSql from '#lib/sql.js';
7
7
  import * as lTime from '#lib/time.js';
package/sys/route.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Project: Kebab, User: JianSuoQiYue
3
3
  * Date: 2019-4-15 13:40
4
- * Last: 2020-4-14 13:52:00, 2022-09-07 01:43:31, 2023-12-29 17:24:03, 2024-2-7 00:28:50, 2024-6-6 15:15:54, 2025-6-13 19:23:53, 2025-9-22 15:48:53
4
+ * Last: 2020-4-14 13:52:00, 2022-09-07 01:43:31, 2023-12-29 17:24:03, 2024-2-7 00:28:50, 2024-6-6 15:15:54, 2025-6-13 19:23:53, 2025-9-22 15:48:53, 2025-9-23 11:26:50
5
5
  */
6
6
  import * as http from 'http';
7
7
  import * as http2 from 'http2';
8
8
  import * as net from 'net';
9
9
  import * as sCtr from './ctr.js';
10
- import * as types from '#types/index.js';
10
+ import * as kebab from '#index.js';
11
11
  /**
12
12
  * --- 清除已经加载的虚拟主机配置文件 ---
13
13
  */
@@ -20,7 +20,7 @@ export declare function run(data: {
20
20
  'req': http2.Http2ServerRequest | http.IncomingMessage;
21
21
  'res'?: http2.Http2ServerResponse | http.ServerResponse;
22
22
  'socket'?: net.Socket;
23
- 'uri': types.IUrlParse;
23
+ 'uri': kebab.IUrlParse;
24
24
  /** --- 虚拟主机当前动态目录的绝对根目录,末尾带 / --- */
25
25
  'rootPath': string;
26
26
  /** --- base url,如 /abc/vhost/,前后都带 / --- */
@@ -38,7 +38,7 @@ export declare function run(data: {
38
38
  * --- 删除本次请求所有已上传的临时文件, Mutton: false, Kebab: true ---
39
39
  * @param cctr Ctr 对象 或 files
40
40
  */
41
- export declare function unlinkUploadFiles(cctr: sCtr.Ctr | Record<string, types.IPostFile | types.IPostFile[]>): Promise<void>;
41
+ export declare function unlinkUploadFiles(cctr: sCtr.Ctr | Record<string, kebab.IPostFile | kebab.IPostFile[]>): Promise<void>;
42
42
  /**
43
43
  * --- 等待异步任务结束,并删除临时文件,如果结束后还有事务没关闭,则会在本函数中打印控制台并且写入 log 文件 ---
44
44
  * --- 此时其实已经给客户端返回了,此处等待不消耗客户端的等待时间 ---
@@ -49,7 +49,7 @@ export declare function waitCtr(cctr: sCtr.Ctr): Promise<void>;
49
49
  * --- 将 POST 数据的值执行 trim ---
50
50
  * @param post
51
51
  */
52
- export declare function trimPost(post: Record<string, types.Json>): void;
52
+ export declare function trimPost(post: Record<string, kebab.Json>): void;
53
53
  /**
54
54
  * --- 获取 formdata 的 post ---
55
55
  * @param req 请求头
@@ -60,6 +60,6 @@ export declare function getFormData(req: http2.Http2ServerRequest | http.Incomin
60
60
  onfiledata?: (chunk: Buffer) => void;
61
61
  onfileend?: () => void;
62
62
  }): Promise<{
63
- 'post': Record<string, types.Json>;
64
- 'files': Record<string, types.IPostFile | types.IPostFile[]>;
63
+ 'post': Record<string, kebab.Json>;
64
+ 'files': Record<string, kebab.IPostFile | kebab.IPostFile[]>;
65
65
  } | false>;
package/sys/route.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Project: Kebab, User: JianSuoQiYue
3
3
  * Date: 2019-4-15 13:40
4
- * Last: 2020-4-14 13:52:00, 2022-09-07 01:43:31, 2023-12-29 17:24:03, 2024-2-7 00:28:50, 2024-6-6 15:15:54, 2025-6-13 19:23:53, 2025-9-22 15:48:53
4
+ * Last: 2020-4-14 13:52:00, 2022-09-07 01:43:31, 2023-12-29 17:24:03, 2024-2-7 00:28:50, 2024-6-6 15:15:54, 2025-6-13 19:23:53, 2025-9-22 15:48:53, 2025-9-23 11:26:50
5
5
  */
6
6
  import * as http from 'http';
7
7
  import * as stream from 'stream';
@@ -1,4 +1,4 @@
1
- import * as ctr from '#sys/ctr.js';
2
- export default class extends ctr.Ctr {
1
+ import * as sCtr from '#sys/ctr.js';
2
+ export default class extends sCtr.Ctr {
3
3
  index(): string;
4
4
  }
@@ -1,5 +1,5 @@
1
- import * as ctr from '#sys/ctr.js';
2
- export default class extends ctr.Ctr {
1
+ import * as sCtr from '#sys/ctr.js';
2
+ export default class extends sCtr.Ctr {
3
3
  index() {
4
4
  return `<a href="${this._config.const.urlBase}test">Hello world! Click here to visit demo.</a>`;
5
5
  }
@@ -1,6 +1,6 @@
1
- import * as ctr from '#sys/ctr.js';
2
- import * as types from '#types/index.js';
3
- export default class extends ctr.Ctr {
1
+ import * as kebab from '#index.js';
2
+ import * as sCtr from '#sys/ctr.js';
3
+ export default class extends sCtr.Ctr {
4
4
  onLoad(): string | boolean;
5
- onUnload(rtn: string | boolean | types.DbValue[]): string | boolean | types.DbValue[];
5
+ onUnload(rtn: string | boolean | kebab.DbValue[]): string | boolean | kebab.DbValue[];
6
6
  }
@@ -1,5 +1,5 @@
1
- import * as ctr from '#sys/ctr.js';
2
- export default class extends ctr.Ctr {
1
+ import * as sCtr from '#sys/ctr.js';
2
+ export default class extends sCtr.Ctr {
3
3
  onLoad() {
4
4
  if (this._config.const.path !== 'test/middle') {
5
5
  return true;
@@ -1,10 +1,10 @@
1
1
  import * as fs from 'fs';
2
+ import * as kebab from '#index.js';
2
3
  import * as sCtr from '#sys/ctr.js';
3
- import * as types from '#types/index.js';
4
4
  export default class extends sCtr.Ctr {
5
5
  private _internalUrl;
6
6
  onLoad(): Array<string | number> | boolean;
7
- onUnload(rtn: string | boolean | types.DbValue[]): string | boolean | types.DbValue[];
7
+ onUnload(rtn: string | boolean | kebab.DbValue[]): string | boolean | kebab.DbValue[];
8
8
  notfound(): string;
9
9
  index(): string;
10
10
  article(): string;
@@ -12,22 +12,22 @@ export default class extends sCtr.Ctr {
12
12
  view(): Promise<string>;
13
13
  json(): Array<number | string | object> | object;
14
14
  ctrXsrf(): string;
15
- ctrXsrf1(): types.Json[];
15
+ ctrXsrf1(): kebab.Json[];
16
16
  ctrCheckinput(): string;
17
- ctrCheckinput1(): Promise<types.Json[]>;
18
- ctrLocale(): Promise<types.Json[] | string>;
17
+ ctrCheckinput1(): Promise<kebab.Json[]>;
18
+ ctrLocale(): Promise<kebab.Json[] | string>;
19
19
  ctrCachettl(): string;
20
20
  ctrHttpcode(): string;
21
21
  ctrCross(): string;
22
- ctrCross1(): types.Json[];
23
- ctrCross2(): types.Json[];
22
+ ctrCross1(): kebab.Json[];
23
+ ctrCross2(): kebab.Json[];
24
24
  ctrReadable(): fs.ReadStream;
25
25
  ctrAsynctask(): any[];
26
26
  ctrTimeout(): Promise<any[]>;
27
- modTest(): Promise<types.Json[] | string | boolean>;
27
+ modTest(): Promise<kebab.Json[] | string | boolean>;
28
28
  modSplit(): Promise<string>;
29
29
  modSplit1(): Promise<void>;
30
- modSplit2(): Promise<types.Json[]>;
30
+ modSplit2(): Promise<kebab.Json[]>;
31
31
  modInsert(): Promise<string>;
32
32
  captchaFastbuild(): string;
33
33
  captchaBase64(): string;
@@ -44,16 +44,16 @@ export default class extends sCtr.Ctr {
44
44
  coreRestart(): Promise<string>;
45
45
  coreGlobal(): Promise<string>;
46
46
  crypto(): Promise<string>;
47
- db(): Promise<types.Json>;
47
+ db(): Promise<kebab.Json>;
48
48
  private _dbTable;
49
- kv(): Promise<types.Json>;
49
+ kv(): Promise<kebab.Json>;
50
50
  net(): Promise<string>;
51
- netPipe(): Promise<types.Json>;
52
- netPost(): Promise<types.Json>;
51
+ netPipe(): Promise<kebab.Json>;
52
+ netPost(): Promise<kebab.Json>;
53
53
  netPost1(): string;
54
54
  netPostString(): Promise<string>;
55
- netPostString1(): types.Json[];
56
- netOpen(): Promise<types.Json>;
55
+ netPostString1(): kebab.Json[];
56
+ netOpen(): Promise<kebab.Json>;
57
57
  netFormTest(): Promise<string>;
58
58
  netUpload(): Promise<string>;
59
59
  netUpload1(): Promise<string>;
@@ -63,21 +63,21 @@ export default class extends sCtr.Ctr {
63
63
  netSave(): Promise<string>;
64
64
  netFollow(): Promise<string>;
65
65
  netFollow1(): void;
66
- netFollow2(): types.Json;
66
+ netFollow2(): kebab.Json;
67
67
  netReuse(): Promise<string>;
68
68
  netError(): Promise<string>;
69
69
  netHosts(): Promise<string>;
70
70
  netRproxy(): Promise<string | boolean>;
71
71
  netMproxy(): Promise<string | boolean>;
72
72
  netMproxy1(): Promise<string | boolean>;
73
- scan(): Promise<types.Json>;
74
- scan1(): Promise<types.Json>;
75
- scan2(): Promise<types.Json>;
76
- scan3(): Promise<types.Json>;
73
+ scan(): Promise<kebab.Json>;
74
+ scan1(): Promise<kebab.Json>;
75
+ scan2(): Promise<kebab.Json>;
76
+ scan3(): Promise<kebab.Json>;
77
77
  private _scanLink;
78
- session(): Promise<string | types.Json[]>;
79
- jwt(): Promise<string | types.Json[]>;
80
- jwt1(): Promise<[number, types.Json]>;
78
+ session(): Promise<string | kebab.Json[]>;
79
+ jwt(): Promise<string | kebab.Json[]>;
80
+ jwt1(): Promise<[number, kebab.Json]>;
81
81
  sql(): string;
82
82
  consistentHash(): string;
83
83
  consistentDistributed(): string;
@@ -87,7 +87,7 @@ export default class extends sCtr.Ctr {
87
87
  time(): string;
88
88
  wsServer(): string;
89
89
  wsClient(): Promise<string>;
90
- ssh(): Promise<string | types.Json[]>;
90
+ ssh(): Promise<string | kebab.Json[]>;
91
91
  s3(): Promise<string>;
92
92
  zip(): Promise<string>;
93
93
  buffer(): string;
@@ -1,4 +1,5 @@
1
- // --- 库和定义 ---
1
+ // --- ---
2
+ import * as kebab from '#index.js';
2
3
  import * as lCore from '#lib/core.js';
3
4
  import * as lNet from '#lib/net.js';
4
5
  import * as lDb from '#lib/db.js';
@@ -20,7 +21,6 @@ import * as lBuffer from '#lib/buffer.js';
20
21
  import * as lLan from '#lib/lan.js';
21
22
  import * as lCron from '#lib/cron.js';
22
23
  import * as sCtr from '#sys/ctr.js';
23
- import * as kebab from '#index.js';
24
24
  // --- mod ---
25
25
  import mTest from '../mod/test.js';
26
26
  import mTestData from '../mod/testdata.js';
@@ -1,5 +1,5 @@
1
+ import * as kebab from '#index.js';
1
2
  import sMod from '#sys/mod.js';
2
- import * as types from '#types/index.js';
3
3
  export default class extends sMod {
4
4
  protected static _$table: string;
5
5
  protected static _$primary: string;
@@ -16,7 +16,7 @@ export default class extends sMod {
16
16
  'x': number;
17
17
  'y': number;
18
18
  }>>;
19
- json: types.Json;
19
+ json: kebab.Json;
20
20
  time_add: number;
21
21
  protected _keyGenerator(): string;
22
22
  }