@epic-web/workshop-utils 6.85.3 → 6.85.4
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/dist/apps.server.js
CHANGED
package/dist/cache.server.js
CHANGED
package/dist/config.server.js
CHANGED
package/dist/diff.server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// oxlint-disable-next-line import/order -- this must be first
|
|
2
2
|
import { getEnv } from "./init-env.js";
|
|
3
3
|
import os from 'os';
|
|
4
4
|
import path from 'path';
|
|
@@ -57,12 +57,12 @@ function diffPathToRelative(filePath) {
|
|
|
57
57
|
let normalizedPath = path.normalize(filePath
|
|
58
58
|
.replace(/^["']|["']$/g, '')
|
|
59
59
|
.replace(/^(\.\\[ab]\\|\.\/[ab]\/|[ab][\\/])/, ''));
|
|
60
|
-
|
|
61
|
-
const [workshopRootDirname, appId, id, ...relativePath] = normalizedPath
|
|
60
|
+
const relativePath = normalizedPath
|
|
62
61
|
.replace(process.platform === 'win32' || normalizedPath.startsWith(path.sep)
|
|
63
62
|
? `${diffTmpDir}${path.sep}`
|
|
64
63
|
: `${diffTmpDir.slice(1)}${path.sep}`, '')
|
|
65
|
-
.split(path.sep)
|
|
64
|
+
.split(path.sep)
|
|
65
|
+
.slice(3);
|
|
66
66
|
return relativePath.join(path.sep);
|
|
67
67
|
}
|
|
68
68
|
function getLanguage(ext) {
|
package/dist/user.server.js
CHANGED