@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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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(':');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youpaichris/logger",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {