node-karin 1.13.0 → 1.13.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.13.8](https://github.com/KarinJS/Karin/compare/core-v1.13.7...core-v1.13.8) (2025-12-12)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * 导出@karinjs/log4js ([#595](https://github.com/KarinJS/Karin/issues/595)) ([8b54a0f](https://github.com/KarinJS/Karin/commit/8b54a0f751e80a6689fefb986b4f7fc16369e966))
9
+
10
+ ## [1.13.7](https://github.com/KarinJS/Karin/compare/core-v1.13.6...core-v1.13.7) (2025-12-12)
11
+
12
+
13
+ ### 🐛 Bug Fixes
14
+
15
+ * ci ([#593](https://github.com/KarinJS/Karin/issues/593)) ([9284a0b](https://github.com/KarinJS/Karin/commit/9284a0b7c6529711656ba21f5d2c68f3705cbdea))
16
+
17
+ ## [1.13.6](https://github.com/KarinJS/Karin/compare/core-v1.13.5...core-v1.13.6) (2025-12-12)
18
+
19
+
20
+ ### 🐛 Bug Fixes
21
+
22
+ * ci ([#591](https://github.com/KarinJS/Karin/issues/591)) ([1c43f3d](https://github.com/KarinJS/Karin/commit/1c43f3d9deec7f3276d0a2bf9bc319ed2ee5abab))
23
+
24
+ ## [1.13.5](https://github.com/KarinJS/Karin/compare/core-v1.13.4...core-v1.13.5) (2025-12-12)
25
+
26
+
27
+ ### 🐛 Bug Fixes
28
+
29
+ * build & 暴露 `ONLINE` 事件 ([#588](https://github.com/KarinJS/Karin/issues/588)) ([788f17a](https://github.com/KarinJS/Karin/commit/788f17a33771e86312fd2cc94a453ac1081ec4a7))
30
+
31
+ ## [1.13.4](https://github.com/KarinJS/Karin/compare/core-v1.13.3...core-v1.13.4) (2025-12-12)
32
+
33
+
34
+ ### 🐛 Bug Fixes
35
+
36
+ * ci ([#586](https://github.com/KarinJS/Karin/issues/586)) ([1a5f998](https://github.com/KarinJS/Karin/commit/1a5f9983f7e74961d7e25eb78086a1c9e1bd9d38))
37
+
38
+ ## [1.13.3](https://github.com/KarinJS/Karin/compare/core-v1.13.2...core-v1.13.3) (2025-12-12)
39
+
40
+
41
+ ### 🐛 Bug Fixes
42
+
43
+ * 优化ci ([#584](https://github.com/KarinJS/Karin/issues/584)) ([06ee51d](https://github.com/KarinJS/Karin/commit/06ee51ddb07139d1fd7d9ff6d51cfdf43db10274))
44
+
45
+ ## [1.13.2](https://github.com/KarinJS/Karin/compare/core-v1.13.1...core-v1.13.2) (2025-12-12)
46
+
47
+
48
+ ### 🐛 Bug Fixes
49
+
50
+ * 使用可信任发布 ([#582](https://github.com/KarinJS/Karin/issues/582)) ([4a3b48d](https://github.com/KarinJS/Karin/commit/4a3b48d88d4955f5e4b312c92245bfe49c4bf1c9))
51
+
52
+ ## [1.13.1](https://github.com/KarinJS/Karin/compare/core-v1.13.0...core-v1.13.1) (2025-12-12)
53
+
54
+
55
+ ### 🐛 Bug Fixes
56
+
57
+ * 修改插件名为plugin-puppeteer ([#578](https://github.com/KarinJS/Karin/issues/578)) ([5f48dba](https://github.com/KarinJS/Karin/commit/5f48dbae0c2349c143fe6c232fcffc5a8bab4d30))
58
+ * 更新依赖 兼容node18版本 ([#580](https://github.com/KarinJS/Karin/issues/580)) ([ca80263](https://github.com/KarinJS/Karin/commit/ca802635350d205d08c377eb00ebf9054921a38d))
59
+
3
60
  ## [1.13.0](https://github.com/KarinJS/Karin/compare/core-v1.12.2...core-v1.13.0) (2025-11-22)
4
61
 
5
62
 
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 karinjs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
File without changes
package/dist/index.d.ts CHANGED
@@ -3,8 +3,8 @@ import * as chalk from 'chalk';
3
3
  export { basePath, commentPath, configPath, consolePath, dataPath, dbPath, defaultConfigPath, defaultViewPath, htmlPath, isPackaged, isPkg, karinDir, karinMain, karinPathBase, karinPathComment, karinPathConfig, karinPathConsole, karinPathData, karinPathDb, karinPathDefaultConfig, karinPathDefaultView, karinPathHtml, karinPathKv, karinPathLogs, karinPathMain, karinPathPlugins, karinPathPm2Config, karinPathRedisSqlite3, karinPathResource, karinPathRoot, karinPathSandboxData, karinPathSandboxTemp, karinPathTaskDb, karinPathTemp, kvPath, logsPath, pluginDir, pm2Path, redisSqlite3Path, resourcePath, sandboxDataPath, sandboxTempPath, tempPath } from './root.js';
4
4
  import { a as LoggerLevel, b as LogMethodNames, L as Logger } from './types-hAhbXJDZ.js';
5
5
  export { D as DEFAULT_LOGGER_CONFIG, F as FileLogConfig, c as LogMethodsOnly, d as LoggerConfig } from './types-hAhbXJDZ.js';
6
- import sqlite3, { Database } from 'sqlite3';
7
- import schedule from 'node-schedule';
6
+ import { Database } from 'sqlite3';
7
+ import { Job } from 'node-schedule';
8
8
  import fs$1, { WriteStream } from 'node:fs';
9
9
  import { Readable } from 'node:stream';
10
10
  import { AxiosRequestConfig, AxiosResponse } from 'axios';
@@ -6939,7 +6939,7 @@ interface Task {
6939
6939
  /** 打印触发插件日志方法 */
6940
6940
  log: Log<false>;
6941
6941
  /** schedule */
6942
- schedule?: schedule.Job;
6942
+ schedule?: Job;
6943
6943
  }
6944
6944
 
6945
6945
  /**
@@ -17736,7 +17736,7 @@ declare const getPlugins: <T extends boolean = false>(type: GetPluginType, isInf
17736
17736
  */
17737
17737
  declare class SQLiteWrapper {
17738
17738
  dbPath: string;
17739
- _db: sqlite3.Database;
17739
+ _db: Database;
17740
17740
  constructor(dbPath: string);
17741
17741
  _init(): Promise<this>;
17742
17742
  /**
package/dist/index.mjs CHANGED
@@ -12256,7 +12256,7 @@ var init_sqlite2 = __esm({
12256
12256
  this._db.run(
12257
12257
  `
12258
12258
  CREATE TABLE IF NOT EXISTS redis_data (
12259
- key TEXT PRIMARY KEY,
12259
+ key TEXT PRIMARY KEY,
12260
12260
  value TEXT NOT NULL DEFAULT ''
12261
12261
  )
12262
12262
  `,
@@ -19822,7 +19822,7 @@ var init_cache4 = __esm({
19822
19822
  return true;
19823
19823
  };
19824
19824
  getRender = (id) => {
19825
- if (cache8.length === 0) throw new Error("\u6E32\u67D3\u5668\u5217\u8868\u4E3A\u7A7A: \u8BF7\u524D\u5F80\u63D2\u4EF6\u5E02\u573A\u5B89\u88C5\u3010@karinjs/puppeteer\u3011\u63D2\u4EF6");
19825
+ if (cache8.length === 0) throw new Error("\u6E32\u67D3\u5668\u5217\u8868\u4E3A\u7A7A: \u8BF7\u524D\u5F80\u63D2\u4EF6\u5E02\u573A\u5B89\u88C5\u3010@karinjs/plugin-puppeteer\u3011\u63D2\u4EF6");
19826
19826
  if (!id) {
19827
19827
  const app6 = cache8[Math.floor(Math.random() * cache8.length)];
19828
19828
  return app6;
@@ -28026,6 +28026,9 @@ var events = () => {
28026
28026
  listeners.on("file:change", (type, old, data) => {
28027
28027
  other.emit("file:change", type, old, data);
28028
28028
  });
28029
+ listeners.on("online", (event) => {
28030
+ other.emit("online", event);
28031
+ });
28029
28032
  };
28030
28033
  var other = new Other();
28031
28034
  events();
@@ -4,6 +4,7 @@ import 'chalk';
4
4
  import 'chokidar';
5
5
  import 'express';
6
6
  import 'lodash';
7
+ import 'log4js';
7
8
  import 'moment';
8
9
  import 'node-schedule';
9
10
  import 'redis';
@@ -0,0 +1,2 @@
1
+ export * from 'log4js';
2
+ export { default } from 'log4js';
@@ -0,0 +1,2 @@
1
+ export * from 'log4js';
2
+ export { default } from 'log4js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "1.13.0",
3
+ "version": "1.13.8",
4
4
  "description": "Lightweight, efficient, concise, and stable robot framework.",
5
5
  "keywords": [
6
6
  "node",
@@ -123,14 +123,19 @@
123
123
  "types": "./dist/module/sqlite3.d.ts",
124
124
  "development": "./module/sqlite3.ts",
125
125
  "default": "./dist/module/sqlite3.mjs"
126
+ },
127
+ "./log4js": {
128
+ "types": "./dist/module/log4js.d.ts",
129
+ "development": "./module/log4js.ts",
130
+ "default": "./dist/module/log4js.mjs"
126
131
  }
127
132
  },
128
133
  "main": "./dist/index.mjs",
129
134
  "types": "./dist/index.d.ts",
130
135
  "bin": {
131
136
  "k": "./dist/cli/index.mjs",
132
- "ki": "./dist/cli/index.mjs",
133
- "karin": "./dist/cli/index.mjs"
137
+ "karin": "./dist/cli/index.mjs",
138
+ "ki": "./dist/cli/index.mjs"
134
139
  },
135
140
  "files": [
136
141
  "dist",
@@ -138,52 +143,31 @@
138
143
  "CHANGELOG.md",
139
144
  "LICENSE"
140
145
  ],
141
- "scripts": {
142
- ".": "pnpm app",
143
- "app": "node dist/start/index.mjs",
144
- "build": "pnpm build:main && pnpm build:module",
145
- "build:dev": "pnpm build:main",
146
- "build:main": "tsc && tsup",
147
- "build:module": "tsc && tsup --config tsup.config.module.ts && pnpm build:locale",
148
- "build:types": "tsc && tsup --config tsup.config.types.ts",
149
- "build:locale": "node cli/locale.js",
150
- "app:bun": "bun dist/start/index.mjs",
151
- "cli": "node dist/cli/index.mjs",
152
- "cli:dev": "tsx exports/cli/index.ts",
153
- "dev": "cross-env EBV_FILE=\"development.env\" node --conditions=development --import tsx src/start/index.ts",
154
- "dev:bun": "cross-env EBV_FILE=\"development.env\" bun --conditions=development src/start/index.ts",
155
- "pr": "node cli/pr.js all",
156
- "pub": "npm publish --access public",
157
- "pub-beta": "npm publish --access public --tag beta",
158
- "sort": "sort-package-json && sort-json tsconfig.json",
159
- "sync": "curl -X PUT \"https://registry-direct.npmmirror.com/-/package/node-karin/syncs\"",
160
- "docs:build": "typedoc"
161
- },
162
146
  "dependencies": {
163
147
  "art-template": "npm:@karinjs/art-template@1.1.0",
164
- "axios": "npm:@karinjs/axios@1.2.0",
165
- "chalk": "5.4.1",
148
+ "axios": "npm:@karinjs/axios@1.13.2",
149
+ "chalk": "5.6.2",
166
150
  "chokidar": "4.0.3",
167
151
  "express": "npm:@karinjs/express@1.0.3",
168
152
  "lodash": "npm:@karinjs/lodash@1.1.1",
169
- "log4js": "npm:@karinjs/log4js@1.5.4",
153
+ "log4js": "npm:@karinjs/log4js@1.5.6",
170
154
  "moment": "npm:@karinjs/moment@1.1.5",
171
- "node-schedule": "npm:@karinjs/node-schedule@1.0.0",
155
+ "node-schedule": "npm:@karinjs/node-schedule@1.1.2",
172
156
  "redis": "npm:@karinjs/redis@1.1.3",
173
- "sqlite3": "npm:@karinjs/sqlite3-cjs@0.1.0",
157
+ "sqlite3": "npm:@karinjs/sqlite3@0.4.3",
174
158
  "ws": "npm:@karinjs/ws@1.0.4",
175
159
  "yaml": "2.7.0"
176
160
  },
177
161
  "devDependencies": {
178
162
  "@karinjs/node-pty": "^1.1.0",
179
- "@karinjs/onebot": "workspace:*",
180
163
  "@karinjs/plugin-webui-network-monitor": "^1.0.3",
181
164
  "@karinjs/plugins-list": "^1.7.0",
182
165
  "@types/express": "^5.0.3",
183
166
  "@types/lodash": "^4.17.16",
184
167
  "cross-env": "^7.0.3",
185
168
  "dotenv": "npm:@karinjs/dotenv@^1.1.2",
186
- "jsonwebtoken": "npm:@karinjs/jsonwebtoken@^1.1.1"
169
+ "jsonwebtoken": "npm:@karinjs/jsonwebtoken@^1.1.1",
170
+ "@karinjs/onebot": "0.0.1"
187
171
  },
188
172
  "engines": {
189
173
  "node": ">=18"
@@ -192,5 +176,26 @@
192
176
  "access": "public",
193
177
  "registry": "https://registry.npmjs.org"
194
178
  },
195
- "time": "2025-10-08T06:35:20.000Z"
179
+ "time": "2025-10-08T06:35:20.005Z",
180
+ "scripts": {
181
+ ".": "pnpm app",
182
+ "app": "node dist/start/index.mjs",
183
+ "app:bun": "bun dist/start/index.mjs",
184
+ "build": "pnpm build:main && pnpm build:module",
185
+ "build:dev": "pnpm build:main",
186
+ "build:locale": "node cli/locale.js",
187
+ "build:main": "tsc && tsup",
188
+ "build:module": "tsc && tsup --config tsup.config.module.ts && pnpm build:locale",
189
+ "build:types": "tsc && tsup --config tsup.config.types.ts",
190
+ "cli": "node dist/cli/index.mjs",
191
+ "cli:dev": "tsx exports/cli/index.ts",
192
+ "dev": "cross-env EBV_FILE=\"development.env\" node --conditions=development --import tsx src/start/index.ts",
193
+ "dev:bun": "cross-env EBV_FILE=\"development.env\" bun --conditions=development src/start/index.ts",
194
+ "docs:build": "typedoc",
195
+ "pr": "node cli/pr.js all",
196
+ "pub": "npm publish --access public",
197
+ "pub-beta": "npm publish --access public --tag beta",
198
+ "sort": "sort-package-json && sort-json tsconfig.json",
199
+ "sync": "curl -X PUT \"https://registry-direct.npmmirror.com/-/package/node-karin/syncs\""
200
+ }
196
201
  }