compare-anything 1.0.2 → 1.0.3

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
@@ -10,16 +10,20 @@ npm i compare-anything
10
10
  Compares objects and arrays and tells you which props or values are duplicates, and which are only present once.
11
11
 
12
12
  It works just like you would compare two columns in excel! But who needs excel when you've got JavaScript, am I right? 😃
13
+ ## Meet the family (more tiny utils with TS support)
13
14
 
14
- ## Meet the family
15
-
15
+ - [is-what 🙉](https://github.com/mesqueeb/is-what)
16
+ - [is-where 🙈](https://github.com/mesqueeb/is-where)
16
17
  - [merge-anything 🥡](https://github.com/mesqueeb/merge-anything)
18
+ - [check-anything 👁](https://github.com/mesqueeb/check-anything)
19
+ - [remove-anything ✂️](https://github.com/mesqueeb/remove-anything)
20
+ - [getorset-anything 🐊](https://github.com/mesqueeb/getorset-anything)
21
+ - [map-anything 🗺](https://github.com/mesqueeb/map-anything)
17
22
  - [filter-anything ⚔️](https://github.com/mesqueeb/filter-anything)
18
- - [find-and-replace-anything 🎣](https://github.com/mesqueeb/find-and-replace-anything)
19
- - [compare-anything 🛰](https://github.com/mesqueeb/compare-anything)
20
23
  - [copy-anything 🎭](https://github.com/mesqueeb/copy-anything)
24
+ - [case-anything 🐫](https://github.com/mesqueeb/case-anything)
21
25
  - [flatten-anything 🏏](https://github.com/mesqueeb/flatten-anything)
22
- - [is-what 🙉](https://github.com/mesqueeb/is-what)
26
+ - [nestify-anything 🧅](https://github.com/mesqueeb/nestify-anything)
23
27
 
24
28
  ## Usage
25
29
 
package/dist/index.cjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var isWhat = require('is-what');
6
4
  var filterAnything = require('filter-anything');
7
5
 
@@ -1,5 +1,5 @@
1
1
  import { ComparisonObjects } from './compareObjectsBasedOn';
2
- export declare type ComparisonObjectArrays<ObjectType> = {
2
+ export type ComparisonObjectArrays<ObjectType> = {
3
3
  perIndex: ComparisonObjects<ObjectType>[];
4
4
  equal: boolean;
5
5
  };
@@ -1,4 +1,4 @@
1
- export declare type ComparisonObjects<ObjectType> = {
1
+ export type ComparisonObjects<ObjectType> = {
2
2
  differentProps: (keyof ObjectType)[];
3
3
  differentPropsPicked: Partial<ObjectType>[];
4
4
  equal: boolean;
package/package.json CHANGED
@@ -2,16 +2,16 @@
2
2
  "name": "compare-anything",
3
3
  "sideEffects": false,
4
4
  "type": "module",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "description": "Compares objects and arrays and tells you which props or values are duplicates, and which are only present once.",
7
7
  "module": "./dist/index.es.js",
8
8
  "main": "./dist/index.cjs",
9
9
  "types": "./dist/types/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
+ "types": "./dist/types/index.d.ts",
12
13
  "import": "./dist/index.es.js",
13
- "require": "./dist/index.cjs",
14
- "types": "./dist/types/index.d.ts"
14
+ "require": "./dist/index.cjs"
15
15
  }
16
16
  },
17
17
  "files": [
@@ -27,27 +27,27 @@
27
27
  "scripts": {
28
28
  "test": "vitest run",
29
29
  "lint": "tsc --noEmit && eslint ./src --ext .ts",
30
- "build": "rollup -c ./scripts/build.js",
30
+ "build": "rollup --bundleConfigAsCjs -c ./scripts/build.js",
31
31
  "release": "npm run lint && del dist && npm run build && np"
32
32
  },
33
33
  "dependencies": {
34
34
  "filter-anything": "^2.2.4",
35
- "is-what": "^4.1.6"
35
+ "is-what": "^4.1.8"
36
36
  },
37
37
  "devDependencies": {
38
- "@typescript-eslint/eslint-plugin": "^5.10.1",
39
- "@typescript-eslint/parser": "^5.10.1",
38
+ "@typescript-eslint/eslint-plugin": "^5.59.2",
39
+ "@typescript-eslint/parser": "^5.59.2",
40
40
  "del-cli": "^4.0.1",
41
- "eslint": "^8.7.0",
42
- "eslint-config-prettier": "^8.3.0",
41
+ "eslint": "^8.40.0",
42
+ "eslint-config-prettier": "^8.8.0",
43
43
  "eslint-plugin-tree-shaking": "^1.10.0",
44
44
  "flatten-anything": "^2.0.7",
45
- "np": "^7.6.0",
46
- "prettier": "^2.5.1",
47
- "rollup": "^2.66.1",
48
- "rollup-plugin-typescript2": "^0.31.1",
49
- "typescript": "^4.5.5",
50
- "vitest": "^0.2.3"
45
+ "np": "^7.7.0",
46
+ "prettier": "^2.8.8",
47
+ "rollup": "^3.21.5",
48
+ "rollup-plugin-typescript2": "^0.34.1",
49
+ "typescript": "^4.9.5",
50
+ "vitest": "^0.31.0"
51
51
  },
52
52
  "keywords": [
53
53
  "typescript",