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 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
@@ -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
- import r from"lodash.isnil";import o from"lodash.isplainobject";import t from"lodash.omit";import i from"lodash.omitby";function n(t){return!r(t)&&(o(t)||Array.isArray(t))}const s=(r,...i)=>function(r){if(!Array.isArray(r)&&!o(r))return r;if(Array.isArray(r))return r.map((r=>n(r)?s(r,...i):r));const a={};for(const[o,t]of Object.entries(r))a[o]=n(t)?s(t,...i):t;return t(a,...i)}(r),a=(r,t)=>function(r){if(!Array.isArray(r)&&!o(r))return r;if(Array.isArray(r))return r.map((r=>a(r,t)));const n={};for(const[o,i]of Object.entries(r))n[o]=a(i,t);return i(n,t)}(r);export{s as omitDeep,a as omitDeepBy};
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
@@ -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":"wHAKA,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":[],"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.0",
4
- "description": "Lodash omitDeep/omitByDeep object key/value recursively",
5
- "author": {
6
- "name": "SIBERIA CAN CODE 🧊",
7
- "url": "https://github.com/siberiacancode"
8
- },
9
- "contributors": [
10
- {
11
- "name": "Dmitry Babin",
12
- "url": "https://github.com/debabin"
13
- }
14
- ],
15
- "license": "MIT",
16
- "main": "dist/cjs/index.js",
17
- "module": "dist/esm/index.js",
18
- "types": "dist/index.d.ts",
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
- "homepage": "https://github.com/siberiacancode/lodash-omitdeep",
33
- "repository": {
34
- "type": "git",
35
- "url": "https://github.com/siberiacancode/lodash-omitdeep"
36
- },
37
- "bugs": {
38
- "url": "https://github.com/siberiacancode/lodash-omitdeep/issues"
39
- },
40
- "files": [
41
- "dist/**/*"
42
- ],
43
- "scripts": {
44
- "build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs",
45
- "prepublishOnly": "npm test && npm run lint",
46
- "preversion": "npm run lint",
47
- "version": "npm run format && git add -A src",
48
- "prepare": "husky install && npm run build",
49
- "postversion": "git push && git push --tags",
50
- "lint": "eslint . --ext ts --ext tsx --no-error-on-unmatched-pattern",
51
- "format": "prettier --write src/**/*.{ts,tsx}",
52
- "type": "tsc --noEmit",
53
- "pretty": "yarn type && yarn format && yarn lint --fix",
54
- "test": "jest --config jestconfig.json"
55
- },
56
- "lint-staged": {
57
- "*.js": "yarn format",
58
- "*.ts": "yarn pretty"
59
- },
60
- "peerDependencies": {
61
- "lodash.isnil": "*",
62
- "lodash.isplainobject": "*",
63
- "lodash.omit": "*",
64
- "lodash.omitby": "*"
65
- },
66
- "dependencies": {
67
- "lodash.isnil": "^4.0.0",
68
- "lodash.isplainobject": "^4.0.6",
69
- "lodash.omit": "^4.5.0",
70
- "lodash.omitby": "^4.6.0"
71
- },
72
- "devDependencies": {
73
- "@rollup/plugin-commonjs": "^25.0.0",
74
- "@rollup/plugin-node-resolve": "^15.1.0",
75
- "@rollup/plugin-terser": "^0.4.3",
76
- "@rollup/plugin-typescript": "^11.1.1",
77
- "@types/jest": "^29.5.1",
78
- "@types/lodash.isnil": "^4.0.7",
79
- "@types/lodash.isplainobject": "^4.0.7",
80
- "@types/lodash.omit": "^4.5.7",
81
- "@types/lodash.omitby": "^4.6.7",
82
- "@typescript-eslint/eslint-plugin": "^5.59.9",
83
- "@typescript-eslint/parser": "^5.59.9",
84
- "eslint": "^8.42.0",
85
- "eslint-config-airbnb": "^19.0.4",
86
- "eslint-config-airbnb-typescript": "^17.0.0",
87
- "eslint-config-prettier": "^8.7.0",
88
- "eslint-import-resolver-typescript": "^3.5.5",
89
- "eslint-plugin-import": "^2.27.5",
90
- "eslint-plugin-prettier": "^4.2.1",
91
- "husky": "^8.0.1",
92
- "jest": "^29.5.0",
93
- "lint-staged": "^13.2.2",
94
- "prettier": "^2.8.8",
95
- "rollup": "^3.24.0",
96
- "rollup-plugin-dts": "^5.3.0",
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
+ }