2.0.0 • Published 1 year ago

@nortex/pretty-zod-error v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago