UNPKG

@matheustrres/brasilapi

Version:

Lightweight, easy-to-use & free of dependencies wrapper for BrasilAPI

20 lines 471 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Source = void 0; class Source { followUp(res) { const timestamp = new Date().toISOString(); if (res.message && res.type) { return { timestamp, status: res, }; } return { timestamp, data: res, }; } } exports.Source = Source; //# sourceMappingURL=source.js.map