mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 10:43:35 +00:00
[deps] Autofill: Update prettier to v3.7.3 (#17853)
* [deps] Autofill: Update prettier to v3.6.2 * fix: [PM-23425] Fix prettier issues related to dependency updte Signed-off-by: Ben Brooks <bbrooks@bitwarden.com> * [deps] Autofill: Update prettier to v3.6.2 * [deps] Autofill: Update prettier to v3.7.3 * [PM-29379] Fix prettier issues found with the updated Prettier 3.7.3 Signed-off-by: Ben Brooks <bbrooks@bitwarden.com> --------- Signed-off-by: Ben Brooks <bbrooks@bitwarden.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ben Brooks <bbrooks@bitwarden.com>
This commit is contained in:
@@ -7,8 +7,7 @@ import { ForwarderContext } from "../forwarder-context";
|
||||
export class CreateForwardingAddressRpc<
|
||||
Settings extends ApiSettings,
|
||||
Req extends IntegrationRequest = IntegrationRequest,
|
||||
> implements JsonRpc<Req, string>
|
||||
{
|
||||
> implements JsonRpc<Req, string> {
|
||||
constructor(
|
||||
readonly requestor: ForwarderConfiguration<Settings>,
|
||||
readonly context: ForwarderContext<Settings>,
|
||||
|
||||
@@ -9,8 +9,7 @@ import { ForwarderContext } from "../forwarder-context";
|
||||
export class GetAccountIdRpc<
|
||||
Settings extends ApiSettings,
|
||||
Req extends IntegrationRequest = IntegrationRequest,
|
||||
> implements JsonRpc<Req, string>
|
||||
{
|
||||
> implements JsonRpc<Req, string> {
|
||||
constructor(
|
||||
readonly requestor: ForwarderConfiguration<Settings>,
|
||||
readonly context: ForwarderContext<Settings>,
|
||||
|
||||
@@ -2,9 +2,10 @@ import { PolicyEvaluator } from "../abstractions";
|
||||
import { NoPolicy } from "../types";
|
||||
|
||||
/** A policy evaluator that does not apply any policy */
|
||||
export class DefaultPolicyEvaluator<PolicyTarget>
|
||||
implements PolicyEvaluator<NoPolicy, PolicyTarget>
|
||||
{
|
||||
export class DefaultPolicyEvaluator<PolicyTarget> implements PolicyEvaluator<
|
||||
NoPolicy,
|
||||
PolicyTarget
|
||||
> {
|
||||
/** {@link PolicyEvaluator.policy} */
|
||||
get policy() {
|
||||
return {};
|
||||
|
||||
@@ -13,9 +13,7 @@ import { atLeast, atLeastSum, maybe, readonlyTrueWhen, AtLeastOne, Zero } from "
|
||||
import { PasswordPolicyConstraints } from "./password-policy-constraints";
|
||||
|
||||
/** Creates state constraints by blending policy and password settings. */
|
||||
export class DynamicPasswordPolicyConstraints
|
||||
implements DynamicStateConstraints<PasswordGeneratorSettings>
|
||||
{
|
||||
export class DynamicPasswordPolicyConstraints implements DynamicStateConstraints<PasswordGeneratorSettings> {
|
||||
/** Instantiates the object.
|
||||
* @param policy the password policy to enforce. This cannot be
|
||||
* `null` or `undefined`.
|
||||
|
||||
@@ -13,9 +13,10 @@ import { observe$PerUserId, sharedStateByUserId } from "../util";
|
||||
import { CATCHALL_SETTINGS } from "./storage";
|
||||
|
||||
/** Strategy for creating usernames using a catchall email address */
|
||||
export class CatchallGeneratorStrategy
|
||||
implements GeneratorStrategy<CatchallGenerationOptions, NoPolicy>
|
||||
{
|
||||
export class CatchallGeneratorStrategy implements GeneratorStrategy<
|
||||
CatchallGenerationOptions,
|
||||
NoPolicy
|
||||
> {
|
||||
/** Instantiates the generation strategy
|
||||
* @param usernameService generates a catchall address for a domain
|
||||
*/
|
||||
|
||||
@@ -16,9 +16,10 @@ const UsernameDigits = Object.freeze({
|
||||
});
|
||||
|
||||
/** Strategy for creating usernames from the EFF wordlist */
|
||||
export class EffUsernameGeneratorStrategy
|
||||
implements GeneratorStrategy<EffUsernameGenerationOptions, NoPolicy>
|
||||
{
|
||||
export class EffUsernameGeneratorStrategy implements GeneratorStrategy<
|
||||
EffUsernameGenerationOptions,
|
||||
NoPolicy
|
||||
> {
|
||||
/** Instantiates the generation strategy
|
||||
* @param usernameService generates a username from EFF word list
|
||||
*/
|
||||
|
||||
@@ -10,8 +10,7 @@ import { Classifier } from "@bitwarden/common/tools/state/classifier";
|
||||
export class OptionsClassifier<
|
||||
Settings,
|
||||
Options extends IntegrationRequest & Settings = IntegrationRequest & Settings,
|
||||
> implements Classifier<Options, Record<string, never>, Settings>
|
||||
{
|
||||
> implements Classifier<Options, Record<string, never>, Settings> {
|
||||
/** Partitions `secret` into its disclosed properties and secret properties.
|
||||
* @param value The object to partition
|
||||
* @returns an object that classifies secrets.
|
||||
|
||||
@@ -14,9 +14,10 @@ import { observe$PerUserId, optionsToEffWordListRequest, sharedStateByUserId } f
|
||||
import { PASSPHRASE_SETTINGS } from "./storage";
|
||||
|
||||
/** Generates passphrases composed of random words */
|
||||
export class PassphraseGeneratorStrategy
|
||||
implements GeneratorStrategy<PassphraseGenerationOptions, PassphraseGeneratorPolicy>
|
||||
{
|
||||
export class PassphraseGeneratorStrategy implements GeneratorStrategy<
|
||||
PassphraseGenerationOptions,
|
||||
PassphraseGeneratorPolicy
|
||||
> {
|
||||
/** instantiates the password generator strategy.
|
||||
* @param legacy generates the passphrase
|
||||
* @param stateProvider provides durable state
|
||||
|
||||
@@ -12,9 +12,10 @@ import { observe$PerUserId, optionsToRandomAsciiRequest, sharedStateByUserId } f
|
||||
import { PASSWORD_SETTINGS } from "./storage";
|
||||
|
||||
/** Generates passwords composed of random characters */
|
||||
export class PasswordGeneratorStrategy
|
||||
implements GeneratorStrategy<PasswordGenerationOptions, PasswordGeneratorPolicy>
|
||||
{
|
||||
export class PasswordGeneratorStrategy implements GeneratorStrategy<
|
||||
PasswordGenerationOptions,
|
||||
PasswordGeneratorPolicy
|
||||
> {
|
||||
/** instantiates the password generator strategy.
|
||||
* @param legacy generates the password
|
||||
*/
|
||||
|
||||
@@ -17,9 +17,10 @@ import { SUBADDRESS_SETTINGS } from "./storage";
|
||||
* For example, if the email address is `jd+xyz@domain.io`,
|
||||
* the subaddress is `xyz`.
|
||||
*/
|
||||
export class SubaddressGeneratorStrategy
|
||||
implements GeneratorStrategy<SubaddressGenerationOptions, NoPolicy>
|
||||
{
|
||||
export class SubaddressGeneratorStrategy implements GeneratorStrategy<
|
||||
SubaddressGenerationOptions,
|
||||
NoPolicy
|
||||
> {
|
||||
/** Instantiates the generation strategy
|
||||
* @param usernameService generates an email subaddress from an email address
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user