@alemonjs/onebot 2.1.0-alpha.10 → 2.1.0-alpha.11

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +3 -2
package/lib/index.js CHANGED
@@ -360,12 +360,12 @@ const main = () => {
360
360
  const mainProcess = () => {
361
361
  ['SIGINT', 'SIGTERM', 'SIGQUIT', 'disconnect'].forEach(sig => {
362
362
  process?.on?.(sig, () => {
363
- logger?.info?.(`[alemonjs][${sig}] 收到信号,正在关闭...`);
363
+ logger?.info?.(`[@alemonjs/onebot][${sig}] 收到信号,正在关闭...`);
364
364
  setImmediate(() => process.exit(0));
365
365
  });
366
366
  });
367
367
  process?.on?.('exit', code => {
368
- logger?.info?.(`[alemonjs][exit] 进程退出,code=${code}`);
368
+ logger?.info?.(`[@alemonjs/onebot][exit] 进程退出,code=${code}`);
369
369
  });
370
370
  // 监听主进程消息
371
371
  process.on('message', msg => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alemonjs/onebot",
3
- "version": "2.1.0-alpha.10",
3
+ "version": "2.1.0-alpha.11",
4
4
  "description": "onebot v11",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",
@@ -13,7 +13,8 @@
13
13
  "exports": {
14
14
  ".": {
15
15
  "import": "./lib/index.js",
16
- "types": "./lib/index.d.ts"
16
+ "types": "./lib/index.d.ts",
17
+ "require": "./lib/index.js"
17
18
  },
18
19
  "./package": "./package.json"
19
20
  },