framer-code-link 0.4.8 → 0.5.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/dist/index.mjs +3 -11
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2138,9 +2138,8 @@ function transition(state, event) {
|
|
|
2138
2138
|
break;
|
|
2139
2139
|
case "delete":
|
|
2140
2140
|
effects.push(log("debug", `Local delete detected: ${relativePath}`), {
|
|
2141
|
-
type: "
|
|
2142
|
-
fileName: relativePath
|
|
2143
|
-
requireConfirmation: true
|
|
2141
|
+
type: "LOCAL_INITIATED_FILE_DELETE",
|
|
2142
|
+
fileName: relativePath
|
|
2144
2143
|
});
|
|
2145
2144
|
break;
|
|
2146
2145
|
}
|
|
@@ -2317,13 +2316,6 @@ async function executeEffect(effect, context) {
|
|
|
2317
2316
|
});
|
|
2318
2317
|
return [];
|
|
2319
2318
|
}
|
|
2320
|
-
case "REQUEST_DELETE_CONFIRMATION":
|
|
2321
|
-
if (syncState.socket) await sendMessage(syncState.socket, {
|
|
2322
|
-
type: "file-delete",
|
|
2323
|
-
fileNames: [effect.fileName],
|
|
2324
|
-
requireConfirmation: effect.requireConfirmation
|
|
2325
|
-
});
|
|
2326
|
-
return [];
|
|
2327
2319
|
case "UPDATE_FILE_METADATA": {
|
|
2328
2320
|
if (!config.filesDir || !config.projectDir) return [];
|
|
2329
2321
|
const currentContent = await readFileSafe(effect.fileName, config.filesDir);
|
|
@@ -2357,7 +2349,7 @@ async function executeEffect(effect, context) {
|
|
|
2357
2349
|
}
|
|
2358
2350
|
return [];
|
|
2359
2351
|
}
|
|
2360
|
-
case "
|
|
2352
|
+
case "LOCAL_INITIATED_FILE_DELETE":
|
|
2361
2353
|
if (hashTracker.shouldSkipDelete(effect.fileName)) {
|
|
2362
2354
|
hashTracker.clearDelete(effect.fileName);
|
|
2363
2355
|
return [];
|