@lvce-editor/running-extensions-view 1.24.0 → 1.26.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.
@@ -1973,7 +1973,7 @@ const set = rpc => {
1973
1973
  state.connected = true;
1974
1974
  };
1975
1975
 
1976
- const handleMessagePort = async (port, viewletCommandMap) => {
1976
+ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
1977
1977
  const executeViewletCommand = async (uid, command, ...args) => {
1978
1978
  const fn = viewletCommandMap[`RunningExtensions.${command}`];
1979
1979
  if (typeof fn !== 'function') {
@@ -1988,7 +1988,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
1988
1988
  },
1989
1989
  messagePort: port
1990
1990
  });
1991
- set(rpc);
1991
+ if (setAsRendererProcess) {
1992
+ set(rpc);
1993
+ }
1992
1994
  };
1993
1995
 
1994
1996
  const getRunningExtensions = async (assetDir, platform) => {
@@ -2600,7 +2602,11 @@ const reportIssue = async (state, index) => {
2600
2602
  extensions,
2601
2603
  platform
2602
2604
  } = state;
2603
- const issuesUrl = getIssuesUrl(extensions[index]?.repository);
2605
+ const extension = extensions[index];
2606
+ if (!extension || !extension.repository || typeof extension.repository !== 'string') {
2607
+ return state;
2608
+ }
2609
+ const issuesUrl = getIssuesUrl(extension.repository);
2604
2610
  if (!issuesUrl) {
2605
2611
  await invoke$5('ConfirmPrompt.prompt', reportingIssuesNotSupported(), undefined);
2606
2612
  return state;
@@ -2666,7 +2672,7 @@ const takeHeapSnapshot = async (state, index) => {
2666
2672
  return state;
2667
2673
  };
2668
2674
 
2669
- const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
2675
+ const handleDirectMessagePort = (port, setAsRendererProcess) => handleMessagePort(port, commandMap, setAsRendererProcess);
2670
2676
  const commandMap = {
2671
2677
  'RunningExtensions.copyId': wrapCommand(copyId$1),
2672
2678
  'RunningExtensions.create': create,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/running-extensions-view",
3
- "version": "1.24.0",
3
+ "version": "1.26.0",
4
4
  "description": "Running Extensions View Worker",
5
5
  "repository": {
6
6
  "type": "git",