@akanjs/common 0.0.139 → 0.0.140

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/Logger.d.ts CHANGED
@@ -22,7 +22,7 @@ export declare class Logger {
22
22
  static info(msg: string, context?: string): void;
23
23
  static warn(msg: string, context?: string): void;
24
24
  static error(msg: string, context?: string): void;
25
- static rawLog(msg: string, method?: "console" | "process"): void;
26
- static raw(msg: string, method?: "console" | "process"): void;
25
+ static rawLog(msg?: string, method?: "console" | "process"): void;
26
+ static raw(msg?: string, method?: "console" | "process"): void;
27
27
  }
28
28
  export {};
package/cjs/Logger.js CHANGED
@@ -157,11 +157,11 @@ class Logger {
157
157
  console.log(`${processMsg} ${timestampMsg} ${logLevelMsg} ${contextMsg} ${contentMsg} ${timeDiffMsg}
158
158
  `);
159
159
  }
160
- static rawLog(msg, method) {
160
+ static rawLog(msg = "", method) {
161
161
  this.raw(`${msg}
162
162
  `, method);
163
163
  }
164
- static raw(msg, method) {
164
+ static raw(msg = "", method) {
165
165
  if (typeof window === "undefined" && method !== "console" && global.process)
166
166
  global.process.stdout.write(msg);
167
167
  else
package/esm/Logger.js CHANGED
@@ -125,11 +125,11 @@ class Logger {
125
125
  console.log(`${processMsg} ${timestampMsg} ${logLevelMsg} ${contextMsg} ${contentMsg} ${timeDiffMsg}
126
126
  `);
127
127
  }
128
- static rawLog(msg, method) {
128
+ static rawLog(msg = "", method) {
129
129
  this.raw(`${msg}
130
130
  `, method);
131
131
  }
132
- static raw(msg, method) {
132
+ static raw(msg = "", method) {
133
133
  if (typeof window === "undefined" && method !== "console" && global.process)
134
134
  global.process.stdout.write(msg);
135
135
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/common",
3
- "version": "0.0.139",
3
+ "version": "0.0.140",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"