tantee-nuxt-commons 0.0.166 → 0.0.167

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.0.166",
7
+ "version": "0.0.167",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -50,7 +50,7 @@ const imageDataUrl = computed(() => {
50
50
  return base
51
51
  }
52
52
 
53
- const mime = (val as Base64File).contentType || "image/png"
53
+ const mime = (val as Base64File).fileType || "image/png"
54
54
  return `data:${mime};base64,${base}`
55
55
  })
56
56
 
@@ -10,7 +10,7 @@ export interface Base64File extends Base64Asset {
10
10
  fileName: string;
11
11
  originalFileName?: string;
12
12
  /** Parsed or inferred MIME type */
13
- contentType?: string;
13
+ fileType?: string;
14
14
  }
15
15
  export interface Base64Image {
16
16
  imageData: Base64Asset;
@@ -83,7 +83,7 @@ export const useAssetFile = () => {
83
83
  fileName: file.name,
84
84
  originalFileName: file.name,
85
85
  base64String: dataUrl,
86
- contentType: file.type || parseDataUrl(dataUrl)?.contentType
86
+ fileType: file.type || parseDataUrl(dataUrl)?.contentType
87
87
  });
88
88
  };
89
89
  reader.onerror = reject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tantee-nuxt-commons",
3
- "version": "0.0.166",
3
+ "version": "0.0.167",
4
4
  "description": "Ramathibodi Nuxt modules for common components",
5
5
  "repository": {
6
6
  "type": "git",