grist-widget-sdk 0.3.3 → 0.3.15

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/emulator.js CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  parseDocument,
4
4
  presets,
5
5
  safeParseDocument
6
- } from "./chunk-QZG7SNUG.js";
6
+ } from "./chunk-22U7WAY3.js";
7
7
  import {
8
8
  EmulatorActionError,
9
9
  enrichEmulatorColumnMetadata
10
- } from "./chunk-QKXKZ27D.js";
10
+ } from "./chunk-YQNMIL33.js";
11
11
  import "./chunk-GTTD5HPO.js";
12
12
  import "./chunk-ELGVOHFD.js";
13
13
  import {
package/dist/index.cjs CHANGED
@@ -266,7 +266,6 @@ async function fetchWithGristAuth(docApi, path, init) {
266
266
  }
267
267
  const isAbsolute = /^https?:\/\//i.test(path);
268
268
  const cleanPath = isAbsolute ? path : path.startsWith("/") ? path : `/${path}`;
269
- const method = (init?.method ?? "GET").toUpperCase();
270
269
  const url = isAbsolute ? new URL(path) : new URL(`${token.baseUrl.replace(/\/$/, "")}${cleanPath}`);
271
270
  if (!url.searchParams.has("auth")) url.searchParams.set("auth", token.token);
272
271
  const headers = new Headers(init?.headers ?? {});
@@ -3902,13 +3901,9 @@ function useRpcHeartbeatCoalesce() {
3902
3901
  const manager = useGristManagerOptional();
3903
3902
  return (0, import_react4.useCallback)(
3904
3903
  async (fn) => {
3905
- try {
3906
- const result = await fn();
3907
- manager?.recordRpcSuccess();
3908
- return result;
3909
- } catch (err) {
3910
- throw err;
3911
- }
3904
+ const result = await fn();
3905
+ manager?.recordRpcSuccess();
3906
+ return result;
3912
3907
  },
3913
3908
  [manager]
3914
3909
  );