@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/index.cjs.js CHANGED
@@ -11601,10 +11601,11 @@ var getScrollbarWidth = function getScrollbarWidth() {
11601
11601
  return scrollbarWidth;
11602
11602
  };
11603
11603
  var noop$2 = function noop() {};
11604
- var hyphenize = function hyphenize(string) {
11604
+ var hyphenize = function hyphenize(input) {
11605
11605
  var fallbackString = "nui";
11606
- if (string && typeof string === "string" && string.replace) {
11607
- return string.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
11606
+ if (typeof input === "number") return String(input);
11607
+ if (input && typeof input === "string" && input.replace) {
11608
+ return input.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
11608
11609
  }
11609
11610
  return fallbackString;
11610
11611
  };