Skip to content

Commit e3f245c

Browse files
committed
lint
1 parent a563a75 commit e3f245c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/addons/consoleCatcher.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/modules/stackParser.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { StackFrame } from 'error-stack-parser';
22
import ErrorStackParser from 'error-stack-parser';
33
import type { BacktraceFrame, SourceCodeLine } from '@hawk.so/types';
4-
import log from '../utils/log';
54
import 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
}

src/types/hawk-initial-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)