@gradio/client 1.6.0-beta.2 → 1.6.0-beta.3
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
|
+
## 1.6.0-beta.3
|
4
|
+
|
5
|
+
### Features
|
6
|
+
|
7
|
+
- [#9412](https://github.com/gradio-app/gradio/pull/9412) [`c2c2fd9`](https://github.com/gradio-app/gradio/commit/c2c2fd989348f826566773c07c0e0bda200199ff) - fix SSR apps on spaces. Thanks @pngwn!
|
8
|
+
|
3
9
|
## 1.6.0-beta.2
|
4
10
|
|
5
11
|
### Features
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api_info.d.ts","sourceRoot":"","sources":["../../src/helpers/api_info.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,YAAY,EACZ,MAAM,EACN,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,aAAa,QAA2C,CAAC;AACtE,eAAO,MAAM,eAAe,QAAwB,CAAC;AAErD,wBAAsB,gBAAgB,CACrC,aAAa,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,MAAM,EAAE,GACvB,OAAO,CAAC;IACV,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,IAAI,GAAG,KAAK,CAAC;IAC1B,aAAa,EAAE,OAAO,GAAG,QAAQ,CAAC;CAClC,CAAC,
|
1
|
+
{"version":3,"file":"api_info.d.ts","sourceRoot":"","sources":["../../src/helpers/api_info.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,YAAY,EACZ,MAAM,EACN,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,aAAa,QAA2C,C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C;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAuIA;AAGD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,kBAAkB,yEAEf,aAAa,SAAS,GAAG,OAAO,CAAC,KAC9C,OAAO,EA4CT,CAAC"}
|
package/dist/index.js
CHANGED
@@ -96,7 +96,6 @@ async function resolve_config(endpoint) {
|
|
96
96
|
return { ...config, path };
|
97
97
|
} else if (endpoint) {
|
98
98
|
const config_url = join_urls(endpoint, CONFIG_URL);
|
99
|
-
console.log("config_url", config_url);
|
100
99
|
const response = await this.fetch(config_url, {
|
101
100
|
headers,
|
102
101
|
credentials: "include"
|
@@ -209,7 +208,6 @@ const parse_and_set_cookies = (cookie_header) => {
|
|
209
208
|
const RE_SPACE_NAME = /^[a-zA-Z0-9_\-\.]+\/[a-zA-Z0-9_\-\.]+$/;
|
210
209
|
const RE_SPACE_DOMAIN = /.*hf\.space\/{0,1}$/;
|
211
210
|
async function process_endpoint(app_reference, hf_token) {
|
212
|
-
console.log("app_reference", app_reference);
|
213
211
|
const headers = {};
|
214
212
|
if (hf_token) {
|
215
213
|
headers.Authorization = `Bearer ${hf_token}`;
|
@@ -239,7 +237,6 @@ async function process_endpoint(app_reference, hf_token) {
|
|
239
237
|
host
|
240
238
|
};
|
241
239
|
}
|
242
|
-
console.log("app_reference", _app_reference);
|
243
240
|
return {
|
244
241
|
space_id: false,
|
245
242
|
...determine_protocol(_app_reference)
|
package/package.json
CHANGED
package/src/helpers/api_info.ts
CHANGED
@@ -26,7 +26,6 @@ export async function process_endpoint(
|
|
26
26
|
ws_protocol: "ws" | "wss";
|
27
27
|
http_protocol: "http:" | "https:";
|
28
28
|
}> {
|
29
|
-
console.log("app_reference", app_reference);
|
30
29
|
const headers: { Authorization?: string } = {};
|
31
30
|
if (hf_token) {
|
32
31
|
headers.Authorization = `Bearer ${hf_token}`;
|
@@ -66,8 +65,6 @@ export async function process_endpoint(
|
|
66
65
|
};
|
67
66
|
}
|
68
67
|
|
69
|
-
console.log("app_reference", _app_reference);
|
70
|
-
|
71
68
|
return {
|
72
69
|
space_id: false,
|
73
70
|
...determine_protocol(_app_reference)
|
@@ -87,7 +87,7 @@ export async function resolve_config(
|
|
87
87
|
return { ...config, path } as Config;
|
88
88
|
} else if (endpoint) {
|
89
89
|
const config_url = join_urls(endpoint, CONFIG_URL);
|
90
|
-
|
90
|
+
|
91
91
|
const response = await this.fetch(config_url, {
|
92
92
|
headers,
|
93
93
|
credentials: "include"
|