framer-code-link 0.6.0 → 0.7.0
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 +4 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1990,12 +1990,9 @@ function transition(state, event) {
|
|
|
1990
1990
|
case "REMOTE_FILE_CHANGE": {
|
|
1991
1991
|
const validation = validateIncomingChange(event.fileMeta, state.mode);
|
|
1992
1992
|
if (validation.action === "queue") {
|
|
1993
|
-
effects.push(log("debug", `
|
|
1993
|
+
effects.push(log("debug", `Ignoring file change during sync: ${event.file.name}`));
|
|
1994
1994
|
return {
|
|
1995
|
-
state
|
|
1996
|
-
...state,
|
|
1997
|
-
pendingRemoteChanges: [...state.pendingRemoteChanges, event.file]
|
|
1998
|
-
},
|
|
1995
|
+
state,
|
|
1999
1996
|
effects
|
|
2000
1997
|
};
|
|
2001
1998
|
}
|
|
@@ -2413,9 +2410,7 @@ async function start(config) {
|
|
|
2413
2410
|
let syncState = {
|
|
2414
2411
|
mode: "disconnected",
|
|
2415
2412
|
socket: null,
|
|
2416
|
-
pendingRemoteChanges: []
|
|
2417
|
-
pendingOperations: /* @__PURE__ */ new Map(),
|
|
2418
|
-
nextOperationId: 1
|
|
2413
|
+
pendingRemoteChanges: []
|
|
2419
2414
|
};
|
|
2420
2415
|
const userActions = new PluginUserPromptCoordinator();
|
|
2421
2416
|
async function processEvent(event) {
|
|
@@ -2518,7 +2513,7 @@ async function start(config) {
|
|
|
2518
2513
|
await processEvent({
|
|
2519
2514
|
type: "LOCAL_DELETE_REJECTED",
|
|
2520
2515
|
fileName: file.fileName,
|
|
2521
|
-
content: file.content
|
|
2516
|
+
content: file.content
|
|
2522
2517
|
});
|
|
2523
2518
|
}
|
|
2524
2519
|
return;
|