types.isNativeError to use Error.isError() to handle Node.js DEP0197.
What It Does
This codemod replaces:types.isNativeError()calls withError.isError()- Removes unnecessary
utilimports when no longer needed
Before/After
- ESM
- CommonJS
Before:After: