
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@types/umami
Advanced tools
TypeScript definitions for umami
npm install --save @types/umami
This package contains type definitions for umami (https://github.com/umami-software/umami).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/umami.
declare var umami: umami.umami;
/**
* @see {@link https://umami.is/docs/tracker-functions|Umami Docs}
*/
declare namespace umami {
interface umami {
track(): Promise<string> | undefined;
track(
event_name: string,
event_data?: { [key: string]: any },
): Promise<string> | undefined;
track(custom_payload: {
website: string;
[key: string]: any;
}): Promise<string> | undefined;
track(
callback: (props: {
hostname: string;
language: string;
referrer: string;
screen: string;
title: string;
url: string;
website: string;
}) => { website: string; [key: string]: any },
): Promise<string> | undefined;
/** Pass in your own ID to identify a user. */
identify(identity_id: string): Promise<void>;
/** Save data about the current session. */
identify(
indentity_id: string,
data: Record<string, any>,
): Promise<void>;
/** To save data without a unique ID, pass in only a JSON object. */
identify(data: Record<string, any>): Promise<void>;
}
}
These definitions were written by Noah Overcash.
FAQs
TypeScript definitions for umami
We found that @types/umami 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.