1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

[deps] Autofill: Update prettier to v3 (#7014)

* [deps] Autofill: Update prettier to v3

* prettier formatting updates

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
This commit is contained in:
renovate[bot]
2023-11-29 16:15:20 -05:00
committed by GitHub
parent 4ff5f38e89
commit 28de9439be
1145 changed files with 5898 additions and 5612 deletions

View File

@@ -86,7 +86,7 @@ export class Program {
writeLn(' echo \'{"name":"My Folder"}\' | bw encode');
writeLn(" bw create folder eyJuYW1lIjoiTXkgRm9sZGVyIn0K");
writeLn(
" bw edit folder c7c7b60b-9c61-40f2-8ccd-36c49595ed72 eyJuYW1lIjoiTXkgRm9sZGVyMiJ9Cg=="
" bw edit folder c7c7b60b-9c61-40f2-8ccd-36c49595ed72 eyJuYW1lIjoiTXkgRm9sZGVyMiJ9Cg==",
);
writeLn(" bw delete item 99ee88d2-6046-4ea7-92c2-acac464b1412");
writeLn(" bw generate -lusn --length 18");
@@ -95,7 +95,7 @@ export class Program {
writeLn(' bw send "text to send"');
writeLn(' echo "text to send" | bw send');
writeLn(
" bw receive https://vault.bitwarden.com/#/send/rg3iuoS_Akm2gqy6ADRHmg/Ht7dYjsqjmgqUM3rjzZDSQ"
" bw receive https://vault.bitwarden.com/#/send/rg3iuoS_Akm2gqy6ADRHmg/Ht7dYjsqjmgqUM3rjzZDSQ",
);
writeLn("", true);
});
@@ -110,7 +110,7 @@ export class Program {
.option("--passwordenv <passwordenv>", "Environment variable storing your password")
.option(
"--passwordfile <passwordfile>",
"Path to a file containing your password as its first line"
"Path to a file containing your password as its first line",
)
.option("--check", "Check login status.", async () => {
const authed = await this.main.stateService.getIsAuthenticated();
@@ -154,7 +154,7 @@ export class Program {
this.main.keyConnectorService,
this.main.policyApiService,
this.main.organizationService,
async () => await this.main.logout()
async () => await this.main.logout(),
);
const response = await command.run(email, password, options);
this.processResponse(response, true);
@@ -175,7 +175,7 @@ export class Program {
const command = new LogoutCommand(
this.main.authService,
this.main.i18nService,
async () => await this.main.logout()
async () => await this.main.logout(),
);
const response = await command.run();
this.processResponse(response);
@@ -197,15 +197,15 @@ export class Program {
const logoutCommand = new LogoutCommand(
this.main.authService,
this.main.i18nService,
async () => await this.main.logout()
async () => await this.main.logout(),
);
await logoutCommand.run();
this.processResponse(
Response.error(
"You cannot lock your vault because you are using Key Connector. " +
"To protect your vault, you have been logged out."
"To protect your vault, you have been logged out.",
),
true
true,
);
return;
}
@@ -246,7 +246,7 @@ export class Program {
.option("--passwordenv <passwordenv>", "Environment variable storing your password")
.option(
"--passwordfile <passwordfile>",
"Path to a file containing your password as its first line"
"Path to a file containing your password as its first line",
)
.action(async (password, cmd) => {
if (!cmd.check) {
@@ -261,7 +261,7 @@ export class Program {
this.main.environmentService,
this.main.syncService,
this.main.organizationApiService,
async () => await this.main.logout()
async () => await this.main.logout(),
);
const response = await command.run(password, cmd);
this.processResponse(response);
@@ -326,7 +326,7 @@ export class Program {
.action(async (options) => {
const command = new GenerateCommand(
this.main.passwordGenerationService,
this.main.stateService
this.main.stateService,
);
const response = await command.run(options);
this.processResponse(response);
@@ -356,17 +356,17 @@ export class Program {
.description("Configure CLI settings.")
.option(
"--web-vault <url>",
"Provides a custom web vault URL that differs from the base URL."
"Provides a custom web vault URL that differs from the base URL.",
)
.option("--api <url>", "Provides a custom API URL that differs from the base URL.")
.option("--identity <url>", "Provides a custom identity URL that differs from the base URL.")
.option(
"--icons <url>",
"Provides a custom icons service URL that differs from the base URL."
"Provides a custom icons service URL that differs from the base URL.",
)
.option(
"--notifications <url>",
"Provides a custom notifications URL that differs from the base URL."
"Provides a custom notifications URL that differs from the base URL.",
)
.option("--events <url>", "Provides a custom events URL that differs from the base URL.")
.option("--key-connector <url>", "Provides the URL for your Key Connector server.")
@@ -381,7 +381,7 @@ export class Program {
writeLn(" bw config server https://bw.company.com");
writeLn(" bw config server bitwarden.com");
writeLn(
" bw config server --api http://localhost:4000 --identity http://localhost:33656"
" bw config server --api http://localhost:4000 --identity http://localhost:33656",
);
writeLn("", true);
})
@@ -462,7 +462,7 @@ export class Program {
this.main.environmentService,
this.main.syncService,
this.main.stateService,
this.main.authService
this.main.authService,
);
const response = await command.run();
this.processResponse(response);
@@ -475,7 +475,7 @@ export class Program {
.option("--port <port>", "The port to run your API webserver on.")
.option(
"--disable-origin-protection",
"If set, allows requests with origin header. Warning, this option exists for backwards compatibility reasons and exposes your environment to known CSRF attacks."
"If set, allows requests with origin header. Warning, this option exists for backwards compatibility reasons and exposes your environment to known CSRF attacks.",
)
.on("--help", () => {
writeLn("\n Notes:");
@@ -606,7 +606,7 @@ export class Program {
if (await this.main.keyConnectorService.getUsesKeyConnector()) {
const response = Response.error(
"Your vault is locked. You must unlock your vault using your session key.\n" +
"If you do not have your session key, you can get a new one by logging out and logging in again."
"If you do not have your session key, you can get a new one by logging out and logging in again.",
);
this.processResponse(response, true);
} else {
@@ -620,7 +620,7 @@ export class Program {
this.main.environmentService,
this.main.syncService,
this.main.organizationApiService,
this.main.logout
this.main.logout,
);
const response = await command.run(null, null);
if (!response.success) {