Socket
Socket
Sign inDemoInstall

is-type-of

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-type-of - npm Package Compare versions

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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc