Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

posthog-node

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthog-node - npm Package Compare versions

Comparing version 1.0.4 to 1.0.6

25

index.d.ts

@@ -20,8 +20,11 @@ // Type definitions for posthog-node

interface P {
interface IdentifyMessage {
distinctId: string;
event: string;
properties?: CommonParamsInterfacePropertiesProp;
}
interface EventMessage extends IdentifyMessage {
event: string;
}
export default class PostHog {

@@ -34,7 +37,7 @@ constructor(apiKey: string, options: Option);

* A capture call requires:
* @param distinctid which uniquely identifies your user
* @param distinctId which uniquely identifies your user
* @param event We recommend using [verb] [noun], like movie played or movie updated to easily identify what your events mean later on.
* @param properties OPTIONAL | which can be a dict with any information you'd like to add
* @param properties OPTIONAL | which can be a dict with any information you'd like to add
*/
capture({ distinctId, event, properties }: P): Promise<any>;
capture({ distinctId, event, properties }: EventMessage): PostHog;

@@ -45,6 +48,6 @@ /**

* An identify call requires:
* @param distinctid which uniquely identifies your user
* @param properties with a dict with any key: value pairs
* @param distinctId which uniquely identifies your user
* @param properties with a dict with any key: value pairs
*/
identify({ distinctId, event, properties }: P): Promise<any>;
identify({ distinctId, event, properties }: IdentifyMessage): PostHog;

@@ -59,7 +62,7 @@ /**

* doing the identify call in the frontend will be enough.:
* @param distinctid the current unique id
* @param distinctId the current unique id
* @param alias the unique ID of the user before
*/
alias(data: { distinctId: string; alias: string }): Promise<any>;
alias(data: { distinctId: string; alias: string }): PostHog;
}
}
}
{
"name": "posthog-node",
"version": "1.0.4",
"version": "1.0.6",
"description": "PostHog Node.js integration",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc