lodash-omitdeep 1.6.1 → 1.6.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
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
# ♻️ Lodash Omit Deep
|
|
2
|
-
|
|
3
|
-
> Lodash omitDeep/omitDeepBy object key/value recursively
|
|
4
|
-
|
|
5
|
-
lodash-omitdeep allows you to execute lodash omit, omitBy functions recursively.
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
Install with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
$ npm i lodash-omitdeep --save
|
|
13
|
-
# or
|
|
14
|
-
$ yarn add lodash-omitdeep
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
Install **♻️ Lodash Omit Deep** with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
$ npm i lodash-omitdeep --save
|
|
23
|
-
# or
|
|
24
|
-
$ yarn add lodash-omitdeep
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### omitDeep
|
|
28
|
-
|
|
29
|
-
```js
|
|
30
|
-
import { omitDeep } from 'lodash-omitdeep';
|
|
31
|
-
omitDeep({ a: 'a', b: 'b', c: { b: 'b', d: { b: 'b', f: 'f' } } }, 'b');
|
|
32
|
-
//=> {a: "a", c: {d: {f: "f"}}}
|
|
33
|
-
omitDeep({ a: 'a', b: 'b', c: { b: 'b', d: { b: 'b', f: 'f' } } }, ['a', 'b']);
|
|
34
|
-
//=> {c: {d: {f: "f"}}}
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### omitDeepBy
|
|
38
|
-
|
|
39
|
-
```js
|
|
40
|
-
import { omitDeepBy } from 'lodash-omitdeep';
|
|
41
|
-
import isNil from 'lodash/isNil';
|
|
42
|
-
import isNumber from 'lodash/isNumber';
|
|
43
|
-
|
|
44
|
-
omitDeepBy({ a: 'a', b: null, c: { b: 'b', d: { b: 'b', f: null } } }, isNil);
|
|
45
|
-
//=> {a: "a", c: {b: "b", d: {b: "b"}}}
|
|
46
|
-
omitDeepBy({ a: 2, b: 'b', c: { b: 4, d: { b: 1, f: 'f' } } }, isNumber);
|
|
47
|
-
//=> {b: "b", c: {d: {f: "f"}}}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## ✨ Contributors
|
|
51
|
-
|
|
52
|
-
<table>
|
|
53
|
-
<tr>
|
|
54
|
-
<td align="center" style="word-wrap: break-word; width: 100.0; height: 100.0">
|
|
55
|
-
<a href="https://github.com/debabin">
|
|
56
|
-
<img src="https://avatars.githubusercontent.com/u/45297354?v=4"
|
|
57
|
-
width="100;"
|
|
58
|
-
alt="debabin" />
|
|
59
|
-
<br />
|
|
60
|
-
<sub style="font-size:13px"><b>☄️ debabin</b></sub>
|
|
61
|
-
</a>
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
</table>
|
|
1
|
+
# ♻️ Lodash Omit Deep
|
|
2
|
+
|
|
3
|
+
> Lodash omitDeep/omitDeepBy object key/value recursively
|
|
4
|
+
|
|
5
|
+
lodash-omitdeep allows you to execute lodash omit, omitBy functions recursively.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Install with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
$ npm i lodash-omitdeep --save
|
|
13
|
+
# or
|
|
14
|
+
$ yarn add lodash-omitdeep
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Install **♻️ Lodash Omit Deep** with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
$ npm i lodash-omitdeep --save
|
|
23
|
+
# or
|
|
24
|
+
$ yarn add lodash-omitdeep
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### omitDeep
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
import { omitDeep } from 'lodash-omitdeep';
|
|
31
|
+
omitDeep({ a: 'a', b: 'b', c: { b: 'b', d: { b: 'b', f: 'f' } } }, 'b');
|
|
32
|
+
//=> {a: "a", c: {d: {f: "f"}}}
|
|
33
|
+
omitDeep({ a: 'a', b: 'b', c: { b: 'b', d: { b: 'b', f: 'f' } } }, ['a', 'b']);
|
|
34
|
+
//=> {c: {d: {f: "f"}}}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### omitDeepBy
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
import { omitDeepBy } from 'lodash-omitdeep';
|
|
41
|
+
import isNil from 'lodash/isNil';
|
|
42
|
+
import isNumber from 'lodash/isNumber';
|
|
43
|
+
|
|
44
|
+
omitDeepBy({ a: 'a', b: null, c: { b: 'b', d: { b: 'b', f: null } } }, isNil);
|
|
45
|
+
//=> {a: "a", c: {b: "b", d: {b: "b"}}}
|
|
46
|
+
omitDeepBy({ a: 2, b: 'b', c: { b: 4, d: { b: 1, f: 'f' } } }, isNumber);
|
|
47
|
+
//=> {b: "b", c: {d: {f: "f"}}}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## ✨ Contributors
|
|
51
|
+
|
|
52
|
+
<table>
|
|
53
|
+
<tr>
|
|
54
|
+
<td align="center" style="word-wrap: break-word; width: 100.0; height: 100.0">
|
|
55
|
+
<a href="https://github.com/debabin">
|
|
56
|
+
<img src="https://avatars.githubusercontent.com/u/45297354?v=4"
|
|
57
|
+
width="100;"
|
|
58
|
+
alt="debabin" />
|
|
59
|
+
<br />
|
|
60
|
+
<sub style="font-size:13px"><b>☄️ debabin</b></sub>
|
|
61
|
+
</a>
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
</table>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omitDeep.cjs","sources":["../../../src/omitDeep/omitDeep.ts"],"sourcesContent":["import type { Many, PartialObject, PropertyName } from 'lodash';\
|
|
1
|
+
{"version":3,"file":"omitDeep.cjs","sources":["../../../src/omitDeep/omitDeep.ts"],"sourcesContent":["import type { Many, PartialObject, PropertyName } from 'lodash';\n\nimport lodash from 'lodash';\n\nexport const needOmit = (value: any) =>\n !lodash.isNil(value) && (lodash.isPlainObject(value) || Array.isArray(value));\n\ninterface OmitDeep {\n <T extends object, K extends PropertyName[]>(\n object: T | null | undefined,\n ...paths: K\n ): Pick<T, Exclude<keyof T, K[number]>>;\n <T extends object, K extends keyof T>(\n object: T | null | undefined,\n ...paths: Many<K>[]\n ): Omit<T, K>;\n <T extends object>(\n object: T | null | undefined,\n ...paths: Many<PropertyName>[]\n ): PartialObject<T>;\n}\n\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable properties of `object` that are not omitted.\n *\n * @category Function\n * @param object The source object.\n * @param [paths] The property names to omit, specified\n * individually or in arrays.\n * @returns Returns the new object.\n * @example\n *\n * const object = { 'a': 1, 'b': 2, 'c': { 'a': 1, 'b': 2 } };\n *\n * omitDeep(object, ['b', 'a']);\n * // => { 'c': {} }\n */\nexport const omitDeep: OmitDeep = (object: any, ...paths: any) => {\n function omitDeepOnOwnProps(object: any) {\n if (!Array.isArray(object) && !lodash.isPlainObject(object)) {\n return object;\n }\n\n if (Array.isArray(object)) {\n return object.map((element) => (needOmit(element) ? omitDeep(element, ...paths) : element));\n }\n\n const temp = {};\n\n for (const [key, value] of Object.entries<{\n [x: string]: object | PropertyName;\n }>(object)) {\n (temp as any)[key] = needOmit(value) ? omitDeep(value, ...paths) : value;\n }\n return lodash.omit(temp, ...paths);\n }\n\n return omitDeepOnOwnProps(object);\n};\n"],"names":["needOmit","value","lodash","omitDeep","object","paths","omitDeepOnOwnProps","element","temp","key"],"mappings":"0GAIaA,EAAYC,GACvB,CAACC,EAAO,MAAMD,CAAK,IAAMC,EAAO,cAAcD,CAAK,GAAK,MAAM,QAAQA,CAAK,GAiChEE,EAAqB,CAACC,KAAgBC,IAAe,CAChE,SAASC,EAAmBF,EAAa,CACvC,GAAI,CAAC,MAAM,QAAQA,CAAM,GAAK,CAACF,EAAO,cAAcE,CAAM,EACxD,OAAOA,EAGT,GAAI,MAAM,QAAQA,CAAM,EACtB,OAAOA,EAAO,IAAKG,GAAaP,EAASO,CAAO,EAAIJ,EAASI,EAAS,GAAGF,CAAK,EAAIE,CAAQ,EAG5F,MAAMC,EAAO,CAAA,EAEb,SAAW,CAACC,EAAKR,CAAK,IAAK,OAAO,QAE/BG,CAAM,EACNI,EAAaC,CAAG,EAAIT,EAASC,CAAK,EAAIE,EAASF,EAAO,GAAGI,CAAK,EAAIJ,EAErE,OAAOC,EAAO,KAAKM,EAAM,GAAGH,CAAK,CACnC,CAEA,OAAOC,EAAmBF,CAAM,CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omitDeepBy.cjs","sources":["../../../src/omitDeepBy/omitDeepBy.ts"],"sourcesContent":["import type {\
|
|
1
|
+
{"version":3,"file":"omitDeepBy.cjs","sources":["../../../src/omitDeepBy/omitDeepBy.ts"],"sourcesContent":["import type {\n Dictionary,\n NumericDictionary,\n PartialObject,\n PropertyName,\n ValueKeyIteratee\n} from 'lodash';\n\nimport lodash from 'lodash';\n\ninterface OmitDeepBy {\n <T>(object: Dictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): Dictionary<T>;\n <T>(\n object: NumericDictionary<T> | null | undefined,\n predicate?: ValueKeyIteratee<T>\n ): NumericDictionary<T>;\n <T extends object>(\n object: T | null | undefined,\n predicate: ValueKeyIteratee<T[keyof T]>\n ): PartialObject<T>;\n}\n\n/**\n * The opposite of `_.pickBy`; this method creates an object composed of the\n * own and inherited enumerable properties of `object` that `predicate`\n * doesn't return truthy for.\n *\n * @category Function\n * @param object The source object.\n * @param [predicate] The function invoked per property.\n * @returns Returns the new object.\n * @example\n *\n * const object = { 'a': 1, 'b': null, 'c': { 'a': 1, 'b': null } };\n *\n * omitByDeep(object, _.isNil);\n * // => { 'a': 1, 'c': { 'a': 1 } }\n */\nexport const omitDeepBy: OmitDeepBy = (object: any, cb: any) => {\n function omitByDeepByOnOwnProps(object: any) {\n if (!Array.isArray(object) && !lodash.isPlainObject(object)) {\n return object;\n }\n\n if (Array.isArray(object)) {\n return object.map((element) => omitDeepBy(element, cb));\n }\n\n const temp = {};\n\n for (const [key, value] of Object.entries<{\n [x: string]: object | PropertyName;\n }>(object)) {\n (temp as any)[key] = omitDeepBy(value, cb);\n }\n return lodash.omitBy(temp, cb);\n }\n\n return omitByDeepByOnOwnProps(object);\n};\n"],"names":["omitDeepBy","object","cb","omitByDeepByOnOwnProps","lodash","element","temp","key","value"],"mappings":"0GAsCaA,EAAyB,CAACC,EAAaC,IAAY,CAC9D,SAASC,EAAuBF,EAAa,CAC3C,GAAI,CAAC,MAAM,QAAQA,CAAM,GAAK,CAACG,EAAO,cAAcH,CAAM,EACxD,OAAOA,EAGT,GAAI,MAAM,QAAQA,CAAM,EACtB,OAAOA,EAAO,IAAKI,GAAYL,EAAWK,EAASH,CAAE,CAAC,EAGxD,MAAMI,EAAO,CAAA,EAEb,SAAW,CAACC,EAAKC,CAAK,IAAK,OAAO,QAE/BP,CAAM,EACNK,EAAaC,CAAG,EAAIP,EAAWQ,EAAON,CAAE,EAE3C,OAAOE,EAAO,OAAOE,EAAMJ,CAAE,CAC/B,CAEA,OAAOC,EAAuBF,CAAM,CACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omitDeep.mjs","sources":["../../../src/omitDeep/omitDeep.ts"],"sourcesContent":["import type { Many, PartialObject, PropertyName } from 'lodash';\
|
|
1
|
+
{"version":3,"file":"omitDeep.mjs","sources":["../../../src/omitDeep/omitDeep.ts"],"sourcesContent":["import type { Many, PartialObject, PropertyName } from 'lodash';\n\nimport lodash from 'lodash';\n\nexport const needOmit = (value: any) =>\n !lodash.isNil(value) && (lodash.isPlainObject(value) || Array.isArray(value));\n\ninterface OmitDeep {\n <T extends object, K extends PropertyName[]>(\n object: T | null | undefined,\n ...paths: K\n ): Pick<T, Exclude<keyof T, K[number]>>;\n <T extends object, K extends keyof T>(\n object: T | null | undefined,\n ...paths: Many<K>[]\n ): Omit<T, K>;\n <T extends object>(\n object: T | null | undefined,\n ...paths: Many<PropertyName>[]\n ): PartialObject<T>;\n}\n\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable properties of `object` that are not omitted.\n *\n * @category Function\n * @param object The source object.\n * @param [paths] The property names to omit, specified\n * individually or in arrays.\n * @returns Returns the new object.\n * @example\n *\n * const object = { 'a': 1, 'b': 2, 'c': { 'a': 1, 'b': 2 } };\n *\n * omitDeep(object, ['b', 'a']);\n * // => { 'c': {} }\n */\nexport const omitDeep: OmitDeep = (object: any, ...paths: any) => {\n function omitDeepOnOwnProps(object: any) {\n if (!Array.isArray(object) && !lodash.isPlainObject(object)) {\n return object;\n }\n\n if (Array.isArray(object)) {\n return object.map((element) => (needOmit(element) ? omitDeep(element, ...paths) : element));\n }\n\n const temp = {};\n\n for (const [key, value] of Object.entries<{\n [x: string]: object | PropertyName;\n }>(object)) {\n (temp as any)[key] = needOmit(value) ? omitDeep(value, ...paths) : value;\n }\n return lodash.omit(temp, ...paths);\n }\n\n return omitDeepOnOwnProps(object);\n};\n"],"names":["needOmit","value","lodash","omitDeep","object","paths","omitDeepOnOwnProps","element","temp","key"],"mappings":";AAIO,MAAMA,IAAW,CAACC,MACvB,CAACC,EAAO,MAAMD,CAAK,MAAMC,EAAO,cAAcD,CAAK,KAAK,MAAM,QAAQA,CAAK,IAiChEE,IAAqB,CAACC,MAAgBC,MAAe;AAChE,WAASC,EAAmBF,GAAa;AACvC,QAAI,CAAC,MAAM,QAAQA,CAAM,KAAK,CAACF,EAAO,cAAcE,CAAM;AACxD,aAAOA;AAGT,QAAI,MAAM,QAAQA,CAAM;AACtB,aAAOA,EAAO,IAAI,CAACG,MAAaP,EAASO,CAAO,IAAIJ,EAASI,GAAS,GAAGF,CAAK,IAAIE,CAAQ;AAG5F,UAAMC,IAAO,CAAA;AAEb,eAAW,CAACC,GAAKR,CAAK,KAAK,OAAO,QAE/BG,CAAM;AACN,MAAAI,EAAaC,CAAG,IAAIT,EAASC,CAAK,IAAIE,EAASF,GAAO,GAAGI,CAAK,IAAIJ;AAErE,WAAOC,EAAO,KAAKM,GAAM,GAAGH,CAAK;AAAA,EACnC;AAEA,SAAOC,EAAmBF,CAAM;AAClC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omitDeepBy.mjs","sources":["../../../src/omitDeepBy/omitDeepBy.ts"],"sourcesContent":["import type {\
|
|
1
|
+
{"version":3,"file":"omitDeepBy.mjs","sources":["../../../src/omitDeepBy/omitDeepBy.ts"],"sourcesContent":["import type {\n Dictionary,\n NumericDictionary,\n PartialObject,\n PropertyName,\n ValueKeyIteratee\n} from 'lodash';\n\nimport lodash from 'lodash';\n\ninterface OmitDeepBy {\n <T>(object: Dictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): Dictionary<T>;\n <T>(\n object: NumericDictionary<T> | null | undefined,\n predicate?: ValueKeyIteratee<T>\n ): NumericDictionary<T>;\n <T extends object>(\n object: T | null | undefined,\n predicate: ValueKeyIteratee<T[keyof T]>\n ): PartialObject<T>;\n}\n\n/**\n * The opposite of `_.pickBy`; this method creates an object composed of the\n * own and inherited enumerable properties of `object` that `predicate`\n * doesn't return truthy for.\n *\n * @category Function\n * @param object The source object.\n * @param [predicate] The function invoked per property.\n * @returns Returns the new object.\n * @example\n *\n * const object = { 'a': 1, 'b': null, 'c': { 'a': 1, 'b': null } };\n *\n * omitByDeep(object, _.isNil);\n * // => { 'a': 1, 'c': { 'a': 1 } }\n */\nexport const omitDeepBy: OmitDeepBy = (object: any, cb: any) => {\n function omitByDeepByOnOwnProps(object: any) {\n if (!Array.isArray(object) && !lodash.isPlainObject(object)) {\n return object;\n }\n\n if (Array.isArray(object)) {\n return object.map((element) => omitDeepBy(element, cb));\n }\n\n const temp = {};\n\n for (const [key, value] of Object.entries<{\n [x: string]: object | PropertyName;\n }>(object)) {\n (temp as any)[key] = omitDeepBy(value, cb);\n }\n return lodash.omitBy(temp, cb);\n }\n\n return omitByDeepByOnOwnProps(object);\n};\n"],"names":["omitDeepBy","object","cb","omitByDeepByOnOwnProps","lodash","element","temp","key","value"],"mappings":";AAsCO,MAAMA,IAAyB,CAACC,GAAaC,MAAY;AAC9D,WAASC,EAAuBF,GAAa;AAC3C,QAAI,CAAC,MAAM,QAAQA,CAAM,KAAK,CAACG,EAAO,cAAcH,CAAM;AACxD,aAAOA;AAGT,QAAI,MAAM,QAAQA,CAAM;AACtB,aAAOA,EAAO,IAAI,CAACI,MAAYL,EAAWK,GAASH,CAAE,CAAC;AAGxD,UAAMI,IAAO,CAAA;AAEb,eAAW,CAACC,GAAKC,CAAK,KAAK,OAAO,QAE/BP,CAAM;AACN,MAAAK,EAAaC,CAAG,IAAIP,EAAWQ,GAAON,CAAE;AAE3C,WAAOE,EAAO,OAAOE,GAAMJ,CAAE;AAAA,EAC/B;AAEA,SAAOC,EAAuBF,CAAM;AACtC;"}
|
package/package.json
CHANGED
|
@@ -1,83 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "lodash-omitdeep",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.6.
|
|
5
|
-
"description": "lodash omitDeep/omitByDeep object key/value recursively",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "SIBERIA CAN CODE 🧊",
|
|
8
|
-
"url": "https://github.com/siberiacancode"
|
|
9
|
-
},
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"homepage": "https://github.com/siberiacancode/lodash-omitdeep",
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/siberiacancode/lodash-omitdeep.git"
|
|
15
|
-
},
|
|
16
|
-
"bugs": {
|
|
17
|
-
"url": "https://github.com/siberiacancode/lodash-omitdeep/issues"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"lodash",
|
|
21
|
-
"omit",
|
|
22
|
-
"omitDeep",
|
|
23
|
-
"omitBy",
|
|
24
|
-
"omitByDeep",
|
|
25
|
-
"key",
|
|
26
|
-
"keys",
|
|
27
|
-
"delete",
|
|
28
|
-
"remove",
|
|
29
|
-
"object",
|
|
30
|
-
"deep"
|
|
31
|
-
],
|
|
32
|
-
"sideEffects": false,
|
|
33
|
-
"exports": {
|
|
34
|
-
"types": "./dist/types/index.d.ts",
|
|
35
|
-
"import": "./dist/esm/index.mjs",
|
|
36
|
-
"require": "./dist/cjs/index.cjs"
|
|
37
|
-
},
|
|
38
|
-
"main": "dist/cjs/index.cjs",
|
|
39
|
-
"module": "dist/esm/index.mjs",
|
|
40
|
-
"types": "dist/types/index.d.ts",
|
|
41
|
-
"files": [
|
|
42
|
-
"dist"
|
|
43
|
-
],
|
|
44
|
-
"scripts": {
|
|
45
|
-
"prepublishOnly": "yarn unit-test run && yarn build",
|
|
46
|
-
"build": "shx rm -rf dist && vite build",
|
|
47
|
-
"lint": "eslint . --fix",
|
|
48
|
-
"type": "tsc --noEmit",
|
|
49
|
-
"format": "prettier --write .",
|
|
50
|
-
"pretty": "yarn type && yarn lint && yarn format",
|
|
51
|
-
"prepare": "husky",
|
|
52
|
-
"unit-test": "vitest"
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"lodash": "^4"
|
|
56
|
-
},
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"lodash": "^4"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@siberiacancode/eslint": "^2.
|
|
62
|
-
"@siberiacancode/prettier": "^1.3.0",
|
|
63
|
-
"@siberiacancode/vitest": "^2.1.0",
|
|
64
|
-
"@types/lodash": "^4.17.
|
|
65
|
-
"@types/node": "^
|
|
66
|
-
"husky": "^9.1.7",
|
|
67
|
-
"lint-staged": "^
|
|
68
|
-
"shx": "^0.4.0",
|
|
69
|
-
"typescript": "^5.
|
|
70
|
-
"vite": "^
|
|
71
|
-
"vite-plugin-dts": "^4.5.
|
|
72
|
-
},
|
|
73
|
-
"lint-staged": {
|
|
74
|
-
"*.js": [
|
|
75
|
-
"eslint --fix",
|
|
76
|
-
"prettier --write"
|
|
77
|
-
]
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"prettier --write"
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "lodash-omitdeep",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.6.3",
|
|
5
|
+
"description": "lodash omitDeep/omitByDeep object key/value recursively",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "SIBERIA CAN CODE 🧊",
|
|
8
|
+
"url": "https://github.com/siberiacancode"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/siberiacancode/lodash-omitdeep",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/siberiacancode/lodash-omitdeep.git"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/siberiacancode/lodash-omitdeep/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"lodash",
|
|
21
|
+
"omit",
|
|
22
|
+
"omitDeep",
|
|
23
|
+
"omitBy",
|
|
24
|
+
"omitByDeep",
|
|
25
|
+
"key",
|
|
26
|
+
"keys",
|
|
27
|
+
"delete",
|
|
28
|
+
"remove",
|
|
29
|
+
"object",
|
|
30
|
+
"deep"
|
|
31
|
+
],
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"exports": {
|
|
34
|
+
"types": "./dist/types/index.d.ts",
|
|
35
|
+
"import": "./dist/esm/index.mjs",
|
|
36
|
+
"require": "./dist/cjs/index.cjs"
|
|
37
|
+
},
|
|
38
|
+
"main": "dist/cjs/index.cjs",
|
|
39
|
+
"module": "dist/esm/index.mjs",
|
|
40
|
+
"types": "dist/types/index.d.ts",
|
|
41
|
+
"files": [
|
|
42
|
+
"dist"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"prepublishOnly": "yarn unit-test run && yarn build",
|
|
46
|
+
"build": "shx rm -rf dist && vite build",
|
|
47
|
+
"lint": "eslint . --fix",
|
|
48
|
+
"type": "tsc --noEmit",
|
|
49
|
+
"format": "prettier --write .",
|
|
50
|
+
"pretty": "yarn type && yarn lint && yarn format",
|
|
51
|
+
"prepare": "husky",
|
|
52
|
+
"unit-test": "vitest"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"lodash": "^4"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"lodash": "^4"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@siberiacancode/eslint": "^2.11.0",
|
|
62
|
+
"@siberiacancode/prettier": "^1.3.0",
|
|
63
|
+
"@siberiacancode/vitest": "^2.1.0",
|
|
64
|
+
"@types/lodash": "^4.17.20",
|
|
65
|
+
"@types/node": "^24.1.0",
|
|
66
|
+
"husky": "^9.1.7",
|
|
67
|
+
"lint-staged": "^16.1.2",
|
|
68
|
+
"shx": "^0.4.0",
|
|
69
|
+
"typescript": "^5.9.2",
|
|
70
|
+
"vite": "^7.0.6",
|
|
71
|
+
"vite-plugin-dts": "^4.5.4"
|
|
72
|
+
},
|
|
73
|
+
"lint-staged": {
|
|
74
|
+
"*.{js,ts}": [
|
|
75
|
+
"eslint --fix",
|
|
76
|
+
"prettier --write"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|