@ninetailed/experience.js 2.0.0-beta.26 → 2.0.0-beta.27
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.esm.js +15 -1
- package/index.umd.js +14 -0
- package/lib/analytics/index.d.ts +1 -0
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -2202,6 +2202,11 @@ const set = (cache, {
|
|
|
2202
2202
|
instance.storage.setItem(NINETAILED_CACHE_KEY, cache);
|
|
2203
2203
|
return cache;
|
|
2204
2204
|
};
|
|
2205
|
+
const remove = ({
|
|
2206
|
+
instance
|
|
2207
|
+
}) => {
|
|
2208
|
+
instance.storage.removeItem(NINETAILED_CACHE_KEY);
|
|
2209
|
+
};
|
|
2205
2210
|
const reset = ({
|
|
2206
2211
|
instance
|
|
2207
2212
|
}) => {
|
|
@@ -2210,6 +2215,15 @@ const reset = ({
|
|
|
2210
2215
|
});
|
|
2211
2216
|
};
|
|
2212
2217
|
|
|
2218
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
2219
|
+
__proto__: null,
|
|
2220
|
+
initialize: initialize,
|
|
2221
|
+
get: get,
|
|
2222
|
+
set: set,
|
|
2223
|
+
remove: remove,
|
|
2224
|
+
reset: reset
|
|
2225
|
+
});
|
|
2226
|
+
|
|
2213
2227
|
const buildClientLocale = () => navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language;
|
|
2214
2228
|
|
|
2215
2229
|
const buildClientNinetailedRequestContext = () => ({
|
|
@@ -4324,4 +4338,4 @@ const decodeExperienceVariantsMap = encodedExperienceVariantsMap => {
|
|
|
4324
4338
|
}), {});
|
|
4325
4339
|
};
|
|
4326
4340
|
|
|
4327
|
-
export { NINETAILED_TRACKER_EVENTS, Ninetailed, PLUGIN_NAME, decodeExperienceVariantsMap, isExperienceMatch, ninetailedPlugin, selectActiveExperiments, selectDistribution, selectEligibleExperiences, selectExperience, selectBaselineWithVariants as selectExperienceBaselineWithVariants, selectVariant as selectExperienceVariant, selectVariants as selectExperienceVariants, selectHasVariants as selectHasExperienceVariants, selectVariant$1 as selectVariant };
|
|
4341
|
+
export { index as Cache, NINETAILED_TRACKER_EVENTS, Ninetailed, PLUGIN_NAME, decodeExperienceVariantsMap, isExperienceMatch, ninetailedPlugin, selectActiveExperiments, selectDistribution, selectEligibleExperiences, selectExperience, selectBaselineWithVariants as selectExperienceBaselineWithVariants, selectVariant as selectExperienceVariant, selectVariants as selectExperienceVariants, selectHasVariants as selectHasExperienceVariants, selectVariant$1 as selectVariant };
|
package/index.umd.js
CHANGED
|
@@ -2277,6 +2277,10 @@
|
|
|
2277
2277
|
instance.storage.setItem(NINETAILED_CACHE_KEY, cache);
|
|
2278
2278
|
return cache;
|
|
2279
2279
|
};
|
|
2280
|
+
var remove = function remove(_a) {
|
|
2281
|
+
var instance = _a.instance;
|
|
2282
|
+
instance.storage.removeItem(NINETAILED_CACHE_KEY);
|
|
2283
|
+
};
|
|
2280
2284
|
var reset = function reset(_a) {
|
|
2281
2285
|
var instance = _a.instance;
|
|
2282
2286
|
return initialize({
|
|
@@ -2284,6 +2288,15 @@
|
|
|
2284
2288
|
});
|
|
2285
2289
|
};
|
|
2286
2290
|
|
|
2291
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
2292
|
+
__proto__: null,
|
|
2293
|
+
initialize: initialize,
|
|
2294
|
+
get: get,
|
|
2295
|
+
set: set,
|
|
2296
|
+
remove: remove,
|
|
2297
|
+
reset: reset
|
|
2298
|
+
});
|
|
2299
|
+
|
|
2287
2300
|
var buildClientLocale = function buildClientLocale() {
|
|
2288
2301
|
return navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language;
|
|
2289
2302
|
};
|
|
@@ -4255,6 +4268,7 @@
|
|
|
4255
4268
|
}, {});
|
|
4256
4269
|
};
|
|
4257
4270
|
|
|
4271
|
+
exports.Cache = index;
|
|
4258
4272
|
exports.NINETAILED_TRACKER_EVENTS = NINETAILED_TRACKER_EVENTS;
|
|
4259
4273
|
exports.Ninetailed = Ninetailed;
|
|
4260
4274
|
exports.PLUGIN_NAME = PLUGIN_NAME;
|
package/lib/analytics/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.27",
|
|
4
4
|
"main": "./index.umd.js",
|
|
5
5
|
"module": "./index.esm.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"analytics": "^0.8.0",
|
|
9
|
-
"@ninetailed/experience.js-shared": "2.0.0-beta.
|
|
9
|
+
"@ninetailed/experience.js-shared": "2.0.0-beta.27",
|
|
10
10
|
"uuid": "^8.3.2",
|
|
11
11
|
"ts-toolbelt": "^9.6.0",
|
|
12
12
|
"locale-enum": "^1.1.1",
|