Socket
Socket
Sign inDemoInstall

is-what

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-what - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/index.js
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({1:[function(require,module,exports) {
"use strict";function e(e){return Object.prototype.toString.call(e).slice(8,-1)}function n(n){return"Undefined"===e(n)}function t(n){return"Null"===e(n)}function r(n){return"Object"===e(n)}function u(n){return"Array"===e(n)}function i(n){return"String"===e(n)}function o(n){return"Number"===e(n)}function c(n){return"Boolean"===e(n)}function s(n){return"RegExp"===e(n)}function f(n){return"Date"===e(n)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={getType:e,isUndefined:n,isNull:t,isObject:r,isArray:u,isString:i,isNumber:o,isBoolean:c,isRegExp:s,isDate:f};
function n(n){return Object.prototype.toString.call(n).slice(8,-1)}function t(t){return"Undefined"===n(t)}function e(t){return"Null"===n(t)}function r(t){return"Object"===n(t)}function i(t){return"Array"===n(t)}function u(t){return"String"===n(t)}function o(t){return"Number"===n(t)}function c(t){return"Boolean"===n(t)}function f(t){return"RegExp"===n(t)}function s(t){return"Date"===n(t)}module.exports={getType:n,isUndefined:t,isNull:e,isObject:r,isArray:i,isString:u,isNumber:o,isBoolean:c,isRegExp:f,isDate:s};
},{}]},{},[1], null)
//# sourceMappingURL=/index.map
{
"name": "is-what",
"version": "1.0.1",
"version": "1.0.2",
"description": "Very simple & small JS type check function",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "npm i && npm i -g parcel-bundler && parcel build ./src/index.js"
},

@@ -9,0 +10,0 @@ "repository": {

@@ -41,5 +41,3 @@ # isWhat

```bash
npm i
npm i -g parcel-bundler
parcel build ./src/index.js
npm run build
```

@@ -33,3 +33,3 @@

export default {
module.exports = {
getType,

@@ -36,0 +36,0 @@ isUndefined,

Sorry, the diff of this file is not supported yet

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