From 9f7bf1132b6952bb98e62a29527d05b16e2867dd Mon Sep 17 00:00:00 2001 From: Jim Hays Date: Wed, 26 Apr 2023 06:16:07 -0400 Subject: [PATCH] [PM-1877] Spellcheck (#5237) * Bug fix: "vaule" -> "value" * Bug fix: "aria-descibedby" -> "aria-describedby" * Bug fix: "chararacter" -> "character" * Fix typos in comments * Fix typos in documentation * Fix typo in test description * Fix typos in sample data: "childen" -> "children" * Fix typos in sample data: "pargraphs" -> "paragraphs" * Fixes to test data: "Additinoal", "Informaion" -> "Additional", "Information" * Fix typo in test data: "dolhpin" -> "dolphin" * Fix typo in local variable: "attachement" -> "attachment" * Fix typo in method name: "detachOrganizastion" -> "detachOrganization" * Fix typo in method name: "getNewlyAddedDomians" -> "getNewlyAddedDomains" * Fix typo: "EncyptedMessageResponse" -> "EncryptedMessageResponse" * Fix typo: "miliseconds" -> "milliseconds" * Fix typo: "authResponsePushNotifiction" -> "authResponsePushNotification" * Fix typo: "getPushNotifcationObs" -> "getPushNotificationObs" * Fix typo: "ExpriationDate" -> "ExpirationDate" * Fix typo: "OrganizationUserResetPasswordDetailsReponse" -> "OrganizationUserResetPasswordDetailsResponse" * Fix typo: "DISPLAY_TITLE_ATTRIBUE" -> "DISPLAY_TITLE_ATTRIBUTE" * Fix typo: "credentialretreivalCommandHandler" -> "credentialRetrievalCommandHandler" * Fix typo: "buildLoginCredntials" -> "buildLoginCredentials" * Fix typo: "_mappedCredentialsColums" -> "_mappedCredentialsColumns" * Fix typo: "_mappedPersonalInfoAsIdentiyColumns" -> "_mappedPersonalInfoAsIdentityColumns" * Fix typo in input name: "StroageGbAdjustment" -> "StorageGbAdjustment" * Fix typo in const: "encryptionAlogrithm" -> "encryptionAlgorithm" --------- Co-authored-by: Daniel James Smith --- apps/browser/src/alarms/register-alarms.ts | 2 +- .../browser/cipher-context-menu-handler.ts | 2 +- apps/browser/src/autofill/content/autofill.js | 2 +- .../src/autofill/models/autofill-field.ts | 2 +- .../popup/settings/excluded-domains.component.ts | 4 ++-- .../src/services/browserPlatformUtils.service.ts | 2 +- .../vaultTimeout/vaultTimeout.service.ts | 2 +- .../tools/popup/send/send-add-edit.component.ts | 2 +- .../src/commands/bw-credential-create.ts | 2 +- .../src/ipc.service.ts | 2 +- .../src/variables.ts | 2 +- .../src/app/layout/account-switcher.component.ts | 2 +- .../encrypted-message-handler.service.ts | 4 ++-- .../organizations/members/people.component.ts | 2 +- apps/web/src/app/core/core.module.ts | 2 +- .../app/settings/adjust-storage.component.html | 2 +- .../app/settings/change-password.component.ts | 2 +- .../vault-items/vault-items.stories.ts | 10 +++++----- .../vault-header/vault-header.component.ts | 2 +- .../src/auth/two-factor-options.component.html | 2 +- .../providers/clients/clients.component.ts | 2 +- .../providers/services/web-provider.service.ts | 2 +- .../access-policies/access-selector.component.ts | 2 +- .../components/login-with-device.component.ts | 6 +++--- libs/angular/src/pipes/color-password.pipe.ts | 2 +- libs/angular/src/scss/icons.scss | 2 +- .../generator/components/generator.component.ts | 2 +- .../src/tools/send/efflux-dates.component.ts | 16 ++++++++-------- libs/common/spec/matchers/toEqualBuffer.ts | 2 +- .../organization-user.service.ts | 4 ++-- .../responses/organization-user.response.ts | 2 +- libs/common/src/abstractions/state.service.ts | 2 +- .../common/src/auth/abstractions/auth.service.ts | 4 ++-- libs/common/src/auth/services/auth.service.ts | 4 ++-- libs/common/src/models/domain/window-state.ts | 2 +- libs/common/src/services/anonymousHub.service.ts | 2 +- .../organization-user.service.implementation.ts | 6 +++--- libs/common/src/services/state.service.ts | 4 ++-- .../src/tools/send/services/send-api.service.ts | 2 +- .../src/async-actions/bit-submit.directive.ts | 2 +- libs/components/src/link/link.stories.ts | 2 +- .../src/multi-select/scss/bw.theme.scss | 2 +- .../src/navigation/nav-group.stories.ts | 10 +++++----- .../src/stories/button-docs.stories.mdx | 2 +- .../src/stories/table-docs.stories.mdx | 2 +- .../src/toggle-group/toggle.component.ts | 2 +- .../services/vault-export.service.spec.ts | 4 ++-- libs/importer/spec/myki-csv-importer.spec.ts | 4 ++-- .../spec/test-data/myki-csv/user-id-card.csv.ts | 4 ++-- .../importers/dashlane/dashlane-csv-importer.ts | 8 ++++---- 50 files changed, 81 insertions(+), 81 deletions(-) diff --git a/apps/browser/src/alarms/register-alarms.ts b/apps/browser/src/alarms/register-alarms.ts index c4da2fc27b..2833e7c888 100644 --- a/apps/browser/src/alarms/register-alarms.ts +++ b/apps/browser/src/alarms/register-alarms.ts @@ -5,7 +5,7 @@ export function registerAlarms() { } /** - * Creates staggered alarms that periodically (1min) raise OnAlarm events. The staggering is calculated based on the numnber of alarms passed in. + * Creates staggered alarms that periodically (1min) raise OnAlarm events. The staggering is calculated based on the number of alarms passed in. * @param numberOfAlarms Number of named alarms, that shall be registered * @example * // alarmsToBeCreated(2) results in 2 alarms separated by 30 seconds diff --git a/apps/browser/src/autofill/browser/cipher-context-menu-handler.ts b/apps/browser/src/autofill/browser/cipher-context-menu-handler.ts index c8d9dfa64a..8803267685 100644 --- a/apps/browser/src/autofill/browser/cipher-context-menu-handler.ts +++ b/apps/browser/src/autofill/browser/cipher-context-menu-handler.ts @@ -146,7 +146,7 @@ export class CipherContextMenuHandler { const authStatus = await this.authService.getAuthStatus(); await MainContextMenuHandler.removeAll(); if (authStatus !== AuthenticationStatus.Unlocked) { - // Should I pass in the auth status or even have two seperate methods for this + // Should I pass in the auth status or even have two separate methods for this // on MainContextMenuHandler await this.mainContextMenuHandler.noAccess(); return; diff --git a/apps/browser/src/autofill/content/autofill.js b/apps/browser/src/autofill/content/autofill.js index 5d46a17292..09c616bfb5 100644 --- a/apps/browser/src/autofill/content/autofill.js +++ b/apps/browser/src/autofill/content/autofill.js @@ -440,7 +440,7 @@ // get proper page title. maybe they are using the special meta tag? var theTitle = document.querySelector('[data-onepassword-title]') - if (theTitle && theTitle.dataset[DISPLAY_TITLE_ATTRIBUE]) { + if (theTitle && theTitle.dataset[DISPLAY_TITLE_ATTRIBUTE]) { pageDetails.displayTitle = theTitle.dataset.onepasswordTitle; } diff --git a/apps/browser/src/autofill/models/autofill-field.ts b/apps/browser/src/autofill/models/autofill-field.ts index 425e1dadcb..f01c0fe7d8 100644 --- a/apps/browser/src/autofill/models/autofill-field.ts +++ b/apps/browser/src/autofill/models/autofill-field.ts @@ -44,7 +44,7 @@ export default class AutofillField { */ "label-top": string; /** - * The contatenated `innerText` or `textContent` of all elements that are HTML labels for the field + * The concatenated `innerText` or `textContent` of all elements that are HTML labels for the field */ "label-tag": string; /** diff --git a/apps/browser/src/popup/settings/excluded-domains.component.ts b/apps/browser/src/popup/settings/excluded-domains.component.ts index 77d0e90fb1..74c336ad85 100644 --- a/apps/browser/src/popup/settings/excluded-domains.component.ts +++ b/apps/browser/src/popup/settings/excluded-domains.component.ts @@ -80,7 +80,7 @@ export class ExcludedDomainsComponent implements OnInit, OnDestroy { async submit() { const savedDomains: { [name: string]: null } = {}; - const newExcludedDomains = this.getNewlyAddedDomians(this.excludedDomains); + const newExcludedDomains = this.getNewlyAddedDomains(this.excludedDomains); for (const domain of this.excludedDomains) { const resp = newExcludedDomains.filter((e) => e.uri === domain.uri); if (resp.length === 0) { @@ -109,7 +109,7 @@ export class ExcludedDomainsComponent implements OnInit, OnDestroy { return index; } - getNewlyAddedDomians(domain: ExcludedDomain[]): ExcludedDomain[] { + getNewlyAddedDomains(domain: ExcludedDomain[]): ExcludedDomain[] { const result = this.excludedDomains.filter( (newDomain) => !this.existingExcludedDomains.some((oldDomain) => newDomain.uri === oldDomain.uri) diff --git a/apps/browser/src/services/browserPlatformUtils.service.ts b/apps/browser/src/services/browserPlatformUtils.service.ts index ce82bf6f25..5cfd232f57 100644 --- a/apps/browser/src/services/browserPlatformUtils.service.ts +++ b/apps/browser/src/services/browserPlatformUtils.service.ts @@ -420,7 +420,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService autofillCommand = (await browser.commands.getAll()).find( (c) => c.name === "autofill_login" ).shortcut; - // Firefox is returing Ctrl instead of Cmd for the modifier key on macOS if + // Firefox is returning Ctrl instead of Cmd for the modifier key on macOS if // the command is the default one set on installation. if ( (await browser.runtime.getPlatformInfo()).os === "mac" && diff --git a/apps/browser/src/services/vaultTimeout/vaultTimeout.service.ts b/apps/browser/src/services/vaultTimeout/vaultTimeout.service.ts index d6f6c3bd17..b75a0c2032 100644 --- a/apps/browser/src/services/vaultTimeout/vaultTimeout.service.ts +++ b/apps/browser/src/services/vaultTimeout/vaultTimeout.service.ts @@ -12,7 +12,7 @@ export default class VaultTimeoutService extends BaseVaultTimeoutService { } } - // This is a work-around to safari adding an arbitary delay to setTimeout and + // This is a work-around to safari adding an arbitrary delay to setTimeout and // setIntervals. It works by calling the native extension which sleeps for 10s, // efficiently replicating setInterval. async checkSafari() { diff --git a/apps/browser/src/tools/popup/send/send-add-edit.component.ts b/apps/browser/src/tools/popup/send/send-add-edit.component.ts index 1140aa60f9..d1f72bf8b3 100644 --- a/apps/browser/src/tools/popup/send/send-add-edit.component.ts +++ b/apps/browser/src/tools/popup/send/send-add-edit.component.ts @@ -94,7 +94,7 @@ export class SendAddEditComponent extends BaseAddEditComponent { } async ngOnInit() { - // File visilibity + // File visibility this.isFirefox = this.platformUtilsService.isFirefox(); this.inPopout = this.popupUtilsService.inPopout(window); this.inSidebar = this.popupUtilsService.inSidebar(window); diff --git a/apps/desktop/native-messaging-test-runner/src/commands/bw-credential-create.ts b/apps/desktop/native-messaging-test-runner/src/commands/bw-credential-create.ts index 3b4dcc6f9e..4fee93d21d 100644 --- a/apps/desktop/native-messaging-test-runner/src/commands/bw-credential-create.ts +++ b/apps/desktop/native-messaging-test-runner/src/commands/bw-credential-create.ts @@ -47,7 +47,7 @@ const { name } = argv; const response = await nativeMessageService.credentialCreation(handshakeResponse.sharedKey, { name: name, userName: "SuperAwesomeUser", - password: "dolhpin", + password: "dolphin", uri: "google.com", userId: activeUser.id, } as CredentialCreatePayload); diff --git a/apps/desktop/native-messaging-test-runner/src/ipc.service.ts b/apps/desktop/native-messaging-test-runner/src/ipc.service.ts index b1c1b9d16b..3fd4353b22 100644 --- a/apps/desktop/native-messaging-test-runner/src/ipc.service.ts +++ b/apps/desktop/native-messaging-test-runner/src/ipc.service.ts @@ -128,7 +128,7 @@ export default class IPCService { this.getSocket().emit("message", message); try { - // Since we can not guarentee that a response message will ever be sent, we put a timeout + // Since we can not guarantee that a response message will ever be sent, we put a timeout // on messages return race({ promise: deferred.getPromise(), diff --git a/apps/desktop/native-messaging-test-runner/src/variables.ts b/apps/desktop/native-messaging-test-runner/src/variables.ts index 973da2c224..6f0351ed6d 100644 --- a/apps/desktop/native-messaging-test-runner/src/variables.ts +++ b/apps/desktop/native-messaging-test-runner/src/variables.ts @@ -1,5 +1,5 @@ export const applicationName = "Native Messaging Test Runner"; -export const encryptionAlogrithm = "sha1"; +export const encryptionAlgorithm = "sha1"; export const testRsaPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl0Vawl/toXzkEvB82FEtqHP" + "4xlU2ab/v0crqIfXfIoWF/XXdHGIdrZeilnRXPPJT1B9dTsasttEZNnua/0Rek/cjNDHtzT52irfoZYS7X6HNIfOi54Q+egP" + diff --git a/apps/desktop/src/app/layout/account-switcher.component.ts b/apps/desktop/src/app/layout/account-switcher.component.ts index eedb9c33a3..08995aa109 100644 --- a/apps/desktop/src/app/layout/account-switcher.component.ts +++ b/apps/desktop/src/app/layout/account-switcher.component.ts @@ -161,7 +161,7 @@ export class AccountSwitcherComponent implements OnInit, OnDestroy { continue; } - // environmentUrls are stored on disk and must be retrieved seperatly from the in memory state offered from subscribing to accounts + // environmentUrls are stored on disk and must be retrieved separately from the in memory state offered from subscribing to accounts baseAccounts[userId].settings.environmentUrls = await this.stateService.getEnvironmentUrls({ userId: userId, }); diff --git a/apps/desktop/src/services/encrypted-message-handler.service.ts b/apps/desktop/src/services/encrypted-message-handler.service.ts index 701604a058..4891a5799a 100644 --- a/apps/desktop/src/services/encrypted-message-handler.service.ts +++ b/apps/desktop/src/services/encrypted-message-handler.service.ts @@ -44,7 +44,7 @@ export class EncryptedMessageHandlerService { return await this.statusCommandHandler(); } case "bw-credential-retrieval": { - return await this.credentialretreivalCommandHandler(payload as CredentialRetrievePayload); + return await this.credentialRetrievalCommandHandler(payload as CredentialRetrievePayload); } case "bw-credential-create": { return await this.credentialCreateCommandHandler(payload as CredentialCreatePayload); @@ -100,7 +100,7 @@ export class EncryptedMessageHandlerService { ); } - private async credentialretreivalCommandHandler( + private async credentialRetrievalCommandHandler( payload: CredentialRetrievePayload ): Promise { if (payload.uri == null) { diff --git a/apps/web/src/app/admin-console/organizations/members/people.component.ts b/apps/web/src/app/admin-console/organizations/members/people.component.ts index cc5cc4db3a..0e922ba4ba 100644 --- a/apps/web/src/app/admin-console/organizations/members/people.component.ts +++ b/apps/web/src/app/admin-console/organizations/members/people.component.ts @@ -181,7 +181,7 @@ export class PeopleComponent if (response != null) { this.organization.hasPublicAndPrivateKeys = response.publicKey != null && response.privateKey != null; - await this.syncService.fullSync(true); // Replace oganizations with new data + await this.syncService.fullSync(true); // Replace organizations with new data } else { throw new Error(this.i18nService.t("resetPasswordOrgKeysError")); } diff --git a/apps/web/src/app/core/core.module.ts b/apps/web/src/app/core/core.module.ts index 251bd9d51c..3fe52a5af8 100644 --- a/apps/web/src/app/core/core.module.ts +++ b/apps/web/src/app/core/core.module.ts @@ -70,7 +70,7 @@ import { WebPlatformUtilsService } from "./web-platform-utils.service"; { provide: SECURE_STORAGE, // TODO: platformUtilsService.isDev has a helper for this, but using that service here results in a circular dependency. - // We have a tech debt item in the backlog to break up platformUtilsService, but in the meantime simply checking the environement here is less cumbersome. + // We have a tech debt item in the backlog to break up platformUtilsService, but in the meantime simply checking the environment here is less cumbersome. useClass: process.env.NODE_ENV === "development" ? HtmlStorageService : MemoryStorageService, }, { diff --git a/apps/web/src/app/settings/adjust-storage.component.html b/apps/web/src/app/settings/adjust-storage.component.html index 6aa137b680..35162aba92 100644 --- a/apps/web/src/app/settings/adjust-storage.component.html +++ b/apps/web/src/app/settings/adjust-storage.component.html @@ -13,7 +13,7 @@ id="storageAdjustment" class="form-control" type="number" - name="StroageGbAdjustment" + name="StorageGbAdjustment" [(ngModel)]="storageAdjustment" min="0" max="99" diff --git a/apps/web/src/app/settings/change-password.component.ts b/apps/web/src/app/settings/change-password.component.ts index 7a0fc39cf4..878c6c5d2b 100644 --- a/apps/web/src/app/settings/change-password.component.ts +++ b/apps/web/src/app/settings/change-password.component.ts @@ -294,7 +294,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent { const response = await this.organizationApiService.getKeys(org.id); const publicKey = Utils.fromB64ToArray(response?.publicKey); - // Re-enroll - encrpyt user's encKey.key with organization public key + // Re-enroll - encrypt user's encKey.key with organization public key const encryptedKey = await this.cryptoService.rsaEncrypt(encKey.key, publicKey.buffer); // Create/Execute request diff --git a/apps/web/src/app/vault/components/vault-items/vault-items.stories.ts b/apps/web/src/app/vault/components/vault-items/vault-items.stories.ts index 5ce71b1eeb..0eae02b3e1 100644 --- a/apps/web/src/app/vault/components/vault-items/vault-items.stories.ts +++ b/apps/web/src/app/vault/components/vault-items/vault-items.stories.ts @@ -264,14 +264,14 @@ function createCipherView(i: number, deleted = false): CipherView { if (i === 0) { // Old attachment - const attachement = new AttachmentView(); + const attachment = new AttachmentView(); view.organizationId = null; view.collectionIds = []; - view.attachments = [attachement]; + view.attachments = [attachment]; } else if (i % 5 === 0) { - const attachement = new AttachmentView(); - attachement.key = new SymmetricCryptoKey(new ArrayBuffer(32)); - view.attachments = [attachement]; + const attachment = new AttachmentView(); + attachment.key = new SymmetricCryptoKey(new ArrayBuffer(32)); + view.attachments = [attachment]; } return view; diff --git a/apps/web/src/app/vault/individual-vault/vault-header/vault-header.component.ts b/apps/web/src/app/vault/individual-vault/vault-header/vault-header.component.ts index e4b07ba34c..82b54b3e09 100644 --- a/apps/web/src/app/vault/individual-vault/vault-header/vault-header.component.ts +++ b/apps/web/src/app/vault/individual-vault/vault-header/vault-header.component.ts @@ -26,7 +26,7 @@ export class VaultHeaderComponent { */ @Input() loading: boolean; - /** Current active fitler */ + /** Current active filter */ @Input() filter: RoutedVaultFilterModel; /** diff --git a/apps/web/src/auth/two-factor-options.component.html b/apps/web/src/auth/two-factor-options.component.html index 5c5eccb883..ca02f98391 100644 --- a/apps/web/src/auth/two-factor-options.component.html +++ b/apps/web/src/auth/two-factor-options.component.html @@ -46,7 +46,7 @@
can be used for similar purposes. + On the internet paragraphs often contain inline links, but few know that can be used for similar purposes. `, }); diff --git a/libs/components/src/multi-select/scss/bw.theme.scss b/libs/components/src/multi-select/scss/bw.theme.scss index 0d9b9c8671..1ee49036a4 100644 --- a/libs/components/src/multi-select/scss/bw.theme.scss +++ b/libs/components/src/multi-select/scss/bw.theme.scss @@ -145,7 +145,7 @@ $ng-dropdown-shadow: rgb(var(--color-secondary-100)) !default; &.ng-select-disabled { > .ng-select-container .ng-value-container .ng-value { background-color: $ng-select-disabled-text; - border: 0px solid $ng-select-border; // Removing border on slected value when disabled + border: 0px solid $ng-select-border; // Removing border on selected value when disabled .ng-value-label { padding: 0 5px; } diff --git a/libs/components/src/navigation/nav-group.stories.ts b/libs/components/src/navigation/nav-group.stories.ts index 333adb0da0..1c22e2bfc7 100644 --- a/libs/components/src/navigation/nav-group.stories.ts +++ b/libs/components/src/navigation/nav-group.stories.ts @@ -57,18 +57,18 @@ export const Tree: Story = (args) => ({ template: ` - + - + - + - + - + `, }); diff --git a/libs/components/src/stories/button-docs.stories.mdx b/libs/components/src/stories/button-docs.stories.mdx index cdcdb87f9d..c598f2d222 100644 --- a/libs/components/src/stories/button-docs.stories.mdx +++ b/libs/components/src/stories/button-docs.stories.mdx @@ -58,7 +58,7 @@ Both the disabled and loading states use the default state’s color with a 60% ## Block -Typically button widths expand with thier text. In some causes though buttons may need to be block where the width is fixed and the text wraps to 2 lines if exceeding the button’s width. +Typically button widths expand with their text. In some causes though buttons may need to be block where the width is fixed and the text wraps to 2 lines if exceeding the button’s width. diff --git a/libs/components/src/stories/table-docs.stories.mdx b/libs/components/src/stories/table-docs.stories.mdx index 139574a18f..05afa55abc 100644 --- a/libs/components/src/stories/table-docs.stories.mdx +++ b/libs/components/src/stories/table-docs.stories.mdx @@ -10,7 +10,7 @@ All tables should have a visible horizontal header and label for each column. -The below code is the absolute minimum required to create a table. However we stronly advice you to +The below code is the absolute minimum required to create a table. However we strongly advise you to use the `dataSource` input to provide a data source for your table. This allows you to easily sort data. diff --git a/libs/components/src/toggle-group/toggle.component.ts b/libs/components/src/toggle-group/toggle.component.ts index 76d845f1a2..d12da7faa1 100644 --- a/libs/components/src/toggle-group/toggle.component.ts +++ b/libs/components/src/toggle-group/toggle.component.ts @@ -71,7 +71,7 @@ export class ToggleComponent { "!tw-mb-0", // Fix for badge being pushed slightly lower when inside a button. - // Insipired by bootstrap, which does the same. + // Inspired by bootstrap, which does the same. "[&>[bitBadge]]:tw-relative", "[&>[bitBadge]]:tw--top-px", ]; diff --git a/libs/exporter/src/vault-export/services/vault-export.service.spec.ts b/libs/exporter/src/vault-export/services/vault-export.service.spec.ts index 1dea90a29d..c5947b579d 100644 --- a/libs/exporter/src/vault-export/services/vault-export.service.spec.ts +++ b/libs/exporter/src/vault-export/services/vault-export.service.spec.ts @@ -172,7 +172,7 @@ describe("VaultExportService", () => { ); }); - it("exports unecrypted user ciphers", async () => { + it("exports unencrypted user ciphers", async () => { cipherService.getAllDecrypted().resolves(UserCipherViews.slice(0, 1)); const actual = await exportService.getExport("json"); @@ -188,7 +188,7 @@ describe("VaultExportService", () => { expectEqualCiphers(UserCipherDomains.slice(0, 1), actual); }); - it("does not unecrypted export trashed user items", async () => { + it("does not unencrypted export trashed user items", async () => { cipherService.getAllDecrypted().resolves(UserCipherViews); const actual = await exportService.getExport("json"); diff --git a/libs/importer/spec/myki-csv-importer.spec.ts b/libs/importer/spec/myki-csv-importer.spec.ts index b20d610d96..5d4b909935 100644 --- a/libs/importer/spec/myki-csv-importer.spec.ts +++ b/libs/importer/spec/myki-csv-importer.spec.ts @@ -133,7 +133,7 @@ function expectIdCard(cipher: CipherView) { function expectTaxNumber(cipher: CipherView) { expect(cipher.type).toBe(CipherType.Identity); expect(cipher.name).toBe("Tax number ID card"); - expect(cipher.notes).toBe("Additinoal information text field"); + expect(cipher.notes).toBe("Additional information text field"); expect(cipher.identity.fullName).toBe("Joe M User"); expect(cipher.identity.firstName).toBe("Joe"); @@ -405,7 +405,7 @@ function expectSoftwareLicense(cipher: CipherView) { function expectTourVisa(cipher: CipherView) { expect(cipher.type).toBe(CipherType.Identity); expect(cipher.name).toBe("Tour visa ID card"); - expect(cipher.notes).toBe("Additional Informaion text"); + expect(cipher.notes).toBe("Additional Information text"); expect(cipher.identity.fullName).toBe("Joe M User"); expect(cipher.identity.firstName).toBe("Joe"); diff --git a/libs/importer/spec/test-data/myki-csv/user-id-card.csv.ts b/libs/importer/spec/test-data/myki-csv/user-id-card.csv.ts index 8f3fa600e2..e1311d85bc 100644 --- a/libs/importer/spec/test-data/myki-csv/user-id-card.csv.ts +++ b/libs/importer/spec/test-data/myki-csv/user-id-card.csv.ts @@ -4,7 +4,7 @@ Joe User's nickname,active,someTag,Driver's License,123456,Joe M User,02/02/2022 Passport ID card,active,someTag,Passport,1234567,Joe M User,03/07/2022,03/07/2028,United States,Additional information field Social Security ID card,active,someTag,Social Security,123455678,Joe M User,03/07/2022,03/07/2028,United States,Additional information field text ID card type ID card,active,someTag,ID Card,1234566,Joe M User,03/07/2022,03/07/2028,United States,Additional Information field text -Tax number ID card,active,someTag,Tax Number,12345678,Joe M User,03/07/2022,03/07/2028,United States,Additinoal information text field +Tax number ID card,active,someTag,Tax Number,12345678,Joe M User,03/07/2022,03/07/2028,United States,Additional information text field Bank account ID card,active,someTag,Bank Account,12344556677,Joe M User,03/07/2022,03/07/2028,United States,Additional text information here Insurance card ID card,active,someTag,Insurance Card,123456677,Joe M User,03/07/2022,03/07/2022,United States,Additional information text goes here Health card Id card,active,someTag,Health Card,1234670,Joe M User,03/07/2022,03/07/2028,United States,More info @@ -13,4 +13,4 @@ Database ID card,active,someTag,Database,12345089u,Joe M User,03/07/2022,03/07/2 Outdoor license ID card,active,someTag,Outdoor License,123890090,Joe M User,03/07/2022,03/07/2028,United States,Additional info Reward program Id card,active,someTag,Reward Program,12345890b,Joe M User,03/07/2022,03/07/2028,United States,1234890 Software license ID card,active,someTag,Software License,1234567c,Joe M User,03/07/2022,03/07/2028,United States,"It seems like the fields don't change, which makes it pretty useless that they have so many ID card types." -Tour visa ID card,active,someTag,Tour Visa,123456lkhj,Joe M User,03/07/2022,03/07/2028,United States,Additional Informaion text`; +Tour visa ID card,active,someTag,Tour Visa,123456lkhj,Joe M User,03/07/2022,03/07/2028,United States,Additional Information text`; diff --git a/libs/importer/src/importers/dashlane/dashlane-csv-importer.ts b/libs/importer/src/importers/dashlane/dashlane-csv-importer.ts index fee70e4a1c..4a16f9dc99 100644 --- a/libs/importer/src/importers/dashlane/dashlane-csv-importer.ts +++ b/libs/importer/src/importers/dashlane/dashlane-csv-importer.ts @@ -17,7 +17,7 @@ import { SecureNoteRecord, } from "./types/dashlane-csv-types"; -const _mappedCredentialsColums = new Set([ +const _mappedCredentialsColumns = new Set([ "title", "note", "username", @@ -27,7 +27,7 @@ const _mappedCredentialsColums = new Set([ "category", ]); -const _mappedPersonalInfoAsIdentiyColumns = new Set([ +const _mappedPersonalInfoAsIdentityColumns = new Set([ "type", "title", "first_name", @@ -123,7 +123,7 @@ export class DashlaneCsvImporter extends BaseImporter implements Importer { cipher.login.totp = row.otpSecret; cipher.login.uris = this.makeUriArray(row.url); - this.importUnmappedFields(cipher, row, _mappedCredentialsColums); + this.importUnmappedFields(cipher, row, _mappedCredentialsColumns); } parsePaymentRecord(cipher: CipherView, row: PaymentsRecord) { @@ -249,7 +249,7 @@ export class DashlaneCsvImporter extends BaseImporter implements Importer { break; } - this.importUnmappedFields(cipher, row, _mappedPersonalInfoAsIdentiyColumns); + this.importUnmappedFields(cipher, row, _mappedPersonalInfoAsIdentityColumns); } parseSecureNoteRecords(cipher: CipherView, row: SecureNoteRecord) {