@xylabs/function-name
Advanced tools
Comparing version 2.13.20 to 2.13.21
@@ -5,6 +5,6 @@ // src/functionName.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/functionName.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/function-name", | ||
"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,13 @@ ".": { | ||
}, | ||
"keywords": [ | ||
"function", | ||
"name", | ||
"xylabs", | ||
"utility", | ||
"typescript", | ||
"esm" | ||
], | ||
"sideEffects": false, | ||
"version": "2.13.20", | ||
"version": "2.13.21", | ||
"type": "module" | ||
} |
@@ -5,6 +5,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(' ') | ||
@@ -11,0 +11,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
24990
Updated@xylabs/error@~2.13.21