lodash-omitdeep 1.0.7 → 1.0.10
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 +14 -7
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# lodash-omitdeep
|
|
2
|
+
|
|
2
3
|
> Lodash omitDeep/omitDeepBy object key/value recursively
|
|
3
4
|
|
|
4
5
|
lodash-omitdeep allows you to execute lodash omit, omitBy functions recursively.
|
|
6
|
+
|
|
5
7
|
## Install
|
|
6
8
|
|
|
7
9
|
Install with [npm](https://www.npmjs.com/)
|
|
@@ -9,40 +11,45 @@ Install with [npm](https://www.npmjs.com/)
|
|
|
9
11
|
```sh
|
|
10
12
|
$ npm i lodash-omitdeep --save
|
|
11
13
|
```
|
|
14
|
+
|
|
12
15
|
Install with [yarn](https://yarnpkg.com/)
|
|
13
16
|
|
|
14
17
|
```sh
|
|
15
18
|
$ yarn add lodash-omitdeep
|
|
16
19
|
```
|
|
20
|
+
|
|
17
21
|
## Usage
|
|
22
|
+
|
|
18
23
|
### omitDeep
|
|
24
|
+
|
|
19
25
|
```js
|
|
20
26
|
import { omitDeep } from 'lodash-omitdeep';
|
|
21
|
-
omitDeep({a:
|
|
27
|
+
omitDeep({ a: 'a', b: 'b', c: { b: 'b', d: { b: 'b', f: 'f' } } }, 'b');
|
|
22
28
|
//=> {a: "a", c: {d: {f: "f"}}}
|
|
23
|
-
omitDeep({a:
|
|
29
|
+
omitDeep({ a: 'a', b: 'b', c: { b: 'b', d: { b: 'b', f: 'f' } } }, ['a', 'b']);
|
|
24
30
|
//=> {c: {d: {f: "f"}}}
|
|
25
31
|
```
|
|
32
|
+
|
|
26
33
|
### omitByDeep
|
|
34
|
+
|
|
27
35
|
```js
|
|
28
36
|
import { omitDeepBy } from 'lodash-omitdeep';
|
|
29
37
|
import isNil from 'lodash/isNil';
|
|
30
38
|
import isNumber from 'lodash/isNumber';
|
|
31
39
|
|
|
32
|
-
omitByDeep({a:
|
|
40
|
+
omitByDeep({ a: 'a', b: null, c: { b: 'b', d: { b: 'b', f: null } } }, isNil);
|
|
33
41
|
//=> {a: "a", c: {b: "b", d: {b: "b"}}}
|
|
34
|
-
omitByDeep({a: 2, b:
|
|
42
|
+
omitByDeep({ a: 2, b: 'b', c: { b: 4, d: { b: 1, f: 'f' } } }, isNumber);
|
|
35
43
|
//=> {b: "b", c: {d: {f: "f"}}}
|
|
36
44
|
```
|
|
37
45
|
|
|
38
46
|
## Contributing
|
|
39
47
|
|
|
40
|
-
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/
|
|
48
|
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/debabin/lodash-omitdeep/issues/new)
|
|
41
49
|
|
|
42
50
|
## Author
|
|
43
51
|
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
- [github/debabin](https://github.com/debabin)
|
|
46
53
|
|
|
47
54
|
## License
|
|
48
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lodash-omitdeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "Lodash omitDeep/omitByDeep object key/value recursively",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"object",
|
|
18
18
|
"deep"
|
|
19
19
|
],
|
|
20
|
-
"homepage": "https://github.com/
|
|
21
|
-
"author": "Dmitriy Babin (https://github.com/
|
|
20
|
+
"homepage": "https://github.com/debabin/lodash-omitdeep",
|
|
21
|
+
"author": "Dmitriy Babin (https://github.com/debabin)",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "https://github.com/
|
|
24
|
+
"url": "https://github.com/debabin/lodash-omitdeep"
|
|
25
25
|
},
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/
|
|
27
|
+
"url": "https://github.com/debabin/lodash-omitdeep/issues"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"lib/**/*"
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
},
|
|
43
43
|
"license": "ISC",
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/jest": "^
|
|
46
|
-
"@types/lodash.isnil": "^4.0.
|
|
47
|
-
"@types/lodash.isplainobject": "^4.0.
|
|
48
|
-
"@types/lodash.omit": "^4.5.
|
|
49
|
-
"@types/lodash.omitby": "^4.6.
|
|
50
|
-
"jest": "^
|
|
51
|
-
"prettier": "^2.
|
|
52
|
-
"ts-jest": "^
|
|
45
|
+
"@types/jest": "^28.1.3",
|
|
46
|
+
"@types/lodash.isnil": "^4.0.7",
|
|
47
|
+
"@types/lodash.isplainobject": "^4.0.7",
|
|
48
|
+
"@types/lodash.omit": "^4.5.7",
|
|
49
|
+
"@types/lodash.omitby": "^4.6.7",
|
|
50
|
+
"jest": "^28.1.1",
|
|
51
|
+
"prettier": "^2.7.1",
|
|
52
|
+
"ts-jest": "^28.0.5",
|
|
53
53
|
"tslint": "^6.1.3",
|
|
54
54
|
"tslint-config-prettier": "^1.18.0",
|
|
55
|
-
"typescript": "^4.
|
|
55
|
+
"typescript": "^4.7.4"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"lodash.isnil": "^4.0.0",
|