muon-ui 0.22.0 → 0.23.0

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.
Files changed (43) hide show
  1. package/dist/cli.cjs +12 -11
  2. package/dist/cli.cjs.map +1 -1
  3. package/dist/index.cjs +2 -2
  4. package/dist/index.mjs +2 -2
  5. package/dist/native/linux-amd64/muon-builder +0 -0
  6. package/dist/native/linux-amd64/muon-launcher +0 -0
  7. package/dist/native/linux-amd64/muon-runtime-helper +0 -0
  8. package/dist/native/linux-arm64/muon-builder +0 -0
  9. package/dist/native/linux-arm64/muon-launcher +0 -0
  10. package/dist/native/linux-arm64/muon-runtime-helper +0 -0
  11. package/dist/native/linux-armhf/muon-builder +0 -0
  12. package/dist/native/linux-armhf/muon-launcher +0 -0
  13. package/dist/native/linux-armhf/muon-runtime-helper +0 -0
  14. package/dist/native/windows-amd64/muon-builder.exe +0 -0
  15. package/dist/native/windows-amd64/muon-launcher.exe +0 -0
  16. package/dist/native/windows-amd64/muon-plugin-inspector.exe +0 -0
  17. package/dist/native/windows-i686/muon-builder.exe +0 -0
  18. package/dist/native/windows-i686/muon-launcher.exe +0 -0
  19. package/dist/native/windows-i686/muon-plugin-inspector.exe +0 -0
  20. package/dist/runtime/linux-amd64/muon-core +0 -0
  21. package/dist/runtime/linux-amd64/plugins/node-bridge.mjs +2 -2
  22. package/dist/runtime/linux-arm64/muon-core +0 -0
  23. package/dist/runtime/linux-arm64/plugins/node-bridge.mjs +2 -2
  24. package/dist/runtime/linux-armhf/muon-core +0 -0
  25. package/dist/runtime/linux-armhf/plugins/node-bridge.mjs +2 -2
  26. package/dist/runtime/windows-amd64/libcardio.dll +0 -0
  27. package/dist/runtime/windows-amd64/libmuon-ui.dll +0 -0
  28. package/dist/runtime/windows-amd64/muon-core.exe +0 -0
  29. package/dist/runtime/windows-amd64/plugins/node-bridge.mjs +2 -2
  30. package/dist/runtime/windows-amd64/plugins/node.dll +0 -0
  31. package/dist/runtime/windows-i686/libcardio.dll +0 -0
  32. package/dist/runtime/windows-i686/libmuon-ui.dll +0 -0
  33. package/dist/runtime/windows-i686/muon-core.exe +0 -0
  34. package/dist/runtime/windows-i686/plugins/node-bridge.mjs +2 -2
  35. package/dist/runtime/windows-i686/plugins/node.dll +0 -0
  36. package/dist/{vite-internals-BA4riWRd.cjs → vite-internals-Dk85Y_D_.cjs} +12 -9
  37. package/dist/{vite-internals-BA4riWRd.cjs.map → vite-internals-Dk85Y_D_.cjs.map} +1 -1
  38. package/dist/vite.cjs +3 -3
  39. package/dist/vite.cjs.map +1 -1
  40. package/dist/vite.mjs +11 -8
  41. package/dist/vite.mjs.map +1 -1
  42. package/package.json +7 -7
  43. package/vite.d.ts +9 -6
package/dist/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * name: muon-ui
3
- * version: 0.22.0
3
+ * version: 0.23.0
4
4
  * description: A multi-platform GUI application framework that uses CEF as its backend
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 5c8d38ea864ba1916f26e6beb6814a4af57479d7
8
+ * git.commit.hash: d43e63afd68a412a86be0cd61fceeb04cbd82270
9
9
  */
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * name: muon-ui
3
- * version: 0.22.0
3
+ * version: 0.23.0
4
4
  * description: A multi-platform GUI application framework that uses CEF as its backend
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 5c8d38ea864ba1916f26e6beb6814a4af57479d7
8
+ * git.commit.hash: d43e63afd68a412a86be0cd61fceeb04cbd82270
9
9
  */
Binary file
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: muon-node
3
- * version: 0.22.0
3
+ * version: 0.23.0
4
4
  * description: Out-of-process Node.js bridge for muon.
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 5c8d38ea864ba1916f26e6beb6814a4af57479d7
8
+ * git.commit.hash: d43e63afd68a412a86be0cd61fceeb04cbd82270
9
9
  */
10
10
  import { Socket, createConnection } from "node:net";
11
11
  import { timingSafeEqual } from "node:crypto";
Binary file
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: muon-node
3
- * version: 0.22.0
3
+ * version: 0.23.0
4
4
  * description: Out-of-process Node.js bridge for muon.
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 5c8d38ea864ba1916f26e6beb6814a4af57479d7
8
+ * git.commit.hash: d43e63afd68a412a86be0cd61fceeb04cbd82270
9
9
  */
10
10
  import { Socket, createConnection } from "node:net";
11
11
  import { timingSafeEqual } from "node:crypto";
Binary file
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: muon-node
3
- * version: 0.22.0
3
+ * version: 0.23.0
4
4
  * description: Out-of-process Node.js bridge for muon.
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 5c8d38ea864ba1916f26e6beb6814a4af57479d7
8
+ * git.commit.hash: d43e63afd68a412a86be0cd61fceeb04cbd82270
9
9
  */
10
10
  import { Socket, createConnection } from "node:net";
11
11
  import { timingSafeEqual } from "node:crypto";
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: muon-node
3
- * version: 0.22.0
3
+ * version: 0.23.0
4
4
  * description: Out-of-process Node.js bridge for muon.
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 5c8d38ea864ba1916f26e6beb6814a4af57479d7
8
+ * git.commit.hash: d43e63afd68a412a86be0cd61fceeb04cbd82270
9
9
  */
10
10
  import { Socket, createConnection } from "node:net";
11
11
  import { timingSafeEqual } from "node:crypto";
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: muon-node
3
- * version: 0.22.0
3
+ * version: 0.23.0
4
4
  * description: Out-of-process Node.js bridge for muon.
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 5c8d38ea864ba1916f26e6beb6814a4af57479d7
8
+ * git.commit.hash: d43e63afd68a412a86be0cd61fceeb04cbd82270
9
9
  */
10
10
  import { Socket, createConnection } from "node:net";
11
11
  import { timingSafeEqual } from "node:crypto";
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: muon-ui
3
- * version: 0.22.0
3
+ * version: 0.23.0
4
4
  * description: A multi-platform GUI application framework that uses CEF as its backend
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 5c8d38ea864ba1916f26e6beb6814a4af57479d7
8
+ * git.commit.hash: d43e63afd68a412a86be0cd61fceeb04cbd82270
9
9
  */
10
10
  //#region \0rolldown/runtime.js
11
11
  var __create = Object.create;
@@ -5052,7 +5052,7 @@ var getWebSocketOrigin = (startUrl) => {
5052
5052
  else if (url.protocol === "http:") url.protocol = "ws:";
5053
5053
  return url.origin;
5054
5054
  };
5055
- var createMuonOverrideConfig = (startUrl, enableDebugger, config, runtimePluginConfig, nodeProjectPath) => {
5055
+ var createMuonOverrideConfig = (startUrl, enableDebugger, allowInsecureLocalhost, config, runtimePluginConfig, nodeProjectPath) => {
5056
5056
  const origin = new URL(startUrl).origin;
5057
5057
  return {
5058
5058
  ...config === void 0 ? {} : { config: { ...config } },
@@ -5069,7 +5069,10 @@ var createMuonOverrideConfig = (startUrl, enableDebugger, config, runtimePluginC
5069
5069
  ...runtimePluginConfig,
5070
5070
  pages: [`${origin}/**`]
5071
5071
  },
5072
- network: { allow: [`${origin}/**`, `${getWebSocketOrigin(startUrl)}/**`] }
5072
+ network: {
5073
+ allow: [`${origin}/**`, `${getWebSocketOrigin(startUrl)}/**`],
5074
+ ...allowInsecureLocalhost === void 0 ? {} : { localAccess: { allowInsecureLocalhost } }
5075
+ }
5073
5076
  };
5074
5077
  };
5075
5078
  var writeMuonOverrideConfig = (server, overrideConfigPath, pluginOptions, runtimePluginConfig, nodeProjectPath) => {
@@ -5078,7 +5081,7 @@ var writeMuonOverrideConfig = (server, overrideConfigPath, pluginOptions, runtim
5078
5081
  server.config.logger.warn("muon Vite plugin could not resolve a Vite URL.");
5079
5082
  return false;
5080
5083
  }
5081
- (0, node_fs.writeFileSync)(overrideConfigPath, `${JSON.stringify(createMuonOverrideConfig(startUrl, pluginOptions.enableDebugger !== false, pluginOptions.dev?.config, runtimePluginConfig, nodeProjectPath), null, 2)}\n`);
5084
+ (0, node_fs.writeFileSync)(overrideConfigPath, `${JSON.stringify(createMuonOverrideConfig(startUrl, pluginOptions.enableDebugger !== false, pluginOptions.allowInsecureLocalhost, pluginOptions.dev?.config, runtimePluginConfig, nodeProjectPath), null, 2)}\n`);
5082
5085
  return true;
5083
5086
  };
5084
5087
  var createRuntimePaths = async () => {
@@ -5128,8 +5131,8 @@ var createMuonConfigArguments = (projectConfigPath, overrideConfigPath) => [
5128
5131
  "-c",
5129
5132
  overrideConfigPath
5130
5133
  ];
5131
- var waitForMuonProcess = async (muonExecutablePath, configArguments, allowInsecureLocalhost, environment, setCurrentChild) => {
5132
- const child = (0, node_child_process.spawn)(muonExecutablePath, [...configArguments, ...allowInsecureLocalhost ? ["--allow-insecure-localhost"] : []], {
5134
+ var waitForMuonProcess = async (muonExecutablePath, configArguments, environment, setCurrentChild) => {
5135
+ const child = (0, node_child_process.spawn)(muonExecutablePath, [...configArguments], {
5133
5136
  cwd: (0, node_path.dirname)(muonExecutablePath),
5134
5137
  env: environment,
5135
5138
  stdio: "ignore",
@@ -5197,7 +5200,7 @@ var startMuonViteBrowserBridge = async ({ server, pluginOptions, refreshRuntimeP
5197
5200
  const nodeProjectPath = await stageMuonNodeProject(nodeProject, preparedRuntime.stagePath);
5198
5201
  if (nodeProjectPath !== void 0) await assertMuonNodeHostArtifacts(preparedRuntime.stagePath, platform);
5199
5202
  if (!writeMuonOverrideConfig(server, paths.overrideConfigPath, pluginOptions, runtimePluginConfig, nodeProjectPath) || closing) return;
5200
- exitCode = await waitForMuonProcess(getMuonExecutablePath(preparedRuntime.stagePath, platform), createMuonConfigArguments(projectConfig.path, paths.overrideConfigPath), pluginOptions.allowInsecureLocalhost === true, environment, setCurrentChild);
5203
+ exitCode = await waitForMuonProcess(getMuonExecutablePath(preparedRuntime.stagePath, platform), createMuonConfigArguments(projectConfig.path, paths.overrideConfigPath), environment, setCurrentChild);
5201
5204
  if (!closing && exitCode !== muonRecycleExitCode) closeServerAfterMuonExit();
5202
5205
  } catch (error) {
5203
5206
  if (!closing) server.config.logger.warn(`muon startup failed: ${getErrorMessage(error)}`);
@@ -5529,4 +5532,4 @@ Object.defineProperty(exports, "updateWindowsPeResources", {
5529
5532
  }
5530
5533
  });
5531
5534
 
5532
- //# sourceMappingURL=vite-internals-BA4riWRd.cjs.map
5535
+ //# sourceMappingURL=vite-internals-Dk85Y_D_.cjs.map