🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

get-type

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-type - npm Package Compare versions

Comparing version
1.0.0
to
1.1.0
+14
.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.8"
branches:
only:
- master
notifications:
email:
- joaquim.serafim@gmail.com
script: npm test
before_install:
- npm install -g npm@~1.4.6
+2
-2
var is = require('core-util-is');
is.isJSON = require('is-json');
is.isJSON = require('is-json').strict;

@@ -18,6 +18,6 @@

return this.isNull(op) ? 'null' :
this.isJSON(op) ? 'json' :
this.isBoolean(op) ? 'boolean' :
this.isNumber(op) ? 'number' :
this.isSymbol(op) ? 'symbol' :
this.isJSON(op) ? 'json' :
this.isString(op) ? 'string' :

@@ -24,0 +24,0 @@ this.isUndefined(op) ? 'undefined' : 'unknown';

{
"name": "get-type",
"version": "1.0.0",
"version": "1.1.0",
"description": "Get the type of a variable or one unevaluated operand",

@@ -20,3 +20,3 @@ "main": "index.js",

"core-util-is": "^1.0.1",
"is-json": "^1.1.3"
"is-json": "^1.2.5"
},

@@ -23,0 +23,0 @@ "devDependencies": {