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 +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.global.js +9 -13
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/step.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -1719,7 +1719,7 @@ var _Step = class _Step {
|
|
|
1719
1719
|
*/
|
|
1720
1720
|
this.repeatCount = 0;
|
|
1721
1721
|
/**
|
|
1722
|
-
*
|
|
1722
|
+
* 步骤重复执行最大次数,默认15次
|
|
1723
1723
|
*/
|
|
1724
1724
|
this.repeatCountMax = _Step.repeatCountMaxDefault;
|
|
1725
1725
|
/**
|
|
@@ -1839,7 +1839,7 @@ var _Step = class _Step {
|
|
|
1839
1839
|
} else {
|
|
1840
1840
|
nextStep = await ((_e = currentStep.impl) == null ? void 0 : _e.call(currentStep, currentStep));
|
|
1841
1841
|
}
|
|
1842
|
-
if (currentStep.repeatCountMax
|
|
1842
|
+
if (currentStep.repeatCountMax > _Step.repeatCountInfinite && currentStep.repeatCount >= currentStep.repeatCountMax) {
|
|
1843
1843
|
if (_Step.showLog) {
|
|
1844
1844
|
console.log(
|
|
1845
1845
|
`\u91CD\u590D\u6B21\u6570${currentStep.repeatCount}\u8D85\u8FC7\u6700\u5927\u6B21\u6570${currentStep.repeatCountMax}\uFF0C\u505C\u6B62\u6267\u884C`
|
|
@@ -2398,7 +2398,7 @@ var _Step = class _Step {
|
|
|
2398
2398
|
};
|
|
2399
2399
|
_Step.delayMsDefault = 1e3;
|
|
2400
2400
|
_Step.repeatCountInfinite = -1;
|
|
2401
|
-
_Step.repeatCountMaxDefault =
|
|
2401
|
+
_Step.repeatCountMaxDefault = 15;
|
|
2402
2402
|
_Step.showLog = false;
|
|
2403
2403
|
_Step.exceptionRetryCountMaxDefault = 3;
|
|
2404
2404
|
/**
|