File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,8 @@ export class ConsoleCatcher {
173173 // First frame is used as fileLine - this is what DevTools shows as clickable link
174174 const fileLine = stackLines [ userFrameIndex ] ?. trim ( ) || '' ;
175175
176- return { userStack, fileLine } ;
176+ return { userStack,
177+ fileLine } ;
177178 }
178179
179180 /**
@@ -248,6 +249,8 @@ export class ConsoleCatcher {
248249 * 3. Create a ConsoleLogEvent with metadata
249250 * 4. Store it in the buffer
250251 * 5. Forward the call to the native console (so output still appears in DevTools)
252+ *
253+ * @param {...any } args
251254 */
252255 window . console [ method ] = ( ...args : unknown [ ] ) : void => {
253256 // Capture full stack trace and extract user code stack
Original file line number Diff line number Diff line change 11import type { StackFrame } from 'error-stack-parser' ;
22import ErrorStackParser from 'error-stack-parser' ;
33import type { BacktraceFrame , SourceCodeLine } from '@hawk.so/types' ;
4- import log from '../utils/log' ;
54import fetchTimer from './fetchTimer' ;
65
76/**
@@ -160,8 +159,7 @@ export default class StackParser {
160159 /**
161160 * Ensure failed promise is removed from cache
162161 */
163- delete this . sourceFilesCache [ fileName ] ;
164- // log('Can not load source file. Skipping...');
162+ delete this . sourceFilesCache [ fileName ] ; // log('Can not load source file. Skipping...');
165163
166164 return null ;
167165 }
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export interface HawkInitialSettings {
6464
6565 /**
6666 * This Method allows you to filter any data you don't want sending to Hawk.
67- *
67+ *
6868 * Return `false` to prevent the event from being sent to Hawk.
6969 */
7070 beforeSend ?( event : HawkJavaScriptEvent ) : HawkJavaScriptEvent | false ;
You can’t perform that action at this time.
0 commit comments