is-what 5.0.0 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -291,4 +291,4 @@ function isAnyObject(payload) {
291
291
  // etc...
292
292
  ```
293
293
 
294
- See the full source code [here](https://github.com/mesqueeb/is-what/blob/production/src/index.ts).
294
+ See the full source code [here](https://github.com/mesqueeb/is-what/blob/main/src/index.ts).
@@ -1,3 +1,3 @@
1
- export type AnyFunction = (...args: unknown[]) => unknown;
1
+ export type AnyFunction = (...args: any[]) => any;
2
2
  /** Returns whether the payload is a function (regular or async) */
3
3
  export declare function isFunction(payload: unknown): payload is AnyFunction;
@@ -1,4 +1,6 @@
1
- export type PlainObject = Record<string | number | symbol, unknown>;
1
+ export type PlainObject = {
2
+ [key in string | number | symbol]: unknown;
3
+ };
2
4
  /**
3
5
  * Returns whether the payload is a plain JavaScript object (excluding special classes or objects
4
6
  * with other prototypes)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-what",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -8,9 +8,6 @@
8
8
  ".": "./dist/index.js",
9
9
  "./*": "./dist/*"
10
10
  },
11
- "files": [
12
- "dist"
13
- ],
14
11
  "engines": {
15
12
  "node": ">=18"
16
13
  },
@@ -21,10 +18,17 @@
21
18
  "build:docs": "typedoc",
22
19
  "release": "npm run lint && npm run build && np"
23
20
  },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/mesqueeb/is-what.git"
21
+ "devDependencies": {
22
+ "@cycraft/eslint": "^0.3.0",
23
+ "@cycraft/tsconfig": "^0.1.2",
24
+ "del-cli": "^5.1.0",
25
+ "np": "^10.0.5",
26
+ "typedoc": "^0.25.13",
27
+ "vitest": "^1.6.0"
27
28
  },
29
+ "files": [
30
+ "dist"
31
+ ],
28
32
  "keywords": [
29
33
  "javascript",
30
34
  "typescript",
@@ -46,21 +50,13 @@
46
50
  "is-plain-obj",
47
51
  "is-plain-object"
48
52
  ],
49
- "author": "Luca Ban - Mesqueeb",
53
+ "author": "Luca Ban - Mesqueeb (https://cycraft.co)",
50
54
  "funding": "https://github.com/sponsors/mesqueeb",
51
55
  "license": "MIT",
52
- "homepage": "https://github.com/mesqueeb/is-what#readme",
53
- "devDependencies": {
54
- "@cycraft/eslint": "^0.0.2",
55
- "@cycraft/tsconfig": "^0.1.2",
56
- "del-cli": "^5.1.0",
57
- "np": "^10.0.5",
58
- "typedoc": "^0.25.13",
59
- "vitest": "^1.6.0"
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "https://github.com/mesqueeb/is-what.git"
60
59
  },
61
- "np": {
62
- "branch": "production",
63
- "publish": false,
64
- "yarn": false
65
- }
60
+ "homepage": "https://github.com/mesqueeb/is-what#readme",
61
+ "bugs": "https://github.com/mesqueeb/is-what/issues"
66
62
  }