{"size": 432, "ext": "js", "max_stars_repo_path": "node_modules/@discordjs/rest/dist/lib/utils/utils.js", "max_stars_repo_name": "GabrielHoy/TConvert", "max_stars_repo_stars_event_min_datetime": "2022-01-05T03:04:01.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-01T19:16:29.000Z", "max_issues_repo_path": "node_modules/@discordjs/rest/dist/lib/utils/utils.js", "max_issues_repo_name": "GabrielHoy/TConvert", "max_issues_repo_issues_event_min_datetime": "2021-11-01T21:26:38.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-24T21:25:13.000Z", "max_forks_repo_path": "node_modules/@discordjs/rest/dist/lib/utils/utils.js", "max_forks_repo_name": "GabrielHoy/TConvert", "max_forks_repo_forks_event_min_datetime": "2022-03-29T10:35:27.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T10:35:27.000Z"}
{"max_stars_count": 2, "max_issues_count": 22, "max_forks_count": 1, "avg_line_length": 28.8, "max_line_length": 74, "alphanum_fraction": 0.6967592593}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseResponse = void 0;
/**
 * Converts the response to usable data
 * @param res The node-fetch response
 */
function parseResponse(res) {
    if (res.headers.get('Content-Type')?.startsWith('application/json')) {
        return res.json();
    }
    return res.buffer();
}
exports.parseResponse = parseResponse;
//# sourceMappingURL=utils.js.map