Socket
Socket
Sign inDemoInstall

is-what

Package Overview
Dependencies
0
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.7 to 4.1.8

3

dist/index.es.js

@@ -37,3 +37,4 @@ /**

return false;
return payload.constructor === Object && Object.getPrototypeOf(payload) === Object.prototype;
const prototype = Object.getPrototypeOf(payload);
return prototype.constructor === Object && prototype === Object.prototype;
}

@@ -40,0 +41,0 @@ /**

@@ -1,6 +0,6 @@

export declare type AnyFunction = (...args: any[]) => any;
export declare type AnyAsyncFunction = (...args: any[]) => Promise<any>;
export declare type AnyClass = new (...args: any[]) => any;
export declare type PlainObject = Record<string | number | symbol, any>;
declare type TypeGuard<A, B extends A> = (payload: A) => payload is B;
export type AnyFunction = (...args: any[]) => any;
export type AnyAsyncFunction = (...args: any[]) => Promise<any>;
export type AnyClass = new (...args: any[]) => any;
export type PlainObject = Record<string | number | symbol, any>;
type TypeGuard<A, B extends A> = (payload: A) => payload is B;
/**

@@ -7,0 +7,0 @@ * Returns the object type of the given payload

@@ -5,3 +5,3 @@ {

"type": "module",
"version": "4.1.7",
"version": "4.1.8",
"description": "JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.",

@@ -27,3 +27,3 @@ "module": "./dist/index.es.js",

"lint": "tsc --noEmit && eslint ./src --ext .ts",
"build": "rollup -c ./scripts/build.js",
"build": "rollup --bundleConfigAsCjs -c ./scripts/build.js",
"release": "npm run lint && del dist && npm run build && np"

@@ -64,14 +64,14 @@ },

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1",
"del-cli": "^4.0.1",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"del-cli": "^5.0.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-tree-shaking": "^1.10.0",
"np": "^7.6.0",
"prettier": "^2.5.1",
"rollup": "^2.66.1",
"rollup-plugin-typescript2": "^0.31.1",
"typescript": "^4.5.5",
"vitest": "^0.2.3"
"np": "^7.6.2",
"prettier": "^2.8.0",
"rollup": "^3.5.0",
"rollup-plugin-typescript2": "^0.34.1",
"typescript": "^4.9.3",
"vitest": "^0.25.3"
},

@@ -78,0 +78,0 @@ "ava": {

@@ -14,2 +14,4 @@ # is What? 🙉

> Also check out [is-where 🙈](https://github.com/mesqueeb/is-where)
## Motivation

@@ -245,12 +247,16 @@

```
## Meet the family (more tiny utils with TS support)
## Meet the family
- [is-what 🙉](https://github.com/mesqueeb/is-what)
- [is-where 🙈](https://github.com/mesqueeb/is-where)
- [merge-anything 🥡](https://github.com/mesqueeb/merge-anything)
- [check-anything 👁](https://github.com/mesqueeb/check-anything)
- [remove-anything ✂️](https://github.com/mesqueeb/remove-anything)
- [getorset-anything 🐊](https://github.com/mesqueeb/getorset-anything)
- [map-anything 🗺](https://github.com/mesqueeb/map-anything)
- [filter-anything ⚔️](https://github.com/mesqueeb/filter-anything)
- [find-and-replace-anything 🎣](https://github.com/mesqueeb/find-and-replace-anything)
- [compare-anything 🛰](https://github.com/mesqueeb/compare-anything)
- [copy-anything 🎭](https://github.com/mesqueeb/copy-anything)
- [case-anything 🐫](https://github.com/mesqueeb/case-anything)
- [flatten-anything 🏏](https://github.com/mesqueeb/flatten-anything)
- [nestify-anything 🧅](https://github.com/mesqueeb/nestify-anything)

@@ -277,2 +283,2 @@ ## Source code

See the full source code [here](https://github.com/mesqueeb/is-what/blob/master/src/index.ts).
See the full source code [here](https://github.com/mesqueeb/is-what/blob/production/src/index.ts).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc