1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

[PM-22250] Bump open (#15011)

Upgrade open to latest version.
This commit is contained in:
Oscar Hinton
2025-06-06 12:06:14 +02:00
committed by GitHub
parent 1ec33caf1d
commit 18573bdc48
4 changed files with 94 additions and 67 deletions

View File

@@ -2,12 +2,11 @@
// @ts-strict-ignore
import * as child_process from "child_process";
import open from "open";
import { ClientType, DeviceType } from "@bitwarden/common/enums";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
// eslint-disable-next-line
const open = require("open");
export class CliPlatformUtilsService implements PlatformUtilsService {
clientType: ClientType;
@@ -84,7 +83,8 @@ export class CliPlatformUtilsService implements PlatformUtilsService {
if (process.platform === "linux") {
child_process.spawnSync("xdg-open", [uri]);
} else {
open(uri);
// eslint-disable-next-line no-console
open(uri).catch(console.error);
}
}