@pendo/agent 2.290.0 → 2.290.1
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/dom.esm.js +1 -1
- package/dist/pendo.module.js +18 -39
- package/dist/pendo.module.min.js +2 -2
- package/package.json +1 -1
package/dist/dom.esm.js
CHANGED
package/dist/pendo.module.js
CHANGED
|
@@ -3903,8 +3903,8 @@ var SERVER = '';
|
|
|
3903
3903
|
var ASSET_HOST = '';
|
|
3904
3904
|
var ASSET_PATH = '';
|
|
3905
3905
|
var DESIGNER_SERVER = '';
|
|
3906
|
-
var VERSION = '2.290.
|
|
3907
|
-
var PACKAGE_VERSION = '2.290.
|
|
3906
|
+
var VERSION = '2.290.1_';
|
|
3907
|
+
var PACKAGE_VERSION = '2.290.1';
|
|
3908
3908
|
var LOADER = 'xhr';
|
|
3909
3909
|
/* eslint-enable agent-eslint-rules/no-gulp-env-references */
|
|
3910
3910
|
/**
|
|
@@ -47236,28 +47236,18 @@ class SessionRecorder {
|
|
|
47236
47236
|
clearTimeout(this._changeIdentityTimer);
|
|
47237
47237
|
this.visitorId = options.visitor.id;
|
|
47238
47238
|
this.accountId = options.account.id;
|
|
47239
|
-
return this.
|
|
47240
|
-
|
|
47241
|
-
|
|
47242
|
-
checkVisitorEligibility(continuationCallback) {
|
|
47243
|
-
if (!this.isRecording() && this.pendo._.isNull(this.visitorId) && this.pendo._.isNull(this.accountId))
|
|
47244
|
-
return;
|
|
47245
|
-
return this.fetchVisitorConfig().then(visitorConfig => {
|
|
47246
|
-
if ((!visitorConfig || !visitorConfig.enable) && this.isRecording()) {
|
|
47247
|
-
this.stop();
|
|
47248
|
-
}
|
|
47249
|
-
if (visitorConfig && visitorConfig.enable && this.isRecording()) {
|
|
47250
|
-
if (continuationCallback) {
|
|
47251
|
-
continuationCallback.call(this);
|
|
47239
|
+
return this.fetchVisitorConfig().then(visitorConfig => {
|
|
47240
|
+
if ((!visitorConfig || !visitorConfig.enable) && this.isRecording()) {
|
|
47241
|
+
this.stop();
|
|
47252
47242
|
}
|
|
47253
|
-
|
|
47254
|
-
|
|
47255
|
-
|
|
47256
|
-
}
|
|
47257
|
-
|
|
47258
|
-
|
|
47259
|
-
|
|
47260
|
-
}
|
|
47243
|
+
else if (visitorConfig && visitorConfig.enable && !this.isRecording()) {
|
|
47244
|
+
this._startRecordingForVisitor(visitorConfig);
|
|
47245
|
+
}
|
|
47246
|
+
}).catch((e) => {
|
|
47247
|
+
this.api.log.critical('Failed to re-fetch recording config', { error: e });
|
|
47248
|
+
this.logStopReason('VISITOR_CONFIG_ERROR');
|
|
47249
|
+
});
|
|
47250
|
+
}
|
|
47261
47251
|
}
|
|
47262
47252
|
snapshot() {
|
|
47263
47253
|
if (!this.isRecording())
|
|
@@ -47519,12 +47509,9 @@ class SessionRecorder {
|
|
|
47519
47509
|
this.storeLastUserInteractionEventInformation(event, this.visitorId, this.accountId, skipUserInteractionCheck);
|
|
47520
47510
|
const inactivityDuration = this.pendo._.get(this.visitorConfig, 'inactivityDuration', THIRTY_MINUTES);
|
|
47521
47511
|
if (prevLastEmitTime && event.timestamp - prevLastEmitTime > inactivityDuration && !isSnapshot && !isMeta) {
|
|
47522
|
-
|
|
47523
|
-
|
|
47524
|
-
|
|
47525
|
-
this.snapshot();
|
|
47526
|
-
};
|
|
47527
|
-
this.checkVisitorEligibility(continuationCallback);
|
|
47512
|
+
this.send();
|
|
47513
|
+
this.clearSessionInfo();
|
|
47514
|
+
this.snapshot();
|
|
47528
47515
|
return; // ignore this current event, since we're about to get a fresh snapshot
|
|
47529
47516
|
}
|
|
47530
47517
|
/*
|
|
@@ -47560,16 +47547,8 @@ class SessionRecorder {
|
|
|
47560
47547
|
const exceedsEventFreq = this.eventsSinceLastKeyFrame >= this.pendo._.get(this.visitorConfig, 'keyframeEventFrequency', 4548); // Defaults determined by BE originally, shouldn't really ever be used
|
|
47561
47548
|
const exceedsRecordingSizeLimit = this.currentRecordingSize >= this.pendo._.get(this.visitorConfig, 'recordingSizeLimit', ONE_HUNDRED_MB_IN_BYTES);
|
|
47562
47549
|
if (exceeds24Hours || (exceedsTimeFreq && exceedsEventFreq) || exceedsRecordingSizeLimit) {
|
|
47563
|
-
|
|
47564
|
-
|
|
47565
|
-
this.snapshot();
|
|
47566
|
-
};
|
|
47567
|
-
if (exceeds24Hours) {
|
|
47568
|
-
this.checkVisitorEligibility(continuationCallback);
|
|
47569
|
-
}
|
|
47570
|
-
else {
|
|
47571
|
-
continuationCallback.call(this);
|
|
47572
|
-
}
|
|
47550
|
+
this.currentRecordingSize = 0;
|
|
47551
|
+
this.snapshot();
|
|
47573
47552
|
}
|
|
47574
47553
|
}
|
|
47575
47554
|
}
|