@signalplus/params-about 1.0.26-alpha20 → 1.0.26-alpha22
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/lib/es/index.js +15 -10
- package/package.json +1 -1
package/lib/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Bundle of @signalplus/params-about
|
|
3
|
-
* Generated: 2025-11-
|
|
4
|
-
* Version: 1.0.26-
|
|
3
|
+
* Generated: 2025-11-10
|
|
4
|
+
* Version: 1.0.26-alpha22
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Author: 2631541504@qq.com
|
|
7
7
|
*/
|
|
@@ -3460,6 +3460,11 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
|
|
|
3460
3460
|
return "The ".concat(i + 1).concat(i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th', " item: delta range's max only support 0 ~ 1");
|
|
3461
3461
|
}
|
|
3462
3462
|
|
|
3463
|
+
if (Number(vegaRule.deltaRange.max) <= Number(vegaRule.deltaRange.min)) {
|
|
3464
|
+
// return zeroErrText(i, "delta range's max", 'max', true);
|
|
3465
|
+
return "The ".concat(i + 1).concat(i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th', " item: delta range's max should be > min");
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3463
3468
|
if (isEmpty(vegaRule.bidEdgeSpan.from)) {
|
|
3464
3469
|
return emptyErrText(i, "bid edge range's from");
|
|
3465
3470
|
}
|
|
@@ -3478,37 +3483,37 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
|
|
|
3478
3483
|
|
|
3479
3484
|
if (Number(val.vegaTarget) > 0) {
|
|
3480
3485
|
if (Number(vegaRule.bidEdgeSpan.from) < 0) {
|
|
3481
|
-
return zeroErrText(i, "bid edge range's from", 'max');
|
|
3486
|
+
return zeroErrText(i, "bid edge range's from", 'max', true);
|
|
3482
3487
|
}
|
|
3483
3488
|
|
|
3484
3489
|
if (Number(vegaRule.bidEdgeSpan.to) < 0) {
|
|
3485
|
-
return zeroErrText(i, "bid edge range's to", 'max');
|
|
3490
|
+
return zeroErrText(i, "bid edge range's to", 'max', true);
|
|
3486
3491
|
}
|
|
3487
3492
|
|
|
3488
3493
|
if (Number(vegaRule.askEdgeSpan.from) < 0) {
|
|
3489
|
-
return zeroErrText(i, "ask edge range's from", 'max');
|
|
3494
|
+
return zeroErrText(i, "ask edge range's from", 'max', true);
|
|
3490
3495
|
}
|
|
3491
3496
|
|
|
3492
3497
|
if (Number(vegaRule.askEdgeSpan.to) < 0) {
|
|
3493
|
-
return zeroErrText(i, "ask edge range's to", 'max');
|
|
3498
|
+
return zeroErrText(i, "ask edge range's to", 'max', true);
|
|
3494
3499
|
}
|
|
3495
3500
|
}
|
|
3496
3501
|
|
|
3497
3502
|
if (Number(val.vegaTarget) < 0) {
|
|
3498
3503
|
if (Number(vegaRule.bidEdgeSpan.from) > 0) {
|
|
3499
|
-
return zeroErrText(i, "bid edge range's from", 'min');
|
|
3504
|
+
return zeroErrText(i, "bid edge range's from", 'min', true);
|
|
3500
3505
|
}
|
|
3501
3506
|
|
|
3502
3507
|
if (Number(vegaRule.bidEdgeSpan.to) > 0) {
|
|
3503
|
-
return zeroErrText(i, "bid edge range's to", 'min');
|
|
3508
|
+
return zeroErrText(i, "bid edge range's to", 'min', true);
|
|
3504
3509
|
}
|
|
3505
3510
|
|
|
3506
3511
|
if (Number(vegaRule.askEdgeSpan.from) > 0) {
|
|
3507
|
-
return zeroErrText(i, "ask edge range's from", 'min');
|
|
3512
|
+
return zeroErrText(i, "ask edge range's from", 'min', true);
|
|
3508
3513
|
}
|
|
3509
3514
|
|
|
3510
3515
|
if (Number(vegaRule.askEdgeSpan.to) > 0) {
|
|
3511
|
-
return zeroErrText(i, "ask edge range's to", 'min');
|
|
3516
|
+
return zeroErrText(i, "ask edge range's to", 'min', true);
|
|
3512
3517
|
}
|
|
3513
3518
|
}
|
|
3514
3519
|
} // if (expiries.includes(val.expiry)) {
|