Compare commits

..

2 Commits

Author SHA1 Message Date
4c68f237ff
bump version 2023-08-10 03:52:25 +03:00
9ff3ad7248
update typings 2023-08-10 03:50:52 +03:00
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@navy.gif/logger", "name": "@navy.gif/logger",
"version": "2.4.1", "version": "2.4.2",
"description": "Logging thing", "description": "Logging thing",
"author": "Navy.gif", "author": "Navy.gif",
"license": "MIT", "license": "MIT",

View File

@ -199,7 +199,7 @@ class MasterLogger implements Logger
}); });
} }
write (type = 'info', text: string | Error, { subheader = '', shard, broadcast = false }: WriteOptions = {}) write (type = 'info', text: string | object | Error, { subheader = '', shard, broadcast = false }: WriteOptions = {})
{ {
type = type.toLowerCase(); type = type.toLowerCase();
@ -287,27 +287,27 @@ class MasterLogger implements Logger
// These methods are dynamically implemented by the constructor // These methods are dynamically implemented by the constructor
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
error (_str: string | Error, _opts?: WriteOptions): void error (_str: string | object | Error, _opts?: WriteOptions): void
{ {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
warn (_str: string | Error, _opts?: WriteOptions): void warn (_str: string | object | Error, _opts?: WriteOptions): void
{ {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
status (_str: string | Error, _opts?: WriteOptions): void status (_str: string | object | Error, _opts?: WriteOptions): void
{ {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
info (_str: string | Error, _opts?: WriteOptions): void info (_str: string | object | Error, _opts?: WriteOptions): void
{ {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
debug (_str: string | Error, _opts?: WriteOptions): void debug (_str: string | object | Error, _opts?: WriteOptions): void
{ {
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }