@editframe/api 0.18.26-beta.0 → 0.19.2-beta.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.
Files changed (2) hide show
  1. package/dist/client.js +8 -3
  2. package/package.json +2 -2
package/dist/client.js CHANGED
@@ -23,9 +23,14 @@ var Client = class {
23
23
  if (this.#token) Object.assign(init.headers, { Authorization: `Bearer ${this.#token}` });
24
24
  Object.assign(init.headers, { "Content-Type": "application/json" });
25
25
  init.credentials = "include";
26
- const response = await fetch(url, init);
27
- log("Authenticated fetch response", response.status, response.statusText);
28
- return response;
26
+ try {
27
+ const response = await fetch(url, init);
28
+ log("Authenticated fetch response", response.status, response.statusText);
29
+ return response;
30
+ } catch (error) {
31
+ console.error("Client authenticatedFetch error", url, error);
32
+ throw error;
33
+ }
29
34
  };
30
35
  log("Creating client with efHost", {
31
36
  efHost,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/api",
3
- "version": "0.18.26-beta.0",
3
+ "version": "0.19.2-beta.0",
4
4
  "description": "API functions for EditFrame",
5
5
  "exports": {
6
6
  ".": {
@@ -45,7 +45,7 @@
45
45
  "vite-plugin-dts": "^4.5.4"
46
46
  },
47
47
  "dependencies": {
48
- "@editframe/assets": "0.18.26-beta.0",
48
+ "@editframe/assets": "0.19.2-beta.0",
49
49
  "@vitejs/plugin-react": "^4.3.4",
50
50
  "debug": "^4.3.5",
51
51
  "eventsource-parser": "^3.0.0",