🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

obug

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obug - npm Package Compare versions

Comparing version
2.0.0-beta.1
to
2.0.0
+4
-0
dist/browser.d.ts

@@ -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 };

@@ -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 };

@@ -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 };
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

{
"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",

@@ -96,5 +96,5 @@ # obug

[The MIT License](./LICENSE-original) Copyright (c) 2014-2017 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
[The MIT License](./LICENSE) Copyright (c) 2014-2017 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
[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 -->