@amplitude/session-replay-browser
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -22,5 +22,8 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
setSessionId(sessionId: number): void; | ||
getSessionRecordingProperties(): { | ||
getSessionReplayProperties(): { | ||
[x: string]: boolean; | ||
}; | ||
getSessionRecordingProperties: () => { | ||
[x: string]: boolean; | ||
}; | ||
blurListener: () => void; | ||
@@ -27,0 +30,0 @@ focusListener: () => void; |
@@ -28,2 +28,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
this.timeAtLastSend = null; | ||
this.getSessionRecordingProperties = function () { | ||
_this.loggerProvider.warn('Please use getSessionReplayProperties instead of getSessionRecordingProperties.'); | ||
return _this.getSessionReplayProperties(); | ||
}; | ||
this.blurListener = function () { | ||
@@ -95,3 +99,3 @@ _this.stopRecordingAndSendEvents(); | ||
}; | ||
SessionReplay.prototype.getSessionRecordingProperties = function () { | ||
SessionReplay.prototype.getSessionReplayProperties = function () { | ||
var _a; | ||
@@ -98,0 +102,0 @@ if (!this.config) { |
@@ -22,5 +22,8 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
setSessionId(sessionId: number): void; | ||
getSessionRecordingProperties(): { | ||
getSessionReplayProperties(): { | ||
[x: string]: boolean; | ||
}; | ||
getSessionRecordingProperties: () => { | ||
[x: string]: boolean; | ||
}; | ||
blurListener: () => void; | ||
@@ -27,0 +30,0 @@ focusListener: () => void; |
@@ -26,2 +26,6 @@ import { __assign, __awaiter, __generator, __read } from "tslib"; | ||
this.timeAtLastSend = null; | ||
this.getSessionRecordingProperties = function () { | ||
_this.loggerProvider.warn('Please use getSessionReplayProperties instead of getSessionRecordingProperties.'); | ||
return _this.getSessionReplayProperties(); | ||
}; | ||
this.blurListener = function () { | ||
@@ -93,3 +97,3 @@ _this.stopRecordingAndSendEvents(); | ||
}; | ||
SessionReplay.prototype.getSessionRecordingProperties = function () { | ||
SessionReplay.prototype.getSessionReplayProperties = function () { | ||
var _a; | ||
@@ -96,0 +100,0 @@ if (!this.config) { |
@@ -22,5 +22,8 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
setSessionId(sessionId: number): void; | ||
getSessionRecordingProperties(): { | ||
getSessionReplayProperties(): { | ||
[x: string]: boolean; | ||
}; | ||
getSessionRecordingProperties: () => { | ||
[x: string]: boolean; | ||
}; | ||
blurListener: () => void; | ||
@@ -27,0 +30,0 @@ focusListener: () => void; |
{ | ||
"name": "@amplitude/session-replay-browser", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -60,3 +60,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "f361d34b9158827f298df4486d2f5110af1a880e" | ||
"gitHead": "13f2829fcd08d72896544607aa155eec3e0f0ea8" | ||
} |
@@ -53,6 +53,6 @@ <p align="center"> | ||
```typescript | ||
const sessionRecordingProperties = sessionReplay.getSessionRecordingProperties(); | ||
const sessionReplayProperties = sessionReplay.getSessionReplayProperties(); | ||
track(EVENT_NAME, { | ||
...eventProperties, | ||
...sessionRecordingProperties | ||
...sessionReplayProperties | ||
}) | ||
@@ -59,0 +59,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
487185
2673