cozy-keys-lib 4.1.4 → 4.1.7

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
@@ -84,9 +84,7 @@ var isSupportedCipher = function isSupportedCipher(cipher) {
84
84
  */
85
85
 
86
86
 
87
- var WebVaultClient =
88
- /*#__PURE__*/
89
- function () {
87
+ var WebVaultClient = /*#__PURE__*/function () {
90
88
  /**
91
89
  * @constructor
92
90
  * @param {string} instance_or_email - Cozy instance URL or user email
@@ -140,12 +138,8 @@ function () {
140
138
  var cryptoService = new CryptoService(storageService, unsafeStorage ? storageService : secureStorageService, cryptoFunctionService);
141
139
  var tokenService = new TokenService(storageService);
142
140
  var appIdService = new AppIdService(storageService);
143
- var apiService = new ApiService(tokenService, platformUtilsService,
144
- /*#__PURE__*/
145
- function () {
146
- var _ref2 = _asyncToGenerator(
147
- /*#__PURE__*/
148
- _regeneratorRuntime.mark(function _callee(expired) {
141
+ var apiService = new ApiService(tokenService, platformUtilsService, /*#__PURE__*/function () {
142
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(expired) {
149
143
  return _regeneratorRuntime.wrap(function _callee$(_context) {
150
144
  while (1) {
151
145
  switch (_context.prev = _context.next) {
@@ -178,12 +172,8 @@ function () {
178
172
  var collectionService = new CollectionService(cryptoService, userService, storageService, i18nService);
179
173
  searchService = new SearchService(cipherService, platformUtilsService);
180
174
  var vaultTimeoutService = new VaultTimeoutService(cipherService, folderService, collectionService, cryptoService, platformUtilsService, storageService, messagingService, searchService, userService, null);
181
- var syncService = new SyncService(userService, apiService, settingsService, folderService, cipherService, cryptoService, collectionService, storageService, messagingService, policyService, sendService,
182
- /*#__PURE__*/
183
- function () {
184
- var _ref3 = _asyncToGenerator(
185
- /*#__PURE__*/
186
- _regeneratorRuntime.mark(function _callee2(expired) {
175
+ var syncService = new SyncService(userService, apiService, settingsService, folderService, cipherService, cryptoService, collectionService, storageService, messagingService, policyService, sendService, /*#__PURE__*/function () {
176
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(expired) {
187
177
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
188
178
  while (1) {
189
179
  switch (_context2.prev = _context2.next) {
@@ -305,9 +295,7 @@ function () {
305
295
  }, {
306
296
  key: "isLocked",
307
297
  value: function () {
308
- var _isLocked = _asyncToGenerator(
309
- /*#__PURE__*/
310
- _regeneratorRuntime.mark(function _callee3() {
298
+ var _isLocked = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
311
299
  var isAuthed, isLocked;
312
300
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
313
301
  while (1) {
@@ -343,9 +331,7 @@ function () {
343
331
  }, {
344
332
  key: "lock",
345
333
  value: function () {
346
- var _lock = _asyncToGenerator(
347
- /*#__PURE__*/
348
- _regeneratorRuntime.mark(function _callee4() {
334
+ var _lock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
349
335
  var lock;
350
336
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
351
337
  while (1) {
@@ -386,9 +372,7 @@ function () {
386
372
  }, {
387
373
  key: "login",
388
374
  value: function () {
389
- var _login = _asyncToGenerator(
390
- /*#__PURE__*/
391
- _regeneratorRuntime.mark(function _callee5(masterPassword) {
375
+ var _login = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(masterPassword) {
392
376
  var login;
393
377
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
394
378
  while (1) {
@@ -439,10 +423,8 @@ function () {
439
423
  }, {
440
424
  key: "changePassword",
441
425
  value: function () {
442
- var _changePassword = _asyncToGenerator(
443
- /*#__PURE__*/
444
- _regeneratorRuntime.mark(function _callee6(currentMasterPassword, newMasterPassword, newIterations, newKdf) {
445
- var _ref5, kdf, kdfIterations, currentPasswordHash, newPasswordHash, newEncryptionKey;
426
+ var _changePassword = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(currentMasterPassword, newMasterPassword, newIterations, newKdf) {
427
+ var _yield$this$computeNe, kdf, kdfIterations, currentPasswordHash, newPasswordHash, newEncryptionKey;
446
428
 
447
429
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
448
430
  while (1) {
@@ -452,12 +434,12 @@ function () {
452
434
  return this.computeNewHashAndKeys(currentMasterPassword, newMasterPassword, newIterations, newKdf);
453
435
 
454
436
  case 2:
455
- _ref5 = _context6.sent;
456
- kdf = _ref5.kdf;
457
- kdfIterations = _ref5.kdfIterations;
458
- currentPasswordHash = _ref5.currentPasswordHash;
459
- newPasswordHash = _ref5.newPasswordHash;
460
- newEncryptionKey = _ref5.newEncryptionKey;
437
+ _yield$this$computeNe = _context6.sent;
438
+ kdf = _yield$this$computeNe.kdf;
439
+ kdfIterations = _yield$this$computeNe.kdfIterations;
440
+ currentPasswordHash = _yield$this$computeNe.currentPasswordHash;
441
+ newPasswordHash = _yield$this$computeNe.newPasswordHash;
442
+ newEncryptionKey = _yield$this$computeNe.newEncryptionKey;
461
443
  return _context6.abrupt("return", this.bitwardenChangePassword(currentPasswordHash, newPasswordHash, newEncryptionKey, kdf, kdfIterations));
462
444
 
463
445
  case 9:
@@ -487,9 +469,7 @@ function () {
487
469
  }, {
488
470
  key: "computeNewHashAndKeys",
489
471
  value: function () {
490
- var _computeNewHashAndKeys = _asyncToGenerator(
491
- /*#__PURE__*/
492
- _regeneratorRuntime.mark(function _callee7(currentMasterPassword, newMasterPassword, newIterations, newKdf) {
472
+ var _computeNewHashAndKeys = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(currentMasterPassword, newMasterPassword, newIterations, newKdf) {
493
473
  var currentPasswordHash, kdf, kdfIterations, newMasterKey, newPasswordHash, currentEncryptionKey, newEncryptionKey;
494
474
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
495
475
  while (1) {
@@ -584,9 +564,7 @@ function () {
584
564
  }, {
585
565
  key: "bitwardenChangePassword",
586
566
  value: function () {
587
- var _bitwardenChangePassword = _asyncToGenerator(
588
- /*#__PURE__*/
589
- _regeneratorRuntime.mark(function _callee8(currentPasswordHash, newPasswordHash, encryptionKey, kdf, kdfIterations) {
567
+ var _bitwardenChangePassword = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(currentPasswordHash, newPasswordHash, encryptionKey, kdf, kdfIterations) {
590
568
  var request, res;
591
569
  return _regeneratorRuntime.wrap(function _callee8$(_context8) {
592
570
  while (1) {
@@ -631,9 +609,7 @@ function () {
631
609
  }, {
632
610
  key: "computeMasterKey",
633
611
  value: function () {
634
- var _computeMasterKey = _asyncToGenerator(
635
- /*#__PURE__*/
636
- _regeneratorRuntime.mark(function _callee9(masterPassword, iterations, kdf) {
612
+ var _computeMasterKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(masterPassword, iterations, kdf) {
637
613
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
638
614
  while (1) {
639
615
  switch (_context9.prev = _context9.next) {
@@ -669,9 +645,7 @@ function () {
669
645
  }, {
670
646
  key: "computeHashedPassword",
671
647
  value: function () {
672
- var _computeHashedPassword = _asyncToGenerator(
673
- /*#__PURE__*/
674
- _regeneratorRuntime.mark(function _callee10(masterPassword, masterKey) {
648
+ var _computeHashedPassword = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(masterPassword, masterKey) {
675
649
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
676
650
  while (1) {
677
651
  switch (_context10.prev = _context10.next) {
@@ -704,9 +678,7 @@ function () {
704
678
  }, {
705
679
  key: "getEncryptionKey",
706
680
  value: function () {
707
- var _getEncryptionKey = _asyncToGenerator(
708
- /*#__PURE__*/
709
- _regeneratorRuntime.mark(function _callee11() {
681
+ var _getEncryptionKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
710
682
  return _regeneratorRuntime.wrap(function _callee11$(_context11) {
711
683
  while (1) {
712
684
  switch (_context11.prev = _context11.next) {
@@ -739,9 +711,7 @@ function () {
739
711
  }, {
740
712
  key: "getMasterKey",
741
713
  value: function () {
742
- var _getMasterKey = _asyncToGenerator(
743
- /*#__PURE__*/
744
- _regeneratorRuntime.mark(function _callee12() {
714
+ var _getMasterKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
745
715
  return _regeneratorRuntime.wrap(function _callee12$(_context12) {
746
716
  while (1) {
747
717
  switch (_context12.prev = _context12.next) {
@@ -778,10 +748,8 @@ function () {
778
748
  }, {
779
749
  key: "generateEncryptionKey",
780
750
  value: function () {
781
- var _generateEncryptionKey = _asyncToGenerator(
782
- /*#__PURE__*/
783
- _regeneratorRuntime.mark(function _callee13() {
784
- var encKey, _ref6, _ref7, key, encryptedKey;
751
+ var _generateEncryptionKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
752
+ var encKey, _yield$this$cryptoSer, _yield$this$cryptoSer2, key, encryptedKey;
785
753
 
786
754
  return _regeneratorRuntime.wrap(function _callee13$(_context13) {
787
755
  while (1) {
@@ -805,10 +773,10 @@ function () {
805
773
  return this.cryptoService.makeEncKey(encKey);
806
774
 
807
775
  case 7:
808
- _ref6 = _context13.sent;
809
- _ref7 = _slicedToArray(_ref6, 2);
810
- key = _ref7[0];
811
- encryptedKey = _ref7[1];
776
+ _yield$this$cryptoSer = _context13.sent;
777
+ _yield$this$cryptoSer2 = _slicedToArray(_yield$this$cryptoSer, 2);
778
+ key = _yield$this$cryptoSer2[0];
779
+ encryptedKey = _yield$this$cryptoSer2[1];
812
780
  return _context13.abrupt("return", {
813
781
  key: key,
814
782
  encryptedKey: encryptedKey
@@ -839,10 +807,8 @@ function () {
839
807
  }, {
840
808
  key: "encryptEncryptionKey",
841
809
  value: function () {
842
- var _encryptEncryptionKey = _asyncToGenerator(
843
- /*#__PURE__*/
844
- _regeneratorRuntime.mark(function _callee14(encryptionKey, masterKey) {
845
- var key, toEncrypt, _ref8, _ref9, encrypted;
810
+ var _encryptEncryptionKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(encryptionKey, masterKey) {
811
+ var key, toEncrypt, _yield$this$cryptoSer3, _yield$this$cryptoSer4, encrypted;
846
812
 
847
813
  return _regeneratorRuntime.wrap(function _callee14$(_context14) {
848
814
  while (1) {
@@ -868,9 +834,9 @@ function () {
868
834
  return this.cryptoService.buildEncKey(key, toEncrypt);
869
835
 
870
836
  case 9:
871
- _ref8 = _context14.sent;
872
- _ref9 = _slicedToArray(_ref8, 2);
873
- encrypted = _ref9[1];
837
+ _yield$this$cryptoSer3 = _context14.sent;
838
+ _yield$this$cryptoSer4 = _slicedToArray(_yield$this$cryptoSer3, 2);
839
+ encrypted = _yield$this$cryptoSer4[1];
874
840
  return _context14.abrupt("return", encrypted);
875
841
 
876
842
  case 13:
@@ -897,9 +863,7 @@ function () {
897
863
  }, {
898
864
  key: "unlock",
899
865
  value: function () {
900
- var _unlock = _asyncToGenerator(
901
- /*#__PURE__*/
902
- _regeneratorRuntime.mark(function _callee15(masterPassword) {
866
+ var _unlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(masterPassword) {
903
867
  var isAuthed, kdf, kdfIterations, storedKeyHash, key, keyHash;
904
868
  return _regeneratorRuntime.wrap(function _callee15$(_context15) {
905
869
  while (1) {
@@ -985,9 +949,7 @@ function () {
985
949
  }, {
986
950
  key: "sync",
987
951
  value: function () {
988
- var _sync = _asyncToGenerator(
989
- /*#__PURE__*/
990
- _regeneratorRuntime.mark(function _callee16() {
952
+ var _sync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
991
953
  var sync;
992
954
  return _regeneratorRuntime.wrap(function _callee16$(_context16) {
993
955
  while (1) {
@@ -1030,10 +992,8 @@ function () {
1030
992
  }, {
1031
993
  key: "getAll",
1032
994
  value: function () {
1033
- var _getAll = _asyncToGenerator(
1034
- /*#__PURE__*/
1035
- _regeneratorRuntime.mark(function _callee17() {
1036
- var _ref10,
995
+ var _getAll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {
996
+ var _ref5,
1037
997
  type,
1038
998
  all,
1039
999
  _args17 = arguments;
@@ -1042,7 +1002,7 @@ function () {
1042
1002
  while (1) {
1043
1003
  switch (_context17.prev = _context17.next) {
1044
1004
  case 0:
1045
- _ref10 = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {}, type = _ref10.type;
1005
+ _ref5 = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {}, type = _ref5.type;
1046
1006
  _context17.next = 3;
1047
1007
  return this.cipherService.getAll();
1048
1008
 
@@ -1074,9 +1034,7 @@ function () {
1074
1034
  }, {
1075
1035
  key: "getAllLogins",
1076
1036
  value: function () {
1077
- var _getAllLogins = _asyncToGenerator(
1078
- /*#__PURE__*/
1079
- _regeneratorRuntime.mark(function _callee18() {
1037
+ var _getAllLogins = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {
1080
1038
  return _regeneratorRuntime.wrap(function _callee18$(_context18) {
1081
1039
  while (1) {
1082
1040
  switch (_context18.prev = _context18.next) {
@@ -1114,12 +1072,10 @@ function () {
1114
1072
  }, {
1115
1073
  key: "getAllDecrypted",
1116
1074
  value: function () {
1117
- var _getAllDecrypted = _asyncToGenerator(
1118
- /*#__PURE__*/
1119
- _regeneratorRuntime.mark(function _callee19() {
1075
+ var _getAllDecrypted = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
1120
1076
  var _this2 = this;
1121
1077
 
1122
- var _ref11,
1078
+ var _ref6,
1123
1079
  type,
1124
1080
  uri,
1125
1081
  all,
@@ -1130,7 +1086,7 @@ function () {
1130
1086
  while (1) {
1131
1087
  switch (_context19.prev = _context19.next) {
1132
1088
  case 0:
1133
- _ref11 = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {}, type = _ref11.type, uri = _ref11.uri;
1089
+ _ref6 = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {}, type = _ref6.type, uri = _ref6.uri;
1134
1090
  this.attachToGlobal();
1135
1091
 
1136
1092
  if (!uri) {
@@ -1181,9 +1137,7 @@ function () {
1181
1137
  }, {
1182
1138
  key: "getAllDecryptedLogins",
1183
1139
  value: function () {
1184
- var _getAllDecryptedLogins = _asyncToGenerator(
1185
- /*#__PURE__*/
1186
- _regeneratorRuntime.mark(function _callee20() {
1140
+ var _getAllDecryptedLogins = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20() {
1187
1141
  return _regeneratorRuntime.wrap(function _callee20$(_context20) {
1188
1142
  while (1) {
1189
1143
  switch (_context20.prev = _context20.next) {
@@ -1219,9 +1173,7 @@ function () {
1219
1173
  }, {
1220
1174
  key: "getAllDecryptedFor",
1221
1175
  value: function () {
1222
- var _getAllDecryptedFor = _asyncToGenerator(
1223
- /*#__PURE__*/
1224
- _regeneratorRuntime.mark(function _callee21(_ref12) {
1176
+ var _getAllDecryptedFor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(_ref7) {
1225
1177
  var _this3 = this;
1226
1178
 
1227
1179
  var type, uri, username, name, all;
@@ -1229,7 +1181,7 @@ function () {
1229
1181
  while (1) {
1230
1182
  switch (_context21.prev = _context21.next) {
1231
1183
  case 0:
1232
- type = _ref12.type, uri = _ref12.uri, username = _ref12.username, name = _ref12.name;
1184
+ type = _ref7.type, uri = _ref7.uri, username = _ref7.username, name = _ref7.name;
1233
1185
  _context21.next = 3;
1234
1186
  return this.getAllDecrypted({
1235
1187
  type: type,
@@ -1278,9 +1230,7 @@ function () {
1278
1230
  }, {
1279
1231
  key: "getByIdOrSearch",
1280
1232
  value: function () {
1281
- var _getByIdOrSearch = _asyncToGenerator(
1282
- /*#__PURE__*/
1283
- _regeneratorRuntime.mark(function _callee22(id, search, sort) {
1233
+ var _getByIdOrSearch = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(id, search, sort) {
1284
1234
  var cipher, all, first, _id, searchedCipher;
1285
1235
 
1286
1236
  return _regeneratorRuntime.wrap(function _callee22$(_context22) {
@@ -1389,9 +1339,7 @@ function () {
1389
1339
  }, {
1390
1340
  key: "get",
1391
1341
  value: function () {
1392
- var _get = _asyncToGenerator(
1393
- /*#__PURE__*/
1394
- _regeneratorRuntime.mark(function _callee23(id) {
1342
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(id) {
1395
1343
  return _regeneratorRuntime.wrap(function _callee23$(_context23) {
1396
1344
  while (1) {
1397
1345
  switch (_context23.prev = _context23.next) {
@@ -1436,9 +1384,7 @@ function () {
1436
1384
  }, {
1437
1385
  key: "generatePassword",
1438
1386
  value: function () {
1439
- var _generatePassword = _asyncToGenerator(
1440
- /*#__PURE__*/
1441
- _regeneratorRuntime.mark(function _callee24() {
1387
+ var _generatePassword = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24() {
1442
1388
  var options,
1443
1389
  _args24 = arguments;
1444
1390
  return _regeneratorRuntime.wrap(function _callee24$(_context24) {
@@ -1475,9 +1421,7 @@ function () {
1475
1421
  }, {
1476
1422
  key: "encrypt",
1477
1423
  value: function () {
1478
- var _encrypt = _asyncToGenerator(
1479
- /*#__PURE__*/
1480
- _regeneratorRuntime.mark(function _callee25(cipherView) {
1424
+ var _encrypt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(cipherView) {
1481
1425
  return _regeneratorRuntime.wrap(function _callee25$(_context25) {
1482
1426
  while (1) {
1483
1427
  switch (_context25.prev = _context25.next) {
@@ -1508,9 +1452,7 @@ function () {
1508
1452
  }, {
1509
1453
  key: "decrypt",
1510
1454
  value: function () {
1511
- var _decrypt = _asyncToGenerator(
1512
- /*#__PURE__*/
1513
- _regeneratorRuntime.mark(function _callee26(cipher) {
1455
+ var _decrypt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(cipher) {
1514
1456
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
1515
1457
  while (1) {
1516
1458
  switch (_context26.prev = _context26.next) {
@@ -1541,9 +1483,7 @@ function () {
1541
1483
  }, {
1542
1484
  key: "decryptEncryptionKey",
1543
1485
  value: function () {
1544
- var _decryptEncryptionKey = _asyncToGenerator(
1545
- /*#__PURE__*/
1546
- _regeneratorRuntime.mark(function _callee27(encryptedKey) {
1486
+ var _decryptEncryptionKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(encryptedKey) {
1547
1487
  var encKey, cipher, decryptedBuffer;
1548
1488
  return _regeneratorRuntime.wrap(function _callee27$(_context27) {
1549
1489
  while (1) {
@@ -1595,9 +1535,7 @@ function () {
1595
1535
  }, {
1596
1536
  key: "encryptFile",
1597
1537
  value: function () {
1598
- var _encryptFile = _asyncToGenerator(
1599
- /*#__PURE__*/
1600
- _regeneratorRuntime.mark(function _callee28(file, encryptedKey) {
1538
+ var _encryptFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(file, encryptedKey) {
1601
1539
  var encryptionKey;
1602
1540
  return _regeneratorRuntime.wrap(function _callee28$(_context28) {
1603
1541
  while (1) {
@@ -1635,9 +1573,7 @@ function () {
1635
1573
  }, {
1636
1574
  key: "decryptFile",
1637
1575
  value: function () {
1638
- var _decryptFile = _asyncToGenerator(
1639
- /*#__PURE__*/
1640
- _regeneratorRuntime.mark(function _callee29(encryptedFile, encryptedKey) {
1576
+ var _decryptFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(encryptedFile, encryptedKey) {
1641
1577
  var decryptionKey;
1642
1578
  return _regeneratorRuntime.wrap(function _callee29$(_context29) {
1643
1579
  while (1) {
@@ -1673,9 +1609,7 @@ function () {
1673
1609
  }, {
1674
1610
  key: "saveCipher",
1675
1611
  value: function () {
1676
- var _saveCipher = _asyncToGenerator(
1677
- /*#__PURE__*/
1678
- _regeneratorRuntime.mark(function _callee30(cipher) {
1612
+ var _saveCipher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(cipher) {
1679
1613
  return _regeneratorRuntime.wrap(function _callee30$(_context30) {
1680
1614
  while (1) {
1681
1615
  switch (_context30.prev = _context30.next) {
@@ -1704,9 +1638,7 @@ function () {
1704
1638
  }, {
1705
1639
  key: "postImportCiphers",
1706
1640
  value: function () {
1707
- var _postImportCiphers = _asyncToGenerator(
1708
- /*#__PURE__*/
1709
- _regeneratorRuntime.mark(function _callee31(encryptedCiphersToSave) {
1641
+ var _postImportCiphers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(encryptedCiphersToSave) {
1710
1642
  var _groupBy, _groupBy$true, existingCiphersToSave, _groupBy$false, newCiphersToSave, req, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, existingCipherToSave;
1711
1643
 
1712
1644
  return _regeneratorRuntime.wrap(function _callee31$(_context31) {
@@ -1821,9 +1753,7 @@ function () {
1821
1753
  }, {
1822
1754
  key: "deleteCipher",
1823
1755
  value: function () {
1824
- var _deleteCipher = _asyncToGenerator(
1825
- /*#__PURE__*/
1826
- _regeneratorRuntime.mark(function _callee32(id) {
1756
+ var _deleteCipher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(id) {
1827
1757
  var realId;
1828
1758
  return _regeneratorRuntime.wrap(function _callee32$(_context32) {
1829
1759
  while (1) {
@@ -1855,9 +1785,7 @@ function () {
1855
1785
  }, {
1856
1786
  key: "shareWithCozy",
1857
1787
  value: function () {
1858
- var _shareWithCozy = _asyncToGenerator(
1859
- /*#__PURE__*/
1860
- _regeneratorRuntime.mark(function _callee33(cipherView) {
1788
+ var _shareWithCozy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(cipherView) {
1861
1789
  var org, cols, colIds;
1862
1790
  return _regeneratorRuntime.wrap(function _callee33$(_context33) {
1863
1791
  while (1) {
@@ -1912,9 +1840,7 @@ function () {
1912
1840
  }, {
1913
1841
  key: "getCollectionsForOrg",
1914
1842
  value: function () {
1915
- var _getCollectionsForOrg = _asyncToGenerator(
1916
- /*#__PURE__*/
1917
- _regeneratorRuntime.mark(function _callee34(org) {
1843
+ var _getCollectionsForOrg = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(org) {
1918
1844
  var id, collections;
1919
1845
  return _regeneratorRuntime.wrap(function _callee34$(_context34) {
1920
1846
  while (1) {
@@ -1953,9 +1879,7 @@ function () {
1953
1879
  }, {
1954
1880
  key: "getCozyOrg",
1955
1881
  value: function () {
1956
- var _getCozyOrg = _asyncToGenerator(
1957
- /*#__PURE__*/
1958
- _regeneratorRuntime.mark(function _callee35() {
1882
+ var _getCozyOrg = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35() {
1959
1883
  var orgs;
1960
1884
  return _regeneratorRuntime.wrap(function _callee35$(_context35) {
1961
1885
  while (1) {
@@ -1999,9 +1923,7 @@ function () {
1999
1923
  }, {
2000
1924
  key: "createOrUpdateCipher",
2001
1925
  value: function () {
2002
- var _createOrUpdateCipher = _asyncToGenerator(
2003
- /*#__PURE__*/
2004
- _regeneratorRuntime.mark(function _callee36(decryptedData) {
1926
+ var _createOrUpdateCipher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(decryptedData) {
2005
1927
  var originalCipher,
2006
1928
  orgId,
2007
1929
  key,
@@ -2043,9 +1965,7 @@ function () {
2043
1965
  }, {
2044
1966
  key: "createNewCozySharedCipher",
2045
1967
  value: function () {
2046
- var _createNewCozySharedCipher = _asyncToGenerator(
2047
- /*#__PURE__*/
2048
- _regeneratorRuntime.mark(function _callee37(decryptedData) {
1968
+ var _createNewCozySharedCipher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(decryptedData) {
2049
1969
  var originalCipher,
2050
1970
  org,
2051
1971
  cols,
@@ -2113,9 +2033,7 @@ function () {
2113
2033
  }, {
2114
2034
  key: "import",
2115
2035
  value: function () {
2116
- var _import2 = _asyncToGenerator(
2117
- /*#__PURE__*/
2118
- _regeneratorRuntime.mark(function _callee38(fileContent, format) {
2036
+ var _import2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(fileContent, format) {
2119
2037
  var _this5 = this;
2120
2038
 
2121
2039
  var importer, parseResult, supportedCiphers, ciphersToSave, postImportRes;
@@ -2190,9 +2108,7 @@ function () {
2190
2108
  }, {
2191
2109
  key: "searchExistingCipher",
2192
2110
  value: function () {
2193
- var _searchExistingCipher = _asyncToGenerator(
2194
- /*#__PURE__*/
2195
- _regeneratorRuntime.mark(function _callee39(cipher) {
2111
+ var _searchExistingCipher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(cipher) {
2196
2112
  var encryptedExistingCipher, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, uri, search, sort, decrypted;
2197
2113
 
2198
2114
  return _regeneratorRuntime.wrap(function _callee39$(_context39) {
@@ -2310,9 +2226,7 @@ function () {
2310
2226
  }, {
2311
2227
  key: "mergeCiphers",
2312
2228
  value: function () {
2313
- var _mergeCiphers = _asyncToGenerator(
2314
- /*#__PURE__*/
2315
- _regeneratorRuntime.mark(function _callee40(encryptedExistingCipher, cipher) {
2229
+ var _mergeCiphers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(encryptedExistingCipher, cipher) {
2316
2230
  var decryptedExistingCipher, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3, _loop, _iterator3, _step3, mergedCipher;
2317
2231
 
2318
2232
  return _regeneratorRuntime.wrap(function _callee40$(_context40) {
@@ -2410,9 +2324,7 @@ function () {
2410
2324
  }, {
2411
2325
  key: "prepareCipherToImport",
2412
2326
  value: function () {
2413
- var _prepareCipherToImport = _asyncToGenerator(
2414
- /*#__PURE__*/
2415
- _regeneratorRuntime.mark(function _callee41(cipher) {
2327
+ var _prepareCipherToImport = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(cipher) {
2416
2328
  var cipherToSave, encryptedExistingCipher;
2417
2329
  return _regeneratorRuntime.wrap(function _callee41$(_context41) {
2418
2330
  while (1) {
@@ -2474,9 +2386,7 @@ function () {
2474
2386
  }, {
2475
2387
  key: "importCipher",
2476
2388
  value: function () {
2477
- var _importCipher = _asyncToGenerator(
2478
- /*#__PURE__*/
2479
- _regeneratorRuntime.mark(function _callee42(cipher) {
2389
+ var _importCipher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(cipher) {
2480
2390
  var cipherToSave;
2481
2391
  return _regeneratorRuntime.wrap(function _callee42$(_context42) {
2482
2392
  while (1) {
@@ -188,11 +188,7 @@ describe('WebVaultClient', function () {
188
188
  beforeEach(function () {
189
189
  client.getByIdOrSearch.mockResolvedValue(existingCipher);
190
190
  });
191
- it("should add imported cipher's uris to existing cipher",
192
- /*#__PURE__*/
193
- _asyncToGenerator(
194
- /*#__PURE__*/
195
- _regeneratorRuntime.mark(function _callee() {
191
+ it("should add imported cipher's uris to existing cipher", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
196
192
  var fileContent;
197
193
  return _regeneratorRuntime.wrap(function _callee$(_context) {
198
194
  while (1) {
@@ -251,11 +247,7 @@ describe('WebVaultClient', function () {
251
247
  var filename = exportedPassword.filename,
252
248
  format = exportedPassword.format,
253
249
  nbCiphers = exportedPassword.nbCiphers;
254
- it("should create a new cipher [format: ".concat(format, "]"),
255
- /*#__PURE__*/
256
- _asyncToGenerator(
257
- /*#__PURE__*/
258
- _regeneratorRuntime.mark(function _callee2() {
250
+ it("should create a new cipher [format: ".concat(format, "]"), /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
259
251
  var fileContent;
260
252
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
261
253
  while (1) {
@@ -287,11 +279,7 @@ describe('WebVaultClient', function () {
287
279
  }
288
280
  });
289
281
  describe('when given an unknown format', function () {
290
- it('should throw an error',
291
- /*#__PURE__*/
292
- _asyncToGenerator(
293
- /*#__PURE__*/
294
- _regeneratorRuntime.mark(function _callee3() {
282
+ it('should throw an error', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
295
283
  var fileContent;
296
284
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
297
285
  while (1) {
@@ -324,11 +312,7 @@ describe('WebVaultClient', function () {
324
312
  afterEach(function () {
325
313
  client.importService.getImporter.mockRestore();
326
314
  });
327
- it('should throw an error',
328
- /*#__PURE__*/
329
- _asyncToGenerator(
330
- /*#__PURE__*/
331
- _regeneratorRuntime.mark(function _callee4() {
315
+ it('should throw an error', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
332
316
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
333
317
  while (1) {
334
318
  switch (_context4.prev = _context4.next) {
@@ -351,11 +335,7 @@ describe('WebVaultClient', function () {
351
335
  afterEach(function () {
352
336
  client.cryptoService.makeKey.mockReset();
353
337
  });
354
- it('should call cryptoService.makeKey',
355
- /*#__PURE__*/
356
- _asyncToGenerator(
357
- /*#__PURE__*/
358
- _regeneratorRuntime.mark(function _callee5() {
338
+ it('should call cryptoService.makeKey', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
359
339
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
360
340
  while (1) {
361
341
  switch (_context5.prev = _context5.next) {
@@ -381,11 +361,7 @@ describe('WebVaultClient', function () {
381
361
  afterEach(function () {
382
362
  jest.clearAllMocks();
383
363
  });
384
- it('should decrypt the given key with correct length',
385
- /*#__PURE__*/
386
- _asyncToGenerator(
387
- /*#__PURE__*/
388
- _regeneratorRuntime.mark(function _callee6() {
364
+ it('should decrypt the given key with correct length', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
389
365
  var encryptedKey, key;
390
366
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
391
367
  while (1) {
@@ -2,9 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import MicroEE from 'microee';
4
4
 
5
- var MockWebVaultClient =
6
- /*#__PURE__*/
7
- function () {
5
+ var MockWebVaultClient = /*#__PURE__*/function () {
8
6
  function MockWebVaultClient() {
9
7
  _classCallCheck(this, MockWebVaultClient);
10
8
 
@@ -60,11 +60,7 @@ var UnlockForm = function UnlockForm(props) {
60
60
  var handlePasswordChange = useCallback(function (ev) {
61
61
  setPassword(ev.currentTarget.value);
62
62
  });
63
- var unlockVault = useCallback(
64
- /*#__PURE__*/
65
- _asyncToGenerator(
66
- /*#__PURE__*/
67
- _regeneratorRuntime.mark(function _callee() {
63
+ var unlockVault = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
68
64
  return _regeneratorRuntime.wrap(function _callee$(_context) {
69
65
  while (1) {
70
66
  switch (_context.prev = _context.next) {