typof 1.0.0 → 1.0.1

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/dist/main.js CHANGED
@@ -59,6 +59,7 @@ var typof = (value) => {
59
59
  value = value.trim();
60
60
  if (typeof value !== "string") return types;
61
61
  types.push("string");
62
+ if (value === "") return types;
62
63
  if (Number.isFinite(Number(value))) {
63
64
  const number2 = Number(value);
64
65
  types.push("number");
package/dist/main.mjs CHANGED
@@ -25,6 +25,7 @@ var typof = (value) => {
25
25
  value = value.trim();
26
26
  if (typeof value !== "string") return types;
27
27
  types.push("string");
28
+ if (value === "") return types;
28
29
  if (Number.isFinite(Number(value))) {
29
30
  const number2 = Number(value);
30
31
  types.push("number");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typof",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Extract the valid types.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/keift/typof",