framer-code-link 0.16.0 → 0.17.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 +9 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2195,11 +2195,15 @@ function transition(state, event) {
|
|
|
2195
2195
|
};
|
|
2196
2196
|
}
|
|
2197
2197
|
const { conflicts, safeWrites, localOnly } = event;
|
|
2198
|
-
if (safeWrites.length > 0)
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2198
|
+
if (safeWrites.length > 0) {
|
|
2199
|
+
effects.push(log("debug", `Applying ${safeWrites.length} safe writes`));
|
|
2200
|
+
if (wasRecentlyDisconnected()) effects.push(log("success", `Applied ${pluralize(safeWrites.length, "file")} during sync`));
|
|
2201
|
+
effects.push({
|
|
2202
|
+
type: "WRITE_FILES",
|
|
2203
|
+
files: safeWrites,
|
|
2204
|
+
silent: true
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2203
2207
|
if (localOnly.length > 0) {
|
|
2204
2208
|
effects.push(log("debug", `Uploading ${pluralize(localOnly.length, "local-only file")}`));
|
|
2205
2209
|
for (const file of localOnly) effects.push({
|