@adminforth/upload 2.11.0 → 2.11.1
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/build.log +2 -2
- package/custom/preview.vue +4 -1
- package/dist/custom/preview.vue +4 -1
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -11,5 +11,5 @@ custom/preview.vue
|
|
|
11
11
|
custom/tsconfig.json
|
|
12
12
|
custom/uploader.vue
|
|
13
13
|
|
|
14
|
-
sent
|
|
15
|
-
total size is 53,
|
|
14
|
+
sent 54,028 bytes received 134 bytes 108,324.00 bytes/sec
|
|
15
|
+
total size is 53,539 speedup is 0.99
|
package/custom/preview.vue
CHANGED
|
@@ -84,7 +84,10 @@ onMounted(async () => {
|
|
|
84
84
|
if (Array.isArray(url.value)) return;
|
|
85
85
|
try {
|
|
86
86
|
const response = await fetch(url.value, {
|
|
87
|
-
method: '
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: {
|
|
89
|
+
Range: 'bytes=0-0' // this approach is better then HEAD in terms of CDN/CORS, but same for efficiency as HEAD
|
|
90
|
+
},
|
|
88
91
|
mode: 'cors',
|
|
89
92
|
});
|
|
90
93
|
const ct = response.headers.get('Content-Type');
|
package/dist/custom/preview.vue
CHANGED
|
@@ -84,7 +84,10 @@ onMounted(async () => {
|
|
|
84
84
|
if (Array.isArray(url.value)) return;
|
|
85
85
|
try {
|
|
86
86
|
const response = await fetch(url.value, {
|
|
87
|
-
method: '
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: {
|
|
89
|
+
Range: 'bytes=0-0' // this approach is better then HEAD in terms of CDN/CORS, but same for efficiency as HEAD
|
|
90
|
+
},
|
|
88
91
|
mode: 'cors',
|
|
89
92
|
});
|
|
90
93
|
const ct = response.headers.get('Content-Type');
|