@fy-/fws-vue 0.3.59 → 0.3.60

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.
@@ -61,6 +61,10 @@ export function useRest(): <ResultType extends APIResult>(
61
61
  JSON.parse(JSON.stringify(restResult)),
62
62
  );
63
63
  }
64
+ if (restResult.result === "error") {
65
+ eventBus.emit("rest-error", restResult);
66
+ return Promise.reject(restResult);
67
+ }
64
68
  return Promise.resolve(restResult);
65
69
  } catch (error) {
66
70
  const restError: ResultType = error as ResultType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.3.59",
3
+ "version": "0.3.60",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {