@ninetailed/experience.js 3.0.2-beta.0 → 3.0.2-beta.2
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 +3 -1
- package/index.js +3 -2
- package/lib/analytics/constants.d.ts +1 -0
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -2589,6 +2589,7 @@ const DEBUG_FLAG = '__nt_debug__';
|
|
|
2589
2589
|
const PROFILE_FALLBACK_CACHE = '__nt_profile__';
|
|
2590
2590
|
const PROFILE_CHANGE = 'profile-change';
|
|
2591
2591
|
const PROFILE_RESET = 'profile-reset';
|
|
2592
|
+
const CONSENT = '__nt-consent__';
|
|
2592
2593
|
|
|
2593
2594
|
const PLUGIN_NAME = 'ninetailed';
|
|
2594
2595
|
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
@@ -2746,7 +2747,7 @@ const ninetailedPlugin = ({
|
|
|
2746
2747
|
abort,
|
|
2747
2748
|
payload
|
|
2748
2749
|
}) => {
|
|
2749
|
-
if (![ANONYMOUS_ID, DEBUG_FLAG, PROFILE_FALLBACK_CACHE].includes(payload.key)) {
|
|
2750
|
+
if (![ANONYMOUS_ID, DEBUG_FLAG, PROFILE_FALLBACK_CACHE, CONSENT].includes(payload.key)) {
|
|
2750
2751
|
return abort();
|
|
2751
2752
|
}
|
|
2752
2753
|
return payload;
|
|
@@ -4321,6 +4322,7 @@ const decodeExperienceVariantsMap = encodedExperienceVariantsMap => {
|
|
|
4321
4322
|
};
|
|
4322
4323
|
|
|
4323
4324
|
exports.ANONYMOUS_ID = ANONYMOUS_ID;
|
|
4325
|
+
exports.CONSENT = CONSENT;
|
|
4324
4326
|
exports.DEBUG_FLAG = DEBUG_FLAG;
|
|
4325
4327
|
exports.EXPERIENCE_TRAIT_PREFIX = EXPERIENCE_TRAIT_PREFIX;
|
|
4326
4328
|
exports.LEGACY_ANONYMOUS_ID = LEGACY_ANONYMOUS_ID;
|
package/index.js
CHANGED
|
@@ -2576,6 +2576,7 @@ const DEBUG_FLAG = '__nt_debug__';
|
|
|
2576
2576
|
const PROFILE_FALLBACK_CACHE = '__nt_profile__';
|
|
2577
2577
|
const PROFILE_CHANGE = 'profile-change';
|
|
2578
2578
|
const PROFILE_RESET = 'profile-reset';
|
|
2579
|
+
const CONSENT = '__nt-consent__';
|
|
2579
2580
|
|
|
2580
2581
|
const PLUGIN_NAME = 'ninetailed';
|
|
2581
2582
|
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
@@ -2733,7 +2734,7 @@ const ninetailedPlugin = ({
|
|
|
2733
2734
|
abort,
|
|
2734
2735
|
payload
|
|
2735
2736
|
}) => {
|
|
2736
|
-
if (![ANONYMOUS_ID, DEBUG_FLAG, PROFILE_FALLBACK_CACHE].includes(payload.key)) {
|
|
2737
|
+
if (![ANONYMOUS_ID, DEBUG_FLAG, PROFILE_FALLBACK_CACHE, CONSENT].includes(payload.key)) {
|
|
2737
2738
|
return abort();
|
|
2738
2739
|
}
|
|
2739
2740
|
return payload;
|
|
@@ -4307,4 +4308,4 @@ const decodeExperienceVariantsMap = encodedExperienceVariantsMap => {
|
|
|
4307
4308
|
}), {});
|
|
4308
4309
|
};
|
|
4309
4310
|
|
|
4310
|
-
export { ANONYMOUS_ID, DEBUG_FLAG, EXPERIENCE_TRAIT_PREFIX, LEGACY_ANONYMOUS_ID, Ninetailed, PLUGIN_NAME, PROFILE_CHANGE, PROFILE_FALLBACK_CACHE, PROFILE_RESET, decodeExperienceVariantsMap, isExperienceMatch, ninetailedPlugin, selectActiveExperiments, selectDistribution, selectEligibleExperiences, selectExperience, selectBaselineWithVariants as selectExperienceBaselineWithVariants, selectVariant as selectExperienceVariant, selectVariants as selectExperienceVariants, selectHasVariants as selectHasExperienceVariants, selectVariant$1 as selectVariant };
|
|
4311
|
+
export { ANONYMOUS_ID, CONSENT, DEBUG_FLAG, EXPERIENCE_TRAIT_PREFIX, LEGACY_ANONYMOUS_ID, Ninetailed, PLUGIN_NAME, PROFILE_CHANGE, PROFILE_FALLBACK_CACHE, PROFILE_RESET, decodeExperienceVariantsMap, isExperienceMatch, ninetailedPlugin, selectActiveExperiments, selectDistribution, selectEligibleExperiences, selectExperience, selectBaselineWithVariants as selectExperienceBaselineWithVariants, selectVariant as selectExperienceVariant, selectVariants as selectExperienceVariants, selectHasVariants as selectHasExperienceVariants, selectVariant$1 as selectVariant };
|
|
@@ -4,3 +4,4 @@ export declare const DEBUG_FLAG = "__nt_debug__";
|
|
|
4
4
|
export declare const PROFILE_FALLBACK_CACHE = "__nt_profile__";
|
|
5
5
|
export declare const PROFILE_CHANGE = "profile-change";
|
|
6
6
|
export declare const PROFILE_RESET = "profile-reset";
|
|
7
|
+
export declare const CONSENT = "__nt-consent__";
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "3.0.2-beta.
|
|
3
|
+
"version": "3.0.2-beta.2",
|
|
4
4
|
"module": "./index.js",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@ninetailed/experience.js-shared": "3.0.2-beta.
|
|
9
|
+
"@ninetailed/experience.js-shared": "3.0.2-beta.2",
|
|
10
10
|
"analytics": "0.8.1",
|
|
11
11
|
"lodash": "4.17.21",
|
|
12
12
|
"murmurhash-js": "1.0.0",
|
|
13
|
-
"@ninetailed/experience.js-plugin-analytics": "3.0.2-beta.
|
|
13
|
+
"@ninetailed/experience.js-plugin-analytics": "3.0.2-beta.2"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {}
|
|
16
16
|
}
|