UNPKG

kitsu-core

Version:

Simple, lightweight & framework agnostic JSON:API (de)serialsation components

12 lines (9 loc) 187 B
'use strict'; function error(Error) { if (Error.response) { const e = Error.response.data; if (e?.errors) Error.errors = e.errors; } throw Error; } exports.error = error;