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:
parent
a102f8d90a
commit
8e9a104bd0
@ -212,8 +212,9 @@ export class CollectionDialogComponent implements OnInit, OnDestroy {
|
|||||||
} else {
|
} else {
|
||||||
this.nestOptions = collections;
|
this.nestOptions = collections;
|
||||||
const parent = collections.find((c) => c.id === this.params.parentCollectionId);
|
const parent = collections.find((c) => c.id === this.params.parentCollectionId);
|
||||||
const currentOrgUserId = users.data.find((u) => u.userId === this.organization?.userId)
|
const currentOrgUserId = users.data.find(
|
||||||
?.id;
|
(u) => u.userId === this.organization?.userId,
|
||||||
|
)?.id;
|
||||||
const initialSelection: AccessItemValue[] =
|
const initialSelection: AccessItemValue[] =
|
||||||
currentOrgUserId !== undefined && flexibleCollections
|
currentOrgUserId !== undefined && flexibleCollections
|
||||||
? [
|
? [
|
||||||
|
@ -2,47 +2,47 @@
|
|||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"name": "root",
|
"name": "root",
|
||||||
"path": "."
|
"path": ".",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "web vault",
|
"name": "web vault",
|
||||||
"path": "apps/web"
|
"path": "apps/web",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "web vault (bit)",
|
"name": "web vault (bit)",
|
||||||
"path": "bitwarden_license/bit-web"
|
"path": "bitwarden_license/bit-web",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "cli",
|
"name": "cli",
|
||||||
"path": "apps/cli"
|
"path": "apps/cli",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "desktop",
|
"name": "desktop",
|
||||||
"path": "apps/desktop"
|
"path": "apps/desktop",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "browser",
|
"name": "browser",
|
||||||
"path": "apps/browser"
|
"path": "apps/browser",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "libs",
|
"name": "libs",
|
||||||
"path": "libs"
|
"path": "libs",
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"eslint.options": {
|
"eslint.options": {
|
||||||
"overrideConfig": {
|
"overrideConfig": {
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"project": ["${workspaceFolder}/tsconfig.eslint.json"]
|
"project": ["${workspaceFolder}/tsconfig.eslint.json"],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"debug.javascript.terminalOptions": {
|
"debug.javascript.terminalOptions": {
|
||||||
"sourceMapPathOverrides": {
|
"sourceMapPathOverrides": {
|
||||||
"webpack:///./~/*": "${workspaceFolder:root}/node_modules/*",
|
"webpack:///./~/*": "${workspaceFolder:root}/node_modules/*",
|
||||||
"webpack://?:*/*": "${workspaceFolder}/*",
|
"webpack://?:*/*": "${workspaceFolder}/*",
|
||||||
"webpack://@bitwarden/cli/*": "${workspaceFolder}/*"
|
"webpack://@bitwarden/cli/*": "${workspaceFolder}/*",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"jest.disabledWorkspaceFolders": [
|
"jest.disabledWorkspaceFolders": [
|
||||||
"browser",
|
"browser",
|
||||||
@ -51,19 +51,19 @@
|
|||||||
"libs",
|
"libs",
|
||||||
"web vault",
|
"web vault",
|
||||||
"web vault (bit)",
|
"web vault (bit)",
|
||||||
"desktop"
|
"desktop",
|
||||||
],
|
],
|
||||||
"jest.jestCommandLine": "npx jest",
|
"jest.jestCommandLine": "npx jest",
|
||||||
"angular.enable-strict-mode-prompt": false,
|
"angular.enable-strict-mode-prompt": false,
|
||||||
"typescript.preferences.importModuleSpecifier": "project-relative",
|
"typescript.preferences.importModuleSpecifier": "project-relative",
|
||||||
"javascript.preferences.importModuleSpecifier": "project-relative"
|
"javascript.preferences.importModuleSpecifier": "project-relative",
|
||||||
},
|
},
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"orta.vscode-jest",
|
"orta.vscode-jest",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"Angular.ng-template"
|
"Angular.ng-template",
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
@ -183,8 +183,10 @@ export class PasswordLoginStrategy extends LoginStrategy {
|
|||||||
{ masterPassword, email }: PasswordLoginCredentials,
|
{ masterPassword, email }: PasswordLoginCredentials,
|
||||||
options: MasterPasswordPolicyOptions,
|
options: MasterPasswordPolicyOptions,
|
||||||
): boolean {
|
): boolean {
|
||||||
const passwordStrength = this.passwordStrengthService.getPasswordStrength(masterPassword, email)
|
const passwordStrength = this.passwordStrengthService.getPasswordStrength(
|
||||||
?.score;
|
masterPassword,
|
||||||
|
email,
|
||||||
|
)?.score;
|
||||||
|
|
||||||
return this.policyService.evaluateMasterPassword(passwordStrength, masterPassword, options);
|
return this.policyService.evaluateMasterPassword(passwordStrength, masterPassword, options);
|
||||||
}
|
}
|
||||||
|
@ -4,16 +4,18 @@ import { MigrationHelper } from "./migration-helper";
|
|||||||
|
|
||||||
export const IRREVERSIBLE = new Error("Irreversible migration");
|
export const IRREVERSIBLE = new Error("Irreversible migration");
|
||||||
|
|
||||||
export type VersionFrom<T> = T extends Migrator<infer TFrom, number>
|
export type VersionFrom<T> =
|
||||||
? TFrom extends NonNegativeInteger<TFrom>
|
T extends Migrator<infer TFrom, number>
|
||||||
? TFrom
|
? TFrom extends NonNegativeInteger<TFrom>
|
||||||
: never
|
? TFrom
|
||||||
: never;
|
: never
|
||||||
export type VersionTo<T> = T extends Migrator<number, infer TTo>
|
: never;
|
||||||
? TTo extends NonNegativeInteger<TTo>
|
export type VersionTo<T> =
|
||||||
? TTo
|
T extends Migrator<number, infer TTo>
|
||||||
: never
|
? TTo extends NonNegativeInteger<TTo>
|
||||||
: never;
|
? TTo
|
||||||
|
: never
|
||||||
|
: never;
|
||||||
export type Direction = "up" | "down";
|
export type Direction = "up" | "down";
|
||||||
|
|
||||||
export abstract class Migrator<TFrom extends number, TTo extends number> {
|
export abstract class Migrator<TFrom extends number, TTo extends number> {
|
||||||
|
8
package-lock.json
generated
8
package-lock.json
generated
@ -161,7 +161,7 @@
|
|||||||
"pkg": "5.8.1",
|
"pkg": "5.8.1",
|
||||||
"postcss": "8.4.32",
|
"postcss": "8.4.32",
|
||||||
"postcss-loader": "7.3.3",
|
"postcss-loader": "7.3.3",
|
||||||
"prettier": "3.1.1",
|
"prettier": "3.2.2",
|
||||||
"prettier-plugin-tailwindcss": "0.5.11",
|
"prettier-plugin-tailwindcss": "0.5.11",
|
||||||
"process": "0.11.10",
|
"process": "0.11.10",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
@ -32642,9 +32642,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "3.1.1",
|
"version": "3.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.2.tgz",
|
||||||
"integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==",
|
"integrity": "sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"prettier": "bin/prettier.cjs"
|
"prettier": "bin/prettier.cjs"
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
"pkg": "5.8.1",
|
"pkg": "5.8.1",
|
||||||
"postcss": "8.4.32",
|
"postcss": "8.4.32",
|
||||||
"postcss-loader": "7.3.3",
|
"postcss-loader": "7.3.3",
|
||||||
"prettier": "3.1.1",
|
"prettier": "3.2.2",
|
||||||
"prettier-plugin-tailwindcss": "0.5.11",
|
"prettier-plugin-tailwindcss": "0.5.11",
|
||||||
"process": "0.11.10",
|
"process": "0.11.10",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user