@protontech/autofill 0.0.35059265 → 0.0.36026908

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.
Files changed (68) hide show
  1. package/features/feature.d.ts +13 -2
  2. package/features/feature.js +37 -15
  3. package/features/v1/abstract.field.d.ts +8406 -435
  4. package/features/v1/abstract.field.js +24 -24
  5. package/features/v1/abstract.form.d.ts +3428 -14
  6. package/features/v1/abstract.form.js +197 -197
  7. package/features/v1/field-predicates.d.ts +8 -0
  8. package/features/v1/field-predicates.js +42 -0
  9. package/features/v1/field.email.d.ts +3445 -24
  10. package/features/v1/field.email.js +7 -7
  11. package/features/v1/field.otp.d.ts +71234 -56
  12. package/features/v1/field.otp.js +42 -42
  13. package/features/v1/field.password.d.ts +99230 -64
  14. package/features/v1/field.password.js +42 -42
  15. package/features/v1/field.username-hidden.d.ts +932 -24
  16. package/features/v1/field.username-hidden.js +7 -7
  17. package/features/v1/field.username.d.ts +42410 -28
  18. package/features/v1/field.username.js +11 -11
  19. package/features/v1/fields.sorted.gen.d.ts +1441 -0
  20. package/features/v1/fields.sorted.gen.js +344 -0
  21. package/features/v1/forms.sorted.gen.d.ts +734 -0
  22. package/features/v1/forms.sorted.gen.js +334 -0
  23. package/features/v1/index.d.ts +5305 -12
  24. package/features/v1/index.js +7 -11
  25. package/models/perceptron/params/email-model.json +4 -4
  26. package/models/perceptron/params/login-model.json +97 -97
  27. package/models/perceptron/params/new-password-model.json +16 -16
  28. package/models/perceptron/params/otp-model.json +29 -29
  29. package/models/perceptron/params/password-change-model.json +69 -69
  30. package/models/perceptron/params/password-model.json +18 -18
  31. package/models/perceptron/params/recovery-model.json +92 -92
  32. package/models/perceptron/params/register-model.json +90 -90
  33. package/models/perceptron/params/username-hidden-model.json +7 -7
  34. package/models/perceptron/params/username-model.json +3 -3
  35. package/models/random_forest/params/otp-model.json +306 -366
  36. package/package.json +3 -3
  37. package/rules/v1/index.js +5 -5
  38. package/types/index.d.ts +2 -1
  39. package/utils/credit-card.d.ts +0 -1
  40. package/utils/credit-card.js +2 -9
  41. package/utils/fathom.d.ts +1 -2
  42. package/utils/fathom.js +2 -2
  43. package/utils/field.d.ts +4 -5
  44. package/utils/field.js +6 -17
  45. package/utils/identity.d.ts +0 -2
  46. package/utils/identity.js +2 -23
  47. package/dictionary/generate.d.ts +0 -1
  48. package/dictionary/generate.js +0 -51
  49. package/features/feature.spec.d.ts +0 -1
  50. package/features/feature.spec.js +0 -59
  51. package/features/registry.d.ts +0 -3
  52. package/features/registry.js +0 -9
  53. package/features/sorted.gen.d.ts +0 -14
  54. package/features/sorted.gen.js +0 -22
  55. package/features/v1/index.spec.d.ts +0 -1
  56. package/features/v1/index.spec.js +0 -30
  57. package/scripts/gen-sorted-features.d.ts +0 -1
  58. package/scripts/gen-sorted-features.js +0 -32
  59. package/utils/credit-card.samples.spec.d.ts +0 -1
  60. package/utils/credit-card.samples.spec.js +0 -452
  61. package/utils/credit-card.spec.d.ts +0 -1
  62. package/utils/credit-card.spec.js +0 -296
  63. package/utils/identity.samples.spec.d.ts +0 -1
  64. package/utils/identity.samples.spec.js +0 -28
  65. package/utils/re.spec.d.ts +0 -1
  66. package/utils/re.spec.js +0 -62
  67. package/utils/shadow-dom.spec.d.ts +0 -1
  68. package/utils/shadow-dom.spec.js +0 -215
@@ -1,17 +1,17 @@
1
1
  {
2
- "bias": 3.1635043621063232,
2
+ "bias": 3.1635046005249023,
3
3
  "coeffs": [
4
4
  [
5
5
  "password--attrConfirm",
6
- -2.803439140319824
6
+ -2.803438901901245
7
7
  ],
8
8
  [
9
9
  "password--attrCreate",
10
- -1.1989846229553223
10
+ -1.1989847421646118
11
11
  ],
12
12
  [
13
13
  "password--attrCurrent",
14
- 2.4272873401641846
14
+ 2.4272871017456055
15
15
  ],
16
16
  [
17
17
  "password--attrReset",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  [
33
33
  "password--autocompleteOff",
34
- -1.9959003925323486
34
+ -1.9959005117416382
35
35
  ],
36
36
  [
37
37
  "password--fieldCC",
@@ -55,7 +55,7 @@
55
55
  ],
56
56
  [
57
57
  "password--labelConfirm",
58
- -1.5682286024093628
58
+ -1.5682287216186523
59
59
  ],
60
60
  [
61
61
  "password--labelCreate",
@@ -63,7 +63,7 @@
63
63
  ],
64
64
  [
65
65
  "password--labelCurrent",
66
- 2.943845272064209
66
+ 2.94384503364563
67
67
  ],
68
68
  [
69
69
  "password--nextPwConfirm",
@@ -71,7 +71,7 @@
71
71
  ],
72
72
  [
73
73
  "password--nextPwCurrent",
74
- -0.000736462592612952
74
+ -0.0007364624761976302
75
75
  ],
76
76
  [
77
77
  "password--nextPwField",
@@ -79,7 +79,7 @@
79
79
  ],
80
80
  [
81
81
  "password--nextPwNew",
82
- 3.5548434257507324
82
+ 3.5548441410064697
83
83
  ],
84
84
  [
85
85
  "password--passwordOutlier",
@@ -87,7 +87,7 @@
87
87
  ],
88
88
  [
89
89
  "password--prevPwCurrent",
90
- -1.4101133346557617
90
+ -1.4101135730743408
91
91
  ],
92
92
  [
93
93
  "password--prevPwField",
@@ -95,11 +95,11 @@
95
95
  ],
96
96
  [
97
97
  "password--prevPwNew",
98
- -2.841886043548584
98
+ -2.841886281967163
99
99
  ],
100
100
  [
101
101
  "password--textConfirm",
102
- -0.9127426743507385
102
+ -0.9127426147460938
103
103
  ],
104
104
  [
105
105
  "password--textCreate",
@@ -107,27 +107,27 @@
107
107
  ],
108
108
  [
109
109
  "password--textCurrent",
110
- 0.5577603578567505
110
+ 0.5577601194381714
111
111
  ],
112
112
  [
113
113
  "password--fieldLogin,autocompleteNew",
114
- 1.904007077217102
114
+ 1.9040071964263916
115
115
  ],
116
116
  [
117
117
  "password--fieldLogin,maybeNew",
118
- 1.4597893953323364
118
+ 1.4597891569137573
119
119
  ],
120
120
  [
121
121
  "password--fieldRegister,autocompleteCurrent",
122
- -2.2519829273223877
122
+ -2.251983165740967
123
123
  ],
124
124
  [
125
125
  "password--fieldRegister,maybeCurrent",
126
- -0.1014399453997612
126
+ -0.1014399304986
127
127
  ],
128
128
  [
129
129
  "password--prevPwCurrent,nextPwNew",
130
- -1.3695014715194702
130
+ -1.3695017099380493
131
131
  ]
132
132
  ]
133
133
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "bias": -2.4607717990875244,
2
+ "bias": -2.4607722759246826,
3
3
  "coeffs": [
4
4
  [
5
5
  "recovery--visibleFieldsCountScaled",
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  [
9
9
  "recovery--visibleInputsCountScaled",
10
- 1.4415719509124756
10
+ 1.441571831703186
11
11
  ],
12
12
  [
13
13
  "recovery--fieldsetsCountScaled",
@@ -15,11 +15,11 @@
15
15
  ],
16
16
  [
17
17
  "recovery--textsCountScaled",
18
- 0.21768750250339508
18
+ 0.2176874428987503
19
19
  ],
20
20
  [
21
21
  "recovery--textareasCountScaled",
22
- -10.481021881103516
22
+ -10.481019973754883
23
23
  ],
24
24
  [
25
25
  "recovery--selectsCountScaled",
@@ -27,11 +27,11 @@
27
27
  ],
28
28
  [
29
29
  "recovery--disabledCountScaled",
30
- -0.0939238965511322
30
+ -0.0939239040017128
31
31
  ],
32
32
  [
33
33
  "recovery--radiosCountScaled",
34
- -1.865826964378357
34
+ -1.8658274412155151
35
35
  ],
36
36
  [
37
37
  "recovery--readOnlyCountScaled",
@@ -39,15 +39,15 @@
39
39
  ],
40
40
  [
41
41
  "recovery--formComplexityScaled",
42
- -7.132519721984863
42
+ -7.1325201988220215
43
43
  ],
44
44
  [
45
45
  "recovery--visibleIdentifiersCountScaled",
46
- -1.231680989265442
46
+ -1.231679916381836
47
47
  ],
48
48
  [
49
49
  "recovery--hiddenIdentifiersCountScaled",
50
- -3.241222381591797
50
+ -3.241222620010376
51
51
  ],
52
52
  [
53
53
  "recovery--usernamesCountScaled",
@@ -55,31 +55,31 @@
55
55
  ],
56
56
  [
57
57
  "recovery--emailsCountScaled",
58
- 0.7306357026100159
58
+ 0.7306361794471741
59
59
  ],
60
60
  [
61
61
  "recovery--hiddenCountScaled",
62
- 3.7756569385528564
62
+ 3.7756564617156982
63
63
  ],
64
64
  [
65
65
  "recovery--hiddenPasswordsCountScaled",
66
- -4.441102981567383
66
+ -4.441102504730225
67
67
  ],
68
68
  [
69
69
  "recovery--submitsCountScaled",
70
- 0.7697613835334778
70
+ 0.7697605490684509
71
71
  ],
72
72
  [
73
73
  "recovery--identitiesCountScaled",
74
- -2.4982993602752686
74
+ -2.4982995986938477
75
75
  ],
76
76
  [
77
77
  "recovery--ccsCountScaled",
78
- -0.8428022265434265
78
+ -0.8428019881248474
79
79
  ],
80
80
  [
81
81
  "recovery--hasTels",
82
- -1.1201077699661255
82
+ -1.1201080083847046
83
83
  ],
84
84
  [
85
85
  "recovery--hasOAuth",
@@ -87,11 +87,11 @@
87
87
  ],
88
88
  [
89
89
  "recovery--hasCaptchas",
90
- 8.954608917236328
90
+ 8.954607963562012
91
91
  ],
92
92
  [
93
93
  "recovery--hasFiles",
94
- -12.784327507019043
94
+ -12.784329414367676
95
95
  ],
96
96
  [
97
97
  "recovery--hasDate",
@@ -99,55 +99,55 @@
99
99
  ],
100
100
  [
101
101
  "recovery--hasNumber",
102
- -0.9297001361846924
102
+ -0.9297001957893372
103
103
  ],
104
104
  [
105
105
  "recovery--oneVisibleField",
106
- 0.4270676076412201
106
+ 0.42706745862960815
107
107
  ],
108
108
  [
109
109
  "recovery--twoVisibleFields",
110
- -6.208211421966553
110
+ -6.208212375640869
111
111
  ],
112
112
  [
113
113
  "recovery--threeOrMoreVisibleFields",
114
- -1.7739923000335693
114
+ -1.7739934921264648
115
115
  ],
116
116
  [
117
117
  "recovery--noPasswords",
118
- 0.23899470269680023
118
+ 0.2389945089817047
119
119
  ],
120
120
  [
121
121
  "recovery--onePassword",
122
- -6.254555702209473
122
+ -6.2545552253723145
123
123
  ],
124
124
  [
125
125
  "recovery--twoPasswords",
126
- -1.3477011919021606
126
+ -1.3477009534835815
127
127
  ],
128
128
  [
129
129
  "recovery--threeOrMorePasswords",
130
- -0.2142723798751831
130
+ -0.2142724245786667
131
131
  ],
132
132
  [
133
133
  "recovery--noIdentifiers",
134
- -5.244648456573486
134
+ -5.24464750289917
135
135
  ],
136
136
  [
137
137
  "recovery--oneIdentifier",
138
- -1.537024974822998
138
+ -1.537023901939392
139
139
  ],
140
140
  [
141
141
  "recovery--twoIdentifiers",
142
- 3.262336015701294
142
+ 3.2623372077941895
143
143
  ],
144
144
  [
145
145
  "recovery--threeOrMoreIdentifiers",
146
- -2.5169777870178223
146
+ -2.516977310180664
147
147
  ],
148
148
  [
149
149
  "recovery--autofocusedIsIdentifier",
150
- 1.0344570875167847
150
+ 1.0344569683074951
151
151
  ],
152
152
  [
153
153
  "recovery--autofocusedIsPassword",
@@ -155,11 +155,11 @@
155
155
  ],
156
156
  [
157
157
  "recovery--visibleRatio",
158
- -1.1183395385742188
158
+ -1.1183401346206665
159
159
  ],
160
160
  [
161
161
  "recovery--inputRatio",
162
- -2.7377750873565674
162
+ -2.73777437210083
163
163
  ],
164
164
  [
165
165
  "recovery--hiddenRatio",
@@ -167,51 +167,51 @@
167
167
  ],
168
168
  [
169
169
  "recovery--identifierRatio",
170
- -3.8864946365356445
170
+ -3.88649582862854
171
171
  ],
172
172
  [
173
173
  "recovery--emailRatio",
174
- 7.4257588386535645
174
+ 7.425758361816406
175
175
  ],
176
176
  [
177
177
  "recovery--usernameRatio",
178
- 1.4872337579727173
178
+ 1.487234115600586
179
179
  ],
180
180
  [
181
181
  "recovery--passwordRatio",
182
- -4.671369552612305
182
+ -4.671370029449463
183
183
  ],
184
184
  [
185
185
  "recovery--disabledRatio",
186
- -0.11529175192117691
186
+ -0.11529173702001572
187
187
  ],
188
188
  [
189
189
  "recovery--requiredRatio",
190
- -0.86724853515625
190
+ -0.8672487139701843
191
191
  ],
192
192
  [
193
193
  "recovery--checkboxRatio",
194
- -15.014094352722168
194
+ -15.014095306396484
195
195
  ],
196
196
  [
197
197
  "recovery--hiddenIdentifierRatio",
198
- 0.06713663786649704
198
+ 0.06713645160198212
199
199
  ],
200
200
  [
201
201
  "recovery--hiddenPasswordRatio",
202
- -7.677776336669922
202
+ -7.6777753829956055
203
203
  ],
204
204
  [
205
205
  "recovery--pageLogin",
206
- 0.24683326482772827
206
+ 0.2468331754207611
207
207
  ],
208
208
  [
209
209
  "recovery--formTextLogin",
210
- -1.3089790627418552e-05
210
+ -1.3089786079945043e-05
211
211
  ],
212
212
  [
213
213
  "recovery--formAttrsLogin",
214
- 1.5605207681655884
214
+ 1.560520887374878
215
215
  ],
216
216
  [
217
217
  "recovery--headingsLogin",
@@ -219,27 +219,27 @@
219
219
  ],
220
220
  [
221
221
  "recovery--layoutLogin",
222
- 0.043930038809776306
222
+ 0.043929893523454666
223
223
  ],
224
224
  [
225
225
  "recovery--rememberMeCheckbox",
226
- -1.5976449251174927
226
+ -1.5976450443267822
227
227
  ],
228
228
  [
229
229
  "recovery--troubleLink",
230
- 3.233335256576538
230
+ 3.233335494995117
231
231
  ],
232
232
  [
233
233
  "recovery--submitLogin",
234
- 0.43999943137168884
234
+ 0.43999919295310974
235
235
  ],
236
236
  [
237
237
  "recovery--pageRegister",
238
- -1.7381528615951538
238
+ -1.738153100013733
239
239
  ],
240
240
  [
241
241
  "recovery--formTextRegister",
242
- -0.004387961234897375
242
+ -0.004387964028865099
243
243
  ],
244
244
  [
245
245
  "recovery--formAttrsRegister",
@@ -247,7 +247,7 @@
247
247
  ],
248
248
  [
249
249
  "recovery--headingsRegister",
250
- -1.0486259460449219
250
+ -1.048626184463501
251
251
  ],
252
252
  [
253
253
  "recovery--layoutRegister",
@@ -255,7 +255,7 @@
255
255
  ],
256
256
  [
257
257
  "recovery--pwNewRegister",
258
- -1.2929311990737915
258
+ -1.292931318283081
259
259
  ],
260
260
  [
261
261
  "recovery--pwConfirmRegister",
@@ -263,35 +263,35 @@
263
263
  ],
264
264
  [
265
265
  "recovery--submitRegister",
266
- -1.0909039974212646
266
+ -1.0909041166305542
267
267
  ],
268
268
  [
269
269
  "recovery--TOSRef",
270
- -5.986724376678467
270
+ -5.98672342300415
271
271
  ],
272
272
  [
273
273
  "recovery--pagePwReset",
274
- -2.201784133911133
274
+ -2.2017838954925537
275
275
  ],
276
276
  [
277
277
  "recovery--formTextPwReset",
278
- -2.0704079361166805e-05
278
+ -2.070406662824098e-05
279
279
  ],
280
280
  [
281
281
  "recovery--formAttrsPwReset",
282
- 2.4164793491363525
282
+ 2.4164788722991943
283
283
  ],
284
284
  [
285
285
  "recovery--headingsPwReset",
286
- 4.336867332458496
286
+ 4.336867809295654
287
287
  ],
288
288
  [
289
289
  "recovery--layoutPwReset",
290
- 0.041829440742731094
290
+ 0.04182944446802139
291
291
  ],
292
292
  [
293
293
  "recovery--pageRecovery",
294
- 5.971342086791992
294
+ 5.971341609954834
295
295
  ],
296
296
  [
297
297
  "recovery--formTextRecovery",
@@ -299,7 +299,7 @@
299
299
  ],
300
300
  [
301
301
  "recovery--formAttrsRecovery",
302
- 2.614874839782715
302
+ 2.614875078201294
303
303
  ],
304
304
  [
305
305
  "recovery--headingsRecovery",
@@ -307,19 +307,19 @@
307
307
  ],
308
308
  [
309
309
  "recovery--layoutRecovery",
310
- 2.1721584796905518
310
+ 2.1721582412719727
311
311
  ],
312
312
  [
313
313
  "recovery--identifierRecovery",
314
- 7.586393356323242
314
+ 7.5863938331604
315
315
  ],
316
316
  [
317
317
  "recovery--submitRecovery",
318
- 7.611932277679443
318
+ 7.611932754516602
319
319
  ],
320
320
  [
321
321
  "recovery--formTextMFA",
322
- 0.8953114151954651
322
+ 0.8953112959861755
323
323
  ],
324
324
  [
325
325
  "recovery--formAttrsMFA",
@@ -331,7 +331,7 @@
331
331
  ],
332
332
  [
333
333
  "recovery--newsletterForm",
334
- -5.093679428100586
334
+ -5.093678951263428
335
335
  ],
336
336
  [
337
337
  "recovery--searchForm",
@@ -339,23 +339,23 @@
339
339
  ],
340
340
  [
341
341
  "recovery--multistepForm",
342
- -2.677456855773926
342
+ -2.677457094192505
343
343
  ],
344
344
  [
345
345
  "recovery--multiAuthForm",
346
- -1.9874008893966675
346
+ -1.9874006509780884
347
347
  ],
348
348
  [
349
349
  "recovery--multistepForm,multiAuthForm",
350
- -1.3790804147720337
350
+ -1.3790802955627441
351
351
  ],
352
352
  [
353
353
  "recovery--visibleRatio,visibleFieldsCountScaled",
354
- 1.791504144668579
354
+ 1.7915043830871582
355
355
  ],
356
356
  [
357
357
  "recovery--visibleRatio,visibleIdentifiersCountScaled",
358
- -0.9494104981422424
358
+ -0.9494097828865051
359
359
  ],
360
360
  [
361
361
  "recovery--visibleRatio,visiblePasswordsCountScaled",
@@ -363,27 +363,27 @@
363
363
  ],
364
364
  [
365
365
  "recovery--visibleRatio,hiddenIdentifiersCountScaled",
366
- 1.0118012428283691
366
+ 1.0118021965026855
367
367
  ],
368
368
  [
369
369
  "recovery--visibleRatio,hiddenPasswordsCountScaled",
370
- -0.8004611730575562
370
+ -0.8004611134529114
371
371
  ],
372
372
  [
373
373
  "recovery--visibleRatio,multiAuthForm",
374
- -1.5303930044174194
374
+ -1.5303926467895508
375
375
  ],
376
376
  [
377
377
  "recovery--visibleRatio,multistepForm",
378
- 0.6369627118110657
378
+ 0.636962890625
379
379
  ],
380
380
  [
381
381
  "recovery--identifierRatio,visibleFieldsCountScaled",
382
- 4.780974864959717
382
+ 4.780975341796875
383
383
  ],
384
384
  [
385
385
  "recovery--identifierRatio,visibleIdentifiersCountScaled",
386
- -4.398955345153809
386
+ -4.39895486831665
387
387
  ],
388
388
  [
389
389
  "recovery--identifierRatio,visiblePasswordsCountScaled",
@@ -391,7 +391,7 @@
391
391
  ],
392
392
  [
393
393
  "recovery--identifierRatio,hiddenIdentifiersCountScaled",
394
- 2.6882450580596924
394
+ 2.688244342803955
395
395
  ],
396
396
  [
397
397
  "recovery--identifierRatio,hiddenPasswordsCountScaled",
@@ -403,47 +403,47 @@
403
403
  ],
404
404
  [
405
405
  "recovery--identifierRatio,multistepForm",
406
- 4.3962883949279785
406
+ 4.39628791809082
407
407
  ],
408
408
  [
409
409
  "recovery--passwordRatio,visibleFieldsCountScaled",
410
- -3.164785623550415
410
+ -3.164785385131836
411
411
  ],
412
412
  [
413
413
  "recovery--passwordRatio,visibleIdentifiersCountScaled",
414
- -4.5203142166137695
414
+ -4.520314693450928
415
415
  ],
416
416
  [
417
417
  "recovery--passwordRatio,visiblePasswordsCountScaled",
418
- -3.8674509525299072
418
+ -3.867450714111328
419
419
  ],
420
420
  [
421
421
  "recovery--passwordRatio,hiddenIdentifiersCountScaled",
422
- -1.0072402954101562
422
+ -1.0072405338287354
423
423
  ],
424
424
  [
425
425
  "recovery--passwordRatio,hiddenPasswordsCountScaled",
426
- -3.002960693265777e-05
426
+ -3.0029603294678964e-05
427
427
  ],
428
428
  [
429
429
  "recovery--passwordRatio,multiAuthForm",
430
- -0.3690747618675232
430
+ -0.3690747320652008
431
431
  ],
432
432
  [
433
433
  "recovery--passwordRatio,multistepForm",
434
- 0.37242934107780457
434
+ 0.37242913246154785
435
435
  ],
436
436
  [
437
437
  "recovery--requiredRatio,visibleFieldsCountScaled",
438
- -3.152287483215332
438
+ -3.152287244796753
439
439
  ],
440
440
  [
441
441
  "recovery--requiredRatio,visibleIdentifiersCountScaled",
442
- -0.7932919859886169
442
+ -0.7932918667793274
443
443
  ],
444
444
  [
445
445
  "recovery--requiredRatio,visiblePasswordsCountScaled",
446
- -1.220094084739685
446
+ -1.2200944423675537
447
447
  ],
448
448
  [
449
449
  "recovery--requiredRatio,hiddenIdentifiersCountScaled",
@@ -451,11 +451,11 @@
451
451
  ],
452
452
  [
453
453
  "recovery--requiredRatio,hiddenPasswordsCountScaled",
454
- -0.0003239401848986745
454
+ -0.00032394021400250494
455
455
  ],
456
456
  [
457
457
  "recovery--requiredRatio,multiAuthForm",
458
- -0.2028079777956009
458
+ -0.2028079479932785
459
459
  ],
460
460
  [
461
461
  "recovery--requiredRatio,multistepForm",