@uniformdev/optimize-common
Advanced tools
Comparing version 1.0.1-alpha.22 to 1.0.1-alpha.83
@@ -0,0 +0,0 @@ # Change Log |
@@ -18,1 +18,2 @@ export * from './intents/DeliveryIntent'; | ||
export * from './signals/Scope'; | ||
export * from './signals/SignalFrequency'; |
@@ -30,1 +30,2 @@ "use strict"; | ||
__exportStar(require("./signals/Scope"), exports); | ||
__exportStar(require("./signals/SignalFrequency"), exports); |
@@ -1,5 +0,5 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { Signal, SignalType } from './Signal'; | ||
export interface BehaviorSignal extends Signal { | ||
type: SignalType.Behavior; | ||
} | ||
export declare function isBehaviorSignal(signal: Signal): signal is BehaviorSignal; | ||
export declare function isBehaviorSignal(signal: Pick<Signal, 'type'>): signal is BehaviorSignal; |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface CookieSignal extends Signal { | ||
@@ -8,2 +8,2 @@ type: SignalType.Cookie; | ||
} | ||
export declare function isCookieSignal(signal: Signal): signal is CookieSignal; | ||
export declare function isCookieSignal(signal: Pick<Signal, 'type'>): signal is CookieSignal; |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface EventSignal extends Signal { | ||
@@ -9,2 +9,2 @@ type: SignalType.Event; | ||
} | ||
export declare function isEventSignal(signal: Signal): signal is EventSignal; | ||
export declare function isEventSignal(signal: Pick<Signal, 'type'>): signal is EventSignal; |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface LandingPageSignal extends Signal { | ||
@@ -8,2 +8,2 @@ type: SignalType.LandingPage; | ||
} | ||
export declare function isLandingPageSignal(signal: Signal): signal is LandingPageSignal; | ||
export declare function isLandingPageSignal(signal: Pick<Signal, 'type'>): signal is LandingPageSignal; |
@@ -1,2 +0,2 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { Signal, SignalType } from './Signal'; | ||
export interface PageViewCountSignal extends Signal { | ||
@@ -9,2 +9,2 @@ type: SignalType.PageViewCount; | ||
} | ||
export declare function isPageViewCountSignal(signal: Signal): signal is PageViewCountSignal; | ||
export declare function isPageViewCountSignal(signal: Pick<Signal, 'type'>): signal is PageViewCountSignal; |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface PageVisitedSignal extends Signal { | ||
@@ -8,2 +8,2 @@ type: SignalType.PageVisited; | ||
} | ||
export declare function isPageVisitedSignal(signal: Signal): signal is PageVisitedSignal; | ||
export declare function isPageVisitedSignal(signal: Pick<Signal, 'type'>): signal is PageVisitedSignal; |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface QueryStringSignal extends Signal { | ||
@@ -10,2 +10,2 @@ type: SignalType.QueryString; | ||
} | ||
export declare function isQueryStringSignal(signal: Signal): signal is QueryStringSignal; | ||
export declare function isQueryStringSignal(signal: Pick<Signal, 'type'>): signal is QueryStringSignal; |
@@ -6,4 +6,4 @@ "use strict"; | ||
function isQueryStringSignal(signal) { | ||
return signal.type == Signal_1.SignalType.QueryString || signal.type == 'UTM'; // 'utm' is deprecated | ||
return signal.type == Signal_1.SignalType.QueryString; | ||
} | ||
exports.isQueryStringSignal = isQueryStringSignal; |
import { IntentTagStrength } from '../intents/IntentTags'; | ||
import { Scope } from './Scope'; | ||
import { SignalFrequency } from './SignalFrequency'; | ||
export declare enum SignalType { | ||
@@ -16,3 +17,4 @@ Cookie = "CK", | ||
scope?: Scope | string; | ||
freq?: SignalFrequency | string; | ||
id?: string; | ||
} |
@@ -18,1 +18,2 @@ export * from './intents/DeliveryIntent'; | ||
export * from './signals/Scope'; | ||
export * from './signals/SignalFrequency'; |
@@ -18,1 +18,2 @@ export * from './intents/DeliveryIntent'; | ||
export * from './signals/Scope'; | ||
export * from './signals/SignalFrequency'; |
@@ -1,5 +0,5 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { Signal, SignalType } from './Signal'; | ||
export interface BehaviorSignal extends Signal { | ||
type: SignalType.Behavior; | ||
} | ||
export declare function isBehaviorSignal(signal: Signal): signal is BehaviorSignal; | ||
export declare function isBehaviorSignal(signal: Pick<Signal, 'type'>): signal is BehaviorSignal; |
@@ -1,4 +0,4 @@ | ||
import { SignalType } from "./Signal"; | ||
import { SignalType } from './Signal'; | ||
export function isBehaviorSignal(signal) { | ||
return signal.type == SignalType.Behavior; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface CookieSignal extends Signal { | ||
@@ -8,2 +8,2 @@ type: SignalType.Cookie; | ||
} | ||
export declare function isCookieSignal(signal: Signal): signal is CookieSignal; | ||
export declare function isCookieSignal(signal: Pick<Signal, 'type'>): signal is CookieSignal; |
@@ -1,4 +0,4 @@ | ||
import { SignalType } from "./Signal"; | ||
import { SignalType } from './Signal'; | ||
export function isCookieSignal(signal) { | ||
return signal.type == SignalType.Cookie; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface EventSignal extends Signal { | ||
@@ -9,2 +9,2 @@ type: SignalType.Event; | ||
} | ||
export declare function isEventSignal(signal: Signal): signal is EventSignal; | ||
export declare function isEventSignal(signal: Pick<Signal, 'type'>): signal is EventSignal; |
@@ -1,4 +0,4 @@ | ||
import { SignalType } from "./Signal"; | ||
import { SignalType } from './Signal'; | ||
export function isEventSignal(signal) { | ||
return signal.type == SignalType.Event; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface LandingPageSignal extends Signal { | ||
@@ -8,2 +8,2 @@ type: SignalType.LandingPage; | ||
} | ||
export declare function isLandingPageSignal(signal: Signal): signal is LandingPageSignal; | ||
export declare function isLandingPageSignal(signal: Pick<Signal, 'type'>): signal is LandingPageSignal; |
@@ -1,4 +0,4 @@ | ||
import { SignalType } from "./Signal"; | ||
import { SignalType } from './Signal'; | ||
export function isLandingPageSignal(signal) { | ||
return signal.type == SignalType.LandingPage; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { Signal, SignalType } from './Signal'; | ||
export interface PageViewCountSignal extends Signal { | ||
@@ -9,2 +9,2 @@ type: SignalType.PageViewCount; | ||
} | ||
export declare function isPageViewCountSignal(signal: Signal): signal is PageViewCountSignal; | ||
export declare function isPageViewCountSignal(signal: Pick<Signal, 'type'>): signal is PageViewCountSignal; |
@@ -1,4 +0,4 @@ | ||
import { SignalType } from "./Signal"; | ||
import { SignalType } from './Signal'; | ||
export function isPageViewCountSignal(signal) { | ||
return signal.type == SignalType.PageViewCount; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface PageVisitedSignal extends Signal { | ||
@@ -8,2 +8,2 @@ type: SignalType.PageVisited; | ||
} | ||
export declare function isPageVisitedSignal(signal: Signal): signal is PageVisitedSignal; | ||
export declare function isPageVisitedSignal(signal: Pick<Signal, 'type'>): signal is PageVisitedSignal; |
@@ -1,4 +0,4 @@ | ||
import { SignalType } from "./Signal"; | ||
import { SignalType } from './Signal'; | ||
export function isPageVisitedSignal(signal) { | ||
return signal.type == SignalType.PageVisited; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { Signal, SignalType } from "./Signal"; | ||
import { StringMatch } from "./StringMatch"; | ||
import { Signal, SignalType } from './Signal'; | ||
import { StringMatch } from './StringMatch'; | ||
export interface QueryStringSignal extends Signal { | ||
@@ -10,2 +10,2 @@ type: SignalType.QueryString; | ||
} | ||
export declare function isQueryStringSignal(signal: Signal): signal is QueryStringSignal; | ||
export declare function isQueryStringSignal(signal: Pick<Signal, 'type'>): signal is QueryStringSignal; |
@@ -1,4 +0,4 @@ | ||
import { SignalType } from "./Signal"; | ||
import { SignalType } from './Signal'; | ||
export function isQueryStringSignal(signal) { | ||
return signal.type == SignalType.QueryString || signal.type == 'UTM'; // 'utm' is deprecated | ||
return signal.type == SignalType.QueryString; | ||
} |
import { IntentTagStrength } from '../intents/IntentTags'; | ||
import { Scope } from './Scope'; | ||
import { SignalFrequency } from './SignalFrequency'; | ||
export declare enum SignalType { | ||
@@ -16,3 +17,4 @@ Cookie = "CK", | ||
scope?: Scope | string; | ||
freq?: SignalFrequency | string; | ||
id?: string; | ||
} |
{ | ||
"name": "@uniformdev/optimize-common", | ||
"version": "1.0.1-alpha.22+6f6b50b7", | ||
"version": "1.0.1-alpha.83+49d1d90c", | ||
"description": "Common functionality and types for Uniform Optimize", | ||
@@ -41,3 +41,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "6f6b50b713096180c7c75ad2a98735b984c5ea36" | ||
"gitHead": "49d1d90c43e7ee30d5be81a3b2c1434bf414adcf" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
37320
80
778