Skip to content
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

Add orignal error to JSONError.cause #50

Merged
merged 7 commits into from
Mar 21, 2025

Conversation

fisker
Copy link
Contributor

@fisker fisker commented Mar 20, 2025

  • Move all error related logic to JSONError
  • Lazy evaluate codeFrame and rawCodeFrame (with cache)
  • Add JSONError.cause
  • Update examples in readme.md and index.d.ts

Logic change is in the first commit.

@fisker fisker marked this pull request as ready for review March 20, 2025 14:31
@sindresorhus sindresorhus merged commit 703bb87 into sindresorhus:main Mar 21, 2025
3 checks passed
@fisker fisker deleted the json-error-cause branch March 21, 2025 08:21
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.

2 participants