Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@har-sdk/capture
Advanced tools
Readme
Fetch requests in HAR format
This module makes a request and captures it as a HAR object. Under the covers it uses request and just passes through all options. Currently only GET requests are supported although other methods will probably work. The request body might not be properly captured though.
It can now be also used in stream mode. This means that it will stream data events containing the body of the response and then at the end event, the HAR object will be accessible.
npm i --save @har-sdk/capture
import { captureHar } from '@har-sdk/capture';
captureHar(
{
url: 'http://www.google.com'
},
{ withContent: false }
).then((har) => {
console.log(JSON.stringify(har, null, 2));
});
requestOptions
The options for making the request, is just passed through to request package. This can accept the url directly.
harOptions
Optional configuration for the resulting HAR object.
withContent
Defaults to true
. Specifies whether the response content object should contain the full body of the response.
maxContentLength
Defaults to Infinity
. Limits the response body to a maximum byte size.
If the response body is larger than the specified limit, the content text won't exist and an error will be returned for this entity with the code MAX_RES_BODY_SIZE
.
FAQs
Fetch requests in HAR format
The npm package @har-sdk/capture receives a total of 5 weekly downloads. As such, @har-sdk/capture popularity was classified as not popular.
We found that @har-sdk/capture 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.