@iflyrpa/playwright 1.2.4 → 1.2.5
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/index.cjs +7 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.js +7 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,7 +44,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
44
44
|
});
|
|
45
45
|
const actions_namespaceObject = require("@iflyrpa/actions");
|
|
46
46
|
var package_namespaceObject = {
|
|
47
|
-
i8: "1.2.
|
|
47
|
+
i8: "1.2.5"
|
|
48
48
|
};
|
|
49
49
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
50
50
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -454,19 +454,22 @@ function src_define_property(obj, key, value) {
|
|
|
454
454
|
return obj;
|
|
455
455
|
}
|
|
456
456
|
class RpaTask extends Task {
|
|
457
|
+
registerActions(rpaAction) {
|
|
458
|
+
this.actions = new rpaAction.Action(this);
|
|
459
|
+
}
|
|
457
460
|
async update() {
|
|
458
461
|
try {
|
|
459
462
|
const version = await this.packageManager.update(this.actionName);
|
|
460
|
-
const
|
|
463
|
+
const rpaPackage = this.packageManager.require(`${this.actionName}@${version}`);
|
|
464
|
+
(null == rpaPackage ? void 0 : rpaPackage.Action) && this.registerActions(rpaPackage);
|
|
461
465
|
this.updateLogVersion(version);
|
|
462
|
-
(null == actionPackage ? void 0 : actionPackage.actions) && (this.actions = actionPackage.actions);
|
|
463
466
|
} catch (error) {
|
|
464
467
|
this.logger.error("更新依赖失败", error);
|
|
465
468
|
}
|
|
466
469
|
}
|
|
467
470
|
constructor(params){
|
|
468
471
|
super(params, actions_namespaceObject.version), src_define_property(this, "actions", void 0), src_define_property(this, "actionName", "@iflyrpa/actions");
|
|
469
|
-
this.
|
|
472
|
+
this.registerActions(actions_namespaceObject);
|
|
470
473
|
params.forceUpdate && this.update();
|
|
471
474
|
}
|
|
472
475
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Action } from '@iflyrpa/actions';
|
|
2
1
|
import { ActionMethodParams } from '@iflyrpa/actions';
|
|
3
2
|
import type { AutomateTask } from '@iflyrpa/share';
|
|
4
3
|
import type { ElectronApplication } from '@iflyrpa/share';
|
|
5
4
|
import { LoggerImplement } from '@iflyrpa/share';
|
|
6
5
|
import { Page } from 'playwright-core';
|
|
7
6
|
import type { PageParams } from '@iflyrpa/share';
|
|
7
|
+
import * as RpaAction from '@iflyrpa/actions';
|
|
8
8
|
import { User } from '@sentry/node';
|
|
9
9
|
|
|
10
10
|
export { ActionMethodParams }
|
|
@@ -32,9 +32,10 @@ declare class PackageManager {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export declare class RpaTask extends Task {
|
|
35
|
-
actions: Action;
|
|
35
|
+
actions: RpaAction.Action;
|
|
36
36
|
private actionName;
|
|
37
37
|
constructor(params: TaskParams);
|
|
38
|
+
private registerActions;
|
|
38
39
|
private update;
|
|
39
40
|
}
|
|
40
41
|
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_loglevel__ from "loglevel";
|
|
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE__sentry_node_4658624b__ from "@sentry/node";
|
|
11
11
|
import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_pacote_56da1cff__ from "@iflyrpa/pacote";
|
|
12
12
|
var package_namespaceObject = {
|
|
13
|
-
i8: "1.2.
|
|
13
|
+
i8: "1.2.5"
|
|
14
14
|
};
|
|
15
15
|
function _define_property(obj, key, value) {
|
|
16
16
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -402,19 +402,22 @@ function src_define_property(obj, key, value) {
|
|
|
402
402
|
return obj;
|
|
403
403
|
}
|
|
404
404
|
class RpaTask extends Task {
|
|
405
|
+
registerActions(rpaAction) {
|
|
406
|
+
this.actions = new rpaAction.Action(this);
|
|
407
|
+
}
|
|
405
408
|
async update() {
|
|
406
409
|
try {
|
|
407
410
|
const version = await this.packageManager.update(this.actionName);
|
|
408
|
-
const
|
|
411
|
+
const rpaPackage = this.packageManager.require(`${this.actionName}@${version}`);
|
|
412
|
+
(null == rpaPackage ? void 0 : rpaPackage.Action) && this.registerActions(rpaPackage);
|
|
409
413
|
this.updateLogVersion(version);
|
|
410
|
-
(null == actionPackage ? void 0 : actionPackage.actions) && (this.actions = actionPackage.actions);
|
|
411
414
|
} catch (error) {
|
|
412
415
|
this.logger.error("更新依赖失败", error);
|
|
413
416
|
}
|
|
414
417
|
}
|
|
415
418
|
constructor(params){
|
|
416
419
|
super(params, __WEBPACK_EXTERNAL_MODULE__iflyrpa_actions_bd801d6f__.version), src_define_property(this, "actions", void 0), src_define_property(this, "actionName", "@iflyrpa/actions");
|
|
417
|
-
this.
|
|
420
|
+
this.registerActions(__WEBPACK_EXTERNAL_MODULE__iflyrpa_actions_bd801d6f__);
|
|
418
421
|
params.forceUpdate && this.update();
|
|
419
422
|
}
|
|
420
423
|
}
|