kv-test-lib 1.0.24 → 1.0.25

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.
Files changed (2) hide show
  1. package/dist/kochava.js +9 -7
  2. package/package.json +1 -2
package/dist/kochava.js CHANGED
@@ -38,22 +38,22 @@ export class Kochava {
38
38
  }
39
39
  static createForNode() {
40
40
  const kochava = new Kochava();
41
- kochava.executeAdvancedInstruction("wrapper", JSON.stringify({ name: "Node", version: "3.0.0" }));
41
+ kochava.executeAdvancedInstruction("wrapper", JSON.stringify({ name: "Node", version: "" }));
42
42
  return kochava;
43
43
  }
44
44
  static createForReact() {
45
45
  const kochava = new Kochava();
46
- kochava.executeAdvancedInstruction("wrapper", JSON.stringify({ name: "React", version: "3.0.0" }));
46
+ kochava.executeAdvancedInstruction("wrapper", JSON.stringify({ name: "React", version: "" }));
47
47
  return kochava;
48
48
  }
49
49
  static createForVue() {
50
50
  const kochava = new Kochava();
51
- kochava.executeAdvancedInstruction("wrapper", JSON.stringify({ name: "Vue", version: "3.0.0" }));
51
+ kochava.executeAdvancedInstruction("wrapper", JSON.stringify({ name: "Vue", version: "" }));
52
52
  return kochava;
53
53
  }
54
54
  static createForAngular() {
55
55
  const kochava = new Kochava();
56
- kochava.executeAdvancedInstruction("wrapper", JSON.stringify({ name: "Angular", version: "3.0.0" }));
56
+ kochava.executeAdvancedInstruction("wrapper", JSON.stringify({ name: "Angular", version: "1.0.0" }));
57
57
  return kochava;
58
58
  }
59
59
  /*
@@ -261,7 +261,8 @@ export class Kochava {
261
261
  const idLink = {};
262
262
  idLink[name] = identifier;
263
263
  addPersistedIdLinks(name, identifier, __classPrivateFieldGet(this, _Kochava_instance, "f").useCookies);
264
- if (__classPrivateFieldGet(this, _Kochava_instance, "f").installStarted || __classPrivateFieldGet(this, _Kochava_instance, "f").installDone) {
264
+ // if (this.#instance.installStarted || this.#instance.installDone) {
265
+ if (localStorage.getItem("com.kochava.tracker.InstallSentDate")) {
265
266
  // it will be sent standalone
266
267
  __classPrivateFieldGet(this, _Kochava_jobQueue, "f").enqueueIdLink(__classPrivateFieldGet(this, _Kochava_instance, "f"), idLink);
267
268
  }
@@ -362,7 +363,7 @@ _Kochava_instance = new WeakMap(), _Kochava_jobQueue = new WeakMap(), _Kochava_i
362
363
  __classPrivateFieldGet(this, _Kochava_instance, "f").disableAutoPage = __classPrivateFieldGet(this, _Kochava_instance, "f").disableAutoPage || false;
363
364
  __classPrivateFieldGet(this, _Kochava_instance, "f").useCookies = __classPrivateFieldGet(this, _Kochava_instance, "f").useCookies || false;
364
365
  __classPrivateFieldGet(this, _Kochava_instance, "f").version = __classPrivateFieldGet(this, _Kochava_instance, "f").version || "WebTracker 3.0.0";
365
- __classPrivateFieldGet(this, _Kochava_instance, "f").buildDate = "kbd: 3/31/2022, 10:53:41 AM";
366
+ __classPrivateFieldGet(this, _Kochava_instance, "f").buildDate = "kbd: 6/10/2022, 10:52:40 AM";
366
367
  __classPrivateFieldGet(this, _Kochava_instance, "f").kochavaSession = utils.uuidv4().substring(0, 5);
367
368
  __classPrivateFieldGet(this, _Kochava_instance, "f").startTimeMS = utils.getCurrTimeMS();
368
369
  __classPrivateFieldGet(this, _Kochava_instance, "f").retryWaterfall = [7, 30, 300, 1800];
@@ -470,4 +471,5 @@ _Kochava_instance = new WeakMap(), _Kochava_jobQueue = new WeakMap(), _Kochava_i
470
471
  Install.onSuccess(__classPrivateFieldGet(this, _Kochava_instance, "f"));
471
472
  updatePersistedValue(PersistKey.IdLinkQueue, JSON.stringify(__classPrivateFieldGet(this, _Kochava_jobQueue, "f").idLinkQueue), false);
472
473
  };
473
- // window.kochava = new Kochava();
474
+ // Only here for generic Web integration
475
+ window.kochava = Kochava.create();
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
- "type": "module",
3
2
  "name": "kv-test-lib",
4
- "version": "1.0.24",
3
+ "version": "1.0.25",
5
4
  "main": "dist/kochava.js",
6
5
  "files": [
7
6
  "dist/"