@protontech/autofill 0.0.22991789 → 0.0.33835493

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 (176) hide show
  1. package/constants/features.d.ts +1 -0
  2. package/constants/features.js +1 -0
  3. package/constants/heuristics.d.ts +5 -4
  4. package/constants/heuristics.js +5 -10
  5. package/constants/selectors.d.ts +13 -7
  6. package/constants/selectors.js +29 -17
  7. package/debug.d.ts +24 -1
  8. package/debug.js +15 -13
  9. package/dictionary/generate.js +30 -21
  10. package/dictionary/generated/dictionary.d.ts +18 -4
  11. package/dictionary/generated/dictionary.js +31 -17
  12. package/dictionary/source/dictionary.d.ts +4 -3
  13. package/dictionary/source/dictionary.js +155 -89
  14. package/dictionary/source/patterns.js +2 -2
  15. package/features/feature.d.ts +18 -0
  16. package/features/feature.js +79 -0
  17. package/features/feature.spec.d.ts +1 -0
  18. package/features/feature.spec.js +55 -0
  19. package/features/v1/abstract.field.d.ts +20401 -0
  20. package/features/v1/abstract.field.js +95 -0
  21. package/features/v1/abstract.form.d.ts +1226 -0
  22. package/features/v1/abstract.form.js +336 -0
  23. package/features/v1/field.email.d.ts +62 -0
  24. package/features/v1/field.email.js +27 -0
  25. package/features/v1/field.otp.d.ts +142 -0
  26. package/features/v1/field.otp.js +105 -0
  27. package/features/v1/field.password.d.ts +162 -0
  28. package/features/v1/field.password.js +81 -0
  29. package/features/v1/field.username-hidden.d.ts +62 -0
  30. package/features/v1/field.username-hidden.js +25 -0
  31. package/features/v1/field.username.d.ts +72 -0
  32. package/features/v1/field.username.js +31 -0
  33. package/features/v1/index.d.ts +4428 -0
  34. package/features/v1/index.js +22 -0
  35. package/features/v1/index.spec.d.ts +1 -0
  36. package/features/v1/index.spec.js +30 -0
  37. package/index.d.ts +7 -2
  38. package/index.js +11 -3
  39. package/models/perceptron/index.d.ts +2 -0
  40. package/models/perceptron/index.js +42 -0
  41. package/models/perceptron/params/email-model.json +53 -0
  42. package/models/perceptron/params/login-model.json +465 -0
  43. package/models/perceptron/params/new-password-model.json +133 -0
  44. package/models/perceptron/params/otp-model.json +117 -0
  45. package/models/perceptron/params/password-change-model.json +465 -0
  46. package/models/perceptron/params/password-model.json +133 -0
  47. package/models/perceptron/params/recovery-model.json +465 -0
  48. package/models/perceptron/params/register-model.json +465 -0
  49. package/models/perceptron/params/username-hidden-model.json +53 -0
  50. package/models/perceptron/params/username-model.json +61 -0
  51. package/models/random_forest/index.d.ts +2 -0
  52. package/models/random_forest/index.js +42 -0
  53. package/models/random_forest/params/email-model.json +1456 -0
  54. package/models/random_forest/params/login-model.json +4194 -0
  55. package/models/random_forest/params/new-password-model.json +1448 -0
  56. package/models/random_forest/params/otp-model.json +2004 -0
  57. package/models/random_forest/params/password-change-model.json +1422 -0
  58. package/models/random_forest/params/password-model.json +1292 -0
  59. package/models/random_forest/params/recovery-model.json +2754 -0
  60. package/models/random_forest/params/register-model.json +3678 -0
  61. package/models/random_forest/params/username-hidden-model.json +1108 -0
  62. package/models/random_forest/params/username-model.json +1052 -0
  63. package/package.json +17 -15
  64. package/rules/v1/index.d.ts +4 -0
  65. package/rules/v1/index.js +66 -0
  66. package/rulesets.d.ts +9 -2
  67. package/rulesets.js +14 -9
  68. package/types/index.d.ts +70 -17
  69. package/types/index.js +34 -1
  70. package/utils/attributes.js +1 -1
  71. package/utils/clustering.js +18 -5
  72. package/utils/credit-card.d.ts +32 -0
  73. package/utils/credit-card.js +259 -0
  74. package/utils/credit-card.samples.spec.d.ts +1 -0
  75. package/utils/credit-card.samples.spec.js +452 -0
  76. package/utils/credit-card.spec.d.ts +1 -0
  77. package/utils/credit-card.spec.js +296 -0
  78. package/utils/dom.d.ts +3 -2
  79. package/utils/dom.js +12 -7
  80. package/utils/exclusion.d.ts +1 -0
  81. package/utils/exclusion.js +22 -10
  82. package/utils/extract.d.ts +1 -0
  83. package/utils/extract.js +26 -7
  84. package/utils/fathom.d.ts +10 -23
  85. package/utils/fathom.js +7 -12
  86. package/utils/field.d.ts +12 -4
  87. package/utils/field.js +25 -14
  88. package/utils/flags.d.ts +9 -3
  89. package/utils/flags.js +27 -9
  90. package/utils/form.d.ts +16 -5
  91. package/utils/form.js +35 -14
  92. package/utils/identity.d.ts +12 -21
  93. package/utils/identity.js +66 -41
  94. package/utils/identity.samples.spec.d.ts +1 -0
  95. package/utils/identity.samples.spec.js +28 -0
  96. package/utils/iframe.d.ts +2 -0
  97. package/utils/iframe.js +22 -0
  98. package/utils/overrides.d.ts +19 -0
  99. package/utils/overrides.js +40 -0
  100. package/utils/prepass.js +6 -4
  101. package/utils/re.d.ts +19 -4
  102. package/utils/re.js +22 -7
  103. package/utils/re.spec.d.ts +1 -0
  104. package/utils/re.spec.js +62 -0
  105. package/utils/shadow-dom.d.ts +8 -0
  106. package/utils/shadow-dom.js +53 -0
  107. package/utils/shadow-dom.spec.d.ts +1 -0
  108. package/utils/shadow-dom.spec.js +215 -0
  109. package/utils/visible.d.ts +3 -2
  110. package/utils/visible.js +42 -22
  111. package/cli.d.ts +0 -2
  112. package/cli.js +0 -128
  113. package/features/abstract.field.d.ts +0 -123
  114. package/features/abstract.field.js +0 -63
  115. package/features/abstract.form.d.ts +0 -98
  116. package/features/abstract.form.js +0 -281
  117. package/features/field.email.d.ts +0 -18
  118. package/features/field.email.js +0 -43
  119. package/features/field.otp.d.ts +0 -36
  120. package/features/field.otp.js +0 -116
  121. package/features/field.password.d.ts +0 -35
  122. package/features/field.password.js +0 -104
  123. package/features/field.username-hidden.d.ts +0 -15
  124. package/features/field.username-hidden.js +0 -40
  125. package/features/field.username.d.ts +0 -16
  126. package/features/field.username.js +0 -41
  127. package/features/form.combined.d.ts +0 -1
  128. package/features/form.combined.js +0 -6
  129. package/trainees/field.email.d.ts +0 -2
  130. package/trainees/field.email.js +0 -16
  131. package/trainees/field.identity.d.ts +0 -2
  132. package/trainees/field.identity.js +0 -9
  133. package/trainees/field.otp.d.ts +0 -2
  134. package/trainees/field.otp.js +0 -16
  135. package/trainees/field.password.current.d.ts +0 -2
  136. package/trainees/field.password.current.js +0 -16
  137. package/trainees/field.password.new.d.ts +0 -2
  138. package/trainees/field.password.new.js +0 -16
  139. package/trainees/field.username-hidden.d.ts +0 -2
  140. package/trainees/field.username-hidden.js +0 -22
  141. package/trainees/field.username.d.ts +0 -2
  142. package/trainees/field.username.js +0 -16
  143. package/trainees/form.login.d.ts +0 -2
  144. package/trainees/form.login.js +0 -16
  145. package/trainees/form.noop.d.ts +0 -1
  146. package/trainees/form.noop.js +0 -7
  147. package/trainees/form.password-change.d.ts +0 -2
  148. package/trainees/form.password-change.js +0 -16
  149. package/trainees/form.recovery.d.ts +0 -2
  150. package/trainees/form.recovery.js +0 -16
  151. package/trainees/form.register.d.ts +0 -2
  152. package/trainees/form.register.js +0 -16
  153. package/trainees/index.d.ts +0 -9
  154. package/trainees/index.js +0 -72
  155. package/trainees/results/result.email.d.ts +0 -2
  156. package/trainees/results/result.email.js +0 -17
  157. package/trainees/results/result.login.d.ts +0 -2
  158. package/trainees/results/result.login.js +0 -110
  159. package/trainees/results/result.new-password.d.ts +0 -2
  160. package/trainees/results/result.new-password.js +0 -36
  161. package/trainees/results/result.otp.d.ts +0 -2
  162. package/trainees/results/result.otp.js +0 -43
  163. package/trainees/results/result.password-change.d.ts +0 -2
  164. package/trainees/results/result.password-change.js +0 -110
  165. package/trainees/results/result.password.d.ts +0 -2
  166. package/trainees/results/result.password.js +0 -36
  167. package/trainees/results/result.recovery.d.ts +0 -2
  168. package/trainees/results/result.recovery.js +0 -110
  169. package/trainees/results/result.register.d.ts +0 -2
  170. package/trainees/results/result.register.js +0 -110
  171. package/trainees/results/result.username-hidden.d.ts +0 -2
  172. package/trainees/results/result.username-hidden.js +0 -15
  173. package/trainees/results/result.username.d.ts +0 -2
  174. package/trainees/results/result.username.js +0 -16
  175. package/utils/memoize.d.ts +0 -5
  176. package/utils/memoize.js +0 -12
@@ -1,36 +0,0 @@
1
- export const results = {
2
- bias: -1.3102426528930664,
3
- coeffs: [
4
- ["pw[new]-loginScore", -11.758098602294922],
5
- ["pw[new]-registerScore", 15.561494827270508],
6
- ["pw[new]-pwChangeScore", 6.807530879974365],
7
- ["pw[new]-exotic", 14.703442573547363],
8
- ["pw[new]-autocompleteNew", 2.8130950927734375],
9
- ["pw[new]-autocompleteCurrent", -1.1303902864456177],
10
- ["pw[new]-autocompleteOff", 0.13968044519424438],
11
- ["pw[new]-isOnlyPassword", -1.3119837045669556],
12
- ["pw[new]-prevPwField", 1.6510356664657593],
13
- ["pw[new]-nextPwField", 2.5713765621185303],
14
- ["pw[new]-attrCreate", 1.9363001585006714],
15
- ["pw[new]-attrCurrent", -0.968367338180542],
16
- ["pw[new]-attrConfirm", 3.7579169273376465],
17
- ["pw[new]-attrReset", 0.024726122617721558],
18
- ["pw[new]-textCreate", 2.0700066089630127],
19
- ["pw[new]-textCurrent", -2.687002182006836],
20
- ["pw[new]-textConfirm", 3.879396677017212],
21
- ["pw[new]-textReset", 0.02698609232902527],
22
- ["pw[new]-labelCreate", 4.558743476867676],
23
- ["pw[new]-labelCurrent", -8.21546459197998],
24
- ["pw[new]-labelConfirm", 3.785360097885132],
25
- ["pw[new]-labelReset", -0.021411001682281494],
26
- ["pw[new]-prevPwNew", 4.606995105743408],
27
- ["pw[new]-prevPwCurrent", 5.818974018096924],
28
- ["pw[new]-prevPwConfirm", -0.14411860704421997],
29
- ["pw[new]-nextPwNew", -12.746692657470703],
30
- ["pw[new]-nextPwCurrent", 4.8551249504089355],
31
- ["pw[new]-nextPwConfirm", 9.695806503295898],
32
- ["pw[new]-passwordOutlier", -28.389829635620117],
33
- ["pw[new]-prevPwCurrent,nextPwNew", 7.529850006103516],
34
- ],
35
- cutoff: 0.5,
36
- };
@@ -1,2 +0,0 @@
1
- import { TrainingResults } from "../../types";
2
- export declare const results: TrainingResults;
@@ -1,43 +0,0 @@
1
- export const results = {
2
- bias: -17.2452335357666,
3
- coeffs: [
4
- ["otp-formMFA", 11.901459693908691],
5
- ["otp-formOutlier", 2.3288350105285645],
6
- ["otp-fieldOutlier", -17.928743362426758],
7
- ["otp-linkOutlier", -18.61521339416504],
8
- ["otp-emailOutlierCount", -24.191082000732422],
9
- ["otp-inputCountOutlier", -2.8780670166015625],
10
- ["otp-nameMatch", 14.921904563903809],
11
- ["otp-idMatch", 11.038023948669434],
12
- ["otp-numericMode", 10.662230491638184],
13
- ["otp-patternOTP", 13.901840209960938],
14
- ["otp-maxLengthExpected", -0.29620179533958435],
15
- ["otp-maxLengthInvalid", -3.7167558670043945],
16
- ["otp-maxLength1", 2.6427135467529297],
17
- ["otp-maxLength5", -4.6910080909729],
18
- ["otp-minLength6", 26.67940902709961],
19
- ["otp-maxLength6", -11.344317436218262],
20
- ["otp-autocompleteOTC", 11.613571166992188],
21
- ["otp-prevAligned", 5.136603355407715],
22
- ["otp-prevArea", 2.6546239852905273],
23
- ["otp-nextAligned", 4.935220718383789],
24
- ["otp-nextArea", 2.206723928451538],
25
- ["otp-attrMFA", 44.54401397705078],
26
- ["otp-attrOTP", 27.37885856628418],
27
- ["otp-textMFA", 4.747012615203857],
28
- ["otp-textOTP", 2.5864460468292236],
29
- ["otp-labelMFA", 20.618867874145508],
30
- ["otp-labelOTP", 10.838250160217285],
31
- ["otp-wrapperOTP", -14.990166664123535],
32
- ["otp-autocompleteOTC,inputCountOutlier", -8.46362590789795],
33
- ["otp-autocompleteOTC,maxLengthInvalid", -27.738826751708984],
34
- ["otp-autocompleteOTC,attrOTP", 3.1571927070617676],
35
- ["otp-siblingOfInterest,inputCountOutlier", -5.260826587677002],
36
- ["otp-siblingOfInterest,maxLengthInvalid", -3.5846598148345947],
37
- ["otp-siblingOfInterest,attrOTP", 3.052980661392212],
38
- ["otp-formMFA,inputCountOutlier", 9.6710844039917],
39
- ["otp-formMFA,maxLengthInvalid", -20.000625610351562],
40
- ["otp-formMFA,attrOTP", 4.498305320739746],
41
- ],
42
- cutoff: 0.5,
43
- };
@@ -1,2 +0,0 @@
1
- import { TrainingResults } from "../../types";
2
- export declare const results: TrainingResults;
@@ -1,110 +0,0 @@
1
- export const results = {
2
- bias: -2.696009874343872,
3
- coeffs: [
4
- ["pw-change-fieldsCount", -1.7891993522644043],
5
- ["pw-change-inputCount", -1.668129801750183],
6
- ["pw-change-fieldsetCount", -3.1164019107818604],
7
- ["pw-change-textCount", -3.0050437450408936],
8
- ["pw-change-textareaCount", -3.052863836288452],
9
- ["pw-change-selectCount", -2.9978158473968506],
10
- ["pw-change-optionsCount", -3.0660152435302734],
11
- ["pw-change-radioCount", -2.9778194427490234],
12
- ["pw-change-identifierCount", -2.67026424407959],
13
- ["pw-change-hiddenIdentifierCount", -2.94750714302063],
14
- ["pw-change-usernameCount", -3.4791202545166016],
15
- ["pw-change-emailCount", -2.428553581237793],
16
- ["pw-change-hiddenCount", -2.010730266571045],
17
- ["pw-change-hiddenPasswordCount", -3.1429035663604736],
18
- ["pw-change-submitCount", -2.167616844177246],
19
- ["pw-change-hasTels", -3.031855821609497],
20
- ["pw-change-hasOAuth", -3.0584163665771484],
21
- ["pw-change-hasCaptchas", -3.224496603012085],
22
- ["pw-change-hasFiles", -3.0630338191986084],
23
- ["pw-change-hasDate", -2.9777746200561523],
24
- ["pw-change-hasNumber", -4.962867736816406],
25
- ["pw-change-oneVisibleField", -3.0222203731536865],
26
- ["pw-change-twoVisibleFields", -1.60014808177948],
27
- ["pw-change-threeOrMoreVisibleFields", -1.206265926361084],
28
- ["pw-change-noPasswords", -3.7927470207214355],
29
- ["pw-change-onePassword", -2.9666991233825684],
30
- ["pw-change-twoPasswords", 2.8818652629852295],
31
- ["pw-change-threeOrMorePasswords", 11.311687469482422],
32
- ["pw-change-noIdentifiers", -2.4712367057800293],
33
- ["pw-change-oneIdentifier", -3.109830617904663],
34
- ["pw-change-twoIdentifiers", -2.915278673171997],
35
- ["pw-change-threeOrMoreIdentifiers", 0.23730900883674622],
36
- ["pw-change-autofocusedIsIdentifier", -2.934699773788452],
37
- ["pw-change-autofocusedIsPassword", 6.527041912078857],
38
- ["pw-change-visibleRatio", -2.200453758239746],
39
- ["pw-change-inputRatio", -2.521408796310425],
40
- ["pw-change-hiddenRatio", -1.9758332967758179],
41
- ["pw-change-identifierRatio", -2.78094482421875],
42
- ["pw-change-emailRatio", -2.6288671493530273],
43
- ["pw-change-usernameRatio", -3.5486297607421875],
44
- ["pw-change-passwordRatio", 1.5072840452194214],
45
- ["pw-change-requiredRatio", -0.8935856223106384],
46
- ["pw-change-checkboxRatio", -2.9815263748168945],
47
- ["pw-change-pageLogin", -3.140753984451294],
48
- ["pw-change-formTextLogin", -2.9465672969818115],
49
- ["pw-change-formAttrsLogin", -3.0592498779296875],
50
- ["pw-change-headingsLogin", -2.9803318977355957],
51
- ["pw-change-layoutLogin", -3.4274990558624268],
52
- ["pw-change-rememberMeCheckbox", -2.9536612033843994],
53
- ["pw-change-troubleLink", -1.901445746421814],
54
- ["pw-change-submitLogin", -3.40403413772583],
55
- ["pw-change-pageRegister", -3.0700323581695557],
56
- ["pw-change-formTextRegister", -0.07521277666091919],
57
- ["pw-change-formAttrsRegister", -2.926823616027832],
58
- ["pw-change-headingsRegister", -3.2544000148773193],
59
- ["pw-change-layoutRegister", -2.9650909900665283],
60
- ["pw-change-pwNewRegister", 6.8914594650268555],
61
- ["pw-change-pwConfirmRegister", 2.769773006439209],
62
- ["pw-change-submitRegister", -3.633875608444214],
63
- ["pw-change-TOSRef", -3.7786121368408203],
64
- ["pw-change-pagePwReset", 8.049981117248535],
65
- ["pw-change-formTextPwReset", 11.879746437072754],
66
- ["pw-change-formAttrsPwReset", 7.206085205078125],
67
- ["pw-change-headingsPwReset", 10.070527076721191],
68
- ["pw-change-layoutPwReset", 9.271537780761719],
69
- ["pw-change-pageRecovery", -3.0962681770324707],
70
- ["pw-change-formTextRecovery", 0.08132856339216232],
71
- ["pw-change-formAttrsRecovery", -4.395229339599609],
72
- ["pw-change-headingsRecovery", -1.133131980895996],
73
- ["pw-change-layoutRecovery", -2.0725059509277344],
74
- ["pw-change-identifierRecovery", -2.9174153804779053],
75
- ["pw-change-submitRecovery", 2.522085189819336],
76
- ["pw-change-formTextMFA", -2.9356021881103516],
77
- ["pw-change-formAttrsMFA", -3.1230366230010986],
78
- ["pw-change-inputsMFA", -3.118472099304199],
79
- ["pw-change-inputsOTP", -3.0966081619262695],
80
- ["pw-change-newsletterForm", -3.0802226066589355],
81
- ["pw-change-searchForm", -3.1171517372131348],
82
- ["pw-change-multiStepForm", -2.9821834564208984],
83
- ["pw-change-multiAuthForm", -2.9220097064971924],
84
- ["pw-change-visibleRatio,fieldsCount", -1.8916025161743164],
85
- ["pw-change-visibleRatio,identifierCount", -2.9281115531921387],
86
- ["pw-change-visibleRatio,passwordCount", 1.2394282817840576],
87
- ["pw-change-visibleRatio,hiddenIdentifierCount", -1.3784831762313843],
88
- ["pw-change-visibleRatio,hiddenPasswordCount", -3.2236289978027344],
89
- ["pw-change-visibleRatio,multiStepForm", -3.0340652465820312],
90
- ["pw-change-identifierRatio,fieldsCount", -2.307020664215088],
91
- ["pw-change-identifierRatio,identifierCount", -2.8241143226623535],
92
- ["pw-change-identifierRatio,passwordCount", -2.318490982055664],
93
- ["pw-change-identifierRatio,hiddenIdentifierCount", -2.973433017730713],
94
- ["pw-change-identifierRatio,hiddenPasswordCount", -2.9836385250091553],
95
- ["pw-change-identifierRatio,multiStepForm", -3.0294461250305176],
96
- ["pw-change-passwordRatio,fieldsCount", 2.3147919178009033],
97
- ["pw-change-passwordRatio,identifierCount", -2.1727421283721924],
98
- ["pw-change-passwordRatio,passwordCount", 3.999250888824463],
99
- ["pw-change-passwordRatio,hiddenIdentifierCount", -1.022194504737854],
100
- ["pw-change-passwordRatio,hiddenPasswordCount", -3.5117692947387695],
101
- ["pw-change-passwordRatio,multiStepForm", -3.0380425453186035],
102
- ["pw-change-requiredRatio,fieldsCount", -2.0135841369628906],
103
- ["pw-change-requiredRatio,identifierCount", -3.1082544326782227],
104
- ["pw-change-requiredRatio,passwordCount", 2.639292001724243],
105
- ["pw-change-requiredRatio,hiddenIdentifierCount", 0.9323336482048035],
106
- ["pw-change-requiredRatio,hiddenPasswordCount", -3.017012119293213],
107
- ["pw-change-requiredRatio,multiStepForm", -3.0760087966918945],
108
- ],
109
- cutoff: 0.5,
110
- };
@@ -1,2 +0,0 @@
1
- import { TrainingResults } from "../../types";
2
- export declare const results: TrainingResults;
@@ -1,36 +0,0 @@
1
- export const results = {
2
- bias: -1.2644586563110352,
3
- coeffs: [
4
- ["pw-loginScore", 14.408318519592285],
5
- ["pw-registerScore", -13.236783027648926],
6
- ["pw-pwChangeScore", -4.347411632537842],
7
- ["pw-exotic", -12.6483736038208],
8
- ["pw-autocompleteNew", -2.946230173110962],
9
- ["pw-autocompleteCurrent", 0.9462074041366577],
10
- ["pw-autocompleteOff", -0.07400037348270416],
11
- ["pw-isOnlyPassword", 1.3491581678390503],
12
- ["pw-prevPwField", -1.737442135810852],
13
- ["pw-nextPwField", -2.6683759689331055],
14
- ["pw-attrCreate", -1.9731414318084717],
15
- ["pw-attrCurrent", 1.1722060441970825],
16
- ["pw-attrConfirm", -3.281270742416382],
17
- ["pw-attrReset", 0.024726122617721558],
18
- ["pw-textCreate", -2.045088291168213],
19
- ["pw-textCurrent", 3.0125374794006348],
20
- ["pw-textConfirm", -3.3560261726379395],
21
- ["pw-textReset", 0.02698609232902527],
22
- ["pw-labelCreate", -4.0898590087890625],
23
- ["pw-labelCurrent", 7.89769983291626],
24
- ["pw-labelConfirm", -3.553234100341797],
25
- ["pw-labelReset", -0.021411001682281494],
26
- ["pw-prevPwNew", -4.231646537780762],
27
- ["pw-prevPwCurrent", -5.076300621032715],
28
- ["pw-prevPwConfirm", -0.14411860704421997],
29
- ["pw-nextPwNew", 12.925291061401367],
30
- ["pw-nextPwCurrent", -4.150381565093994],
31
- ["pw-nextPwConfirm", -9.501288414001465],
32
- ["pw-passwordOutlier", -21.53399658203125],
33
- ["pw-prevPwCurrent,nextPwNew", -8.012460708618164],
34
- ],
35
- cutoff: 0.5,
36
- };
@@ -1,2 +0,0 @@
1
- import { TrainingResults } from "../../types";
2
- export declare const results: TrainingResults;
@@ -1,110 +0,0 @@
1
- export const results = {
2
- bias: -9.427947998046875,
3
- coeffs: [
4
- ["recovery-fieldsCount", 10.408699035644531],
5
- ["recovery-inputCount", 6.885983467102051],
6
- ["recovery-fieldsetCount", 9.595247268676758],
7
- ["recovery-textCount", -9.517077445983887],
8
- ["recovery-textareaCount", -17.02111053466797],
9
- ["recovery-selectCount", -6.76470422744751],
10
- ["recovery-optionsCount", -8.548077583312988],
11
- ["recovery-radioCount", -2.98219633102417],
12
- ["recovery-identifierCount", 1.1628791093826294],
13
- ["recovery-hiddenIdentifierCount", -19.409330368041992],
14
- ["recovery-usernameCount", 16.514101028442383],
15
- ["recovery-emailCount", 0.6962642073631287],
16
- ["recovery-hiddenCount", 13.732193946838379],
17
- ["recovery-hiddenPasswordCount", -26.109392166137695],
18
- ["recovery-submitCount", 34.231300354003906],
19
- ["recovery-hasTels", -4.214760780334473],
20
- ["recovery-hasOAuth", -7.81910514831543],
21
- ["recovery-hasCaptchas", 6.069453716278076],
22
- ["recovery-hasFiles", -48.643245697021484],
23
- ["recovery-hasDate", -2.977776288986206],
24
- ["recovery-hasNumber", -3.1281650066375732],
25
- ["recovery-oneVisibleField", -7.883542537689209],
26
- ["recovery-twoVisibleFields", -11.614110946655273],
27
- ["recovery-threeOrMoreVisibleFields", -0.013049215078353882],
28
- ["recovery-noPasswords", -2.631739616394043],
29
- ["recovery-onePassword", -22.540428161621094],
30
- ["recovery-twoPasswords", -3.0369455814361572],
31
- ["recovery-threeOrMorePasswords", -4.4888505935668945],
32
- ["recovery-noIdentifiers", -22.644367218017578],
33
- ["recovery-oneIdentifier", 3.819424629211426],
34
- ["recovery-twoIdentifiers", -4.736239910125732],
35
- ["recovery-threeOrMoreIdentifiers", -11.317170143127441],
36
- ["recovery-autofocusedIsIdentifier", -4.45768928527832],
37
- ["recovery-autofocusedIsPassword", -2.988748788833618],
38
- ["recovery-visibleRatio", 7.053335666656494],
39
- ["recovery-inputRatio", -13.997162818908691],
40
- ["recovery-hiddenRatio", 0.5969287157058716],
41
- ["recovery-identifierRatio", 1.0595762729644775],
42
- ["recovery-emailRatio", -5.629187107086182],
43
- ["recovery-usernameRatio", 7.733403205871582],
44
- ["recovery-passwordRatio", -15.712047576904297],
45
- ["recovery-requiredRatio", 3.949941396713257],
46
- ["recovery-checkboxRatio", -3.0226802825927734],
47
- ["recovery-pageLogin", -2.092379331588745],
48
- ["recovery-formTextLogin", -2.9517669677734375],
49
- ["recovery-formAttrsLogin", -4.3173017501831055],
50
- ["recovery-headingsLogin", 3.101627826690674],
51
- ["recovery-layoutLogin", -23.39239501953125],
52
- ["recovery-rememberMeCheckbox", -2.9645779132843018],
53
- ["recovery-troubleLink", 26.37225341796875],
54
- ["recovery-submitLogin", -14.502296447753906],
55
- ["recovery-pageRegister", -18.13583755493164],
56
- ["recovery-formTextRegister", -0.07521277666091919],
57
- ["recovery-formAttrsRegister", -15.745829582214355],
58
- ["recovery-headingsRegister", -3.8253390789031982],
59
- ["recovery-layoutRegister", -10.727715492248535],
60
- ["recovery-pwNewRegister", -3.1446142196655273],
61
- ["recovery-pwConfirmRegister", -3.196807384490967],
62
- ["recovery-submitRegister", -4.211245536804199],
63
- ["recovery-TOSRef", -25.249540328979492],
64
- ["recovery-pagePwReset", 4.078812122344971],
65
- ["recovery-formTextPwReset", -11.454815864562988],
66
- ["recovery-formAttrsPwReset", 1.736493468284607],
67
- ["recovery-headingsPwReset", 6.43668794631958],
68
- ["recovery-layoutPwReset", 6.917489051818848],
69
- ["recovery-pageRecovery", 26.86945343017578],
70
- ["recovery-formTextRecovery", 0.08132856339216232],
71
- ["recovery-formAttrsRecovery", 22.396568298339844],
72
- ["recovery-headingsRecovery", 23.809547424316406],
73
- ["recovery-layoutRecovery", -0.7255478501319885],
74
- ["recovery-identifierRecovery", 26.438823699951172],
75
- ["recovery-submitRecovery", 30.044687271118164],
76
- ["recovery-formTextMFA", -4.357610702514648],
77
- ["recovery-formAttrsMFA", 12.55988883972168],
78
- ["recovery-inputsMFA", -18.083696365356445],
79
- ["recovery-inputsOTP", -9.245721817016602],
80
- ["recovery-newsletterForm", -5.496138095855713],
81
- ["recovery-searchForm", -7.642574310302734],
82
- ["recovery-multiStepForm", -1.8952486515045166],
83
- ["recovery-multiAuthForm", -7.885342597961426],
84
- ["recovery-visibleRatio,fieldsCount", -4.428787708282471],
85
- ["recovery-visibleRatio,identifierCount", 1.8988970518112183],
86
- ["recovery-visibleRatio,passwordCount", -11.176432609558105],
87
- ["recovery-visibleRatio,hiddenIdentifierCount", 0.28427231311798096],
88
- ["recovery-visibleRatio,hiddenPasswordCount", -32.18110656738281],
89
- ["recovery-visibleRatio,multiStepForm", 7.487981796264648],
90
- ["recovery-identifierRatio,fieldsCount", 11.179239273071289],
91
- ["recovery-identifierRatio,identifierCount", 10.112052917480469],
92
- ["recovery-identifierRatio,passwordCount", -19.5261287689209],
93
- ["recovery-identifierRatio,hiddenIdentifierCount", -26.64284896850586],
94
- ["recovery-identifierRatio,hiddenPasswordCount", -53.3195686340332],
95
- ["recovery-identifierRatio,multiStepForm", 10.037561416625977],
96
- ["recovery-passwordRatio,fieldsCount", -19.557090759277344],
97
- ["recovery-passwordRatio,identifierCount", -20.05747413635254],
98
- ["recovery-passwordRatio,passwordCount", -13.938093185424805],
99
- ["recovery-passwordRatio,hiddenIdentifierCount", -3.1584134101867676],
100
- ["recovery-passwordRatio,hiddenPasswordCount", -2.9192464351654053],
101
- ["recovery-passwordRatio,multiStepForm", -13.028350830078125],
102
- ["recovery-requiredRatio,fieldsCount", -41.006874084472656],
103
- ["recovery-requiredRatio,identifierCount", 8.82692813873291],
104
- ["recovery-requiredRatio,passwordCount", -3.890465497970581],
105
- ["recovery-requiredRatio,hiddenIdentifierCount", 29.82024383544922],
106
- ["recovery-requiredRatio,hiddenPasswordCount", -5.995500087738037],
107
- ["recovery-requiredRatio,multiStepForm", -24.63163185119629],
108
- ],
109
- cutoff: 0.5,
110
- };
@@ -1,2 +0,0 @@
1
- import { TrainingResults } from "../../types";
2
- export declare const results: TrainingResults;
@@ -1,110 +0,0 @@
1
- export const results = {
2
- bias: -16.094446182250977,
3
- coeffs: [
4
- ["register-fieldsCount", 30.46285057067871],
5
- ["register-inputCount", 31.6334228515625],
6
- ["register-fieldsetCount", 18.26053237915039],
7
- ["register-textCount", 3.9428248405456543],
8
- ["register-textareaCount", 13.893071174621582],
9
- ["register-selectCount", -15.53159236907959],
10
- ["register-optionsCount", 6.191760063171387],
11
- ["register-radioCount", -5.3857831954956055],
12
- ["register-identifierCount", -9.17143440246582],
13
- ["register-hiddenIdentifierCount", 34.73891830444336],
14
- ["register-usernameCount", -1.4682646989822388],
15
- ["register-emailCount", -10.913708686828613],
16
- ["register-hiddenCount", -35.49178695678711],
17
- ["register-hiddenPasswordCount", -33.64812088012695],
18
- ["register-submitCount", 11.747038841247559],
19
- ["register-hasTels", -4.700286388397217],
20
- ["register-hasOAuth", 1.7483326196670532],
21
- ["register-hasCaptchas", 16.73944854736328],
22
- ["register-hasFiles", -4.69049072265625],
23
- ["register-hasDate", 5.036784648895264],
24
- ["register-hasNumber", 31.519641876220703],
25
- ["register-oneVisibleField", 0.014776411466300488],
26
- ["register-twoVisibleFields", 21.900365829467773],
27
- ["register-threeOrMoreVisibleFields", 5.193270206451416],
28
- ["register-noPasswords", -23.00156021118164],
29
- ["register-onePassword", -15.84149169921875],
30
- ["register-twoPasswords", 41.29001235961914],
31
- ["register-threeOrMorePasswords", -6.282907962799072],
32
- ["register-noIdentifiers", -20.501157760620117],
33
- ["register-oneIdentifier", -8.70998477935791],
34
- ["register-twoIdentifiers", 2.307891845703125],
35
- ["register-threeOrMoreIdentifiers", -32.61318588256836],
36
- ["register-autofocusedIsIdentifier", -6.97349214553833],
37
- ["register-autofocusedIsPassword", 40.635215759277344],
38
- ["register-visibleRatio", 12.438182830810547],
39
- ["register-inputRatio", -18.595232009887695],
40
- ["register-hiddenRatio", 33.69163513183594],
41
- ["register-identifierRatio", 26.868125915527344],
42
- ["register-emailRatio", -9.188939094543457],
43
- ["register-usernameRatio", -9.776671409606934],
44
- ["register-passwordRatio", -14.036344528198242],
45
- ["register-requiredRatio", -14.250231742858887],
46
- ["register-checkboxRatio", -28.53203582763672],
47
- ["register-pageLogin", -18.424230575561523],
48
- ["register-formTextLogin", -3.049536943435669],
49
- ["register-formAttrsLogin", -4.584053993225098],
50
- ["register-headingsLogin", -17.81664276123047],
51
- ["register-layoutLogin", 14.56656265258789],
52
- ["register-rememberMeCheckbox", -11.651335716247559],
53
- ["register-troubleLink", -24.82097816467285],
54
- ["register-submitLogin", -14.294108390808105],
55
- ["register-pageRegister", 29.5922794342041],
56
- ["register-formTextRegister", -0.07521277666091919],
57
- ["register-formAttrsRegister", 0.7848914265632629],
58
- ["register-headingsRegister", 28.385726928710938],
59
- ["register-layoutRegister", 4.838881969451904],
60
- ["register-pwNewRegister", 34.17703628540039],
61
- ["register-pwConfirmRegister", 17.613525390625],
62
- ["register-submitRegister", 51.30738830566406],
63
- ["register-TOSRef", 8.063250541687012],
64
- ["register-pagePwReset", -3.4991910457611084],
65
- ["register-formTextPwReset", -5.630014896392822],
66
- ["register-formAttrsPwReset", -3.072784185409546],
67
- ["register-headingsPwReset", -61.58919143676758],
68
- ["register-layoutPwReset", -121.86604309082031],
69
- ["register-pageRecovery", -14.391289710998535],
70
- ["register-formTextRecovery", 0.08132856339216232],
71
- ["register-formAttrsRecovery", -67.85893249511719],
72
- ["register-headingsRecovery", 4.50023889541626],
73
- ["register-layoutRecovery", -3.1991076469421387],
74
- ["register-identifierRecovery", 3.6060805320739746],
75
- ["register-submitRecovery", -80.8954849243164],
76
- ["register-formTextMFA", -16.519746780395508],
77
- ["register-formAttrsMFA", -16.23328399658203],
78
- ["register-inputsMFA", -5.646854877471924],
79
- ["register-inputsOTP", -10.585878372192383],
80
- ["register-newsletterForm", -32.40378189086914],
81
- ["register-searchForm", -3.5452640056610107],
82
- ["register-multiStepForm", -1.4402474164962769],
83
- ["register-multiAuthForm", -19.345266342163086],
84
- ["register-visibleRatio,fieldsCount", -29.52564239501953],
85
- ["register-visibleRatio,identifierCount", -6.960480690002441],
86
- ["register-visibleRatio,passwordCount", -5.109584808349609],
87
- ["register-visibleRatio,hiddenIdentifierCount", 55.12028121948242],
88
- ["register-visibleRatio,hiddenPasswordCount", -21.677207946777344],
89
- ["register-visibleRatio,multiStepForm", 19.16805076599121],
90
- ["register-identifierRatio,fieldsCount", 13.720005989074707],
91
- ["register-identifierRatio,identifierCount", 38.3803825378418],
92
- ["register-identifierRatio,passwordCount", -48.50704574584961],
93
- ["register-identifierRatio,hiddenIdentifierCount", -48.88969421386719],
94
- ["register-identifierRatio,hiddenPasswordCount", 84.18292999267578],
95
- ["register-identifierRatio,multiStepForm", 17.037107467651367],
96
- ["register-passwordRatio,fieldsCount", 13.74305534362793],
97
- ["register-passwordRatio,identifierCount", -55.0797233581543],
98
- ["register-passwordRatio,passwordCount", -10.60239315032959],
99
- ["register-passwordRatio,hiddenIdentifierCount", -13.117535591125488],
100
- ["register-passwordRatio,hiddenPasswordCount", 10.440629005432129],
101
- ["register-passwordRatio,multiStepForm", 30.36237144470215],
102
- ["register-requiredRatio,fieldsCount", -52.28097915649414],
103
- ["register-requiredRatio,identifierCount", 42.29092025756836],
104
- ["register-requiredRatio,passwordCount", 6.453422546386719],
105
- ["register-requiredRatio,hiddenIdentifierCount", 11.48255443572998],
106
- ["register-requiredRatio,hiddenPasswordCount", -5.299686431884766],
107
- ["register-requiredRatio,multiStepForm", 2.6636552810668945],
108
- ],
109
- cutoff: 0.5,
110
- };
@@ -1,2 +0,0 @@
1
- import { TrainingResults } from "../../types";
2
- export declare const results: TrainingResults;
@@ -1,15 +0,0 @@
1
- export const results = {
2
- bias: -50.749053955078125,
3
- coeffs: [
4
- ["username[hidden]-exotic", -15.883810043334961],
5
- ["username[hidden]-attrUsername", 34.46105194091797],
6
- ["username[hidden]-attrEmail", 22.175107955932617],
7
- ["username[hidden]-usernameAttr", 25.02802848815918],
8
- ["username[hidden]-autocompleteUsername", 4.766382694244385],
9
- ["username[hidden]-visibleReadonly", 20.10643768310547],
10
- ["username[hidden]-hiddenEmailValue", 38.17428207397461],
11
- ["username[hidden]-hiddenTelValue", 5.775209426879883],
12
- ["username[hidden]-hiddenUsernameValue", 11.712872505187988],
13
- ],
14
- cutoff: 0.5,
15
- };
@@ -1,2 +0,0 @@
1
- import { TrainingResults } from "../../types";
2
- export declare const results: TrainingResults;
@@ -1,16 +0,0 @@
1
- export const results = {
2
- bias: -12.290815353393555,
3
- coeffs: [
4
- ["username-autocompleteUsername", 6.453221797943115],
5
- ["username-autocompleteNickname", 0.2624715268611908],
6
- ["username-autocompleteEmail", -4.552894115447998],
7
- ["username-autocompleteOff", -0.61194908618927],
8
- ["username-attrUsername", 22.859418869018555],
9
- ["username-textUsername", 20.923057556152344],
10
- ["username-labelUsername", 22.566349029541016],
11
- ["username-outlierUsername", -0.11989915370941162],
12
- ["username-loginUsername", 23.702863693237305],
13
- ["username-searchField", -18.31827735900879],
14
- ],
15
- cutoff: 0.5,
16
- };
@@ -1,5 +0,0 @@
1
- type Memoised<F extends (arg: any) => any> = F & {
2
- clearCache: () => void;
3
- };
4
- export declare const memoize: <F extends (arg: any) => any>(fn: F) => Memoised<F>;
5
- export {};
package/utils/memoize.js DELETED
@@ -1,12 +0,0 @@
1
- export const memoize = (fn) => {
2
- let cache = new WeakMap();
3
- const memoisedFn = ((arg) => {
4
- if (cache.has(arg))
5
- return cache.get(arg);
6
- const result = fn(arg);
7
- cache.set(arg, result);
8
- return result;
9
- });
10
- memoisedFn.clearCache = () => (cache = new WeakMap());
11
- return memoisedFn;
12
- };