1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

[deps] Autofill: Update prettier to v3.2.2 (#7565)

* [deps] Autofill: Update prettier to v3.2.2

* prettier fixes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
Jonathan Prusik 2024-01-17 16:02:44 -05:00 committed by GitHub
parent a102f8d90a
commit 8e9a104bd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 42 additions and 37 deletions

View File

@ -212,8 +212,9 @@ export class CollectionDialogComponent implements OnInit, OnDestroy {
} else {
this.nestOptions = collections;
const parent = collections.find((c) => c.id === this.params.parentCollectionId);
const currentOrgUserId = users.data.find((u) => u.userId === this.organization?.userId)
?.id;
const currentOrgUserId = users.data.find(
(u) => u.userId === this.organization?.userId,
)?.id;
const initialSelection: AccessItemValue[] =
currentOrgUserId !== undefined && flexibleCollections
? [

View File

@ -2,47 +2,47 @@
"folders": [
{
"name": "root",
"path": "."
"path": ".",
},
{
"name": "web vault",
"path": "apps/web"
"path": "apps/web",
},
{
"name": "web vault (bit)",
"path": "bitwarden_license/bit-web"
"path": "bitwarden_license/bit-web",
},
{
"name": "cli",
"path": "apps/cli"
"path": "apps/cli",
},
{
"name": "desktop",
"path": "apps/desktop"
"path": "apps/desktop",
},
{
"name": "browser",
"path": "apps/browser"
"path": "apps/browser",
},
{
"name": "libs",
"path": "libs"
}
"path": "libs",
},
],
"settings": {
"eslint.options": {
"overrideConfig": {
"parserOptions": {
"project": ["${workspaceFolder}/tsconfig.eslint.json"]
}
}
"project": ["${workspaceFolder}/tsconfig.eslint.json"],
},
},
},
"debug.javascript.terminalOptions": {
"sourceMapPathOverrides": {
"webpack:///./~/*": "${workspaceFolder:root}/node_modules/*",
"webpack://?:*/*": "${workspaceFolder}/*",
"webpack://@bitwarden/cli/*": "${workspaceFolder}/*"
}
"webpack://@bitwarden/cli/*": "${workspaceFolder}/*",
},
},
"jest.disabledWorkspaceFolders": [
"browser",
@ -51,19 +51,19 @@
"libs",
"web vault",
"web vault (bit)",
"desktop"
"desktop",
],
"jest.jestCommandLine": "npx jest",
"angular.enable-strict-mode-prompt": false,
"typescript.preferences.importModuleSpecifier": "project-relative",
"javascript.preferences.importModuleSpecifier": "project-relative"
"javascript.preferences.importModuleSpecifier": "project-relative",
},
"extensions": {
"recommendations": [
"orta.vscode-jest",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"Angular.ng-template"
]
}
"Angular.ng-template",
],
},
}

View File

@ -183,8 +183,10 @@ export class PasswordLoginStrategy extends LoginStrategy {
{ masterPassword, email }: PasswordLoginCredentials,
options: MasterPasswordPolicyOptions,
): boolean {
const passwordStrength = this.passwordStrengthService.getPasswordStrength(masterPassword, email)
?.score;
const passwordStrength = this.passwordStrengthService.getPasswordStrength(
masterPassword,
email,
)?.score;
return this.policyService.evaluateMasterPassword(passwordStrength, masterPassword, options);
}

View File

@ -4,16 +4,18 @@ import { MigrationHelper } from "./migration-helper";
export const IRREVERSIBLE = new Error("Irreversible migration");
export type VersionFrom<T> = T extends Migrator<infer TFrom, number>
? TFrom extends NonNegativeInteger<TFrom>
? TFrom
: never
: never;
export type VersionTo<T> = T extends Migrator<number, infer TTo>
? TTo extends NonNegativeInteger<TTo>
? TTo
: never
: never;
export type VersionFrom<T> =
T extends Migrator<infer TFrom, number>
? TFrom extends NonNegativeInteger<TFrom>
? TFrom
: never
: never;
export type VersionTo<T> =
T extends Migrator<number, infer TTo>
? TTo extends NonNegativeInteger<TTo>
? TTo
: never
: never;
export type Direction = "up" | "down";
export abstract class Migrator<TFrom extends number, TTo extends number> {

8
package-lock.json generated
View File

@ -161,7 +161,7 @@
"pkg": "5.8.1",
"postcss": "8.4.32",
"postcss-loader": "7.3.3",
"prettier": "3.1.1",
"prettier": "3.2.2",
"prettier-plugin-tailwindcss": "0.5.11",
"process": "0.11.10",
"react": "18.2.0",
@ -32642,9 +32642,9 @@
}
},
"node_modules/prettier": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz",
"integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==",
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.2.tgz",
"integrity": "sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==",
"dev": true,
"bin": {
"prettier": "bin/prettier.cjs"

View File

@ -123,7 +123,7 @@
"pkg": "5.8.1",
"postcss": "8.4.32",
"postcss-loader": "7.3.3",
"prettier": "3.1.1",
"prettier": "3.2.2",
"prettier-plugin-tailwindcss": "0.5.11",
"process": "0.11.10",
"react": "18.2.0",