@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/bundle.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/*! For license information please see bundle.js.LICENSE.txt */
|
|
2
|
+
|
|
3
|
+
!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]="c14c6f4b-c5da-5f46-9b34-50e166610ae4")}catch(e){}}();
|
|
2
4
|
var __webpack_modules__ = {
|
|
3
5
|
"../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js": function(__unused_webpack_module, exports1, __webpack_require__) {
|
|
4
6
|
"use strict";
|
|
@@ -12491,7 +12493,7 @@ var __webpack_exports__ = {};
|
|
|
12491
12493
|
i8: "0.1.2"
|
|
12492
12494
|
};
|
|
12493
12495
|
var package_namespaceObject_0 = {
|
|
12494
|
-
i8: "4.0.
|
|
12496
|
+
i8: "4.0.7"
|
|
12495
12497
|
};
|
|
12496
12498
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
12497
12499
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -34612,9 +34614,14 @@ var __webpack_exports__ = {};
|
|
|
34612
34614
|
});
|
|
34613
34615
|
return e.data;
|
|
34614
34616
|
});
|
|
34617
|
+
const webSessionPath = "/api/sns/web/unread_count";
|
|
34618
|
+
const webSessionData = {};
|
|
34619
|
+
const webSessionXsHeader = sessionCheck_xsEncrypt.signHeadersPost(webSessionPath, recordCookie, "xhs-pc-web", webSessionData);
|
|
34615
34620
|
const _web_session = http.api({
|
|
34616
|
-
method: "
|
|
34617
|
-
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count"
|
|
34621
|
+
method: "GET",
|
|
34622
|
+
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count",
|
|
34623
|
+
data: webSessionData,
|
|
34624
|
+
headers: webSessionXsHeader
|
|
34618
34625
|
}, {
|
|
34619
34626
|
retries: 3,
|
|
34620
34627
|
retryDelay: 20,
|
|
@@ -40359,6 +40366,7 @@ var __webpack_exports__ = {};
|
|
|
40359
40366
|
const data = isSuccess ? res.data.activity_list : [];
|
|
40360
40367
|
return utils_response(isSuccess ? 0 : 414, message, data);
|
|
40361
40368
|
};
|
|
40369
|
+
const getXhsWebUnreadCount_xsEncrypt = new Xhshow();
|
|
40362
40370
|
const UnreadCountSchema = classic_schemas_object({
|
|
40363
40371
|
connections: classic_schemas_number().nullable(),
|
|
40364
40372
|
mentions: classic_schemas_number().nullable(),
|
|
@@ -40393,9 +40401,24 @@ var __webpack_exports__ = {};
|
|
|
40393
40401
|
unread_count: null,
|
|
40394
40402
|
likes: null
|
|
40395
40403
|
};
|
|
40404
|
+
const a1Cookie = params.cookies.find((it)=>"a1" === it.name)?.value;
|
|
40405
|
+
if (!a1Cookie) return {
|
|
40406
|
+
code: 414,
|
|
40407
|
+
message: "账号数据异常,请重新绑定账号后重试。",
|
|
40408
|
+
data: unreadCount
|
|
40409
|
+
};
|
|
40410
|
+
const apiPath = "/api/sns/web/unread_count";
|
|
40411
|
+
const recordCookie = params.cookies.reduce((acc, cookie)=>{
|
|
40412
|
+
if (cookie.name && cookie.value) acc[cookie.name] = cookie.value;
|
|
40413
|
+
return acc;
|
|
40414
|
+
}, {});
|
|
40415
|
+
const requestData = {};
|
|
40416
|
+
const xsHeader = getXhsWebUnreadCount_xsEncrypt.signHeadersPost(apiPath, recordCookie, "xhs-pc-web", requestData);
|
|
40396
40417
|
const res = await http.api({
|
|
40397
|
-
method: "
|
|
40398
|
-
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count"
|
|
40418
|
+
method: "GET",
|
|
40419
|
+
url: "https://edith.xiaohongshu.com/api/sns/web/unread_count",
|
|
40420
|
+
data: requestData,
|
|
40421
|
+
headers: xsHeader
|
|
40399
40422
|
}, {
|
|
40400
40423
|
retries: 3,
|
|
40401
40424
|
retryDelay: 20,
|
|
@@ -50744,4 +50767,5 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
|
|
|
50744
50767
|
value: true
|
|
50745
50768
|
});
|
|
50746
50769
|
|
|
50747
|
-
//# sourceMappingURL=bundle.js.map
|
|
50770
|
+
//# sourceMappingURL=bundle.js.map
|
|
50771
|
+
//# debugId=c14c6f4b-c5da-5f46-9b34-50e166610ae4
|