@xylabs/logger
Advanced tools
Comparing version 2.13.20 to 2.13.21
@@ -5,6 +5,6 @@ // src/Logger.ts | ||
try { | ||
throw Error(); | ||
throw new Error("Getting function name"); | ||
} catch (ex) { | ||
return handleError(ex, (error) => { | ||
let newIndex = void 0; | ||
let newIndex; | ||
const stackParts = error.stack?.split("\n")[depth].split(" "); | ||
@@ -11,0 +11,0 @@ const funcName = stackParts?.find((item, index) => { |
@@ -5,7 +5,7 @@ // src/Logger.ts | ||
try { | ||
throw Error(); | ||
throw new Error("Getting function name"); | ||
} catch (ex) { | ||
return handleError(ex, (error) => { | ||
var _a; | ||
let newIndex = void 0; | ||
let newIndex; | ||
const stackParts = (_a = error.stack) == null ? void 0 : _a.split("\n")[depth].split(" "); | ||
@@ -12,0 +12,0 @@ const funcName = (stackParts == null ? void 0 : stackParts.find((item, index) => { |
{ | ||
"name": "@xylabs/logger", | ||
"author": { | ||
"email": "support@xyo.network", | ||
"name": "XYO Development Team", | ||
"url": "https://xyo.network" | ||
"email": "support@xylabs.com", | ||
"name": "XY Labs Development Team", | ||
"url": "https://xylabs.com" | ||
}, | ||
@@ -14,9 +14,12 @@ "bugs": { | ||
"dependencies": { | ||
"@xylabs/error": "~2.13.20" | ||
"@xylabs/error": "~2.13.21" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.2.10", | ||
"@xylabs/tsconfig": "^3.2.10", | ||
"typescript": "^5.3.2" | ||
"@xylabs/ts-scripts-yarn3": "^3.2.25", | ||
"@xylabs/tsconfig": "^3.2.25", | ||
"typescript": "^5.3.3" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"exports": { | ||
@@ -59,5 +62,14 @@ ".": { | ||
}, | ||
"keywords": [ | ||
"log", | ||
"logger", | ||
"logging", | ||
"xylabs", | ||
"utility", | ||
"typescript", | ||
"esm" | ||
], | ||
"sideEffects": false, | ||
"version": "2.13.20", | ||
"version": "2.13.21", | ||
"type": "module" | ||
} |
@@ -19,6 +19,6 @@ import { handleError } from '@xylabs/error' | ||
try { | ||
throw Error() | ||
throw new Error('Getting function name') | ||
} catch (ex) { | ||
return handleError(ex, (error) => { | ||
let newIndex: number | undefined = undefined | ||
let newIndex: number | undefined | ||
const stackParts = error.stack?.split('\n')[depth].split(' ') | ||
@@ -25,0 +25,0 @@ const funcName = |
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
48451
Updated@xylabs/error@~2.13.21