@iflyrpa/actions 4.1.2 → 4.1.4
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/shipinhaoPublish/index.d.ts +3 -0
- package/dist/bundle.js +14 -10
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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]="7659d501-f696-53be-95df-ed42e1f1db66")}catch(e){}}();
|
|
3
1
|
var __webpack_modules__ = {
|
|
4
2
|
"./src/utils/XhsXsCommonEnc.js": function(module) {
|
|
5
3
|
var encrypt_lookup = [
|
|
@@ -4404,7 +4402,7 @@ var __webpack_exports__ = {};
|
|
|
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
4404
|
var package_namespaceObject = {
|
|
4407
|
-
i8: "4.1.
|
|
4405
|
+
i8: "4.1.4"
|
|
4408
4406
|
};
|
|
4409
4407
|
const share_namespaceObject = require("@iflyrpa/share");
|
|
4410
4408
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
@@ -4840,7 +4838,7 @@ var __webpack_exports__ = {};
|
|
|
4840
4838
|
_message = "连接被重置,请检查网络或稍后重试!";
|
|
4841
4839
|
break;
|
|
4842
4840
|
case "ENOTFOUND":
|
|
4843
|
-
_message = "
|
|
4841
|
+
_message = "域名解析失败,请检查网络或稍后重试!";
|
|
4844
4842
|
break;
|
|
4845
4843
|
case "ETIMEDOUT":
|
|
4846
4844
|
_message = "网络请求超时,请检查网络连接!";
|
|
@@ -18721,6 +18719,9 @@ var __webpack_exports__ = {};
|
|
|
18721
18719
|
function mock_getTimeStamp(length) {
|
|
18722
18720
|
return Date.now().toString().substring(0, length);
|
|
18723
18721
|
}
|
|
18722
|
+
function normalizePublishContent(content) {
|
|
18723
|
+
return content.replace(/\r\n/g, "\n").replace(/\n{4,}/g, "\n\n");
|
|
18724
|
+
}
|
|
18724
18725
|
async function mock_getUserInfo(cookies, http) {
|
|
18725
18726
|
const requestBody = {
|
|
18726
18727
|
timestamp: mock_getTimeStamp(13),
|
|
@@ -18860,6 +18861,7 @@ var __webpack_exports__ = {};
|
|
|
18860
18861
|
async function publishDynamic(cookies, uin, fingerPrintDeviceId, aId, proxyHttp, confParams, params) {
|
|
18861
18862
|
const topicList = params.topic || [];
|
|
18862
18863
|
const location = params.address ? buildLocation(params.address) : {};
|
|
18864
|
+
const normalizedContent = normalizePublishContent(params.content);
|
|
18863
18865
|
const publishData = {
|
|
18864
18866
|
clientid: generateUUID(),
|
|
18865
18867
|
timestamp: mock_getTimeStamp(13),
|
|
@@ -18882,7 +18884,7 @@ var __webpack_exports__ = {};
|
|
|
18882
18884
|
handleFlag: 2,
|
|
18883
18885
|
topics: topicList,
|
|
18884
18886
|
objectDesc: {
|
|
18885
|
-
description: buildDescription(
|
|
18887
|
+
description: buildDescription(normalizedContent, topicList),
|
|
18886
18888
|
event: {},
|
|
18887
18889
|
extReading: {
|
|
18888
18890
|
...params.link,
|
|
@@ -18898,7 +18900,7 @@ var __webpack_exports__ = {};
|
|
|
18898
18900
|
shortTitle: "",
|
|
18899
18901
|
finderNewlifeDesc: {
|
|
18900
18902
|
richTextTitle: params.title,
|
|
18901
|
-
richTextJson: buildRichTextJson(params.title,
|
|
18903
|
+
richTextJson: buildRichTextJson(params.title, normalizedContent),
|
|
18902
18904
|
fromRichPublisher: 1
|
|
18903
18905
|
}
|
|
18904
18906
|
}
|
|
@@ -18906,7 +18908,7 @@ var __webpack_exports__ = {};
|
|
|
18906
18908
|
if (params.scheduledPublish) publishData.effectiveTime = params.scheduledPublish;
|
|
18907
18909
|
const objectDesc = publishData.objectDesc;
|
|
18908
18910
|
if (topicList.length) objectDesc.topic = {
|
|
18909
|
-
finderTopicInfo: buildTopicXml(
|
|
18911
|
+
finderTopicInfo: buildTopicXml(normalizedContent, topicList)
|
|
18910
18912
|
};
|
|
18911
18913
|
if (params.collection) objectDesc.topic = {
|
|
18912
18914
|
..."object" == typeof objectDesc.topic && null !== objectDesc.topic ? objectDesc.topic : {},
|
|
@@ -19809,7 +19811,10 @@ var __webpack_exports__ = {};
|
|
|
19809
19811
|
publishType: schemas_enum([
|
|
19810
19812
|
"1",
|
|
19811
19813
|
"2"
|
|
19812
|
-
]).optional()
|
|
19814
|
+
]).optional(),
|
|
19815
|
+
tagInfo: looseObject({
|
|
19816
|
+
tagType: schemas_number().int()
|
|
19817
|
+
}).optional()
|
|
19813
19818
|
});
|
|
19814
19819
|
const shipinhaoPublish = async (task, params)=>{
|
|
19815
19820
|
task.logger.info(`shipinhaoPublish actionType: ${params.actionType}`);
|
|
@@ -27502,5 +27507,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
|
|
|
27502
27507
|
value: true
|
|
27503
27508
|
});
|
|
27504
27509
|
|
|
27505
|
-
//# sourceMappingURL=index.js.map
|
|
27506
|
-
//# debugId=7659d501-f696-53be-95df-ed42e1f1db66
|
|
27510
|
+
//# sourceMappingURL=index.js.map
|