diff --git a/.npmrc b/.npmrc index 319e41e..1012140 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ strict-peer-dependencies=false +registry=http://registry.npmmirror.com diff --git a/package.json b/package.json index b420d29..ba24729 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ ], "license": "MIT", "dependencies": { - "react-is": "^18.2.0" + "react-is": "^18.2.0", + "tree-lodash": "^0.3.1" }, "devDependencies": { "@commitlint/cli": "17.4.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dec49d8..7ae6de5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,9 +1,16 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + dependencies: react-is: specifier: ^18.2.0 version: 18.2.0 + tree-lodash: + specifier: ^0.3.1 + version: 0.3.1 devDependencies: '@commitlint/cli': @@ -2279,7 +2286,7 @@ packages: dependencies: '@babel/core': 7.18.13 postcss: 7.0.39 - postcss-syntax: 0.36.2(postcss-html@0.36.0)(postcss-less@3.1.4)(postcss-scss@2.1.1)(postcss@7.0.39) + postcss-syntax: 0.36.2(postcss@8.4.16) transitivePeerDependencies: - supports-color dev: true @@ -2292,7 +2299,7 @@ packages: postcss-syntax: '>=0.36.2' dependencies: postcss: 7.0.39 - postcss-syntax: 0.36.2(postcss-html@0.36.0)(postcss-less@3.1.4)(postcss-scss@2.1.1)(postcss@7.0.39) + postcss-syntax: 0.36.2(postcss@8.4.16) remark: 13.0.0 unist-util-find-all-after: 3.0.2 transitivePeerDependencies: @@ -7943,7 +7950,7 @@ packages: dependencies: htmlparser2: 3.10.1 postcss: 7.0.39 - postcss-syntax: 0.36.2(postcss-html@0.36.0)(postcss-less@3.1.4)(postcss-scss@2.1.1)(postcss@7.0.39) + postcss-syntax: 0.36.2(postcss@8.4.16) dev: true /postcss-image-set-function@4.0.7(postcss@8.4.16): @@ -8219,7 +8226,7 @@ packages: postcss: 8.4.16 dev: true - /postcss-syntax@0.36.2(postcss-html@0.36.0)(postcss-less@3.1.4)(postcss-scss@2.1.1)(postcss@7.0.39): + /postcss-syntax@0.36.2(postcss@8.4.16): resolution: {integrity: sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w==} peerDependencies: postcss: '>=5.0.0' @@ -8240,10 +8247,7 @@ packages: postcss-scss: optional: true dependencies: - postcss: 7.0.39 - postcss-html: 0.36.0(postcss-syntax@0.36.2)(postcss@7.0.39) - postcss-less: 3.1.4 - postcss-scss: 2.1.1 + postcss: 8.4.16 dev: true /postcss-value-parser@4.2.0: @@ -9402,7 +9406,7 @@ packages: postcss-sass: 0.4.4 postcss-scss: 2.1.1 postcss-selector-parser: 6.0.10 - postcss-syntax: 0.36.2(postcss-html@0.36.0)(postcss-less@3.1.4)(postcss-scss@2.1.1)(postcss@7.0.39) + postcss-syntax: 0.36.2(postcss@8.4.16) postcss-value-parser: 4.2.0 resolve-from: 5.0.0 slash: 3.0.0 @@ -9627,6 +9631,10 @@ packages: resolution: {integrity: sha512-kdf4JKs8lbARxWdp7RKdNzoJBhGUcIalSYibuGyHJbmk40pOysQ0+QPvlkCOICOivDWU2IJo2rkrxyTK2AH4fw==} dev: true + /tree-lodash@0.3.1: + resolution: {integrity: sha512-wu3kZ+dA5M3cJ31FbYw2z225KpGgeLcZ1JQQ2Cp6h/Q1YVKjNFMuJFFtmsR6acujFufHk34ycWMhKidLkQS2CQ==} + dev: false + /trim-newlines@3.0.1: resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} engines: {node: '>=8'} diff --git a/src/tree/index.ts b/src/tree/index.ts index 99d42cb..568b3ff 100644 --- a/src/tree/index.ts +++ b/src/tree/index.ts @@ -1 +1,2 @@ export { toTree } from './toTree'; +export { toArray, filter, find, foreach as forEach, some } from 'tree-lodash';