extends options object that can be passed to query (both from CLI and as direct dependency) with depth value (to have ability explicitly limit recursions) (CLI: depth / prop: maxDepth) and unwanted node names list^ (CLI: exclude / prop: unwantedNodeNames);
enables stricter ts rules;
rest of little minor changes.
^ These changes can help to overcome situations like one that described in #1.
Example of usage: npx puppeteer-heap-snapshot.js query -u https://polypane.app/css-specificity-calculator/ -p href -e Location,HTMLAnchorElement,URL,HTMLLinkElement,SVGGradientElement,SVGFilterElement -d 1.
This PR brings following changes:
query
(both from CLI and as direct dependency) with depth value (to have ability explicitly limit recursions) (CLI:depth
/ prop:maxDepth
) and unwanted node names list^ (CLI:exclude
/ prop:unwantedNodeNames
);^ These changes can help to overcome situations like one that described in #1.
Example of usage:
npx puppeteer-heap-snapshot.js query -u https://polypane.app/css-specificity-calculator/ -p href -e Location,HTMLAnchorElement,URL,HTMLLinkElement,SVGGradientElement,SVGFilterElement -d 1
.