Socket
Socket
Sign inDemoInstall

@amplitude/types

Package Overview
Dependencies
Maintainers
16
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/types - npm Package Compare versions

Comparing version 1.8.4 to 1.9.0

dist/src/ampli.d.ts

10

dist/src/client.d.ts
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

2

dist/src/options.d.ts

@@ -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

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