@uploadista/vue 0.0.3

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.
@@ -0,0 +1,240 @@
1
+
2
+ > @uploadista/vue@0.1.0 check /Users/denislaboureyras/Documents/uploadista/dev/uploadista/packages/uploadista/clients/vue
3
+ > biome check --write ./src
4
+
5
+ src/providers/UploadistaProvider.vue:35:3 lint/style/useShorthandFunctionType ━━━━━━━━━━━━━━━━━━━━━━
6
+
7
+ i Use a function type instead of a call signature.
8
+
9
+ 33 │ * Emitted when the underlying client dispatches an event.
10
+ 34 │ */
11
+ > 35 │ (e: "event", event: UploadistaEvent): void;
12
+ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
+ 36 │ }>();
14
+ 37 │
15
+
16
+ i Types containing only a call signature can be shortened to a function type.
17
+
18
+
19
+ src/components/FlowUploadList.vue:35:7 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
20
+
21
+ ! Unexpected any. Specify a different type.
22
+
23
+ 33 │ isAborted: boolean;
24
+ 34 │ formatFileSize: (bytes: number) => string;
25
+ > 35 │ }): any;
26
+ │ ^^^
27
+ 36 │ default?(props: {
28
+ 37 │ items: FlowUploadItem[];
29
+
30
+ i any disables many type checking rules. Its use should be avoided.
31
+
32
+
33
+ src/components/FlowUploadList.vue:45:7 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
34
+
35
+ ! Unexpected any. Specify a different type.
36
+
37
+ 43 │ aborted: FlowUploadItem[];
38
+ 44 │ };
39
+ > 45 │ }): any;
40
+ │ ^^^
41
+ 46 │ }>();
42
+ 47 │
43
+
44
+ i any disables many type checking rules. Its use should be avoided.
45
+
46
+
47
+ src/components/FlowUploadList.vue:4:8 lint/correctness/noUnusedImports FIXABLE ━━━━━━━━━━━━━━━━━━━
48
+
49
+ ! This import is unused.
50
+
51
+ 2 │ import type { FlowUploadItem } from "@uploadista/client-browser";
52
+ 3 │ import { computed } from "vue";
53
+ > 4 │ import { isBrowserFile } from "../utils";
54
+ │ ^^^^^^^^^^^^^^^^^
55
+ 5 │
56
+ 6 │ export interface FlowUploadListProps {
57
+
58
+ i Unused imports might be the result of an incomplete refactoring.
59
+
60
+ i Unsafe fix: Remove the unused imports.
61
+
62
+ 1 1 │ import type { FlowUploadItem } from "@uploadista/client-browser";
63
+ 2 2 │ import { computed } from "vue";
64
+ 3 │ - import·{·isBrowserFile·}·from·"../utils";
65
+ 4 3 │
66
+ 5 4 │ export interface FlowUploadListProps {
67
+
68
+
69
+ src/components/FlowUploadZone.vue:64:7 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
70
+
71
+ ! Unexpected any. Specify a different type.
72
+
73
+ 62 │ errors: string[];
74
+ 63 │ openFilePicker: () => void;
75
+ > 64 │ }): any;
76
+ │ ^^^
77
+ 65 │ }>();
78
+ 66 │
79
+
80
+ i any disables many type checking rules. Its use should be avoided.
81
+
82
+
83
+ src/components/FlowUploadZone.vue:43:1 suppressions/unused ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
84
+
85
+ ! Suppression comment has no effect. Remove the suppression or make sure you are suppressing the correct rule.
86
+
87
+ 41 │ });
88
+ 42 │
89
+ > 43 │ // biome-ignore lint/suspicious/noExplicitAny: Flow result can be any type
90
+ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91
+ 44 │ const emit = defineEmits<{
92
+ 45 │ // biome-ignore lint/suspicious/noExplicitAny: Flow result can be any type
93
+
94
+
95
+ src/components/FlowUploadZone.vue:52:1 suppressions/unused ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
96
+
97
+ ! Suppression comment has no effect. Remove the suppression or make sure you are suppressing the correct rule.
98
+
99
+ 50 │ }>();
100
+ 51 │
101
+ > 52 │ // biome-ignore lint/suspicious/noExplicitAny: Vue slot definition requires any
102
+ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103
+ 53 │ defineSlots<{
104
+ 54 │ // biome-ignore lint/suspicious/noExplicitAny: Vue slot definition requires any
105
+
106
+
107
+ src/components/FlowUploadZone.vue:54:3 suppressions/unused ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
108
+
109
+ ! Suppression comment has no effect. Remove the suppression or make sure you are suppressing the correct rule.
110
+
111
+ 52 │ // biome-ignore lint/suspicious/noExplicitAny: Vue slot definition requires any
112
+ 53 │ defineSlots<{
113
+ > 54 │ // biome-ignore lint/suspicious/noExplicitAny: Vue slot definition requires any
114
+ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115
+ 55 │ default(props: {
116
+ 56 │ isDragging: boolean;
117
+
118
+
119
+ src/components/UploadList.vue:33:7 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
120
+
121
+ ! Unexpected any. Specify a different type.
122
+
123
+ 31 │ isError: boolean;
124
+ 32 │ formatFileSize: (bytes: number) => string;
125
+ > 33 │ }): any;
126
+ │ ^^^
127
+ 34 │ default?(props: {
128
+ 35 │ items: UploadItem[];
129
+
130
+ i any disables many type checking rules. Its use should be avoided.
131
+
132
+
133
+ src/components/UploadList.vue:43:7 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
134
+
135
+ ! Unexpected any. Specify a different type.
136
+
137
+ 41 │ aborted: UploadItem[];
138
+ 42 │ };
139
+ > 43 │ }): any;
140
+ │ ^^^
141
+ 44 │ }>();
142
+ 45 │
143
+
144
+ i any disables many type checking rules. Its use should be avoided.
145
+
146
+
147
+ src/components/UploadList.vue:4:8 lint/correctness/noUnusedImports FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━
148
+
149
+ ! This import is unused.
150
+
151
+ 2 │ import { computed } from "vue";
152
+ 3 │ import type { UploadItem } from "../composables";
153
+ > 4 │ import { isBrowserFile } from "../utils";
154
+ │ ^^^^^^^^^^^^^^^^^
155
+ 5 │
156
+ 6 │ export interface UploadListProps {
157
+
158
+ i Unused imports might be the result of an incomplete refactoring.
159
+
160
+ i Unsafe fix: Remove the unused imports.
161
+
162
+ 1 1 │ import { computed } from "vue";
163
+ 2 2 │ import type { UploadItem } from "../composables";
164
+ 3 │ - import·{·isBrowserFile·}·from·"../utils";
165
+ 4 3 │
166
+ 5 4 │ export interface UploadListProps {
167
+
168
+
169
+ src/components/UploadZone.vue:63:7 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
170
+
171
+ ! Unexpected any. Specify a different type.
172
+
173
+ 61 │ errors: string[];
174
+ 62 │ openFilePicker: () => void;
175
+ > 63 │ }): any;
176
+ │ ^^^
177
+ 64 │ }>();
178
+ 65 │
179
+
180
+ i any disables many type checking rules. Its use should be avoided.
181
+
182
+
183
+ src/components/UploadZone.vue:56:3 suppressions/unused ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
184
+
185
+ ! Suppression comment has no effect. Remove the suppression or make sure you are suppressing the correct rule.
186
+
187
+ 55 │ defineSlots<{
188
+ > 56 │ // biome-ignore lint/suspicious/noExplicitAny: Vue slot definition requires any
189
+ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
190
+ 57 │ default(props: {
191
+ 58 │ isDragging: boolean;
192
+
193
+
194
+ src/composables/useUpload.ts:9:28 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
195
+
196
+ ! Unexpected any. Specify a different type.
197
+
198
+ 7 │ // Re-export types for convenience
199
+ 8 │ export type UploadInput = File | Blob;
200
+ > 9 │ export type ChunkMetrics = any;
201
+ │ ^^^
202
+ 10 │ export type PerformanceInsights = any;
203
+ 11 │ export type UploadSessionMetrics = any;
204
+
205
+ i any disables many type checking rules. Its use should be avoided.
206
+
207
+
208
+ src/composables/useUpload.ts:10:35 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
209
+
210
+ ! Unexpected any. Specify a different type.
211
+
212
+ 8 │ export type UploadInput = File | Blob;
213
+ 9 │ export type ChunkMetrics = any;
214
+ > 10 │ export type PerformanceInsights = any;
215
+ │ ^^^
216
+ 11 │ export type UploadSessionMetrics = any;
217
+ 12 │
218
+
219
+ i any disables many type checking rules. Its use should be avoided.
220
+
221
+
222
+ Skipped 2 suggested fixes.
223
+ If you wish to apply the suggested (unsafe) fixes, use the command biome check --write --unsafe
224
+
225
+ Checked 21 files in 40ms. Fixed 3 files.
226
+ src/composables/useUpload.ts:11:36 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
227
+
228
+ Found 15 warnings.
229
+ ! Unexpected any. Specify a different type.
230
+
231
+ 9 │ export type ChunkMetrics = any;
232
+ 10 │ export type PerformanceInsights = any;
233
+ > 11 │ export type UploadSessionMetrics = any;
234
+ │ ^^^
235
+ 12 │
236
+ 13 │ export type UploadStatus =
237
+
238
+ i any disables many type checking rules. Its use should be avoided.
239
+
240
+
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 uploadista
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.