1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +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

@@ -85,7 +85,7 @@
"multer": "1.4.5-lts.2",
"node-fetch": "2.6.12",
"node-forge": "1.3.1",
"open": "8.4.2",
"open": "10.1.2",
"papaparse": "5.5.3",
"proper-lockfile": "4.1.2",
"rxjs": "7.8.1",

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);
}
}