ag-common 0.0.688 → 0.0.689

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.
@@ -3,7 +3,7 @@ export declare const GetLogLevel: (l: TLogType) => number;
3
3
  export type TLogShim = (...args: unknown[]) => void;
4
4
  /** if passed in, will use this instead of console.xxx */
5
5
  export declare const SetLogShim: (ls: TLogShim) => void;
6
- export declare const SetLogLevel: (l: TLogType) => void;
6
+ export declare const SetLogLevel: (l?: TLogType) => void;
7
7
  export declare const debug: (...args: unknown[]) => void;
8
8
  export declare const info: (...args: unknown[]) => void;
9
9
  export declare const warn: (...args: unknown[]) => void;
@@ -14,7 +14,7 @@ const SetLogShim = (ls) => {
14
14
  exports.SetLogShim = SetLogShim;
15
15
  let userLogLevel;
16
16
  const SetLogLevel = (l) => {
17
- const lu = l.toUpperCase();
17
+ const lu = (l !== null && l !== void 0 ? l : 'INFO').toUpperCase();
18
18
  if ((0, exports.GetLogLevel)(lu) === -1) {
19
19
  return;
20
20
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.688",
2
+ "version": "0.0.689",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",