@gradio/client 0.19.1 → 0.19.2

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @gradio/client
2
2
 
3
+ ## 0.19.2
4
+
5
+ ### Fixes
6
+
7
+ - [#8285](https://github.com/gradio-app/gradio/pull/8285) [`7d9d8ea`](https://github.com/gradio-app/gradio/commit/7d9d8eab50d36cbecbb84c6a0f3cc1bca7215604) - use the correct query param to pass the jwt to the heartbeat event. Thanks @pngwn!
8
+
3
9
  ## 0.19.1
4
10
 
5
11
  ### Fixes
package/dist/index.js CHANGED
@@ -1756,7 +1756,7 @@ class Client {
1756
1756
  `${this.config.root}/heartbeat/${this.session_hash}`
1757
1757
  );
1758
1758
  if (this.jwt) {
1759
- heartbeat_url.searchParams.set("jwt", this.jwt);
1759
+ heartbeat_url.searchParams.set("__sign", this.jwt);
1760
1760
  }
1761
1761
  this.heartbeat_event = await this.stream(heartbeat_url);
1762
1762
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/client",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "description": "Gradio API client",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/client.ts CHANGED
@@ -153,7 +153,7 @@ export class Client {
153
153
 
154
154
  // if the jwt is available, add it to the query params
155
155
  if (this.jwt) {
156
- heartbeat_url.searchParams.set("jwt", this.jwt);
156
+ heartbeat_url.searchParams.set("__sign", this.jwt);
157
157
  }
158
158
 
159
159
  this.heartbeat_event = await this.stream(heartbeat_url); // Just connect to the endpoint without parsing the response. Ref: https://github.com/gradio-app/gradio/pull/7974#discussion_r1557717540