Comparing version 0.0.7 to 0.0.8
/// <reference types="node" /> | ||
import { InspectOptions } from 'util'; | ||
interface Formatters { | ||
export interface Debug { | ||
(namespace: string): Debugger; | ||
enable: (namespaces?: string) => void; | ||
disable: () => void; | ||
enabled: (namespaces: string) => boolean; | ||
coerce: (val: any) => any; | ||
names: RegExp[]; | ||
skips: RegExp[]; | ||
formatters: Formatters; | ||
} | ||
export interface Formatters { | ||
[formatter: string]: (v: any) => string; | ||
} | ||
interface Debugger { | ||
export interface Debugger { | ||
(formatter: any, ...args: any[]): void; | ||
@@ -24,2 +34,3 @@ enabled: boolean; | ||
} | ||
export { Debug as debug }; | ||
/** | ||
@@ -64,2 +75,1 @@ * Create a debugger with the given `namespace`. | ||
} | ||
export {}; |
@@ -101,2 +101,3 @@ "use strict"; | ||
exports.Debug = Debug; | ||
exports.debug = Debug; | ||
/** | ||
@@ -103,0 +104,0 @@ * Adds ANSI color escape codes if enabled. |
{ | ||
"name": "exer", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Utils in TypeScript, Debug, NanoTimer ...", | ||
@@ -5,0 +5,0 @@ "author": "kbajalc@gmail.com", |
Sorry, the diff of this file is not supported yet
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
66068
947