@radiantabyss/vue 3.3.0 → 3.3.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": "@radiantabyss/vue",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "author": "radiantabyss.com",
5
5
  "license": "ISC",
6
6
  "eslintConfig": {
package/src/Request.js CHANGED
@@ -40,7 +40,10 @@ const serializeToURLEncoded = (obj, prefix) => {
40
40
  };
41
41
 
42
42
  const appendFormData = (formData, key, value) => {
43
- if ( Array.isArray(value) ) {
43
+ if ( value instanceof Blob ) {
44
+ formData.append(key, value);
45
+ }
46
+ else if ( Array.isArray(value) ) {
44
47
  value.forEach((v) => formData.append(`${key}[]`, v));
45
48
  }
46
49
  else if ( typeof value === 'object' && value !== null ) {
@@ -74,7 +74,7 @@ export default async () => {
74
74
  //change document title
75
75
  let title = to.name.replace(/\//g, ' / ').replace(/Action$/, '');
76
76
  if ( to.meta.settings.title ) {
77
- title = to.meta.settings.title;
77
+ title = typeof to.meta.settings.title == 'function' ? to.meta.settings.title() : to.meta.settings.title;
78
78
  }
79
79
  document.title = `${title} :: ${import.meta.env.VITE_NAME}`;
80
80
  });