@gallop.software/studio 2.1.16 → 2.1.18
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/client/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-5N7NEJ1M.js"></script>
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -1331,8 +1331,9 @@ async function handleMoveStream(request) {
|
|
|
1331
1331
|
const safePath = itemPath.replace(/\.\./g, "");
|
|
1332
1332
|
const itemName = path6.basename(safePath);
|
|
1333
1333
|
const newAbsolutePath = path6.join(absoluteDestination, itemName);
|
|
1334
|
-
const oldRelativePath = safePath.replace(/^public
|
|
1335
|
-
const
|
|
1334
|
+
const oldRelativePath = safePath.replace(/^public\/?/, "");
|
|
1335
|
+
const destWithoutPublic = safeDestination.replace(/^public\/?/, "");
|
|
1336
|
+
const newRelativePath = destWithoutPublic ? path6.join(destWithoutPublic, itemName) : itemName;
|
|
1336
1337
|
const oldKey = "/" + oldRelativePath;
|
|
1337
1338
|
const newKey = "/" + newRelativePath;
|
|
1338
1339
|
sendEvent({
|
|
@@ -1422,9 +1423,10 @@ async function handleMoveStream(request) {
|
|
|
1422
1423
|
for (let j = 0; j < oldThumbPaths.length; j++) {
|
|
1423
1424
|
const oldThumbPath = getPublicPath(oldThumbPaths[j]);
|
|
1424
1425
|
const newThumbPath = getPublicPath(newThumbPaths[j]);
|
|
1425
|
-
sourceFolders.add(path6.dirname(oldThumbPath));
|
|
1426
|
-
await fs6.mkdir(path6.dirname(newThumbPath), { recursive: true });
|
|
1427
1426
|
try {
|
|
1427
|
+
await fs6.access(oldThumbPath);
|
|
1428
|
+
sourceFolders.add(path6.dirname(oldThumbPath));
|
|
1429
|
+
await fs6.mkdir(path6.dirname(newThumbPath), { recursive: true });
|
|
1428
1430
|
await fs6.rename(oldThumbPath, newThumbPath);
|
|
1429
1431
|
} catch {
|
|
1430
1432
|
}
|