Comparing version 1.1.0 to 1.1.1
@@ -1,5 +0,2 @@ | ||
export declare const createLogger: (category: string) => { | ||
(...a: any[]): void; | ||
group(label: string, fn: (l: (...a: any[]) => void) => void): void; | ||
groupCollapsed(label: string, fn: (l: (...a: any[]) => void) => void): void; | ||
}; | ||
import { LogFn } from './logger'; | ||
export declare const createLogger: (category: string) => LogFn; |
@@ -1,5 +0,2 @@ | ||
export declare const createLogger: (category: string) => { | ||
(...a: any[]): void; | ||
group(label: string, fn: (l: (...a: any[]) => void) => void): void; | ||
groupCollapsed(label: string, fn: (l: (...a: any[]) => void) => void): void; | ||
}; | ||
import { LogFn } from './logger'; | ||
export declare const createLogger: (category: string) => LogFn; |
export declare const matchCategory: (matcher: RegExp) => void; | ||
export declare const createLogger: (category: string, isBrowser: boolean) => { | ||
(...a: any[]): void; | ||
group(label: string, fn: (l: (...a: any[]) => void) => void): void; | ||
groupCollapsed(label: string, fn: (l: (...a: any[]) => void) => void): void; | ||
}; | ||
export declare type LogFn = (...a: any[]) => void; | ||
export declare const createLogger: (category: string, isBrowser: boolean) => LogFn; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
// tslint:disable: no-console | ||
@@ -31,2 +32,4 @@ const chalk_1 = __importDefault(require("chalk")); | ||
Method["Log"] = "log"; | ||
Method["Error"] = "error"; | ||
Method["Warn"] = "warn"; | ||
Method["Group"] = "group"; | ||
@@ -44,2 +47,4 @@ Method["GroupCollapsed"] = "groupCollapsed"; | ||
const logger = (...a) => logFn(Method.Log, ...a); | ||
logger.error = (...a) => logFn(Method.Error, ...a); | ||
logger.warn = (...a) => logFn(Method.Warn, ...a); | ||
logger.group = (label, fn) => { | ||
@@ -46,0 +51,0 @@ logFn(Method.Group, label); |
@@ -15,3 +15,3 @@ { | ||
}, | ||
"version": "1.1.0" | ||
"version": "1.1.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3690
73