is-type-of
Advanced tools
Comparing version 0.2.1 to 0.3.0
11
index.js
@@ -72,7 +72,2 @@ /*! | ||
exports.long = function (obj) { | ||
if (typeof obj === 'object' && typeof obj.high === 'number' && typeof obj.low === 'number') { | ||
// support `long` module | ||
return true; | ||
} | ||
return exports.int(obj) | ||
@@ -82,2 +77,8 @@ && (obj >= MAX_INT_31 || obj < -MAX_INT_31); | ||
exports.Long = function (obj) { | ||
return exports.object(obj) | ||
&& exports.number(obj.high) | ||
&& exports.number(obj.low); | ||
}; | ||
exports.double = function (obj) { | ||
@@ -84,0 +85,0 @@ return utils.isNumber(obj) |
{ | ||
"name": "is-type-of", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "complete type checking for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -92,6 +92,8 @@ is-type-of | ||
* Support [Long](https://github.com/dcodeIO/Long.js) instance. | ||
#### is.Long(Long) | ||
* Support [Long](https://github.com/dcodeIO/Long.js) instance. | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4059
78
99