@ninetailed/experience.js 3.0.1-beta.4 → 3.0.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +4343 -0
- package/{index.esm.js → index.js} +1605 -1564
- package/lib/Ninetailed.d.ts +14 -60
- package/lib/analytics/constants.d.ts +2 -0
- package/lib/analytics/get-analytics-plugin.d.ts +8 -12
- package/lib/analytics/index.d.ts +1 -0
- package/lib/experience/isExperienceMatch.d.ts +3 -3
- package/lib/experience/selectActiveExperiments.d.ts +2 -2
- package/lib/experience/selectBaselineWithVariants.d.ts +2 -2
- package/lib/experience/selectDistribution.d.ts +4 -4
- package/lib/experience/selectEligibleExperiences.d.ts +5 -5
- package/lib/experience/selectExperience.d.ts +5 -5
- package/lib/experience/selectHasVariants.d.ts +2 -2
- package/lib/experience/selectVariant.d.ts +4 -4
- package/lib/experience/selectVariants.d.ts +2 -2
- package/lib/experience/types/Baseline.d.ts +2 -3
- package/lib/experience/types/BaselineWithVariants.d.ts +5 -4
- package/lib/experience/types/ExperienceConfiguration.d.ts +3 -2
- package/lib/experience/types/Reference.d.ts +3 -0
- package/lib/experience/types/VariantRef.d.ts +4 -0
- package/lib/experience/types/index.d.ts +2 -1
- package/lib/experience/utils.d.ts +2 -2
- package/lib/types.d.ts +37 -1
- package/package.json +10 -13
- package/index.umd.js +0 -4253
- package/lib/experience/types/Variant.d.ts +0 -4
package/lib/Ninetailed.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Locale, Traits, Profile,
|
|
3
|
-
import { ProfileState } from './types';
|
|
4
|
-
import { ExperienceConfiguration } from './experience';
|
|
1
|
+
import { AnalyticsPlugin } from 'analytics';
|
|
2
|
+
import { Locale, Traits, Profile, OnLogHandler, OnErrorHandler, Logger, PageviewProperties, Properties, NinetailedApiClient, NinetailedApiClientOptions } from '@ninetailed/experience.js-shared';
|
|
3
|
+
import { EventFunctionOptions, NinetailedInstance, OnIsInitializedCallback, OnProfileChangeCallback, ProfileState, TrackHasSeenComponent, TrackHasSeenExperience } from './types';
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
ninetailed?: {
|
|
@@ -11,8 +10,6 @@ declare global {
|
|
|
11
10
|
} & unknown;
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
|
-
declare type OnIsInitializedCallback = () => void;
|
|
15
|
-
export declare type OnIsInitialized = (cb: OnIsInitializedCallback) => void;
|
|
16
13
|
declare type Options = {
|
|
17
14
|
url?: string;
|
|
18
15
|
locale?: Locale;
|
|
@@ -22,67 +19,24 @@ declare type Options = {
|
|
|
22
19
|
onLog?: OnLogHandler;
|
|
23
20
|
onError?: OnErrorHandler;
|
|
24
21
|
};
|
|
25
|
-
declare type
|
|
26
|
-
plugins?: {
|
|
27
|
-
all: boolean;
|
|
28
|
-
[key: string]: boolean;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
declare type OnProfileChangeCallback = (profile: ProfileState) => void;
|
|
32
|
-
export declare type Page = (data?: PageData, options?: EventFunctionOptions) => Promise<void>;
|
|
33
|
-
export declare type Track = (event: string, payload?: unknown, options?: EventFunctionOptions) => Promise<void>;
|
|
34
|
-
export declare type TrackHasSeenComponent = (payload: {
|
|
35
|
-
variant: Variant<unknown>;
|
|
36
|
-
audience: {
|
|
37
|
-
id: string;
|
|
38
|
-
};
|
|
39
|
-
isPersonalized: boolean;
|
|
40
|
-
}) => Promise<void>;
|
|
41
|
-
export declare type TrackExperiencePayload = {
|
|
42
|
-
experience: ExperienceConfiguration;
|
|
43
|
-
variant: number;
|
|
44
|
-
component: {
|
|
45
|
-
id: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export declare type TrackExperience = (payload: TrackExperiencePayload) => Promise<void>;
|
|
49
|
-
export declare type Identify = (uid: string, traits?: Traits, options?: EventFunctionOptions) => Promise<void>;
|
|
50
|
-
export declare type Reset = () => void;
|
|
51
|
-
export declare type Debug = (enable: boolean) => void;
|
|
52
|
-
export declare type OnProfileChange = (cb: OnProfileChangeCallback) => DetachListeners;
|
|
53
|
-
export interface NinetailedInstance {
|
|
54
|
-
page: Page;
|
|
55
|
-
track: Track;
|
|
56
|
-
trackHasSeenComponent: TrackHasSeenComponent;
|
|
57
|
-
trackExperience: TrackExperience;
|
|
58
|
-
identify: Identify;
|
|
59
|
-
reset: Reset;
|
|
60
|
-
debug: Debug;
|
|
61
|
-
profileState: ProfileState;
|
|
62
|
-
onProfileChange: OnProfileChange;
|
|
63
|
-
plugins: AnalyticsPlugin[];
|
|
64
|
-
logger: Logger;
|
|
65
|
-
onIsInitialized: OnIsInitialized;
|
|
66
|
-
}
|
|
22
|
+
declare type NinetailedApiClientInstanceOrOptions = NinetailedApiClient | NinetailedApiClientOptions;
|
|
67
23
|
export declare class Ninetailed implements NinetailedInstance {
|
|
68
24
|
private readonly instance;
|
|
69
25
|
private _profileState;
|
|
70
26
|
private isInitialized;
|
|
27
|
+
private readonly apiClient;
|
|
28
|
+
private readonly eventQueue;
|
|
71
29
|
readonly plugins: AnalyticsPlugin[];
|
|
72
30
|
readonly logger: Logger;
|
|
73
|
-
constructor({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
preview?: boolean;
|
|
77
|
-
}, { plugins, url, profile, locale, requestTimeout, onLog, onError, }?: Options);
|
|
78
|
-
page: (data?: PageData<string> | undefined, options?: EventFunctionOptions | undefined) => Promise<any>;
|
|
79
|
-
track: (event: string, payload?: unknown, options?: EventFunctionOptions | undefined) => Promise<any>;
|
|
31
|
+
constructor(ninetailedApiClientInstanceOrOptions: NinetailedApiClientInstanceOrOptions, { plugins, url, profile, locale, requestTimeout, onLog, onError, }?: Options);
|
|
32
|
+
page: (data?: Partial<PageviewProperties>, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
|
|
33
|
+
track: (event: string, properties?: Properties, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
|
|
80
34
|
trackHasSeenComponent: TrackHasSeenComponent;
|
|
81
|
-
|
|
82
|
-
identify: (uid: string, traits?: Traits
|
|
83
|
-
reset: () => void
|
|
84
|
-
debug: (enabled: boolean) => void
|
|
85
|
-
onProfileChange: (cb: OnProfileChangeCallback) => DetachListeners;
|
|
35
|
+
trackHasSeenExperience: TrackHasSeenExperience;
|
|
36
|
+
identify: (uid: string, traits?: Traits, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
|
|
37
|
+
reset: () => Promise<void>;
|
|
38
|
+
debug: (enabled: boolean) => Promise<void>;
|
|
39
|
+
onProfileChange: (cb: OnProfileChangeCallback) => import("analytics").DetachListeners;
|
|
86
40
|
onIsInitialized: (onIsInitialized: OnIsInitializedCallback) => void;
|
|
87
41
|
private waitUntilInitialized;
|
|
88
42
|
get profileState(): ProfileState;
|
|
@@ -2,3 +2,5 @@ export declare const LEGACY_ANONYMOUS_ID = "__anon_id";
|
|
|
2
2
|
export declare const ANONYMOUS_ID = "__nt_anonymous_id__";
|
|
3
3
|
export declare const DEBUG_FLAG = "__nt_debug__";
|
|
4
4
|
export declare const PROFILE_FALLBACK_CACHE = "__nt_profile__";
|
|
5
|
+
export declare const PROFILE_CHANGE = "profile-change";
|
|
6
|
+
export declare const PROFILE_RESET = "profile-reset";
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { AnalyticsPlugin } from 'analytics';
|
|
2
|
-
import { Profile, Locale } from '@ninetailed/experience.js-shared';
|
|
2
|
+
import { Profile, Locale, NinetailedApiClient } from '@ninetailed/experience.js-shared';
|
|
3
|
+
import { NinetailedInstance, FlushResult } from '../types';
|
|
3
4
|
declare type AnalyticsPluginNinetailedConfig = {
|
|
4
|
-
|
|
5
|
-
environment?: string;
|
|
6
|
-
preview?: boolean;
|
|
7
|
-
url?: string;
|
|
5
|
+
apiClient: NinetailedApiClient;
|
|
8
6
|
profile?: Profile;
|
|
9
7
|
locale?: Locale;
|
|
10
8
|
requestTimeout?: number;
|
|
11
|
-
|
|
12
|
-
export declare const NINETAILED_TRACKER_EVENTS: {
|
|
13
|
-
/**
|
|
14
|
-
* `profile` - Fires when the profile is returned by the cdp API.
|
|
15
|
-
*/
|
|
16
|
-
profile: string;
|
|
9
|
+
ninetailed: NinetailedInstance;
|
|
17
10
|
};
|
|
18
11
|
export declare const PLUGIN_NAME = "ninetailed";
|
|
19
|
-
export
|
|
12
|
+
export interface NinetailedEventQueue extends AnalyticsPlugin {
|
|
13
|
+
flush: () => Promise<FlushResult>;
|
|
14
|
+
}
|
|
15
|
+
export declare const ninetailedPlugin: ({ apiClient, profile, locale, ninetailed, }: AnalyticsPluginNinetailedConfig) => NinetailedEventQueue;
|
|
20
16
|
export {};
|
package/lib/analytics/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Profile } from '@ninetailed/experience.js-shared';
|
|
2
2
|
import { ExperienceConfiguration } from './types';
|
|
3
3
|
declare type IsExperienceMatchArgs = {
|
|
4
|
-
experience: ExperienceConfiguration
|
|
5
|
-
activeExperiments: ExperienceConfiguration[];
|
|
4
|
+
experience: ExperienceConfiguration<any>;
|
|
5
|
+
activeExperiments: ExperienceConfiguration<any>[];
|
|
6
6
|
profile: Profile;
|
|
7
7
|
};
|
|
8
|
-
export declare const isExperienceMatch: ({ experience, activeExperiments, profile }: IsExperienceMatchArgs) => boolean;
|
|
8
|
+
export declare const isExperienceMatch: ({ experience, activeExperiments, profile, }: IsExperienceMatchArgs) => boolean;
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Profile } from '@ninetailed/experience.js-shared';
|
|
2
|
-
import { ExperienceConfiguration } from './types';
|
|
3
|
-
export declare const selectActiveExperiments: (experiments: ExperienceConfiguration[], profile: Profile) => ExperienceConfiguration[];
|
|
2
|
+
import { ExperienceConfiguration, Reference } from './types';
|
|
3
|
+
export declare const selectActiveExperiments: <Variant extends Reference>(experiments: ExperienceConfiguration<Variant>[], profile: Profile) => ExperienceConfiguration<Variant>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Baseline, BaselineWithVariants, ExperienceConfiguration } from './types';
|
|
2
|
-
export declare const selectBaselineWithVariants: (experience: ExperienceConfiguration
|
|
1
|
+
import { Baseline, BaselineWithVariants, ExperienceConfiguration, Reference } from './types';
|
|
2
|
+
export declare const selectBaselineWithVariants: <Variant extends Reference>(experience: ExperienceConfiguration<Variant>, baseline: Baseline) => BaselineWithVariants<Variant> | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Profile } from '@ninetailed/experience.js-shared';
|
|
2
|
-
import { Distribution, ExperienceConfiguration } from './types';
|
|
3
|
-
declare type SelectDistributionArgs = {
|
|
4
|
-
experience: ExperienceConfiguration
|
|
2
|
+
import { Distribution, ExperienceConfiguration, Reference } from './types';
|
|
3
|
+
declare type SelectDistributionArgs<Variant extends Reference> = {
|
|
4
|
+
experience: ExperienceConfiguration<Variant>;
|
|
5
5
|
profile: Profile;
|
|
6
6
|
};
|
|
7
|
-
export declare const selectDistribution: ({ experience, profile, }: SelectDistributionArgs) => Distribution;
|
|
7
|
+
export declare const selectDistribution: <Variant extends Reference>({ experience, profile, }: SelectDistributionArgs<Variant>) => Distribution;
|
|
8
8
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ExperienceConfiguration } from './types';
|
|
2
|
-
declare type SelectEligibleExperiencesArgs = {
|
|
3
|
-
experiences: ExperienceConfiguration[];
|
|
4
|
-
activeExperiments: ExperienceConfiguration[];
|
|
1
|
+
import { ExperienceConfiguration, Reference } from './types';
|
|
2
|
+
declare type SelectEligibleExperiencesArgs<Variant extends Reference> = {
|
|
3
|
+
experiences: ExperienceConfiguration<Variant>[];
|
|
4
|
+
activeExperiments: ExperienceConfiguration<Variant>[];
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
7
|
* We can use any personalization as eligible experience
|
|
8
8
|
* When going for an experiment we can only select a active experiment when 1 or more experiments are active
|
|
9
9
|
* If the profile is not in any active experiments, we can select any expermiment
|
|
10
10
|
*/
|
|
11
|
-
export declare const selectEligibleExperiences: ({ experiences, activeExperiments, }: SelectEligibleExperiencesArgs) => ExperienceConfiguration[];
|
|
11
|
+
export declare const selectEligibleExperiences: <Variant extends Reference>({ experiences, activeExperiments, }: SelectEligibleExperiencesArgs<Variant>) => ExperienceConfiguration<Variant>[];
|
|
12
12
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Profile } from '@ninetailed/experience.js-shared';
|
|
2
|
-
import { ExperienceConfiguration } from './types';
|
|
3
|
-
declare type SelectExprienceArgs = {
|
|
4
|
-
experiences: ExperienceConfiguration[];
|
|
5
|
-
activeExperiments: ExperienceConfiguration[];
|
|
2
|
+
import { ExperienceConfiguration, Reference } from './types';
|
|
3
|
+
declare type SelectExprienceArgs<Variant extends Reference> = {
|
|
4
|
+
experiences: ExperienceConfiguration<Variant>[];
|
|
5
|
+
activeExperiments: ExperienceConfiguration<Variant>[];
|
|
6
6
|
profile: Profile;
|
|
7
7
|
};
|
|
8
|
-
export declare const selectExperience: ({ experiences, activeExperiments, profile, }: SelectExprienceArgs) => ExperienceConfiguration | null;
|
|
8
|
+
export declare const selectExperience: <Variant extends Reference>({ experiences, activeExperiments, profile, }: SelectExprienceArgs<Variant>) => ExperienceConfiguration<Variant> | null;
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Baseline, ExperienceConfiguration } from
|
|
2
|
-
export declare const selectHasVariants: (experience: ExperienceConfiguration
|
|
1
|
+
import { Baseline, ExperienceConfiguration, Reference } from './types';
|
|
2
|
+
export declare const selectHasVariants: <Variant extends Reference>(experience: ExperienceConfiguration<Variant>, baseline: Baseline) => boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Profile } from '@ninetailed/experience.js-shared';
|
|
2
|
-
import { Baseline, ExperienceConfiguration,
|
|
3
|
-
declare type SelectVariantArgs = {
|
|
2
|
+
import { Baseline, ExperienceConfiguration, Reference, VariantRef } from './types';
|
|
3
|
+
declare type SelectVariantArgs<Variant extends Reference> = {
|
|
4
4
|
baseline: Baseline;
|
|
5
|
-
experience: ExperienceConfiguration
|
|
5
|
+
experience: ExperienceConfiguration<Variant>;
|
|
6
6
|
profile: Profile;
|
|
7
7
|
};
|
|
8
|
-
export declare const selectVariant: ({ baseline, experience, profile, }: SelectVariantArgs) => Variant | null;
|
|
8
|
+
export declare const selectVariant: <Variant extends Reference>({ baseline, experience, profile, }: SelectVariantArgs<Variant>) => Variant | VariantRef | null;
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Baseline,
|
|
2
|
-
export declare const selectVariants: (experience: ExperienceConfiguration
|
|
1
|
+
import { Baseline, ExperienceConfiguration, Reference, VariantRef } from './types';
|
|
2
|
+
export declare const selectVariants: <Variant extends Reference>(experience: ExperienceConfiguration<Variant>, baseline: Baseline) => (Variant | VariantRef)[];
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
1
|
+
import { Reference } from './Reference';
|
|
2
|
+
export declare type Baseline<P = unknown> = P & Reference;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Baseline } from './Baseline';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { Reference } from './Reference';
|
|
3
|
+
import { VariantRef } from './VariantRef';
|
|
4
|
+
export declare type BaselineWithVariants<Variant extends Reference> = {
|
|
5
|
+
baseline: Baseline;
|
|
6
|
+
variants: (Variant | VariantRef)[];
|
|
6
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaselineWithVariants } from './BaselineWithVariants';
|
|
2
2
|
import { Distribution } from './Distribution';
|
|
3
|
+
import { Reference } from './Reference';
|
|
3
4
|
export declare type ExperienceType = 'nt_personalization' | 'nt_experiment';
|
|
4
|
-
export declare type ExperienceConfiguration = {
|
|
5
|
+
export declare type ExperienceConfiguration<Variant extends Reference = Reference> = {
|
|
5
6
|
id: string;
|
|
6
7
|
type: ExperienceType;
|
|
7
8
|
audience?: {
|
|
@@ -9,5 +10,5 @@ export declare type ExperienceConfiguration = {
|
|
|
9
10
|
};
|
|
10
11
|
trafficAllocation: number;
|
|
11
12
|
distribution: Distribution[];
|
|
12
|
-
components: BaselineWithVariants[];
|
|
13
|
+
components: BaselineWithVariants<Variant>[];
|
|
13
14
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export type { Reference } from './Reference';
|
|
1
2
|
export type { Baseline } from './Baseline';
|
|
2
|
-
export type {
|
|
3
|
+
export type { VariantRef } from './VariantRef';
|
|
3
4
|
export type { BaselineWithVariants } from './BaselineWithVariants';
|
|
4
5
|
export type { Distribution } from './Distribution';
|
|
5
6
|
export type { ExperienceConfiguration, ExperienceType, } from './ExperienceConfiguration';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Profile } from '@ninetailed/experience.js-shared';
|
|
2
2
|
import { ExperienceConfiguration } from './types';
|
|
3
|
-
export declare const getTrafficRandom: (profile: Profile, experience: ExperienceConfiguration) => number;
|
|
4
|
-
export declare const getDistributionRandom: (profile: Profile, experience: ExperienceConfiguration) => number;
|
|
3
|
+
export declare const getTrafficRandom: (profile: Profile, experience: ExperienceConfiguration<any>) => number;
|
|
4
|
+
export declare const getDistributionRandom: (profile: Profile, experience: ExperienceConfiguration<any>) => number;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TrackComponentProperties, TrackExperienceProperties } from '@ninetailed/experience.js-plugin-analytics';
|
|
2
|
+
import { Logger, PageviewProperties, Profile, Properties, Traits } from '@ninetailed/experience.js-shared';
|
|
3
|
+
import { AnalyticsPlugin, DetachListeners } from 'analytics';
|
|
2
4
|
declare type Loading = {
|
|
3
5
|
status: 'loading';
|
|
4
6
|
profile: null;
|
|
@@ -17,4 +19,38 @@ declare type Fail = {
|
|
|
17
19
|
export declare type ProfileState = {
|
|
18
20
|
from: 'api' | 'hydrated';
|
|
19
21
|
} & (Loading | Success | Fail);
|
|
22
|
+
export declare type OnIsInitializedCallback = () => void;
|
|
23
|
+
export declare type OnIsInitialized = (cb: OnIsInitializedCallback) => void;
|
|
24
|
+
export declare type EventFunctionOptions = {
|
|
25
|
+
plugins?: {
|
|
26
|
+
all: boolean;
|
|
27
|
+
[key: string]: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare type FlushResult = {
|
|
31
|
+
success: boolean;
|
|
32
|
+
};
|
|
33
|
+
export declare type OnProfileChangeCallback = (profile: ProfileState) => void;
|
|
34
|
+
export declare type Page = (data?: Partial<PageviewProperties>, options?: EventFunctionOptions) => Promise<FlushResult>;
|
|
35
|
+
export declare type Track = (event: string, properties?: Properties, options?: EventFunctionOptions) => Promise<FlushResult>;
|
|
36
|
+
export declare type TrackHasSeenComponent = (properties: TrackComponentProperties) => Promise<void>;
|
|
37
|
+
export declare type TrackHasSeenExperience = (properties: TrackExperienceProperties) => Promise<void>;
|
|
38
|
+
export declare type Identify = (uid: string, traits?: Traits, options?: EventFunctionOptions) => Promise<FlushResult>;
|
|
39
|
+
export declare type Reset = () => void;
|
|
40
|
+
export declare type Debug = (enable: boolean) => void;
|
|
41
|
+
export declare type OnProfileChange = (cb: OnProfileChangeCallback) => DetachListeners;
|
|
42
|
+
export interface NinetailedInstance {
|
|
43
|
+
page: Page;
|
|
44
|
+
track: Track;
|
|
45
|
+
trackHasSeenComponent: TrackHasSeenComponent;
|
|
46
|
+
trackHasSeenExperience: TrackHasSeenExperience;
|
|
47
|
+
identify: Identify;
|
|
48
|
+
reset: Reset;
|
|
49
|
+
debug: Debug;
|
|
50
|
+
profileState: ProfileState;
|
|
51
|
+
onProfileChange: OnProfileChange;
|
|
52
|
+
plugins: AnalyticsPlugin[];
|
|
53
|
+
logger: Logger;
|
|
54
|
+
onIsInitialized: OnIsInitialized;
|
|
55
|
+
}
|
|
20
56
|
export {};
|
package/package.json
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "3.0.2-beta.1",
|
|
4
|
+
"module": "./index.js",
|
|
5
|
+
"main": "./index.cjs",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./index.d.ts",
|
|
7
8
|
"dependencies": {
|
|
8
|
-
"@ninetailed/experience.js-shared": "3.0.
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"i18n-iso-countries": "^7.3.0",
|
|
14
|
-
"analytics": "^0.8.0",
|
|
15
|
-
"lodash": "^4.17.21",
|
|
16
|
-
"murmurhash-js": "^1.0.0"
|
|
9
|
+
"@ninetailed/experience.js-shared": "3.0.2-beta.1",
|
|
10
|
+
"analytics": "0.8.1",
|
|
11
|
+
"lodash": "4.17.21",
|
|
12
|
+
"murmurhash-js": "1.0.0",
|
|
13
|
+
"@ninetailed/experience.js-plugin-analytics": "3.0.2-beta.1"
|
|
17
14
|
},
|
|
18
15
|
"peerDependencies": {}
|
|
19
16
|
}
|