
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
@asayerio/tracker-fetch
Advanced tools
Tracker plugin to support tracking of the fetch
requests payload.
Additionally it populates the requests with sessionID
header for backend logging.
npm i @asayerio/tracker-fetch
Initialize the @asayerio/tracker
package as usual and load the plugin into it.
Then you can use the provided fetch
method from the plugin instead of built-in.
import Tracker from '@asayerio/tracker';
import trackerFetch from '@asayerio/tracker-fetch';
const tracker = new Tracker({
projectID: PROJECT_ID,
});
tracker.start();
export const fetch = tracker.use(trackerFetch({
sessionTokenHeader: 'X-Session-ID', // optional
failuresOnly: true //optional
}));
fetch('https://api.asayer.io/').then(response => console.log(response.json()));
In case you use Asayer integrations (sentry, bugsnag or others), you can use sessionTokenHeader
option to specify the header name. This header will be appended automatically to the each fetch request and will contain Asayer session identificator value.
Set failuresOnly
option to true
if you want to record only requests with the status code >= 400.
FAQs
Tracker plugin for fetch requests recording
We found that @asayerio/tracker-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.