Skip to content

Commit 8af1300

Browse files
committed
chore: bump dependencies
update types
1 parent 2c097a4 commit 8af1300

File tree

9 files changed

+30
-29
lines changed

9 files changed

+30
-29
lines changed

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "debug-level",
3-
"version": "3.2.1",
3+
"version": "3.3.0-0",
44
"description": "debug with levels",
55
"keywords": [
66
"debug",
@@ -16,6 +16,7 @@
1616
},
1717
"license": "MIT",
1818
"author": "commenthol <[email protected]>",
19+
"sideEffects": false,
1920
"type": "module",
2021
"exports": {
2122
".": {
@@ -78,15 +79,15 @@
7879
"flatstr": "^1.0.12",
7980
"map-lru": "^2.1.0",
8081
"ms": "^2.1.3",
81-
"sonic-boom": "^4.1.0"
82+
"sonic-boom": "^4.2.0"
8283
},
8384
"devDependencies": {
84-
"@babel/cli": "^7.25.7",
85-
"@babel/core": "^7.25.7",
86-
"@babel/preset-env": "^7.25.7",
85+
"@babel/cli": "^7.26.4",
86+
"@babel/core": "^7.26.8",
87+
"@babel/preset-env": "^7.26.8",
8788
"assert": "^2.1.0",
8889
"babel-loader": "^9.2.1",
89-
"c8": "^10.1.2",
90+
"c8": "^10.1.3",
9091
"conv-changelog": "^1.0.0",
9192
"eslint": "^8.57.1",
9293
"eslint-config-standard": "^17.1.0",
@@ -101,14 +102,14 @@
101102
"karma-sourcemap-loader": "^0.4.0",
102103
"karma-spec-reporter": "^0.0.36",
103104
"karma-webpack": "^5.0.1",
104-
"mocha": "^10.7.3",
105-
"npm-run-all2": "^6.2.3",
105+
"mocha": "^11.1.0",
106+
"npm-run-all2": "^7.0.2",
106107
"rimraf": "^6.0.1",
107-
"rollup": "^4.24.0",
108-
"sinon": "^18.0.1",
109-
"typescript": "^5.6.2",
110-
"webpack": "^5.95.0",
111-
"webpack-cli": "^5.1.4"
108+
"rollup": "^4.34.6",
109+
"sinon": "^19.0.2",
110+
"typescript": "^5.7.3",
111+
"webpack": "^5.97.1",
112+
"webpack-cli": "^6.0.1"
112113
},
113114
"optionalDependencies": {
114115
"debug": "^4.3.1"

types/Format.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class Format {
66
/**
77
* @param {FormatOption} [opts]
88
*/
9-
constructor(opts?: FormatOption | undefined);
9+
constructor(opts?: FormatOption);
1010
opts: {
1111
spaces: number | undefined;
1212
};

types/LogBase.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class LogBase {
5252
/**
5353
* @param {string} [namespaces]
5454
*/
55-
enable(namespaces?: string | undefined): void;
55+
enable(namespaces?: string): void;
5656
get enabled(): any;
5757
diff(): number;
5858
_prev: number | undefined;

types/Sonic.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class SonicStreams extends Map<any, any> {
3434
* @param {SonicOptions} [opts]
3535
* @returns {Sonic}
3636
*/
37-
use(stream: NodeJS.WriteStream, opts?: SonicOptions | undefined): Sonic;
37+
use(stream: NodeJS.WriteStream, opts?: SonicOptions): Sonic;
3838
}
3939
export const sonicStreams: SonicStreams;
4040
export type SonicOptions = {

types/browser.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class Log extends LogBase {
77
* @param {LogOptionsBrowser} [opts] changed options
88
* @return {object} global options
99
*/
10-
static options(opts?: LogOptionsBrowser | undefined): object;
10+
static options(opts?: LogOptionsBrowser): object;
1111
/**
1212
* save options in `localStorage`
1313
*/
@@ -29,9 +29,9 @@ export class Log extends LogBase {
2929
* @param {LogOptionWrapConsole} [opts]
3030
* @return {function} unwrap function
3131
*/
32-
static wrapConsole(name?: string | undefined, opts?: (import("./Format.js").FormatOption & import("./LogBase.js").ExtLogBaseOptions & ExtLogOptionsBrowser & {
32+
static wrapConsole(name?: string, opts?: import("./Format.js").FormatOption & import("./LogBase.js").ExtLogBaseOptions & ExtLogOptionsBrowser & {
3333
level4log?: import("./utils.js").Level | undefined;
34-
}) | undefined): Function;
34+
}): Function;
3535
/**
3636
* @param {string} name namespace of Logger
3737
* @param {LogOptionsBrowser} opts
@@ -96,7 +96,7 @@ export class Log extends LogBase {
9696
* @param {string} [fmt] formatter
9797
* @param {any[]} [args] log arguments
9898
*/
99-
send(level: Level | object, fmt?: string | undefined, args?: any[] | undefined): void;
99+
send(level: Level | object, fmt?: string, args?: any[]): void;
100100
/**
101101
* format log arguments
102102
* @protected
@@ -114,7 +114,7 @@ export class Log extends LogBase {
114114
* @param {string} str
115115
* @param {Function} [cb]
116116
*/
117-
_sendLog(str: string, cb?: Function | undefined): void;
117+
_sendLog(str: string, cb?: Function): void;
118118
/**
119119
* Add colors, style to string
120120
* @private

types/browserLogs.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @param {MwLogOption} [options]
1717
* @return {function} connect middleware
1818
*/
19-
export function browserLogs(options?: MwLogOption | undefined): Function;
19+
export function browserLogs(options?: MwLogOption): Function;
2020
/**
2121
* - [maxSize=100] max number of different name loggers
2222
* - [logAll=false] log everything even strings

types/httpLogs.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @param {LogOptionsHttpLog} [opts]
1919
* @returns {(req: IncomingMessageWithId, res: ServerResponse, next: Function) => void} connect middleware
2020
*/
21-
export function httpLogs(namespace?: string | undefined, opts?: LogOptionsHttpLog | undefined): (req: IncomingMessageWithId, res: ServerResponse, next: Function) => void;
21+
export function httpLogs(namespace?: string, opts?: LogOptionsHttpLog): (req: IncomingMessageWithId, res: ServerResponse, next: Function) => void;
2222
export type IncomingMessage = import("node:http").IncomingMessage;
2323
export type ServerResponse = import("node:http").ServerResponse;
2424
export type LogOptions = import("./node.js").LogOptions;

types/logger.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
* @param {string} namespace
66
* @param {LogOptions} [opts]
77
*/
8-
export function logger(namespace: string, opts?: import("./index.js").LogOptions | undefined): any;
8+
export function logger(namespace: string, opts?: LogOptions): any;
99
export type LogOptions = import("./index.js").LogOptions;

types/node.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @param {number} [spaces]
44
* @returns {string}
55
*/
6-
export function stringify(any: any, spaces?: number | undefined): string;
6+
export function stringify(any: any, spaces?: number): string;
77
export class Log extends LogBase {
88
/**
99
* Apply (and get) global options
@@ -26,21 +26,21 @@ export class Log extends LogBase {
2626
* @param {LogOptionWrapConsole} [opts] options
2727
* @return {function} unwrap function
2828
*/
29-
static wrapConsole(name?: string | undefined, opts?: LogOptionWrapConsole | undefined): Function;
29+
static wrapConsole(name?: string, opts?: LogOptionWrapConsole): Function;
3030
/**
3131
* log exit events like 'unhandledRejection', 'uncaughtException'
3232
* and then let the process die
3333
* @param {string} [name='exit']
3434
* @param {LogOptionHandleExitEvents} [opts] options
3535
*/
36-
static handleExitEvents(name?: string | undefined, opts?: LogOptionHandleExitEvents): void;
36+
static handleExitEvents(name?: string, opts?: LogOptionHandleExitEvents): void;
3737
static wrapDebug(): () => void;
3838
/**
3939
* creates a new logger
4040
* @param {String} name - namespace of Logger
4141
* @param {LogOptions} [opts] - see Log.options
4242
*/
43-
constructor(name: string, opts?: LogOptions | undefined);
43+
constructor(name: string, opts?: LogOptions);
4444
color: any;
4545
levColors: {};
4646
opts: {
@@ -178,7 +178,7 @@ import { LogBase } from './LogBase.js';
178178
* @param {number} [spaces]
179179
* @returns {string}
180180
*/
181-
declare function toJson(obj: object, serializers: object, spaces?: number | undefined): string;
181+
declare function toJson(obj: object, serializers: object, spaces?: number): string;
182182
import { Sonic } from './Sonic.js';
183183
declare const isDevEnv: boolean;
184184
import { errSerializer } from './serializers/index.js';

0 commit comments

Comments
 (0)