lodash-omitdeep 1.2.0 → 1.2.1
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/LICENSE +21 -21
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/omitDeep/omitDeep.js +3 -0
- package/dist/esm/omitDeep/omitDeep.js.map +1 -0
- package/dist/esm/omitDeepBy/omitDeepBy.js +3 -0
- package/dist/esm/omitDeepBy/omitDeepBy.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/package.json +96 -101
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 siberiacancode
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 siberiacancode
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/* @license lodash-omitdeep v1.2.1 */
|
|
1
2
|
"use strict";var r=require("lodash.isnil"),e=require("lodash.isplainobject"),t=require("lodash.omit"),i=require("lodash.omitby");function o(t){return!r(t)&&(e(t)||Array.isArray(t))}const n=(r,...i)=>function(r){if(!Array.isArray(r)&&!e(r))return r;if(Array.isArray(r))return r.map((r=>o(r)?n(r,...i):r));const s={};for(const[e,t]of Object.entries(r))s[e]=o(t)?n(t,...i):t;return t(s,...i)}(r),s=(r,t)=>function(r){if(!Array.isArray(r)&&!e(r))return r;if(Array.isArray(r))return r.map((r=>s(r,t)));const o={};for(const[e,i]of Object.entries(r))o[e]=s(i,t);return i(o,t)}(r);exports.omitDeep=n,exports.omitDeepBy=s;
|
|
2
3
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/omitDeep/omitDeep.ts","../../src/omitDeepBy/omitDeepBy.ts"],"sourcesContent":[null,null],"names":["needOmit","value","isNil","isPlainObject","Array","isArray","omitDeep","object","paths","map","element","temp","key","Object","entries","omit","omitDeepOnOwnProps","omitDeepBy","cb","omitBy","omitByDeepByOnOwnProps"],"mappings":"iIAKA,SAASA,EAASC,GAChB,OAAQC,EAAMD,KAAWE,EAAcF,IAAUG,MAAMC,QAAQJ,GACjE,CAiCa,MAAAK,EAAqB,CAACC,KAAgBC,IACjD,SAA4BD,GAC1B,IAAKH,MAAMC,QAAQE,KAAYJ,EAAcI,GAC3C,OAAOA,EAGT,GAAIH,MAAMC,QAAQE,GAChB,OAAOA,EAAOE,KAAKC,GAAaV,EAASU,GAAWJ,EAASI,KAAYF,GAASE,IAGpF,MAAMC,EAAO,CAAA,EAEb,IAAK,MAAOC,EAAKX,KAAUY,OAAOC,QAE/BP,GACAI,EAAaC,GAAOZ,EAASC,GAASK,EAASL,KAAUO,GAASP,EAErE,OAAOc,EAAKJ,KAASH,EACtB,CAEMQ,CAAmBT,GCrBfU,EAAyB,CAACV,EAAaW,IAClD,SAAgCX,GAC9B,IAAKH,MAAMC,QAAQE,KAAYJ,EAAcI,GAC3C,OAAOA,EAGT,GAAIH,MAAMC,QAAQE,GAChB,OAAOA,EAAOE,KAAKC,GAAYO,EAAWP,EAASQ,KAGrD,MAAMP,EAAO,CAAA,EAEb,IAAK,MAAOC,EAAKX,KAAUY,OAAOC,QAE/BP,GACAI,EAAaC,GAAOK,EAAWhB,EAAOiB,GAEzC,OAAOC,EAAOR,EAAMO,EACrB,CAEME,CAAuBb"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/omitDeep/omitDeep.ts","../../src/omitDeepBy/omitDeepBy.ts"],"sourcesContent":[null,null],"names":["needOmit","value","isNil","isPlainObject","Array","isArray","omitDeep","object","paths","map","element","temp","key","Object","entries","omit","omitDeepOnOwnProps","omitDeepBy","cb","omitBy","omitByDeepByOnOwnProps"],"mappings":";iIAKA,SAASA,EAASC,GAChB,OAAQC,EAAMD,KAAWE,EAAcF,IAAUG,MAAMC,QAAQJ,GACjE,CAiCa,MAAAK,EAAqB,CAACC,KAAgBC,IACjD,SAA4BD,GAC1B,IAAKH,MAAMC,QAAQE,KAAYJ,EAAcI,GAC3C,OAAOA,EAGT,GAAIH,MAAMC,QAAQE,GAChB,OAAOA,EAAOE,KAAKC,GAAaV,EAASU,GAAWJ,EAASI,KAAYF,GAASE,IAGpF,MAAMC,EAAO,CAAA,EAEb,IAAK,MAAOC,EAAKX,KAAUY,OAAOC,QAE/BP,GACAI,EAAaC,GAAOZ,EAASC,GAASK,EAASL,KAAUO,GAASP,EAErE,OAAOc,EAAKJ,KAASH,EACtB,CAEMQ,CAAmBT,GCrBfU,EAAyB,CAACV,EAAaW,IAClD,SAAgCX,GAC9B,IAAKH,MAAMC,QAAQE,KAAYJ,EAAcI,GAC3C,OAAOA,EAGT,GAAIH,MAAMC,QAAQE,GAChB,OAAOA,EAAOE,KAAKC,GAAYO,EAAWP,EAASQ,KAGrD,MAAMP,EAAO,CAAA,EAEb,IAAK,MAAOC,EAAKX,KAAUY,OAAOC,QAE/BP,GACAI,EAAaC,GAAOK,EAAWhB,EAAOiB,GAEzC,OAAOC,EAAOR,EAAMO,EACrB,CAEME,CAAuBb"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/* @license lodash-omitdeep v1.2.1 */
|
|
2
|
+
export{omitDeep}from"./omitDeep/omitDeep.js";export{omitDeepBy}from"./omitDeepBy/omitDeepBy.js";
|
|
2
3
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* @license lodash-omitdeep v1.2.1 */
|
|
2
|
+
import r from"lodash.isnil";import o from"lodash.isplainobject";import t from"lodash.omit";function i(t){return!r(t)&&(o(t)||Array.isArray(t))}const n=(r,...a)=>function(r){if(!Array.isArray(r)&&!o(r))return r;if(Array.isArray(r))return r.map((r=>i(r)?n(r,...a):r));const s={};for(const[o,t]of Object.entries(r))s[o]=i(t)?n(t,...a):t;return t(s,...a)}(r);export{n as default,n as omitDeep};
|
|
3
|
+
//# sourceMappingURL=omitDeep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omitDeep.js","sources":["../../../src/omitDeep/omitDeep.ts"],"sourcesContent":[null],"names":["needOmit","value","isNil","isPlainObject","Array","isArray","omitDeep","object","paths","map","element","temp","key","Object","entries","omit","omitDeepOnOwnProps"],"mappings":";2FAKA,SAASA,EAASC,GAChB,OAAQC,EAAMD,KAAWE,EAAcF,IAAUG,MAAMC,QAAQJ,GACjE,CAiCa,MAAAK,EAAqB,CAACC,KAAgBC,IACjD,SAA4BD,GAC1B,IAAKH,MAAMC,QAAQE,KAAYJ,EAAcI,GAC3C,OAAOA,EAGT,GAAIH,MAAMC,QAAQE,GAChB,OAAOA,EAAOE,KAAKC,GAAaV,EAASU,GAAWJ,EAASI,KAAYF,GAASE,IAGpF,MAAMC,EAAO,CAAA,EAEb,IAAK,MAAOC,EAAKX,KAAUY,OAAOC,QAE/BP,GACAI,EAAaC,GAAOZ,EAASC,GAASK,EAASL,KAAUO,GAASP,EAErE,OAAOc,EAAKJ,KAASH,EACtB,CAEMQ,CAAmBT"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* @license lodash-omitdeep v1.2.1 */
|
|
2
|
+
import r from"lodash.isplainobject";import o from"lodash.omitby";const t=(i,a)=>function(i){if(!Array.isArray(i)&&!r(i))return i;if(Array.isArray(i))return i.map((r=>t(r,a)));const n={};for(const[r,o]of Object.entries(i))n[r]=t(o,a);return o(n,a)}(i);export{t as default,t as omitDeepBy};
|
|
3
|
+
//# sourceMappingURL=omitDeepBy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omitDeepBy.js","sources":["../../../src/omitDeepBy/omitDeepBy.ts"],"sourcesContent":[null],"names":["omitDeepBy","object","cb","Array","isArray","isPlainObject","map","element","temp","key","value","Object","entries","omitBy","omitByDeepByOnOwnProps"],"mappings":";uEAuCaA,EAAyB,CAACC,EAAaC,IAClD,SAAgCD,GAC9B,IAAKE,MAAMC,QAAQH,KAAYI,EAAcJ,GAC3C,OAAOA,EAGT,GAAIE,MAAMC,QAAQH,GAChB,OAAOA,EAAOK,KAAKC,GAAYP,EAAWO,EAASL,KAGrD,MAAMM,EAAO,CAAA,EAEb,IAAK,MAAOC,EAAKC,KAAUC,OAAOC,QAE/BX,GACAO,EAAaC,GAAOT,EAAWU,EAAOR,GAEzC,OAAOW,EAAOL,EAAMN,EACrB,CAEMY,CAAuBb"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { PropertyName, Many, PartialObject, Dictionary, ValueKeyIteratee, Numeri
|
|
|
7
7
|
* @category Function
|
|
8
8
|
* @param object The source object.
|
|
9
9
|
* @param [paths] The property names to omit, specified
|
|
10
|
-
* individually or in arrays
|
|
10
|
+
* individually or in arrays.
|
|
11
11
|
* @returns Returns the new object.
|
|
12
12
|
* @example
|
|
13
13
|
*
|
package/package.json
CHANGED
|
@@ -1,101 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "lodash-omitdeep",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"*.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"lodash.
|
|
63
|
-
"lodash.
|
|
64
|
-
"lodash.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"eslint": "^
|
|
85
|
-
"eslint-
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"shx": "^0.3.4",
|
|
98
|
-
"ts-jest": "^29.1.0",
|
|
99
|
-
"typescript": "^5.1.3"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "lodash-omitdeep",
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "lodash omitDeep/omitByDeep object key/value recursively",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "SIBERIA CAN CODE 🧊",
|
|
8
|
+
"url": "https://github.com/siberiacancode"
|
|
9
|
+
},
|
|
10
|
+
"contributors": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Dmitry Babin",
|
|
13
|
+
"url": "https://github.com/debabin"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"main": "dist/cjs/index.js",
|
|
18
|
+
"module": "dist/esm/index.js",
|
|
19
|
+
"types": "dist/index.d.ts",
|
|
20
|
+
"keywords": [
|
|
21
|
+
"lodash",
|
|
22
|
+
"omit",
|
|
23
|
+
"omitDeep",
|
|
24
|
+
"omitBy",
|
|
25
|
+
"omitByDeep",
|
|
26
|
+
"key",
|
|
27
|
+
"keys",
|
|
28
|
+
"delete",
|
|
29
|
+
"remove",
|
|
30
|
+
"object",
|
|
31
|
+
"deep"
|
|
32
|
+
],
|
|
33
|
+
"homepage": "https://github.com/siberiacancode/lodash-omitdeep",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/siberiacancode/lodash-omitdeep"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/siberiacancode/lodash-omitdeep/issues"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist/**/*"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs",
|
|
46
|
+
"prepublishOnly": "npm test && npm run lint",
|
|
47
|
+
"preversion": "npm run lint",
|
|
48
|
+
"version": "npm run format && git add -A src",
|
|
49
|
+
"prepare": "husky install && npm run build",
|
|
50
|
+
"postversion": "git push && git push --tags",
|
|
51
|
+
"lint": "eslint . --ext ts --ext tsx --no-error-on-unmatched-pattern",
|
|
52
|
+
"format": "prettier --write src/**/*.ts",
|
|
53
|
+
"type": "tsc --noEmit",
|
|
54
|
+
"pretty": "yarn type && yarn format && yarn lint --fix",
|
|
55
|
+
"test": "jest --config jestconfig.json"
|
|
56
|
+
},
|
|
57
|
+
"lint-staged": {
|
|
58
|
+
"*.js": "yarn format",
|
|
59
|
+
"*.ts": "yarn pretty"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"lodash.isnil": "^4.0.0",
|
|
63
|
+
"lodash.isplainobject": "^4.0.6",
|
|
64
|
+
"lodash.omit": "^4.5.0",
|
|
65
|
+
"lodash.omitby": "^4.6.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
69
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
70
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
71
|
+
"@rollup/plugin-typescript": "^11.1.1",
|
|
72
|
+
"@types/jest": "^29.5.1",
|
|
73
|
+
"@types/lodash.isnil": "^4.0.7",
|
|
74
|
+
"@types/lodash.isplainobject": "^4.0.7",
|
|
75
|
+
"@types/lodash.omit": "^4.5.7",
|
|
76
|
+
"@types/lodash.omitby": "^4.6.7",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
|
78
|
+
"@typescript-eslint/parser": "^5.59.9",
|
|
79
|
+
"eslint": "^8.42.0",
|
|
80
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
81
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
82
|
+
"eslint-config-prettier": "^8.7.0",
|
|
83
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
84
|
+
"eslint-plugin-import": "^2.27.5",
|
|
85
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
86
|
+
"husky": "^8.0.1",
|
|
87
|
+
"jest": "^29.5.0",
|
|
88
|
+
"lint-staged": "^13.2.2",
|
|
89
|
+
"prettier": "^2.8.8",
|
|
90
|
+
"rollup": "^3.24.0",
|
|
91
|
+
"rollup-plugin-dts": "^5.3.0",
|
|
92
|
+
"shx": "^0.3.4",
|
|
93
|
+
"ts-jest": "^29.1.0",
|
|
94
|
+
"typescript": "^5.1.3"
|
|
95
|
+
}
|
|
96
|
+
}
|