@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
- console.log(`[ContextEngine] Discovered ${envVars.size} env anchors`);
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;
@@ -13,12 +13,12 @@ export class Logger {
13
13
  }
14
14
  static info(message) {
15
15
  if (this.level <= LogLevel.INFO) {
16
- console.log(chalk.blue('info: ') + message);
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.log(chalk.yellow('warn: ') + message);
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.log(chalk.dim('debug: ') + message);
34
+ console.error(chalk.dim('debug: ') + message);
35
35
  }
36
36
  }
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigour-labs/core",
3
- "version": "2.13.0",
3
+ "version": "2.15.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,7 +50,7 @@ export class ContextEngine {
50
50
  } catch (e) { }
51
51
  }
52
52
 
53
- console.log(`[ContextEngine] Discovered ${envVars.size} env anchors`);
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()) {
@@ -16,13 +16,13 @@ export class Logger {
16
16
 
17
17
  static info(message: string) {
18
18
  if (this.level <= LogLevel.INFO) {
19
- console.log(chalk.blue('info: ') + message);
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.log(chalk.yellow('warn: ') + message);
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.log(chalk.dim('debug: ') + message);
40
+ console.error(chalk.dim('debug: ') + message);
41
41
  }
42
42
  }
43
43
  }