@mparticle/web-rokt-kit 1.9.0 → 1.10.0

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.
@@ -439,14 +439,20 @@ var constructor = function () {
439
439
  function isPartnerInLocalLauncherTestGroup() {
440
440
  return (
441
441
  window.mParticle.config &&
442
- window.mParticle.config.isLocalLauncherEnabled
442
+ window.mParticle.config.isLocalLauncherEnabled &&
443
+ _isAssignedToSampleGroup()
443
444
  );
444
445
  }
446
+
447
+ function _isAssignedToSampleGroup() {
448
+ var LOCAL_LAUNCHER_TEST_GROUP_THRESHOLD = 0.5;
449
+ return Math.random() > LOCAL_LAUNCHER_TEST_GROUP_THRESHOLD;
450
+ }
445
451
  };
446
452
 
447
453
  function generateIntegrationName(customIntegrationName) {
448
454
  var coreSdkVersion = window.mParticle.getVersion();
449
- var kitVersion = "1.9.0";
455
+ var kitVersion = "1.10.0";
450
456
  var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
451
457
 
452
458
  if (customIntegrationName) {
@@ -438,14 +438,20 @@ var RoktKit = (function (exports) {
438
438
  function isPartnerInLocalLauncherTestGroup() {
439
439
  return (
440
440
  window.mParticle.config &&
441
- window.mParticle.config.isLocalLauncherEnabled
441
+ window.mParticle.config.isLocalLauncherEnabled &&
442
+ _isAssignedToSampleGroup()
442
443
  );
443
444
  }
445
+
446
+ function _isAssignedToSampleGroup() {
447
+ var LOCAL_LAUNCHER_TEST_GROUP_THRESHOLD = 0.5;
448
+ return Math.random() > LOCAL_LAUNCHER_TEST_GROUP_THRESHOLD;
449
+ }
444
450
  };
445
451
 
446
452
  function generateIntegrationName(customIntegrationName) {
447
453
  var coreSdkVersion = window.mParticle.getVersion();
448
- var kitVersion = "1.9.0";
454
+ var kitVersion = "1.10.0";
449
455
  var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
450
456
 
451
457
  if (customIntegrationName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/web-rokt-kit",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "mParticle integration kit for Rokt",
5
5
  "main": "dist/Rokt-Kit.common.js",
6
6
  "files": [