@iflyrpa/actions 4.0.4-beta.6 → 4.0.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/bundle.js +5 -9
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +5 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! For license information please see bundle.js.LICENSE.txt */
|
|
2
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]="
|
|
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]="aed90b90-6fd5-5e1b-ba81-6ede67b0dc32")}catch(e){}}();
|
|
4
4
|
var __webpack_modules__ = {
|
|
5
5
|
"../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js": function(__unused_webpack_module, exports1, __webpack_require__) {
|
|
6
6
|
"use strict";
|
|
@@ -12492,7 +12492,9 @@ var __webpack_exports__ = {};
|
|
|
12492
12492
|
var package_namespaceObject = {
|
|
12493
12493
|
i8: "0.1.2"
|
|
12494
12494
|
};
|
|
12495
|
-
var package_namespaceObject_0 =
|
|
12495
|
+
var package_namespaceObject_0 = {
|
|
12496
|
+
i8: "4.0.4"
|
|
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);
|
|
12498
12500
|
const external_node_http_namespaceObject = require("node:http");
|
|
@@ -40535,7 +40537,6 @@ var __webpack_exports__ = {};
|
|
|
40535
40537
|
fansNum = toNum(user.follower_count);
|
|
40536
40538
|
followingNum = toNum(user.following_count);
|
|
40537
40539
|
favedNum = toNum(user.total_favorited);
|
|
40538
|
-
_task.logger.info(`提取用户数据 - 昵称: ${user.nickname}, 粉丝: ${fansNum}, 关注: ${followingNum}, 获赞: ${favedNum}, 作品: ${user.aweme_count}`);
|
|
40539
40540
|
} else _task.logger.warn(`用户信息接口返回异常: status_code=${userProfile?.status_code}, msg=${userProfile?.status_msg}`);
|
|
40540
40541
|
const ov = overview?.data;
|
|
40541
40542
|
const douyinData = {
|
|
@@ -40667,7 +40668,6 @@ var __webpack_exports__ = {};
|
|
|
40667
40668
|
playNumYesterday = Number.parseInt(data.browse?.[1] || "0", 10) || 0;
|
|
40668
40669
|
likeNumYesterday = Number.parseInt(data.like?.[1] || "0", 10) || 0;
|
|
40669
40670
|
commentNumYesterday = Number.parseInt(data.comment?.[1] || "0", 10) || 0;
|
|
40670
|
-
_task.logger.info(`视频号昨日数据提取成功 - 净增关注:${fansNumYesterday}, 播放:${playNumYesterday}, 喜欢:${likeNumYesterday}, 评论:${commentNumYesterday}`);
|
|
40671
40671
|
}
|
|
40672
40672
|
} catch (error) {
|
|
40673
40673
|
const errMsg = error instanceof Error ? error.message : String(error);
|
|
@@ -41306,7 +41306,6 @@ var __webpack_exports__ = {};
|
|
|
41306
41306
|
allPosts.push(...posts);
|
|
41307
41307
|
continueFlag = response.data?.continueFlag ?? false;
|
|
41308
41308
|
rawKeyBuff = response.data?.lastBuff || "";
|
|
41309
|
-
_task.logger.info(`获取${11 === userpageType ? "视频" : "图文"}第${currentPage}页,本页${posts.length}条,累计${allPosts.length}条,continueFlag=${continueFlag}`);
|
|
41310
41309
|
currentPage++;
|
|
41311
41310
|
if (currentPage > 100) {
|
|
41312
41311
|
_task.logger.warn("分页超过100页,停止请求");
|
|
@@ -41361,7 +41360,6 @@ var __webpack_exports__ = {};
|
|
|
41361
41360
|
if (needVideo) try {
|
|
41362
41361
|
const videoPageUrl = "https://channels.weixin.qq.com/micro/content/post/list";
|
|
41363
41362
|
const { posts, totalCount } = await fetchAllPosts(11, videoPageUrl);
|
|
41364
|
-
_task.logger.info(`视频号视频获取响应:共${posts.length}条,totalCount=${totalCount}`);
|
|
41365
41363
|
const videoArticles = posts.filter((item)=>item.createTime || item.create_time).map((item)=>mapPost(item, "video"));
|
|
41366
41364
|
allArticles.push(...videoArticles);
|
|
41367
41365
|
combinedTotal += totalCount || videoArticles.length;
|
|
@@ -41373,7 +41371,6 @@ var __webpack_exports__ = {};
|
|
|
41373
41371
|
if (needArticle) try {
|
|
41374
41372
|
const articlePageUrl = "https://channels.weixin.qq.com/micro/content/post/finderNewLifePostList";
|
|
41375
41373
|
const { posts, totalCount } = await fetchAllPosts(10, articlePageUrl);
|
|
41376
|
-
_task.logger.info(`视频号图文获取响应:共${posts.length}条,totalCount=${totalCount}`);
|
|
41377
41374
|
const articleArticles = posts.filter((item)=>item.createTime || item.create_time).map((item)=>mapPost(item, "article"));
|
|
41378
41375
|
allArticles.push(...articleArticles);
|
|
41379
41376
|
combinedTotal += totalCount || articleArticles.length;
|
|
@@ -41386,7 +41383,6 @@ var __webpack_exports__ = {};
|
|
|
41386
41383
|
const total = allArticles.length;
|
|
41387
41384
|
const start = (pageNum - 1) * pageSize;
|
|
41388
41385
|
const pageItems = allArticles.slice(start, start + pageSize);
|
|
41389
|
-
_task.logger.info(`视频号数据获取成功,合计${total}条,第${pageNum}页返回${pageItems.length}条`);
|
|
41390
41386
|
return success({
|
|
41391
41387
|
articleCell: pageItems,
|
|
41392
41388
|
pagination: {
|
|
@@ -50751,4 +50747,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
|
|
|
50751
50747
|
});
|
|
50752
50748
|
|
|
50753
50749
|
//# sourceMappingURL=bundle.js.map
|
|
50754
|
-
//# debugId=
|
|
50750
|
+
//# debugId=aed90b90-6fd5-5e1b-ba81-6ede67b0dc32
|