@goldstack/utils-log 0.3.13 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/utilsLog.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare function info(msg: string, properties?: {
|
|
|
9
9
|
export declare function warn(msg: string, properties?: {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}): void;
|
|
12
|
-
export declare function error(msg: string
|
|
12
|
+
export declare function error(msg: string, properties?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): void;
|
|
13
15
|
export declare const fatal: (msg: string) => void;
|
|
14
16
|
//# sourceMappingURL=utilsLog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilsLog.d.ts","sourceRoot":"","sources":["../../src/utilsLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAI7E,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAEpD;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE5E;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE3E;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE3E;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"utilsLog.d.ts","sourceRoot":"","sources":["../../src/utilsLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAI7E,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAEpD;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE5E;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE3E;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE3E;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE5E;AACD,eAAO,MAAM,KAAK,QAAS,MAAM,KAAG,IAMnC,CAAC"}
|
package/dist/src/utilsLog.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fatal =
|
|
3
|
+
exports.fatal = void 0;
|
|
4
|
+
exports.setLogger = setLogger;
|
|
5
|
+
exports.debug = debug;
|
|
6
|
+
exports.info = info;
|
|
7
|
+
exports.warn = warn;
|
|
8
|
+
exports.error = error;
|
|
4
9
|
const utils_cli_1 = require("@goldstack/utils-cli");
|
|
5
10
|
const isDebug = process.env.GOLDSTACK_DEBUG || process.env.DEBUG;
|
|
6
11
|
function setLogger(config) {
|
|
7
12
|
(0, utils_cli_1.configureLogger)(config);
|
|
8
13
|
}
|
|
9
|
-
exports.setLogger = setLogger;
|
|
10
14
|
function debug(msg, properties) {
|
|
11
15
|
(0, utils_cli_1.logger)().debug(properties, msg);
|
|
12
16
|
}
|
|
13
|
-
exports.debug = debug;
|
|
14
17
|
function info(msg, properties) {
|
|
15
18
|
(0, utils_cli_1.logger)().info(properties, msg);
|
|
16
19
|
}
|
|
17
|
-
exports.info = info;
|
|
18
20
|
function warn(msg, properties) {
|
|
19
21
|
(0, utils_cli_1.logger)().warn(properties, msg);
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(0, utils_cli_1.logger)().error(msg);
|
|
23
|
+
function error(msg, properties) {
|
|
24
|
+
(0, utils_cli_1.logger)().error(properties, msg);
|
|
24
25
|
}
|
|
25
|
-
exports.error = error;
|
|
26
26
|
const fatal = (msg) => {
|
|
27
27
|
if (isDebug) {
|
|
28
28
|
throw new Error(msg);
|
|
29
29
|
}
|
|
30
|
-
(0, utils_cli_1.logger)().error(msg);
|
|
30
|
+
(0, utils_cli_1.logger)().error({}, msg);
|
|
31
31
|
process.exit(1);
|
|
32
32
|
};
|
|
33
33
|
exports.fatal = fatal;
|
package/dist/src/utilsLog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilsLog.js","sourceRoot":"","sources":["../../src/utilsLog.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"utilsLog.js","sourceRoot":"","sources":["../../src/utilsLog.ts"],"names":[],"mappings":";;;AAIA,8BAEC;AAED,sBAEC;AAED,oBAEC;AAED,oBAEC;AAED,sBAEC;AAtBD,oDAA6E;AAE7E,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;AAEjE,SAAgB,SAAS,CAAC,MAAoB;IAC5C,IAAA,2BAAe,EAAC,MAAM,CAAC,CAAC;AAC1B,CAAC;AAED,SAAgB,KAAK,CAAC,GAAW,EAAE,UAAmC;IACpE,IAAA,kBAAM,GAAE,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,IAAI,CAAC,GAAW,EAAE,UAAmC;IACnE,IAAA,kBAAM,GAAE,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC;AAED,SAAgB,IAAI,CAAC,GAAW,EAAE,UAAmC;IACnE,IAAA,kBAAM,GAAE,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC;AAED,SAAgB,KAAK,CAAC,GAAW,EAAE,UAAmC;IACpE,IAAA,kBAAM,GAAE,CAAC,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC;AACM,MAAM,KAAK,GAAG,CAAC,GAAW,EAAQ,EAAE;IACzC,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IACD,IAAA,kBAAM,GAAE,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACxB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC;AANW,QAAA,KAAK,SAMhB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/utils-log",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "Utilities for emitting logs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@goldstack/utils-cli": "0.3.
|
|
37
|
+
"@goldstack/utils-cli": "0.3.13"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@goldstack/utils-git": "0.2.
|
|
41
|
-
"@swc/core": "^1.3
|
|
42
|
-
"@swc/jest": "^0.2.
|
|
43
|
-
"@types/jest": "^29.
|
|
44
|
-
"@types/node": "^
|
|
40
|
+
"@goldstack/utils-git": "0.2.10",
|
|
41
|
+
"@swc/core": "^1.9.3",
|
|
42
|
+
"@swc/jest": "^0.2.37",
|
|
43
|
+
"@types/jest": "^29.5.14",
|
|
44
|
+
"@types/node": "^22.10.0",
|
|
45
45
|
"jest": "^29.3.1",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
|
-
"typescript": "^
|
|
47
|
+
"typescript": "^5.7.2"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"main": "dist/src/utilsLog.js"
|