@iankibetsh/shframework 4.0.7 → 4.0.8

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/dist/library.js CHANGED
@@ -221,7 +221,10 @@ async function runPlainRequest(url, message, title, data){
221
221
  }
222
222
  })
223
223
  .catch(error => {
224
- throw new Error(error)
224
+ return {
225
+ success: false,
226
+ error: error
227
+ }
225
228
  })
226
229
  },
227
230
  allowOutsideClick: () => !Swal__default["default"].isLoading()
package/dist/library.mjs CHANGED
@@ -209,7 +209,10 @@ async function runPlainRequest(url, message, title, data){
209
209
  }
210
210
  })
211
211
  .catch(error => {
212
- throw new Error(error)
212
+ return {
213
+ success: false,
214
+ error: error
215
+ }
213
216
  })
214
217
  },
215
218
  allowOutsideClick: () => !Swal.isLoading()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.0.7",
3
+ "version": "4.0.8",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",