lodash-omitdeep
Advanced tools
Comparing version 1.3.5 to 1.4.0
@@ -1,3 +0,3 @@ | ||
/* @license lodash-omitdeep v1.3.5 */ | ||
"use strict";var e=require("./omitDeep/omitDeep.js"),i=require("./omitDeepBy/omitDeepBy.js");require("./_rollupPluginBabelHelpers-b1c468a6.js"),require("lodash.isnil"),require("lodash.isplainobject"),require("lodash.omit"),require("lodash.omitby"),exports.omitDeep=e.omitDeep,exports.omitDeepBy=i.omitDeepBy; | ||
/* @license lodash-omitdeep v1.4.0 */ | ||
"use strict";var e=require("./omitDeep/omitDeep.js"),i=require("./omitDeepBy/omitDeepBy.js");require("./_rollupPluginBabelHelpers-DgCCDcvl.js"),require("lodash.isnil"),require("lodash.isplainobject"),require("lodash.omit"),require("lodash.omitby"),exports.omitDeep=e.omitDeep,exports.omitDeepBy=i.omitDeepBy; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license lodash-omitdeep v1.3.5 */ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../_rollupPluginBabelHelpers-b1c468a6.js"),e=require("lodash.isnil"),t=require("lodash.isplainobject"),a=require("lodash.omit");function i(r){return!e(r)&&(t(r)||Array.isArray(r))}var n=function e(n){for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];return function(n){if(!Array.isArray(n)&&!t(n))return n;if(Array.isArray(n))return n.map((function(r){return i(r)?e.apply(void 0,[r].concat(u)):r}));for(var o={},l=0,s=Object.entries(n);l<s.length;l++){var c=r._slicedToArray(s[l],2),p=c[0],y=c[1];o[p]=i(y)?e.apply(void 0,[y].concat(u)):y}return a.apply(void 0,[o].concat(u))}(n)};exports.default=n,exports.omitDeep=n; | ||
/* @license lodash-omitdeep v1.4.0 */ | ||
"use strict";var r=require("../_rollupPluginBabelHelpers-DgCCDcvl.js"),e=require("lodash.isnil"),i=require("lodash.isplainobject"),n=require("lodash.omit"),t=function(r){return!e(r)&&(i(r)||Array.isArray(r))},a=function(e){for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];return function(e){if(!Array.isArray(e)&&!i(e))return e;if(Array.isArray(e))return e.map((function(r){return t(r)?a.apply(void 0,[r].concat(u)):r}));for(var o={},l=0,s=Object.entries(e);l<s.length;l++){var c=r._slicedToArray(s[l],2),p=c[0],y=c[1];o[p]=t(y)?a.apply(void 0,[y].concat(u)):y}return n.apply(void 0,[o].concat(u))}(e)};exports.needOmit=t,exports.omitDeep=a; | ||
//# sourceMappingURL=omitDeep.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license lodash-omitdeep v1.3.5 */ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../_rollupPluginBabelHelpers-b1c468a6.js"),e=require("lodash.isplainobject"),t=require("lodash.omitby"),i=function i(u,n){return function(u){if(!Array.isArray(u)&&!e(u))return u;if(Array.isArray(u))return u.map((function(r){return i(r,n)}));for(var o={},a=0,s=Object.entries(u);a<s.length;a++){var l=r._slicedToArray(s[a],2),p=l[0],c=l[1];o[p]=i(c,n)}return t(o,n)}(u)};exports.default=i,exports.omitDeepBy=i; | ||
/* @license lodash-omitdeep v1.4.0 */ | ||
"use strict";var r=require("../_rollupPluginBabelHelpers-DgCCDcvl.js"),e=require("lodash.isplainobject"),i=require("lodash.omitby"),t=function(n,u){return function(n){if(!Array.isArray(n)&&!e(n))return n;if(Array.isArray(n))return n.map((function(r){return t(r,u)}));for(var a={},o=0,s=Object.entries(n);o<s.length;o++){var l=r._slicedToArray(s[o],2),c=l[0],y=l[1];a[c]=t(y,u)}return i(a,u)}(n)};exports.omitDeepBy=t; | ||
//# sourceMappingURL=omitDeepBy.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license lodash-omitdeep v1.3.5 */ | ||
export{omitDeep}from"./omitDeep/omitDeep.js";export{omitDeepBy}from"./omitDeepBy/omitDeepBy.js";import"./_rollupPluginBabelHelpers-1ea6856c.js";import"lodash.isnil";import"lodash.isplainobject";import"lodash.omit";import"lodash.omitby"; | ||
/* @license lodash-omitdeep v1.4.0 */ | ||
export{omitDeep}from"./omitDeep/omitDeep.js";export{omitDeepBy}from"./omitDeepBy/omitDeepBy.js";import"./_rollupPluginBabelHelpers-D_85f5Fd.js";import"lodash.isnil";import"lodash.isplainobject";import"lodash.omit";import"lodash.omitby"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license lodash-omitdeep v1.3.5 */ | ||
import{_ as r}from"../_rollupPluginBabelHelpers-1ea6856c.js";import o from"lodash.isnil";import a from"lodash.isplainobject";import t from"lodash.omit";function n(r){return!o(r)&&(a(r)||Array.isArray(r))}var i=function o(i){for(var e=arguments.length,l=new Array(e>1?e-1:0),p=1;p<e;p++)l[p-1]=arguments[p];return function(i){if(!Array.isArray(i)&&!a(i))return i;if(Array.isArray(i))return i.map((function(r){return n(r)?o.apply(void 0,[r].concat(l)):r}));for(var e={},p=0,f=Object.entries(i);p<f.length;p++){var s=r(f[p],2),u=s[0],c=s[1];e[u]=n(c)?o.apply(void 0,[c].concat(l)):c}return t.apply(void 0,[e].concat(l))}(i)};export{i as default,i as omitDeep}; | ||
/* @license lodash-omitdeep v1.4.0 */ | ||
import{_ as r}from"../_rollupPluginBabelHelpers-D_85f5Fd.js";import o from"lodash.isnil";import a from"lodash.isplainobject";import t from"lodash.omit";var i=function(r){return!o(r)&&(a(r)||Array.isArray(r))},n=function(o){for(var e=arguments.length,p=new Array(e>1?e-1:0),l=1;l<e;l++)p[l-1]=arguments[l];return function(o){if(!Array.isArray(o)&&!a(o))return o;if(Array.isArray(o))return o.map((function(r){return i(r)?n.apply(void 0,[r].concat(p)):r}));for(var e={},l=0,s=Object.entries(o);l<s.length;l++){var c=r(s[l],2),f=c[0],u=c[1];e[f]=i(u)?n.apply(void 0,[u].concat(p)):u}return t.apply(void 0,[e].concat(p))}(o)};export{i as needOmit,n as omitDeep}; | ||
//# sourceMappingURL=omitDeep.js.map |
@@ -1,3 +0,3 @@ | ||
/* @license lodash-omitdeep v1.3.5 */ | ||
import{_ as r}from"../_rollupPluginBabelHelpers-1ea6856c.js";import t from"lodash.isplainobject";import o from"lodash.omitby";var a=function a(e,i){return function(e){if(!Array.isArray(e)&&!t(e))return e;if(Array.isArray(e))return e.map((function(r){return a(r,i)}));for(var n={},u=0,f=Object.entries(e);u<f.length;u++){var l=r(f[u],2),s=l[0],m=l[1];n[s]=a(m,i)}return o(n,i)}(e)};export{a as default,a as omitDeepBy}; | ||
/* @license lodash-omitdeep v1.4.0 */ | ||
import{_ as r}from"../_rollupPluginBabelHelpers-D_85f5Fd.js";import t from"lodash.isplainobject";import o from"lodash.omitby";var e=function(i,n){return function(i){if(!Array.isArray(i)&&!t(i))return i;if(Array.isArray(i))return i.map((function(r){return e(r,n)}));for(var a={},s=0,u=Object.entries(i);s<u.length;s++){var f=r(u[s],2),l=f[0],m=f[1];a[l]=e(m,n)}return o(a,n)}(i)};export{e as omitDeepBy}; | ||
//# sourceMappingURL=omitDeepBy.js.map |
import { PropertyName, Many, PartialObject, Dictionary, ValueKeyIteratee, NumericDictionary } from 'lodash'; | ||
interface OmitDeep { | ||
<T extends object, K extends PropertyName[]>(object: T | null | undefined, ...paths: K): Pick<T, Exclude<keyof T, K[number]>>; | ||
<T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Many<K>[]): Omit<T, K>; | ||
<T extends object>(object: T | null | undefined, ...paths: Many<PropertyName>[]): PartialObject<T>; | ||
} | ||
/** | ||
@@ -19,9 +24,9 @@ * The opposite of `_.pick`; this method creates an object composed of the | ||
*/ | ||
interface OmitDeep { | ||
<T extends object, K extends PropertyName[]>(object: T | null | undefined, ...paths: K): Pick<T, Exclude<keyof T, K[number]>>; | ||
<T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Many<K>[]): Omit<T, K>; | ||
<T extends object>(object: T | null | undefined, ...paths: Many<PropertyName>[]): PartialObject<T>; | ||
} | ||
declare const omitDeep: OmitDeep; | ||
interface OmitDeepBy { | ||
<T>(object: Dictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): Dictionary<T>; | ||
<T>(object: NumericDictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): NumericDictionary<T>; | ||
<T extends object>(object: T | null | undefined, predicate: ValueKeyIteratee<T[keyof T]>): PartialObject<T>; | ||
} | ||
/** | ||
@@ -34,3 +39,3 @@ * The opposite of `_.pickBy`; this method creates an object composed of the | ||
* @param object The source object. | ||
* @param [predicate=_.identity] The function invoked per property. | ||
* @param [predicate] The function invoked per property. | ||
* @returns Returns the new object. | ||
@@ -44,9 +49,4 @@ * @example | ||
*/ | ||
interface OmitDeepBy { | ||
<T>(object: Dictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): Dictionary<T>; | ||
<T>(object: NumericDictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): NumericDictionary<T>; | ||
<T extends object>(object: T | null | undefined, predicate: ValueKeyIteratee<T[keyof T]>): PartialObject<T>; | ||
} | ||
declare const omitDeepBy: OmitDeepBy; | ||
export { omitDeep, omitDeepBy }; |
{ | ||
"name": "lodash-omitdeep", | ||
"version": "1.3.5", | ||
"type": "module", | ||
"version": "1.4.0", | ||
"description": "lodash omitDeep/omitByDeep object key/value recursively", | ||
"sideEffects": false, | ||
"author": { | ||
@@ -17,5 +17,10 @@ "name": "SIBERIA CAN CODE 🧊", | ||
"license": "MIT", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/index.d.ts", | ||
"homepage": "https://github.com/siberiacancode/lodash-omitdeep", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/siberiacancode/lodash-omitdeep" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/siberiacancode/lodash-omitdeep/issues" | ||
}, | ||
"keywords": [ | ||
@@ -34,10 +39,6 @@ "lodash", | ||
], | ||
"homepage": "https://github.com/siberiacancode/lodash-omitdeep", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/siberiacancode/lodash-omitdeep" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/siberiacancode/lodash-omitdeep/issues" | ||
}, | ||
"sideEffects": false, | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
@@ -48,20 +49,9 @@ "dist/**/*" | ||
"build": "shx rm -rf dist && rollup -c --bundleConfigAsCjs", | ||
"prepublishOnly": "npm test && npm run lint", | ||
"preversion": "npm run lint", | ||
"version": "npm run format && git add -A src", | ||
"prepare": "husky install && npm run build", | ||
"postversion": "git push && git push --tags", | ||
"lint": "eslint . --ext ts --no-error-on-unmatched-pattern --fix", | ||
"format": "prettier --write **/*.{ts,js}", | ||
"lint": "eslint . --fix", | ||
"type": "tsc --noEmit", | ||
"pretty": "yarn type && yarn format && yarn lint", | ||
"test": "jest" | ||
"format": "prettier --write .", | ||
"pretty": "yarn type && yarn lint && yarn format", | ||
"prepare": "husky", | ||
"unit-test": "vitest" | ||
}, | ||
"lint-staged": { | ||
"*.js": "prettier --write", | ||
"*.ts": [ | ||
"prettier --write", | ||
"eslint --no-error-on-unmatched-pattern --fix" | ||
] | ||
}, | ||
"peerDependencies": { | ||
@@ -80,17 +70,25 @@ "lodash.isnil": "^4.0.0", | ||
"devDependencies": { | ||
"@siberiacancode/builder": "^1.2.0", | ||
"@siberiacancode/eslint": "^1.0.2", | ||
"@siberiacancode/jest": "^1.0.1", | ||
"@siberiacancode/prettier": "^1.0.0", | ||
"@types/jest": "^29.5.5", | ||
"@types/lodash.isnil": "^4.0.7", | ||
"@types/lodash.isplainobject": "^4.0.7", | ||
"@types/lodash.omit": "^4.5.7", | ||
"@types/lodash.omitby": "^4.6.7", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^14.0.1", | ||
"@siberiacancode/builder": "^1.3.17", | ||
"@siberiacancode/eslint": "^2.6.0", | ||
"@siberiacancode/prettier": "^1.1.1", | ||
"@siberiacancode/vitest": "^1.2.4", | ||
"@types/lodash.isnil": "^4.0.9", | ||
"@types/lodash.isplainobject": "^4.0.9", | ||
"@types/lodash.omit": "^4.5.9", | ||
"@types/lodash.omitby": "^4.6.9", | ||
"husky": "^9.1.7", | ||
"lint-staged": "^15.3.0", | ||
"shx": "^0.3.4", | ||
"ts-jest": "^29.1.1", | ||
"typescript": "^5.2.2" | ||
"typescript": "^5.7.2" | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
], | ||
"*.ts": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
] | ||
} | ||
} |
@@ -0,0 +0,0 @@ # ♻️ Lodash Omit Deep |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
12
1
Yes
23507
83