
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@amplitude/plugin-network-capture-browser
Advanced tools
This plugin is in beta at the moment, naming and interface might change in the future.
Browser SDK plugin for network capture.
This package is published on NPM registry and is available to be installed using npm and yarn.
# npm
npm install @amplitude/plugin-network-capture-browser@beta
# yarn
yarn add @amplitude/plugin-network-capture-browser@beta
This plugin works on top of the Amplitude Browser SDK, and tracks network request events
To use this plugin, you need to install @amplitude/plugin-network-capture-browser
@amplitude/analytics-browser
@amplitude/plugin-network-capture-browser
import * as amplitude from '@amplitude/analytics-browser';
import { networkCapturePlugin } from '@amplitude/plugin-network-capture-browser';
The plugin accepts 1 optional parameter, which is an Object
to configure the allowed tracking options.
const plugin = networkCapturePlugin({
ignoreHosts: ['host.com', 'host2.com'], // hosts to ignore; default []
ignoreAmplitudeRequests: true, // ignore requests to amplitude.com; default "true",
captureRules: [
{hosts: ['host3.com', 'host4.com'], statusCodeRange: '400-499'},
{hosts: ['example.com'], statusCodeRange: '403,500-599'},
],
});
amplitude.add(plugin);
amplitude.init('API_KEY');
FAQs
Unknown package
The npm package @amplitude/plugin-network-capture-browser receives a total of 244,645 weekly downloads. As such, @amplitude/plugin-network-capture-browser popularity was classified as popular.
We found that @amplitude/plugin-network-capture-browser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 21 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.