Skip to content

fix(catcher-js): prevent infinite cycle issue #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Dobrunia
Copy link
Member

  • fix Vue3 integration #123
    Changes Made:
  • Refactored console catcher from factory function to class: Replaced createConsoleCatcher() function with ConsoleCatcher class for better encapsulation and single instance management
  • Improved console catcher integration: Changed from global exports to instance-based usage via this.consoleCatcher in main Catcher class, ensuring single initialization
  • Enhanced recursion protection: Added multi-layer protection including processing flag, Vue runtime detection, and Hawk internal calls filtering to prevent infinite loops
  • Added styles support: Extended ConsoleLogEvent type with styles field to properly handle %c console formatting directives

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