Socket
Socket
Sign inDemoInstall

@amplitude/analytics-types

Package Overview
Dependencies
Maintainers
21
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/analytics-types - npm Package Compare versions

Comparing version 2.5.1 to 2.6.0-featureremoteconfig.0

lib/cjs/autocapture.d.ts

9

lib/cjs/config/browser.d.ts

@@ -6,2 +6,3 @@ import { UserSession } from '../user-session';

import { PageTrackingOptions } from '../page-view-tracking';
import { AutocaptureOptions } from '../autocapture';
export interface BrowserConfig extends ExternalBrowserConfig, InternalBrowserConfig {

@@ -22,2 +23,8 @@ }

/**
* The configurations for autocapture plugin.
* See {@link https://www.docs.developers.amplitude.com/data/sdks/browser-2/autocapture/}.
* @defaultValue `true`
*/
autocapture?: boolean | AutocaptureOptions;
/**
* The identifier for the device running your application.

@@ -167,3 +174,3 @@ * @defaultValue `UUID()`

}
type HiddenOptions = 'apiKey' | 'transportProvider';
type HiddenOptions = 'apiKey' | 'transportProvider' | 'requestMetadata';
export interface BrowserOptions extends Omit<Partial<ExternalBrowserConfig>, HiddenOptions> {

@@ -170,0 +177,0 @@ }

@@ -83,3 +83,21 @@ import { Event } from '../event';

useBatch: boolean;
/**
* Metrics of the SDK.
*/
requestMetadata?: RequestMetadata;
}
export interface RequestMetadata {
sdk: {
metrics: {
histogram: {
remote_config_fetch_time?: number;
};
};
};
recordHistogram<T extends HistogramKey>(key: T, value: HistogramOptions[T]): void;
}
export interface HistogramOptions {
remote_config_fetch_time?: number;
}
export type HistogramKey = keyof HistogramOptions;
export interface Options extends Partial<Config> {

@@ -86,0 +104,0 @@ apiKey: string;

2

lib/cjs/config/index.d.ts

@@ -1,2 +0,2 @@

export { Config, Options } from './core';
export { Config, Options, RequestMetadata, HistogramOptions, HistogramKey } from './core';
export { BrowserConfig, DefaultTrackingOptions, TrackingOptions, AttributionOptions, BrowserOptions } from './browser';

@@ -3,0 +3,0 @@ export { NodeConfig, NodeOptions } from './node';

@@ -5,3 +5,3 @@ export { AmplitudeReturn } from './amplitude-promise';

export { BrowserClient, ReactNativeClient, NodeClient } from './client';
export { AttributionOptions, BrowserConfig, BrowserOptions, Config, DefaultTrackingOptions, Options, NodeConfig, NodeOptions, ReactNativeConfig, ReactNativeOptions, ReactNativeTrackingOptions, TrackingOptions, } from './config';
export { AttributionOptions, BrowserConfig, BrowserOptions, Config, DefaultTrackingOptions, Options, NodeConfig, NodeOptions, ReactNativeConfig, ReactNativeOptions, ReactNativeTrackingOptions, TrackingOptions, RequestMetadata, HistogramOptions, HistogramKey, } from './config';
export { CoreClient } from './client/core-client';

@@ -28,2 +28,3 @@ export { DestinationContext } from './destination-context';

export { OfflineDisabled } from './offline';
export { Messenger, AutocaptureOptions, ActionType, DEFAULT_CSS_SELECTOR_ALLOWLIST, DEFAULT_DATA_ATTRIBUTE_PREFIX, } from './autocapture';
//# sourceMappingURL=index.d.ts.map
Object.defineProperty(exports, "__esModule", { value: true });
exports.OfflineDisabled = exports.Status = exports.ServerZone = exports.LogLevel = exports.RevenueProperty = exports.IdentifyOperation = exports.SpecialEventType = void 0;
exports.DEFAULT_DATA_ATTRIBUTE_PREFIX = exports.DEFAULT_CSS_SELECTOR_ALLOWLIST = exports.OfflineDisabled = exports.Status = exports.ServerZone = exports.LogLevel = exports.RevenueProperty = exports.IdentifyOperation = exports.SpecialEventType = void 0;
var event_1 = require("./event");

@@ -15,2 +15,5 @@ Object.defineProperty(exports, "SpecialEventType", { enumerable: true, get: function () { return event_1.SpecialEventType; } });

Object.defineProperty(exports, "OfflineDisabled", { enumerable: true, get: function () { return offline_1.OfflineDisabled; } });
var autocapture_1 = require("./autocapture");
Object.defineProperty(exports, "DEFAULT_CSS_SELECTOR_ALLOWLIST", { enumerable: true, get: function () { return autocapture_1.DEFAULT_CSS_SELECTOR_ALLOWLIST; } });
Object.defineProperty(exports, "DEFAULT_DATA_ATTRIBUTE_PREFIX", { enumerable: true, get: function () { return autocapture_1.DEFAULT_DATA_ATTRIBUTE_PREFIX; } });
//# sourceMappingURL=index.js.map
import { Event } from './event';
import { RequestMetadata } from './config';
export interface PayloadOptions {

@@ -10,3 +11,4 @@ min_id_length?: number;

client_upload_time?: string;
request_metadata?: RequestMetadata;
}
//# sourceMappingURL=payload.d.ts.map

@@ -9,3 +9,4 @@ export interface UserSession {

pageCounter?: number;
debugLogsEnabled?: boolean;
}
//# sourceMappingURL=user-session.d.ts.map

@@ -6,2 +6,3 @@ import { UserSession } from '../user-session';

import { PageTrackingOptions } from '../page-view-tracking';
import { AutocaptureOptions } from '../autocapture';
export interface BrowserConfig extends ExternalBrowserConfig, InternalBrowserConfig {

@@ -22,2 +23,8 @@ }

/**
* The configurations for autocapture plugin.
* See {@link https://www.docs.developers.amplitude.com/data/sdks/browser-2/autocapture/}.
* @defaultValue `true`
*/
autocapture?: boolean | AutocaptureOptions;
/**
* The identifier for the device running your application.

@@ -167,3 +174,3 @@ * @defaultValue `UUID()`

}
type HiddenOptions = 'apiKey' | 'transportProvider';
type HiddenOptions = 'apiKey' | 'transportProvider' | 'requestMetadata';
export interface BrowserOptions extends Omit<Partial<ExternalBrowserConfig>, HiddenOptions> {

@@ -170,0 +177,0 @@ }

@@ -83,3 +83,21 @@ import { Event } from '../event';

useBatch: boolean;
/**
* Metrics of the SDK.
*/
requestMetadata?: RequestMetadata;
}
export interface RequestMetadata {
sdk: {
metrics: {
histogram: {
remote_config_fetch_time?: number;
};
};
};
recordHistogram<T extends HistogramKey>(key: T, value: HistogramOptions[T]): void;
}
export interface HistogramOptions {
remote_config_fetch_time?: number;
}
export type HistogramKey = keyof HistogramOptions;
export interface Options extends Partial<Config> {

@@ -86,0 +104,0 @@ apiKey: string;

@@ -1,2 +0,2 @@

export { Config, Options } from './core';
export { Config, Options, RequestMetadata, HistogramOptions, HistogramKey } from './core';
export { BrowserConfig, DefaultTrackingOptions, TrackingOptions, AttributionOptions, BrowserOptions } from './browser';

@@ -3,0 +3,0 @@ export { NodeConfig, NodeOptions } from './node';

@@ -5,3 +5,3 @@ export { AmplitudeReturn } from './amplitude-promise';

export { BrowserClient, ReactNativeClient, NodeClient } from './client';
export { AttributionOptions, BrowserConfig, BrowserOptions, Config, DefaultTrackingOptions, Options, NodeConfig, NodeOptions, ReactNativeConfig, ReactNativeOptions, ReactNativeTrackingOptions, TrackingOptions, } from './config';
export { AttributionOptions, BrowserConfig, BrowserOptions, Config, DefaultTrackingOptions, Options, NodeConfig, NodeOptions, ReactNativeConfig, ReactNativeOptions, ReactNativeTrackingOptions, TrackingOptions, RequestMetadata, HistogramOptions, HistogramKey, } from './config';
export { CoreClient } from './client/core-client';

@@ -28,2 +28,3 @@ export { DestinationContext } from './destination-context';

export { OfflineDisabled } from './offline';
export { Messenger, AutocaptureOptions, ActionType, DEFAULT_CSS_SELECTOR_ALLOWLIST, DEFAULT_DATA_ATTRIBUTE_PREFIX, } from './autocapture';
//# sourceMappingURL=index.d.ts.map

@@ -6,2 +6,3 @@ export { SpecialEventType, IdentifyOperation, RevenueProperty, } from './event';

export { OfflineDisabled } from './offline';
export { DEFAULT_CSS_SELECTOR_ALLOWLIST, DEFAULT_DATA_ATTRIBUTE_PREFIX, } from './autocapture';
//# sourceMappingURL=index.js.map
import { Event } from './event';
import { RequestMetadata } from './config';
export interface PayloadOptions {

@@ -10,3 +11,4 @@ min_id_length?: number;

client_upload_time?: string;
request_metadata?: RequestMetadata;
}
//# sourceMappingURL=payload.d.ts.map

@@ -9,3 +9,4 @@ export interface UserSession {

pageCounter?: number;
debugLogsEnabled?: boolean;
}
//# sourceMappingURL=user-session.d.ts.map
{
"name": "@amplitude/analytics-types",
"version": "2.5.1",
"version": "2.6.0-featureremoteconfig.0",
"description": "",

@@ -38,3 +38,3 @@ "author": "Amplitude Inc",

],
"gitHead": "5ec4220989f9b7972887d1ecb88b6b993f2bd8b1"
"gitHead": "bce512c9ed7e4c675335e394a08bc4c1aeca9292"
}

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

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