@pronto-tools-and-more/pronto 5.6.0 → 5.7.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": "@pronto-tools-and-more/pronto",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"@lvce-editor/ipc": "^10.2.1",
|
|
18
18
|
"@lvce-editor/json-rpc": "^3.0.0",
|
|
19
19
|
"@lvce-editor/verror": "^1.4.0",
|
|
20
|
-
"@pronto-tools-and-more/file-watcher": "5.
|
|
21
|
-
"@pronto-tools-and-more/files": "5.
|
|
22
|
-
"@pronto-tools-and-more/network-process": "5.
|
|
23
|
-
"@pronto-tools-and-more/sass-compiler": "5.
|
|
24
|
-
"@pronto-tools-and-more/components-renderer": "5.
|
|
25
|
-
"@pronto-tools-and-more/components": "5.
|
|
26
|
-
"@pronto-tools-and-more/schema-process": "5.
|
|
20
|
+
"@pronto-tools-and-more/file-watcher": "5.7.1",
|
|
21
|
+
"@pronto-tools-and-more/files": "5.7.1",
|
|
22
|
+
"@pronto-tools-and-more/network-process": "5.7.1",
|
|
23
|
+
"@pronto-tools-and-more/sass-compiler": "5.7.1",
|
|
24
|
+
"@pronto-tools-and-more/components-renderer": "5.7.1",
|
|
25
|
+
"@pronto-tools-and-more/components": "5.7.1",
|
|
26
|
+
"@pronto-tools-and-more/schema-process": "5.7.1",
|
|
27
27
|
"execa": "^9.3.1",
|
|
28
28
|
"express": "^4.19.2"
|
|
29
29
|
},
|
|
@@ -39,5 +39,16 @@ export const getNewMainJsContent = ({ content, pdfSnippet }) => {
|
|
|
39
39
|
pdfSnippet +
|
|
40
40
|
"\n" +
|
|
41
41
|
content.slice(configIndex);
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
const occurrence = `this.baseUrl.split("/");`;
|
|
44
|
+
const resourcesContentSnippet = `this.baseUrl.split("/"); if(arguments[0].startsWith('/')){ return arguments[0]; }`;
|
|
45
|
+
const resourcesContentIndex = newContent.indexOf(occurrence);
|
|
46
|
+
if (resourcesContentIndex === -1) {
|
|
47
|
+
return newContent;
|
|
48
|
+
}
|
|
49
|
+
const newerContent =
|
|
50
|
+
newContent.slice(0, resourcesContentIndex) +
|
|
51
|
+
resourcesContentSnippet +
|
|
52
|
+
newContent.slice(resourcesContentIndex + occurrence.length);
|
|
53
|
+
return newerContent;
|
|
43
54
|
};
|