posthog-node
Advanced tools
Comparing version 1.0.4 to 1.0.6
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15999
425
0