2.0.0 • Published 2 years ago

@nortex/pretty-zod-error v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

pretty-zod-error

An extremely simple package to quickly log pretty @colinhacks/zod errors to the console.

Changelog 2.0.0:

  • Renamed logZodError to prettifyZodError to not cause confusion.
  • Added logPrettyZodError, which will console.log output of prettifyZodError.
  • Added new options property to prettifyZodError, with options:
    • withIndex: boolean - defines whether or not to prepend the issue index
    • noColors: boolean - strip colors
    • errorCode: boolean - defines whether or not to append the error code (the dimmed part)
  • Cleaned & refactored up code
2.0.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago