remove-anything 1.0.3 → 1.0.4
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 +11 -6
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ const payload = { a: 1, b: undefined }
|
|
|
36
36
|
removeProp(payload, 1, undefined)
|
|
37
37
|
|
|
38
38
|
// returns
|
|
39
|
-
// {
|
|
39
|
+
// {}
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### Remove Empty Objects and Arrays
|
|
@@ -49,12 +49,17 @@ removeProps(payload, {}, [])
|
|
|
49
49
|
// { a: 1, b: undefined }
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
## Meet the family
|
|
52
|
+
## Meet the family (more tiny utils with TS support)
|
|
53
53
|
|
|
54
|
-
- [
|
|
54
|
+
- [is-what 🙉](https://github.com/mesqueeb/is-what)
|
|
55
|
+
- [is-where 🙈](https://github.com/mesqueeb/is-where)
|
|
55
56
|
- [merge-anything 🥡](https://github.com/mesqueeb/merge-anything)
|
|
57
|
+
- [check-anything 👁](https://github.com/mesqueeb/check-anything)
|
|
58
|
+
- [remove-anything ✂️](https://github.com/mesqueeb/remove-anything)
|
|
59
|
+
- [getorset-anything 🐊](https://github.com/mesqueeb/getorset-anything)
|
|
60
|
+
- [map-anything 🗺](https://github.com/mesqueeb/map-anything)
|
|
56
61
|
- [filter-anything ⚔️](https://github.com/mesqueeb/filter-anything)
|
|
57
|
-
- [
|
|
58
|
-
- [
|
|
62
|
+
- [copy-anything 🎭](https://github.com/mesqueeb/copy-anything)
|
|
63
|
+
- [case-anything 🐫](https://github.com/mesqueeb/case-anything)
|
|
59
64
|
- [flatten-anything 🏏](https://github.com/mesqueeb/flatten-anything)
|
|
60
|
-
- [
|
|
65
|
+
- [nestify-anything 🧅](https://github.com/mesqueeb/nestify-anything)
|
package/package.json
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"name": "remove-anything",
|
|
3
3
|
"sideEffects": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.4",
|
|
6
6
|
"description": "Remove any prop (eg. `undefined`) from an object",
|
|
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": [
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"lint": "tsc --noEmit && eslint ./src --ext .ts",
|
|
26
|
-
"build": "rollup -c
|
|
26
|
+
"build": "rollup --bundleConfigAsCjs -c ./scripts/build.js",
|
|
27
27
|
"release": "npm run lint && del dist && npm run build && np"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"is-what": "^4.1.
|
|
30
|
+
"is-what": "^4.1.8"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
34
|
-
"@typescript-eslint/parser": "^5.
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
34
|
+
"@typescript-eslint/parser": "^5.59.2",
|
|
35
35
|
"del-cli": "^5.0.0",
|
|
36
|
-
"eslint": "^8.
|
|
37
|
-
"eslint-config-prettier": "^8.
|
|
36
|
+
"eslint": "^8.40.0",
|
|
37
|
+
"eslint-config-prettier": "^8.8.0",
|
|
38
38
|
"eslint-plugin-tree-shaking": "^1.10.0",
|
|
39
|
-
"np": "^7.
|
|
40
|
-
"prettier": "^2.
|
|
41
|
-
"rollup": "^3.
|
|
39
|
+
"np": "^7.7.0",
|
|
40
|
+
"prettier": "^2.8.8",
|
|
41
|
+
"rollup": "^3.21.5",
|
|
42
42
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
43
|
-
"typescript": "^4.
|
|
44
|
-
"vitest": "^0.
|
|
43
|
+
"typescript": "^4.9.5",
|
|
44
|
+
"vitest": "^0.31.0"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"remove",
|