grist-widget-sdk 0.3.15 → 0.3.16
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# grist-widget-sdk
|
|
2
2
|
|
|
3
|
+
## 0.3.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 91c1ca6: Refresh dependencies: `zod` 4.6 at runtime; dev tooling moves to vite 8, @vitejs/plugin-react 6, eslint 10, jsdom 30 and @testing-library/jest-dom 7. The "attachment upload was blocked by the Grist host (CORS)" error now carries the original fetch failure as `error.cause`.
|
|
8
|
+
|
|
3
9
|
## 0.3.15
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -542,7 +542,8 @@ async function uploadGristAttachment(docApi, file, options) {
|
|
|
542
542
|
if (/failed to fetch/i.test(msg)) {
|
|
543
543
|
const widgetOrigin = typeof globalThis.location !== "undefined" ? globalThis.location.origin : "this widget origin";
|
|
544
544
|
throw new Error(
|
|
545
|
-
`Attachment upload was blocked by the Grist host (CORS). The browser could not POST from ${widgetOrigin} to the document API. If upload worked from a dev URL (e.g. ngrok) but fails after deploy, add the new widget URL to your Grist server CORS allowlist (see grist-core#2040)
|
|
545
|
+
`Attachment upload was blocked by the Grist host (CORS). The browser could not POST from ${widgetOrigin} to the document API. If upload worked from a dev URL (e.g. ngrok) but fails after deploy, add the new widget URL to your Grist server CORS allowlist (see grist-core#2040).`,
|
|
546
|
+
{ cause: err }
|
|
546
547
|
);
|
|
547
548
|
}
|
|
548
549
|
throw err;
|