Skip to content

Conversation

@Nedgeva
Copy link

@Nedgeva Nedgeva commented May 24, 2022

This PR brings following changes:

  1. 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);
  2. enables stricter ts rules;
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant