@ninetailed/experience.js 1.0.0-beta.15 → 1.0.0-beta.19
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 +5 -2
- package/index.umd.js +5 -2
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -3448,6 +3448,7 @@ const ninetailedPlugin = ({
|
|
|
3448
3448
|
locale
|
|
3449
3449
|
}) => {
|
|
3450
3450
|
let isFirstEvent = true;
|
|
3451
|
+
let isInitialized = false;
|
|
3451
3452
|
const apiClient = new NinetailedApiClient({
|
|
3452
3453
|
clientId,
|
|
3453
3454
|
environment,
|
|
@@ -3485,7 +3486,7 @@ const ninetailedPlugin = ({
|
|
|
3485
3486
|
options: {
|
|
3486
3487
|
locale: locale || 'en'
|
|
3487
3488
|
},
|
|
3488
|
-
sessions: cache
|
|
3489
|
+
sessions: get$2(cache, 'sessions', [])
|
|
3489
3490
|
});
|
|
3490
3491
|
log('Profile from api: ', profile);
|
|
3491
3492
|
const updatedCache = set({
|
|
@@ -3564,6 +3565,8 @@ const ninetailedPlugin = ({
|
|
|
3564
3565
|
id: anonymousId
|
|
3565
3566
|
}));
|
|
3566
3567
|
}
|
|
3568
|
+
|
|
3569
|
+
isInitialized = true;
|
|
3567
3570
|
},
|
|
3568
3571
|
page: ({
|
|
3569
3572
|
payload,
|
|
@@ -3616,7 +3619,7 @@ const ninetailedPlugin = ({
|
|
|
3616
3619
|
}), instance);
|
|
3617
3620
|
}),
|
|
3618
3621
|
loaded: () => {
|
|
3619
|
-
return
|
|
3622
|
+
return isInitialized;
|
|
3620
3623
|
},
|
|
3621
3624
|
methods: {
|
|
3622
3625
|
reset: (...args) => __awaiter(void 0, void 0, void 0, function* () {
|
package/index.umd.js
CHANGED
|
@@ -3553,6 +3553,7 @@
|
|
|
3553
3553
|
profile = _a.profile,
|
|
3554
3554
|
locale = _a.locale;
|
|
3555
3555
|
var isFirstEvent = true;
|
|
3556
|
+
var isInitialized = false;
|
|
3556
3557
|
var apiClient = new NinetailedApiClient({
|
|
3557
3558
|
clientId: clientId,
|
|
3558
3559
|
environment: environment,
|
|
@@ -3598,7 +3599,7 @@
|
|
|
3598
3599
|
options: {
|
|
3599
3600
|
locale: locale || 'en'
|
|
3600
3601
|
},
|
|
3601
|
-
sessions: cache
|
|
3602
|
+
sessions: get__default["default"](cache, 'sessions', [])
|
|
3602
3603
|
})];
|
|
3603
3604
|
|
|
3604
3605
|
case 2:
|
|
@@ -3702,6 +3703,8 @@
|
|
|
3702
3703
|
id: anonymousId
|
|
3703
3704
|
}));
|
|
3704
3705
|
}
|
|
3706
|
+
|
|
3707
|
+
isInitialized = true;
|
|
3705
3708
|
},
|
|
3706
3709
|
page: function (_a) {
|
|
3707
3710
|
var payload = _a.payload,
|
|
@@ -3802,7 +3805,7 @@
|
|
|
3802
3805
|
});
|
|
3803
3806
|
},
|
|
3804
3807
|
loaded: function () {
|
|
3805
|
-
return
|
|
3808
|
+
return isInitialized;
|
|
3806
3809
|
},
|
|
3807
3810
|
methods: {
|
|
3808
3811
|
reset: function () {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.19",
|
|
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": "1.0.0-beta.
|
|
9
|
+
"@ninetailed/experience.js-shared": "1.0.0-beta.19",
|
|
10
10
|
"uuid": "^8.3.2",
|
|
11
11
|
"ts-toolbelt": "^9.6.0",
|
|
12
12
|
"locale-enum": "^1.1.1",
|