@iflyrpa/actions 4.1.0-beta.1 → 4.1.0-beta.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/bundle.js +23 -15
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +21 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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]="161e4c22-57ca-5b29-b12b-b647dd871406")}catch(e){}}();
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
4
|
"./src/utils/XhsXsCommonEnc.js": function(module) {
|
|
5
5
|
var encrypt_lookup = [
|
|
@@ -4403,7 +4403,7 @@ 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 = JSON.parse('{"i8":"4.1.0-beta.
|
|
4406
|
+
var package_namespaceObject = JSON.parse('{"i8":"4.1.0-beta.2"}');
|
|
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);
|
|
@@ -4721,7 +4721,14 @@ var __webpack_exports__ = {};
|
|
|
4721
4721
|
};
|
|
4722
4722
|
class Http {
|
|
4723
4723
|
static handleApiError(error) {
|
|
4724
|
-
if (error && "object" == typeof error && "code" in error && "message" in error)
|
|
4724
|
+
if (error && "object" == typeof error && "code" in error && "message" in error) {
|
|
4725
|
+
const resp = error;
|
|
4726
|
+
if ("string" != typeof resp.message || !resp.message.trim()) return {
|
|
4727
|
+
...resp,
|
|
4728
|
+
message: USER_MESSAGE.SYSTEM_ERROR
|
|
4729
|
+
};
|
|
4730
|
+
return resp;
|
|
4731
|
+
}
|
|
4725
4732
|
return {
|
|
4726
4733
|
code: 500,
|
|
4727
4734
|
message: USER_MESSAGE.SYSTEM_ERROR,
|
|
@@ -4871,17 +4878,20 @@ var __webpack_exports__ = {};
|
|
|
4871
4878
|
const status = error.extra?.alarmStatus;
|
|
4872
4879
|
const axiosCode = error.extra?.alarmErrorCode;
|
|
4873
4880
|
const method = (config.method || "get").toUpperCase();
|
|
4874
|
-
const
|
|
4881
|
+
const baseURL = config.baseURL || this.apiClient.defaults.baseURL || "";
|
|
4882
|
+
const fullUrl = config.url ? /^https?:\/\//.test(config.url) ? config.url : `${baseURL.replace(/\/$/, "")}${config.url}` : baseURL || "-";
|
|
4883
|
+
const rawMsg = "string" == typeof error.message && error.message.trim() ? error.message : "";
|
|
4884
|
+
const baseMsg = rawMsg || `请求失败(无错误文案,code=${error.code ?? "unknown"})`;
|
|
4875
4885
|
const retriedSuffix = attempts > 0 ? `(已重试${attempts}次仍失败)` : "";
|
|
4876
4886
|
reportFeishuAlarm({
|
|
4877
4887
|
level: status && ALARM_STATUS.has(status) ? "alarm" : "warning",
|
|
4878
|
-
platform:
|
|
4888
|
+
platform: "@iflyrpa/playwright",
|
|
4879
4889
|
source: "http",
|
|
4880
|
-
stage: `${method} ${
|
|
4890
|
+
stage: `${method} ${fullUrl}`,
|
|
4881
4891
|
errorType: status ? `HTTP_${status}` : axiosCode || "NETWORK_ERROR",
|
|
4882
4892
|
code: error.code,
|
|
4883
|
-
msg: `${
|
|
4884
|
-
url:
|
|
4893
|
+
msg: `${baseMsg}${retriedSuffix}`,
|
|
4894
|
+
url: "-" !== fullUrl ? fullUrl : void 0,
|
|
4885
4895
|
title: "RPA接口异常"
|
|
4886
4896
|
});
|
|
4887
4897
|
}
|
|
@@ -20827,8 +20837,8 @@ var __webpack_exports__ = {};
|
|
|
20827
20837
|
const resultCode = publishResult.data?.baseResp?.errcode ?? publishResult.errCode;
|
|
20828
20838
|
const resultMsg = publishResult.data?.baseResp?.errmsg ?? (0 === resultCode ? "发布成功" : `发布失败(errCode=${resultCode})`);
|
|
20829
20839
|
if (0 === resultCode) {
|
|
20830
|
-
const publishId = extractEncFileKey(
|
|
20831
|
-
if (!publishId) task.logger.error(`[shipinhaoPublishVideo] 封面 DownloadURL 中未解析到 encfilekey,关联 id 为空: ${
|
|
20840
|
+
const publishId = extractEncFileKey(verticalCoverUpload.downloadUrl);
|
|
20841
|
+
if (!publishId) task.logger.error(`[shipinhaoPublishVideo] 封面 DownloadURL 中未解析到 encfilekey,关联 id 为空: ${verticalCoverUpload.downloadUrl}`);
|
|
20832
20842
|
await updateTaskState?.({
|
|
20833
20843
|
state: share_namespaceObject.TaskState.SUCCESS,
|
|
20834
20844
|
result: {
|
|
@@ -27451,4 +27461,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
|
|
|
27451
27461
|
});
|
|
27452
27462
|
|
|
27453
27463
|
//# sourceMappingURL=index.js.map
|
|
27454
|
-
//# debugId=
|
|
27464
|
+
//# debugId=161e4c22-57ca-5b29-b12b-b647dd871406
|