Comparing version 1.0.19 to 1.0.20
@@ -6,4 +6,4 @@ import { Semaphore } from "./Semaphore"; | ||
export declare const getUptimeServer: () => string; | ||
export declare const log: (log: any) => void; | ||
export declare const log: (tag: string, value: any) => void; | ||
export declare const replacer: () => (key: any, value: any) => any; | ||
export { Semaphore }; |
@@ -84,5 +84,5 @@ "use strict"; | ||
exports.getUptimeServer = getUptimeServer; | ||
const log = (log) => { | ||
const log = (tag, value) => { | ||
if (process.env.MODE_DEBUG === "true") { | ||
console.log(JSON.stringify(log, (0, exports.replacer)(), 2)); | ||
console.log(tag, JSON.stringify(value, (0, exports.replacer)(), 2)); | ||
} | ||
@@ -89,0 +89,0 @@ }; |
{ | ||
"name": "c2-util", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "Biblioteca de funções utilitárias", | ||
@@ -5,0 +5,0 @@ "repository": "https://cabralsilva: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@github.com/cabralsilva/c2-util.git", |
6670