@xylabs/logger
Advanced tools
Comparing version 3.6.7 to 3.6.8
@@ -14,7 +14,7 @@ { | ||
"dependencies": { | ||
"@xylabs/error": "^3.6.7" | ||
"@xylabs/error": "^3.6.8" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.15.4", | ||
"@xylabs/tsconfig": "^3.15.4", | ||
"@xylabs/ts-scripts-yarn3": "^3.15.5", | ||
"@xylabs/tsconfig": "^3.15.5", | ||
"typescript": "^5.5.4" | ||
@@ -72,4 +72,4 @@ }, | ||
"sideEffects": false, | ||
"version": "3.6.7", | ||
"version": "3.6.8", | ||
"type": "module" | ||
} |
@@ -10,6 +10,6 @@ import { handleError } from '@xylabs/error' | ||
const stackParts = error.stack?.split('\n')[depth]?.split(' ') | ||
const funcName = | ||
stackParts?.find((item, index) => { | ||
const funcName | ||
= stackParts?.find((item, index) => { | ||
if (item.length > 0 && item !== 'at') { | ||
//check if constructor | ||
// check if constructor | ||
if (item === 'new') { | ||
@@ -16,0 +16,0 @@ newIndex = index |
@@ -20,11 +20,15 @@ import { getFunctionName } from './getFunctionName.ts' | ||
} | ||
error(...data: unknown[]) { | ||
this._logger?.error(this.prefix(), ...data) | ||
} | ||
info(...data: unknown[]) { | ||
this._logger?.info(this.prefix(), ...data) | ||
} | ||
log(...data: unknown[]) { | ||
this._logger?.log(this.prefix(), ...data) | ||
} | ||
warn(...data: unknown[]) { | ||
@@ -31,0 +35,0 @@ this._logger?.warn(this.prefix(), ...data) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87663
Updated@xylabs/error@^3.6.8