@docusaurus/core 3.8.1-canary-6366 → 3.8.1-canary-6372

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.
@@ -51,8 +51,14 @@ async function tryOpenWithAppleScript({ url, browser, }) {
51
51
  ];
52
52
  // Among all the supported browsers, retrieves to stdout the active ones
53
53
  const command = `ps cax -o command | grep -E "^(${supportedChromiumBrowsers.join('|')})$"`;
54
- const result = await execPromise(command).catch(() => {
55
- // Ignore grep errors when macOS user has no Chromium-based browser open
54
+ const result = await Promise
55
+ // TODO Docusaurus v4: use Promise.try()
56
+ // See why here https://github.com/facebook/docusaurus/issues/11204#issuecomment-3073480330
57
+ .resolve()
58
+ .then(() => execPromise(command))
59
+ .catch(() => {
60
+ // Ignore all errors
61
+ // In particular grep errors when macOS user has no Chromium-based browser open
56
62
  // See https://github.com/facebook/docusaurus/issues/11204
57
63
  });
58
64
  if (!result) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "3.8.1-canary-6366",
4
+ "version": "3.8.1-canary-6372",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,13 +33,13 @@
33
33
  "url": "https://github.com/facebook/docusaurus/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@docusaurus/babel": "3.8.1-canary-6366",
37
- "@docusaurus/bundler": "3.8.1-canary-6366",
38
- "@docusaurus/logger": "3.8.1-canary-6366",
39
- "@docusaurus/mdx-loader": "3.8.1-canary-6366",
40
- "@docusaurus/utils": "3.8.1-canary-6366",
41
- "@docusaurus/utils-common": "3.8.1-canary-6366",
42
- "@docusaurus/utils-validation": "3.8.1-canary-6366",
36
+ "@docusaurus/babel": "3.8.1-canary-6372",
37
+ "@docusaurus/bundler": "3.8.1-canary-6372",
38
+ "@docusaurus/logger": "3.8.1-canary-6372",
39
+ "@docusaurus/mdx-loader": "3.8.1-canary-6372",
40
+ "@docusaurus/utils": "3.8.1-canary-6372",
41
+ "@docusaurus/utils-common": "3.8.1-canary-6372",
42
+ "@docusaurus/utils-validation": "3.8.1-canary-6372",
43
43
  "boxen": "^6.2.1",
44
44
  "chalk": "^4.1.2",
45
45
  "chokidar": "^3.5.3",
@@ -77,8 +77,8 @@
77
77
  "webpack-merge": "^6.0.1"
78
78
  },
79
79
  "devDependencies": {
80
- "@docusaurus/module-type-aliases": "3.8.1-canary-6366",
81
- "@docusaurus/types": "3.8.1-canary-6366",
80
+ "@docusaurus/module-type-aliases": "3.8.1-canary-6372",
81
+ "@docusaurus/types": "3.8.1-canary-6372",
82
82
  "@total-typescript/shoehorn": "^0.1.2",
83
83
  "@types/detect-port": "^1.3.3",
84
84
  "@types/react-dom": "^18.2.7",
@@ -98,5 +98,5 @@
98
98
  "engines": {
99
99
  "node": ">=18.0"
100
100
  },
101
- "gitHead": "5d8dce6cc0260c4652786c4ce3325f8c234c2282"
101
+ "gitHead": "0229ae8aadbcfbebd1f49b3bdd174bea21ae93d4"
102
102
  }