Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
app-usage-events-react
Advanced tools
A set of types, type checks, and type guards for simpler, safer, and easier to read code.
utility to easily emit app-usage-events from your app to the mhetrics platform
npm install @mhetrics/app-usage-events-react
Add the provider to your react app. This provider is responsible for
import { AppUsageEventsEmitter } from '@mhetrics/app-usage-events-react';
<AppUsageEventsEmitter
clientKey={config.mhetrics.clientKey}
captureHost={config.mhetrics.captureHost}
/>
With that, your app will automatically be emitting
Your app is now also configured to emit observation events. Observation events are produced by your application to track observations useful for analytics. Here is an example of how to emit observation events
import { captureObservationEvent } from '@mhetrics/app-usage-events-react';
await captureObservationEvent({
/**
* the type of the observation you are reporting
*/
type: 'experiment.exposure', // for example, tracking that a user was exposed to an experiment
/**
* details about the observation
*/
details: {
experiment: 'show-reviews?', // for example, an experiment about whether or not reviews should be shown
treatment: 'CONTROL', // for example, tracking that they were exposed to the CONTROL treatment of the experiment
}
})
FAQs
A set of types, type checks, and type guards for simpler, safer, and easier to read code.
The npm package app-usage-events-react receives a total of 10 weekly downloads. As such, app-usage-events-react popularity was classified as not popular.
We found that app-usage-events-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.