@radiantabyss/vue 3.3.5 → 3.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radiantabyss/vue",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "author": "radiantabyss.com",
5
5
  "license": "ISC",
6
6
  "eslintConfig": {
package/src/Invoke.js CHANGED
@@ -1,3 +1,5 @@
1
+ import Str from './Support/Str';
2
+
1
3
  let sprite_version = import.meta.env.VITE_SPRITE_VERSION;
2
4
 
3
5
  const invoke = async function(method, edge, payload = {}, display_errors = false) {
@@ -54,7 +56,12 @@ const invoke = async function(method, edge, payload = {}, display_errors = false
54
56
  return data;
55
57
  }
56
58
  catch(e) {
57
- e = e.toString().replace('Error: Error invoking remote method \'invoke\': ', '');
59
+ if ( typeof e == 'object' ) {
60
+ e = e.message;
61
+ }
62
+ else {
63
+ e = e.toString().replace('Error: Error invoking remote method \'invoke\': ', '');
64
+ }
58
65
 
59
66
  if ( display_errors ) {
60
67
  Alert.error(Str.nl2br(e), 7000);
@@ -1,3 +1,5 @@
1
+ import Str from './../Support/Str';
2
+
1
3
  let group_middleware = null;
2
4
 
3
5
  function addRoute(path, action, middleware, name, throw_error) {