@@ -5,4 +5,8 @@ import { a as Debugger, i as DebugOptions, n as enabled, o as Formatters, r as namespaces, s as InspectOptions, t as disable } from "./core.js"; | ||
| declare function createDebug(namespace: string, options?: DebugOptions): Debugger; | ||
| /** | ||
| * Enables a debug mode by namespaces. This can include modes | ||
| * separated by a colon and wildcards. | ||
| */ | ||
| declare function enable(namespaces: string): void; | ||
| //#endregion | ||
| export { DebugOptions, Debugger, Formatters, InspectOptions, createDebug, disable, enable, enabled, namespaces }; |
+14
-0
@@ -7,2 +7,7 @@ import { InspectOptions } from "node:util"; | ||
| } | ||
| /** | ||
| * Map of special "%n" handling functions, for the debug "format" argument. | ||
| * | ||
| * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". | ||
| */ | ||
| interface Formatters { | ||
@@ -28,6 +33,15 @@ [formatter: string]: (this: Debugger, v: any) => string; | ||
| //#region src/core.d.ts | ||
| /** | ||
| * Returns a string of the currently enabled debug namespaces. | ||
| */ | ||
| declare function namespaces(): string; | ||
| /** | ||
| * Disable debug output. | ||
| */ | ||
| declare function disable(): string; | ||
| /** | ||
| * Returns true if the given mode name is enabled, false otherwise. | ||
| */ | ||
| declare function enabled(name: string): boolean; | ||
| //#endregion | ||
| export { Debugger as a, DebugOptions as i, enabled as n, Formatters as o, namespaces as r, InspectOptions$1 as s, disable as t }; |
+4
-5
| import { a as Debugger, i as DebugOptions, n as enabled, o as Formatters, r as namespaces, s as InspectOptions, t as disable } from "./core.js"; | ||
| //#region src/node.d.ts | ||
| declare function createDebug(namespace: string, options?: DebugOptions): Debugger; | ||
| /** | ||
| * Adds ANSI color escape codes if enabled. | ||
| * Enables a debug mode by namespaces. This can include modes | ||
| * separated by a colon and wildcards. | ||
| */ | ||
| declare function formatArgs(this: Debugger, diff: number, args: [string, ...any[]]): void; | ||
| declare function createDebug(namespace: string, options?: DebugOptions): Debugger; | ||
| declare function enable(namespaces: string): void; | ||
| //#endregion | ||
| export { DebugOptions, Debugger, Formatters, InspectOptions, createDebug, disable, enable, enabled, formatArgs, namespaces }; | ||
| export { DebugOptions, Debugger, Formatters, InspectOptions, createDebug, disable, enable, enabled, namespaces }; |
+1
-1
@@ -157,2 +157,2 @@ import { a as namespaces, i as enabled, n as disable, o as humanize, r as enable$1, s as selectColor, t as createDebug$1 } from "./core.js"; | ||
| enable$1(process.env.DEBUG || ""); | ||
| export { createDebug, disable, enable, enabled, formatArgs, namespaces }; | ||
| export { createDebug, disable, enable, enabled, namespaces }; |
+2
-0
| The MIT License (MIT) | ||
| Copyright © 2025-PRESENT Kevin Deng (https://github.com/sxzz) | ||
| Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca> | ||
| Copyright (c) 2018-2021 Josh Junon | ||
@@ -5,0 +7,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
+1
-1
| { | ||
| "name": "obug", | ||
| "version": "2.0.0-beta.1", | ||
| "version": "2.0.0", | ||
| "description": "A lightweight JavaScript debugging utility, forked from debug, featuring TypeScript and ESM support.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+2
-2
@@ -96,5 +96,5 @@ # obug | ||
| [The MIT License](./LICENSE-original) Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca> | ||
| [The MIT License](./LICENSE) Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca> | ||
| [The MIT License](./LICENSE-original) Copyright (c) 2018-2021 Josh Junon | ||
| [The MIT License](./LICENSE) Copyright (c) 2018-2021 Josh Junon | ||
@@ -101,0 +101,0 @@ <!-- Badges --> |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
21201
2.18%476
3.93%1
-50%