react-children-utilities
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "react-children-utilities", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Recursive and extended utils for React children opaque data structure", | ||
@@ -58,7 +58,7 @@ "keywords": [ | ||
"@types/jest": "^24.0.23", | ||
"@types/react": "^16.9.13", | ||
"@types/react": "^16.9.15", | ||
"@types/react-dom": "^16.9.4", | ||
"@typescript-eslint/eslint-plugin": "^2.9.0", | ||
"@typescript-eslint/parser": "^2.9.0", | ||
"all-contributors-cli": "^6.11.0", | ||
"@typescript-eslint/eslint-plugin": "^2.10.0", | ||
"@typescript-eslint/parser": "^2.10.0", | ||
"all-contributors-cli": "^6.11.1", | ||
"bundlesize": "^0.18.0", | ||
@@ -70,12 +70,12 @@ "codecov": "^3.6.1", | ||
"enzyme-adapter-react-16": "^1.15.1", | ||
"eslint": "^6.7.1", | ||
"eslint": "^6.7.2", | ||
"eslint-config-airbnb": "^18.0.1", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^23.0.4", | ||
"eslint-plugin-jest": "^23.1.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-react": "^7.16.0", | ||
"eslint-plugin-react": "^7.17.0", | ||
"eslint-plugin-react-hooks": "^2.3.0", | ||
"flow-bin": "^0.112.0", | ||
"flow-bin": "^0.113.0", | ||
"flowgen": "^1.10.0", | ||
@@ -86,4 +86,4 @@ "husky": "^3.1.0", | ||
"jest-enzyme": "^7.1.2", | ||
"jest-junit": "^9.0.0", | ||
"lint-staged": "^9.4.3", | ||
"jest-junit": "^10.0.0", | ||
"lint-staged": "^9.5.0", | ||
"make-dir-cli": "^2.0.0", | ||
@@ -96,6 +96,6 @@ "normalize.css": "^8.0.1", | ||
"react-test-renderer": "^16.12.0", | ||
"rollup": "^1.27.5", | ||
"rollup": "^1.27.8", | ||
"rollup-plugin-terser": "^5.1.2", | ||
"ts-jest": "^24.2.0", | ||
"typescript": "^3.7.2" | ||
"typescript": "^3.7.3" | ||
}, | ||
@@ -105,2 +105,5 @@ "peerDependencies": { | ||
}, | ||
"resolutions": { | ||
"serialize-javascript": "^2.1.1" | ||
}, | ||
"bundlesize": [ | ||
@@ -107,0 +110,0 @@ { |
@@ -1,2 +0,2 @@ | ||
import{isValidElement as e,Children as t,cloneElement as r}from"react";const o=t=>e(t)&&Boolean(t.t.children),n=r=>e(r)&&o(r)&&t.toArray(r.t.children).reduce((t,r)=>t||e(r),!1),l=(o,c)=>t.toArray(o).filter(c).map(t=>e(t)&&n(t)?r(t,Object.assign(Object.assign({},t.t),{children:l(t.t.children,c)})):t),c=(r,o)=>{let l;return t.toArray(r).find(t=>o(t)?(l=t,!0):!(!e(t)||!n(t))&&void 0!==(l=c(t.t.children,o))),l},p=(r,o)=>{t.forEach(r,t=>{e(t)&&n(t)&&p(t.t.children,o),o(t)})},d=(o,l)=>t.map(o,t=>e(t)&&n(t)?l(r(t,Object.assign(Object.assign({},t.t),{children:d(t.t.children,l)}))):l(t)),i=(e,r)=>t.toArray(e).filter(r),a=(r,o=[],n="rest")=>t.toArray(r).reduce((t,r)=>{const l=Object.assign({},t);let c=n;return e(r)&&"string"==typeof r.type&&o.includes(r.type)&&(c=r.type),void 0===l[c]&&(l[c]=[]),l[c]=[...l[c],r],l},{}),b=e=>null==e||"boolean"==typeof e?"":e.toString(),h=r=>r instanceof Array||e(r)?t.toArray(r).reduce((t,r)=>{let n;return n=e(r)&&o(r)?h(r.t.children):b(r),t.concat(n)},""):b(r);var j=Object.assign(Object.assign({},t),{o:l,l:c,p:p,i:d,filter:i,h:a,j:o,s:n,O:h});export default j;export{l as deepFilter,c as deepFind,p as deepForEach,d as deepMap,i as filter,a as groupByType,o as hasChildren,n as hasComplexChildren,h as onlyText}; | ||
import{isValidElement as e,Children as t,cloneElement as r}from"react";const o=t=>e(t)&&Boolean(t.t.children),n=r=>e(r)&&o(r)&&t.toArray(r.t.children).reduce((t,r)=>t||e(r),!1),l=(o,c)=>t.toArray(o).filter(c).map(t=>e(t)&&n(t)?r(t,Object.assign(Object.assign({},t.t),{children:l(t.t.children,c)})):t),c=(r,o)=>{let l;return t.toArray(r).find(t=>o(t)?(l=t,!0):!(!e(t)||!n(t))&&(l=c(t.t.children,o),void 0!==l)),l},p=(r,o)=>{t.forEach(r,t=>{e(t)&&n(t)&&p(t.t.children,o),o(t)})},d=(o,l)=>t.map(o,t=>e(t)&&n(t)?l(r(t,Object.assign(Object.assign({},t.t),{children:d(t.t.children,l)}))):l(t)),i=(e,r)=>t.toArray(e).filter(r),a=(r,o=[],n="rest")=>t.toArray(r).reduce((t,r)=>{const l=Object.assign({},t);let c=n;return e(r)&&"string"==typeof r.type&&o.includes(r.type)&&(c=r.type),void 0===l[c]&&(l[c]=[]),l[c]=[...l[c],r],l},{}),b=e=>null==e||"boolean"==typeof e?"":e.toString(),h=r=>r instanceof Array||e(r)?t.toArray(r).reduce((t,r)=>{let n;return n=e(r)&&o(r)?h(r.t.children):b(r),t.concat(n)},""):b(r);var j=Object.assign(Object.assign({},t),{o:l,l:c,p:p,i:d,filter:i,h:a,j:o,s:n,O:h});export default j;export{l as deepFilter,c as deepFind,p as deepForEach,d as deepMap,i as filter,a as groupByType,o as hasChildren,n as hasComplexChildren,h as onlyText}; | ||
//# sourceMappingURL=react-children-utilities.min.js.map |
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
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
906947