@sendelius/vue 0.2.8 → 0.2.9

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.
@@ -78,7 +78,10 @@ async function we(e, t, n = {}, r = {}) {
78
78
  ...r
79
79
  }) : await _e()[e](t, n, r);
80
80
  } catch (e) {
81
- throw e.response?.status === 401 && me().onUnauthorized?.(), new ve(e);
81
+ throw e.response?.status === 401 && me().onUnauthorized?.(), new ve({
82
+ status: e.response?.status ?? null,
83
+ data: e.response?.data ?? null
84
+ });
82
85
  }
83
86
  let a = i.data;
84
87
  if (a?.status !== "success") throw new ve({
package/package.json CHANGED
@@ -45,5 +45,5 @@
45
45
  "@parcel/watcher@2.6.0": true,
46
46
  "vue-demi@0.14.10": true
47
47
  },
48
- "version": "0.2.8"
48
+ "version": "0.2.9"
49
49
  }