@iflyrpa/actions 4.0.6 → 4.0.7
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 +30 -6
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +30 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
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]="65a9d1c4-06b7-5afb-8cd9-90bcb403fb1a")}catch(e){}}();
|
|
1
3
|
import * as __WEBPACK_EXTERNAL_MODULE_crypto__ from "crypto";
|
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
|
|
3
5
|
import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_package_json_58ae5f06__ from "@iflyrpa/share/package.json";
|
|
@@ -4351,7 +4353,7 @@ function __webpack_require__(moduleId) {
|
|
|
4351
4353
|
};
|
|
4352
4354
|
})();
|
|
4353
4355
|
var package_namespaceObject = {
|
|
4354
|
-
i8: "4.0.
|
|
4356
|
+
i8: "4.0.7"
|
|
4355
4357
|
};
|
|
4356
4358
|
const PROXY_CREDENTIALS = [
|
|
4357
4359
|
{
|
|
@@ -10955,9 +10957,14 @@ const XhsSessionCheck = async (_task, params)=>{
|
|
|
10955
10957
|
});
|
|
10956
10958
|
return e.data;
|
|
10957
10959
|
});
|
|
10960
|
+
const webSessionPath = "/api/sns/web/unread_count";
|
|
10961
|
+
const webSessionData = {};
|
|
10962
|
+
const webSessionXsHeader = sessionCheck_xsEncrypt.signHeadersPost(webSessionPath, recordCookie, "xhs-pc-web", webSessionData);
|
|
10958
10963
|
const _web_session = http.api({
|
|
10959
|
-
method: "
|
|
10960
|
-
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count"
|
|
10964
|
+
method: "GET",
|
|
10965
|
+
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count",
|
|
10966
|
+
data: webSessionData,
|
|
10967
|
+
headers: webSessionXsHeader
|
|
10961
10968
|
}, {
|
|
10962
10969
|
retries: 3,
|
|
10963
10970
|
retryDelay: 20,
|
|
@@ -15211,6 +15218,7 @@ const getXhsHotTopic = async (_task, params)=>{
|
|
|
15211
15218
|
const data = isSuccess ? res.data.activity_list : [];
|
|
15212
15219
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.response)(isSuccess ? 0 : 414, message, data);
|
|
15213
15220
|
};
|
|
15221
|
+
const getXhsWebUnreadCount_xsEncrypt = new Xhshow();
|
|
15214
15222
|
const UnreadCountSchema = schemas_object({
|
|
15215
15223
|
connections: schemas_number().nullable(),
|
|
15216
15224
|
mentions: schemas_number().nullable(),
|
|
@@ -15245,9 +15253,24 @@ const getXhsUnreadCount = async (_task, params)=>{
|
|
|
15245
15253
|
unread_count: null,
|
|
15246
15254
|
likes: null
|
|
15247
15255
|
};
|
|
15256
|
+
const a1Cookie = params.cookies.find((it)=>"a1" === it.name)?.value;
|
|
15257
|
+
if (!a1Cookie) return {
|
|
15258
|
+
code: 414,
|
|
15259
|
+
message: "账号数据异常,请重新绑定账号后重试。",
|
|
15260
|
+
data: unreadCount
|
|
15261
|
+
};
|
|
15262
|
+
const apiPath = "/api/sns/web/unread_count";
|
|
15263
|
+
const recordCookie = params.cookies.reduce((acc, cookie)=>{
|
|
15264
|
+
if (cookie.name && cookie.value) acc[cookie.name] = cookie.value;
|
|
15265
|
+
return acc;
|
|
15266
|
+
}, {});
|
|
15267
|
+
const requestData = {};
|
|
15268
|
+
const xsHeader = getXhsWebUnreadCount_xsEncrypt.signHeadersPost(apiPath, recordCookie, "xhs-pc-web", requestData);
|
|
15248
15269
|
const res = await http.api({
|
|
15249
|
-
method: "
|
|
15250
|
-
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count"
|
|
15270
|
+
method: "GET",
|
|
15271
|
+
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count",
|
|
15272
|
+
data: requestData,
|
|
15273
|
+
headers: xsHeader
|
|
15251
15274
|
}, {
|
|
15252
15275
|
retries: 3,
|
|
15253
15276
|
retryDelay: 20,
|
|
@@ -25588,4 +25611,5 @@ class Action {
|
|
|
25588
25611
|
var __webpack_exports__version = package_namespaceObject.i8;
|
|
25589
25612
|
export { Action, ActionCommonParamsSchema, BaijiahaoPublishParamsSchema, BetaFlag, CollectionDetailSchema, ConfigDataSchema, DouyinCheckVerifyQrCodeParamsSchema, DouyinCreateCommentReplyParamsSchema, DouyinGetCollectionParamsSchema, DouyinGetCommentListParamsSchema, DouyinGetCommentReplyListParamsSchema, DouyinGetHotParamsSchema, DouyinGetLocationParamsSchema, DouyinGetMusicByCategoryParamsSchema, DouyinGetMusicCategoryParamsSchema, DouyinGetMusicParamsSchema, DouyinGetTopicsParamsSchema, DouyinGetVerifyQrCodeParamsSchema, DouyinGetWorkListParamsSchema, DouyinPublishParamsSchema, FetchArticlesDataSchema, FetchArticlesParamsSchema, Http, ProxyAgent, SearchAccountInfoParamsSchema, SessionCheckResultSchema, ShipinhaoCheckLinkValidateParamsSchema, ShipinhaoGetLocationParamsSchema, ShipinhaoGetMsgParamsSchema, ShipinhaoPublishParamsSchema, ShipinhaoSendMsgParamsSchema, ToutiaoPublishParamsSchema, UnreadCountSchema, WeixinPublishParamsSchema, WxBjhSessionParamsSchema, XhsWebSearchParamsSchema, XiaohongshuPublishParamsSchema, bjhConfigDataSchema, douyinConfigDataSchema, getFileState, reportLogger, rpaAction_Server_Mock, shipinhaoConfigDataSchema, ttConfigDataSchema, wxConfigDataSchema, xhsConfigDataSchema, __webpack_exports__version as version };
|
|
25590
25613
|
|
|
25591
|
-
//# sourceMappingURL=index.mjs.map
|
|
25614
|
+
//# sourceMappingURL=index.mjs.map
|
|
25615
|
+
//# debugId=65a9d1c4-06b7-5afb-8cd9-90bcb403fb1a
|