From 74ec40b6f383e61cc95b8ea201321d3b7f6494b6 Mon Sep 17 00:00:00 2001 From: e11sy <130844513+e11sy@users.noreply.github.com> Date: Tue, 1 Apr 2025 21:23:47 +0300 Subject: [PATCH 1/2] fix(stack-parser): fix lines slice iteration --- src/modules/stackParser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { From ea7e53a9bdf184390dea073c4754518bd2ea55ef Mon Sep 17 00:00:00 2001 From: e11sy <130844513+e11sy@users.noreply.github.com> Date: Tue, 1 Apr 2025 21:23:59 +0300 Subject: [PATCH 2/2] chore(): bump package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"