@lvce-editor/extension-management-worker 4.21.1 → 4.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.
@@ -2069,8 +2069,10 @@ const createWebViewWorkerRpc2 = async (rpcInfo, port) => {
2069
2069
  });
2070
2070
  };
2071
2071
 
2072
- const getExtensionHostSubWorkerUrl = () => {
2073
- return new URL('../../../../extension-host-sub-worker/src/extensionHostSubWorkerMain.js', import.meta.url).href;
2072
+ const sourcePathMarker = '/extension-management-worker/src/';
2073
+ const getExtensionHostSubWorkerUrl = (currentUrl = import.meta.url) => {
2074
+ const relativePath = currentUrl.includes(sourcePathMarker) ? '../../../../extension-host-sub-worker/src/extensionHostSubWorkerMain.js' : '../../extension-host-sub-worker/dist/extensionHostSubWorkerMain.js';
2075
+ return new URL(relativePath, currentUrl).href;
2074
2076
  };
2075
2077
  const extensionHostSubWorkerUrl = getExtensionHostSubWorkerUrl();
2076
2078
 
@@ -3025,6 +3027,8 @@ const getViews = async (assetDir, platform) => {
3025
3027
  return getViewsFromExtensionWorkers(extensions, resolvedAssetDir, resolvedPlatform);
3026
3028
  };
3027
3029
 
3030
+ const handleData = () => {};
3031
+
3028
3032
  const StatusBarWorker = 200;
3029
3033
 
3030
3034
  const handleMessagePort = async (port, rpcId) => {
@@ -3209,6 +3213,7 @@ const commandMap = {
3209
3213
  'Extensions.getViewActions': getViewActions,
3210
3214
  'Extensions.getViewMenuEntries': getViewMenuEntries,
3211
3215
  'Extensions.getViews': getViews,
3216
+ 'Extensions.handleData': handleData,
3212
3217
  'Extensions.handleMessagePort': handleMessagePort,
3213
3218
  'Extensions.handleViewContextChange': handleViewContextChange,
3214
3219
  'Extensions.importExtension': importExtension,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-management-worker",
3
- "version": "4.21.1",
3
+ "version": "4.23.0",
4
4
  "description": "Webworker for the Extension Management functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"