@rigour-labs/core 2.13.0 → 2.15.0
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.
|
@@ -31,7 +31,7 @@ export class ContextEngine {
|
|
|
31
31
|
}
|
|
32
32
|
catch (e) { }
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
// Logs removed to avoid stdout pollution in JSON mode
|
|
35
35
|
// Convert envVars to anchors
|
|
36
36
|
for (const [name, count] of envVars.entries()) {
|
|
37
37
|
const confidence = count >= 2 ? 1 : 0.5;
|
package/dist/utils/logger.js
CHANGED
|
@@ -13,12 +13,12 @@ export class Logger {
|
|
|
13
13
|
}
|
|
14
14
|
static info(message) {
|
|
15
15
|
if (this.level <= LogLevel.INFO) {
|
|
16
|
-
console.
|
|
16
|
+
console.error(chalk.blue('info: ') + message);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
static warn(message) {
|
|
20
20
|
if (this.level <= LogLevel.WARN) {
|
|
21
|
-
console.
|
|
21
|
+
console.error(chalk.yellow('warn: ') + message);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
static error(message, error) {
|
|
@@ -31,7 +31,7 @@ export class Logger {
|
|
|
31
31
|
}
|
|
32
32
|
static debug(message) {
|
|
33
33
|
if (this.level <= LogLevel.DEBUG) {
|
|
34
|
-
console.
|
|
34
|
+
console.error(chalk.dim('debug: ') + message);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@ export class ContextEngine {
|
|
|
50
50
|
} catch (e) { }
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
// Logs removed to avoid stdout pollution in JSON mode
|
|
54
54
|
|
|
55
55
|
// Convert envVars to anchors
|
|
56
56
|
for (const [name, count] of envVars.entries()) {
|
package/src/utils/logger.ts
CHANGED
|
@@ -16,13 +16,13 @@ export class Logger {
|
|
|
16
16
|
|
|
17
17
|
static info(message: string) {
|
|
18
18
|
if (this.level <= LogLevel.INFO) {
|
|
19
|
-
console.
|
|
19
|
+
console.error(chalk.blue('info: ') + message);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
static warn(message: string) {
|
|
24
24
|
if (this.level <= LogLevel.WARN) {
|
|
25
|
-
console.
|
|
25
|
+
console.error(chalk.yellow('warn: ') + message);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -37,7 +37,7 @@ export class Logger {
|
|
|
37
37
|
|
|
38
38
|
static debug(message: string) {
|
|
39
39
|
if (this.level <= LogLevel.DEBUG) {
|
|
40
|
-
console.
|
|
40
|
+
console.error(chalk.dim('debug: ') + message);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|