@iflyrpa/actions 4.1.2-beta.0 → 4.1.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/dist/actions/toutiaoPublish/index.d.ts +1 -1
- package/dist/bundle.js +13 -11
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +13 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -11
- package/dist/index.mjs.map +1 -1
- package/dist/utils/feishuAlarm.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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]="
|
|
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]="7659d501-f696-53be-95df-ed42e1f1db66")}catch(e){}}();
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
4
|
"./src/utils/XhsXsCommonEnc.js": function(module) {
|
|
5
5
|
var encrypt_lookup = [
|
|
@@ -4403,7 +4403,9 @@ var __webpack_exports__ = {};
|
|
|
4403
4403
|
});
|
|
4404
4404
|
const package_json_namespaceObject = require("@iflyrpa/share/package.json");
|
|
4405
4405
|
var package_json_default = /*#__PURE__*/ __webpack_require__.n(package_json_namespaceObject);
|
|
4406
|
-
var package_namespaceObject =
|
|
4406
|
+
var package_namespaceObject = {
|
|
4407
|
+
i8: "4.1.2"
|
|
4408
|
+
};
|
|
4407
4409
|
const share_namespaceObject = require("@iflyrpa/share");
|
|
4408
4410
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
4409
4411
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -4450,6 +4452,7 @@ var __webpack_exports__ = {};
|
|
|
4450
4452
|
};
|
|
4451
4453
|
}
|
|
4452
4454
|
const RPA_ERROR_WEBHOOK_URL = "https://open.xfchat.iflytek.com/open-apis/bot/v2/hook/d202c0dc-5af5-40bc-83ed-abc677caa4a5";
|
|
4455
|
+
const AUTH_EXPIRED_MSG_PATTERN = /登录[^,。,.]{0,4}(过期|失效)|重新登录|未登录/;
|
|
4453
4456
|
const ALARM_THROTTLE_MS = 60000;
|
|
4454
4457
|
const lastSentAt = new Map();
|
|
4455
4458
|
const THROTTLE_MAP_MAX_KEYS = 500;
|
|
@@ -4471,6 +4474,12 @@ var __webpack_exports__ = {};
|
|
|
4471
4474
|
text: `平台:${report.platform || "未知平台"}`
|
|
4472
4475
|
}
|
|
4473
4476
|
],
|
|
4477
|
+
[
|
|
4478
|
+
{
|
|
4479
|
+
tag: "text",
|
|
4480
|
+
text: `版本:${package_namespaceObject.i8}`
|
|
4481
|
+
}
|
|
4482
|
+
],
|
|
4474
4483
|
[
|
|
4475
4484
|
{
|
|
4476
4485
|
tag: "text",
|
|
@@ -4535,6 +4544,7 @@ var __webpack_exports__ = {};
|
|
|
4535
4544
|
const reportFeishuAlarm = (report)=>{
|
|
4536
4545
|
try {
|
|
4537
4546
|
if ("alarm" !== report.level) return;
|
|
4547
|
+
if (report.msg && AUTH_EXPIRED_MSG_PATTERN.test(report.msg)) return;
|
|
4538
4548
|
const key = `${report.platform}|${report.source}|${report.stage}|${report.errorType}|${report.code ?? ""}`;
|
|
4539
4549
|
const now = Date.now();
|
|
4540
4550
|
const last = lastSentAt.get(key);
|
|
@@ -4902,14 +4912,6 @@ var __webpack_exports__ = {};
|
|
|
4902
4912
|
this.logger?.debug(`[告警跳过] 本机地址不上报: ${fullUrl}`);
|
|
4903
4913
|
return;
|
|
4904
4914
|
}
|
|
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
4915
|
const rawMsg = "string" == typeof error.message && error.message.trim() ? error.message : "";
|
|
4914
4916
|
const baseMsg = rawMsg || `请求失败(无错误文案,code=${error.code ?? "unknown"})`;
|
|
4915
4917
|
const retriedSuffix = attempts > 0 ? `(已重试${attempts}次仍失败)` : "";
|
|
@@ -27501,4 +27503,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
|
|
|
27501
27503
|
});
|
|
27502
27504
|
|
|
27503
27505
|
//# sourceMappingURL=index.js.map
|
|
27504
|
-
//# debugId=
|
|
27506
|
+
//# debugId=7659d501-f696-53be-95df-ed42e1f1db66
|