node-karin 1.13.0 → 1.13.7
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 +50 -0
- package/LICENSE +21 -0
- package/dist/cli/index.mjs +0 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +5 -2
- package/package.json +30 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.13.7](https://github.com/KarinJS/Karin/compare/core-v1.13.6...core-v1.13.7) (2025-12-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* ci ([#593](https://github.com/KarinJS/Karin/issues/593)) ([9284a0b](https://github.com/KarinJS/Karin/commit/9284a0b7c6529711656ba21f5d2c68f3705cbdea))
|
|
9
|
+
|
|
10
|
+
## [1.13.6](https://github.com/KarinJS/Karin/compare/core-v1.13.5...core-v1.13.6) (2025-12-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🐛 Bug Fixes
|
|
14
|
+
|
|
15
|
+
* ci ([#591](https://github.com/KarinJS/Karin/issues/591)) ([1c43f3d](https://github.com/KarinJS/Karin/commit/1c43f3d9deec7f3276d0a2bf9bc319ed2ee5abab))
|
|
16
|
+
|
|
17
|
+
## [1.13.5](https://github.com/KarinJS/Karin/compare/core-v1.13.4...core-v1.13.5) (2025-12-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🐛 Bug Fixes
|
|
21
|
+
|
|
22
|
+
* build & 暴露 `ONLINE` 事件 ([#588](https://github.com/KarinJS/Karin/issues/588)) ([788f17a](https://github.com/KarinJS/Karin/commit/788f17a33771e86312fd2cc94a453ac1081ec4a7))
|
|
23
|
+
|
|
24
|
+
## [1.13.4](https://github.com/KarinJS/Karin/compare/core-v1.13.3...core-v1.13.4) (2025-12-12)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### 🐛 Bug Fixes
|
|
28
|
+
|
|
29
|
+
* ci ([#586](https://github.com/KarinJS/Karin/issues/586)) ([1a5f998](https://github.com/KarinJS/Karin/commit/1a5f9983f7e74961d7e25eb78086a1c9e1bd9d38))
|
|
30
|
+
|
|
31
|
+
## [1.13.3](https://github.com/KarinJS/Karin/compare/core-v1.13.2...core-v1.13.3) (2025-12-12)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### 🐛 Bug Fixes
|
|
35
|
+
|
|
36
|
+
* 优化ci ([#584](https://github.com/KarinJS/Karin/issues/584)) ([06ee51d](https://github.com/KarinJS/Karin/commit/06ee51ddb07139d1fd7d9ff6d51cfdf43db10274))
|
|
37
|
+
|
|
38
|
+
## [1.13.2](https://github.com/KarinJS/Karin/compare/core-v1.13.1...core-v1.13.2) (2025-12-12)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### 🐛 Bug Fixes
|
|
42
|
+
|
|
43
|
+
* 使用可信任发布 ([#582](https://github.com/KarinJS/Karin/issues/582)) ([4a3b48d](https://github.com/KarinJS/Karin/commit/4a3b48d88d4955f5e4b312c92245bfe49c4bf1c9))
|
|
44
|
+
|
|
45
|
+
## [1.13.1](https://github.com/KarinJS/Karin/compare/core-v1.13.0...core-v1.13.1) (2025-12-12)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### 🐛 Bug Fixes
|
|
49
|
+
|
|
50
|
+
* 修改插件名为plugin-puppeteer ([#578](https://github.com/KarinJS/Karin/issues/578)) ([5f48dba](https://github.com/KarinJS/Karin/commit/5f48dbae0c2349c143fe6c232fcffc5a8bab4d30))
|
|
51
|
+
* 更新依赖 兼容node18版本 ([#580](https://github.com/KarinJS/Karin/issues/580)) ([ca80263](https://github.com/KarinJS/Karin/commit/ca802635350d205d08c377eb00ebf9054921a38d))
|
|
52
|
+
|
|
3
53
|
## [1.13.0](https://github.com/KarinJS/Karin/compare/core-v1.12.2...core-v1.13.0) (2025-11-22)
|
|
4
54
|
|
|
5
55
|
|
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.
|
package/dist/cli/index.mjs
CHANGED
|
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
|
|
7
|
-
import
|
|
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?:
|
|
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:
|
|
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();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-karin",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.7",
|
|
4
4
|
"description": "Lightweight, efficient, concise, and stable robot framework.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -138,52 +138,31 @@
|
|
|
138
138
|
"CHANGELOG.md",
|
|
139
139
|
"LICENSE"
|
|
140
140
|
],
|
|
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
141
|
"dependencies": {
|
|
163
142
|
"art-template": "npm:@karinjs/art-template@1.1.0",
|
|
164
|
-
"axios": "npm:@karinjs/axios@1.2
|
|
165
|
-
"chalk": "5.
|
|
143
|
+
"axios": "npm:@karinjs/axios@1.13.2",
|
|
144
|
+
"chalk": "5.6.2",
|
|
166
145
|
"chokidar": "4.0.3",
|
|
167
146
|
"express": "npm:@karinjs/express@1.0.3",
|
|
168
147
|
"lodash": "npm:@karinjs/lodash@1.1.1",
|
|
169
|
-
"log4js": "npm:@karinjs/log4js@1.5.
|
|
148
|
+
"log4js": "npm:@karinjs/log4js@1.5.6",
|
|
170
149
|
"moment": "npm:@karinjs/moment@1.1.5",
|
|
171
|
-
"node-schedule": "npm:@karinjs/node-schedule@1.
|
|
150
|
+
"node-schedule": "npm:@karinjs/node-schedule@1.1.2",
|
|
172
151
|
"redis": "npm:@karinjs/redis@1.1.3",
|
|
173
|
-
"sqlite3": "npm:@karinjs/sqlite3
|
|
152
|
+
"sqlite3": "npm:@karinjs/sqlite3@0.4.3",
|
|
174
153
|
"ws": "npm:@karinjs/ws@1.0.4",
|
|
175
154
|
"yaml": "2.7.0"
|
|
176
155
|
},
|
|
177
156
|
"devDependencies": {
|
|
178
157
|
"@karinjs/node-pty": "^1.1.0",
|
|
179
|
-
"@karinjs/onebot": "workspace:*",
|
|
180
158
|
"@karinjs/plugin-webui-network-monitor": "^1.0.3",
|
|
181
159
|
"@karinjs/plugins-list": "^1.7.0",
|
|
182
160
|
"@types/express": "^5.0.3",
|
|
183
161
|
"@types/lodash": "^4.17.16",
|
|
184
162
|
"cross-env": "^7.0.3",
|
|
185
163
|
"dotenv": "npm:@karinjs/dotenv@^1.1.2",
|
|
186
|
-
"jsonwebtoken": "npm:@karinjs/jsonwebtoken@^1.1.1"
|
|
164
|
+
"jsonwebtoken": "npm:@karinjs/jsonwebtoken@^1.1.1",
|
|
165
|
+
"@karinjs/onebot": "0.0.1"
|
|
187
166
|
},
|
|
188
167
|
"engines": {
|
|
189
168
|
"node": ">=18"
|
|
@@ -192,5 +171,26 @@
|
|
|
192
171
|
"access": "public",
|
|
193
172
|
"registry": "https://registry.npmjs.org"
|
|
194
173
|
},
|
|
195
|
-
"time": "2025-10-08T06:35:20.
|
|
174
|
+
"time": "2025-10-08T06:35:20.005Z",
|
|
175
|
+
"scripts": {
|
|
176
|
+
".": "pnpm app",
|
|
177
|
+
"app": "node dist/start/index.mjs",
|
|
178
|
+
"build": "pnpm build:main && pnpm build:module",
|
|
179
|
+
"build:dev": "pnpm build:main",
|
|
180
|
+
"build:main": "tsc && tsup",
|
|
181
|
+
"build:module": "tsc && tsup --config tsup.config.module.ts && pnpm build:locale",
|
|
182
|
+
"build:types": "tsc && tsup --config tsup.config.types.ts",
|
|
183
|
+
"build:locale": "node cli/locale.js",
|
|
184
|
+
"app:bun": "bun dist/start/index.mjs",
|
|
185
|
+
"cli": "node dist/cli/index.mjs",
|
|
186
|
+
"cli:dev": "tsx exports/cli/index.ts",
|
|
187
|
+
"dev": "cross-env EBV_FILE=\"development.env\" node --conditions=development --import tsx src/start/index.ts",
|
|
188
|
+
"dev:bun": "cross-env EBV_FILE=\"development.env\" bun --conditions=development src/start/index.ts",
|
|
189
|
+
"pr": "node cli/pr.js all",
|
|
190
|
+
"pub": "npm publish --access public",
|
|
191
|
+
"pub-beta": "npm publish --access public --tag beta",
|
|
192
|
+
"sort": "sort-package-json && sort-json tsconfig.json",
|
|
193
|
+
"sync": "curl -X PUT \"https://registry-direct.npmmirror.com/-/package/node-karin/syncs\"",
|
|
194
|
+
"docs:build": "typedoc"
|
|
195
|
+
}
|
|
196
196
|
}
|