lodash-omitdeep 1.0.1 → 1.0.5
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 +3 -3
- package/lib/omitDeepBy/omitDeepBy.d.ts +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ lodash-omitdeep allows you to execute lodash omit, omitBy functions recursively.
|
|
|
7
7
|
Install with [npm](https://www.npmjs.com/)
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
$ npm i lodash-omitdeep
|
|
10
|
+
$ npm i lodash-omitdeep --save
|
|
11
11
|
```
|
|
12
12
|
Install with [yarn](https://yarnpkg.com/)
|
|
13
13
|
|
|
@@ -29,9 +29,9 @@ import { omitDeepBy } from 'lodash-omitdeep';
|
|
|
29
29
|
import isNil from 'lodash/isNil';
|
|
30
30
|
import isNumber from 'lodash/isNumber';
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
omitByDeep({a: "a", b: null, c: {b: "b", d: {b: "b", f: null}}}, isNil);
|
|
33
33
|
//=> {a: "a", c: {b: "b", d: {b: "b"}}}
|
|
34
|
-
|
|
34
|
+
omitByDeep({a: 2, b: "b", c: {b: 4, d: {b: 1, f: "f"}}}, isNumber);
|
|
35
35
|
//=> {b: "b", c: {d: {f: "f"}}}
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -10,10 +10,10 @@ import { PartialObject, ValueKeyIteratee, NumericDictionary, Dictionary } from '
|
|
|
10
10
|
* @returns Returns the new object.
|
|
11
11
|
* @example
|
|
12
12
|
*
|
|
13
|
-
* var object = { 'a': 1, 'b':
|
|
13
|
+
* var object = { 'a': 1, 'b': null, 'c': { 'a': 1, 'b': null } };
|
|
14
14
|
*
|
|
15
15
|
* omitByDeep(object, _.isNil);
|
|
16
|
-
* // => { a: 1, c: { a: 1 } }
|
|
16
|
+
* // => { 'a': 1, 'c': { 'a': 1 } }
|
|
17
17
|
*/
|
|
18
18
|
declare function omitByDeep<T>(object: Dictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): Dictionary<T>;
|
|
19
19
|
declare function omitByDeep<T>(object: NumericDictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): NumericDictionary<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lodash-omitdeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Lodash omitDeep/omitByDeep object key/value recursively",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
},
|
|
43
43
|
"license": "ISC",
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/jest": "^27.0
|
|
45
|
+
"@types/jest": "^27.4.0",
|
|
46
46
|
"@types/lodash.isnil": "^4.0.6",
|
|
47
47
|
"@types/lodash.isplainobject": "^4.0.6",
|
|
48
48
|
"@types/lodash.omit": "^4.5.6",
|
|
49
49
|
"@types/lodash.omitby": "^4.6.6",
|
|
50
|
-
"jest": "^27.4.
|
|
50
|
+
"jest": "^27.4.7",
|
|
51
51
|
"prettier": "^2.5.1",
|
|
52
|
-
"ts-jest": "^27.1.
|
|
52
|
+
"ts-jest": "^27.1.3",
|
|
53
53
|
"tslint": "^6.1.3",
|
|
54
54
|
"tslint-config-prettier": "^1.18.0",
|
|
55
|
-
"typescript": "^4.5.
|
|
55
|
+
"typescript": "^4.5.4"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"lodash.isnil": "^4.0.0",
|