create-grist-widget 0.2.20 → 0.2.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-grist-widget",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "Scaffold a new Grist custom widget from the grist-widget-sdk Vite template",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -151,6 +151,12 @@ export function selfReloadSnippet(sha) {
151
151
  }
152
152
  } catch (e) { /* transient offline / 404 during publish: keep polling */ }
153
153
  }
154
+ check(); // don't wait a full POLL_MS for the first check -- a plain
155
+ // (non-cache-busted) request for this very page can hit a stale
156
+ // CDN-cached index.html referencing JS assets a newer deploy
157
+ // already deleted, producing a blank/black screen until this
158
+ // fires; found live, waiting the full interval left that
159
+ // black screen up for ~5s on a fresh visit.
154
160
  setInterval(check, POLL_MS);
155
161
  })();
156
162
  </script>`