@threekit/analytics
Advanced tools
Comparing version 0.1.100 to 0.1.101
@@ -0,2 +1,2 @@ | ||
export * from './models/UCB.js'; | ||
export * from './sessions/Session.js'; | ||
export * from './models/UCB.js'; |
@@ -1,4 +0,4 @@ | ||
export * from './sessions/Session.js'; | ||
//export * from './models/LinUCB.js'; | ||
export * from './models/UCB.js'; | ||
export * from './sessions/Session.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -25,7 +25,5 @@ import { ARStage, type AssetOption, Configuration, type Context, OptionInteractionType, OptionsType, PlayerType, type QuizOption, ShareType, type ThreekitAuthProps, type ValueOption, VisualInteractionType } from '@threekit/rest-api'; | ||
private dwellStartTime; | ||
private sessionStart; | ||
private performance; | ||
private pageLoadTime; | ||
log: boolean; | ||
private isEnded; | ||
constructor({ auth, sessionId, userId, experienceName, experienceVersion, customUserId }: SessionProps); | ||
@@ -32,0 +30,0 @@ private context; |
@@ -16,7 +16,5 @@ import { errorToString } from '@threekit/diagnostics'; | ||
dwellStartTime = {}; | ||
sessionStart; | ||
performance; | ||
pageLoadTime = 0; | ||
log = false; | ||
isEnded = false; | ||
constructor({ auth, sessionId = uuid.v4(), userId = uuid.v4(), experienceName, experienceVersion, customUserId }) { | ||
@@ -33,13 +31,2 @@ this.auth = auth; | ||
this.pageLoadTime = navigationTiming.startTime / 1000; | ||
this.sessionStart = new Date(); | ||
this.tryCatchBlock(() => { | ||
if (window !== undefined) { | ||
// add beforeunload listener | ||
window.addEventListener('beforeunload', () => { | ||
if (!this.isEnded) { | ||
this.isEnded = true; | ||
} | ||
}); | ||
} | ||
}); | ||
} | ||
@@ -46,0 +33,0 @@ context = {}; |
{ | ||
"name": "@threekit/analytics", | ||
"version": "0.1.100", | ||
"version": "0.1.101", | ||
"type": "module", | ||
@@ -9,7 +9,7 @@ "main": "dist/index.js", | ||
"@threekit/diagnostics": "*", | ||
"@threekit/rest-api": "^0.1.100", | ||
"@threekit/rest-api": "^0.1.101", | ||
"uuid": "^9.0.1" | ||
}, | ||
"sideEffects": false, | ||
"gitHead": "f727af2db12be01e1e339eff3128e7f91aac0c6b" | ||
"gitHead": "213387499edbebceac21b421cb8821a0898f8302" | ||
} |
@@ -1,3 +0,3 @@ | ||
export * from './sessions/Session.js'; | ||
//export * from './models/LinUCB.js'; | ||
export * from './models/UCB.js'; | ||
export * from './sessions/Session.js'; |
@@ -65,3 +65,2 @@ import { errorToString } from '@threekit/diagnostics'; | ||
private dwellStartTime: Record<string, Date> = {}; | ||
private sessionStart: Date; | ||
private performance: Performance; | ||
@@ -71,3 +70,2 @@ private pageLoadTime = 0; | ||
public log = false; | ||
private isEnded = false; | ||
@@ -96,15 +94,2 @@ constructor({ | ||
this.pageLoadTime = navigationTiming.startTime / 1000; | ||
this.sessionStart = new Date(); | ||
this.tryCatchBlock(() => { | ||
if (window !== undefined) { | ||
// add beforeunload listener | ||
window.addEventListener('beforeunload', () => { | ||
if (!this.isEnded) { | ||
this.isEnded = true; | ||
} | ||
}); | ||
} | ||
}); | ||
} | ||
@@ -111,0 +96,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
190641
1955
Updated@threekit/rest-api@^0.1.101