diff options
Diffstat (limited to 'deps/npm/docs/output/using-npm/dependency-selectors.html')
-rw-r--r-- | deps/npm/docs/output/using-npm/dependency-selectors.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/docs/output/using-npm/dependency-selectors.html b/deps/npm/docs/output/using-npm/dependency-selectors.html index e19499207da..31ab2bb5b7c 100644 --- a/deps/npm/docs/output/using-npm/dependency-selectors.html +++ b/deps/npm/docs/output/using-npm/dependency-selectors.html @@ -264,14 +264,14 @@ npm command-line interface const arb = new Arborist({}) </code></pre> <pre lang="js"><code>// root-level -arb.loadActual((tree) => { +arb.loadActual().then(async (tree) => { // query all production dependencies const results = await tree.querySelectorAll('.prod') console.log(results) }) </code></pre> <pre lang="js"><code>// iterative -arb.loadActual((tree) => { +arb.loadActual().then(async (tree) => { // query for the deduped version of react const results = await tree.querySelectorAll('#react:not(:deduped)') // query the deduped react for git deps |