@cloudflare/vite-plugin 1.70.1 → 1.70.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +1,70 @@
1
- import { r as __name } from "./chunk-U6NEESU5-7whr_-o3.mjs";
2
- import { createRequire } from "node:module";
3
- import fs2 from "node:fs";
4
- import path__default from "node:path";
1
+ import { n as __name } from "./rolldown-runtime-BMUeFane-CMS1Ug5O.mjs";
2
+ import path from "node:path";
3
+ import fs from "node:fs";
4
+ import { fileURLToPath } from "node:url";
5
5
  import os from "node:os";
6
6
  import { promisify } from "node:util";
7
7
  import process from "node:process";
8
- import { fileURLToPath } from "node:url";
9
8
  import { Buffer } from "node:buffer";
10
- import fs, { constants as constants$1 } from "node:fs/promises";
9
+ import fs$1, { constants as constants$1 } from "node:fs/promises";
11
10
  import childProcess, { execFile } from "node:child_process";
12
-
13
- //#region ../../node_modules/.pnpm/@cloudflare+workers-utils@0.54.2_vitest@5.0.4_@opentelemetry+api@1.9.1_@types+node@22.1_361581328eb49d4e27344f4c3d9e2f95/node_modules/@cloudflare/workers-utils/dist/open-PCXX3ZDZ.mjs
14
- createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
15
- var isDockerCached;
11
+ //#region ../../node_modules/.pnpm/@cloudflare+workers-utils@0.57.0_vitest@5.0.4_@opentelemetry+api@1.9.1_@types+node@22.1_6af2c628f7abaa9578b25d7353ff2100/node_modules/@cloudflare/workers-utils/dist/open-BPppUKSJ.mjs
12
+ let isDockerCached;
16
13
  function hasDockerEnv() {
17
14
  try {
18
- fs2.statSync("/.dockerenv");
15
+ fs.statSync("/.dockerenv");
19
16
  return true;
20
17
  } catch {
21
18
  return false;
22
19
  }
23
20
  }
24
- __name(hasDockerEnv, "hasDockerEnv");
25
21
  function hasDockerCGroup() {
26
22
  try {
27
- return fs2.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
23
+ return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
28
24
  } catch {
29
25
  return false;
30
26
  }
31
27
  }
32
- __name(hasDockerCGroup, "hasDockerCGroup");
33
28
  function isDocker() {
34
29
  if (isDockerCached === void 0) isDockerCached = hasDockerEnv() || hasDockerCGroup();
35
30
  return isDockerCached;
36
31
  }
37
- __name(isDocker, "isDocker");
38
- var cachedResult;
39
- var hasContainerEnv = /* @__PURE__ */ __name(() => {
32
+ let cachedResult;
33
+ const hasContainerEnv = () => {
40
34
  try {
41
- fs2.statSync("/run/.containerenv");
35
+ fs.statSync("/run/.containerenv");
42
36
  return true;
43
37
  } catch {
44
38
  return false;
45
39
  }
46
- }, "hasContainerEnv");
40
+ };
47
41
  function isInsideContainer() {
48
42
  if (cachedResult === void 0) cachedResult = hasContainerEnv() || isDocker();
49
43
  return cachedResult;
50
44
  }
51
- __name(isInsideContainer, "isInsideContainer");
52
- var isWsl = /* @__PURE__ */ __name(() => {
45
+ const isWsl = () => {
53
46
  if (process.platform !== "linux") return false;
54
47
  if (os.release().toLowerCase().includes("microsoft")) {
55
48
  if (isInsideContainer()) return false;
56
49
  return true;
57
50
  }
58
51
  try {
59
- return fs2.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
52
+ return fs.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
60
53
  } catch {
61
54
  return false;
62
55
  }
63
- }, "isWsl");
56
+ };
64
57
  var is_wsl_default = process.env.__IS_WSL_TEST__ ? isWsl : isWsl();
65
- var execFile$1 = promisify(childProcess.execFile);
66
- var powerShellPath = /* @__PURE__ */ __name(() => `${process.env.SYSTEMROOT || process.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`, "powerShellPath");
67
- var executePowerShell = /* @__PURE__ */ __name(async (command, options = {}) => {
68
- const { powerShellPath: psPath,...execFileOptions } = options;
58
+ const execFile$2 = promisify(childProcess.execFile);
59
+ const powerShellPath$1 = /* @__PURE__ */ __name(() => `${process.env.SYSTEMROOT || process.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`, "powerShellPath");
60
+ const executePowerShell = async (command, options = {}) => {
61
+ const { powerShellPath: psPath, ...execFileOptions } = options;
69
62
  const encodedCommand = executePowerShell.encodeCommand(command);
70
- return execFile$1(psPath ?? powerShellPath(), [...executePowerShell.argumentsPrefix, encodedCommand], {
63
+ return execFile$2(psPath ?? powerShellPath$1(), [...executePowerShell.argumentsPrefix, encodedCommand], {
71
64
  encoding: "utf8",
72
65
  ...execFileOptions
73
66
  });
74
- }, "executePowerShell");
67
+ };
75
68
  executePowerShell.argumentsPrefix = [
76
69
  "-NoProfile",
77
70
  "-NonInteractive",
@@ -89,9 +82,8 @@ function parseMountPointFromConfig(content) {
89
82
  return match.groups.mountPoint.trim().replaceAll(/^["']|["']$/g, "");
90
83
  }
91
84
  }
92
- __name(parseMountPointFromConfig, "parseMountPointFromConfig");
93
- var execFile2 = promisify(childProcess.execFile);
94
- var wslDrivesMountPoint = /* @__PURE__ */ (() => {
85
+ const execFile$1 = promisify(childProcess.execFile);
86
+ const wslDrivesMountPoint = (() => {
95
87
  const defaultMountPoint = "/mnt/";
96
88
  let mountPoint;
97
89
  return async function() {
@@ -99,53 +91,55 @@ var wslDrivesMountPoint = /* @__PURE__ */ (() => {
99
91
  const configFilePath = "/etc/wsl.conf";
100
92
  let isConfigFileExists = false;
101
93
  try {
102
- await fs.access(configFilePath, constants$1.F_OK);
94
+ await fs$1.access(configFilePath, constants$1.F_OK);
103
95
  isConfigFileExists = true;
104
96
  } catch {}
105
97
  if (!isConfigFileExists) return defaultMountPoint;
106
- const parsedMountPoint = parseMountPointFromConfig(await fs.readFile(configFilePath, { encoding: "utf8" }));
98
+ const parsedMountPoint = parseMountPointFromConfig(await fs$1.readFile(configFilePath, { encoding: "utf8" }));
107
99
  if (parsedMountPoint === void 0) return defaultMountPoint;
108
100
  mountPoint = parsedMountPoint;
109
101
  mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
110
102
  return mountPoint;
111
103
  };
112
104
  })();
113
- var powerShellPath2 = is_wsl_default ? /* @__PURE__ */ __name(async () => {
105
+ const powerShellPathFromWsl = async () => {
114
106
  return `${await wslDrivesMountPoint()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
115
- }, "powerShellPathFromWsl") : powerShellPath;
116
- var canAccessPowerShellPromise;
117
- var canAccessPowerShell = /* @__PURE__ */ __name(async () => {
107
+ };
108
+ const powerShellPath = is_wsl_default ? powerShellPathFromWsl : powerShellPath$1;
109
+ let canAccessPowerShellPromise;
110
+ const canAccessPowerShell = async () => {
118
111
  canAccessPowerShellPromise ??= (async () => {
119
112
  try {
120
- const psPath = await powerShellPath2();
121
- await fs.access(psPath, constants$1.X_OK);
113
+ const psPath = await powerShellPath();
114
+ await fs$1.access(psPath, constants$1.X_OK);
122
115
  return true;
123
116
  } catch {
124
117
  return false;
125
118
  }
126
119
  })();
127
120
  return canAccessPowerShellPromise;
128
- }, "canAccessPowerShell");
129
- var wslDefaultBrowser = /* @__PURE__ */ __name(async () => {
130
- const psPath = await powerShellPath2();
131
- const { stdout: stdout$1 } = await executePowerShell(String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`, { powerShellPath: psPath });
132
- return stdout$1.trim();
133
- }, "wslDefaultBrowser");
134
- var convertWslPathToWindows = /* @__PURE__ */ __name(async (path2) => {
135
- if (/^[a-z]+:\/\//i.test(path2)) return path2;
121
+ };
122
+ const wslDefaultBrowser = async () => {
123
+ const psPath = await powerShellPath();
124
+ const command = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`;
125
+ const { stdout } = await executePowerShell(command, { powerShellPath: psPath });
126
+ return stdout.trim();
127
+ };
128
+ const convertWslPathToWindows = async (path) => {
129
+ if (/^[a-z]+:\/\//i.test(path)) return path;
136
130
  try {
137
- const { stdout: stdout$1 } = await execFile2("wslpath", ["-aw", path2], { encoding: "utf8" });
138
- return stdout$1.trim();
131
+ const { stdout } = await execFile$1("wslpath", ["-aw", path], { encoding: "utf8" });
132
+ return stdout.trim();
139
133
  } catch {
140
- return path2;
134
+ return path;
141
135
  }
142
- }, "convertWslPathToWindows");
136
+ };
143
137
  function defineLazyProperty(object, propertyName, valueGetter) {
144
- const define = /* @__PURE__ */ __name((value) => Object.defineProperty(object, propertyName, {
138
+ const define = (value) => Object.defineProperty(object, propertyName, {
145
139
  value,
146
140
  enumerable: true,
147
141
  writable: true
148
- }), "define");
142
+ });
149
143
  Object.defineProperty(object, propertyName, {
150
144
  configurable: true,
151
145
  enumerable: true,
@@ -160,41 +154,36 @@ function defineLazyProperty(object, propertyName, valueGetter) {
160
154
  });
161
155
  return object;
162
156
  }
163
- __name(defineLazyProperty, "defineLazyProperty");
164
- var execFileAsync = promisify(execFile);
157
+ const execFileAsync$3 = promisify(execFile);
165
158
  async function defaultBrowserId() {
166
159
  if (process.platform !== "darwin") throw new Error("macOS only");
167
- const { stdout: stdout$1 } = await execFileAsync("defaults", [
160
+ const { stdout } = await execFileAsync$3("defaults", [
168
161
  "read",
169
162
  "com.apple.LaunchServices/com.apple.launchservices.secure",
170
163
  "LSHandlers"
171
164
  ]);
172
- const browserId = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout$1)?.groups.id ?? "com.apple.Safari";
165
+ const browserId = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout)?.groups.id ?? "com.apple.Safari";
173
166
  if (browserId === "com.apple.safari") return "com.apple.Safari";
174
167
  return browserId;
175
168
  }
176
- __name(defaultBrowserId, "defaultBrowserId");
177
- var execFileAsync2 = promisify(execFile);
169
+ const execFileAsync$2 = promisify(execFile);
178
170
  async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
179
171
  if (process.platform !== "darwin") throw new Error("macOS only");
180
172
  const outputArguments = humanReadableOutput ? [] : ["-ss"];
181
173
  const execOptions = {};
182
174
  if (signal) execOptions.signal = signal;
183
- const { stdout: stdout$1 } = await execFileAsync2("osascript", [
175
+ const { stdout } = await execFileAsync$2("osascript", [
184
176
  "-e",
185
177
  script,
186
178
  outputArguments
187
179
  ], execOptions);
188
- return stdout$1.trim();
180
+ return stdout.trim();
189
181
  }
190
- __name(runAppleScript, "runAppleScript");
191
182
  async function bundleName(bundleId) {
192
- return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string
193
- tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
183
+ return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
194
184
  }
195
- __name(bundleName, "bundleName");
196
- var execFileAsync3 = promisify(execFile);
197
- var windowsBrowserProgIds = {
185
+ const execFileAsync$1 = promisify(execFile);
186
+ const windowsBrowserProgIds = {
198
187
  MSEdgeHTM: {
199
188
  name: "Edge",
200
189
  id: "com.microsoft.edge"
@@ -260,30 +249,26 @@ var windowsBrowserProgIds = {
260
249
  id: "com.microsoft.ie"
261
250
  }
262
251
  };
263
- var _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
264
- var UnknownBrowserError = class extends Error {
265
- static {
266
- __name(this, "UnknownBrowserError");
267
- }
268
- };
269
- async function defaultBrowser(_execFileAsync = execFileAsync3) {
270
- const { stdout: stdout$1 } = await _execFileAsync("reg", [
252
+ const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
253
+ var UnknownBrowserError = class extends Error {};
254
+ async function defaultBrowser$1(_execFileAsync = execFileAsync$1) {
255
+ const { stdout } = await _execFileAsync("reg", [
271
256
  "QUERY",
272
257
  " HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice",
273
258
  "/v",
274
259
  "ProgId"
275
260
  ]);
276
- const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout$1);
277
- if (!match) throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout$1)}`);
261
+ const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
262
+ if (!match) throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
278
263
  const { id } = match.groups;
279
264
  const browser = windowsBrowserProgIds[id];
280
265
  if (!browser) throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
281
266
  return browser;
282
267
  }
283
- __name(defaultBrowser, "defaultBrowser");
284
- var execFileAsync4 = promisify(execFile);
285
- var titleize = /* @__PURE__ */ __name((string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase()), "titleize");
286
- async function defaultBrowser2() {
268
+ __name(defaultBrowser$1, "defaultBrowser");
269
+ const execFileAsync = promisify(execFile);
270
+ const titleize = (string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase());
271
+ async function defaultBrowser() {
287
272
  if (process.platform === "darwin") {
288
273
  const id = await defaultBrowserId();
289
274
  return {
@@ -292,37 +277,36 @@ async function defaultBrowser2() {
292
277
  };
293
278
  }
294
279
  if (process.platform === "linux") {
295
- const { stdout: stdout$1 } = await execFileAsync4("xdg-mime", [
280
+ const { stdout } = await execFileAsync("xdg-mime", [
296
281
  "query",
297
282
  "default",
298
283
  "x-scheme-handler/http"
299
284
  ]);
300
- const id = stdout$1.trim();
285
+ const id = stdout.trim();
301
286
  return {
302
287
  name: titleize(id.replace(/.desktop$/, "").replace("-", " ")),
303
288
  id
304
289
  };
305
290
  }
306
- if (process.platform === "win32") return defaultBrowser();
291
+ if (process.platform === "win32") return defaultBrowser$1();
307
292
  throw new Error("Only macOS, Linux, and Windows are supported");
308
293
  }
309
- __name(defaultBrowser2, "defaultBrowser");
310
- var is_in_ssh_default = Boolean(process.env.SSH_CONNECTION || process.env.SSH_CLIENT || process.env.SSH_TTY);
311
- var fallbackAttemptSymbol = Symbol("fallbackAttempt");
312
- var __dirname$1 = import.meta.url ? path__default.dirname(fileURLToPath(import.meta.url)) : "";
313
- var localXdgOpenPath = path__default.join(__dirname$1, "xdg-open");
314
- var { platform, arch: arch$1 } = process;
315
- var tryEachApp = /* @__PURE__ */ __name(async (apps2, opener) => {
316
- if (apps2.length === 0) return;
294
+ const isInSsh = Boolean(process.env.SSH_CONNECTION || process.env.SSH_CLIENT || process.env.SSH_TTY);
295
+ const fallbackAttemptSymbol = Symbol("fallbackAttempt");
296
+ const __dirname = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : "";
297
+ const localXdgOpenPath = path.join(__dirname, "xdg-open");
298
+ const { platform, arch: arch$1 } = process;
299
+ const tryEachApp = async (apps, opener) => {
300
+ if (apps.length === 0) return;
317
301
  const errors = [];
318
- for (const app of apps2) try {
302
+ for (const app of apps) try {
319
303
  return await opener(app);
320
304
  } catch (error) {
321
305
  errors.push(error);
322
306
  }
323
307
  throw new AggregateError(errors, "Failed to open in all supported apps");
324
- }, "tryEachApp");
325
- var baseOpen = /* @__PURE__ */ __name(async (options) => {
308
+ };
309
+ const baseOpen = async (options) => {
326
310
  options = {
327
311
  wait: false,
328
312
  background: false,
@@ -370,7 +354,7 @@ var baseOpen = /* @__PURE__ */ __name(async (options) => {
370
354
  if (is_wsl_default) {
371
355
  const progId = await wslDefaultBrowser();
372
356
  browser = _windowsBrowserProgIdMap.get(progId) ?? {};
373
- } else browser = await defaultBrowser2();
357
+ } else browser = await defaultBrowser();
374
358
  if (browser.id in ids) {
375
359
  const browserName = ids[browser.id.toLowerCase()];
376
360
  if (app === "browserPrivate") {
@@ -391,7 +375,7 @@ var baseOpen = /* @__PURE__ */ __name(async (options) => {
391
375
  const cliArguments = [];
392
376
  const childProcessOptions = {};
393
377
  let shouldUseWindowsInWsl = false;
394
- if (is_wsl_default && !isInsideContainer() && !is_in_ssh_default && !app) shouldUseWindowsInWsl = await canAccessPowerShell();
378
+ if (is_wsl_default && !isInsideContainer() && !isInSsh && !app) shouldUseWindowsInWsl = await canAccessPowerShell();
395
379
  if (platform === "darwin") {
396
380
  command = "open";
397
381
  if (options.wait) cliArguments.push("--wait-apps");
@@ -399,7 +383,7 @@ var baseOpen = /* @__PURE__ */ __name(async (options) => {
399
383
  if (options.newInstance) cliArguments.push("--new");
400
384
  if (app) cliArguments.push("-a", app);
401
385
  } else if (platform === "win32" || shouldUseWindowsInWsl) {
402
- command = await powerShellPath2();
386
+ command = await powerShellPath();
403
387
  cliArguments.push(...executePowerShell.argumentsPrefix);
404
388
  if (!is_wsl_default) childProcessOptions.windowsVerbatimArguments = true;
405
389
  if (is_wsl_default && options.target) options.target = await convertWslPathToWindows(options.target);
@@ -418,10 +402,10 @@ var baseOpen = /* @__PURE__ */ __name(async (options) => {
418
402
  } else {
419
403
  if (app) command = app;
420
404
  else {
421
- const isBundled = !__dirname$1 || __dirname$1 === "/";
405
+ const isBundled = !__dirname || __dirname === "/";
422
406
  let exeLocalXdgOpen = false;
423
407
  try {
424
- await fs.access(localXdgOpenPath, constants$1.X_OK);
408
+ await fs$1.access(localXdgOpenPath, constants$1.X_OK);
425
409
  exeLocalXdgOpen = true;
426
410
  } catch {}
427
411
  command = process.versions.electron ?? (platform === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
@@ -435,17 +419,17 @@ var baseOpen = /* @__PURE__ */ __name(async (options) => {
435
419
  if (platform === "darwin" && appArguments.length > 0) cliArguments.push("--args", ...appArguments);
436
420
  if (options.target) cliArguments.push(options.target);
437
421
  const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
438
- if (options.wait) return new Promise((resolve$1, reject) => {
422
+ if (options.wait) return new Promise((resolve, reject) => {
439
423
  subprocess.once("error", reject);
440
424
  subprocess.once("close", (exitCode) => {
441
425
  if (!options.allowNonzeroExitCode && exitCode !== 0) {
442
426
  reject(/* @__PURE__ */ new Error(`Exited with code ${exitCode}`));
443
427
  return;
444
428
  }
445
- resolve$1(subprocess);
429
+ resolve(subprocess);
446
430
  });
447
431
  });
448
- if (isFallbackAttempt) return new Promise((resolve$1, reject) => {
432
+ if (isFallbackAttempt) return new Promise((resolve, reject) => {
449
433
  subprocess.once("error", reject);
450
434
  subprocess.once("spawn", () => {
451
435
  subprocess.once("close", (exitCode) => {
@@ -455,40 +439,38 @@ var baseOpen = /* @__PURE__ */ __name(async (options) => {
455
439
  return;
456
440
  }
457
441
  subprocess.unref();
458
- resolve$1(subprocess);
442
+ resolve(subprocess);
459
443
  });
460
444
  });
461
445
  });
462
446
  subprocess.unref();
463
- return new Promise((resolve$1, reject) => {
447
+ return new Promise((resolve, reject) => {
464
448
  subprocess.once("error", reject);
465
449
  subprocess.once("spawn", () => {
466
450
  subprocess.off("error", reject);
467
- resolve$1(subprocess);
451
+ resolve(subprocess);
468
452
  });
469
453
  });
470
- }, "baseOpen");
471
- var open = /* @__PURE__ */ __name((target, options) => {
454
+ };
455
+ const open = (target, options) => {
472
456
  if (typeof target !== "string") throw new TypeError("Expected a `target`");
473
457
  return baseOpen({
474
458
  ...options,
475
459
  target
476
460
  });
477
- }, "open");
461
+ };
478
462
  function detectArchBinary(binary) {
479
463
  if (typeof binary === "string" || Array.isArray(binary)) return binary;
480
464
  const { [arch$1]: archBinary } = binary;
481
465
  if (!archBinary) throw new Error(`${arch$1} is not supported`);
482
466
  return archBinary;
483
467
  }
484
- __name(detectArchBinary, "detectArchBinary");
485
468
  function detectPlatformBinary({ [platform]: platformBinary }, { wsl } = {}) {
486
469
  if (wsl && is_wsl_default) return detectArchBinary(wsl);
487
470
  if (!platformBinary) throw new Error(`${platform} is not supported`);
488
471
  return detectArchBinary(platformBinary);
489
472
  }
490
- __name(detectPlatformBinary, "detectPlatformBinary");
491
- var apps = {
473
+ const apps = {
492
474
  browser: "browser",
493
475
  browserPrivate: "browserPrivate"
494
476
  };
@@ -524,7 +506,5 @@ defineLazyProperty(apps, "edge", () => detectPlatformBinary({
524
506
  linux: ["microsoft-edge", "microsoft-edge-dev"]
525
507
  }, { wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" }));
526
508
  defineLazyProperty(apps, "safari", () => detectPlatformBinary({ darwin: "Safari" }));
527
- var open_default = open;
528
-
529
509
  //#endregion
530
- export { open_default as default };
510
+ export { open as default };