cozy-keys-lib 4.1.4 → 4.1.5

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 (288) hide show
  1. package/package.json +9 -9
  2. package/transpiled/@bitwarden/jslib/angular/components/add-edit.component.js +11 -33
  3. package/transpiled/@bitwarden/jslib/angular/components/attachments.component.js +8 -24
  4. package/transpiled/@bitwarden/jslib/angular/components/callout.component.js +1 -3
  5. package/transpiled/@bitwarden/jslib/angular/components/change-password.component.js +6 -18
  6. package/transpiled/@bitwarden/jslib/angular/components/ciphers.component.js +8 -24
  7. package/transpiled/@bitwarden/jslib/angular/components/collections.component.js +5 -15
  8. package/transpiled/@bitwarden/jslib/angular/components/environment.component.js +2 -6
  9. package/transpiled/@bitwarden/jslib/angular/components/export.component.js +3 -9
  10. package/transpiled/@bitwarden/jslib/angular/components/folder-add-edit.component.js +5 -15
  11. package/transpiled/@bitwarden/jslib/angular/components/groupings.component.js +4 -12
  12. package/transpiled/@bitwarden/jslib/angular/components/hint.component.js +2 -6
  13. package/transpiled/@bitwarden/jslib/angular/components/icon.component.js +2 -6
  14. package/transpiled/@bitwarden/jslib/angular/components/lock.component.js +7 -21
  15. package/transpiled/@bitwarden/jslib/angular/components/login.component.js +4 -12
  16. package/transpiled/@bitwarden/jslib/angular/components/modal.component.js +1 -3
  17. package/transpiled/@bitwarden/jslib/angular/components/password-generator-history.component.js +2 -6
  18. package/transpiled/@bitwarden/jslib/angular/components/password-generator.component.js +6 -18
  19. package/transpiled/@bitwarden/jslib/angular/components/password-history.component.js +3 -9
  20. package/transpiled/@bitwarden/jslib/angular/components/premium.component.js +5 -15
  21. package/transpiled/@bitwarden/jslib/angular/components/register.component.js +2 -6
  22. package/transpiled/@bitwarden/jslib/angular/components/set-password.component.js +5 -15
  23. package/transpiled/@bitwarden/jslib/angular/components/share.component.js +5 -15
  24. package/transpiled/@bitwarden/jslib/angular/components/sso.component.js +7 -21
  25. package/transpiled/@bitwarden/jslib/angular/components/two-factor-options.component.js +1 -3
  26. package/transpiled/@bitwarden/jslib/angular/components/two-factor.component.js +7 -21
  27. package/transpiled/@bitwarden/jslib/angular/components/view.component.js +10 -30
  28. package/transpiled/@bitwarden/jslib/angular/directives/a11y-title.directive.js +1 -3
  29. package/transpiled/@bitwarden/jslib/angular/directives/api-action.directive.js +1 -3
  30. package/transpiled/@bitwarden/jslib/angular/directives/autofocus.directive.js +1 -3
  31. package/transpiled/@bitwarden/jslib/angular/directives/blur-click.directive.js +1 -3
  32. package/transpiled/@bitwarden/jslib/angular/directives/box-row.directive.js +1 -3
  33. package/transpiled/@bitwarden/jslib/angular/directives/fallback-src.directive.js +1 -3
  34. package/transpiled/@bitwarden/jslib/angular/directives/input-verbatim.directive.js +1 -3
  35. package/transpiled/@bitwarden/jslib/angular/directives/select-copy.directive.js +1 -3
  36. package/transpiled/@bitwarden/jslib/angular/directives/stop-click.directive.js +1 -3
  37. package/transpiled/@bitwarden/jslib/angular/directives/stop-prop.directive.js +1 -3
  38. package/transpiled/@bitwarden/jslib/angular/directives/true-false-value.directive.js +1 -3
  39. package/transpiled/@bitwarden/jslib/angular/pipes/color-password.pipe.js +1 -3
  40. package/transpiled/@bitwarden/jslib/angular/pipes/i18n.pipe.js +1 -3
  41. package/transpiled/@bitwarden/jslib/angular/pipes/search-ciphers.pipe.js +1 -3
  42. package/transpiled/@bitwarden/jslib/angular/pipes/search.pipe.js +1 -3
  43. package/transpiled/@bitwarden/jslib/angular/services/auth-guard.service.js +2 -6
  44. package/transpiled/@bitwarden/jslib/angular/services/broadcaster.service.js +1 -3
  45. package/transpiled/@bitwarden/jslib/angular/services/validation.service.js +1 -3
  46. package/transpiled/@bitwarden/jslib/cli/baseProgram.js +3 -9
  47. package/transpiled/@bitwarden/jslib/cli/commands/login.command.js +3 -9
  48. package/transpiled/@bitwarden/jslib/cli/commands/logout.command.js +2 -6
  49. package/transpiled/@bitwarden/jslib/cli/commands/update.command.js +2 -6
  50. package/transpiled/@bitwarden/jslib/cli/models/response.js +1 -3
  51. package/transpiled/@bitwarden/jslib/cli/services/cliPlatformUtils.service.js +1 -3
  52. package/transpiled/@bitwarden/jslib/cli/services/consoleLog.service.js +1 -3
  53. package/transpiled/@bitwarden/jslib/electron/baseMenu.js +1 -3
  54. package/transpiled/@bitwarden/jslib/electron/biometric.darwin.main.js +4 -12
  55. package/transpiled/@bitwarden/jslib/electron/biometric.windows.main.js +7 -21
  56. package/transpiled/@bitwarden/jslib/electron/keytarStorageListener.js +2 -6
  57. package/transpiled/@bitwarden/jslib/electron/services/electronLog.service.js +1 -3
  58. package/transpiled/@bitwarden/jslib/electron/services/electronMainMessaging.service.js +1 -3
  59. package/transpiled/@bitwarden/jslib/electron/services/electronPlatformUtils.service.js +2 -6
  60. package/transpiled/@bitwarden/jslib/electron/services/electronRendererMessaging.service.js +2 -6
  61. package/transpiled/@bitwarden/jslib/electron/services/electronRendererSecureStorage.service.js +4 -12
  62. package/transpiled/@bitwarden/jslib/electron/services/electronStorage.service.js +1 -3
  63. package/transpiled/@bitwarden/jslib/electron/tray.main.js +5 -15
  64. package/transpiled/@bitwarden/jslib/electron/updater.main.js +7 -21
  65. package/transpiled/@bitwarden/jslib/electron/window.main.js +12 -36
  66. package/transpiled/@bitwarden/jslib/importers/ascendoCsvImporter.js +1 -3
  67. package/transpiled/@bitwarden/jslib/importers/avastCsvImporter.js +1 -3
  68. package/transpiled/@bitwarden/jslib/importers/avastJsonImporter.js +1 -3
  69. package/transpiled/@bitwarden/jslib/importers/aviraCsvImporter.js +1 -3
  70. package/transpiled/@bitwarden/jslib/importers/baseImporter.js +1 -3
  71. package/transpiled/@bitwarden/jslib/importers/bitwardenCsvImporter.js +1 -3
  72. package/transpiled/@bitwarden/jslib/importers/bitwardenJsonImporter.js +1 -3
  73. package/transpiled/@bitwarden/jslib/importers/blackBerryCsvImporter.js +1 -3
  74. package/transpiled/@bitwarden/jslib/importers/blurCsvImporter.js +1 -3
  75. package/transpiled/@bitwarden/jslib/importers/buttercupCsvImporter.js +1 -3
  76. package/transpiled/@bitwarden/jslib/importers/chromeCsvImporter.js +1 -3
  77. package/transpiled/@bitwarden/jslib/importers/clipperzHtmlImporter.js +1 -3
  78. package/transpiled/@bitwarden/jslib/importers/codebookCsvImporter.js +1 -3
  79. package/transpiled/@bitwarden/jslib/importers/dashlaneJsonImporter.js +1 -3
  80. package/transpiled/@bitwarden/jslib/importers/encryptrCsvImporter.js +1 -3
  81. package/transpiled/@bitwarden/jslib/importers/enpassCsvImporter.js +1 -3
  82. package/transpiled/@bitwarden/jslib/importers/enpassJsonImporter.js +1 -3
  83. package/transpiled/@bitwarden/jslib/importers/firefoxCsvImporter.js +1 -3
  84. package/transpiled/@bitwarden/jslib/importers/fsecureFskImporter.js +1 -3
  85. package/transpiled/@bitwarden/jslib/importers/gnomeJsonImporter.js +1 -3
  86. package/transpiled/@bitwarden/jslib/importers/kasperskyTxtImporter.js +1 -3
  87. package/transpiled/@bitwarden/jslib/importers/keepass2XmlImporter.js +1 -3
  88. package/transpiled/@bitwarden/jslib/importers/keepassxCsvImporter.js +1 -3
  89. package/transpiled/@bitwarden/jslib/importers/keeperCsvImporter.js +1 -3
  90. package/transpiled/@bitwarden/jslib/importers/lastpassCsvImporter.js +1 -3
  91. package/transpiled/@bitwarden/jslib/importers/logMeOnceCsvImporter.js +1 -3
  92. package/transpiled/@bitwarden/jslib/importers/meldiumCsvImporter.js +1 -3
  93. package/transpiled/@bitwarden/jslib/importers/msecureCsvImporter.js +1 -3
  94. package/transpiled/@bitwarden/jslib/importers/mykiCsvImporter.js +1 -3
  95. package/transpiled/@bitwarden/jslib/importers/onepassword1PifImporter.js +1 -3
  96. package/transpiled/@bitwarden/jslib/importers/onepasswordWinCsvImporter.js +1 -3
  97. package/transpiled/@bitwarden/jslib/importers/padlockCsvImporter.js +1 -3
  98. package/transpiled/@bitwarden/jslib/importers/passkeepCsvImporter.js +1 -3
  99. package/transpiled/@bitwarden/jslib/importers/passmanJsonImporter.js +1 -3
  100. package/transpiled/@bitwarden/jslib/importers/passpackCsvImporter.js +1 -3
  101. package/transpiled/@bitwarden/jslib/importers/passwordAgentCsvImporter.js +1 -3
  102. package/transpiled/@bitwarden/jslib/importers/passwordBossJsonImporter.js +1 -3
  103. package/transpiled/@bitwarden/jslib/importers/passwordDragonXmlImporter.js +1 -3
  104. package/transpiled/@bitwarden/jslib/importers/passwordSafeXmlImporter.js +1 -3
  105. package/transpiled/@bitwarden/jslib/importers/passwordWalletTxtImporter.js +1 -3
  106. package/transpiled/@bitwarden/jslib/importers/rememBearCsvImporter.js +1 -3
  107. package/transpiled/@bitwarden/jslib/importers/roboformCsvImporter.js +1 -3
  108. package/transpiled/@bitwarden/jslib/importers/safeInCloudXmlImporter.js +1 -3
  109. package/transpiled/@bitwarden/jslib/importers/saferpassCsvImport.js +1 -3
  110. package/transpiled/@bitwarden/jslib/importers/secureSafeCsvImporter.js +1 -3
  111. package/transpiled/@bitwarden/jslib/importers/splashIdCsvImporter.js +1 -3
  112. package/transpiled/@bitwarden/jslib/importers/stickyPasswordXmlImporter.js +1 -3
  113. package/transpiled/@bitwarden/jslib/importers/truekeyCsvImporter.js +1 -3
  114. package/transpiled/@bitwarden/jslib/importers/upmCsvImporter.js +1 -3
  115. package/transpiled/@bitwarden/jslib/importers/yotiCsvImporter.js +1 -3
  116. package/transpiled/@bitwarden/jslib/importers/zohoVaultCsvImporter.js +1 -3
  117. package/transpiled/@bitwarden/jslib/misc/analytics.js +3 -9
  118. package/transpiled/@bitwarden/jslib/misc/nodeUtils.js +1 -3
  119. package/transpiled/@bitwarden/jslib/misc/serviceUtils.js +1 -3
  120. package/transpiled/@bitwarden/jslib/misc/u2f.js +1 -3
  121. package/transpiled/@bitwarden/jslib/misc/utils.js +1 -3
  122. package/transpiled/@bitwarden/jslib/models/api/cardApi.js +1 -3
  123. package/transpiled/@bitwarden/jslib/models/api/fieldApi.js +1 -3
  124. package/transpiled/@bitwarden/jslib/models/api/identityApi.js +1 -3
  125. package/transpiled/@bitwarden/jslib/models/api/loginApi.js +1 -3
  126. package/transpiled/@bitwarden/jslib/models/api/loginUriApi.js +1 -3
  127. package/transpiled/@bitwarden/jslib/models/api/secureNoteApi.js +1 -3
  128. package/transpiled/@bitwarden/jslib/models/api/sendFileApi.js +1 -3
  129. package/transpiled/@bitwarden/jslib/models/api/sendTextApi.js +1 -3
  130. package/transpiled/@bitwarden/jslib/models/domain/attachment.js +2 -6
  131. package/transpiled/@bitwarden/jslib/models/domain/card.js +1 -3
  132. package/transpiled/@bitwarden/jslib/models/domain/cipher.js +2 -6
  133. package/transpiled/@bitwarden/jslib/models/domain/cipherString.js +2 -6
  134. package/transpiled/@bitwarden/jslib/models/domain/collection.js +1 -3
  135. package/transpiled/@bitwarden/jslib/models/domain/domainBase.js +2 -6
  136. package/transpiled/@bitwarden/jslib/models/domain/field.js +1 -3
  137. package/transpiled/@bitwarden/jslib/models/domain/folder.js +1 -3
  138. package/transpiled/@bitwarden/jslib/models/domain/identity.js +1 -3
  139. package/transpiled/@bitwarden/jslib/models/domain/login.js +2 -6
  140. package/transpiled/@bitwarden/jslib/models/domain/loginUri.js +1 -3
  141. package/transpiled/@bitwarden/jslib/models/domain/masterPasswordPolicyOptions.js +1 -3
  142. package/transpiled/@bitwarden/jslib/models/domain/organization.js +1 -3
  143. package/transpiled/@bitwarden/jslib/models/domain/password.js +1 -3
  144. package/transpiled/@bitwarden/jslib/models/domain/passwordGeneratorPolicyOptions.js +1 -3
  145. package/transpiled/@bitwarden/jslib/models/domain/policy.js +1 -3
  146. package/transpiled/@bitwarden/jslib/models/domain/secureNote.js +1 -3
  147. package/transpiled/@bitwarden/jslib/models/domain/send.js +2 -6
  148. package/transpiled/@bitwarden/jslib/models/domain/sendAccess.js +2 -6
  149. package/transpiled/@bitwarden/jslib/models/domain/sendFile.js +2 -6
  150. package/transpiled/@bitwarden/jslib/models/domain/sendText.js +1 -3
  151. package/transpiled/@bitwarden/jslib/models/domain/sortedCiphersCache.js +2 -6
  152. package/transpiled/@bitwarden/jslib/models/export/card.js +1 -3
  153. package/transpiled/@bitwarden/jslib/models/export/cipher.js +1 -3
  154. package/transpiled/@bitwarden/jslib/models/export/cipherWithIds.js +1 -3
  155. package/transpiled/@bitwarden/jslib/models/export/collection.js +1 -3
  156. package/transpiled/@bitwarden/jslib/models/export/collectionWithId.js +1 -3
  157. package/transpiled/@bitwarden/jslib/models/export/field.js +1 -3
  158. package/transpiled/@bitwarden/jslib/models/export/folder.js +1 -3
  159. package/transpiled/@bitwarden/jslib/models/export/folderWithId.js +1 -3
  160. package/transpiled/@bitwarden/jslib/models/export/identity.js +1 -3
  161. package/transpiled/@bitwarden/jslib/models/export/login.js +1 -3
  162. package/transpiled/@bitwarden/jslib/models/export/loginUri.js +1 -3
  163. package/transpiled/@bitwarden/jslib/models/export/secureNote.js +1 -3
  164. package/transpiled/@bitwarden/jslib/models/request/cipherWithIdRequest.js +1 -3
  165. package/transpiled/@bitwarden/jslib/models/request/emailRequest.js +1 -3
  166. package/transpiled/@bitwarden/jslib/models/request/emailTokenRequest.js +1 -3
  167. package/transpiled/@bitwarden/jslib/models/request/folderWithIdRequest.js +1 -3
  168. package/transpiled/@bitwarden/jslib/models/request/kdfRequest.js +1 -3
  169. package/transpiled/@bitwarden/jslib/models/request/organizationTaxInfoUpdateRequest.js +1 -3
  170. package/transpiled/@bitwarden/jslib/models/request/passwordRequest.js +1 -3
  171. package/transpiled/@bitwarden/jslib/models/request/paymentRequest.js +1 -3
  172. package/transpiled/@bitwarden/jslib/models/request/tokenRequest.js +1 -3
  173. package/transpiled/@bitwarden/jslib/models/request/twoFactorEmailRequest.js +1 -3
  174. package/transpiled/@bitwarden/jslib/models/request/twoFactorProviderRequest.js +1 -3
  175. package/transpiled/@bitwarden/jslib/models/request/twoFactorRecoveryRequest.js +1 -3
  176. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorAuthenticatorRequest.js +1 -3
  177. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorDuoRequest.js +1 -3
  178. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorEmailRequest.js +1 -3
  179. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorU2fDeleteRequest.js +1 -3
  180. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorU2fRequest.js +1 -3
  181. package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorYubioOtpRequest.js +1 -3
  182. package/transpiled/@bitwarden/jslib/models/response/apiKeyResponse.js +1 -3
  183. package/transpiled/@bitwarden/jslib/models/response/attachmentResponse.js +1 -3
  184. package/transpiled/@bitwarden/jslib/models/response/baseResponse.js +1 -3
  185. package/transpiled/@bitwarden/jslib/models/response/billingResponse.js +4 -12
  186. package/transpiled/@bitwarden/jslib/models/response/breachAccountResponse.js +1 -3
  187. package/transpiled/@bitwarden/jslib/models/response/cipherResponse.js +1 -3
  188. package/transpiled/@bitwarden/jslib/models/response/collectionResponse.js +3 -9
  189. package/transpiled/@bitwarden/jslib/models/response/deviceResponse.js +1 -3
  190. package/transpiled/@bitwarden/jslib/models/response/domainsResponse.js +1 -3
  191. package/transpiled/@bitwarden/jslib/models/response/errorResponse.js +1 -3
  192. package/transpiled/@bitwarden/jslib/models/response/eventResponse.js +1 -3
  193. package/transpiled/@bitwarden/jslib/models/response/folderResponse.js +1 -3
  194. package/transpiled/@bitwarden/jslib/models/response/globalDomainResponse.js +1 -3
  195. package/transpiled/@bitwarden/jslib/models/response/groupResponse.js +2 -6
  196. package/transpiled/@bitwarden/jslib/models/response/identityTokenResponse.js +1 -3
  197. package/transpiled/@bitwarden/jslib/models/response/identityTwoFactorResponse.js +1 -3
  198. package/transpiled/@bitwarden/jslib/models/response/keysResponse.js +1 -3
  199. package/transpiled/@bitwarden/jslib/models/response/listResponse.js +1 -3
  200. package/transpiled/@bitwarden/jslib/models/response/notificationResponse.js +4 -12
  201. package/transpiled/@bitwarden/jslib/models/response/organizationResponse.js +1 -3
  202. package/transpiled/@bitwarden/jslib/models/response/organizationSubscriptionResponse.js +1 -3
  203. package/transpiled/@bitwarden/jslib/models/response/organizationUserResponse.js +3 -9
  204. package/transpiled/@bitwarden/jslib/models/response/passwordHistoryResponse.js +1 -3
  205. package/transpiled/@bitwarden/jslib/models/response/paymentResponse.js +1 -3
  206. package/transpiled/@bitwarden/jslib/models/response/planResponse.js +1 -3
  207. package/transpiled/@bitwarden/jslib/models/response/policyResponse.js +1 -3
  208. package/transpiled/@bitwarden/jslib/models/response/preloginResponse.js +1 -3
  209. package/transpiled/@bitwarden/jslib/models/response/profileOrganizationResponse.js +1 -3
  210. package/transpiled/@bitwarden/jslib/models/response/profileResponse.js +1 -3
  211. package/transpiled/@bitwarden/jslib/models/response/selectionReadOnlyResponse.js +1 -3
  212. package/transpiled/@bitwarden/jslib/models/response/sendAccessResponse.js +1 -3
  213. package/transpiled/@bitwarden/jslib/models/response/sendResponse.js +1 -3
  214. package/transpiled/@bitwarden/jslib/models/response/subscriptionResponse.js +4 -12
  215. package/transpiled/@bitwarden/jslib/models/response/syncResponse.js +1 -3
  216. package/transpiled/@bitwarden/jslib/models/response/taxInfoResponse.js +1 -3
  217. package/transpiled/@bitwarden/jslib/models/response/twoFactorAuthenticatorResponse.js +1 -3
  218. package/transpiled/@bitwarden/jslib/models/response/twoFactorDuoResponse.js +1 -3
  219. package/transpiled/@bitwarden/jslib/models/response/twoFactorEmailResponse.js +1 -3
  220. package/transpiled/@bitwarden/jslib/models/response/twoFactorProviderResponse.js +1 -3
  221. package/transpiled/@bitwarden/jslib/models/response/twoFactorRescoverResponse.js +1 -3
  222. package/transpiled/@bitwarden/jslib/models/response/twoFactorU2fResponse.js +3 -9
  223. package/transpiled/@bitwarden/jslib/models/response/twoFactorYubiKeyResponse.js +1 -3
  224. package/transpiled/@bitwarden/jslib/models/response/userKeyResponse.js +1 -3
  225. package/transpiled/@bitwarden/jslib/models/view/attachmentView.js +1 -3
  226. package/transpiled/@bitwarden/jslib/models/view/cardView.js +1 -3
  227. package/transpiled/@bitwarden/jslib/models/view/cipherView.js +1 -3
  228. package/transpiled/@bitwarden/jslib/models/view/fieldView.js +1 -3
  229. package/transpiled/@bitwarden/jslib/models/view/identityView.js +1 -3
  230. package/transpiled/@bitwarden/jslib/models/view/loginUriView.js +1 -3
  231. package/transpiled/@bitwarden/jslib/models/view/loginView.js +1 -3
  232. package/transpiled/@bitwarden/jslib/models/view/secureNoteView.js +1 -3
  233. package/transpiled/@bitwarden/jslib/models/view/sendFileView.js +1 -3
  234. package/transpiled/@bitwarden/jslib/models/view/sendTextView.js +1 -3
  235. package/transpiled/@bitwarden/jslib/models/view/sendView.js +1 -3
  236. package/transpiled/@bitwarden/jslib/services/api.service.js +112 -336
  237. package/transpiled/@bitwarden/jslib/services/appId.service.js +2 -6
  238. package/transpiled/@bitwarden/jslib/services/audit.service.js +3 -9
  239. package/transpiled/@bitwarden/jslib/services/auth.service.js +10 -30
  240. package/transpiled/@bitwarden/jslib/services/broadcaster.service.js +1 -3
  241. package/transpiled/@bitwarden/jslib/services/cipher.service.js +46 -138
  242. package/transpiled/@bitwarden/jslib/services/collection.service.js +12 -36
  243. package/transpiled/@bitwarden/jslib/services/container.service.js +1 -3
  244. package/transpiled/@bitwarden/jslib/services/crypto.service.js +39 -117
  245. package/transpiled/@bitwarden/jslib/services/environment.service.js +3 -9
  246. package/transpiled/@bitwarden/jslib/services/event.service.js +4 -12
  247. package/transpiled/@bitwarden/jslib/services/export.service.js +7 -21
  248. package/transpiled/@bitwarden/jslib/services/folder.service.js +13 -39
  249. package/transpiled/@bitwarden/jslib/services/i18n.service.js +3 -9
  250. package/transpiled/@bitwarden/jslib/services/import.service.js +3 -9
  251. package/transpiled/@bitwarden/jslib/services/lowdbStorage.service.js +1 -3
  252. package/transpiled/@bitwarden/jslib/services/nodeApi.service.js +1 -3
  253. package/transpiled/@bitwarden/jslib/services/nodeCryptoFunction.service.js +6 -18
  254. package/transpiled/@bitwarden/jslib/services/noopMessaging.service.js +1 -3
  255. package/transpiled/@bitwarden/jslib/services/notifications.service.js +8 -24
  256. package/transpiled/@bitwarden/jslib/services/passwordGeneration.service.js +16 -48
  257. package/transpiled/@bitwarden/jslib/services/policy.service.js +5 -15
  258. package/transpiled/@bitwarden/jslib/services/search.service.js +3 -9
  259. package/transpiled/@bitwarden/jslib/services/send.service.js +12 -36
  260. package/transpiled/@bitwarden/jslib/services/settings.service.js +6 -18
  261. package/transpiled/@bitwarden/jslib/services/state.service.js +1 -3
  262. package/transpiled/@bitwarden/jslib/services/sync.service.js +16 -48
  263. package/transpiled/@bitwarden/jslib/services/system.service.js +5 -15
  264. package/transpiled/@bitwarden/jslib/services/token.service.js +7 -21
  265. package/transpiled/@bitwarden/jslib/services/totp.service.js +4 -12
  266. package/transpiled/@bitwarden/jslib/services/user.service.js +13 -39
  267. package/transpiled/@bitwarden/jslib/services/vaultTimeout.service.js +8 -24
  268. package/transpiled/@bitwarden/jslib/services/webCryptoFunction.service.js +14 -42
  269. package/transpiled/CozyUtils.js +12 -22
  270. package/transpiled/CozyUtils.spec.js +6 -30
  271. package/transpiled/HtmlStorageService.js +2 -6
  272. package/transpiled/MemoryStorageService.js +1 -3
  273. package/transpiled/NodeEnvSecureStorageService.js +5 -15
  274. package/transpiled/NodeVaultClient.js +1 -3
  275. package/transpiled/StrippedWebPlatformUtilsService.js +1 -3
  276. package/transpiled/WebPlatformUtilsService.js +2 -6
  277. package/transpiled/WebVaultClient.js +66 -156
  278. package/transpiled/WebVaultClient.spec.js +6 -30
  279. package/transpiled/__mocks__/WebVaultClient.js +1 -3
  280. package/transpiled/components/UnlockForm.js +1 -5
  281. package/transpiled/components/UnlockForm.spec.js +3 -15
  282. package/transpiled/components/VaultContext.js +2 -6
  283. package/transpiled/components/VaultContext.spec.js +1 -5
  284. package/transpiled/components/VaultUnlocker.js +2 -6
  285. package/transpiled/components/defaults.js +2 -6
  286. package/transpiled/components/defaults.spec.js +3 -15
  287. package/transpiled/components/vaultUnlockContext.js +2 -6
  288. package/transpiled/components/vaultUnlockContext.spec.js +13 -29
@@ -43,9 +43,7 @@ var Keys = {
43
43
  kdfIterations: 'kdfIterations',
44
44
  organizationsPrefix: 'organizations_'
45
45
  };
46
- export var UserService =
47
- /*#__PURE__*/
48
- function () {
46
+ export var UserService = /*#__PURE__*/function () {
49
47
  function UserService(tokenService, storageService) {
50
48
  _classCallCheck(this, UserService);
51
49
 
@@ -71,9 +69,7 @@ function () {
71
69
  }, {
72
70
  key: "getUserId",
73
71
  value: function getUserId() {
74
- return __awaiter(this, void 0, void 0,
75
- /*#__PURE__*/
76
- _regeneratorRuntime.mark(function _callee() {
72
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
77
73
  return _regeneratorRuntime.wrap(function _callee$(_context) {
78
74
  while (1) {
79
75
  switch (_context.prev = _context.next) {
@@ -103,9 +99,7 @@ function () {
103
99
  }, {
104
100
  key: "getEmail",
105
101
  value: function getEmail() {
106
- return __awaiter(this, void 0, void 0,
107
- /*#__PURE__*/
108
- _regeneratorRuntime.mark(function _callee2() {
102
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
109
103
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
110
104
  while (1) {
111
105
  switch (_context2.prev = _context2.next) {
@@ -135,9 +129,7 @@ function () {
135
129
  }, {
136
130
  key: "getSecurityStamp",
137
131
  value: function getSecurityStamp() {
138
- return __awaiter(this, void 0, void 0,
139
- /*#__PURE__*/
140
- _regeneratorRuntime.mark(function _callee3() {
132
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
141
133
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
142
134
  while (1) {
143
135
  switch (_context3.prev = _context3.next) {
@@ -167,9 +159,7 @@ function () {
167
159
  }, {
168
160
  key: "getKdf",
169
161
  value: function getKdf() {
170
- return __awaiter(this, void 0, void 0,
171
- /*#__PURE__*/
172
- _regeneratorRuntime.mark(function _callee4() {
162
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
173
163
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
174
164
  while (1) {
175
165
  switch (_context4.prev = _context4.next) {
@@ -199,9 +189,7 @@ function () {
199
189
  }, {
200
190
  key: "getKdfIterations",
201
191
  value: function getKdfIterations() {
202
- return __awaiter(this, void 0, void 0,
203
- /*#__PURE__*/
204
- _regeneratorRuntime.mark(function _callee5() {
192
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
205
193
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
206
194
  while (1) {
207
195
  switch (_context5.prev = _context5.next) {
@@ -231,9 +219,7 @@ function () {
231
219
  }, {
232
220
  key: "clear",
233
221
  value: function clear() {
234
- return __awaiter(this, void 0, void 0,
235
- /*#__PURE__*/
236
- _regeneratorRuntime.mark(function _callee6() {
222
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
237
223
  var userId;
238
224
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
239
225
  while (1) {
@@ -263,9 +249,7 @@ function () {
263
249
  }, {
264
250
  key: "isAuthenticated",
265
251
  value: function isAuthenticated() {
266
- return __awaiter(this, void 0, void 0,
267
- /*#__PURE__*/
268
- _regeneratorRuntime.mark(function _callee7() {
252
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
269
253
  var token, userId;
270
254
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
271
255
  while (1) {
@@ -303,9 +287,7 @@ function () {
303
287
  }, {
304
288
  key: "canAccessPremium",
305
289
  value: function canAccessPremium() {
306
- return __awaiter(this, void 0, void 0,
307
- /*#__PURE__*/
308
- _regeneratorRuntime.mark(function _callee8() {
290
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
309
291
  var authed, tokenPremium, orgs, i;
310
292
  return _regeneratorRuntime.wrap(function _callee8$(_context8) {
311
293
  while (1) {
@@ -374,9 +356,7 @@ function () {
374
356
  }, {
375
357
  key: "getOrganization",
376
358
  value: function getOrganization(id) {
377
- return __awaiter(this, void 0, void 0,
378
- /*#__PURE__*/
379
- _regeneratorRuntime.mark(function _callee9() {
359
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
380
360
  var userId, organizations;
381
361
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
382
362
  while (1) {
@@ -414,9 +394,7 @@ function () {
414
394
  }, {
415
395
  key: "getAllOrganizations",
416
396
  value: function getAllOrganizations() {
417
- return __awaiter(this, void 0, void 0,
418
- /*#__PURE__*/
419
- _regeneratorRuntime.mark(function _callee10() {
397
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
420
398
  var userId, organizations, response, id;
421
399
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
422
400
  while (1) {
@@ -453,9 +431,7 @@ function () {
453
431
  }, {
454
432
  key: "replaceOrganizations",
455
433
  value: function replaceOrganizations(organizations) {
456
- return __awaiter(this, void 0, void 0,
457
- /*#__PURE__*/
458
- _regeneratorRuntime.mark(function _callee11() {
434
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
459
435
  var userId;
460
436
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
461
437
  while (1) {
@@ -480,9 +456,7 @@ function () {
480
456
  }, {
481
457
  key: "clearOrganizations",
482
458
  value: function clearOrganizations(userId) {
483
- return __awaiter(this, void 0, void 0,
484
- /*#__PURE__*/
485
- _regeneratorRuntime.mark(function _callee12() {
459
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
486
460
  return _regeneratorRuntime.wrap(function _callee12$(_context12) {
487
461
  while (1) {
488
462
  switch (_context12.prev = _context12.next) {
@@ -35,9 +35,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
35
35
  };
36
36
 
37
37
  import { ConstantsService } from './constants.service';
38
- export var VaultTimeoutService =
39
- /*#__PURE__*/
40
- function () {
38
+ export var VaultTimeoutService = /*#__PURE__*/function () {
41
39
  function VaultTimeoutService(cipherService, folderService, collectionService, cryptoService, platformUtilsService, storageService, messagingService, searchService, userService, tokenService) {
42
40
  var lockedCallback = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : null;
43
41
  var loggedOutCallback = arguments.length > 11 && arguments[11] !== undefined ? arguments[11] : null;
@@ -83,9 +81,7 @@ function () {
83
81
  }, {
84
82
  key: "isLocked",
85
83
  value: function isLocked() {
86
- return __awaiter(this, void 0, void 0,
87
- /*#__PURE__*/
88
- _regeneratorRuntime.mark(function _callee() {
84
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
89
85
  var hasKey;
90
86
  return _regeneratorRuntime.wrap(function _callee$(_context) {
91
87
  while (1) {
@@ -137,9 +133,7 @@ function () {
137
133
  }, {
138
134
  key: "checkVaultTimeout",
139
135
  value: function checkVaultTimeout() {
140
- return __awaiter(this, void 0, void 0,
141
- /*#__PURE__*/
142
- _regeneratorRuntime.mark(function _callee2() {
136
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
143
137
  var authed, vaultTimeout, lastActive, vaultTimeoutSeconds, diffSeconds, timeoutAction;
144
138
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
145
139
  while (1) {
@@ -262,9 +256,7 @@ function () {
262
256
  key: "lock",
263
257
  value: function lock() {
264
258
  var allowSoftLock = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
265
- return __awaiter(this, void 0, void 0,
266
- /*#__PURE__*/
267
- _regeneratorRuntime.mark(function _callee3() {
259
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
268
260
  var authed, biometricLocked;
269
261
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
270
262
  while (1) {
@@ -345,9 +337,7 @@ function () {
345
337
  }, {
346
338
  key: "logOut",
347
339
  value: function logOut() {
348
- return __awaiter(this, void 0, void 0,
349
- /*#__PURE__*/
350
- _regeneratorRuntime.mark(function _callee4() {
340
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
351
341
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
352
342
  while (1) {
353
343
  switch (_context4.prev = _context4.next) {
@@ -371,9 +361,7 @@ function () {
371
361
  }, {
372
362
  key: "setVaultTimeoutOptions",
373
363
  value: function setVaultTimeoutOptions(timeout, action) {
374
- return __awaiter(this, void 0, void 0,
375
- /*#__PURE__*/
376
- _regeneratorRuntime.mark(function _callee5() {
364
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
377
365
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
378
366
  while (1) {
379
367
  switch (_context5.prev = _context5.next) {
@@ -404,9 +392,7 @@ function () {
404
392
  }, {
405
393
  key: "isPinLockSet",
406
394
  value: function isPinLockSet() {
407
- return __awaiter(this, void 0, void 0,
408
- /*#__PURE__*/
409
- _regeneratorRuntime.mark(function _callee6() {
395
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
410
396
  var protectedPin, pinProtectedKey;
411
397
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
412
398
  while (1) {
@@ -435,9 +421,7 @@ function () {
435
421
  }, {
436
422
  key: "isBiometricLockSet",
437
423
  value: function isBiometricLockSet() {
438
- return __awaiter(this, void 0, void 0,
439
- /*#__PURE__*/
440
- _regeneratorRuntime.mark(function _callee7() {
424
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
441
425
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
442
426
  while (1) {
443
427
  switch (_context7.prev = _context7.next) {
@@ -37,9 +37,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
37
37
  import * as forge from "../../../stubs/node-forge.js";
38
38
  import { Utils } from '../misc/utils';
39
39
  import { DecryptParameters } from '../models/domain/decryptParameters';
40
- export var WebCryptoFunctionService =
41
- /*#__PURE__*/
42
- function () {
40
+ export var WebCryptoFunctionService = /*#__PURE__*/function () {
43
41
  function WebCryptoFunctionService(win, platformUtilsService) {
44
42
  _classCallCheck(this, WebCryptoFunctionService);
45
43
 
@@ -55,9 +53,7 @@ function () {
55
53
  _createClass(WebCryptoFunctionService, [{
56
54
  key: "pbkdf2",
57
55
  value: function pbkdf2(password, salt, algorithm, iterations) {
58
- return __awaiter(this, void 0, void 0,
59
- /*#__PURE__*/
60
- _regeneratorRuntime.mark(function _callee() {
56
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
61
57
  var forgeLen, passwordBytes, saltBytes, derivedKeyBytes, wcLen, passwordBuf, saltBuf, pbkdf2Params, impKey;
62
58
  return _regeneratorRuntime.wrap(function _callee$(_context) {
63
59
  while (1) {
@@ -110,9 +106,7 @@ function () {
110
106
  }, {
111
107
  key: "hkdf",
112
108
  value: function hkdf(ikm, salt, info, outputByteSize, algorithm) {
113
- return __awaiter(this, void 0, void 0,
114
- /*#__PURE__*/
115
- _regeneratorRuntime.mark(function _callee2() {
109
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
116
110
  var saltBuf, infoBuf, hkdfParams, impKey;
117
111
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
118
112
  while (1) {
@@ -153,9 +147,7 @@ function () {
153
147
  }, {
154
148
  key: "hkdfExpand",
155
149
  value: function hkdfExpand(prk, info, outputByteSize, algorithm) {
156
- return __awaiter(this, void 0, void 0,
157
- /*#__PURE__*/
158
- _regeneratorRuntime.mark(function _callee3() {
150
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
159
151
  var hashLen, prkArr, infoBuf, infoArr, runningOkmLength, previousT, n, okm, i, t;
160
152
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
161
153
  while (1) {
@@ -235,9 +227,7 @@ function () {
235
227
  }, {
236
228
  key: "hash",
237
229
  value: function hash(value, algorithm) {
238
- return __awaiter(this, void 0, void 0,
239
- /*#__PURE__*/
240
- _regeneratorRuntime.mark(function _callee4() {
230
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
241
231
  var md, valueBytes, valueBuf;
242
232
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
243
233
  while (1) {
@@ -274,9 +264,7 @@ function () {
274
264
  }, {
275
265
  key: "hmac",
276
266
  value: function hmac(value, key, algorithm) {
277
- return __awaiter(this, void 0, void 0,
278
- /*#__PURE__*/
279
- _regeneratorRuntime.mark(function _callee5() {
267
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
280
268
  var hmac, keyBytes, valueBytes, signingAlgorithm, impKey;
281
269
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
282
270
  while (1) {
@@ -326,9 +314,7 @@ function () {
326
314
  }, {
327
315
  key: "compare",
328
316
  value: function compare(a, b) {
329
- return __awaiter(this, void 0, void 0,
330
- /*#__PURE__*/
331
- _regeneratorRuntime.mark(function _callee6() {
317
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
332
318
  var macKey, signingAlgorithm, impKey, mac1, mac2, arr1, arr2, i;
333
319
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
334
320
  while (1) {
@@ -414,9 +400,7 @@ function () {
414
400
  }, {
415
401
  key: "compareFast",
416
402
  value: function compareFast(a, b) {
417
- return __awaiter(this, void 0, void 0,
418
- /*#__PURE__*/
419
- _regeneratorRuntime.mark(function _callee7() {
403
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
420
404
  var rand, bytes, buffer, i, macKey, hmac, mac1, mac2, equals;
421
405
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
422
406
  while (1) {
@@ -456,9 +440,7 @@ function () {
456
440
  }, {
457
441
  key: "aesEncrypt",
458
442
  value: function aesEncrypt(data, iv, key) {
459
- return __awaiter(this, void 0, void 0,
460
- /*#__PURE__*/
461
- _regeneratorRuntime.mark(function _callee8() {
443
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
462
444
  var impKey;
463
445
  return _regeneratorRuntime.wrap(function _callee8$(_context8) {
464
446
  while (1) {
@@ -545,9 +527,7 @@ function () {
545
527
  }, {
546
528
  key: "aesDecrypt",
547
529
  value: function aesDecrypt(data, iv, key) {
548
- return __awaiter(this, void 0, void 0,
549
- /*#__PURE__*/
550
- _regeneratorRuntime.mark(function _callee9() {
530
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
551
531
  var impKey;
552
532
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
553
533
  while (1) {
@@ -580,9 +560,7 @@ function () {
580
560
  }, {
581
561
  key: "rsaEncrypt",
582
562
  value: function rsaEncrypt(data, publicKey, algorithm) {
583
- return __awaiter(this, void 0, void 0,
584
- /*#__PURE__*/
585
- _regeneratorRuntime.mark(function _callee10() {
563
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
586
564
  var rsaParams, impKey;
587
565
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
588
566
  while (1) {
@@ -618,9 +596,7 @@ function () {
618
596
  }, {
619
597
  key: "rsaDecrypt",
620
598
  value: function rsaDecrypt(data, privateKey, algorithm) {
621
- return __awaiter(this, void 0, void 0,
622
- /*#__PURE__*/
623
- _regeneratorRuntime.mark(function _callee11() {
599
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
624
600
  var rsaParams, impKey;
625
601
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
626
602
  while (1) {
@@ -656,9 +632,7 @@ function () {
656
632
  }, {
657
633
  key: "rsaExtractPublicKey",
658
634
  value: function rsaExtractPublicKey(privateKey) {
659
- return __awaiter(this, void 0, void 0,
660
- /*#__PURE__*/
661
- _regeneratorRuntime.mark(function _callee12() {
635
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
662
636
  var rsaParams, impPrivateKey, jwkPrivateKey, jwkPublicKeyParams, impPublicKey;
663
637
  return _regeneratorRuntime.wrap(function _callee12$(_context12) {
664
638
  while (1) {
@@ -710,9 +684,7 @@ function () {
710
684
  }, {
711
685
  key: "rsaGenerateKeyPair",
712
686
  value: function rsaGenerateKeyPair(length) {
713
- return __awaiter(this, void 0, void 0,
714
- /*#__PURE__*/
715
- _regeneratorRuntime.mark(function _callee13() {
687
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
716
688
  var rsaParams, keyPair, publicKey, privateKey;
717
689
  return _regeneratorRuntime.wrap(function _callee13$(_context13) {
718
690
  while (1) {
@@ -65,9 +65,7 @@ export function getHashedPassword(_x, _x2, _x3, _x4) {
65
65
  */
66
66
 
67
67
  function _getHashedPassword() {
68
- _getHashedPassword = _asyncToGenerator(
69
- /*#__PURE__*/
70
- _regeneratorRuntime.mark(function _callee3(instance_or_email, masterPassword, kdf, kdfIterations) {
68
+ _getHashedPassword = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(instance_or_email, masterPassword, kdf, kdfIterations) {
71
69
  var email, cryptoService, key, hashedPassword;
72
70
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
73
71
  while (1) {
@@ -112,13 +110,9 @@ function getLightCryptoService() {
112
110
  */
113
111
 
114
112
 
115
- export var checkHasCiphers =
116
- /*#__PURE__*/
117
- function () {
118
- var _ref = _asyncToGenerator(
119
- /*#__PURE__*/
120
- _regeneratorRuntime.mark(function _callee(cozyClient) {
121
- var _ref2, ciphers;
113
+ export var checkHasCiphers = /*#__PURE__*/function () {
114
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(cozyClient) {
115
+ var _yield$cozyClient$que, ciphers;
122
116
 
123
117
  return _regeneratorRuntime.wrap(function _callee$(_context) {
124
118
  while (1) {
@@ -129,8 +123,8 @@ function () {
129
123
  return cozyClient.query(Q(CIPHERS_DOCTYPE));
130
124
 
131
125
  case 3:
132
- _ref2 = _context.sent;
133
- ciphers = _ref2.data;
126
+ _yield$cozyClient$que = _context.sent;
127
+ ciphers = _yield$cozyClient$que.data;
134
128
  return _context.abrupt("return", ciphers.length > 0);
135
129
 
136
130
  case 8:
@@ -166,13 +160,9 @@ function () {
166
160
  * @return {bool} whether the extension is installed or not
167
161
  */
168
162
 
169
- export var checkHasInstalledExtension =
170
- /*#__PURE__*/
171
- function () {
172
- var _ref3 = _asyncToGenerator(
173
- /*#__PURE__*/
174
- _regeneratorRuntime.mark(function _callee2(cozyClient) {
175
- var _ref4, docs, _docs$filter, _docs$filter2, bitwardenSettings;
163
+ export var checkHasInstalledExtension = /*#__PURE__*/function () {
164
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(cozyClient) {
165
+ var _yield$cozyClient$get, docs, _docs$filter, _docs$filter2, bitwardenSettings;
176
166
 
177
167
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
178
168
  while (1) {
@@ -183,8 +173,8 @@ function () {
183
173
  return cozyClient.getStackClient().fetchJSON('GET', "/data/".concat(SETTINGS_DOCTYPE, "/_normal_docs"));
184
174
 
185
175
  case 3:
186
- _ref4 = _context2.sent;
187
- docs = _ref4.rows;
176
+ _yield$cozyClient$get = _context2.sent;
177
+ docs = _yield$cozyClient$get.rows;
188
178
  _docs$filter = docs.filter(function (doc) {
189
179
  return doc._id === 'io.cozy.settings.bitwarden';
190
180
  }), _docs$filter2 = _slicedToArray(_docs$filter, 1), bitwardenSettings = _docs$filter2[0];
@@ -214,6 +204,6 @@ function () {
214
204
  }));
215
205
 
216
206
  return function checkHasInstalledExtension(_x6) {
217
- return _ref3.apply(this, arguments);
207
+ return _ref2.apply(this, arguments);
218
208
  };
219
209
  }();
@@ -28,11 +28,7 @@ describe('CozyUtils', function () {
28
28
  }
29
29
  });
30
30
  });
31
- it('should return true',
32
- /*#__PURE__*/
33
- _asyncToGenerator(
34
- /*#__PURE__*/
35
- _regeneratorRuntime.mark(function _callee() {
31
+ it('should return true', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
36
32
  var hasCiphers;
37
33
  return _regeneratorRuntime.wrap(function _callee$(_context) {
38
34
  while (1) {
@@ -62,11 +58,7 @@ describe('CozyUtils', function () {
62
58
  }
63
59
  });
64
60
  });
65
- it('should return false',
66
- /*#__PURE__*/
67
- _asyncToGenerator(
68
- /*#__PURE__*/
69
- _regeneratorRuntime.mark(function _callee2() {
61
+ it('should return false', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
70
62
  var hasCiphers;
71
63
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
72
64
  while (1) {
@@ -95,11 +87,7 @@ describe('CozyUtils', function () {
95
87
  message: 'mock error'
96
88
  });
97
89
  });
98
- it('should return false',
99
- /*#__PURE__*/
100
- _asyncToGenerator(
101
- /*#__PURE__*/
102
- _regeneratorRuntime.mark(function _callee3() {
90
+ it('should return false', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
103
91
  var hasCiphers;
104
92
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
105
93
  while (1) {
@@ -133,11 +121,7 @@ describe('CozyUtils', function () {
133
121
  }]
134
122
  });
135
123
  });
136
- it('should return true',
137
- /*#__PURE__*/
138
- _asyncToGenerator(
139
- /*#__PURE__*/
140
- _regeneratorRuntime.mark(function _callee4() {
124
+ it('should return true', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
141
125
  var hasInstalledExtension;
142
126
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
143
127
  while (1) {
@@ -169,11 +153,7 @@ describe('CozyUtils', function () {
169
153
  }]
170
154
  });
171
155
  });
172
- it('should return false',
173
- /*#__PURE__*/
174
- _asyncToGenerator(
175
- /*#__PURE__*/
176
- _regeneratorRuntime.mark(function _callee5() {
156
+ it('should return false', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
177
157
  var hasInstalledExtension;
178
158
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
179
159
  while (1) {
@@ -202,11 +182,7 @@ describe('CozyUtils', function () {
202
182
  message: 'mock error'
203
183
  });
204
184
  });
205
- it('should return false',
206
- /*#__PURE__*/
207
- _asyncToGenerator(
208
- /*#__PURE__*/
209
- _regeneratorRuntime.mark(function _callee6() {
185
+ it('should return false', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
210
186
  var hasInstalledExtension;
211
187
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
212
188
  while (1) {
@@ -11,9 +11,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
11
  */
12
12
  import { ConstantsService } from './@bitwarden/jslib/services/constants.service';
13
13
 
14
- var HtmlStorageService =
15
- /*#__PURE__*/
16
- function () {
14
+ var HtmlStorageService = /*#__PURE__*/function () {
17
15
  function HtmlStorageService(platformUtilsService) {
18
16
  _classCallCheck(this, HtmlStorageService);
19
17
 
@@ -27,9 +25,7 @@ function () {
27
25
  _createClass(HtmlStorageService, [{
28
26
  key: "init",
29
27
  value: function () {
30
- var _init = _asyncToGenerator(
31
- /*#__PURE__*/
32
- _regeneratorRuntime.mark(function _callee() {
28
+ var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
33
29
  var lockOption;
34
30
  return _regeneratorRuntime.wrap(function _callee$(_context) {
35
31
  while (1) {
@@ -6,9 +6,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
6
6
  * in https://github.com/bitwarden/web which is licensed with the terms of the
7
7
  * Gnu Public License 3.0 (GPL 3.0)
8
8
  */
9
- var MemoryStorageService =
10
- /*#__PURE__*/
11
- function () {
9
+ var MemoryStorageService = /*#__PURE__*/function () {
12
10
  function MemoryStorageService() {
13
11
  _classCallCheck(this, MemoryStorageService);
14
12
 
@@ -11,9 +11,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
11
11
  import SymmetricCryptoKey from './SymmetricCryptoKey';
12
12
  import { Utils } from './@bitwarden/jslib/misc/utils';
13
13
 
14
- var NodeEnvSecureStorageService =
15
- /*#__PURE__*/
16
- function () {
14
+ var NodeEnvSecureStorageService = /*#__PURE__*/function () {
17
15
  function NodeEnvSecureStorageService(storageService, cryptoService) {
18
16
  _classCallCheck(this, NodeEnvSecureStorageService);
19
17
 
@@ -24,9 +22,7 @@ function () {
24
22
  _createClass(NodeEnvSecureStorageService, [{
25
23
  key: "get",
26
24
  value: function () {
27
- var _get = _asyncToGenerator(
28
- /*#__PURE__*/
29
- _regeneratorRuntime.mark(function _callee(key) {
25
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(key) {
30
26
  var value, obj;
31
27
  return _regeneratorRuntime.wrap(function _callee$(_context) {
32
28
  while (1) {
@@ -70,9 +66,7 @@ function () {
70
66
  }, {
71
67
  key: "save",
72
68
  value: function () {
73
- var _save = _asyncToGenerator(
74
- /*#__PURE__*/
75
- _regeneratorRuntime.mark(function _callee2(key, obj) {
69
+ var _save = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(key, obj) {
76
70
  var protectedObj;
77
71
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
78
72
  while (1) {
@@ -116,9 +110,7 @@ function () {
116
110
  }, {
117
111
  key: "encrypt",
118
112
  value: function () {
119
- var _encrypt = _asyncToGenerator(
120
- /*#__PURE__*/
121
- _regeneratorRuntime.mark(function _callee3(plainValue) {
113
+ var _encrypt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(plainValue) {
122
114
  var sessionKey, encValue;
123
115
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
124
116
  while (1) {
@@ -167,9 +159,7 @@ function () {
167
159
  }, {
168
160
  key: "decrypt",
169
161
  value: function () {
170
- var _decrypt = _asyncToGenerator(
171
- /*#__PURE__*/
172
- _regeneratorRuntime.mark(function _callee4(encValue) {
162
+ var _decrypt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(encValue) {
173
163
  var sessionKey, decValue;
174
164
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
175
165
  while (1) {
@@ -13,9 +13,7 @@ import MemoryStorageService from './MemoryStorageService';
13
13
  import NodeEnvSecureStorageService from './NodeEnvSecureStorageService';
14
14
  Utils.init();
15
15
 
16
- var NodeVaultClient =
17
- /*#__PURE__*/
18
- function (_WebVaultClient) {
16
+ var NodeVaultClient = /*#__PURE__*/function (_WebVaultClient) {
19
17
  _inherits(NodeVaultClient, _WebVaultClient);
20
18
 
21
19
  function NodeVaultClient() {
@@ -8,9 +8,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
8
8
  */
9
9
  import { DeviceType } from './@bitwarden/jslib/enums/deviceType';
10
10
 
11
- var StrippedWebPlatformUtilsService =
12
- /*#__PURE__*/
13
- function () {
11
+ var StrippedWebPlatformUtilsService = /*#__PURE__*/function () {
14
12
  function StrippedWebPlatformUtilsService() {
15
13
  _classCallCheck(this, StrippedWebPlatformUtilsService);
16
14
 
@@ -16,9 +16,7 @@ import swal from "./stubs/null.js";
16
16
  import StrippedWebPlatformUtilsService from './StrippedWebPlatformUtilsService';
17
17
  import { Utils } from './@bitwarden/jslib/misc/utils';
18
18
 
19
- var WebPlatformUtilsService =
20
- /*#__PURE__*/
21
- function (_StrippedWebPlatformU) {
19
+ var WebPlatformUtilsService = /*#__PURE__*/function (_StrippedWebPlatformU) {
22
20
  _inherits(WebPlatformUtilsService, _StrippedWebPlatformU);
23
21
 
24
22
  function WebPlatformUtilsService(i18nService, messagingService) {
@@ -152,9 +150,7 @@ function (_StrippedWebPlatformU) {
152
150
  }, {
153
151
  key: "showDialog",
154
152
  value: function () {
155
- var _showDialog = _asyncToGenerator(
156
- /*#__PURE__*/
157
- _regeneratorRuntime.mark(function _callee(text, title, confirmText, cancelText, type) {
153
+ var _showDialog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(text, title, confirmText, cancelText, type) {
158
154
  var buttons, contentDiv, icon, titleDiv, textDiv, confirmed;
159
155
  return _regeneratorRuntime.wrap(function _callee$(_context) {
160
156
  while (1) {