File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ export class ConversionToolsClient {
5858 maxPollingInterval : config . maxPollingInterval || 30000 ,
5959 pollingBackoff : config . pollingBackoff || 1.5 ,
6060 webhookUrl : config . webhookUrl ,
61+ userAgent : config . userAgent || `conversiontools-node/${ VERSION } ` ,
6162 onUploadProgress : config . onUploadProgress ,
6263 onDownloadProgress : config . onDownloadProgress ,
6364 onConversionProgress : config . onConversionProgress ,
@@ -71,7 +72,7 @@ export class ConversionToolsClient {
7172 retries : this . config . retries ,
7273 retryDelay : this . config . retryDelay ,
7374 retryableStatuses : this . config . retryableStatuses ,
74- userAgent : `conversiontools-node/ ${ VERSION } ` ,
75+ userAgent : this . config . userAgent ,
7576 } ) ;
7677
7778 // Initialize API clients
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ export interface ConversionToolsConfig {
3737 /** Webhook URL for task completion notifications */
3838 webhookUrl ?: string ;
3939
40+ /** UserAgent string for HTTP requests */
41+ userAgent ?: string ;
42+
4043 /** Upload progress callback */
4144 onUploadProgress ?: ( progress : ProgressEvent ) => void ;
4245
You can’t perform that action at this time.
0 commit comments