@iflyrpa/actions 4.0.9-beta.2 → 4.0.9-beta.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 +13 -2
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -73,6 +73,20 @@ export declare const BetaFlag = "HuiwenCanary";
|
|
|
73
73
|
export declare class Action {
|
|
74
74
|
private task;
|
|
75
75
|
constructor(task: AutomateTask);
|
|
76
|
+
/**
|
|
77
|
+
* 【测试专用】获取当前 Action 类的版本标识
|
|
78
|
+
*
|
|
79
|
+
* 用于验证热更新后内存中的 Action 实例是否真的被替换了。
|
|
80
|
+
* 每个版本的 @iflyrpa/actions 包应该返回不同的标识。
|
|
81
|
+
*
|
|
82
|
+
* @returns 包含版本号和时间戳的对象
|
|
83
|
+
*/
|
|
84
|
+
getActionVersionMarker(): {
|
|
85
|
+
version: string;
|
|
86
|
+
shareVersion: string;
|
|
87
|
+
marker: string;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
};
|
|
76
90
|
private bindTask;
|
|
77
91
|
xiaohongshuWebSearch(params: XhsWebSearchParams): Promise<ResponseData<Record<string, unknown>>>;
|
|
78
92
|
xiaohongshuWebCommentAction(params: xiaohongshuWebCommentActionParams): Promise<ResponseData<Record<string, never> | import("./actions/xiaohongshuWebCommentAction").ActionResponse>>;
|
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]="3b831ac8-2f97-5984-b6b4-868d0748d2c6")}catch(e){}}();
|
|
1
3
|
var __webpack_modules__ = {
|
|
2
4
|
"./src/utils/XhsXsCommonEnc.js": function(module) {
|
|
3
5
|
var encrypt_lookup = [
|
|
@@ -4400,7 +4402,7 @@ var __webpack_exports__ = {};
|
|
|
4400
4402
|
});
|
|
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
|
-
var package_namespaceObject = JSON.parse('{"i8":"4.0.9-beta.
|
|
4405
|
+
var package_namespaceObject = JSON.parse('{"i8":"4.0.9-beta.4"}');
|
|
4404
4406
|
const share_namespaceObject = require("@iflyrpa/share");
|
|
4405
4407
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
4406
4408
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -25496,6 +25498,14 @@ var __webpack_exports__ = {};
|
|
|
25496
25498
|
this.task = task;
|
|
25497
25499
|
this.task.logger.info(`当前包版本:Share=>${package_json_default().version} Action=>${package_namespaceObject.i8}`);
|
|
25498
25500
|
}
|
|
25501
|
+
getActionVersionMarker() {
|
|
25502
|
+
return {
|
|
25503
|
+
version: package_namespaceObject.i8,
|
|
25504
|
+
shareVersion: package_json_default().version,
|
|
25505
|
+
marker: `Action_${package_namespaceObject.i8}_${package_json_default().version}`,
|
|
25506
|
+
timestamp: new Date().toLocaleString()
|
|
25507
|
+
};
|
|
25508
|
+
}
|
|
25499
25509
|
async bindTask(func, params) {
|
|
25500
25510
|
let responseData;
|
|
25501
25511
|
this.task.isBeta = this.task?.isFeatOn ? this.task?.isFeatOn(BetaFlag) : false;
|
|
@@ -25778,4 +25788,5 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
|
|
|
25778
25788
|
value: true
|
|
25779
25789
|
});
|
|
25780
25790
|
|
|
25781
|
-
//# sourceMappingURL=index.js.map
|
|
25791
|
+
//# sourceMappingURL=index.js.map
|
|
25792
|
+
//# debugId=3b831ac8-2f97-5984-b6b4-868d0748d2c6
|