@iflyrpa/actions 4.1.2-beta.0 → 4.1.3

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/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
-
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c4545c22-6538-544d-90c4-a18133d6c51a")}catch(e){}}();
3
1
  var __webpack_modules__ = {
4
2
  "./src/utils/XhsXsCommonEnc.js": function(module) {
5
3
  var encrypt_lookup = [
@@ -4403,7 +4401,9 @@ var __webpack_exports__ = {};
4403
4401
  });
4404
4402
  const package_json_namespaceObject = require("@iflyrpa/share/package.json");
4405
4403
  var package_json_default = /*#__PURE__*/ __webpack_require__.n(package_json_namespaceObject);
4406
- var package_namespaceObject = JSON.parse('{"i8":"4.1.2-beta.0"}');
4404
+ var package_namespaceObject = {
4405
+ i8: "4.1.3"
4406
+ };
4407
4407
  const share_namespaceObject = require("@iflyrpa/share");
4408
4408
  const external_node_fs_namespaceObject = require("node:fs");
4409
4409
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
@@ -4450,6 +4450,7 @@ var __webpack_exports__ = {};
4450
4450
  };
4451
4451
  }
4452
4452
  const RPA_ERROR_WEBHOOK_URL = "https://open.xfchat.iflytek.com/open-apis/bot/v2/hook/d202c0dc-5af5-40bc-83ed-abc677caa4a5";
4453
+ const AUTH_EXPIRED_MSG_PATTERN = /登录[^,。,.]{0,4}(过期|失效)|重新登录|未登录/;
4453
4454
  const ALARM_THROTTLE_MS = 60000;
4454
4455
  const lastSentAt = new Map();
4455
4456
  const THROTTLE_MAP_MAX_KEYS = 500;
@@ -4471,6 +4472,12 @@ var __webpack_exports__ = {};
4471
4472
  text: `平台:${report.platform || "未知平台"}`
4472
4473
  }
4473
4474
  ],
4475
+ [
4476
+ {
4477
+ tag: "text",
4478
+ text: `版本:${package_namespaceObject.i8}`
4479
+ }
4480
+ ],
4474
4481
  [
4475
4482
  {
4476
4483
  tag: "text",
@@ -4535,6 +4542,7 @@ var __webpack_exports__ = {};
4535
4542
  const reportFeishuAlarm = (report)=>{
4536
4543
  try {
4537
4544
  if ("alarm" !== report.level) return;
4545
+ if (report.msg && AUTH_EXPIRED_MSG_PATTERN.test(report.msg)) return;
4538
4546
  const key = `${report.platform}|${report.source}|${report.stage}|${report.errorType}|${report.code ?? ""}`;
4539
4547
  const now = Date.now();
4540
4548
  const last = lastSentAt.get(key);
@@ -4830,7 +4838,7 @@ var __webpack_exports__ = {};
4830
4838
  _message = "连接被重置,请检查网络或稍后重试!";
4831
4839
  break;
4832
4840
  case "ENOTFOUND":
4833
- _message = "域名解析失败,请检查 URL 是否正确!";
4841
+ _message = "域名解析失败,请检查网络或稍后重试!";
4834
4842
  break;
4835
4843
  case "ETIMEDOUT":
4836
4844
  _message = "网络请求超时,请检查网络连接!";
@@ -4902,14 +4910,6 @@ var __webpack_exports__ = {};
4902
4910
  this.logger?.debug(`[告警跳过] 本机地址不上报: ${fullUrl}`);
4903
4911
  return;
4904
4912
  }
4905
- if (attempts < 3) {
4906
- const isAuthExpired = 401 === status;
4907
- const isTimeoutCanceled = "ERR_CANCELED" === axiosCode;
4908
- if (isAuthExpired || isTimeoutCanceled) {
4909
- this.logger?.debug(`[告警跳过] 低重试次数(${attempts})的常见错误不上报: status=${status}, code=${error.code}, axiosCode=${axiosCode}, url=${fullUrl}`);
4910
- return;
4911
- }
4912
- }
4913
4913
  const rawMsg = "string" == typeof error.message && error.message.trim() ? error.message : "";
4914
4914
  const baseMsg = rawMsg || `请求失败(无错误文案,code=${error.code ?? "unknown"})`;
4915
4915
  const retriedSuffix = attempts > 0 ? `(已重试${attempts}次仍失败)` : "";
@@ -27500,5 +27500,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
27500
27500
  value: true
27501
27501
  });
27502
27502
 
27503
- //# sourceMappingURL=index.js.map
27504
- //# debugId=c4545c22-6538-544d-90c4-a18133d6c51a
27503
+ //# sourceMappingURL=index.js.map