@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,117 +1,117 @@
1
1
  {
2
- "bias": -4.7398457527160645,
2
+ "bias": -4.965570449829102,
3
3
  "coeffs": [
4
4
  [
5
5
  "otp--attrMFA",
6
- 6.6613945960998535
6
+ 4.7884840965271
7
7
  ],
8
8
  [
9
9
  "otp--attrOTP",
10
- 1.1755399703979492
10
+ 1.0581914186477661
11
11
  ],
12
12
  [
13
13
  "otp--autocompleteOTC",
14
- 6.435840129852295
14
+ 3.723384380340576
15
15
  ],
16
16
  [
17
17
  "otp--fieldCC",
18
- -1.972305178642273
18
+ -3.029210090637207
19
19
  ],
20
20
  [
21
21
  "otp--fieldIdentity",
22
- -2.935760259628296
22
+ -4.1969380378723145
23
23
  ],
24
24
  [
25
25
  "otp--formAuthenticator",
26
- 9.9347505569458
26
+ 9.273713111877441
27
27
  ],
28
28
  [
29
29
  "otp--formComplexity",
30
- -4.342885971069336
30
+ -4.52285099029541
31
31
  ],
32
32
  [
33
33
  "otp--formMFA",
34
- 0.8631631731987
34
+ 1.5632495880126953
35
35
  ],
36
36
  [
37
37
  "otp--idMatch",
38
- 6.620510101318359
38
+ 6.893337249755859
39
39
  ],
40
40
  [
41
41
  "otp--labelAuthenticator",
42
- 3.1492226123809814
42
+ 3.155949592590332
43
43
  ],
44
44
  [
45
45
  "otp--labelMFA",
46
- 9.53038501739502
46
+ 8.550812721252441
47
47
  ],
48
48
  [
49
49
  "otp--labelOTP",
50
- 0.4257602095603943
50
+ 0.7417333722114563
51
51
  ],
52
52
  [
53
53
  "otp--nameMatch",
54
- -0.19211307168006897
54
+ -0.3335433602333069
55
55
  ],
56
56
  [
57
57
  "otp--numericMode",
58
- -1.7199307680130005
58
+ -0.022599589079618454
59
59
  ],
60
60
  [
61
61
  "otp--outlierAutocomplete",
62
- -6.185847282409668
62
+ -2.7343192100524902
63
63
  ],
64
64
  [
65
65
  "otp--outlierEmailMatchScaled",
66
- -5.495481967926025
66
+ -4.023244857788086
67
67
  ],
68
68
  [
69
69
  "otp--outlierField",
70
- -7.451329231262207
70
+ -6.480426788330078
71
71
  ],
72
72
  [
73
73
  "otp--outlierForm",
74
- 1.8781681060791016
74
+ 3.0551772117614746
75
75
  ],
76
76
  [
77
77
  "otp--outlierHeadings",
78
- -9.15646743774414
78
+ -7.684365272521973
79
79
  ],
80
80
  [
81
81
  "otp--outlierInputCount",
82
- -5.8055267333984375
82
+ -6.027187824249268
83
83
  ],
84
84
  [
85
85
  "otp--outlierLink",
86
- -3.2309868335723877
86
+ -3.3877322673797607
87
87
  ],
88
88
  [
89
89
  "otp--outlierMaxLength",
90
- -11.20950984954834
90
+ -10.215079307556152
91
91
  ],
92
92
  [
93
93
  "otp--outlierSearch",
94
- -8.073559761047363
94
+ -8.413531303405762
95
95
  ],
96
96
  [
97
97
  "otp--patternOTP",
98
- -1.613316491431442e-36
98
+ 4.2959394454956055
99
99
  ],
100
100
  [
101
101
  "otp--siblingOfInterest",
102
- 2.612291097640991
102
+ 1.3552664518356323
103
103
  ],
104
104
  [
105
105
  "otp--singleInput",
106
- 0.5003524422645569
106
+ 0.2430218756198883
107
107
  ],
108
108
  [
109
109
  "otp--textAuthenticator",
110
- 0.31326133012771606
110
+ 0.281171053647995
111
111
  ],
112
112
  [
113
113
  "otp--textMFA",
114
- -0.23756152391433716
114
+ 1.5314662456512451
115
115
  ]
116
116
  ]
117
117
  }
@@ -3,11 +3,11 @@
3
3
  "coeffs": [
4
4
  [
5
5
  "password-change--visibleFieldsCountScaled",
6
- -0.21080531179904938
6
+ -0.21080532670021057
7
7
  ],
8
8
  [
9
9
  "password-change--visibleInputsCountScaled",
10
- -0.3794768452644348
10
+ -0.3794768154621124
11
11
  ],
12
12
  [
13
13
  "password-change--fieldsetsCountScaled",
@@ -19,15 +19,15 @@
19
19
  ],
20
20
  [
21
21
  "password-change--textareasCountScaled",
22
- -0.6031239628791809
22
+ -0.6031240224838257
23
23
  ],
24
24
  [
25
25
  "password-change--selectsCountScaled",
26
- -0.41383597254753113
26
+ -0.41383594274520874
27
27
  ],
28
28
  [
29
29
  "password-change--disabledCountScaled",
30
- -1.2835944289690815e-05
30
+ -1.2835949746659026e-05
31
31
  ],
32
32
  [
33
33
  "password-change--radiosCountScaled",
@@ -35,11 +35,11 @@
35
35
  ],
36
36
  [
37
37
  "password-change--readOnlyCountScaled",
38
- -2.1948537826538086
38
+ -2.1948535442352295
39
39
  ],
40
40
  [
41
41
  "password-change--formComplexityScaled",
42
- -0.42950722575187683
42
+ -0.4295071065425873
43
43
  ],
44
44
  [
45
45
  "password-change--visibleIdentifiersCountScaled",
@@ -47,23 +47,23 @@
47
47
  ],
48
48
  [
49
49
  "password-change--hiddenIdentifiersCountScaled",
50
- -1.3011547327041626
50
+ -1.3011544942855835
51
51
  ],
52
52
  [
53
53
  "password-change--usernamesCountScaled",
54
- -1.5563488006591797
54
+ -1.5563485622406006
55
55
  ],
56
56
  [
57
57
  "password-change--emailsCountScaled",
58
- -1.2611477375030518
58
+ -1.2611479759216309
59
59
  ],
60
60
  [
61
61
  "password-change--hiddenCountScaled",
62
- 0.13291537761688232
62
+ 0.13291551172733307
63
63
  ],
64
64
  [
65
65
  "password-change--hiddenPasswordsCountScaled",
66
- -0.5678784847259521
66
+ -0.5678786039352417
67
67
  ],
68
68
  [
69
69
  "password-change--submitsCountScaled",
@@ -75,7 +75,7 @@
75
75
  ],
76
76
  [
77
77
  "password-change--ccsCountScaled",
78
- -0.5090059041976929
78
+ -0.5090060234069824
79
79
  ],
80
80
  [
81
81
  "password-change--hasTels",
@@ -83,15 +83,15 @@
83
83
  ],
84
84
  [
85
85
  "password-change--hasOAuth",
86
- -1.138687014579773
86
+ -1.1386868953704834
87
87
  ],
88
88
  [
89
89
  "password-change--hasCaptchas",
90
- -0.8732293248176575
90
+ -0.8732292652130127
91
91
  ],
92
92
  [
93
93
  "password-change--hasFiles",
94
- -0.009154300205409527
94
+ -0.009154299274086952
95
95
  ],
96
96
  [
97
97
  "password-change--hasDate",
@@ -99,7 +99,7 @@
99
99
  ],
100
100
  [
101
101
  "password-change--hasNumber",
102
- -0.48628270626068115
102
+ -0.4862827658653259
103
103
  ],
104
104
  [
105
105
  "password-change--oneVisibleField",
@@ -107,11 +107,11 @@
107
107
  ],
108
108
  [
109
109
  "password-change--twoVisibleFields",
110
- -0.5263844728469849
110
+ -0.5263842940330505
111
111
  ],
112
112
  [
113
113
  "password-change--threeOrMoreVisibleFields",
114
- -0.0987958237528801
114
+ -0.09879591315984726
115
115
  ],
116
116
  [
117
117
  "password-change--noPasswords",
@@ -119,11 +119,11 @@
119
119
  ],
120
120
  [
121
121
  "password-change--onePassword",
122
- -1.0874865055084229
122
+ -1.0874863862991333
123
123
  ],
124
124
  [
125
125
  "password-change--twoPasswords",
126
- 0.43684470653533936
126
+ 0.43684452772140503
127
127
  ],
128
128
  [
129
129
  "password-change--threeOrMorePasswords",
@@ -131,7 +131,7 @@
131
131
  ],
132
132
  [
133
133
  "password-change--noIdentifiers",
134
- -0.10996023565530777
134
+ -0.10995984077453613
135
135
  ],
136
136
  [
137
137
  "password-change--oneIdentifier",
@@ -147,11 +147,11 @@
147
147
  ],
148
148
  [
149
149
  "password-change--autofocusedIsIdentifier",
150
- -1.2017908096313477
150
+ -1.201790690422058
151
151
  ],
152
152
  [
153
153
  "password-change--autofocusedIsPassword",
154
- -1.5753828287124634
154
+ -1.5753825902938843
155
155
  ],
156
156
  [
157
157
  "password-change--visibleRatio",
@@ -163,7 +163,7 @@
163
163
  ],
164
164
  [
165
165
  "password-change--hiddenRatio",
166
- 1.231801986694336
166
+ 1.2318016290664673
167
167
  ],
168
168
  [
169
169
  "password-change--identifierRatio",
@@ -171,7 +171,7 @@
171
171
  ],
172
172
  [
173
173
  "password-change--emailRatio",
174
- -1.0367224216461182
174
+ -1.0367227792739868
175
175
  ],
176
176
  [
177
177
  "password-change--usernameRatio",
@@ -179,27 +179,27 @@
179
179
  ],
180
180
  [
181
181
  "password-change--passwordRatio",
182
- 2.048884630203247
182
+ 2.0488836765289307
183
183
  ],
184
184
  [
185
185
  "password-change--disabledRatio",
186
- -3.544039645930752e-05
186
+ -3.544040009728633e-05
187
187
  ],
188
188
  [
189
189
  "password-change--requiredRatio",
190
- 0.2819277048110962
190
+ 0.28192776441574097
191
191
  ],
192
192
  [
193
193
  "password-change--checkboxRatio",
194
- 0.3580682575702667
194
+ 0.3580681085586548
195
195
  ],
196
196
  [
197
197
  "password-change--hiddenIdentifierRatio",
198
- -1.4996641874313354
198
+ -1.499664545059204
199
199
  ],
200
200
  [
201
201
  "password-change--hiddenPasswordRatio",
202
- -0.5603635311126709
202
+ -0.5603634715080261
203
203
  ],
204
204
  [
205
205
  "password-change--pageLogin",
@@ -207,11 +207,11 @@
207
207
  ],
208
208
  [
209
209
  "password-change--formTextLogin",
210
- -0.0002807428827509284
210
+ -0.00028074285364709795
211
211
  ],
212
212
  [
213
213
  "password-change--formAttrsLogin",
214
- -1.0774983167648315
214
+ -1.077498197555542
215
215
  ],
216
216
  [
217
217
  "password-change--headingsLogin",
@@ -223,7 +223,7 @@
223
223
  ],
224
224
  [
225
225
  "password-change--rememberMeCheckbox",
226
- -0.49536681175231934
226
+ -0.49536675214767456
227
227
  ],
228
228
  [
229
229
  "password-change--troubleLink",
@@ -231,19 +231,19 @@
231
231
  ],
232
232
  [
233
233
  "password-change--submitLogin",
234
- -1.538442611694336
234
+ -1.5384427309036255
235
235
  ],
236
236
  [
237
237
  "password-change--pageRegister",
238
- -0.43224841356277466
238
+ -0.43224838376045227
239
239
  ],
240
240
  [
241
241
  "password-change--formTextRegister",
242
- -2.767477838006016e-07
242
+ -2.7674755642692617e-07
243
243
  ],
244
244
  [
245
245
  "password-change--formAttrsRegister",
246
- -3.545875072479248
246
+ -3.545875310897827
247
247
  ],
248
248
  [
249
249
  "password-change--headingsRegister",
@@ -259,23 +259,23 @@
259
259
  ],
260
260
  [
261
261
  "password-change--pwConfirmRegister",
262
- 0.18275943398475647
262
+ 0.18275941908359528
263
263
  ],
264
264
  [
265
265
  "password-change--submitRegister",
266
- -2.4953696727752686
266
+ -2.4953694343566895
267
267
  ],
268
268
  [
269
269
  "password-change--TOSRef",
270
- -0.0869380310177803
270
+ -0.08693802356719971
271
271
  ],
272
272
  [
273
273
  "password-change--pagePwReset",
274
- 0.8516339063644409
274
+ 0.8516339659690857
275
275
  ],
276
276
  [
277
277
  "password-change--formTextPwReset",
278
- 0.11514020711183548
278
+ 0.1151401624083519
279
279
  ],
280
280
  [
281
281
  "password-change--formAttrsPwReset",
@@ -283,11 +283,11 @@
283
283
  ],
284
284
  [
285
285
  "password-change--headingsPwReset",
286
- 0.8395712971687317
286
+ 0.8395712375640869
287
287
  ],
288
288
  [
289
289
  "password-change--layoutPwReset",
290
- 3.9594016075134277
290
+ 3.9594013690948486
291
291
  ],
292
292
  [
293
293
  "password-change--pageRecovery",
@@ -299,7 +299,7 @@
299
299
  ],
300
300
  [
301
301
  "password-change--formAttrsRecovery",
302
- -0.5712954998016357
302
+ -0.5712955594062805
303
303
  ],
304
304
  [
305
305
  "password-change--headingsRecovery",
@@ -307,7 +307,7 @@
307
307
  ],
308
308
  [
309
309
  "password-change--layoutRecovery",
310
- -0.3146156668663025
310
+ -0.3146156966686249
311
311
  ],
312
312
  [
313
313
  "password-change--identifierRecovery",
@@ -315,11 +315,11 @@
315
315
  ],
316
316
  [
317
317
  "password-change--submitRecovery",
318
- 1.8364182710647583
318
+ 1.8364183902740479
319
319
  ],
320
320
  [
321
321
  "password-change--formTextMFA",
322
- -0.890845537185669
322
+ -0.8908454775810242
323
323
  ],
324
324
  [
325
325
  "password-change--formAttrsMFA",
@@ -335,11 +335,11 @@
335
335
  ],
336
336
  [
337
337
  "password-change--searchForm",
338
- -1.184194803237915
338
+ -1.1841949224472046
339
339
  ],
340
340
  [
341
341
  "password-change--multistepForm",
342
- -0.8734709024429321
342
+ -0.8734707832336426
343
343
  ],
344
344
  [
345
345
  "password-change--multiAuthForm",
@@ -347,11 +347,11 @@
347
347
  ],
348
348
  [
349
349
  "password-change--multistepForm,multiAuthForm",
350
- -0.252063512802124
350
+ -0.25206348299980164
351
351
  ],
352
352
  [
353
353
  "password-change--visibleRatio,visibleFieldsCountScaled",
354
- -0.7013124227523804
354
+ -0.701312243938446
355
355
  ],
356
356
  [
357
357
  "password-change--visibleRatio,visibleIdentifiersCountScaled",
@@ -359,15 +359,15 @@
359
359
  ],
360
360
  [
361
361
  "password-change--visibleRatio,visiblePasswordsCountScaled",
362
- -0.13744992017745972
362
+ -0.13744959235191345
363
363
  ],
364
364
  [
365
365
  "password-change--visibleRatio,hiddenIdentifiersCountScaled",
366
- -0.18700893223285675
366
+ -0.18700896203517914
367
367
  ],
368
368
  [
369
369
  "password-change--visibleRatio,hiddenPasswordsCountScaled",
370
- -0.31140270829200745
370
+ -0.311402827501297
371
371
  ],
372
372
  [
373
373
  "password-change--visibleRatio,multiAuthForm",
@@ -375,11 +375,11 @@
375
375
  ],
376
376
  [
377
377
  "password-change--visibleRatio,multistepForm",
378
- -2.331655979156494
378
+ -2.3316564559936523
379
379
  ],
380
380
  [
381
381
  "password-change--identifierRatio,visibleFieldsCountScaled",
382
- -1.153236985206604
382
+ -1.1532371044158936
383
383
  ],
384
384
  [
385
385
  "password-change--identifierRatio,visibleIdentifiersCountScaled",
@@ -391,7 +391,7 @@
391
391
  ],
392
392
  [
393
393
  "password-change--identifierRatio,hiddenIdentifiersCountScaled",
394
- -0.34702029824256897
394
+ -0.3470202684402466
395
395
  ],
396
396
  [
397
397
  "password-change--identifierRatio,hiddenPasswordsCountScaled",
@@ -407,15 +407,15 @@
407
407
  ],
408
408
  [
409
409
  "password-change--passwordRatio,visibleFieldsCountScaled",
410
- 1.7638397216796875
410
+ 1.763839840888977
411
411
  ],
412
412
  [
413
413
  "password-change--passwordRatio,visibleIdentifiersCountScaled",
414
- -1.45478093624115
414
+ -1.454781174659729
415
415
  ],
416
416
  [
417
417
  "password-change--passwordRatio,visiblePasswordsCountScaled",
418
- 2.5386955738067627
418
+ 2.538696050643921
419
419
  ],
420
420
  [
421
421
  "password-change--passwordRatio,hiddenIdentifiersCountScaled",
@@ -423,7 +423,7 @@
423
423
  ],
424
424
  [
425
425
  "password-change--passwordRatio,hiddenPasswordsCountScaled",
426
- -0.1728202849626541
426
+ -0.1728203147649765
427
427
  ],
428
428
  [
429
429
  "password-change--passwordRatio,multiAuthForm",
@@ -435,7 +435,7 @@
435
435
  ],
436
436
  [
437
437
  "password-change--requiredRatio,visibleFieldsCountScaled",
438
- -0.6770942211151123
438
+ -0.6770943999290466
439
439
  ],
440
440
  [
441
441
  "password-change--requiredRatio,visibleIdentifiersCountScaled",
@@ -443,11 +443,11 @@
443
443
  ],
444
444
  [
445
445
  "password-change--requiredRatio,visiblePasswordsCountScaled",
446
- 0.9341356754302979
446
+ 0.9341356158256531
447
447
  ],
448
448
  [
449
449
  "password-change--requiredRatio,hiddenIdentifiersCountScaled",
450
- -0.9665895700454712
450
+ -0.9665895104408264
451
451
  ],
452
452
  [
453
453
  "password-change--requiredRatio,hiddenPasswordsCountScaled",
@@ -455,11 +455,11 @@
455
455
  ],
456
456
  [
457
457
  "password-change--requiredRatio,multiAuthForm",
458
- -0.2318475842475891
458
+ -0.23184752464294434
459
459
  ],
460
460
  [
461
461
  "password-change--requiredRatio,multistepForm",
462
- -0.02457130327820778
462
+ -0.024571172893047333
463
463
  ]
464
464
  ]
465
465
  }