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 3.5.0 to 3.5.1

.eslintignore

2

dist/index.cjs.js

@@ -221,3 +221,3 @@ 'use strict';

}
if (!type.hasOwnProperty('prototype')) {
if (!Object.prototype.hasOwnProperty.call(type, 'prototype')) {
throw new TypeError('Type is not a class');

@@ -224,0 +224,0 @@ }

@@ -217,3 +217,3 @@ /**

}
if (!type.hasOwnProperty('prototype')) {
if (!Object.prototype.hasOwnProperty.call(type, 'prototype')) {
throw new TypeError('Type is not a class');

@@ -220,0 +220,0 @@ }

{
"name": "is-what",
"version": "3.5.0",
"sideEffects": false,
"version": "3.5.1",
"description": "JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.",

@@ -11,3 +12,5 @@ "main": "dist/index.cjs.js",

"test-w": "jest --watchAll",
"build": "rollup -c ./build/rollup.js && npm run test"
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"rollup": "rollup -c ./build/rollup.js",
"build": "npm run lint && npm run rollup && npm run test"
},

@@ -46,15 +49,20 @@ "repository": {

"devDependencies": {
"@babel/core": "^7.7.4",
"@babel/core": "^7.8.3",
"@types/babel-core": "^6.25.6",
"@types/jest": "^24.0.23",
"@types/jest": "^24.9.0",
"@typescript-eslint/eslint-plugin": "^2.16.0",
"@typescript-eslint/parser": "^2.16.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.9.0",
"babel-preset-env": "^1.7.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-tree-shaking": "^1.8.0",
"jest": "^24.9.0",
"regenerator-runtime": "^0.13.3",
"rollup": "^1.27.4",
"rollup-plugin-typescript2": "^0.25.2",
"typescript": "^3.7.2"
"rollup": "^1.29.0",
"rollup-plugin-typescript2": "^0.25.3",
"typescript": "^3.7.5"
},
"dependencies": {}
}

@@ -241,8 +241,8 @@ /**

}
if (!type.hasOwnProperty('prototype')) {
if (!Object.prototype.hasOwnProperty.call(type, 'prototype')) {
throw new TypeError('Type is not a class')
}
// Classes usually have names (as functions usually have names)
const name: string | undefined | null = (<any>type).name
const name: string | undefined | null = (type as any).name
return getType(payload) === name || Boolean(payload && payload.constructor === type)
}
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