@amplitude/types
Advanced tools
Comparing version 1.8.4 to 1.9.0
import { Event } from './event'; | ||
import { Options } from './options'; | ||
import { Response } from './response'; | ||
import { Middleware, MiddlewareExtra } from './middleware'; | ||
/** | ||
@@ -18,5 +19,12 @@ * User-Facing Amplitude SDK Client. | ||
* @param event The event to send to Amplitude. | ||
* @param extra Unstructured extra data to pass to Middleware. | ||
*/ | ||
logEvent(event: Event): Promise<Response>; | ||
logEvent(event: Event, extra?: MiddlewareExtra): Promise<Response>; | ||
/** | ||
* Adds a new middleware function to run on each logEvent() call prior to sending to Amplitude. | ||
* | ||
* @param middleware The middleware method | ||
*/ | ||
addEventMiddleware(middleware: Middleware): Client; | ||
/** | ||
* Flush and send all the events which haven't been sent. | ||
@@ -23,0 +31,0 @@ */ |
@@ -12,2 +12,4 @@ export { BaseEvent, SpecialEventType } from './baseEvent'; | ||
export { Transport, TransportOptions, Payload, PayloadOptions } from './transport'; | ||
export { Middleware, MiddlewareExtra, MiddlewareNext, MiddlewarePayload } from './middleware'; | ||
export { EventOptions, GroupOptions, IdentifyOptions } from './ampli'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -70,3 +70,3 @@ import { LogLevel } from './logger'; | ||
/** | ||
* Tracking plan information | ||
* Global tracking plan information | ||
*/ | ||
@@ -73,0 +73,0 @@ plan?: Plan; |
import { Event } from './event'; | ||
import { Options } from './options'; | ||
import { Response } from './response'; | ||
import { Middleware, MiddlewareExtra } from './middleware'; | ||
/** | ||
@@ -18,5 +19,12 @@ * User-Facing Amplitude SDK Client. | ||
* @param event The event to send to Amplitude. | ||
* @param extra Unstructured extra data to pass to Middleware. | ||
*/ | ||
logEvent(event: Event): Promise<Response>; | ||
logEvent(event: Event, extra?: MiddlewareExtra): Promise<Response>; | ||
/** | ||
* Adds a new middleware function to run on each logEvent() call prior to sending to Amplitude. | ||
* | ||
* @param middleware The middleware method | ||
*/ | ||
addEventMiddleware(middleware: Middleware): Client; | ||
/** | ||
* Flush and send all the events which haven't been sent. | ||
@@ -23,0 +31,0 @@ */ |
@@ -12,2 +12,4 @@ export { BaseEvent, SpecialEventType } from './baseEvent'; | ||
export { Transport, TransportOptions, Payload, PayloadOptions } from './transport'; | ||
export { Middleware, MiddlewareExtra, MiddlewareNext, MiddlewarePayload } from './middleware'; | ||
export { EventOptions, GroupOptions, IdentifyOptions } from './ampli'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -70,3 +70,3 @@ import { LogLevel } from './logger'; | ||
/** | ||
* Tracking plan information | ||
* Global tracking plan information | ||
*/ | ||
@@ -73,0 +73,0 @@ plan?: Plan; |
{ | ||
"name": "@amplitude/types", | ||
"version": "1.8.4", | ||
"version": "1.9.0", | ||
"description": "Types for all Amplitude JavaScript SDKs", | ||
@@ -44,3 +44,3 @@ "repository": "git://github.com/amplitude/Amplitude-Node.git", | ||
"sideEffects": false, | ||
"gitHead": "e0d89f4f5d603b2c559b06dc60e5e9e432c04e6e" | ||
"gitHead": "e8f0bdac033d9ecca47092c123c0596ca516a915" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
107850
123
1107
0