node-karin 1.14.1 → 1.14.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.14.2](https://github.com/KarinJS/Karin/compare/core-v1.14.1...core-v1.14.2) (2026-01-30)
4
+
5
+
6
+ ### 🎡 Continuous Integration
7
+
8
+ * **workflow:** 移除docker构建 ([#606](https://github.com/KarinJS/Karin/issues/606)) ([302190a](https://github.com/KarinJS/Karin/commit/302190a5bd499b747c3c82ce443979c92825f05c))
9
+
3
10
  ## [1.14.1](https://github.com/KarinJS/Karin/compare/core-v1.14.0...core-v1.14.1) (2025-12-25)
4
11
 
5
12
 
package/README.md CHANGED
@@ -38,9 +38,9 @@
38
38
 
39
39
  我们提供多个文档站点供您访问,解决可能出现的访问困难:
40
40
 
41
- - **主文档站**: [https://karinjs.com](https://karinjs.com) (基于 GitHub Pages)
41
+ - **主文档站**: [https://karinjs.com](https://karinjs.com)
42
42
  - **镜像站点**:
43
- - [Vercel 镜像(瑜笙)](https://github.com/yusheng929): [https://docs.karinjs.com](https://docs.karinjs.com)
43
+ - [自建镜像(雾里)](https://github.com/shiwuliya): [https://karin.wuliya.cn](https://karin.wuliya.cn)
44
44
  - [Vercel 镜像(憨憨)](https://github.com/hanhan258): [https://karin.hanhanz.top](https://karin.hanhanz.top)
45
45
  - Deno 镜像: [https://karin.deno.dev](https://karin.deno.dev)
46
46
  - [自建CDN镜像(ikechan8370)](https://github.com/ikechan8370): [https://karin.chaite.cloud](https://karin.chaite.cloud)
package/dist/index.mjs CHANGED
@@ -5394,21 +5394,22 @@ var init_dist2 = __esm({
5394
5394
  */
5395
5395
  async sendApi(action, params, timeout2 = this._options.timeout) {
5396
5396
  const echo = (++this.echo).toString();
5397
- const request22 = JSON.stringify({ echo, action, params });
5397
+ const realAction = this._formatAction(action);
5398
+ const request22 = JSON.stringify({ echo, action: realAction, params });
5398
5399
  return new Promise((resolve, reject) => {
5399
5400
  const timeoutId = setTimeout(() => {
5400
- reject(this._formatApiError(action, request22, "\u8BF7\u6C42\u8D85\u65F6"));
5401
+ reject(this._formatApiError(realAction, request22, "\u8BF7\u6C42\u8D85\u65F6"));
5401
5402
  }, timeout2 * 1e3);
5402
- this.emit("sendApi", { echo, action, params, request: request22 });
5403
+ this.emit("sendApi", { echo, action: realAction, params, request: request22 });
5403
5404
  this._socket.send(request22);
5404
5405
  this.once(`echo:${echo}`, (data) => {
5405
5406
  clearTimeout(timeoutId);
5406
5407
  if (data.status === "ok") {
5407
5408
  resolve(data.data);
5408
5409
  } else {
5409
- reject(this._formatApiError(action, request22, data));
5410
+ reject(this._formatApiError(realAction, request22, data));
5410
5411
  }
5411
- this.emit("response", { echo, action, params, request: request22, data });
5412
+ this.emit("response", { echo, action: realAction, params, request: request22, data });
5412
5413
  });
5413
5414
  });
5414
5415
  }
@@ -5863,14 +5864,15 @@ var init_dist2 = __esm({
5863
5864
  * @returns 返回API响应 注意: 返回的是response.data,而不是response
5864
5865
  */
5865
5866
  async sendApi(action, params, timeout2 = this._options.timeout) {
5866
- const host2 = `${this._options.httpHost}/${action}`;
5867
+ const realAction = this._formatAction(action);
5868
+ const host2 = `${this._options.httpHost}/${realAction}`;
5867
5869
  const request22 = JSON.stringify(params);
5868
- this.emit("sendApi", { action, params, request: request22, echo: "" });
5870
+ this.emit("sendApi", { action: realAction, params, request: request22, echo: "" });
5869
5871
  const data = await http_default.post(host2, request22, { timeout: timeout2, headers: this._options.headers });
5870
5872
  if (data.data.status === "ok") {
5871
5873
  return data.data.data;
5872
5874
  } else {
5873
- throw this._formatApiError(action, request22, data.data);
5875
+ throw this._formatApiError(realAction, request22, data.data);
5874
5876
  }
5875
5877
  }
5876
5878
  /**
@@ -23987,7 +23989,7 @@ var init_config4 = __esm({
23987
23989
  for (const item of list2) {
23988
23990
  if (item === npmName) return "npm";
23989
23991
  if (item === gitName) return "git";
23990
- if (item === rootName) return "npm";
23992
+ if (item === rootName) return "git";
23991
23993
  }
23992
23994
  return null;
23993
23995
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "Lightweight, efficient, concise, and stable robot framework.",
5
5
  "keywords": [
6
6
  "node",
@@ -159,7 +159,7 @@
159
159
  "yaml": "2.7.0"
160
160
  },
161
161
  "devDependencies": {
162
- "@karinjs/node-pty": "^1.1.0",
162
+ "@karinjs/node-pty": "^1.1.3",
163
163
  "@karinjs/plugin-webui-network-monitor": "^1.0.3",
164
164
  "@karinjs/plugins-list": "^1.7.0",
165
165
  "@types/express": "^5.0.3",