@onebots/core 1.0.5 → 1.0.6
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/lib/adapter.d.ts +1 -1
- package/lib/adapter.js +1 -1
- package/package.json +1 -1
package/lib/adapter.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare abstract class Adapter<C = any, T extends keyof Adapter.Configs =
|
|
|
22
22
|
icon: string;
|
|
23
23
|
get db(): SqliteDB;
|
|
24
24
|
/**
|
|
25
|
-
* id_map 表名:平台名可能含 `-`(如 wechat-
|
|
25
|
+
* id_map 表名:平台名可能含 `-`(如 wechat-clawbot),不能直接拼进 SQL,需规范为合法标识符。
|
|
26
26
|
*/
|
|
27
27
|
get tableName(): string;
|
|
28
28
|
protected constructor(app: I, platform: T);
|
package/lib/adapter.js
CHANGED
|
@@ -20,7 +20,7 @@ export class Adapter extends EventEmitter {
|
|
|
20
20
|
return this.app.db;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* id_map 表名:平台名可能含 `-`(如 wechat-
|
|
23
|
+
* id_map 表名:平台名可能含 `-`(如 wechat-clawbot),不能直接拼进 SQL,需规范为合法标识符。
|
|
24
24
|
*/
|
|
25
25
|
get tableName() {
|
|
26
26
|
const safe = String(this.platform).replace(/[^a-zA-Z0-9_]/g, "_");
|