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

@types/amplitude-js

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/amplitude-js - npm Package Compare versions

Comparing version 8.16.2 to 8.16.3

48

amplitude-js/index.d.ts

@@ -11,5 +11,5 @@ // Type definitions for Amplitude SDK 8.16

export type LogReturn = number | undefined;
export type Transport = 'http' | 'beacon';
export type Transport = "http" | "beacon";
// https://github.com/amplitude/Amplitude-JavaScript/blob/v8.9.0/src/server-zone.js#L9
export type ServerZone = 'EU' | 'US';
export type ServerZone = "EU" | "US";

@@ -37,3 +37,3 @@ // https://amplitude.github.io/Amplitude-JavaScript/Options

language?: string | undefined;
logLevel?: 'DISABLE' | 'ERROR' | 'WARN' | 'INFO' | undefined;
logLevel?: "DISABLE" | "ERROR" | "WARN" | "INFO" | undefined;
optOut?: boolean | undefined;

@@ -43,3 +43,3 @@ onError?: (() => void) | undefined;

platform?: string | undefined;
sameSiteCookie?: 'Lax' | 'Strict' | 'None' | undefined;
sameSiteCookie?: "Lax" | "Strict" | "None" | undefined;
saveEvents?: boolean | undefined;

@@ -51,3 +51,3 @@ savedMaxCount?: number | undefined;

sessionId?: number | null;
storage?: '' | 'cookies' | 'localStorage' | 'sessionStorage' | 'none';
storage?: "" | "cookies" | "localStorage" | "sessionStorage" | "none";
trackingOptions?: {

@@ -146,3 +146,10 @@ city?: boolean | undefined;

identify(identify: Identify, callback?: Callback, errorCallback?: Callback, outOfSession?: boolean): void;
groupIdentify(groupType: string, groupName: string | string[], identify: Identify, callback?: Callback, errorCallback?: Callback, outOfSession?: boolean): void;
groupIdentify(
groupType: string,
groupName: string | string[],
identify: Identify,
callback?: Callback,
errorCallback?: Callback,
outOfSession?: boolean,
): void;

@@ -169,4 +176,17 @@ setUserProperties(properties: any): void;

setEventUploadThreshold(eventUploadThreshold: number): void;
logEvent(event: string, data?: any, callback?: Callback, errorCallback?: Callback, outOfSession?: boolean): LogReturn;
logEventWithGroups(event: string, data?: any, groups?: any, callback?: Callback, errorCallback?: Callback, outOfSession?: boolean): LogReturn;
logEvent(
event: string,
data?: any,
callback?: Callback,
errorCallback?: Callback,
outOfSession?: boolean,
): LogReturn;
logEventWithGroups(
event: string,
data?: any,
groups?: any,
callback?: Callback,
errorCallback?: Callback,
outOfSession?: boolean,
): LogReturn;
logRevenueV2(revenue_obj: Revenue): LogReturn;

@@ -178,3 +198,10 @@

logRevenue(price: number, quantity: number, product: string): LogReturn;
logEventWithTimestamp(event: string, data?: any, timestamp?: number, callback?: Callback, errorCallback?: Callback, outOfSession?: boolean): LogReturn;
logEventWithTimestamp(
event: string,
data?: any,
timestamp?: number,
callback?: Callback,
errorCallback?: Callback,
outOfSession?: boolean,
): LogReturn;

@@ -189,3 +216,3 @@ Identify: typeof Identify;

secure?: boolean | undefined;
sameSite?: 'Lax' | 'Strict' | 'None' | undefined;
sameSite?: "Lax" | "Strict" | "None" | undefined;
}

@@ -204,3 +231,2 @@ export interface CookieStorage {

/**
*
* @deprecated Please use amplitude.getInstance().init(apiKey, opt_userId, opt_config, opt_callback);

@@ -207,0 +233,0 @@ */

{
"name": "@types/amplitude-js",
"version": "8.16.2",
"version": "8.16.3",
"description": "TypeScript definitions for Amplitude SDK",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/amplitude-js",

"dependencies": {},
"typesPublisherContentHash": "875ebe966ff55e36ff133c91e83d83580cb3e24553b6b73a71b45af3715cd1cf",
"typeScriptVersion": "4.0"
"typesPublisherContentHash": "4d192aa2331a9981755b9da5a38c497ecb9055cfdfebf5f7aaaf77de344466ac",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 14 Jul 2022 10:32:23 GMT
* Last updated: Fri, 22 Sep 2023 18:11:03 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `amplitude`

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