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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -5
  2. 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) effects.push(log("debug", `Applying ${safeWrites.length} safe writes`), log("success", `Applied ${pluralize(safeWrites.length, "file")} during sync`), {
2199
- type: "WRITE_FILES",
2200
- files: safeWrites,
2201
- silent: true
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framer-code-link",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "CLI tool for syncing Framer code components - controller-centric architecture",
5
5
  "main": "dist/index.mjs",
6
6
  "type": "module",