@lvce-editor/extension-management-worker 4.30.0 → 4.30.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.
@@ -1944,8 +1944,8 @@ const withWorkspaceDisabledState = (extensions, disabledIds) => {
1944
1944
  };
1945
1945
  });
1946
1946
  };
1947
- const getExtensionsWithWorkspaceState = async extensions => {
1948
- if (extensions.length === 0) {
1947
+ const getExtensionsWithWorkspaceState = async (extensions, platform) => {
1948
+ if (extensions.length === 0 || platform === Test) {
1949
1949
  return extensions;
1950
1950
  }
1951
1951
  const workspaceDisabledIds = await readDisabledExtensionIdsSafe();
@@ -1962,10 +1962,10 @@ const getAllExtensionsWithState = async (extensionsState, assetDir, platform) =>
1962
1962
  if (resolvedPlatform === Web) {
1963
1963
  const webExtensions = await getWebExtensions(resolvedAssetDir);
1964
1964
  const compatibleExtensions = [...webExtensions, ...meta].filter(extension => isExtensionCompatible(extension, resolvedPlatform));
1965
- return getExtensionsWithWorkspaceState(compatibleExtensions);
1965
+ return getExtensionsWithWorkspaceState(compatibleExtensions, resolvedPlatform);
1966
1966
  }
1967
1967
  const local = await invoke$1('ExtensionManagement.getAllExtensions');
1968
- return getExtensionsWithWorkspaceState([...local, ...meta]);
1968
+ return getExtensionsWithWorkspaceState([...local, ...meta], resolvedPlatform);
1969
1969
  };
1970
1970
 
1971
1971
  const getAllExtensions = async (assetDir, platform) => {
@@ -2034,7 +2034,7 @@ const activateByEvent = async (event, assetDir, platform) => {
2034
2034
  };
2035
2035
 
2036
2036
  const invalidateExtensionsCache = async () => {
2037
- await invoke$2('ExtensionManagement.invalidateExtensionsCache');
2037
+ await invoke$2('ExtensionManagement.handleExtensionsCacheInvalidated');
2038
2038
  };
2039
2039
 
2040
2040
  const handleChange = async _id => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-management-worker",
3
- "version": "4.30.0",
3
+ "version": "4.30.2",
4
4
  "description": "Webworker for the Extension Management functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"