node-karin 1.2.0 → 1.2.2

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.
@@ -1,73 +1,73 @@
1
- name: 服务配置
2
- view:
3
- - key: 热更新是否重启服务
4
- comment: 当前文件热更新是否重启http、grpc服务
5
- path: "HotUpdate"
6
- type: "boolean"
7
- - key: http 服务器配置
8
- path: "http"
9
- type: "group"
10
- part:
11
- - key: 监听地址
12
- path: "http.host"
13
- type: "text"
14
- - key: 端口
15
- path: "http.port"
16
- type: "number"
17
- - key: grpc 服务器配置
18
- path: "grpc"
19
- type: "group"
20
- part:
21
- - key: 监听地址
22
- path: "grpc.host"
23
- type: "text"
24
- - key: Api请求超时时间
25
- path: "grpc.timeout"
26
- type: "number"
27
- suffix: 秒
28
- - key: websocket 服务器配置
29
- path: "websocket"
30
- type: "group"
31
- part:
32
- - key: API请求超时时间
33
- path: "websocket.timeout"
34
- type: "number"
35
- suffix: 秒
36
- - key: websocket 渲染器地址
37
- comment: ws://127.0.0.1:7005/ws/render
38
- path: "websocket.render"
39
- type: "array"
40
- arrayType: "text"
41
- - key: onebot11 正向WebSocket地址
42
- path: "websocket.OneBot11Host"
43
- type: "array"
44
- arrayType: "text"
45
- - key: onebot12 正向WebSocket地址
46
- path: "websocket.OneBot12Host"
47
- type: "array"
48
- arrayType: "text"
49
- - key: HTTP渲染器配置
50
- path: "HttpRender"
51
- type: "group"
52
- part:
53
- - key: 是否开启http渲染
54
- path: "HttpRender.enable"
55
- type: "boolean"
56
- - key: karin端Api地址
57
- comment: 公网 > 局域网 > 127
58
- path: "HttpRender.host"
59
- type: "url"
60
- - key: karin-puppeteer渲染器 post请求地址
61
- path: "HttpRender.post"
62
- type: "url"
63
- - key: karin-puppeteer渲染器 post请求token
64
- path: "HttpRender.token"
65
- type: "text"
66
- - key: 请求的非html或非有效路径的返回内容
67
- comment: 可以填http地址 例如:https://ys.mihoyo.com
68
- path: "HttpRender.not_found"
69
- type: "text"
70
- - key: Wormhole代理地址
71
- comment: 无公网IP环境的情况下使用
72
- path: "HttpRender.WormholeClient"
73
- type: "text"
1
+ name: 服务配置
2
+ view:
3
+ - key: 热更新是否重启服务
4
+ comment: 当前文件热更新是否重启http、grpc服务
5
+ path: "HotUpdate"
6
+ type: "boolean"
7
+ - key: http 服务器配置
8
+ path: "http"
9
+ type: "group"
10
+ part:
11
+ - key: 监听地址
12
+ path: "http.host"
13
+ type: "text"
14
+ - key: 端口
15
+ path: "http.port"
16
+ type: "number"
17
+ - key: grpc 服务器配置
18
+ path: "grpc"
19
+ type: "group"
20
+ part:
21
+ - key: 监听地址
22
+ path: "grpc.host"
23
+ type: "text"
24
+ - key: Api请求超时时间
25
+ path: "grpc.timeout"
26
+ type: "number"
27
+ suffix: 秒
28
+ - key: websocket 服务器配置
29
+ path: "websocket"
30
+ type: "group"
31
+ part:
32
+ - key: API请求超时时间
33
+ path: "websocket.timeout"
34
+ type: "number"
35
+ suffix: 秒
36
+ - key: websocket 渲染器地址
37
+ comment: ws://127.0.0.1:7005/ws/render
38
+ path: "websocket.render"
39
+ type: "array"
40
+ arrayType: "text"
41
+ - key: onebot11 正向WebSocket地址
42
+ path: "websocket.OneBot11Host"
43
+ type: "array"
44
+ arrayType: "text"
45
+ - key: onebot12 正向WebSocket地址
46
+ path: "websocket.OneBot12Host"
47
+ type: "array"
48
+ arrayType: "text"
49
+ - key: HTTP渲染器配置
50
+ path: "HttpRender"
51
+ type: "group"
52
+ part:
53
+ - key: 是否开启http渲染
54
+ path: "HttpRender.enable"
55
+ type: "boolean"
56
+ - key: karin端Api地址
57
+ comment: 公网 > 局域网 > 127
58
+ path: "HttpRender.host"
59
+ type: "url"
60
+ - key: karin-puppeteer渲染器 post请求地址
61
+ path: "HttpRender.post"
62
+ type: "url"
63
+ - key: karin-puppeteer渲染器 post请求token
64
+ path: "HttpRender.token"
65
+ type: "text"
66
+ - key: 请求的非html或非有效路径的返回内容
67
+ comment: 可以填http地址 例如:https://ys.mihoyo.com
68
+ path: "HttpRender.not_found"
69
+ type: "text"
70
+ - key: Wormhole代理地址
71
+ comment: 无公网IP环境的情况下使用
72
+ path: "HttpRender.WormholeClient"
73
+ type: "text"
@@ -109,7 +109,7 @@ var pkgDir = url.fileURLToPath(new url.URL("../..", (typeof document === 'undefi
109
109
  var isPluginDev = () => {
110
110
  const pkg = fs2__default.default.readFileSync(path2__default.default.join(dir, "package.json"), "utf-8");
111
111
  const data = JSON.parse(pkg);
112
- if (data == null ? void 0 : data.karin) return true;
112
+ if (data == null ? undefined : data.karin) return true;
113
113
  if (fs2__default.default.existsSync(path2__default.default.join(dir, "src"))) return true;
114
114
  if (fs2__default.default.existsSync(path2__default.default.join(dir, "tsconfig.json"))) return true;
115
115
  if (fs2__default.default.existsSync(path2__default.default.join(dir, ".prettierrc"))) return true;
@@ -447,7 +447,7 @@ var updateAll = async () => {
447
447
  }
448
448
  };
449
449
  var _a;
450
- if (!((_a = process.argv) == null ? void 0 : _a[2])) process.argv.push("-h");
450
+ if (!((_a = process.argv) == null ? undefined : _a[2])) process.argv.push("-h");
451
451
  var addEnvOption = (command) => {
452
452
  return command.option("-e, --env <files>", "\u6307\u5B9A\u73AF\u5883\u53D8\u91CF\u6587\u4EF6\uFF0C\u591A\u4E2A\u6587\u4EF6\u7528\u9017\u53F7\u5206\u9694");
453
453
  };
package/dist/cli/index.js CHANGED
@@ -100,7 +100,7 @@ var pkgDir = fileURLToPath(new URL$1("../..", import.meta.url));
100
100
  var isPluginDev = () => {
101
101
  const pkg = fs2.readFileSync(path2.join(dir, "package.json"), "utf-8");
102
102
  const data = JSON.parse(pkg);
103
- if (data == null ? void 0 : data.karin) return true;
103
+ if (data == null ? undefined : data.karin) return true;
104
104
  if (fs2.existsSync(path2.join(dir, "src"))) return true;
105
105
  if (fs2.existsSync(path2.join(dir, "tsconfig.json"))) return true;
106
106
  if (fs2.existsSync(path2.join(dir, ".prettierrc"))) return true;
@@ -438,7 +438,7 @@ var updateAll = async () => {
438
438
  }
439
439
  };
440
440
  var _a;
441
- if (!((_a = process.argv) == null ? void 0 : _a[2])) process.argv.push("-h");
441
+ if (!((_a = process.argv) == null ? undefined : _a[2])) process.argv.push("-h");
442
442
  var addEnvOption = (command) => {
443
443
  return command.option("-e, --env <files>", "\u6307\u5B9A\u73AF\u5883\u53D8\u91CF\u6587\u4EF6\uFF0C\u591A\u4E2A\u6587\u4EF6\u7528\u9017\u53F7\u5206\u9694");
444
444
  };