@iflyrpa/playwright 1.1.2-beta.3 → 1.1.2-beta.6

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/README.md CHANGED
@@ -2,16 +2,17 @@
2
2
 
3
3
  iflyrpa 封装的一组特定场景的自动化脚本,支持的场景如下:
4
4
 
5
- | 平台 | 脚本 | 说明 | 支持的方式 |
6
- | ---------------------------- | ---------------------- | -------------------------------------------------- | -------------- |
7
- | 头条 | toutiaoPublish | 发布/保存草稿 | Mock Api |
8
- | 头条 | getToutiaoConfig | 获取头条发布配置的话题信息、位置信息和原创首发信息 | Mock Api |
9
- | 头条 | searchToutiaoTopicList | 搜索头条话题 | Mock Api |
10
- | 微头条 | weitoutiaoPublish | 发布 | Mock Api / RPA |
11
- | 百家号 | getBaijiahaoActivity | 查询百家号活动投稿 | Mock Api |
12
- | 百家号 | baijiahaoPublish | 发布/保存草稿 | Mock Api |
13
- | 小绿书(微信公众号图文模式) | weixinmpPublish | 发布 | Mock Api / RPA |
14
- | 小红书 | xiaohongshuPublish | 发布 | Mock Api / RPA |
5
+ | 平台 | 脚本 | 说明 | 支持的方式 |
6
+ | ---------------------------- | ------------------------- | -------------------------------------------------- | -------------- |
7
+ | 头条 | toutiaoPublish | 发布/保存草稿 | Mock Api |
8
+ | 头条 | getToutiaoConfig | 获取头条发布配置的话题信息、位置信息和原创首发信息 | Mock Api |
9
+ | 头条 | searchToutiaoTopicList | 搜索头条话题 | Mock Api |
10
+ | 微头条 | weitoutiaoPublish | 发布 | Mock Api / RPA |
11
+ | 百家号 | getBaijiahaoActivity | 查询百家号活动投稿 | Mock Api |
12
+ | 百家号 | baijiahaoPublish | 发布/保存草稿 | Mock Api |
13
+ | 小绿书(微信公众号图文模式) | weixinmpPublish | 发布 | Mock Api / RPA |
14
+ | 小红书 | xiaohongshuPublish | 发布 | Mock Api / RPA |
15
+ | 小红书 | searchXiaohongshuLocation | 搜索小红书地址 | Mock Api |
15
16
 
16
17
  ## 安装
17
18
 
package/dist/index.cjs CHANGED
@@ -43,7 +43,7 @@ __webpack_require__.d(__webpack_exports__, {
43
43
  RpaTask: ()=>RpaTask
44
44
  });
45
45
  const actions_namespaceObject = require("@iflyrpa/actions");
46
- var package_namespaceObject = JSON.parse('{"i8":"1.1.2-beta.3"}');
46
+ var package_namespaceObject = JSON.parse('{"i8":"1.1.2-beta.6"}');
47
47
  const external_node_fs_namespaceObject = require("node:fs");
48
48
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
49
49
  const external_node_path_namespaceObject = require("node:path");
@@ -308,7 +308,11 @@ class PackageManager {
308
308
  const manifest = await this.getManifest(`${name}@latest`);
309
309
  const version = manifest.version;
310
310
  const plugin = this.require(`${name}@${version}`);
311
- if (!plugin) await this.extract(name, version);
311
+ if (plugin) this.task.logger.info(`${name}@${version} 已是最新版本`);
312
+ else {
313
+ await this.extract(name, version);
314
+ this.task.logger.info(`${name}@${version} 安装成功`);
315
+ }
312
316
  return version;
313
317
  }
314
318
  constructor(task){
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__ from "@iflyrpa/s
9
9
  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
- var package_namespaceObject = JSON.parse('{"i8":"1.1.2-beta.3"}');
12
+ var package_namespaceObject = JSON.parse('{"i8":"1.1.2-beta.6"}');
13
13
  function _define_property(obj, key, value) {
14
14
  if (key in obj) Object.defineProperty(obj, key, {
15
15
  value: value,
@@ -257,7 +257,11 @@ class PackageManager {
257
257
  const manifest = await this.getManifest(`${name}@latest`);
258
258
  const version = manifest.version;
259
259
  const plugin = this.require(`${name}@${version}`);
260
- if (!plugin) await this.extract(name, version);
260
+ if (plugin) this.task.logger.info(`${name}@${version} 已是最新版本`);
261
+ else {
262
+ await this.extract(name, version);
263
+ this.task.logger.info(`${name}@${version} 安装成功`);
264
+ }
261
265
  return version;
262
266
  }
263
267
  constructor(task){
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iflyrpa/playwright",
3
3
  "type": "module",
4
- "version": "1.1.2-beta.3",
4
+ "version": "1.1.2-beta.6",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "extract-zip": "^2.0.1",
29
29
  "loglevel": "^1.9.2",
30
30
  "@iflyrpa/pacote": "1.0.0",
31
- "@iflyrpa/actions": "1.0.2",
31
+ "@iflyrpa/actions": "1.0.5",
32
32
  "@iflyrpa/share": "0.0.2"
33
33
  },
34
34
  "scripts": {