Skip to content

Commit 74287db

Browse files
committed
chore: update dependencies
1 parent ed97b57 commit 74287db

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@
100100
"@types/sinon": "^17.0.3",
101101
"@types/supertest": "^6.0.2",
102102
"@types/test-console": "^2.0.3",
103-
"@vinejs/vine": "^2.1.0",
103+
"@vinejs/vine": "^3.0.0",
104104
"argon2": "^0.41.1",
105105
"bcrypt": "^5.1.1",
106106
"c8": "^10.1.2",
107107
"copyfiles": "^2.4.1",
108108
"cross-env": "^7.0.3",
109109
"del-cli": "^6.0.0",
110110
"edge.js": "^6.2.0",
111-
"eslint": "^9.15.0",
111+
"eslint": "^9.16.0",
112112
"execa": "^9.5.1",
113113
"get-port": "^7.1.0",
114114
"github-label-sync": "^2.3.1",
@@ -153,7 +153,7 @@
153153
},
154154
"peerDependencies": {
155155
"@adonisjs/assembler": "^7.8.0",
156-
"@vinejs/vine": "^2.1.0",
156+
"@vinejs/vine": "^2.1.0 || ^3.0.0",
157157
"argon2": "^0.31.2 || ^0.41.0",
158158
"bcrypt": "^5.1.1",
159159
"edge.js": "^6.2.0"

providers/vinejs_provider.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
* file that was distributed with this source code.
88
*/
99

10-
import vine, { BaseLiteralType, Vine } from '@vinejs/vine'
10+
import vine, { symbols, BaseLiteralType, Vine } from '@vinejs/vine'
1111
import type { Validation, FieldContext, FieldOptions } from '@vinejs/vine/types'
1212
import type { MultipartFile, FileValidationOptions } from '@adonisjs/bodyparser/types'
1313

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

17+
const MULTIPART_FILE: typeof symbols.SUBTYPE = symbols.SUBTYPE ?? Symbol.for('subtype')
18+
1719
/**
1820
* Validation options accepted by the "file" rule
1921
*/
@@ -95,7 +97,9 @@ const isMultipartFile = vine.createRule<FileRuleValidationOptions>((file, option
9597
* request.
9698
*/
9799
class VineMultipartFile extends BaseLiteralType<MultipartFile, MultipartFile, MultipartFile> {
98-
#validationOptions?: FileRuleValidationOptions
100+
#validationOptions?: FileRuleValidationOptions;
101+
102+
[MULTIPART_FILE] = 'multipartFile'
99103

100104
constructor(
101105
validationOptions?: FileRuleValidationOptions,

0 commit comments

Comments
 (0)