grist-widget-sdk 0.3.3 → 0.3.14
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/advanced.cjs +3 -8
- package/dist/advanced.cjs.map +1 -1
- package/dist/advanced.js +1 -1
- package/dist/{chunk-QZG7SNUG.js → chunk-22U7WAY3.js} +2 -2
- package/dist/chunk-22U7WAY3.js.map +1 -0
- package/dist/{chunk-7GXVEZ2J.js → chunk-OTIHUVSE.js} +4 -9
- package/dist/chunk-OTIHUVSE.js.map +1 -0
- package/dist/{chunk-QKXKZ27D.js → chunk-YQNMIL33.js} +1 -1
- package/dist/chunk-YQNMIL33.js.map +1 -0
- package/dist/emulator/testing.cjs.map +1 -1
- package/dist/emulator/testing.js +2 -2
- package/dist/emulator/transports.cjs.map +1 -1
- package/dist/emulator/transports.js +1 -1
- package/dist/emulator.cjs.map +1 -1
- package/dist/emulator.js +2 -2
- package/dist/index.cjs +3 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +10 -2
- package/dist/chunk-7GXVEZ2J.js.map +0 -1
- package/dist/chunk-QKXKZ27D.js.map +0 -1
- package/dist/chunk-QZG7SNUG.js.map +0 -1
package/dist/emulator.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
parseDocument,
|
|
4
4
|
presets,
|
|
5
5
|
safeParseDocument
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-22U7WAY3.js";
|
|
7
7
|
import {
|
|
8
8
|
EmulatorActionError,
|
|
9
9
|
enrichEmulatorColumnMetadata
|
|
10
|
-
} from "./chunk-
|
|
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
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
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
|
);
|