assistsx-js 0.2.0 → 0.2.1

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
@@ -3,13 +3,13 @@
3
3
  一个支持通过Web端实现Android平台自动化脚本的JS库,支持元素节点查找、获取节点文本、节点截图、执行手势动作、提供步骤器实现复杂自动化业务等一系列自动化脚本开发能力支持
4
4
 
5
5
  # AssistsX JS运行平台
6
- 开发的自动化脚本需要运行在Android端[AssistsX](https://www.pgyer.com/SqGaCx8C)中,所以开发前需要先在手机安装[AssistsX](https://www.pgyer.com/SqGaCx8C)
6
+ 开发的自动化脚本需要运行在Android端[AssistsX](https://www.pgyer.com/assistsx)中,所以开发前需要先在手机安装[AssistsX](https://www.pgyer.com/assistsx)
7
7
 
8
8
  **扫码下载**
9
9
 
10
- <img width="112" alt="image" src="https://github.com/user-attachments/assets/c28ecc41-01f8-4e52-9ddc-80dc5c6d0ed5" />
10
+ <img width="112" alt="image" src="https://github.com/user-attachments/assets/6c371313-4ca1-4598-91b3-f716ec369e7b" />
11
11
 
12
- **下载链接:[https://www.pgyer.com/SqGaCx8C](https://www.pgyer.com/SqGaCx8C)**
12
+ **下载链接:[https://www.pgyer.com/assistsx](https://www.pgyer.com/assistsx)**
13
13
 
14
14
  > 下载安装后会默认安装一个示例插件,可长按删除
15
15
 
@@ -80,7 +80,7 @@ const handleClick = () => {
80
80
  ```
81
81
 
82
82
  ## 4. 加载插件
83
- 1. 通过[AssistsX](https://www.pgyer.com/SqGaCx8C)局域网加载插件
83
+ 1. 通过[AssistsX](https://www.pgyer.com/assistsx)局域网加载插件
84
84
  > 加载插件前需要配置项目允许局域网访问,在文件`vite.config.js`添加以下配置
85
85
  ```
86
86
  export default defineConfig({
package/dist/index.cjs CHANGED
@@ -1796,7 +1796,7 @@ var _Step = class _Step {
1796
1796
  */
1797
1797
  this.repeatCount = 0;
1798
1798
  /**
1799
- * 步骤重复执行最大次数,默认不限制
1799
+ * 步骤重复执行最大次数,默认15次
1800
1800
  */
1801
1801
  this.repeatCountMax = _Step.repeatCountMaxDefault;
1802
1802
  /**
@@ -1916,7 +1916,7 @@ var _Step = class _Step {
1916
1916
  } else {
1917
1917
  nextStep = await ((_e = currentStep.impl) == null ? void 0 : _e.call(currentStep, currentStep));
1918
1918
  }
1919
- if (currentStep.repeatCountMax >= _Step.repeatCountInfinite && currentStep.repeatCount >= currentStep.repeatCountMax) {
1919
+ if (currentStep.repeatCountMax > _Step.repeatCountInfinite && currentStep.repeatCount >= currentStep.repeatCountMax) {
1920
1920
  if (_Step.showLog) {
1921
1921
  console.log(
1922
1922
  `\u91CD\u590D\u6B21\u6570${currentStep.repeatCount}\u8D85\u8FC7\u6700\u5927\u6B21\u6570${currentStep.repeatCountMax}\uFF0C\u505C\u6B62\u6267\u884C`
@@ -2475,7 +2475,7 @@ var _Step = class _Step {
2475
2475
  };
2476
2476
  _Step.delayMsDefault = 1e3;
2477
2477
  _Step.repeatCountInfinite = -1;
2478
- _Step.repeatCountMaxDefault = _Step.repeatCountInfinite;
2478
+ _Step.repeatCountMaxDefault = 15;
2479
2479
  _Step.showLog = false;
2480
2480
  _Step.exceptionRetryCountMaxDefault = 3;
2481
2481
  /**