Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 1, 2024
1 parent ed97b57 commit 74287db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@
"@types/sinon": "^17.0.3",
"@types/supertest": "^6.0.2",
"@types/test-console": "^2.0.3",
"@vinejs/vine": "^2.1.0",
"@vinejs/vine": "^3.0.0",
"argon2": "^0.41.1",
"bcrypt": "^5.1.1",
"c8": "^10.1.2",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"del-cli": "^6.0.0",
"edge.js": "^6.2.0",
"eslint": "^9.15.0",
"eslint": "^9.16.0",
"execa": "^9.5.1",
"get-port": "^7.1.0",
"github-label-sync": "^2.3.1",
Expand Down Expand Up @@ -153,7 +153,7 @@
},
"peerDependencies": {
"@adonisjs/assembler": "^7.8.0",
"@vinejs/vine": "^2.1.0",
"@vinejs/vine": "^2.1.0 || ^3.0.0",
"argon2": "^0.31.2 || ^0.41.0",
"bcrypt": "^5.1.1",
"edge.js": "^6.2.0"
Expand Down
8 changes: 6 additions & 2 deletions providers/vinejs_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
* file that was distributed with this source code.
*/

import vine, { BaseLiteralType, Vine } from '@vinejs/vine'
import vine, { symbols, BaseLiteralType, Vine } from '@vinejs/vine'
import type { Validation, FieldContext, FieldOptions } from '@vinejs/vine/types'
import type { MultipartFile, FileValidationOptions } from '@adonisjs/bodyparser/types'

import type { ApplicationService } from '../src/types.js'
import { Request, RequestValidator } from '../modules/http/main.js'

const MULTIPART_FILE: typeof symbols.SUBTYPE = symbols.SUBTYPE ?? Symbol.for('subtype')

/**
* Validation options accepted by the "file" rule
*/
Expand Down Expand Up @@ -95,7 +97,9 @@ const isMultipartFile = vine.createRule<FileRuleValidationOptions>((file, option
* request.
*/
class VineMultipartFile extends BaseLiteralType<MultipartFile, MultipartFile, MultipartFile> {
#validationOptions?: FileRuleValidationOptions
#validationOptions?: FileRuleValidationOptions;

[MULTIPART_FILE] = 'multipartFile'

constructor(
validationOptions?: FileRuleValidationOptions,
Expand Down

0 comments on commit 74287db

Please sign in to comment.