feat(tracker): method to force send all remaining messages

This commit is contained in:
nick-delirium 2023-07-10 14:32:01 +02:00
parent b9b187d684
commit 47bd6eb4e1
2 changed files with 10 additions and 7 deletions

View file

@ -3,6 +3,7 @@
- Option to disable string dictionary `{disableStringDict: true` in Tracker constructor
- Introduced Feature flags api
- Fixed input durations recorded on programmable autofill
- change InputMode from enum to const Object
# 8.1.2

View file

@ -82,16 +82,18 @@ export function getInputLabel(node: TextFieldElement): string {
return normSpaces(label).slice(0, 100)
}
export declare const enum InputMode {
Plain = 0,
Obscured = 1,
Hidden = 2,
}
export const InputMode = {
Plain: 0,
Obscured: 1,
Hidden: 2,
} as const
export type InputModeT = (typeof InputMode)[keyof typeof InputMode]
export interface Options {
obscureInputNumbers: boolean
obscureInputEmails: boolean
defaultInputMode: InputMode
defaultInputMode: InputModeT
obscureInputDates: boolean
}
@ -108,7 +110,7 @@ export default function (app: App, opts: Partial<Options>): void {
function getInputValue(id: number, node: TextFieldElement | HTMLSelectElement) {
let value = node.value
let inputMode: InputMode = options.defaultInputMode
let inputMode: InputModeT = options.defaultInputMode
if (node.type === 'password' || app.sanitizer.isHidden(id)) {
inputMode = InputMode.Hidden