react-children-utilities
Advanced tools
Comparing version 2.0.4 to 2.0.5
import { ReactNode } from 'react'; | ||
export declare type MapFunction = (child: ReactNode, index?: number, children?: ReactNode[]) => ReactNode; | ||
declare const deepMap: (children: ReactNode, deepMapFn: MapFunction) => ReactNode[]; | ||
declare const deepMap: (children: ReactNode, deepMapFn: MapFunction) => ReactNode; | ||
export default deepMap; | ||
//# sourceMappingURL=deepMap.d.ts.map |
{ | ||
"name": "react-children-utilities", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Recursive and extended utils for React children opaque data structure", | ||
@@ -55,5 +55,5 @@ "keywords": [ | ||
"@types/enzyme-adapter-react-16": "^1.0.5", | ||
"@types/jest": "^24.9.0", | ||
"@types/react": "^16.9.17", | ||
"@types/react-dom": "^16.9.4", | ||
"@types/jest": "^24.9.1", | ||
"@types/react": "^16.9.19", | ||
"@types/react-dom": "^16.9.5", | ||
"@typescript-eslint/eslint-plugin": "^2.17.0", | ||
@@ -63,3 +63,3 @@ "@typescript-eslint/parser": "^2.17.0", | ||
"bundlesize": "^0.18.0", | ||
"codecov": "^3.6.1", | ||
"codecov": "^3.6.2", | ||
"credits-cli": "^3.1.0", | ||
@@ -80,8 +80,8 @@ "del-cli": "^3.0.0", | ||
"flowgen": "^1.10.0", | ||
"husky": "^4.0.10", | ||
"jest": "^24.9.0", | ||
"husky": "^4.2.1", | ||
"jest": "^25.1.0", | ||
"jest-environment-enzyme": "^7.1.2", | ||
"jest-enzyme": "^7.1.2", | ||
"jest-junit": "^10.0.0", | ||
"lint-staged": "^10.0.1", | ||
"lint-staged": "^10.0.2", | ||
"make-dir-cli": "^2.0.0", | ||
@@ -94,5 +94,5 @@ "normalize.css": "^8.0.1", | ||
"react-test-renderer": "^16.12.0", | ||
"rollup": "^1.29.0", | ||
"rollup": "^1.29.1", | ||
"rollup-plugin-terser": "^5.2.0", | ||
"ts-jest": "^24.3.0", | ||
"ts-jest": "^25.0.0", | ||
"typescript": "^3.7.5" | ||
@@ -99,0 +99,0 @@ }, |
@@ -16,3 +16,3 @@ /// <reference types="react" /> | ||
deepForEach: (children: import("react").ReactNode, deepForEachFn: import("./lib/deepForEach").ForEachFunction) => void; | ||
deepMap: (children: import("react").ReactNode, deepMapFn: import("./lib/deepMap").MapFunction) => import("react").ReactNode[]; | ||
deepMap: (children: import("react").ReactNode, deepMapFn: import("./lib/deepMap").MapFunction) => import("react").ReactNode; | ||
filter: (children: import("react").ReactNode, filterFn: (child: import("react").ReactNode, index?: number | undefined, children?: import("react").ReactNode[] | undefined) => boolean) => import("react").ReactNode[]; | ||
@@ -23,9 +23,9 @@ groupByType: (children: import("react").ReactNode, types?: import("react").ReactNode[], rest?: string) => import("./lib/groupByType").GroupedChildren; | ||
onlyText: (children: import("react").ReactNode) => string; | ||
map<T, C>(children: C | C[], fn: (child: C, index: number) => T): T[]; | ||
map<T, C>(children: C | C[], fn: (child: C, index: number) => T): C extends null | undefined ? C : Exclude<T, boolean | null | undefined>[]; | ||
forEach<C_1>(children: C_1 | C_1[], fn: (child: C_1, index: number) => void): void; | ||
count(children: any): number; | ||
only<C_2>(children: C_2): C_2 extends any[] ? never : C_2; | ||
toArray<C_3>(children: C_3 | C_3[]): C_3[]; | ||
toArray(children: string | number | boolean | {} | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactNode[] | null | undefined): (string | number | {} | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | import("react").ReactNodeArray | import("react").ReactPortal)[]; | ||
}; | ||
export default _default; | ||
//# sourceMappingURL=react-children-utilities.d.ts.map |
@@ -87,8 +87,8 @@ # React Children Utilities | ||
<tr> | ||
<td align="center"><a href="https://fernandopasik.com"><img src="https://avatars1.githubusercontent.com/u/1301335?v=4" width="100px;" alt="Fernando Pasik"/><br /><sub><b>Fernando Pasik</b></sub></a><br /><a href="https://github.com/fernandopasik/lit-redux-router/issues?q=author%3Afernandopasik" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/lit-redux-router/commits?author=fernandopasik" title="Code">💻</a> <a href="https://github.com/fernandopasik/lit-redux-router/commits?author=fernandopasik" title="Documentation">📖</a> <a href="#ideas-fernandopasik" title="Ideas, Planning, & Feedback">🤔</a></td> | ||
<td align="center"><a href="https://github.com/mrm007"><img src="https://avatars3.githubusercontent.com/u/3297808?v=4" width="100px;" alt="mrm007"/><br /><sub><b>mrm007</b></sub></a><br /><a href="https://github.com/fernandopasik/lit-redux-router/issues?q=author%3Amrm007" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/lit-redux-router/commits?author=mrm007" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/vasilevich"><img src="https://avatars2.githubusercontent.com/u/1217224?v=4" width="100px;" alt="yosef langer"/><br /><sub><b>yosef langer</b></sub></a><br /><a href="https://github.com/fernandopasik/lit-redux-router/issues?q=author%3Avasilevich" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/lit-redux-router/commits?author=vasilevich" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/iyegoroff"><img src="https://avatars2.githubusercontent.com/u/4447438?v=4" width="100px;" alt="iyegoroff"/><br /><sub><b>iyegoroff</b></sub></a><br /><a href="https://github.com/fernandopasik/lit-redux-router/issues?q=author%3Aiyegoroff" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/lit-redux-router/commits?author=iyegoroff" title="Code">💻</a></td> | ||
<td align="center"><a href="http://vydia.com"><img src="https://avatars1.githubusercontent.com/u/4197823?v=4" width="100px;" alt="Mark Allen"/><br /><sub><b>Mark Allen</b></sub></a><br /><a href="https://github.com/fernandopasik/lit-redux-router/issues?q=author%3ATSMMark" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/lit-redux-router/commits?author=TSMMark" title="Code">💻</a></td> | ||
<td align="center"><a href="https://medium.com/@riywo"><img src="https://avatars2.githubusercontent.com/u/37822?v=4" width="100px;" alt="Ryosuke IWANAGA"/><br /><sub><b>Ryosuke IWANAGA</b></sub></a><br /><a href="https://github.com/fernandopasik/lit-redux-router/issues?q=author%3Ariywo" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/lit-redux-router/commits?author=riywo" title="Code">💻</a></td> | ||
<td align="center"><a href="https://fernandopasik.com"><img src="https://avatars1.githubusercontent.com/u/1301335?v=4" width="100px;" alt=""/><br /><sub><b>Fernando Pasik</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Afernandopasik" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=fernandopasik" title="Code">💻</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=fernandopasik" title="Documentation">📖</a> <a href="#ideas-fernandopasik" title="Ideas, Planning, & Feedback">🤔</a></td> | ||
<td align="center"><a href="https://github.com/mrm007"><img src="https://avatars3.githubusercontent.com/u/3297808?v=4" width="100px;" alt=""/><br /><sub><b>mrm007</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Amrm007" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=mrm007" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/vasilevich"><img src="https://avatars2.githubusercontent.com/u/1217224?v=4" width="100px;" alt=""/><br /><sub><b>yosef langer</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Avasilevich" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=vasilevich" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/iyegoroff"><img src="https://avatars2.githubusercontent.com/u/4447438?v=4" width="100px;" alt=""/><br /><sub><b>iyegoroff</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Aiyegoroff" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=iyegoroff" title="Code">💻</a></td> | ||
<td align="center"><a href="http://vydia.com"><img src="https://avatars1.githubusercontent.com/u/4197823?v=4" width="100px;" alt=""/><br /><sub><b>Mark Allen</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3ATSMMark" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=TSMMark" title="Code">💻</a></td> | ||
<td align="center"><a href="https://medium.com/@riywo"><img src="https://avatars2.githubusercontent.com/u/37822?v=4" width="100px;" alt=""/><br /><sub><b>Ryosuke IWANAGA</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Ariywo" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=riywo" title="Code">💻</a></td> | ||
</tr> | ||
@@ -99,3 +99,2 @@ </table> | ||
<!-- prettier-ignore-end --> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
@@ -102,0 +101,0 @@ |
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
50252
204
105