mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
fix lint based on new biome rules after merge
This commit is contained in:
parent
9f88450929
commit
1d41bcf342
4 changed files with 5 additions and 5 deletions
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
<noscript>You need JavaScript to run this example.</noscript>
|
||||
<script type="module">
|
||||
import { Uppy, Dashboard, AwsS3, GoldenRetriever } from './uppy.min.mjs'
|
||||
import { AwsS3, Dashboard, GoldenRetriever, Uppy } from './uppy.min.mjs'
|
||||
|
||||
function onUploadComplete(result) {
|
||||
console.log('Upload complete!', result.successful)
|
||||
|
|
|
|||
|
|
@ -9,11 +9,9 @@ interface S3MultipartState {
|
|||
}
|
||||
|
||||
declare module '@uppy/utils' {
|
||||
// biome-ignore lint/correctness/noUnusedVariables: must match existing interface signature
|
||||
export interface LocalUppyFile<M extends Meta, B extends Body> {
|
||||
s3Multipart?: S3MultipartState
|
||||
}
|
||||
// biome-ignore lint/correctness/noUnusedVariables: must match existing interface signature
|
||||
export interface RemoteUppyFile<M extends Meta, B extends Body> {
|
||||
s3Multipart?: S3MultipartState
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,9 @@ class S3Companion extends S3Client {
|
|||
await response.json()
|
||||
|
||||
const formData = new FormData()
|
||||
Object.entries(fields).forEach(([key, value]) => formData.set(key, value))
|
||||
Object.entries(fields).forEach(([key, value]) => {
|
||||
formData.set(key, value)
|
||||
})
|
||||
formData.set('file', data)
|
||||
|
||||
const xhr = await this._request({
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ export const accessKeyId = 'stsuser'
|
|||
export const secretAccessKey = 'stspassword123'
|
||||
|
||||
export function getConfig(env: Record<string, string | undefined>) {
|
||||
const config = env['VITE_MINIO_CONFIG']
|
||||
const config = env.VITE_MINIO_CONFIG
|
||||
if (!config) {
|
||||
return undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue