@waiting/shared-core
Advanced tools
Comparing version 20.11.3 to 20.11.4
@@ -59,12 +59,6 @@ /* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
} | ||
const fileLine = retrievePath(line); | ||
const matched = /^(.+):(\d+):(\d+)$/u.exec(fileLine); | ||
if (!matched || matched.length !== 4) { | ||
console.warn({ line, fileLine, matched }); | ||
throw new Error('Retrieve args forme caller line failed. '); | ||
} | ||
const [, p1] = matched; | ||
const fileLine = site.getFileName(); | ||
const info = { | ||
...initInfo, | ||
path: p1?.trim() ?? '', | ||
path: fileLine ?? '', | ||
fileName: site.getFileName() ?? '', | ||
@@ -180,3 +174,4 @@ className, | ||
} | ||
else if (line.includes('at')) { | ||
// else if (line.includes(' at ')) { | ||
else if (/^\s*at .+?\d+:\d+$/u.test(line) === true) { | ||
// " at ...\\call-config.ts:24:12" | ||
@@ -183,0 +178,0 @@ path = line.slice(line.indexOf('at') + 3, -1); |
{ | ||
"name": "@waiting/shared-core", | ||
"author": "waiting", | ||
"version": "20.11.3", | ||
"version": "20.11.4", | ||
"description": "node core function re export with Promise or Observable", | ||
@@ -72,3 +72,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "0b05cb28f1da79e780d28a9b606056d3c93237eb" | ||
"gitHead": "8368ff397aa0612f074e0a8081686895ad323829" | ||
} |
@@ -77,13 +77,7 @@ /* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
const fileLine = retrievePath(line) | ||
const matched = /^(.+):(\d+):(\d+)$/u.exec(fileLine) | ||
if (! matched || matched.length !== 4) { | ||
console.warn({ line, fileLine, matched }) | ||
throw new Error('Retrieve args forme caller line failed. ') | ||
} | ||
const [, p1] = matched | ||
const fileLine = site.getFileName() | ||
const info: CallerInfo = { | ||
...initInfo, | ||
path: p1?.trim() ?? '', | ||
path: fileLine ?? '', | ||
fileName: site.getFileName() ?? '', | ||
@@ -221,3 +215,4 @@ className, | ||
} | ||
else if (line.includes('at')) { | ||
// else if (line.includes(' at ')) { | ||
else if (/^\s*at .+?\d+:\d+$/u.test(line) === true) { | ||
// " at ...\\call-config.ts:24:12" | ||
@@ -224,0 +219,0 @@ path = line.slice(line.indexOf('at') + 3, -1) |
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
179876
3483