fix: make the override optional.

This commit is contained in:
Yufan Sheng 2024-11-29 15:52:17 +08:00
parent 523e4febf5
commit ed9d6c7c89
No known key found for this signature in database
GPG Key ID: 980439DFE585D1D8
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "astro-uploader",
"version": "1.2.0",
"version": "1.2.1",
"description": "A uploader for uploading the Astro generated files through the S3 API.",
"keywords": ["Astro", "S3", "withastro", "opendal"],
"bugs": {

View File

@ -57,14 +57,14 @@ const S3Options = z
path: z.string(),
keep: z.boolean().optional(),
recursive: z.boolean().optional(),
override: z.boolean(),
override: z.boolean().optional(),
}),
]),
)
.min(1),
keep: z.boolean().default(false),
recursive: z.boolean().default(true),
override: z.boolean().default(false),
keep: z.boolean().optional().default(false),
recursive: z.boolean().optional().default(true),
override: z.boolean().optional().default(false),
region: z.string().min(1).default('auto'),
endpoint: z.string().url().optional(),
bucket: z.string().min(1),