@goldstack/utils-log
Advanced tools
Comparing version 0.1.36 to 0.1.37
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fatal = exports.debug = void 0; | ||
var isDebug = process.env.GOLDSTACK_DEBUG || process.env.DEBUG; | ||
const isDebug = process.env.GOLDSTACK_DEBUG || process.env.DEBUG; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
exports.debug = function (msg) { | ||
exports.debug = (msg) => { | ||
if (isDebug) { | ||
@@ -11,3 +11,3 @@ console.log(msg); | ||
}; | ||
exports.fatal = function (msg) { | ||
exports.fatal = (msg) => { | ||
if (isDebug) { | ||
@@ -14,0 +14,0 @@ throw new Error(msg); |
{ | ||
"name": "@goldstack/utils-log", | ||
"version": "0.1.36", | ||
"version": "0.1.37", | ||
"description": "Utilities for emitting logs.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
2453