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

@uniformdev/optimize-tracker-common

Package Overview
Dependencies
Maintainers
9
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniformdev/optimize-tracker-common - npm Package Compare versions

Comparing version 1.0.1-alpha.88 to 1.0.1-alpha.100

19

dist/cjs/tracker.d.ts

@@ -13,11 +13,26 @@ import { DeliveryIntent, IntentAxis, IntentVector, Scope, Signal } from '@uniformdev/optimize-common';

trackPersonalization(name: string, payload: AnalyticsEventPayload): void;
/** Forgets all data about the current visitor */
forgetMe(): Promise<void>;
isInitialized(): boolean;
getServerIntentScores(): IntentVector | undefined;
/** Pushes a programmatic event (such as a Google Analytics event) into the tracker. If this event matches a signal, scoring may be updated. */
addEvent(event: TrackerEvent, options?: TrackerPushEventOptions): Promise<void>;
/** Gets current visitor intent scores for all intents they have a score in */
getIntentStrength(scope?: Scope | string): Promise<IntentVector | undefined>;
/** Gets current visitor intent score in a single intent. Returns undefined if visitor has no score in the intent. */
getIntentStrengthSingle(intent: string): Promise<IntentAxis | undefined>;
/** Removes all strength in a specific intent, programmatically. */
removeIntent(intent?: string, scope?: Scope | string): Promise<boolean>;
/**
* Check if the current visitor is receiving personalization,
* or is part of a control group not receiving personalization.
* false = receiving personalization, true = control group.
*/
isIncludedInTest(options?: TrackerTestCheckOptions): boolean;
/**
* Programmatically add strength to a specific intent, bypassing signals.
* Favor using signals to modify intent strength whenever possible.
*/
addIntentStrength(scope: Scope | string, valueToAdd: IntentVector): Promise<void>;
/** Logs a message to the tracker log */
log(data: LogMessageOptions): void;

@@ -200,4 +215,4 @@ }

export interface ScopeStorage extends BaseStorage {
getCurrentScope(type: Scope | string): Promise<TrackerScope | undefined>;
setCurrentScope(scope: TrackerScope): Promise<void>;
getScope(type: Scope | string): Promise<TrackerScope | undefined>;
setScope(scope: TrackerScope): Promise<void>;
}

@@ -204,0 +219,0 @@ export declare enum ActivityType {

@@ -13,11 +13,26 @@ import { DeliveryIntent, IntentAxis, IntentVector, Scope, Signal } from '@uniformdev/optimize-common';

trackPersonalization(name: string, payload: AnalyticsEventPayload): void;
/** Forgets all data about the current visitor */
forgetMe(): Promise<void>;
isInitialized(): boolean;
getServerIntentScores(): IntentVector | undefined;
/** Pushes a programmatic event (such as a Google Analytics event) into the tracker. If this event matches a signal, scoring may be updated. */
addEvent(event: TrackerEvent, options?: TrackerPushEventOptions): Promise<void>;
/** Gets current visitor intent scores for all intents they have a score in */
getIntentStrength(scope?: Scope | string): Promise<IntentVector | undefined>;
/** Gets current visitor intent score in a single intent. Returns undefined if visitor has no score in the intent. */
getIntentStrengthSingle(intent: string): Promise<IntentAxis | undefined>;
/** Removes all strength in a specific intent, programmatically. */
removeIntent(intent?: string, scope?: Scope | string): Promise<boolean>;
/**
* Check if the current visitor is receiving personalization,
* or is part of a control group not receiving personalization.
* false = receiving personalization, true = control group.
*/
isIncludedInTest(options?: TrackerTestCheckOptions): boolean;
/**
* Programmatically add strength to a specific intent, bypassing signals.
* Favor using signals to modify intent strength whenever possible.
*/
addIntentStrength(scope: Scope | string, valueToAdd: IntentVector): Promise<void>;
/** Logs a message to the tracker log */
log(data: LogMessageOptions): void;

@@ -200,4 +215,4 @@ }

export interface ScopeStorage extends BaseStorage {
getCurrentScope(type: Scope | string): Promise<TrackerScope | undefined>;
setCurrentScope(scope: TrackerScope): Promise<void>;
getScope(type: Scope | string): Promise<TrackerScope | undefined>;
setScope(scope: TrackerScope): Promise<void>;
}

@@ -204,0 +219,0 @@ export declare enum ActivityType {

6

package.json
{
"name": "@uniformdev/optimize-tracker-common",
"version": "1.0.1-alpha.88+905c51c7",
"version": "1.0.1-alpha.100+610d245f",
"description": "Uniform Optimize Tracker shared common functionality and types",

@@ -25,3 +25,3 @@ "license": "Apache-2.0",

"dependencies": {
"@uniformdev/optimize-common": "^1.0.1-alpha.88+905c51c7"
"@uniformdev/optimize-common": "^1.0.1-alpha.100+610d245f"
},

@@ -45,3 +45,3 @@ "devDependencies": {

},
"gitHead": "905c51c73252fa3adca5734b1232f4d42c92dbd9"
"gitHead": "610d245fc7d7cb30e89175c647e885cece25b346"
}
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