@bigbinary/neetoui 5.2.21 → 5.2.22

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/formik.cjs.js CHANGED
@@ -17549,10 +17549,11 @@ var getScrollbarWidth = function getScrollbarWidth() {
17549
17549
  return scrollbarWidth;
17550
17550
  };
17551
17551
  var noop$1 = function noop() {};
17552
- var hyphenize = function hyphenize(string) {
17552
+ var hyphenize = function hyphenize(input) {
17553
17553
  var fallbackString = "nui";
17554
- if (string && typeof string === "string" && string.replace) {
17555
- return string.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
17554
+ if (typeof input === "number") return String(input);
17555
+ if (input && typeof input === "string" && input.replace) {
17556
+ return input.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
17556
17557
  }
17557
17558
  return fallbackString;
17558
17559
  };