Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@goldstack/utils-log

Package Overview
Dependencies
Maintainers
0
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goldstack/utils-log - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

4

dist/src/utilsLog.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc