Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

whichtype

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whichtype - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+31
-13
dist/object.js

@@ -15,6 +15,9 @@ "use strict";

return false;
Object.values(x).forEach(v => {
const values = Object.values(x);
if (values.length === 0)
return false;
for (const v of values) {
if (!(0, basictypes_1.isArray)(v))
return false;
});
}
return true;

@@ -26,6 +29,9 @@ }

return false;
Object.values(x).forEach(v => {
const values = Object.values(x);
if (values.length === 0)
return false;
for (const v of values) {
if (!(0, basictypes_1.isBoolean)(v))
return false;
});
}
return true;

@@ -37,6 +43,9 @@ }

return false;
Object.values(x).forEach(v => {
const values = Object.values(x);
if (values.length === 0)
return false;
for (const v of values) {
if (!(0, basictypes_1.isChar)(v))
return false;
});
}
return true;

@@ -48,6 +57,9 @@ }

return false;
Object.values(x).forEach(v => {
const values = Object.values(x);
if (values.length === 0)
return false;
for (const v of values) {
if (!(0, basictypes_1.isNumber)(v))
return false;
});
}
return true;

@@ -59,6 +71,9 @@ }

return false;
Object.values(x).forEach(v => {
if (!(0, basictypes_1.isArray)(v))
const values = Object.values(x);
if (values.length === 0)
return false;
for (const v of values) {
if (!(0, basictypes_1.isObject)(v))
return false;
});
}
return true;

@@ -70,8 +85,11 @@ }

return false;
Object.values(x).forEach(v => {
const values = Object.values(x);
if (values.length === 0)
return false;
for (const v of values) {
if (!(0, basictypes_1.isString)(v))
return false;
});
}
return true;
}
exports.isObjectOfStrings = isObjectOfStrings;
{
"name": "whichtype",
"version": "1.0.1",
"version": "1.0.2",
"description": "Whichtype is a small JavaScript library for checking the type of your variables.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -80,3 +80,3 @@

| `Description` | `Whichtype is a small JavaScript library for checking the type of your variables.` |
| `Version` | `1.0.1` |
| `Version` | `1.0.2` |
| `Author` | `iaseth` |

@@ -83,0 +83,0 @@ | `Homepage` | `https://github.com/iaseth/whichtype` |