@signalplus/params-about 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/lib/es/index.js +5 -5
  2. 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: 2022-06-16
4
- * Version: 1.0.3
3
+ * Generated: 2022-08-15
4
+ * Version: 1.0.4
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -278,7 +278,7 @@ function numRangeValidator(val, enableEmpty) {
278
278
  return "Max: ".concat(error);
279
279
  }
280
280
 
281
- return val.min > val.max ? 'Max should bigger than Min' : '';
281
+ return +val.min > +val.max ? 'Max should bigger than Min' : '';
282
282
  }
283
283
  function expiryValidator(val, enableEmpty) {
284
284
  var error = emptyValidator(val, enableEmpty);
@@ -1176,10 +1176,10 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
1176
1176
  return "The ".concat(i + 1, "th item: at least one parameter must be specified between AUM and ABS");
1177
1177
  }
1178
1178
 
1179
- if ((!isNullLike(val === null || val === void 0 ? void 0 : val.minAbs) || !isNullLike(val === null || val === void 0 ? void 0 : val.maxAbs)) && val.minAbs >= val.maxAbs) // return { [i]: { minAbs: 'Min ABS should smaller than Max ABS' } }
1179
+ if ((!isNullLike(val === null || val === void 0 ? void 0 : val.minAbs) || !isNullLike(val === null || val === void 0 ? void 0 : val.maxAbs)) && +val.minAbs >= +val.maxAbs) // return { [i]: { minAbs: 'Min ABS should smaller than Max ABS' } }
1180
1180
  return "The ".concat(i + 1, "th item: Min ABS should smaller than Max ABS");
1181
1181
 
1182
- if ((!isNullLike(val === null || val === void 0 ? void 0 : val.minAumPercentage) || !isNullLike(val === null || val === void 0 ? void 0 : val.maxAumPercentage)) && val.minAumPercentage >= val.maxAumPercentage) {
1182
+ if ((!isNullLike(val === null || val === void 0 ? void 0 : val.minAumPercentage) || !isNullLike(val === null || val === void 0 ? void 0 : val.maxAumPercentage)) && +val.minAumPercentage >= +val.maxAumPercentage) {
1183
1183
  // return {
1184
1184
  // [i]: { minAumPercentage: 'Min AUM should smaller than Max AUM' },
1185
1185
  // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",