@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.js
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]="23a118d5-7504-553a-869b-7251d1fda8eb")}catch(e){}}();
|
|
1
3
|
var __webpack_modules__ = {
|
|
2
4
|
"./src/utils/XhsXsCommonEnc.js": function(module) {
|
|
3
5
|
var encrypt_lookup = [
|
|
@@ -4401,7 +4403,7 @@ var __webpack_exports__ = {};
|
|
|
4401
4403
|
const package_json_namespaceObject = require("@iflyrpa/share/package.json");
|
|
4402
4404
|
var package_json_default = /*#__PURE__*/ __webpack_require__.n(package_json_namespaceObject);
|
|
4403
4405
|
var package_namespaceObject = {
|
|
4404
|
-
i8: "4.0.
|
|
4406
|
+
i8: "4.0.7"
|
|
4405
4407
|
};
|
|
4406
4408
|
const share_namespaceObject = require("@iflyrpa/share");
|
|
4407
4409
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
@@ -11027,9 +11029,14 @@ var __webpack_exports__ = {};
|
|
|
11027
11029
|
});
|
|
11028
11030
|
return e.data;
|
|
11029
11031
|
});
|
|
11032
|
+
const webSessionPath = "/api/sns/web/unread_count";
|
|
11033
|
+
const webSessionData = {};
|
|
11034
|
+
const webSessionXsHeader = sessionCheck_xsEncrypt.signHeadersPost(webSessionPath, recordCookie, "xhs-pc-web", webSessionData);
|
|
11030
11035
|
const _web_session = http.api({
|
|
11031
|
-
method: "
|
|
11032
|
-
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count"
|
|
11036
|
+
method: "GET",
|
|
11037
|
+
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count",
|
|
11038
|
+
data: webSessionData,
|
|
11039
|
+
headers: webSessionXsHeader
|
|
11033
11040
|
}, {
|
|
11034
11041
|
retries: 3,
|
|
11035
11042
|
retryDelay: 20,
|
|
@@ -15288,6 +15295,7 @@ var __webpack_exports__ = {};
|
|
|
15288
15295
|
const data = isSuccess ? res.data.activity_list : [];
|
|
15289
15296
|
return (0, share_namespaceObject.response)(isSuccess ? 0 : 414, message, data);
|
|
15290
15297
|
};
|
|
15298
|
+
const getXhsWebUnreadCount_xsEncrypt = new Xhshow();
|
|
15291
15299
|
const UnreadCountSchema = schemas_object({
|
|
15292
15300
|
connections: schemas_number().nullable(),
|
|
15293
15301
|
mentions: schemas_number().nullable(),
|
|
@@ -15322,9 +15330,24 @@ var __webpack_exports__ = {};
|
|
|
15322
15330
|
unread_count: null,
|
|
15323
15331
|
likes: null
|
|
15324
15332
|
};
|
|
15333
|
+
const a1Cookie = params.cookies.find((it)=>"a1" === it.name)?.value;
|
|
15334
|
+
if (!a1Cookie) return {
|
|
15335
|
+
code: 414,
|
|
15336
|
+
message: "账号数据异常,请重新绑定账号后重试。",
|
|
15337
|
+
data: unreadCount
|
|
15338
|
+
};
|
|
15339
|
+
const apiPath = "/api/sns/web/unread_count";
|
|
15340
|
+
const recordCookie = params.cookies.reduce((acc, cookie)=>{
|
|
15341
|
+
if (cookie.name && cookie.value) acc[cookie.name] = cookie.value;
|
|
15342
|
+
return acc;
|
|
15343
|
+
}, {});
|
|
15344
|
+
const requestData = {};
|
|
15345
|
+
const xsHeader = getXhsWebUnreadCount_xsEncrypt.signHeadersPost(apiPath, recordCookie, "xhs-pc-web", requestData);
|
|
15325
15346
|
const res = await http.api({
|
|
15326
|
-
method: "
|
|
15327
|
-
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count"
|
|
15347
|
+
method: "GET",
|
|
15348
|
+
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count",
|
|
15349
|
+
data: requestData,
|
|
15350
|
+
headers: xsHeader
|
|
15328
15351
|
}, {
|
|
15329
15352
|
retries: 3,
|
|
15330
15353
|
retryDelay: 20,
|
|
@@ -25673,4 +25696,5 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
|
|
|
25673
25696
|
value: true
|
|
25674
25697
|
});
|
|
25675
25698
|
|
|
25676
|
-
//# sourceMappingURL=index.js.map
|
|
25699
|
+
//# sourceMappingURL=index.js.map
|
|
25700
|
+
//# debugId=23a118d5-7504-553a-869b-7251d1fda8eb
|