UNPKG

osu-api-extended

Version:

Advanced osu! api wrapper cover all V2 and V1 endpoints, and provide useful tools

13 lines (12 loc) 331 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleErrors = void 0; const auth_1 = require("../utility/auth"); const handleErrors = (error) => { if (auth_1.settings.throwErrors) { throw error; } ; return { error }; }; exports.handleErrors = handleErrors;