
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@debugr/http-formatter
Advanced tools
HTTP request and response formatter plugin for Advanced application logger
Plugin ID: http
This is a formatter plugin, which means that when Debugr is creating
a dump file for a given logger, this plugin will be used for any entries
with the plugin attribute matching this plugin's ID. Such entries
will typically be created by another plugin, but you can also create them
manually by specifying the plugin ID as the very first argument to logger.log()
(before level). See below for the required shape of the data this
plugin expects to find in an entry.
The plugin doesn't have any options and you don't need to install or configure it yourself as it will be done automatically if it is needed.
export type RequestData = {
type: 'request';
method: string;
uri: string;
headers: Record<string, number | string | string[] | undefined>;
ip?: string;
body?: string;
bodyLength?: number;
lengthMismatch: boolean;
};
export type ResponseData = {
type: 'response';
status: number;
message: string;
headers: Record<string, number | string | string[] | undefined>;
body?: string;
bodyLength?: number;
lengthMismatch: boolean;
};
headers property is type-compatible with both IncomingHttpHeaders
and OutgoingHttpHeaders from the native http module, so you can usually
pass them in directly.bodyLength property should be set to the actual length of the body
(not derived from the Content-Length header). Obviously its purpose is
to have access to the actual body length even if the body itself isn't captured.lengthMismatch property should indicate that the actual length of the
body didn't match the Content-Length header.FAQs
HTTP request and response formatter plugin for Advanced application logger
We found that @debugr/http-formatter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.