@iflyrpa/playwright 1.0.15-beta.2 → 1.1.0
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 +4 -5
- package/dist/index.d.cts +3 -4
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.mjs +6 -7
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ const pacote__default = /*#__PURE__*/_interopDefaultCompat(pacote);
|
|
|
24
24
|
|
|
25
25
|
const name = "@iflyrpa/playwright";
|
|
26
26
|
const type = "module";
|
|
27
|
-
const version$1 = "1.0
|
|
27
|
+
const version$1 = "1.1.0";
|
|
28
28
|
const main = "./dist/index.cjs";
|
|
29
29
|
const module$1 = "./dist/index.mjs";
|
|
30
30
|
const types = "./dist/index.d.ts";
|
|
@@ -200,6 +200,7 @@ const _Logger = class _Logger {
|
|
|
200
200
|
return _Logger.instance;
|
|
201
201
|
}
|
|
202
202
|
const logFile = path__default.join(cachePath, "rpa.log");
|
|
203
|
+
share.ensureFileSync(logFile);
|
|
203
204
|
this.stream = fs__default.createWriteStream(logFile, { flags: "a" });
|
|
204
205
|
log__default.setLevel("debug");
|
|
205
206
|
log__default.methodFactory = (methodName) => {
|
|
@@ -477,7 +478,8 @@ var __publicField = (obj, key, value) => {
|
|
|
477
478
|
class RpaTask extends Task {
|
|
478
479
|
constructor(params) {
|
|
479
480
|
super(params);
|
|
480
|
-
__publicField(this, "actions"
|
|
481
|
+
__publicField(this, "actions");
|
|
482
|
+
this.actions = new actions.Action(this);
|
|
481
483
|
params.forceUpdate && this.update();
|
|
482
484
|
}
|
|
483
485
|
async update() {
|
|
@@ -490,9 +492,6 @@ class RpaTask extends Task {
|
|
|
490
492
|
this.logger.error("\u66F4\u65B0\u4F9D\u8D56\u5931\u8D25", error);
|
|
491
493
|
}
|
|
492
494
|
}
|
|
493
|
-
xiaohongshuPublish(params) {
|
|
494
|
-
return this.actions.xiaohongshuPublish(this, params);
|
|
495
|
-
}
|
|
496
495
|
}
|
|
497
496
|
const version = packageJson.version;
|
|
498
497
|
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Action } from '@iflyrpa/actions';
|
|
2
|
+
export { ActionMethodParams } from '@iflyrpa/actions';
|
|
3
3
|
import * as playwright_core from 'playwright-core';
|
|
4
4
|
import { LoggerImplement, AutomateTask, ElectronApplication, PageParams } from '@iflyrpa/share';
|
|
5
5
|
|
|
@@ -77,10 +77,9 @@ declare class Task implements AutomateTask {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
declare class RpaTask extends Task {
|
|
80
|
-
|
|
80
|
+
actions: Action;
|
|
81
81
|
constructor(params: TaskParams);
|
|
82
82
|
private update;
|
|
83
|
-
xiaohongshuPublish(params: XiaohongshuPublishParams): Promise<string>;
|
|
84
83
|
}
|
|
85
84
|
declare const version: string;
|
|
86
85
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Action } from '@iflyrpa/actions';
|
|
2
|
+
export { ActionMethodParams } from '@iflyrpa/actions';
|
|
3
3
|
import * as playwright_core from 'playwright-core';
|
|
4
4
|
import { LoggerImplement, AutomateTask, ElectronApplication, PageParams } from '@iflyrpa/share';
|
|
5
5
|
|
|
@@ -77,10 +77,9 @@ declare class Task implements AutomateTask {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
declare class RpaTask extends Task {
|
|
80
|
-
|
|
80
|
+
actions: Action;
|
|
81
81
|
constructor(params: TaskParams);
|
|
82
82
|
private update;
|
|
83
|
-
xiaohongshuPublish(params: XiaohongshuPublishParams): Promise<string>;
|
|
84
83
|
}
|
|
85
84
|
declare const version: string;
|
|
86
85
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { Action } from '@iflyrpa/actions';
|
|
2
|
+
export { ActionMethodParams } from '@iflyrpa/actions';
|
|
3
3
|
import * as playwright_core from 'playwright-core';
|
|
4
4
|
import { LoggerImplement, AutomateTask, ElectronApplication, PageParams } from '@iflyrpa/share';
|
|
5
5
|
|
|
@@ -77,10 +77,9 @@ declare class Task implements AutomateTask {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
declare class RpaTask extends Task {
|
|
80
|
-
|
|
80
|
+
actions: Action;
|
|
81
81
|
constructor(params: TaskParams);
|
|
82
82
|
private update;
|
|
83
|
-
xiaohongshuPublish(params: XiaohongshuPublishParams): Promise<string>;
|
|
84
83
|
}
|
|
85
84
|
declare const version: string;
|
|
86
85
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Action } from '@iflyrpa/actions';
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import childProcess from 'node:child_process';
|
|
5
5
|
import os from 'node:os';
|
|
6
6
|
import { downloadArtifact } from '@electron/get';
|
|
7
7
|
import extract from 'extract-zip';
|
|
8
|
-
import { pathExists, ensureFile, writeFile } from '@iflyrpa/share';
|
|
8
|
+
import { ensureFileSync, pathExists, ensureFile, writeFile } from '@iflyrpa/share';
|
|
9
9
|
import log from 'loglevel';
|
|
10
10
|
import { NodeClient } from '@sentry/node';
|
|
11
11
|
import pacote from 'pacote';
|
|
12
12
|
|
|
13
13
|
const name = "@iflyrpa/playwright";
|
|
14
14
|
const type = "module";
|
|
15
|
-
const version$1 = "1.0
|
|
15
|
+
const version$1 = "1.1.0";
|
|
16
16
|
const main = "./dist/index.cjs";
|
|
17
17
|
const module = "./dist/index.mjs";
|
|
18
18
|
const types = "./dist/index.d.ts";
|
|
@@ -188,6 +188,7 @@ const _Logger = class _Logger {
|
|
|
188
188
|
return _Logger.instance;
|
|
189
189
|
}
|
|
190
190
|
const logFile = path.join(cachePath, "rpa.log");
|
|
191
|
+
ensureFileSync(logFile);
|
|
191
192
|
this.stream = fs.createWriteStream(logFile, { flags: "a" });
|
|
192
193
|
log.setLevel("debug");
|
|
193
194
|
log.methodFactory = (methodName) => {
|
|
@@ -465,7 +466,8 @@ var __publicField = (obj, key, value) => {
|
|
|
465
466
|
class RpaTask extends Task {
|
|
466
467
|
constructor(params) {
|
|
467
468
|
super(params);
|
|
468
|
-
__publicField(this, "actions"
|
|
469
|
+
__publicField(this, "actions");
|
|
470
|
+
this.actions = new Action(this);
|
|
469
471
|
params.forceUpdate && this.update();
|
|
470
472
|
}
|
|
471
473
|
async update() {
|
|
@@ -478,9 +480,6 @@ class RpaTask extends Task {
|
|
|
478
480
|
this.logger.error("\u66F4\u65B0\u4F9D\u8D56\u5931\u8D25", error);
|
|
479
481
|
}
|
|
480
482
|
}
|
|
481
|
-
xiaohongshuPublish(params) {
|
|
482
|
-
return this.actions.xiaohongshuPublish(this, params);
|
|
483
|
-
}
|
|
484
483
|
}
|
|
485
484
|
const version = packageJson.version;
|
|
486
485
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iflyrpa/playwright",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"playwright": "^1.46.1",
|
|
20
20
|
"typescript": "^5.5.2",
|
|
21
21
|
"unbuild": "^2.0.0",
|
|
22
|
-
"@iflyrpa/share": "0.0.
|
|
22
|
+
"@iflyrpa/share": "0.0.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@electron/get": "^2.0.0",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"extract-zip": "^2.0.1",
|
|
28
28
|
"loglevel": "^1.9.2",
|
|
29
29
|
"pacote": "^20.0.0",
|
|
30
|
-
"@iflyrpa/actions": "0.0
|
|
31
|
-
"@iflyrpa/share": "0.0.
|
|
30
|
+
"@iflyrpa/actions": "1.0.0",
|
|
31
|
+
"@iflyrpa/share": "0.0.2"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "unbuild",
|