cozy-keys-lib 3.11.0 → 3.11.1
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.
- package/package.json +4 -2
- package/src/components/UnlockForm.jsx +27 -1
- package/transpiled/@bitwarden/jslib/angular/components/add-edit.component.js +11 -33
- package/transpiled/@bitwarden/jslib/angular/components/attachments.component.js +8 -24
- package/transpiled/@bitwarden/jslib/angular/components/callout.component.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/components/change-password.component.js +6 -18
- package/transpiled/@bitwarden/jslib/angular/components/ciphers.component.js +8 -24
- package/transpiled/@bitwarden/jslib/angular/components/collections.component.js +5 -15
- package/transpiled/@bitwarden/jslib/angular/components/environment.component.js +2 -6
- package/transpiled/@bitwarden/jslib/angular/components/export.component.js +3 -9
- package/transpiled/@bitwarden/jslib/angular/components/folder-add-edit.component.js +5 -15
- package/transpiled/@bitwarden/jslib/angular/components/groupings.component.js +4 -12
- package/transpiled/@bitwarden/jslib/angular/components/hint.component.js +2 -6
- package/transpiled/@bitwarden/jslib/angular/components/icon.component.js +2 -6
- package/transpiled/@bitwarden/jslib/angular/components/lock.component.js +7 -21
- package/transpiled/@bitwarden/jslib/angular/components/login.component.js +4 -12
- package/transpiled/@bitwarden/jslib/angular/components/modal.component.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/components/password-generator-history.component.js +2 -6
- package/transpiled/@bitwarden/jslib/angular/components/password-generator.component.js +6 -18
- package/transpiled/@bitwarden/jslib/angular/components/password-history.component.js +3 -9
- package/transpiled/@bitwarden/jslib/angular/components/premium.component.js +5 -15
- package/transpiled/@bitwarden/jslib/angular/components/register.component.js +2 -6
- package/transpiled/@bitwarden/jslib/angular/components/set-password.component.js +5 -15
- package/transpiled/@bitwarden/jslib/angular/components/share.component.js +5 -15
- package/transpiled/@bitwarden/jslib/angular/components/sso.component.js +7 -21
- package/transpiled/@bitwarden/jslib/angular/components/two-factor-options.component.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/components/two-factor.component.js +7 -21
- package/transpiled/@bitwarden/jslib/angular/components/view.component.js +10 -30
- package/transpiled/@bitwarden/jslib/angular/directives/a11y-title.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/api-action.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/autofocus.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/blur-click.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/box-row.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/fallback-src.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/input-verbatim.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/select-copy.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/stop-click.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/stop-prop.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/directives/true-false-value.directive.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/pipes/color-password.pipe.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/pipes/i18n.pipe.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/pipes/search-ciphers.pipe.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/pipes/search.pipe.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/services/auth-guard.service.js +2 -6
- package/transpiled/@bitwarden/jslib/angular/services/broadcaster.service.js +1 -3
- package/transpiled/@bitwarden/jslib/angular/services/validation.service.js +1 -3
- package/transpiled/@bitwarden/jslib/cli/baseProgram.js +3 -9
- package/transpiled/@bitwarden/jslib/cli/commands/login.command.js +3 -9
- package/transpiled/@bitwarden/jslib/cli/commands/logout.command.js +2 -6
- package/transpiled/@bitwarden/jslib/cli/commands/update.command.js +2 -6
- package/transpiled/@bitwarden/jslib/cli/models/response.js +1 -3
- package/transpiled/@bitwarden/jslib/cli/services/cliPlatformUtils.service.js +1 -3
- package/transpiled/@bitwarden/jslib/cli/services/consoleLog.service.js +1 -3
- package/transpiled/@bitwarden/jslib/electron/baseMenu.js +1 -3
- package/transpiled/@bitwarden/jslib/electron/biometric.darwin.main.js +4 -12
- package/transpiled/@bitwarden/jslib/electron/biometric.windows.main.js +7 -21
- package/transpiled/@bitwarden/jslib/electron/keytarStorageListener.js +2 -6
- package/transpiled/@bitwarden/jslib/electron/services/electronLog.service.js +1 -3
- package/transpiled/@bitwarden/jslib/electron/services/electronMainMessaging.service.js +1 -3
- package/transpiled/@bitwarden/jslib/electron/services/electronPlatformUtils.service.js +2 -6
- package/transpiled/@bitwarden/jslib/electron/services/electronRendererMessaging.service.js +2 -6
- package/transpiled/@bitwarden/jslib/electron/services/electronRendererSecureStorage.service.js +4 -12
- package/transpiled/@bitwarden/jslib/electron/services/electronStorage.service.js +1 -3
- package/transpiled/@bitwarden/jslib/electron/tray.main.js +5 -15
- package/transpiled/@bitwarden/jslib/electron/updater.main.js +7 -21
- package/transpiled/@bitwarden/jslib/electron/window.main.js +12 -36
- package/transpiled/@bitwarden/jslib/importers/ascendoCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/avastCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/avastJsonImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/aviraCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/baseImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/bitwardenCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/bitwardenJsonImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/blackBerryCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/blurCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/buttercupCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/chromeCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/clipperzHtmlImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/codebookCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/dashlaneJsonImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/encryptrCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/enpassCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/enpassJsonImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/firefoxCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/fsecureFskImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/gnomeJsonImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/kasperskyTxtImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/keepass2XmlImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/keepassxCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/keeperCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/lastpassCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/logMeOnceCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/meldiumCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/msecureCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/mykiCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/onepassword1PifImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/onepasswordWinCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/padlockCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/passkeepCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/passmanJsonImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/passpackCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/passwordAgentCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/passwordBossJsonImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/passwordDragonXmlImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/passwordSafeXmlImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/passwordWalletTxtImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/rememBearCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/roboformCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/safeInCloudXmlImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/saferpassCsvImport.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/secureSafeCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/splashIdCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/stickyPasswordXmlImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/truekeyCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/upmCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/yotiCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/importers/zohoVaultCsvImporter.js +1 -3
- package/transpiled/@bitwarden/jslib/misc/analytics.js +3 -9
- package/transpiled/@bitwarden/jslib/misc/nodeUtils.js +1 -3
- package/transpiled/@bitwarden/jslib/misc/serviceUtils.js +1 -3
- package/transpiled/@bitwarden/jslib/misc/u2f.js +1 -3
- package/transpiled/@bitwarden/jslib/misc/utils.js +1 -3
- package/transpiled/@bitwarden/jslib/models/api/cardApi.js +1 -3
- package/transpiled/@bitwarden/jslib/models/api/fieldApi.js +1 -3
- package/transpiled/@bitwarden/jslib/models/api/identityApi.js +1 -3
- package/transpiled/@bitwarden/jslib/models/api/loginApi.js +1 -3
- package/transpiled/@bitwarden/jslib/models/api/loginUriApi.js +1 -3
- package/transpiled/@bitwarden/jslib/models/api/secureNoteApi.js +1 -3
- package/transpiled/@bitwarden/jslib/models/api/sendFileApi.js +1 -3
- package/transpiled/@bitwarden/jslib/models/api/sendTextApi.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/attachment.js +2 -6
- package/transpiled/@bitwarden/jslib/models/domain/card.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/cipher.js +2 -6
- package/transpiled/@bitwarden/jslib/models/domain/cipherString.js +2 -6
- package/transpiled/@bitwarden/jslib/models/domain/collection.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/domainBase.js +2 -6
- package/transpiled/@bitwarden/jslib/models/domain/field.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/folder.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/identity.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/login.js +2 -6
- package/transpiled/@bitwarden/jslib/models/domain/loginUri.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/masterPasswordPolicyOptions.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/organization.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/password.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/passwordGeneratorPolicyOptions.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/policy.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/secureNote.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/send.js +2 -6
- package/transpiled/@bitwarden/jslib/models/domain/sendAccess.js +2 -6
- package/transpiled/@bitwarden/jslib/models/domain/sendFile.js +2 -6
- package/transpiled/@bitwarden/jslib/models/domain/sendText.js +1 -3
- package/transpiled/@bitwarden/jslib/models/domain/sortedCiphersCache.js +2 -6
- package/transpiled/@bitwarden/jslib/models/export/card.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/cipher.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/cipherWithIds.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/collection.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/collectionWithId.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/field.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/folder.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/folderWithId.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/identity.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/login.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/loginUri.js +1 -3
- package/transpiled/@bitwarden/jslib/models/export/secureNote.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/cipherWithIdRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/emailRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/emailTokenRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/folderWithIdRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/kdfRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/organizationTaxInfoUpdateRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/passwordRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/paymentRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/tokenRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/twoFactorEmailRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/twoFactorProviderRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/twoFactorRecoveryRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorAuthenticatorRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorDuoRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorEmailRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorU2fDeleteRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorU2fRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorYubioOtpRequest.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/apiKeyResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/attachmentResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/baseResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/billingResponse.js +4 -12
- package/transpiled/@bitwarden/jslib/models/response/breachAccountResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/cipherResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/collectionResponse.js +3 -9
- package/transpiled/@bitwarden/jslib/models/response/deviceResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/domainsResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/errorResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/eventResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/folderResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/globalDomainResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/groupResponse.js +2 -6
- package/transpiled/@bitwarden/jslib/models/response/identityTokenResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/identityTwoFactorResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/keysResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/listResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/notificationResponse.js +4 -12
- package/transpiled/@bitwarden/jslib/models/response/organizationResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/organizationSubscriptionResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/organizationUserResponse.js +3 -9
- package/transpiled/@bitwarden/jslib/models/response/passwordHistoryResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/paymentResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/planResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/policyResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/preloginResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/profileOrganizationResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/profileResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/selectionReadOnlyResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/sendAccessResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/sendResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/subscriptionResponse.js +4 -12
- package/transpiled/@bitwarden/jslib/models/response/syncResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/taxInfoResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/twoFactorAuthenticatorResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/twoFactorDuoResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/twoFactorEmailResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/twoFactorProviderResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/twoFactorRescoverResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/twoFactorU2fResponse.js +3 -9
- package/transpiled/@bitwarden/jslib/models/response/twoFactorYubiKeyResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/response/userKeyResponse.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/attachmentView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/cardView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/cipherView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/fieldView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/identityView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/loginUriView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/loginView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/secureNoteView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/sendFileView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/sendTextView.js +1 -3
- package/transpiled/@bitwarden/jslib/models/view/sendView.js +1 -3
- package/transpiled/@bitwarden/jslib/services/api.service.js +112 -336
- package/transpiled/@bitwarden/jslib/services/appId.service.js +2 -6
- package/transpiled/@bitwarden/jslib/services/audit.service.js +3 -9
- package/transpiled/@bitwarden/jslib/services/auth.service.js +10 -30
- package/transpiled/@bitwarden/jslib/services/broadcaster.service.js +1 -3
- package/transpiled/@bitwarden/jslib/services/cipher.service.js +46 -138
- package/transpiled/@bitwarden/jslib/services/collection.service.js +12 -36
- package/transpiled/@bitwarden/jslib/services/container.service.js +1 -3
- package/transpiled/@bitwarden/jslib/services/crypto.service.js +39 -117
- package/transpiled/@bitwarden/jslib/services/environment.service.js +3 -9
- package/transpiled/@bitwarden/jslib/services/event.service.js +4 -12
- package/transpiled/@bitwarden/jslib/services/export.service.js +7 -21
- package/transpiled/@bitwarden/jslib/services/folder.service.js +13 -39
- package/transpiled/@bitwarden/jslib/services/i18n.service.js +3 -9
- package/transpiled/@bitwarden/jslib/services/import.service.js +3 -9
- package/transpiled/@bitwarden/jslib/services/lowdbStorage.service.js +1 -3
- package/transpiled/@bitwarden/jslib/services/nodeApi.service.js +1 -3
- package/transpiled/@bitwarden/jslib/services/nodeCryptoFunction.service.js +6 -18
- package/transpiled/@bitwarden/jslib/services/noopMessaging.service.js +1 -3
- package/transpiled/@bitwarden/jslib/services/notifications.service.js +8 -24
- package/transpiled/@bitwarden/jslib/services/passwordGeneration.service.js +16 -48
- package/transpiled/@bitwarden/jslib/services/policy.service.js +5 -15
- package/transpiled/@bitwarden/jslib/services/search.service.js +3 -9
- package/transpiled/@bitwarden/jslib/services/send.service.js +12 -36
- package/transpiled/@bitwarden/jslib/services/settings.service.js +6 -18
- package/transpiled/@bitwarden/jslib/services/state.service.js +1 -3
- package/transpiled/@bitwarden/jslib/services/sync.service.js +16 -48
- package/transpiled/@bitwarden/jslib/services/system.service.js +5 -15
- package/transpiled/@bitwarden/jslib/services/token.service.js +7 -21
- package/transpiled/@bitwarden/jslib/services/totp.service.js +4 -12
- package/transpiled/@bitwarden/jslib/services/user.service.js +13 -39
- package/transpiled/@bitwarden/jslib/services/vaultTimeout.service.js +8 -24
- package/transpiled/@bitwarden/jslib/services/webCryptoFunction.service.js +14 -42
- package/transpiled/CozyUtils.js +12 -22
- package/transpiled/CozyUtils.spec.js +6 -30
- package/transpiled/HtmlStorageService.js +2 -6
- package/transpiled/MemoryStorageService.js +1 -3
- package/transpiled/NodeEnvSecureStorageService.js +5 -15
- package/transpiled/NodeVaultClient.js +1 -3
- package/transpiled/StrippedWebPlatformUtilsService.js +1 -3
- package/transpiled/WebPlatformUtilsService.js +2 -6
- package/transpiled/WebVaultClient.js +66 -156
- package/transpiled/WebVaultClient.spec.js +6 -30
- package/transpiled/__mocks__/WebVaultClient.js +1 -3
- package/transpiled/components/UnlockForm.js +16 -6
- package/transpiled/components/UnlockForm.spec.js +3 -15
- package/transpiled/components/VaultContext.js +39 -18
- package/transpiled/components/VaultContext.spec.js +3 -7
- package/transpiled/components/VaultUnlocker.js +7 -13
- package/transpiled/components/defaults.js +17 -27
- package/transpiled/components/defaults.spec.js +82 -0
- package/transpiled/components/vaultUnlockContext.js +5 -14
- package/transpiled/components/vaultUnlockContext.spec.js +20 -76
- package/transpiled/index.js +1 -2
- package/transpiled/logger.js +1 -1
|
@@ -35,9 +35,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
import { Utils } from '../misc/utils';
|
|
38
|
-
export var AppIdService =
|
|
39
|
-
/*#__PURE__*/
|
|
40
|
-
function () {
|
|
38
|
+
export var AppIdService = /*#__PURE__*/function () {
|
|
41
39
|
function AppIdService(storageService) {
|
|
42
40
|
_classCallCheck(this, AppIdService);
|
|
43
41
|
|
|
@@ -57,9 +55,7 @@ function () {
|
|
|
57
55
|
}, {
|
|
58
56
|
key: "makeAndGetAppId",
|
|
59
57
|
value: function makeAndGetAppId(key) {
|
|
60
|
-
return __awaiter(this, void 0, void 0,
|
|
61
|
-
/*#__PURE__*/
|
|
62
|
-
_regeneratorRuntime.mark(function _callee() {
|
|
58
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
63
59
|
var existingId, guid;
|
|
64
60
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
65
61
|
while (1) {
|
|
@@ -51,9 +51,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
51
51
|
import { throttle } from '../misc/throttle';
|
|
52
52
|
import { Utils } from '../misc/utils';
|
|
53
53
|
var PwnedPasswordsApi = 'https://api.pwnedpasswords.com/range/';
|
|
54
|
-
export var AuditService =
|
|
55
|
-
/*#__PURE__*/
|
|
56
|
-
function () {
|
|
54
|
+
export var AuditService = /*#__PURE__*/function () {
|
|
57
55
|
function AuditService(cryptoFunctionService, apiService) {
|
|
58
56
|
_classCallCheck(this, AuditService);
|
|
59
57
|
|
|
@@ -64,9 +62,7 @@ function () {
|
|
|
64
62
|
_createClass(AuditService, [{
|
|
65
63
|
key: "passwordLeaked",
|
|
66
64
|
value: function passwordLeaked(password) {
|
|
67
|
-
return __awaiter(this, void 0, void 0,
|
|
68
|
-
/*#__PURE__*/
|
|
69
|
-
_regeneratorRuntime.mark(function _callee() {
|
|
65
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
70
66
|
var hashBytes, hash, hashStart, hashEnding, response, leakedHashes, match;
|
|
71
67
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
72
68
|
while (1) {
|
|
@@ -106,9 +102,7 @@ function () {
|
|
|
106
102
|
}, {
|
|
107
103
|
key: "breachedAccounts",
|
|
108
104
|
value: function breachedAccounts(username) {
|
|
109
|
-
return __awaiter(this, void 0, void 0,
|
|
110
|
-
/*#__PURE__*/
|
|
111
|
-
_regeneratorRuntime.mark(function _callee2() {
|
|
105
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
112
106
|
var error;
|
|
113
107
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
114
108
|
while (1) {
|
|
@@ -86,9 +86,7 @@ export var TwoFactorProviders = (_TwoFactorProviders = {}, _defineProperty(_TwoF
|
|
|
86
86
|
sort: 6,
|
|
87
87
|
premium: false
|
|
88
88
|
}), _TwoFactorProviders);
|
|
89
|
-
export var AuthService =
|
|
90
|
-
/*#__PURE__*/
|
|
91
|
-
function () {
|
|
89
|
+
export var AuthService = /*#__PURE__*/function () {
|
|
92
90
|
function AuthService(cryptoService, apiService, userService, tokenService, appIdService, i18nService, platformUtilsService, messagingService, vaultTimeoutService) {
|
|
93
91
|
var setCryptoKeys = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : true;
|
|
94
92
|
|
|
@@ -125,9 +123,7 @@ function () {
|
|
|
125
123
|
}, {
|
|
126
124
|
key: "logIn",
|
|
127
125
|
value: function logIn(email, masterPassword) {
|
|
128
|
-
return __awaiter(this, void 0, void 0,
|
|
129
|
-
/*#__PURE__*/
|
|
130
|
-
_regeneratorRuntime.mark(function _callee() {
|
|
126
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
131
127
|
var key, hashedPassword;
|
|
132
128
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
133
129
|
while (1) {
|
|
@@ -161,9 +157,7 @@ function () {
|
|
|
161
157
|
}, {
|
|
162
158
|
key: "logInSso",
|
|
163
159
|
value: function logInSso(code, codeVerifier, redirectUrl) {
|
|
164
|
-
return __awaiter(this, void 0, void 0,
|
|
165
|
-
/*#__PURE__*/
|
|
166
|
-
_regeneratorRuntime.mark(function _callee2() {
|
|
160
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
167
161
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
168
162
|
while (1) {
|
|
169
163
|
switch (_context2.prev = _context2.next) {
|
|
@@ -186,9 +180,7 @@ function () {
|
|
|
186
180
|
}, {
|
|
187
181
|
key: "logInApiKey",
|
|
188
182
|
value: function logInApiKey(clientId, clientSecret) {
|
|
189
|
-
return __awaiter(this, void 0, void 0,
|
|
190
|
-
/*#__PURE__*/
|
|
191
|
-
_regeneratorRuntime.mark(function _callee3() {
|
|
183
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
192
184
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
193
185
|
while (1) {
|
|
194
186
|
switch (_context3.prev = _context3.next) {
|
|
@@ -211,9 +203,7 @@ function () {
|
|
|
211
203
|
}, {
|
|
212
204
|
key: "logInTwoFactor",
|
|
213
205
|
value: function logInTwoFactor(twoFactorProvider, twoFactorToken, remember) {
|
|
214
|
-
return __awaiter(this, void 0, void 0,
|
|
215
|
-
/*#__PURE__*/
|
|
216
|
-
_regeneratorRuntime.mark(function _callee4() {
|
|
206
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
217
207
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
218
208
|
while (1) {
|
|
219
209
|
switch (_context4.prev = _context4.next) {
|
|
@@ -235,9 +225,7 @@ function () {
|
|
|
235
225
|
}, {
|
|
236
226
|
key: "logInComplete",
|
|
237
227
|
value: function logInComplete(email, masterPassword, twoFactorProvider, twoFactorToken, remember) {
|
|
238
|
-
return __awaiter(this, void 0, void 0,
|
|
239
|
-
/*#__PURE__*/
|
|
240
|
-
_regeneratorRuntime.mark(function _callee5() {
|
|
228
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
241
229
|
var key, hashedPassword;
|
|
242
230
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
243
231
|
while (1) {
|
|
@@ -271,9 +259,7 @@ function () {
|
|
|
271
259
|
}, {
|
|
272
260
|
key: "logInSsoComplete",
|
|
273
261
|
value: function logInSsoComplete(code, codeVerifier, redirectUrl, twoFactorProvider, twoFactorToken, remember) {
|
|
274
|
-
return __awaiter(this, void 0, void 0,
|
|
275
|
-
/*#__PURE__*/
|
|
276
|
-
_regeneratorRuntime.mark(function _callee6() {
|
|
262
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
277
263
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
278
264
|
while (1) {
|
|
279
265
|
switch (_context6.prev = _context6.next) {
|
|
@@ -296,9 +282,7 @@ function () {
|
|
|
296
282
|
}, {
|
|
297
283
|
key: "logInApiKeyComplete",
|
|
298
284
|
value: function logInApiKeyComplete(clientId, clientSecret, twoFactorProvider, twoFactorToken, remember) {
|
|
299
|
-
return __awaiter(this, void 0, void 0,
|
|
300
|
-
/*#__PURE__*/
|
|
301
|
-
_regeneratorRuntime.mark(function _callee7() {
|
|
285
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
|
302
286
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
303
287
|
while (1) {
|
|
304
288
|
switch (_context7.prev = _context7.next) {
|
|
@@ -389,9 +373,7 @@ function () {
|
|
|
389
373
|
}, {
|
|
390
374
|
key: "makePreloginKey",
|
|
391
375
|
value: function makePreloginKey(masterPassword, email) {
|
|
392
|
-
return __awaiter(this, void 0, void 0,
|
|
393
|
-
/*#__PURE__*/
|
|
394
|
-
_regeneratorRuntime.mark(function _callee8() {
|
|
376
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
|
395
377
|
var kdf, kdfIterations, preloginResponse;
|
|
396
378
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
397
379
|
while (1) {
|
|
@@ -455,9 +437,7 @@ function () {
|
|
|
455
437
|
}, {
|
|
456
438
|
key: "logInHelper",
|
|
457
439
|
value: function logInHelper(email, hashedPassword, code, codeVerifier, redirectUrl, clientId, clientSecret, key, twoFactorProvider, twoFactorToken, remember) {
|
|
458
|
-
return __awaiter(this, void 0, void 0,
|
|
459
|
-
/*#__PURE__*/
|
|
460
|
-
_regeneratorRuntime.mark(function _callee9() {
|
|
440
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
461
441
|
var storedTwoFactorToken, appId, deviceRequest, emailPassword, codeCodeVerifier, clientIdClientSecret, request, response, result, twoFactorResponse, tokenResponse, keyPair;
|
|
462
442
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
463
443
|
while (1) {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
export var BroadcasterService =
|
|
4
|
-
/*#__PURE__*/
|
|
5
|
-
function () {
|
|
3
|
+
export var BroadcasterService = /*#__PURE__*/function () {
|
|
6
4
|
function BroadcasterService() {
|
|
7
5
|
_classCallCheck(this, BroadcasterService);
|
|
8
6
|
|
|
@@ -80,9 +80,7 @@ var Keys = {
|
|
|
80
80
|
neverDomains: 'neverDomains'
|
|
81
81
|
};
|
|
82
82
|
var DomainMatchBlacklist = new Map([['google.com', new Set(['script.google.com'])]]);
|
|
83
|
-
export var CipherService =
|
|
84
|
-
/*#__PURE__*/
|
|
85
|
-
function () {
|
|
83
|
+
export var CipherService = /*#__PURE__*/function () {
|
|
86
84
|
function CipherService(cryptoService, userService, settingsService, apiService, storageService, i18nService, searchService) {
|
|
87
85
|
_classCallCheck(this, CipherService);
|
|
88
86
|
|
|
@@ -106,9 +104,7 @@ function () {
|
|
|
106
104
|
key: "encrypt",
|
|
107
105
|
value: function encrypt(model, key) {
|
|
108
106
|
var originalCipher = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
109
|
-
return __awaiter(this, void 0, void 0,
|
|
110
|
-
/*#__PURE__*/
|
|
111
|
-
_regeneratorRuntime.mark(function _callee() {
|
|
107
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
112
108
|
var existingCipher, ph, existingHiddenFields, hiddenFields, cipher;
|
|
113
109
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
114
110
|
while (1) {
|
|
@@ -239,9 +235,7 @@ function () {
|
|
|
239
235
|
}, {
|
|
240
236
|
key: "encryptAttachments",
|
|
241
237
|
value: function encryptAttachments(attachmentsModel, key) {
|
|
242
|
-
return __awaiter(this, void 0, void 0,
|
|
243
|
-
/*#__PURE__*/
|
|
244
|
-
_regeneratorRuntime.mark(function _callee4() {
|
|
238
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
245
239
|
var _this = this;
|
|
246
240
|
|
|
247
241
|
var promises, encAttachments;
|
|
@@ -260,9 +254,7 @@ function () {
|
|
|
260
254
|
promises = [];
|
|
261
255
|
encAttachments = [];
|
|
262
256
|
attachmentsModel.forEach(function (model) {
|
|
263
|
-
return __awaiter(_this, void 0, void 0,
|
|
264
|
-
/*#__PURE__*/
|
|
265
|
-
_regeneratorRuntime.mark(function _callee3() {
|
|
257
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
266
258
|
var _this2 = this;
|
|
267
259
|
|
|
268
260
|
var attachment, promise;
|
|
@@ -278,9 +270,7 @@ function () {
|
|
|
278
270
|
promise = this.encryptObjProperty(model, attachment, {
|
|
279
271
|
fileName: null
|
|
280
272
|
}, key).then(function () {
|
|
281
|
-
return __awaiter(_this2, void 0, void 0,
|
|
282
|
-
/*#__PURE__*/
|
|
283
|
-
_regeneratorRuntime.mark(function _callee2() {
|
|
273
|
+
return __awaiter(_this2, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
284
274
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
285
275
|
while (1) {
|
|
286
276
|
switch (_context2.prev = _context2.next) {
|
|
@@ -334,9 +324,7 @@ function () {
|
|
|
334
324
|
}, {
|
|
335
325
|
key: "encryptFields",
|
|
336
326
|
value: function encryptFields(fieldsModel, key) {
|
|
337
|
-
return __awaiter(this, void 0, void 0,
|
|
338
|
-
/*#__PURE__*/
|
|
339
|
-
_regeneratorRuntime.mark(function _callee5() {
|
|
327
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
340
328
|
var self, encFields;
|
|
341
329
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
342
330
|
while (1) {
|
|
@@ -375,9 +363,7 @@ function () {
|
|
|
375
363
|
}, {
|
|
376
364
|
key: "encryptField",
|
|
377
365
|
value: function encryptField(fieldModel, key) {
|
|
378
|
-
return __awaiter(this, void 0, void 0,
|
|
379
|
-
/*#__PURE__*/
|
|
380
|
-
_regeneratorRuntime.mark(function _callee6() {
|
|
366
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
381
367
|
var field;
|
|
382
368
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
383
369
|
while (1) {
|
|
@@ -410,9 +396,7 @@ function () {
|
|
|
410
396
|
}, {
|
|
411
397
|
key: "encryptPasswordHistories",
|
|
412
398
|
value: function encryptPasswordHistories(phModels, key) {
|
|
413
|
-
return __awaiter(this, void 0, void 0,
|
|
414
|
-
/*#__PURE__*/
|
|
415
|
-
_regeneratorRuntime.mark(function _callee7() {
|
|
399
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
|
416
400
|
var self, encPhs;
|
|
417
401
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
418
402
|
while (1) {
|
|
@@ -451,9 +435,7 @@ function () {
|
|
|
451
435
|
}, {
|
|
452
436
|
key: "encryptPasswordHistory",
|
|
453
437
|
value: function encryptPasswordHistory(phModel, key) {
|
|
454
|
-
return __awaiter(this, void 0, void 0,
|
|
455
|
-
/*#__PURE__*/
|
|
456
|
-
_regeneratorRuntime.mark(function _callee8() {
|
|
438
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
|
457
439
|
var ph;
|
|
458
440
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
459
441
|
while (1) {
|
|
@@ -480,9 +462,7 @@ function () {
|
|
|
480
462
|
}, {
|
|
481
463
|
key: "get",
|
|
482
464
|
value: function get(id) {
|
|
483
|
-
return __awaiter(this, void 0, void 0,
|
|
484
|
-
/*#__PURE__*/
|
|
485
|
-
_regeneratorRuntime.mark(function _callee9() {
|
|
465
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
486
466
|
var userId, localData, ciphers;
|
|
487
467
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
488
468
|
while (1) {
|
|
@@ -525,9 +505,7 @@ function () {
|
|
|
525
505
|
}, {
|
|
526
506
|
key: "getAll",
|
|
527
507
|
value: function getAll() {
|
|
528
|
-
return __awaiter(this, void 0, void 0,
|
|
529
|
-
/*#__PURE__*/
|
|
530
|
-
_regeneratorRuntime.mark(function _callee10() {
|
|
508
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
|
|
531
509
|
var userId, localData, ciphers, response, id;
|
|
532
510
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
533
511
|
while (1) {
|
|
@@ -569,9 +547,7 @@ function () {
|
|
|
569
547
|
}, {
|
|
570
548
|
key: "getAllDecrypted",
|
|
571
549
|
value: function getAllDecrypted() {
|
|
572
|
-
return __awaiter(this, void 0, void 0,
|
|
573
|
-
/*#__PURE__*/
|
|
574
|
-
_regeneratorRuntime.mark(function _callee11() {
|
|
550
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
|
|
575
551
|
var decCiphers, hasKey, promises, ciphers;
|
|
576
552
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
577
553
|
while (1) {
|
|
@@ -631,9 +607,7 @@ function () {
|
|
|
631
607
|
key: "getAllDecryptedForGrouping",
|
|
632
608
|
value: function getAllDecryptedForGrouping(groupingId) {
|
|
633
609
|
var folder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
634
|
-
return __awaiter(this, void 0, void 0,
|
|
635
|
-
/*#__PURE__*/
|
|
636
|
-
_regeneratorRuntime.mark(function _callee12() {
|
|
610
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
637
611
|
var ciphers;
|
|
638
612
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
639
613
|
while (1) {
|
|
@@ -670,9 +644,7 @@ function () {
|
|
|
670
644
|
key: "getAllDecryptedForUrl",
|
|
671
645
|
value: function getAllDecryptedForUrl(url, includeOtherTypes) {
|
|
672
646
|
var defaultMatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
673
|
-
return __awaiter(this, void 0, void 0,
|
|
674
|
-
/*#__PURE__*/
|
|
675
|
-
_regeneratorRuntime.mark(function _callee13() {
|
|
647
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
|
|
676
648
|
var domain, eqDomainsPromise, result, matchingDomains, ciphers;
|
|
677
649
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
678
650
|
while (1) {
|
|
@@ -815,9 +787,7 @@ function () {
|
|
|
815
787
|
}, {
|
|
816
788
|
key: "getAllFromApiForOrganization",
|
|
817
789
|
value: function getAllFromApiForOrganization(organizationId) {
|
|
818
|
-
return __awaiter(this, void 0, void 0,
|
|
819
|
-
/*#__PURE__*/
|
|
820
|
-
_regeneratorRuntime.mark(function _callee14() {
|
|
790
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
|
|
821
791
|
var ciphers, decCiphers, promises;
|
|
822
792
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
823
793
|
while (1) {
|
|
@@ -864,9 +834,7 @@ function () {
|
|
|
864
834
|
}, {
|
|
865
835
|
key: "getLastUsedForUrl",
|
|
866
836
|
value: function getLastUsedForUrl(url) {
|
|
867
|
-
return __awaiter(this, void 0, void 0,
|
|
868
|
-
/*#__PURE__*/
|
|
869
|
-
_regeneratorRuntime.mark(function _callee15() {
|
|
837
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
|
|
870
838
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
871
839
|
while (1) {
|
|
872
840
|
switch (_context15.prev = _context15.next) {
|
|
@@ -884,9 +852,7 @@ function () {
|
|
|
884
852
|
}, {
|
|
885
853
|
key: "getLastLaunchedForUrl",
|
|
886
854
|
value: function getLastLaunchedForUrl(url) {
|
|
887
|
-
return __awaiter(this, void 0, void 0,
|
|
888
|
-
/*#__PURE__*/
|
|
889
|
-
_regeneratorRuntime.mark(function _callee16() {
|
|
855
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
|
|
890
856
|
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
891
857
|
while (1) {
|
|
892
858
|
switch (_context16.prev = _context16.next) {
|
|
@@ -904,9 +870,7 @@ function () {
|
|
|
904
870
|
}, {
|
|
905
871
|
key: "getNextCipherForUrl",
|
|
906
872
|
value: function getNextCipherForUrl(url) {
|
|
907
|
-
return __awaiter(this, void 0, void 0,
|
|
908
|
-
/*#__PURE__*/
|
|
909
|
-
_regeneratorRuntime.mark(function _callee17() {
|
|
873
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {
|
|
910
874
|
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
911
875
|
while (1) {
|
|
912
876
|
switch (_context17.prev = _context17.next) {
|
|
@@ -929,9 +893,7 @@ function () {
|
|
|
929
893
|
}, {
|
|
930
894
|
key: "updateLastUsedDate",
|
|
931
895
|
value: function updateLastUsedDate(id) {
|
|
932
|
-
return __awaiter(this, void 0, void 0,
|
|
933
|
-
/*#__PURE__*/
|
|
934
|
-
_regeneratorRuntime.mark(function _callee18() {
|
|
896
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {
|
|
935
897
|
var ciphersLocalData, i, cached;
|
|
936
898
|
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
937
899
|
while (1) {
|
|
@@ -1001,9 +963,7 @@ function () {
|
|
|
1001
963
|
}, {
|
|
1002
964
|
key: "updateLastLaunchedDate",
|
|
1003
965
|
value: function updateLastLaunchedDate(id) {
|
|
1004
|
-
return __awaiter(this, void 0, void 0,
|
|
1005
|
-
/*#__PURE__*/
|
|
1006
|
-
_regeneratorRuntime.mark(function _callee19() {
|
|
966
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
|
|
1007
967
|
var ciphersLocalData, i, cached;
|
|
1008
968
|
return _regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
1009
969
|
while (1) {
|
|
@@ -1073,9 +1033,7 @@ function () {
|
|
|
1073
1033
|
}, {
|
|
1074
1034
|
key: "saveNeverDomain",
|
|
1075
1035
|
value: function saveNeverDomain(domain) {
|
|
1076
|
-
return __awaiter(this, void 0, void 0,
|
|
1077
|
-
/*#__PURE__*/
|
|
1078
|
-
_regeneratorRuntime.mark(function _callee20() {
|
|
1036
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee20() {
|
|
1079
1037
|
var domains;
|
|
1080
1038
|
return _regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
1081
1039
|
while (1) {
|
|
@@ -1114,9 +1072,7 @@ function () {
|
|
|
1114
1072
|
}, {
|
|
1115
1073
|
key: "saveWithServer",
|
|
1116
1074
|
value: function saveWithServer(cipher) {
|
|
1117
|
-
return __awaiter(this, void 0, void 0,
|
|
1118
|
-
/*#__PURE__*/
|
|
1119
|
-
_regeneratorRuntime.mark(function _callee21() {
|
|
1075
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee21() {
|
|
1120
1076
|
var response, request, _request, _request2, userId, data;
|
|
1121
1077
|
|
|
1122
1078
|
return _regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
@@ -1184,9 +1140,7 @@ function () {
|
|
|
1184
1140
|
}, {
|
|
1185
1141
|
key: "shareWithServer",
|
|
1186
1142
|
value: function shareWithServer(cipher, organizationId, collectionIds) {
|
|
1187
|
-
return __awaiter(this, void 0, void 0,
|
|
1188
|
-
/*#__PURE__*/
|
|
1189
|
-
_regeneratorRuntime.mark(function _callee22() {
|
|
1143
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee22() {
|
|
1190
1144
|
var _this3 = this;
|
|
1191
1145
|
|
|
1192
1146
|
var attachmentPromises, encCipher, request, response, userId, data;
|
|
@@ -1241,9 +1195,7 @@ function () {
|
|
|
1241
1195
|
}, {
|
|
1242
1196
|
key: "shareManyWithServer",
|
|
1243
1197
|
value: function shareManyWithServer(ciphers, organizationId, collectionIds) {
|
|
1244
|
-
return __awaiter(this, void 0, void 0,
|
|
1245
|
-
/*#__PURE__*/
|
|
1246
|
-
_regeneratorRuntime.mark(function _callee23() {
|
|
1198
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee23() {
|
|
1247
1199
|
var promises, encCiphers, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, cipher, request, userId;
|
|
1248
1200
|
|
|
1249
1201
|
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
@@ -1338,9 +1290,7 @@ function () {
|
|
|
1338
1290
|
reader.readAsArrayBuffer(unencryptedFile);
|
|
1339
1291
|
|
|
1340
1292
|
reader.onload = function (evt) {
|
|
1341
|
-
return __awaiter(_this4, void 0, void 0,
|
|
1342
|
-
/*#__PURE__*/
|
|
1343
|
-
_regeneratorRuntime.mark(function _callee24() {
|
|
1293
|
+
return __awaiter(_this4, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee24() {
|
|
1344
1294
|
var cData;
|
|
1345
1295
|
return _regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
1346
1296
|
while (1) {
|
|
@@ -1379,9 +1329,7 @@ function () {
|
|
|
1379
1329
|
key: "saveAttachmentRawWithServer",
|
|
1380
1330
|
value: function saveAttachmentRawWithServer(cipher, filename, data) {
|
|
1381
1331
|
var admin = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
1382
|
-
return __awaiter(this, void 0, void 0,
|
|
1383
|
-
/*#__PURE__*/
|
|
1384
|
-
_regeneratorRuntime.mark(function _callee25() {
|
|
1332
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee25() {
|
|
1385
1333
|
var key, encFileName, dataEncKey, encData, fd, blob, response, userId, cData;
|
|
1386
1334
|
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
1387
1335
|
while (1) {
|
|
@@ -1499,9 +1447,7 @@ function () {
|
|
|
1499
1447
|
}, {
|
|
1500
1448
|
key: "saveCollectionsWithServer",
|
|
1501
1449
|
value: function saveCollectionsWithServer(cipher) {
|
|
1502
|
-
return __awaiter(this, void 0, void 0,
|
|
1503
|
-
/*#__PURE__*/
|
|
1504
|
-
_regeneratorRuntime.mark(function _callee26() {
|
|
1450
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee26() {
|
|
1505
1451
|
var request, userId, data;
|
|
1506
1452
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
1507
1453
|
while (1) {
|
|
@@ -1532,9 +1478,7 @@ function () {
|
|
|
1532
1478
|
}, {
|
|
1533
1479
|
key: "upsert",
|
|
1534
1480
|
value: function upsert(cipher) {
|
|
1535
|
-
return __awaiter(this, void 0, void 0,
|
|
1536
|
-
/*#__PURE__*/
|
|
1537
|
-
_regeneratorRuntime.mark(function _callee27() {
|
|
1481
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
|
|
1538
1482
|
var userId, ciphers, c;
|
|
1539
1483
|
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
1540
1484
|
while (1) {
|
|
@@ -1581,9 +1525,7 @@ function () {
|
|
|
1581
1525
|
}, {
|
|
1582
1526
|
key: "replace",
|
|
1583
1527
|
value: function replace(ciphers) {
|
|
1584
|
-
return __awaiter(this, void 0, void 0,
|
|
1585
|
-
/*#__PURE__*/
|
|
1586
|
-
_regeneratorRuntime.mark(function _callee28() {
|
|
1528
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
|
|
1587
1529
|
var userId;
|
|
1588
1530
|
return _regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
1589
1531
|
while (1) {
|
|
@@ -1611,9 +1553,7 @@ function () {
|
|
|
1611
1553
|
}, {
|
|
1612
1554
|
key: "clear",
|
|
1613
1555
|
value: function clear(userId) {
|
|
1614
|
-
return __awaiter(this, void 0, void 0,
|
|
1615
|
-
/*#__PURE__*/
|
|
1616
|
-
_regeneratorRuntime.mark(function _callee29() {
|
|
1556
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
|
|
1617
1557
|
return _regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
1618
1558
|
while (1) {
|
|
1619
1559
|
switch (_context29.prev = _context29.next) {
|
|
@@ -1635,9 +1575,7 @@ function () {
|
|
|
1635
1575
|
}, {
|
|
1636
1576
|
key: "moveManyWithServer",
|
|
1637
1577
|
value: function moveManyWithServer(ids, folderId) {
|
|
1638
|
-
return __awaiter(this, void 0, void 0,
|
|
1639
|
-
/*#__PURE__*/
|
|
1640
|
-
_regeneratorRuntime.mark(function _callee30() {
|
|
1578
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
|
|
1641
1579
|
var userId, ciphers;
|
|
1642
1580
|
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
1643
1581
|
while (1) {
|
|
@@ -1684,9 +1622,7 @@ function () {
|
|
|
1684
1622
|
}, {
|
|
1685
1623
|
key: "delete",
|
|
1686
1624
|
value: function _delete(id) {
|
|
1687
|
-
return __awaiter(this, void 0, void 0,
|
|
1688
|
-
/*#__PURE__*/
|
|
1689
|
-
_regeneratorRuntime.mark(function _callee31() {
|
|
1625
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
|
|
1690
1626
|
var userId, ciphers;
|
|
1691
1627
|
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
1692
1628
|
while (1) {
|
|
@@ -1751,9 +1687,7 @@ function () {
|
|
|
1751
1687
|
}, {
|
|
1752
1688
|
key: "deleteWithServer",
|
|
1753
1689
|
value: function deleteWithServer(id) {
|
|
1754
|
-
return __awaiter(this, void 0, void 0,
|
|
1755
|
-
/*#__PURE__*/
|
|
1756
|
-
_regeneratorRuntime.mark(function _callee32() {
|
|
1690
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
|
|
1757
1691
|
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
1758
1692
|
while (1) {
|
|
1759
1693
|
switch (_context32.prev = _context32.next) {
|
|
@@ -1776,9 +1710,7 @@ function () {
|
|
|
1776
1710
|
}, {
|
|
1777
1711
|
key: "deleteManyWithServer",
|
|
1778
1712
|
value: function deleteManyWithServer(ids) {
|
|
1779
|
-
return __awaiter(this, void 0, void 0,
|
|
1780
|
-
/*#__PURE__*/
|
|
1781
|
-
_regeneratorRuntime.mark(function _callee33() {
|
|
1713
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
|
|
1782
1714
|
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
1783
1715
|
while (1) {
|
|
1784
1716
|
switch (_context33.prev = _context33.next) {
|
|
@@ -1801,9 +1733,7 @@ function () {
|
|
|
1801
1733
|
}, {
|
|
1802
1734
|
key: "deleteAttachment",
|
|
1803
1735
|
value: function deleteAttachment(id, attachmentId) {
|
|
1804
|
-
return __awaiter(this, void 0, void 0,
|
|
1805
|
-
/*#__PURE__*/
|
|
1806
|
-
_regeneratorRuntime.mark(function _callee34() {
|
|
1736
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
|
|
1807
1737
|
var userId, ciphers, i;
|
|
1808
1738
|
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
1809
1739
|
while (1) {
|
|
@@ -1851,9 +1781,7 @@ function () {
|
|
|
1851
1781
|
}, {
|
|
1852
1782
|
key: "deleteAttachmentWithServer",
|
|
1853
1783
|
value: function deleteAttachmentWithServer(id, attachmentId) {
|
|
1854
|
-
return __awaiter(this, void 0, void 0,
|
|
1855
|
-
/*#__PURE__*/
|
|
1856
|
-
_regeneratorRuntime.mark(function _callee35() {
|
|
1784
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee35() {
|
|
1857
1785
|
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
1858
1786
|
while (1) {
|
|
1859
1787
|
switch (_context35.prev = _context35.next) {
|
|
@@ -1960,9 +1888,7 @@ function () {
|
|
|
1960
1888
|
}, {
|
|
1961
1889
|
key: "softDelete",
|
|
1962
1890
|
value: function softDelete(id) {
|
|
1963
|
-
return __awaiter(this, void 0, void 0,
|
|
1964
|
-
/*#__PURE__*/
|
|
1965
|
-
_regeneratorRuntime.mark(function _callee36() {
|
|
1891
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee36() {
|
|
1966
1892
|
var userId, ciphers, setDeletedDate;
|
|
1967
1893
|
return _regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
1968
1894
|
while (1) {
|
|
@@ -2018,9 +1944,7 @@ function () {
|
|
|
2018
1944
|
}, {
|
|
2019
1945
|
key: "softDeleteWithServer",
|
|
2020
1946
|
value: function softDeleteWithServer(id) {
|
|
2021
|
-
return __awaiter(this, void 0, void 0,
|
|
2022
|
-
/*#__PURE__*/
|
|
2023
|
-
_regeneratorRuntime.mark(function _callee37() {
|
|
1947
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee37() {
|
|
2024
1948
|
return _regeneratorRuntime.wrap(function _callee37$(_context37) {
|
|
2025
1949
|
while (1) {
|
|
2026
1950
|
switch (_context37.prev = _context37.next) {
|
|
@@ -2043,9 +1967,7 @@ function () {
|
|
|
2043
1967
|
}, {
|
|
2044
1968
|
key: "softDeleteManyWithServer",
|
|
2045
1969
|
value: function softDeleteManyWithServer(ids) {
|
|
2046
|
-
return __awaiter(this, void 0, void 0,
|
|
2047
|
-
/*#__PURE__*/
|
|
2048
|
-
_regeneratorRuntime.mark(function _callee38() {
|
|
1970
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee38() {
|
|
2049
1971
|
return _regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
2050
1972
|
while (1) {
|
|
2051
1973
|
switch (_context38.prev = _context38.next) {
|
|
@@ -2068,9 +1990,7 @@ function () {
|
|
|
2068
1990
|
}, {
|
|
2069
1991
|
key: "restore",
|
|
2070
1992
|
value: function restore(id) {
|
|
2071
|
-
return __awaiter(this, void 0, void 0,
|
|
2072
|
-
/*#__PURE__*/
|
|
2073
|
-
_regeneratorRuntime.mark(function _callee39() {
|
|
1993
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee39() {
|
|
2074
1994
|
var userId, ciphers, clearDeletedDate;
|
|
2075
1995
|
return _regeneratorRuntime.wrap(function _callee39$(_context39) {
|
|
2076
1996
|
while (1) {
|
|
@@ -2126,9 +2046,7 @@ function () {
|
|
|
2126
2046
|
}, {
|
|
2127
2047
|
key: "restoreWithServer",
|
|
2128
2048
|
value: function restoreWithServer(id) {
|
|
2129
|
-
return __awaiter(this, void 0, void 0,
|
|
2130
|
-
/*#__PURE__*/
|
|
2131
|
-
_regeneratorRuntime.mark(function _callee40() {
|
|
2049
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee40() {
|
|
2132
2050
|
return _regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
2133
2051
|
while (1) {
|
|
2134
2052
|
switch (_context40.prev = _context40.next) {
|
|
@@ -2151,9 +2069,7 @@ function () {
|
|
|
2151
2069
|
}, {
|
|
2152
2070
|
key: "restoreManyWithServer",
|
|
2153
2071
|
value: function restoreManyWithServer(ids) {
|
|
2154
|
-
return __awaiter(this, void 0, void 0,
|
|
2155
|
-
/*#__PURE__*/
|
|
2156
|
-
_regeneratorRuntime.mark(function _callee41() {
|
|
2072
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee41() {
|
|
2157
2073
|
return _regeneratorRuntime.wrap(function _callee41$(_context41) {
|
|
2158
2074
|
while (1) {
|
|
2159
2075
|
switch (_context41.prev = _context41.next) {
|
|
@@ -2177,9 +2093,7 @@ function () {
|
|
|
2177
2093
|
}, {
|
|
2178
2094
|
key: "shareAttachmentWithServer",
|
|
2179
2095
|
value: function shareAttachmentWithServer(attachmentView, cipherId, organizationId) {
|
|
2180
|
-
return __awaiter(this, void 0, void 0,
|
|
2181
|
-
/*#__PURE__*/
|
|
2182
|
-
_regeneratorRuntime.mark(function _callee42() {
|
|
2096
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee42() {
|
|
2183
2097
|
var attachmentResponse, buf, decBuf, key, encFileName, dataEncKey, encData, fd, blob;
|
|
2184
2098
|
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
2185
2099
|
while (1) {
|
|
@@ -2286,9 +2200,7 @@ function () {
|
|
|
2286
2200
|
}, {
|
|
2287
2201
|
key: "encryptObjProperty",
|
|
2288
2202
|
value: function encryptObjProperty(model, obj, map, key) {
|
|
2289
|
-
return __awaiter(this, void 0, void 0,
|
|
2290
|
-
/*#__PURE__*/
|
|
2291
|
-
_regeneratorRuntime.mark(function _callee43() {
|
|
2203
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
|
|
2292
2204
|
var promises, self, prop;
|
|
2293
2205
|
return _regeneratorRuntime.wrap(function _callee43$(_context43) {
|
|
2294
2206
|
while (1) {
|
|
@@ -2348,9 +2260,7 @@ function () {
|
|
|
2348
2260
|
}, {
|
|
2349
2261
|
key: "encryptCipherData",
|
|
2350
2262
|
value: function encryptCipherData(cipher, model, key) {
|
|
2351
|
-
return __awaiter(this, void 0, void 0,
|
|
2352
|
-
/*#__PURE__*/
|
|
2353
|
-
_regeneratorRuntime.mark(function _callee44() {
|
|
2263
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
|
|
2354
2264
|
var i, loginUri;
|
|
2355
2265
|
return _regeneratorRuntime.wrap(function _callee44$(_context44) {
|
|
2356
2266
|
while (1) {
|
|
@@ -2464,9 +2374,7 @@ function () {
|
|
|
2464
2374
|
}, {
|
|
2465
2375
|
key: "getCipherForUrl",
|
|
2466
2376
|
value: function getCipherForUrl(url, lastUsed, lastLaunched) {
|
|
2467
|
-
return __awaiter(this, void 0, void 0,
|
|
2468
|
-
/*#__PURE__*/
|
|
2469
|
-
_regeneratorRuntime.mark(function _callee45() {
|
|
2377
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee45() {
|
|
2470
2378
|
var _ciphers;
|
|
2471
2379
|
|
|
2472
2380
|
return _regeneratorRuntime.wrap(function _callee45$(_context45) {
|