@ditojs/admin 2.11.1 → 2.11.2

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": "@ditojs/admin",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "type": "module",
5
5
  "description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
@@ -33,7 +33,7 @@
33
33
  "not ie_mob > 0"
34
34
  ],
35
35
  "dependencies": {
36
- "@ditojs/ui": "^2.11.1",
36
+ "@ditojs/ui": "^2.11.2",
37
37
  "@ditojs/utils": "^2.11.1",
38
38
  "@kyvg/vue3-notification": "^2.9.1",
39
39
  "@lk77/vue3-color": "^3.0.6",
@@ -58,7 +58,7 @@
58
58
  "@tiptap/extension-underline": "^2.0.4",
59
59
  "@tiptap/pm": "^2.0.4",
60
60
  "@tiptap/vue-3": "^2.0.4",
61
- "@vueuse/integrations": "^10.2.1",
61
+ "@vueuse/integrations": "^10.3.0",
62
62
  "codeflask": "^1.4.1",
63
63
  "filesize": "^10.0.8",
64
64
  "filesize-parser": "^1.5.0",
@@ -67,7 +67,7 @@
67
67
  "sortablejs": "^1.15.0",
68
68
  "tinycolor2": "^1.6.0",
69
69
  "tippy.js": "^6.3.7",
70
- "type-fest": "^4.0.0",
70
+ "type-fest": "^4.1.0",
71
71
  "vue": "^3.3.4",
72
72
  "vue-multiselect": "^3.0.0-beta.2",
73
73
  "vue-router": "^4.2.4",
@@ -78,12 +78,12 @@
78
78
  "@vitejs/plugin-vue": "^4.2.3",
79
79
  "@vue/compiler-sfc": "^3.3.4",
80
80
  "pug": "^3.0.2",
81
- "sass": "1.64.1",
81
+ "sass": "1.64.2",
82
82
  "typescript": "^5.1.6",
83
- "vite": "^4.4.7"
83
+ "vite": "^4.4.8"
84
84
  },
85
85
  "types": "types",
86
- "gitHead": "fb1e7ce180f5c9ce8e058a7ef22465e0428cd758",
86
+ "gitHead": "681f441e6d90931bbfa7dfb301fb480d7b6fc4cf",
87
87
  "scripts": {
88
88
  "build": "vite build",
89
89
  "watch": "yarn build --mode 'development' --watch",
@@ -252,18 +252,21 @@ export default {
252
252
  // exposed to further callbacks through DitoContext.
253
253
  callback(null, response)
254
254
  } catch (error) {
255
- // If callback returns true, errors were already handled.
256
- const { response } = error
257
- if (!callback(error, response)) {
258
- const data = response?.data
259
- const title = isString(data?.type)
260
- ? labelize(data.type)
261
- : 'Error'
262
- const text = data?.message ?? error
263
- this.notify({ type: 'error', title, text })
255
+ if (error.name !== 'AbortError') {
256
+ // If callback returns true, errors were already handled.
257
+ const { response } = error
258
+ if (!callback(error, response)) {
259
+ const data = response?.data
260
+ const title = isString(data?.type)
261
+ ? labelize(data.type)
262
+ : 'Error'
263
+ const text = data?.message ?? error
264
+ this.notify({ type: 'error', title, text })
265
+ }
264
266
  }
265
267
  }
266
268
  if (this.abortController === controller) {
269
+ // Only clear the loading state if this is still the current request.
267
270
  this.abortController = null
268
271
  this.setLoading(false, loadingOptions)
269
272
  }