@gradio/client 0.2.1 → 0.3.0

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.3.0
4
+
5
+ ### Features
6
+
7
+ - [#5267](https://github.com/gradio-app/gradio/pull/5267) [`119c8343`](https://github.com/gradio-app/gradio/commit/119c834331bfae60d4742c8f20e9cdecdd67e8c2) - Faster reload mode. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
8
+
3
9
  ## 0.2.1
4
10
 
5
11
  ### Features
package/dist/index.js CHANGED
@@ -931,7 +931,7 @@ async function resolve_config(fetch_implementation, endpoint, token) {
931
931
  if (token) {
932
932
  headers.Authorization = `Bearer ${token}`;
933
933
  }
934
- if (typeof window !== "undefined" && window.gradio_config && location.origin !== "http://localhost:9876") {
934
+ if (typeof window !== "undefined" && window.gradio_config && location.origin !== "http://localhost:9876" && !window.gradio_config.dev_mode) {
935
935
  const path = window.gradio_config.root;
936
936
  const config = window.gradio_config;
937
937
  config.root = endpoint + config.root;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/client",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Gradio API client",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/client.ts CHANGED
@@ -1133,7 +1133,8 @@ async function resolve_config(
1133
1133
  if (
1134
1134
  typeof window !== "undefined" &&
1135
1135
  window.gradio_config &&
1136
- location.origin !== "http://localhost:9876"
1136
+ location.origin !== "http://localhost:9876" &&
1137
+ !window.gradio_config.dev_mode
1137
1138
  ) {
1138
1139
  const path = window.gradio_config.root;
1139
1140
  const config = window.gradio_config;