@youpaichris/logger 6.1.3 → 6.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -53,7 +53,7 @@ Object.defineProperty(global, '__stack', {
|
|
53
53
|
Object.defineProperty(global, '__line', {
|
54
54
|
get: function () {
|
55
55
|
const stack = new Error().stack.split('\n').slice(2);
|
56
|
-
const caller = stack[1].trim();
|
56
|
+
const caller = stack[1].includes(`@youpaichris/logger/index.js`) ? stack[2] .trim() : stack[1].trim();
|
57
57
|
const index = caller.indexOf('at ') + 3;
|
58
58
|
const clean = caller.slice(index);
|
59
59
|
const parts = clean.split(':');
|