@varlet/shared 2.19.2-alpha.1700638874586 → 2.19.2

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/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -22,7 +22,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
22
  var isString = (val) => typeof val === "string";
23
23
  var isBoolean = (val) => typeof val === "boolean";
24
24
  var isNumber = (val) => typeof val === "number";
25
- var isNumeric = (val) => isNumber(val) || isString(val) && /^\d+$/.test(val);
25
+ var isNumeric = (val) => isNumber(val) || isString(val) && /^[-+]?\d+$/.test(val);
26
26
  var isPlainObject = (val) => Object.prototype.toString.call(val) === "[object Object]";
27
27
  var isObject = (val) => typeof val === "object" && val !== null;
28
28
  var isFunction = (val) => typeof val === "function";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/shared",
3
- "version": "2.19.2-alpha.1700638874586",
3
+ "version": "2.19.2",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",