@breautek/storm 5.0.1 → 6.0.1
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.
- package/CHANGELOG.md +24 -2
- package/bt-config-defaults.json +0 -1
- package/bt-config-sample.jsonc +41 -7
- package/docs/assets/highlight.css +92 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/classes/Application.html +1278 -0
- package/docs/classes/BackendAuthenticationMiddleware.html +193 -0
- package/docs/classes/CORSMiddleware.html +259 -0
- package/docs/classes/ConfigLoader.html +168 -0
- package/docs/classes/Database.html +342 -0
- package/docs/classes/DatabaseCastObject.html +205 -0
- package/docs/classes/DatabaseConnection.html +552 -0
- package/docs/classes/DatabaseQueryError.html +374 -0
- package/docs/classes/DeadLockError.html +374 -0
- package/docs/classes/DiskSpaceError.html +364 -0
- package/docs/classes/DropTemporaryTableQuery.html +287 -0
- package/docs/classes/DuplicateEntryError.html +368 -0
- package/docs/classes/EntityNotFoundError.html +364 -0
- package/docs/classes/ExpiredTokenError.html +364 -0
- package/docs/classes/Handler.html +397 -0
- package/docs/classes/InternalError.html +364 -0
- package/docs/classes/InvalidCredentialsError.html +364 -0
- package/docs/classes/InvalidValueError.html +375 -0
- package/docs/classes/LineString.html +214 -0
- package/docs/classes/LockWaitTimeoutError.html +374 -0
- package/docs/classes/ManagedDatabaseConnection.html +412 -0
- package/docs/classes/Middleware.html +204 -0
- package/docs/classes/MissingConfigError.html +364 -0
- package/docs/classes/MissingParameterError.html +364 -0
- package/docs/classes/MySQLConnection.html +548 -0
- package/docs/classes/MySQLDatabase.html +355 -0
- package/docs/classes/NotImplementedError.html +364 -0
- package/docs/classes/Point.html +216 -0
- package/docs/classes/Polygon.html +214 -0
- package/docs/classes/Query.html +314 -0
- package/docs/classes/RawError.html +376 -0
- package/docs/classes/RawQuery.html +307 -0
- package/docs/classes/Request.html +377 -0
- package/docs/classes/Response.html +331 -0
- package/docs/classes/ResponseData.html +257 -0
- package/docs/classes/ServiceProvider.html +387 -0
- package/docs/classes/ServiceResponse.html +215 -0
- package/docs/classes/SetSessionVariableQuery.html +287 -0
- package/docs/classes/StormError.html +379 -0
- package/docs/classes/TemporaryTableQuery.html +292 -0
- package/docs/classes/Token.html +183 -0
- package/docs/classes/TokenManager.html +235 -0
- package/docs/classes/Transaction.html +269 -0
- package/docs/classes/UnauthorizedAccessError.html +364 -0
- package/docs/enums/ErrorCode.html +212 -0
- package/docs/enums/ExitCode.html +163 -0
- package/docs/enums/HTTPMethod.html +177 -0
- package/docs/enums/IsolationLevel.html +177 -0
- package/docs/enums/JWTError.html +163 -0
- package/docs/enums/StatusCode.html +485 -0
- package/docs/functions/formidable-1.html +145 -0
- package/docs/functions/getInstance.html +140 -0
- package/docs/index.html +228 -0
- package/docs/interfaces/IAdditionalErrorDetails.html +142 -0
- package/docs/interfaces/IAuthTokenData.html +174 -0
- package/docs/interfaces/ICloudwatchConfig.html +174 -0
- package/docs/interfaces/ICloudwatchCredentials.html +167 -0
- package/docs/interfaces/ICloudwatchStreamConfig.html +167 -0
- package/docs/interfaces/IConfig.html +227 -0
- package/docs/interfaces/IDatabaseConfig.html +200 -0
- package/docs/interfaces/IDatabaseConnection.html +334 -0
- package/docs/interfaces/IErrorResponse.html +188 -0
- package/docs/interfaces/IFormData.html +167 -0
- package/docs/interfaces/IHandler.html +173 -0
- package/docs/interfaces/IInsertQueryResult.html +174 -0
- package/docs/interfaces/IJWTVerifyOptions.html +160 -0
- package/docs/interfaces/IParameterMap.html +142 -0
- package/docs/interfaces/IQueryable.html +235 -0
- package/docs/interfaces/IRequestResponse.html +174 -0
- package/docs/interfaces/IServiceHeaders.html +142 -0
- package/docs/interfaces/ISetSessionVariableQueryInput.html +167 -0
- package/docs/interfaces/ITemporaryTableQueryInput.html +167 -0
- package/docs/interfaces/IUpdateQueryResult.html +167 -0
- package/docs/interfaces/formidable.EmitData.html +182 -0
- package/docs/interfaces/formidable.EventData.html +203 -0
- package/docs/interfaces/formidable.Fields.html +143 -0
- package/docs/interfaces/formidable.File.html +241 -0
- package/docs/interfaces/formidable.FileJSON.html +240 -0
- package/docs/interfaces/formidable.Files.html +143 -0
- package/docs/interfaces/formidable.Options.html +310 -0
- package/docs/interfaces/formidable.Part.html +693 -0
- package/docs/modules/formidable.html +161 -0
- package/docs/types/IDeleteQueryResult.html +136 -0
- package/docs/types/IHandlerError.html +141 -0
- package/docs/types/IHandlerResponse.html +147 -0
- package/docs/types/TCoordinate.html +136 -0
- package/docs/types/formidable.BufferEncoding.html +137 -0
- package/docs/types/formidable.DefaultOptions.html +137 -0
- package/docs/types/formidable.EnabledPlugins.html +137 -0
- package/docs/types/formidable.EventNames.html +137 -0
- package/docs/types/formidable.MappedParsers.html +137 -0
- package/docs/types/formidable.Plugin.html +137 -0
- package/docs/types/formidable.PluginFunction.html +152 -0
- package/docs/types/formidable.Plugins.html +137 -0
- package/lib/Application.d.ts +3 -0
- package/lib/Application.js +105 -63
- package/lib/Application.js.map +1 -1
- package/lib/IConfig.d.ts +15 -2
- package/lib/MySQLConnection.js +3 -3
- package/lib/MySQLConnection.js.map +1 -1
- package/lib/StatusCode.d.ts +1 -1
- package/lib/StatusCode.js +1 -1
- package/lib/Transaction.d.ts +4 -0
- package/lib/Transaction.js +4 -0
- package/lib/Transaction.js.map +1 -1
- package/lib/api.d.ts +1 -2
- package/lib/api.js +2 -4
- package/lib/api.js.map +1 -1
- package/package.json +18 -16
- package/src/Application.ts +131 -68
- package/src/IConfig.ts +18 -2
- package/src/MySQLConnection.ts +2 -1
- package/src/StatusCode.ts +1 -1
- package/src/Transaction.ts +4 -0
- package/src/api.ts +6 -2
- package/docs/README.md +0 -188
- package/docs/classes/Application.md +0 -1648
- package/docs/classes/BackendAuthenticationMiddleware.md +0 -49
- package/docs/classes/CORSMiddleware.md +0 -143
- package/docs/classes/ConfigLoader.md +0 -29
- package/docs/classes/Database.md +0 -259
- package/docs/classes/DatabaseCastObject.md +0 -79
- package/docs/classes/DatabaseConnection.md +0 -556
- package/docs/classes/DatabaseQueryError.md +0 -351
- package/docs/classes/DeadLockError.md +0 -349
- package/docs/classes/DiskSpaceError.md +0 -341
- package/docs/classes/DropTemporaryTableQuery.md +0 -207
- package/docs/classes/DumpStream.md +0 -23
- package/docs/classes/DuplicateEntryError.md +0 -343
- package/docs/classes/EntityNotFoundError.md +0 -341
- package/docs/classes/ExpiredTokenError.md +0 -341
- package/docs/classes/Handler.md +0 -302
- package/docs/classes/InternalError.md +0 -341
- package/docs/classes/InvalidCredentialsError.md +0 -341
- package/docs/classes/InvalidValueError.md +0 -349
- package/docs/classes/LineString.md +0 -101
- package/docs/classes/LockWaitTimeoutError.md +0 -349
- package/docs/classes/ManagedDatabaseConnection.md +0 -403
- package/docs/classes/Middleware.md +0 -72
- package/docs/classes/MissingConfigError.md +0 -341
- package/docs/classes/MissingParameterError.md +0 -341
- package/docs/classes/MySQLConnection.md +0 -569
- package/docs/classes/MySQLDatabase.md +0 -314
- package/docs/classes/NotImplementedError.md +0 -341
- package/docs/classes/Point.md +0 -102
- package/docs/classes/Polygon.md +0 -101
- package/docs/classes/Query.md +0 -227
- package/docs/classes/RawError.md +0 -351
- package/docs/classes/RawQuery.md +0 -224
- package/docs/classes/Request.md +0 -321
- package/docs/classes/Response.md +0 -242
- package/docs/classes/ResponseData.md +0 -144
- package/docs/classes/ServiceProvider.md +0 -296
- package/docs/classes/ServiceResponse.md +0 -89
- package/docs/classes/SetSessionVariableQuery.md +0 -207
- package/docs/classes/StormError.md +0 -343
- package/docs/classes/TemporaryTableQuery.md +0 -213
- package/docs/classes/Token.md +0 -43
- package/docs/classes/TokenManager.md +0 -105
- package/docs/classes/Transaction.md +0 -161
- package/docs/classes/UnauthorizedAccessError.md +0 -341
- package/docs/enums/ErrorCode.md +0 -107
- package/docs/enums/ExitCode.md +0 -30
- package/docs/enums/HTTPMethod.md +0 -52
- package/docs/enums/IsolationLevel.md +0 -52
- package/docs/enums/JWTError.md +0 -30
- package/docs/enums/StatusCode.md +0 -536
- package/docs/interfaces/IAdditionalErrorDetails.md +0 -7
- package/docs/interfaces/IAuthTokenData.md +0 -41
- package/docs/interfaces/IConfig.md +0 -112
- package/docs/interfaces/IDatabaseConfig.md +0 -80
- package/docs/interfaces/IDatabaseConnection.md +0 -262
- package/docs/interfaces/IErrorResponse.md +0 -63
- package/docs/interfaces/IFormData.md +0 -30
- package/docs/interfaces/IHandler.md +0 -31
- package/docs/interfaces/IInsertQueryResult.md +0 -41
- package/docs/interfaces/IJWTVerifyOptions.md +0 -19
- package/docs/interfaces/IParameterMap.md +0 -7
- package/docs/interfaces/IQueryable.md +0 -119
- package/docs/interfaces/IRequestResponse.md +0 -37
- package/docs/interfaces/IServiceHeaders.md +0 -7
- package/docs/interfaces/ISetSessionVariableQueryInput.md +0 -30
- package/docs/interfaces/ITemporaryTableQueryInput.md +0 -30
- package/docs/interfaces/IUpdateQueryResult.md +0 -30
- package/docs/interfaces/formidable.EmitData.md +0 -54
- package/docs/interfaces/formidable.EventData.md +0 -87
- package/docs/interfaces/formidable.Fields.md +0 -9
- package/docs/interfaces/formidable.File.md +0 -131
- package/docs/interfaces/formidable.FileJSON.md +0 -151
- package/docs/interfaces/formidable.Files.md +0 -9
- package/docs/interfaces/formidable.Options.md +0 -225
- package/docs/interfaces/formidable.Part.md +0 -793
- package/docs/modules/formidable.md +0 -122
- package/lib/DumpStream.d.ts +0 -6
- package/lib/DumpStream.js +0 -28
- package/lib/DumpStream.js.map +0 -1
- package/src/DumpStream.ts +0 -28
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
[@breautek/storm](../README.md) / [formidable](../modules/formidable.md) / Options
|
|
2
|
-
|
|
3
|
-
# Interface: Options
|
|
4
|
-
|
|
5
|
-
[formidable](../modules/formidable.md).Options
|
|
6
|
-
|
|
7
|
-
## Table of contents
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- [allowEmptyFiles](formidable.Options.md#allowemptyfiles)
|
|
12
|
-
- [enabledPlugins](formidable.Options.md#enabledplugins)
|
|
13
|
-
- [encoding](formidable.Options.md#encoding)
|
|
14
|
-
- [fileWriteStreamHandler](formidable.Options.md#filewritestreamhandler)
|
|
15
|
-
- [hash](formidable.Options.md#hash)
|
|
16
|
-
- [keepExtensions](formidable.Options.md#keepextensions)
|
|
17
|
-
- [maxFields](formidable.Options.md#maxfields)
|
|
18
|
-
- [maxFieldsSize](formidable.Options.md#maxfieldssize)
|
|
19
|
-
- [maxFileSize](formidable.Options.md#maxfilesize)
|
|
20
|
-
- [minFileSize](formidable.Options.md#minfilesize)
|
|
21
|
-
- [multiples](formidable.Options.md#multiples)
|
|
22
|
-
- [uploadDir](formidable.Options.md#uploaddir)
|
|
23
|
-
|
|
24
|
-
## Properties
|
|
25
|
-
|
|
26
|
-
### allowEmptyFiles
|
|
27
|
-
|
|
28
|
-
• `Optional` **allowEmptyFiles**: `boolean`
|
|
29
|
-
|
|
30
|
-
allow upload empty files
|
|
31
|
-
|
|
32
|
-
**`Default`**
|
|
33
|
-
|
|
34
|
-
true
|
|
35
|
-
|
|
36
|
-
#### Defined in
|
|
37
|
-
|
|
38
|
-
node_modules/@types/formidable/index.d.ts:113
|
|
39
|
-
|
|
40
|
-
___
|
|
41
|
-
|
|
42
|
-
### enabledPlugins
|
|
43
|
-
|
|
44
|
-
• `Optional` **enabledPlugins**: `string`[]
|
|
45
|
-
|
|
46
|
-
#### Defined in
|
|
47
|
-
|
|
48
|
-
node_modules/@types/formidable/index.d.ts:173
|
|
49
|
-
|
|
50
|
-
___
|
|
51
|
-
|
|
52
|
-
### encoding
|
|
53
|
-
|
|
54
|
-
• `Optional` **encoding**: [`BufferEncoding`](../modules/formidable.md#bufferencoding)
|
|
55
|
-
|
|
56
|
-
sets encoding for incoming form fields
|
|
57
|
-
|
|
58
|
-
**`Default`**
|
|
59
|
-
|
|
60
|
-
'utf-8'
|
|
61
|
-
|
|
62
|
-
#### Defined in
|
|
63
|
-
|
|
64
|
-
node_modules/@types/formidable/index.d.ts:92
|
|
65
|
-
|
|
66
|
-
___
|
|
67
|
-
|
|
68
|
-
### fileWriteStreamHandler
|
|
69
|
-
|
|
70
|
-
• `Optional` **fileWriteStreamHandler**: () => `void`
|
|
71
|
-
|
|
72
|
-
#### Type declaration
|
|
73
|
-
|
|
74
|
-
▸ (): `void`
|
|
75
|
-
|
|
76
|
-
which by default writes to host machine file system every file parsed; The function should
|
|
77
|
-
return an instance of a Writable stream that will receive the uploaded file data. With this
|
|
78
|
-
option, you can have any custom behavior regarding where the uploaded file data will be
|
|
79
|
-
streamed for. If you are looking to write the file uploaded in other types of cloud storages
|
|
80
|
-
(AWS S3, Azure blob storage, Google cloud storage) or private file storage, this is the option
|
|
81
|
-
you're looking for. When this option is defined the default behavior of writing the file in the
|
|
82
|
-
host machine file system is lost.
|
|
83
|
-
|
|
84
|
-
**`Default`**
|
|
85
|
-
|
|
86
|
-
null
|
|
87
|
-
|
|
88
|
-
##### Returns
|
|
89
|
-
|
|
90
|
-
`void`
|
|
91
|
-
|
|
92
|
-
#### Defined in
|
|
93
|
-
|
|
94
|
-
node_modules/@types/formidable/index.d.ts:162
|
|
95
|
-
|
|
96
|
-
___
|
|
97
|
-
|
|
98
|
-
### hash
|
|
99
|
-
|
|
100
|
-
• `Optional` **hash**: `string` \| ``false``
|
|
101
|
-
|
|
102
|
-
include checksums calculated for incoming files, set this to some hash algorithm, see
|
|
103
|
-
crypto.createHash for available algorithms
|
|
104
|
-
|
|
105
|
-
**`Default`**
|
|
106
|
-
|
|
107
|
-
false
|
|
108
|
-
|
|
109
|
-
#### Defined in
|
|
110
|
-
|
|
111
|
-
node_modules/@types/formidable/index.d.ts:149
|
|
112
|
-
|
|
113
|
-
___
|
|
114
|
-
|
|
115
|
-
### keepExtensions
|
|
116
|
-
|
|
117
|
-
• `Optional` **keepExtensions**: `boolean`
|
|
118
|
-
|
|
119
|
-
to include the extensions of the original files or not
|
|
120
|
-
|
|
121
|
-
**`Default`**
|
|
122
|
-
|
|
123
|
-
false
|
|
124
|
-
|
|
125
|
-
#### Defined in
|
|
126
|
-
|
|
127
|
-
node_modules/@types/formidable/index.d.ts:106
|
|
128
|
-
|
|
129
|
-
___
|
|
130
|
-
|
|
131
|
-
### maxFields
|
|
132
|
-
|
|
133
|
-
• `Optional` **maxFields**: `number`
|
|
134
|
-
|
|
135
|
-
limit the number of fields, set 0 for unlimited
|
|
136
|
-
|
|
137
|
-
**`Default`**
|
|
138
|
-
|
|
139
|
-
1000
|
|
140
|
-
|
|
141
|
-
#### Defined in
|
|
142
|
-
|
|
143
|
-
node_modules/@types/formidable/index.d.ts:134
|
|
144
|
-
|
|
145
|
-
___
|
|
146
|
-
|
|
147
|
-
### maxFieldsSize
|
|
148
|
-
|
|
149
|
-
• `Optional` **maxFieldsSize**: `number`
|
|
150
|
-
|
|
151
|
-
limit the amount of memory all fields together (except files) can allocate in bytes
|
|
152
|
-
|
|
153
|
-
**`Default`**
|
|
154
|
-
|
|
155
|
-
20 * 1024 * 1024
|
|
156
|
-
|
|
157
|
-
#### Defined in
|
|
158
|
-
|
|
159
|
-
node_modules/@types/formidable/index.d.ts:141
|
|
160
|
-
|
|
161
|
-
___
|
|
162
|
-
|
|
163
|
-
### maxFileSize
|
|
164
|
-
|
|
165
|
-
• `Optional` **maxFileSize**: `number`
|
|
166
|
-
|
|
167
|
-
limit the size of uploaded file
|
|
168
|
-
|
|
169
|
-
**`Default`**
|
|
170
|
-
|
|
171
|
-
200 * 1024 * 1024
|
|
172
|
-
|
|
173
|
-
#### Defined in
|
|
174
|
-
|
|
175
|
-
node_modules/@types/formidable/index.d.ts:127
|
|
176
|
-
|
|
177
|
-
___
|
|
178
|
-
|
|
179
|
-
### minFileSize
|
|
180
|
-
|
|
181
|
-
• `Optional` **minFileSize**: `number`
|
|
182
|
-
|
|
183
|
-
the minium size of uploaded file
|
|
184
|
-
|
|
185
|
-
**`Default`**
|
|
186
|
-
|
|
187
|
-
1
|
|
188
|
-
|
|
189
|
-
#### Defined in
|
|
190
|
-
|
|
191
|
-
node_modules/@types/formidable/index.d.ts:120
|
|
192
|
-
|
|
193
|
-
___
|
|
194
|
-
|
|
195
|
-
### multiples
|
|
196
|
-
|
|
197
|
-
• `Optional` **multiples**: `boolean`
|
|
198
|
-
|
|
199
|
-
when you call the .parse method, the files argument (of the callback) will contain arrays of
|
|
200
|
-
files for inputs which submit multiple files using the HTML5 multiple attribute. Also, the
|
|
201
|
-
fields argument will contain arrays of values for fields that have names ending with '[]'
|
|
202
|
-
|
|
203
|
-
**`Default`**
|
|
204
|
-
|
|
205
|
-
false
|
|
206
|
-
|
|
207
|
-
#### Defined in
|
|
208
|
-
|
|
209
|
-
node_modules/@types/formidable/index.d.ts:171
|
|
210
|
-
|
|
211
|
-
___
|
|
212
|
-
|
|
213
|
-
### uploadDir
|
|
214
|
-
|
|
215
|
-
• `Optional` **uploadDir**: `string`
|
|
216
|
-
|
|
217
|
-
the directory for placing file uploads in. You can move them later by using fs.rename()
|
|
218
|
-
|
|
219
|
-
**`Default`**
|
|
220
|
-
|
|
221
|
-
os.tmpdir()
|
|
222
|
-
|
|
223
|
-
#### Defined in
|
|
224
|
-
|
|
225
|
-
node_modules/@types/formidable/index.d.ts:99
|