@goldstack/utils-log
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -1,3 +0,5 @@ | ||
export declare const debug: (msg: any) => void; | ||
export declare function debug(msg: string): void; | ||
export declare function info(msg: string): void; | ||
export declare function error(msg: string): void; | ||
export declare const fatal: (msg: string) => void; | ||
//# sourceMappingURL=utilsLog.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fatal = exports.debug = void 0; | ||
exports.fatal = exports.error = exports.info = exports.debug = void 0; | ||
const utils_cli_1 = require("@goldstack/utils-cli"); | ||
const isDebug = process.env.GOLDSTACK_DEBUG || process.env.DEBUG; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const debug = (msg) => { | ||
if (isDebug) { | ||
console.log(msg); | ||
} | ||
}; | ||
function debug(msg) { | ||
(0, utils_cli_1.logger)().debug(msg); | ||
} | ||
exports.debug = debug; | ||
function info(msg) { | ||
(0, utils_cli_1.logger)().info(msg); | ||
} | ||
exports.info = info; | ||
function error(msg) { | ||
(0, utils_cli_1.logger)().error(msg); | ||
} | ||
exports.error = error; | ||
const fatal = (msg) => { | ||
@@ -16,3 +22,3 @@ if (isDebug) { | ||
} | ||
console.log(msg); | ||
(0, utils_cli_1.logger)().error(msg); | ||
process.exit(1); | ||
@@ -19,0 +25,0 @@ }; |
{ | ||
"name": "@goldstack/utils-log", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "Utilities for emitting logs.", | ||
@@ -36,6 +36,9 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"@goldstack/utils-cli": "0.3.10" | ||
}, | ||
"devDependencies": { | ||
"@goldstack/utils-git": "0.2.9", | ||
"@swc/core": "^1.3.55", | ||
"@swc/jest": "^0.2.26", | ||
"@swc/core": "^1.3.74", | ||
"@swc/jest": "^0.2.27", | ||
"@types/jest": "^29.0.1", | ||
@@ -42,0 +45,0 @@ "@types/node": "^18.7.13", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3868
29
1
2
+ Added@goldstack/utils-cli@0.3.10
+ Added@goldstack/utils-cli@0.3.10(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedatomic-sleep@1.0.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedcolorette@2.0.20(transitive)
+ Addeddateformat@4.6.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedfast-copy@3.0.2(transitive)
+ Addedfast-redact@3.5.0(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedhelp-me@5.0.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedjoycon@3.1.1(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedon-exit-leak-free@2.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpino@9.6.0(transitive)
+ Addedpino-abstract-transport@2.0.0(transitive)
+ Addedpino-pretty@11.3.0(transitive)
+ Addedpino-std-serializers@7.0.0(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedprocess-warning@4.0.1(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedquick-format-unescaped@4.0.4(transitive)
+ Addedreadable-stream@4.7.0(transitive)
+ Addedreal-require@0.2.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafe-stable-stringify@2.5.0(transitive)
+ Addedsecure-json-parse@2.7.0(transitive)
+ Addedsonic-boom@4.2.0(transitive)
+ Addedsplit2@4.2.0(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedstrip-json-comments@3.1.1(transitive)
+ Addedthread-stream@3.1.0(transitive)
+ Addedwrappy@1.0.2(transitive)