@lvce-editor/shared-process 0.44.0 → 0.44.1
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.3.0",
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.44.
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.44.1",
|
|
22
22
|
"@lvce-editor/ipc": "13.7.0",
|
|
23
23
|
"@lvce-editor/json-rpc": "5.4.0",
|
|
24
24
|
"@lvce-editor/jsonc-parser": "1.5.0",
|
|
@@ -2,6 +2,6 @@ import { join } from 'path';
|
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
export const getBuiltinExtensionsPath = () => {
|
|
4
4
|
const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'));
|
|
5
|
-
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '
|
|
5
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '2935016', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -154,7 +154,7 @@ const applyOverrides = async ({ root, commitHash, pathPrefix, serverStaticPath }
|
|
|
154
154
|
}
|
|
155
155
|
const indexHtmlPath = Path.join(root, 'dist', 'index.html');
|
|
156
156
|
await replace(indexHtmlPath, `/${commitHash}`, `${pathPrefix}/${commitHash}`);
|
|
157
|
-
await replace(indexHtmlPath, '
|
|
157
|
+
await replace(indexHtmlPath, '#282e2f" />', `#282e2f" />
|
|
158
158
|
<meta http-equiv="Content-Security-Policy" content="${staticContentSecurityPolicy}">`);
|
|
159
159
|
if (pathPrefix) {
|
|
160
160
|
await replace(indexHtmlPath, '</title>', `</title>
|
|
@@ -257,6 +257,19 @@ const addExtensionLanguages = async ({ root, extensionPath, extensionJson, commi
|
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
const addExtensionWebExtension = async ({ root, extensionPath, commitHash, extensionJson, pathPrefix, useSimpleWebExtensionFile }) => {
|
|
260
|
+
{
|
|
261
|
+
const dirents = await FileSystem.readDir(Path.join(root, 'dist', commitHash, 'extensions'));
|
|
262
|
+
const manifests = await Promise.all(dirents.map(async (dirent) => {
|
|
263
|
+
const json = await JsonFile.readJson(Path.join(root, 'dist', commitHash, 'extensions', dirent, 'extension.json'));
|
|
264
|
+
const webExtensionPath = `${pathPrefix}/${commitHash}/extensions/${dirent}`;
|
|
265
|
+
return {
|
|
266
|
+
...json,
|
|
267
|
+
path: webExtensionPath,
|
|
268
|
+
};
|
|
269
|
+
}));
|
|
270
|
+
const newExtensions = [...manifests, extensionJson];
|
|
271
|
+
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'extensions.json'), newExtensions);
|
|
272
|
+
}
|
|
260
273
|
if (!extensionJson.browser) {
|
|
261
274
|
return;
|
|
262
275
|
}
|
|
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
|
|
|
41
41
|
export const getSetupName = () => {
|
|
42
42
|
return 'Lvce-Setup';
|
|
43
43
|
};
|
|
44
|
-
export const version = '0.44.
|
|
45
|
-
export const commit = '
|
|
46
|
-
export const date = '2025-01-
|
|
44
|
+
export const version = '0.44.1';
|
|
45
|
+
export const commit = '2935016';
|
|
46
|
+
export const date = '2025-01-05T17:38:03.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|