diff --git a/package.json b/package.json index 894332a..7be2bd5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@hawk.so/javascript", "type": "commonjs", - "version": "3.2.2", + "version": "3.2.3", "description": "JavaScript errors tracking for Hawk.so", "files": [ "dist" diff --git a/src/modules/stackParser.ts b/src/modules/stackParser.ts index 4352288..ce322a8 100644 --- a/src/modules/stackParser.ts +++ b/src/modules/stackParser.ts @@ -80,7 +80,7 @@ export default class StackParser { * In some cases column number of the error stack trace frame would be less then 200, but source code is minified * For this cases we need to check, that all of the lines to collect have length less than 200 too */ - for (const lineToCheck in lines.slice(lineFrom, lineTo)) { + lines.slice(lineFrom, lineTo).forEach((lineToCheck) => { if (lineToCheck.length > minifiedSourceCodeThreshold) { return null; } else { @@ -91,7 +91,7 @@ export default class StackParser { extractedLineIndex += 1; } - } + }); return sourceCodeLines; } catch (e) {