File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @smbcheeky/error-object" ,
33 "description" : " Create errors that can be both thrown and returned. Make error handling easier for both JavaScript and TypeScript." ,
4- "version" : " 1.1.0 " ,
4+ "version" : " 1.1.1 " ,
55 "main" : " dist/index.js" ,
66 "module" : " dist/index.mjs" ,
77 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change 2828 " @jridgewell/sourcemap-codec" " ^1.4.10"
2929
3030" @smbcheeky/error-object@file:.. " :
31- version "1.0 .1"
31+ version "1.1 .1"
3232 resolved "file:.."
3333
3434" @tsconfig/node10@^1.0.7 " :
Original file line number Diff line number Diff line change @@ -287,20 +287,20 @@ export class ErrorObject extends Error {
287287 ) ;
288288 }
289289
290- log < V extends string > ( logTag : V & ( string extends V ? never : V ) ) {
291- return this . _log < V > ( logTag , 'log' ) ;
290+ log ( logTag : string ) {
291+ return this . _log ( logTag , 'log' ) ;
292292 }
293293
294- debugLog < V extends string > ( logTag : V & ( string extends V ? never : V ) ) {
295- return this . _log < V > ( logTag , 'debug' ) ;
294+ debugLog ( logTag : string ) {
295+ return this . _log ( logTag , 'debug' ) ;
296296 }
297297
298- verboseLog < V extends string > ( logTag : V & ( string extends V ? never : V ) ) {
299- return this . _log < V > ( logTag , 'verbose' ) ;
298+ verboseLog ( logTag : string ) {
299+ return this . _log ( logTag , 'verbose' ) ;
300300 }
301301
302- private _log < V extends string > (
303- logTag : V & ( string extends V ? never : V ) ,
302+ private _log (
303+ logTag : string ,
304304 logLevel : 'log' | 'debug' | 'verbose' ,
305305 ) {
306306 const logForThis =
You can’t perform that action at this time.
0 commit comments