@typed/test
Version:
Testing made simple.
19 lines • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const headers = { 'Content-Type': 'application/json' };
function log(msg) {
console.log(msg);
return fetch(`/log`, { method: 'POST', headers, body: JSON.stringify({ msg }) }).then(() => void 0);
}
exports.log = log;
function error(msg) {
console.error(msg);
return fetch(`/error`, { method: 'POST', headers, body: JSON.stringify({ msg }) }).then(() => void 0);
}
exports.error = error;
function clear() {
console.clear();
return fetch(`/clear`).then(() => void 0);
}
exports.clear = clear;
//# sourceMappingURL=logger.js.map