koishi-plugin-spawn-modified 1.1.2 → 1.1.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/lib/index.d.ts CHANGED
@@ -17,6 +17,7 @@ export interface Config {
17
17
  restrictDirectory?: boolean;
18
18
  }
19
19
  export declare const Config: Schema<Config>;
20
+ export declare const schema: Schema<Config>;
20
21
  export interface State {
21
22
  command: string;
22
23
  timeout: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-spawn-modified",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Run shell commands with Koishi",
5
5
  "keywords": [
6
6
  "bot",
package/src/index.ts CHANGED
@@ -33,6 +33,8 @@ export const Config: Schema<Config> = Schema.object({
33
33
  restrictDirectory: Schema.boolean().description('是否限制在当前目录及子目录内执行命令(禁止 cd 到上级或其他目录)。').default(false),
34
34
  })
35
35
 
36
+ export const schema = Config
37
+
36
38
  export interface State {
37
39
  command: string
38
40
  timeout: number