@koralabs/kora-labs-common 1.0.5 → 1.0.7

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.
@@ -96,6 +96,9 @@ class Environment {
96
96
  static getPotentialApplicationName() {
97
97
  var _a, _b;
98
98
  return __awaiter(this, void 0, void 0, function* () {
99
+ if (process.env.NODE_ENV == 'test') {
100
+ return null;
101
+ }
99
102
  if (process.env.APPLICATION_NAME) {
100
103
  return process.env.APPLICATION_NAME;
101
104
  }
@@ -64,7 +64,9 @@ class Logger {
64
64
  const log_milliseconds = milliseconds != undefined && milliseconds != null ? `, "milliseconds": ${milliseconds}` : '';
65
65
  const log_count = count != undefined && count != null ? `, "count": ${count}` : '';
66
66
  const log_dimensions = dimensions && Object.keys(dimensions).length ? `, "dimensions": ${JSON.stringify(dimensions)}` : '';
67
+ // PLEASE KEEP THIS ALL ON ONE LINE SO LOGS AREN'T BROKEN UP
67
68
  console.log(`{"application": "${Logger.application}", "category": "${category !== null && category !== void 0 ? category : LogCategory.INFO}", "message": "${message}"${log_event}, "timestamp": "${now}"${log_milliseconds}${log_count}${log_dimensions} }`);
69
+ // PLEASE KEEP THIS ALL ON ONE LINE SO LOGS AREN'T BROKEN UP
68
70
  }
69
71
  }
70
72
  exports.Logger = Logger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",