Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
app-usage-events-emitter-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-emitter-react
Add the provider to your react app. This provider is responsible for
import { AppUsageEventsEmitter } from '@mhetrics/app-usage-events-emitter-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 domain events. Domain events are custom events produced by your application's domain logic (a.k.a. business logic). Here is an example of how to emit domain events
import { emitDomainEvent } from '@mhetrics/app-usage-events-emitter-react';
await emitDomainEvent({
/**
* the name of this event
*/
name: 'conversion', // a conversion occurred
/**
* the scope of the domain that this event applies to
*/
scope: 'storefront', // a conversion from the storefront product
/**
* any adhoc details we want to associate with this event
*/
details: {
promocode: 'WINT23',
}
})
FAQs
A set of types, type checks, and type guards for simpler, safer, and easier to read code.
The npm package app-usage-events-emitter-react receives a total of 0 weekly downloads. As such, app-usage-events-emitter-react popularity was classified as not popular.
We found that app-usage-events-emitter-react demonstrated a not healthy version release cadence and project activity because the last version was released 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.