@miniaxolotl/grove 1.11.0 → 1.11.1
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/README.md +5 -0
- package/dist/bridge.js +63 -9
- package/dist/bridge.js.map +3 -3
- package/dist/cli.js +1724 -49
- package/dist/cli.js.map +4 -4
- package/dist/hook.js +27170 -27118
- package/dist/hook.js.map +4 -4
- package/dist/index.js +18 -1
- package/dist/index.js.map +2 -2
- package/dist/telemetry-build.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19829,7 +19829,23 @@ var ApiClient = class {
|
|
|
19829
19829
|
redirect: "error",
|
|
19830
19830
|
cache: "no-store"
|
|
19831
19831
|
});
|
|
19832
|
-
|
|
19832
|
+
let result;
|
|
19833
|
+
try {
|
|
19834
|
+
result = await response.json();
|
|
19835
|
+
} catch (error46) {
|
|
19836
|
+
if (signal.aborted || !(error46 instanceof SyntaxError)) throw error46;
|
|
19837
|
+
throw new GroveError(
|
|
19838
|
+
"invalid_response",
|
|
19839
|
+
"Invalid Grove API response",
|
|
19840
|
+
response.ok ? 502 : response.status
|
|
19841
|
+
);
|
|
19842
|
+
}
|
|
19843
|
+
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.success !== "boolean" || !result.success && (!result.error || typeof result.error.code !== "string" || typeof result.error.message !== "string"))
|
|
19844
|
+
throw new GroveError(
|
|
19845
|
+
"invalid_response",
|
|
19846
|
+
"Invalid Grove API response",
|
|
19847
|
+
response.ok ? 502 : response.status
|
|
19848
|
+
);
|
|
19833
19849
|
if (!response.ok || !result.success) {
|
|
19834
19850
|
const error46 = !result.success ? result.error : void 0;
|
|
19835
19851
|
throw new GroveError(
|
|
@@ -19847,6 +19863,7 @@ var ApiClient = class {
|
|
|
19847
19863
|
completed = true;
|
|
19848
19864
|
return result.data;
|
|
19849
19865
|
} catch (error46) {
|
|
19866
|
+
options.signal?.throwIfAborted();
|
|
19850
19867
|
if (error46 instanceof GroveError) throw error46;
|
|
19851
19868
|
throw new GroveError(
|
|
19852
19869
|
signal.aborted ? "timeout" : "unreachable",
|