55 PerformanceObserverSink ,
66} from '../performance-observer.js' ;
77import { objectToEntries } from '../transform.js' ;
8- import { errorToMarkerPayload } from '../user-timing-extensibility-api-utils' ;
8+ import { errorToMarkerPayload } from '../user-timing-extensibility-api-utils.js ' ;
99import type {
1010 ActionTrackEntryPayload ,
1111 MarkerPayload ,
@@ -15,7 +15,7 @@ import {
1515 PROFILER_DEBUG_ENV_VAR ,
1616 PROFILER_ENABLED_ENV_VAR ,
1717} from './constants.js' ;
18- import { Profiler , type ProfilerOptions } from './profiler' ;
18+ import { Profiler , type ProfilerOptions } from './profiler.js ' ;
1919
2020/**
2121 * Options for configuring a NodejsProfiler instance.
@@ -111,7 +111,7 @@ export class NodejsProfiler<
111111 ) => {
112112 this . #handleFatalError( error , kind ) ;
113113 } ,
114- onExit : ( code : number ) => {
114+ onExit : ( _code : number ) => {
115115 this . close ( ) ;
116116 } ,
117117 } ) ;
@@ -155,7 +155,7 @@ export class NodejsProfiler<
155155 */
156156 #handleFatalError(
157157 error : unknown ,
158- kind : 'uncaughtException' | 'unhandledRejection' ,
158+ _kind : 'uncaughtException' | 'unhandledRejection' ,
159159 ) : void {
160160 this . marker ( 'Fatal Error' , errorToMarkerPayload ( error ) ) ;
161161 this . close ( ) ; // Ensures buffers flush and sink finalizes
@@ -223,7 +223,9 @@ export class NodejsProfiler<
223223 * **Exit Handler Usage**: Call only this method from process exit handlers.
224224 */
225225 close ( ) : void {
226- if ( this . #state === 'closed' ) return ;
226+ if ( this . #state === 'closed' ) {
227+ return ;
228+ }
227229 this . #unsubscribeExitHandlers?.( ) ;
228230 this . #transition( 'closed' ) ;
229231 }
0 commit comments