Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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 0 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.