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.
- package/dist/kochava.js +9 -7
- 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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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 (
|
|
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:
|
|
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
|
-
//
|
|
474
|
+
// Only here for generic Web integration
|
|
475
|
+
window.kochava = Kochava.create();
|