@ninetailed/experience.js 3.7.0-beta.0 → 4.0.0-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 +0 -1
- package/index.js +0 -1
- package/lib/Ninetailed.d.ts +1 -0
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -4084,7 +4084,6 @@ const isExperienceMatch = ({
|
|
|
4084
4084
|
profile
|
|
4085
4085
|
}) => {
|
|
4086
4086
|
const trafficRandom = getTrafficRandom(profile, experience);
|
|
4087
|
-
/*console.log('has no audience', experience.id, !experience.audience);*/
|
|
4088
4087
|
experience_jsShared.logger.info(`The traffic random factor for experience ${experience.id} is ${trafficRandom}. It's traffic allocation is set to ${experience.trafficAllocation}.`);
|
|
4089
4088
|
const isInTrafficRange = experience.trafficAllocation > trafficRandom;
|
|
4090
4089
|
const matchesAudience = !experience.audience || includes__default["default"](profile.audiences, experience.audience.id);
|
package/index.js
CHANGED
|
@@ -4071,7 +4071,6 @@ const isExperienceMatch = ({
|
|
|
4071
4071
|
profile
|
|
4072
4072
|
}) => {
|
|
4073
4073
|
const trafficRandom = getTrafficRandom(profile, experience);
|
|
4074
|
-
/*console.log('has no audience', experience.id, !experience.audience);*/
|
|
4075
4074
|
logger.info(`The traffic random factor for experience ${experience.id} is ${trafficRandom}. It's traffic allocation is set to ${experience.trafficAllocation}.`);
|
|
4076
4075
|
const isInTrafficRange = experience.trafficAllocation > trafficRandom;
|
|
4077
4076
|
const matchesAudience = !experience.audience || includes(profile.audiences, experience.audience.id);
|
package/lib/Ninetailed.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.1",
|
|
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": "
|
|
9
|
+
"@ninetailed/experience.js-shared": "4.0.0-beta.1",
|
|
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": "
|
|
13
|
+
"@ninetailed/experience.js-plugin-analytics": "4.0.0-beta.1"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {}
|
|
16
16
|
}
|