fix(destination-receiver): return full webrequest response from SmartlogDestinationReceiver and migrate to WebrequestClient; update tests, dependencies, docs, and npmextra metadata

This commit is contained in:
2026-02-14 15:52:57 +00:00
parent 2d9a8e08f2
commit 0593c3e2d0
8 changed files with 2824 additions and 1886 deletions

View File

@@ -12,7 +12,7 @@ export interface ISmartlogDestinationReceiverConstructorOptions {
export class SmartlogDestinationReceiver implements ILogDestination {
private options: ISmartlogDestinationReceiverConstructorOptions;
private webrequest = new plugins.webrequest.WebRequest();
private webrequest = new plugins.webrequest.WebrequestClient();
constructor(optionsArg: ISmartlogDestinationReceiverConstructorOptions) {
this.options = optionsArg;
@@ -30,6 +30,6 @@ export class SmartlogDestinationReceiver implements ILogDestination {
}
this.errorCounter++;
});
return response.body;
return response;
}
}