@epic-web/workshop-app 5.9.5 → 5.10.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/build/server/index.js +2 -2
- package/build/server/index.js.map +1 -1
- package/dist/server/index.js +11 -5
- package/package.json +3 -3
package/build/server/index.js
CHANGED
|
@@ -5791,7 +5791,7 @@ const epicshopTempDir = path$1.join(os.tmpdir(), "epicshop");
|
|
|
5791
5791
|
const isDeployed = ENV.EPICSHOP_DEPLOYED;
|
|
5792
5792
|
const diffTmpDir = path$1.join(epicshopTempDir, "diff");
|
|
5793
5793
|
function diffPathToRelative(filePath) {
|
|
5794
|
-
let normalizedPath = path$1.normalize(filePath
|
|
5794
|
+
let normalizedPath = path$1.normalize(filePath.replace(/^("|')|("|')$/g, ""));
|
|
5795
5795
|
if (normalizedPath.startsWith("a\\") || normalizedPath.startsWith("b\\") || normalizedPath.startsWith("a/") || normalizedPath.startsWith("b/")) {
|
|
5796
5796
|
normalizedPath = normalizedPath.slice(2);
|
|
5797
5797
|
}
|
|
@@ -5833,7 +5833,7 @@ function getFileCodeblocks(file, filePathApp1, filePathApp2, type) {
|
|
|
5833
5833
|
const fixedTitle = getRelativePath$1(file2);
|
|
5834
5834
|
return `
|
|
5835
5835
|
<LaunchEditor file=${file2} line={${line}}>
|
|
5836
|
-
<span title
|
|
5836
|
+
<span title="${fixedTitle}" className="${launchEditorClassName}">${label}</span>
|
|
5837
5837
|
</LaunchEditor>`;
|
|
5838
5838
|
};
|
|
5839
5839
|
const removedLineNumbers = [];
|