typof 1.0.6 → 1.0.7

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
@@ -66,9 +66,7 @@ var typof = (value) => {
66
66
  types.push("number");
67
67
  if (Number.isInteger(number2)) {
68
68
  types.push("integer");
69
- } else if (!Number.isInteger(number2)) {
70
- types.push("float");
71
- }
69
+ } else types.push("float");
72
70
  }
73
71
  if (value === "true" || value === "false") types.push("boolean");
74
72
  if (isObject(value) && !Array.isArray(JSON.parse(value))) types.push("object");
@@ -81,9 +79,7 @@ var typof = (value) => {
81
79
  types.push("number");
82
80
  if (Number.isInteger(value)) {
83
81
  types.push("integer");
84
- } else if (!Number.isInteger(value)) {
85
- types.push("float");
86
- }
82
+ } else types.push("float");
87
83
  } else if (typeof value === "boolean") {
88
84
  types.push("boolean");
89
85
  } else if (isObject(value) && !Array.isArray(value)) {
package/dist/main.mjs CHANGED
@@ -31,9 +31,7 @@ var typof = (value) => {
31
31
  types.push("number");
32
32
  if (Number.isInteger(number2)) {
33
33
  types.push("integer");
34
- } else if (!Number.isInteger(number2)) {
35
- types.push("float");
36
- }
34
+ } else types.push("float");
37
35
  }
38
36
  if (value === "true" || value === "false") types.push("boolean");
39
37
  if (isObject(value) && !Array.isArray(JSON.parse(value))) types.push("object");
@@ -46,9 +44,7 @@ var typof = (value) => {
46
44
  types.push("number");
47
45
  if (Number.isInteger(value)) {
48
46
  types.push("integer");
49
- } else if (!Number.isInteger(value)) {
50
- types.push("float");
51
- }
47
+ } else types.push("float");
52
48
  } else if (typeof value === "boolean") {
53
49
  types.push("boolean");
54
50
  } else if (isObject(value) && !Array.isArray(value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typof",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Infer types.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/keift/typof",