@breautek/storm 4.0.0 → 4.1.0
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 +11 -1
- package/bt-config-sample.jsonc +1 -1
- package/docs/README.md +6 -6
- package/docs/classes/Application.md +30 -30
- package/docs/classes/BackendAuthenticationMiddleware.md +2 -2
- package/docs/classes/CORSMiddleware.md +6 -6
- package/docs/classes/ConfigLoader.md +1 -1
- package/docs/classes/Database.md +12 -12
- package/docs/classes/DatabaseConnection.md +19 -19
- package/docs/classes/DatabaseQueryError.md +11 -11
- package/docs/classes/DiskSpaceError.md +11 -11
- package/docs/classes/DropTemporaryTableQuery.md +10 -10
- package/docs/classes/DumpStream.md +1 -1
- package/docs/classes/DuplicateEntryError.md +11 -11
- package/docs/classes/EntityNotFoundError.md +11 -11
- package/docs/classes/ExpiredTokenError.md +11 -11
- package/docs/classes/Handler.md +14 -14
- package/docs/classes/InternalError.md +11 -11
- package/docs/classes/InvalidCredentialsError.md +11 -11
- package/docs/classes/InvalidValueError.md +11 -11
- package/docs/classes/ManagedDatabaseConnection.md +19 -19
- package/docs/classes/Middleware.md +3 -3
- package/docs/classes/MissingConfigError.md +11 -11
- package/docs/classes/MissingParameterError.md +11 -11
- package/docs/classes/MySQLConnection.md +20 -20
- package/docs/classes/MySQLDatabase.md +14 -14
- package/docs/classes/Query.md +10 -10
- package/docs/classes/RawQuery.md +19 -17
- package/docs/classes/Request.md +18 -18
- package/docs/classes/Response.md +12 -12
- package/docs/classes/ResponseData.md +7 -7
- package/docs/classes/ServiceProvider.md +16 -16
- package/docs/classes/ServiceResponse.md +4 -4
- package/docs/classes/SetSessionVariableQuery.md +10 -10
- package/docs/classes/StormError.md +11 -11
- package/docs/classes/TemporaryTableQuery.md +10 -10
- package/docs/classes/Token.md +2 -2
- package/docs/classes/TokenManager.md +4 -4
- package/docs/classes/UnauthorizedAccessError.md +11 -11
- package/docs/enums/ErrorCode.md +20 -20
- package/docs/enums/ExitCode.md +6 -6
- package/docs/enums/HTTPMethod.md +10 -10
- package/docs/enums/JWTError.md +6 -6
- package/docs/enums/StatusCode.md +98 -98
- package/docs/interfaces/IConfig.md +8 -8
- package/docs/interfaces/IDatabaseConfig.md +6 -6
- package/docs/interfaces/IDatabaseConnection.md +15 -15
- package/docs/interfaces/IErrorResponse.md +4 -4
- package/docs/interfaces/IFormData.md +2 -2
- package/docs/interfaces/IHandler.md +1 -1
- package/docs/interfaces/IInsertQueryResult.md +3 -3
- package/docs/interfaces/IJWTVerifyOptions.md +1 -1
- package/docs/interfaces/IRequestResponse.md +2 -2
- package/docs/interfaces/ISetSessionVariableQueryInput.md +2 -2
- package/docs/interfaces/ITemporaryTableQueryInput.md +2 -2
- package/docs/interfaces/IUpdateQueryResult.md +2 -2
- package/docs/interfaces/formidable.EmitData.md +1 -1
- package/docs/modules/formidable.md +2 -2
- package/lib/Database.js.map +1 -1
- package/lib/DatabaseConnection.js.map +1 -1
- package/lib/Query.d.ts +1 -2
- package/lib/Query.js.map +1 -1
- package/lib/RawQuery.d.ts +1 -1
- package/lib/RawQuery.js.map +1 -1
- package/lib/Request.d.ts +1 -0
- package/lib/Response.d.ts +1 -0
- package/lib/ServiceProvider.d.ts +1 -2
- package/lib/ServiceProvider.js.map +1 -1
- package/lib/ServiceResponse.d.ts +1 -0
- package/lib/SetSessionVariableQuery.d.ts +1 -2
- package/lib/SetSessionVariableQuery.js.map +1 -1
- package/lib/TemporaryTableQuery.d.ts +1 -2
- package/lib/TemporaryTableQuery.js.map +1 -1
- package/package.json +15 -16
- package/src/Database.ts +1 -2
- package/src/DatabaseConnection.ts +2 -3
- package/src/Query.ts +1 -2
- package/src/RawQuery.ts +1 -1
- package/src/ServiceProvider.ts +1 -2
- package/src/SetSessionVariableQuery.ts +1 -2
- package/src/TemporaryTableQuery.ts +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
#### [v4.
|
|
7
|
+
#### [v4.1.0](https://github.com/breautek/storm/compare/v4.0.0...v4.1.0)
|
|
8
|
+
|
|
9
|
+
License indicated the package was licensed under GPL, but it actually was licensed under Apache 2.0 License as of Version Storm version 2.0.
|
|
10
|
+
|
|
11
|
+
- deproll [`f0208fc`](https://github.com/breautek/storm/commit/f0208fc0b4c165ddc29fa65e406c5b8088fed743)
|
|
12
|
+
- deproll [`57c440e`](https://github.com/breautek/storm/commit/57c440e7e204086371f716dc475fd6ee8a5b2f8c)
|
|
13
|
+
- refactor: Replaced usages of IDictionary with typescript's builtin Record interface [`fb28f03`](https://github.com/breautek/storm/commit/fb28f03915c0ef46e9d1d5c7eaff3dd4561b5905)
|
|
14
|
+
|
|
15
|
+
### [v4.0.0](https://github.com/breautek/storm/compare/v3.4.0...v4.0.0)
|
|
16
|
+
|
|
17
|
+
> 8 March 2022
|
|
8
18
|
|
|
9
19
|
- deproll [`be5e524`](https://github.com/breautek/storm/commit/be5e52417c668db959ac21ff05dabebf93820e73)
|
|
10
20
|
- typescript-eslint upgrade [`186ee78`](https://github.com/breautek/storm/commit/186ee78c4529426d136804dcd6282553680478dc)
|
package/bt-config-sample.jsonc
CHANGED
package/docs/README.md
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
- [ITemporaryTableQueryInput](interfaces/ITemporaryTableQueryInput.md)
|
|
75
75
|
- [IUpdateQueryResult](interfaces/IUpdateQueryResult.md)
|
|
76
76
|
|
|
77
|
-
### Type
|
|
77
|
+
### Type Aliases
|
|
78
78
|
|
|
79
79
|
- [IDeleteQueryResult](README.md#ideletequeryresult)
|
|
80
80
|
- [IHandlerError](README.md#ihandlererror)
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
|
|
89
89
|
- [getInstance](README.md#getinstance)
|
|
90
90
|
|
|
91
|
-
## Type
|
|
91
|
+
## Type Aliases
|
|
92
92
|
|
|
93
93
|
### IDeleteQueryResult
|
|
94
94
|
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
|
|
97
97
|
#### Defined in
|
|
98
98
|
|
|
99
|
-
[src/IDeleteQueryResult.ts:19](https://github.com/breautek/storm/blob/
|
|
99
|
+
[src/IDeleteQueryResult.ts:19](https://github.com/breautek/storm/blob/3ad3438/src/IDeleteQueryResult.ts#L19)
|
|
100
100
|
|
|
101
101
|
___
|
|
102
102
|
|
|
@@ -112,7 +112,7 @@ This is to avoid accidental leakage of privilege data (e.g. snippets of database
|
|
|
112
112
|
|
|
113
113
|
#### Defined in
|
|
114
114
|
|
|
115
|
-
[src/Handler.ts:54](https://github.com/breautek/storm/blob/
|
|
115
|
+
[src/Handler.ts:54](https://github.com/breautek/storm/blob/3ad3438/src/Handler.ts#L54)
|
|
116
116
|
|
|
117
117
|
___
|
|
118
118
|
|
|
@@ -132,7 +132,7 @@ certain things depending on the type of object it receives.
|
|
|
132
132
|
|
|
133
133
|
#### Defined in
|
|
134
134
|
|
|
135
|
-
[src/Handler.ts:45](https://github.com/breautek/storm/blob/
|
|
135
|
+
[src/Handler.ts:45](https://github.com/breautek/storm/blob/3ad3438/src/Handler.ts#L45)
|
|
136
136
|
|
|
137
137
|
## Variables
|
|
138
138
|
|
|
@@ -156,4 +156,4 @@ node_modules/@types/formidable/index.d.ts:281
|
|
|
156
156
|
|
|
157
157
|
#### Defined in
|
|
158
158
|
|
|
159
|
-
[src/instance.ts:28](https://github.com/breautek/storm/blob/
|
|
159
|
+
[src/instance.ts:28](https://github.com/breautek/storm/blob/3ad3438/src/instance.ts#L28)
|
|
@@ -75,9 +75,9 @@ Main entry point for the Application. Should be extended and have the abstract m
|
|
|
75
75
|
- [setTokenManager](Application.md#settokenmanager)
|
|
76
76
|
- [shouldListen](Application.md#shouldlisten)
|
|
77
77
|
- [getEventListeners](Application.md#geteventlisteners)
|
|
78
|
-
- [listenerCount](Application.md#listenercount)
|
|
79
|
-
- [on](Application.md#on)
|
|
80
|
-
- [once](Application.md#once)
|
|
78
|
+
- [listenerCount](Application.md#listenercount-1)
|
|
79
|
+
- [on](Application.md#on-1)
|
|
80
|
+
- [once](Application.md#once-1)
|
|
81
81
|
|
|
82
82
|
## Constructors
|
|
83
83
|
|
|
@@ -107,7 +107,7 @@ EventEmitter.constructor
|
|
|
107
107
|
|
|
108
108
|
#### Defined in
|
|
109
109
|
|
|
110
|
-
[src/Application.ts:64](https://github.com/breautek/storm/blob/
|
|
110
|
+
[src/Application.ts:64](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L64)
|
|
111
111
|
|
|
112
112
|
## Properties
|
|
113
113
|
|
|
@@ -191,7 +191,7 @@ Promise<void>
|
|
|
191
191
|
|
|
192
192
|
#### Defined in
|
|
193
193
|
|
|
194
|
-
[src/Application.ts:272](https://github.com/breautek/storm/blob/
|
|
194
|
+
[src/Application.ts:272](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L272)
|
|
195
195
|
|
|
196
196
|
___
|
|
197
197
|
|
|
@@ -211,7 +211,7 @@ ___
|
|
|
211
211
|
|
|
212
212
|
#### Defined in
|
|
213
213
|
|
|
214
|
-
[src/Application.ts:202](https://github.com/breautek/storm/blob/
|
|
214
|
+
[src/Application.ts:202](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L202)
|
|
215
215
|
|
|
216
216
|
___
|
|
217
217
|
|
|
@@ -225,7 +225,7 @@ ___
|
|
|
225
225
|
|
|
226
226
|
#### Defined in
|
|
227
227
|
|
|
228
|
-
[src/Application.ts:249](https://github.com/breautek/storm/blob/
|
|
228
|
+
[src/Application.ts:249](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L249)
|
|
229
229
|
|
|
230
230
|
___
|
|
231
231
|
|
|
@@ -239,7 +239,7 @@ ___
|
|
|
239
239
|
|
|
240
240
|
#### Defined in
|
|
241
241
|
|
|
242
|
-
[src/Application.ts:255](https://github.com/breautek/storm/blob/
|
|
242
|
+
[src/Application.ts:255](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L255)
|
|
243
243
|
|
|
244
244
|
___
|
|
245
245
|
|
|
@@ -261,7 +261,7 @@ Subclasses are expected to override this to configure their database setup, if t
|
|
|
261
261
|
|
|
262
262
|
#### Defined in
|
|
263
263
|
|
|
264
|
-
[src/Application.ts:381](https://github.com/breautek/storm/blob/
|
|
264
|
+
[src/Application.ts:381](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L381)
|
|
265
265
|
|
|
266
266
|
___
|
|
267
267
|
|
|
@@ -281,7 +281,7 @@ ___
|
|
|
281
281
|
|
|
282
282
|
#### Defined in
|
|
283
283
|
|
|
284
|
-
[src/Application.ts:165](https://github.com/breautek/storm/blob/
|
|
284
|
+
[src/Application.ts:165](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L165)
|
|
285
285
|
|
|
286
286
|
___
|
|
287
287
|
|
|
@@ -301,7 +301,7 @@ ___
|
|
|
301
301
|
|
|
302
302
|
#### Defined in
|
|
303
303
|
|
|
304
|
-
[src/Application.ts:161](https://github.com/breautek/storm/blob/
|
|
304
|
+
[src/Application.ts:161](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L161)
|
|
305
305
|
|
|
306
306
|
___
|
|
307
307
|
|
|
@@ -315,7 +315,7 @@ ___
|
|
|
315
315
|
|
|
316
316
|
#### Defined in
|
|
317
317
|
|
|
318
|
-
[src/Application.ts:385](https://github.com/breautek/storm/blob/
|
|
318
|
+
[src/Application.ts:385](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L385)
|
|
319
319
|
|
|
320
320
|
___
|
|
321
321
|
|
|
@@ -337,7 +337,7 @@ Invoked once the config has been loaded and ready to be used.
|
|
|
337
337
|
|
|
338
338
|
#### Defined in
|
|
339
339
|
|
|
340
|
-
[src/Application.ts:325](https://github.com/breautek/storm/blob/
|
|
340
|
+
[src/Application.ts:325](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L325)
|
|
341
341
|
|
|
342
342
|
___
|
|
343
343
|
|
|
@@ -353,7 +353,7 @@ Invoked when the application is considered ready for operation.
|
|
|
353
353
|
|
|
354
354
|
#### Defined in
|
|
355
355
|
|
|
356
|
-
[src/Application.ts:390](https://github.com/breautek/storm/blob/
|
|
356
|
+
[src/Application.ts:390](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L390)
|
|
357
357
|
|
|
358
358
|
___
|
|
359
359
|
|
|
@@ -403,7 +403,7 @@ ___
|
|
|
403
403
|
|
|
404
404
|
#### Defined in
|
|
405
405
|
|
|
406
|
-
[src/Application.ts:221](https://github.com/breautek/storm/blob/
|
|
406
|
+
[src/Application.ts:221](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L221)
|
|
407
407
|
|
|
408
408
|
___
|
|
409
409
|
|
|
@@ -424,7 +424,7 @@ ___
|
|
|
424
424
|
|
|
425
425
|
#### Defined in
|
|
426
426
|
|
|
427
|
-
[src/Application.ts:226](https://github.com/breautek/storm/blob/
|
|
427
|
+
[src/Application.ts:226](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L226)
|
|
428
428
|
|
|
429
429
|
___
|
|
430
430
|
|
|
@@ -438,7 +438,7 @@ ___
|
|
|
438
438
|
|
|
439
439
|
#### Defined in
|
|
440
440
|
|
|
441
|
-
[src/Application.ts:245](https://github.com/breautek/storm/blob/
|
|
441
|
+
[src/Application.ts:245](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L245)
|
|
442
442
|
|
|
443
443
|
___
|
|
444
444
|
|
|
@@ -555,7 +555,7 @@ command line arguments
|
|
|
555
555
|
|
|
556
556
|
#### Defined in
|
|
557
557
|
|
|
558
|
-
[src/Application.ts:352](https://github.com/breautek/storm/blob/
|
|
558
|
+
[src/Application.ts:352](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L352)
|
|
559
559
|
|
|
560
560
|
___
|
|
561
561
|
|
|
@@ -571,7 +571,7 @@ the config object.
|
|
|
571
571
|
|
|
572
572
|
#### Defined in
|
|
573
573
|
|
|
574
|
-
[src/Application.ts:309](https://github.com/breautek/storm/blob/
|
|
574
|
+
[src/Application.ts:309](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L309)
|
|
575
575
|
|
|
576
576
|
___
|
|
577
577
|
|
|
@@ -587,7 +587,7 @@ the database pool. This will need to be casted based on your preferred database
|
|
|
587
587
|
|
|
588
588
|
#### Defined in
|
|
589
589
|
|
|
590
|
-
[src/Application.ts:345](https://github.com/breautek/storm/blob/
|
|
590
|
+
[src/Application.ts:345](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L345)
|
|
591
591
|
|
|
592
592
|
___
|
|
593
593
|
|
|
@@ -601,7 +601,7 @@ ___
|
|
|
601
601
|
|
|
602
602
|
#### Defined in
|
|
603
603
|
|
|
604
|
-
[src/Application.ts:169](https://github.com/breautek/storm/blob/
|
|
604
|
+
[src/Application.ts:169](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L169)
|
|
605
605
|
|
|
606
606
|
___
|
|
607
607
|
|
|
@@ -640,7 +640,7 @@ the application name
|
|
|
640
640
|
|
|
641
641
|
#### Defined in
|
|
642
642
|
|
|
643
|
-
[src/Application.ts:298](https://github.com/breautek/storm/blob/
|
|
643
|
+
[src/Application.ts:298](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L298)
|
|
644
644
|
|
|
645
645
|
___
|
|
646
646
|
|
|
@@ -654,7 +654,7 @@ ___
|
|
|
654
654
|
|
|
655
655
|
#### Defined in
|
|
656
656
|
|
|
657
|
-
[src/Application.ts:173](https://github.com/breautek/storm/blob/
|
|
657
|
+
[src/Application.ts:173](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L173)
|
|
658
658
|
|
|
659
659
|
___
|
|
660
660
|
|
|
@@ -668,7 +668,7 @@ ___
|
|
|
668
668
|
|
|
669
669
|
#### Defined in
|
|
670
670
|
|
|
671
|
-
[src/Application.ts:204](https://github.com/breautek/storm/blob/
|
|
671
|
+
[src/Application.ts:204](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L204)
|
|
672
672
|
|
|
673
673
|
___
|
|
674
674
|
|
|
@@ -684,7 +684,7 @@ The maximum size limit for incoming requests that this service needs to handle.
|
|
|
684
684
|
|
|
685
685
|
#### Defined in
|
|
686
686
|
|
|
687
|
-
[src/Application.ts:211](https://github.com/breautek/storm/blob/
|
|
687
|
+
[src/Application.ts:211](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L211)
|
|
688
688
|
|
|
689
689
|
___
|
|
690
690
|
|
|
@@ -700,7 +700,7 @@ the token manager
|
|
|
700
700
|
|
|
701
701
|
#### Defined in
|
|
702
702
|
|
|
703
|
-
[src/Application.ts:338](https://github.com/breautek/storm/blob/
|
|
703
|
+
[src/Application.ts:338](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L338)
|
|
704
704
|
|
|
705
705
|
___
|
|
706
706
|
|
|
@@ -784,7 +784,7 @@ ___
|
|
|
784
784
|
|
|
785
785
|
#### Defined in
|
|
786
786
|
|
|
787
|
-
[src/Application.ts:278](https://github.com/breautek/storm/blob/
|
|
787
|
+
[src/Application.ts:278](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L278)
|
|
788
788
|
|
|
789
789
|
___
|
|
790
790
|
|
|
@@ -1241,7 +1241,7 @@ Sets the TokenManager to be used for authentication.
|
|
|
1241
1241
|
|
|
1242
1242
|
#### Defined in
|
|
1243
1243
|
|
|
1244
|
-
[src/Application.ts:331](https://github.com/breautek/storm/blob/
|
|
1244
|
+
[src/Application.ts:331](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L331)
|
|
1245
1245
|
|
|
1246
1246
|
___
|
|
1247
1247
|
|
|
@@ -1257,7 +1257,7 @@ true if the Application should bind to an IP address
|
|
|
1257
1257
|
|
|
1258
1258
|
#### Defined in
|
|
1259
1259
|
|
|
1260
|
-
[src/Application.ts:316](https://github.com/breautek/storm/blob/
|
|
1260
|
+
[src/Application.ts:316](https://github.com/breautek/storm/blob/3ad3438/src/Application.ts#L316)
|
|
1261
1261
|
|
|
1262
1262
|
___
|
|
1263
1263
|
|
|
@@ -1296,7 +1296,7 @@ const { getEventListeners, EventEmitter } = require('events');
|
|
|
1296
1296
|
|
|
1297
1297
|
| Name | Type |
|
|
1298
1298
|
| :------ | :------ |
|
|
1299
|
-
| `emitter` | `
|
|
1299
|
+
| `emitter` | `EventEmitter` \| `DOMEventTarget` |
|
|
1300
1300
|
| `name` | `string` \| `symbol` |
|
|
1301
1301
|
|
|
1302
1302
|
#### Returns
|
|
@@ -25,7 +25,7 @@ for their specific use cases.
|
|
|
25
25
|
|
|
26
26
|
#### Defined in
|
|
27
27
|
|
|
28
|
-
[src/BackendAuthenticationMiddleware.ts:35](https://github.com/breautek/storm/blob/
|
|
28
|
+
[src/BackendAuthenticationMiddleware.ts:35](https://github.com/breautek/storm/blob/3ad3438/src/BackendAuthenticationMiddleware.ts#L35)
|
|
29
29
|
|
|
30
30
|
## Methods
|
|
31
31
|
|
|
@@ -46,4 +46,4 @@ for their specific use cases.
|
|
|
46
46
|
|
|
47
47
|
#### Defined in
|
|
48
48
|
|
|
49
|
-
[src/BackendAuthenticationMiddleware.ts:46](https://github.com/breautek/storm/blob/
|
|
49
|
+
[src/BackendAuthenticationMiddleware.ts:46](https://github.com/breautek/storm/blob/3ad3438/src/BackendAuthenticationMiddleware.ts#L46)
|
|
@@ -46,7 +46,7 @@ communicate with CORS enabled clients.
|
|
|
46
46
|
|
|
47
47
|
#### Defined in
|
|
48
48
|
|
|
49
|
-
[src/CORSMiddleware.ts:39](https://github.com/breautek/storm/blob/
|
|
49
|
+
[src/CORSMiddleware.ts:39](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L39)
|
|
50
50
|
|
|
51
51
|
## Methods
|
|
52
52
|
|
|
@@ -71,7 +71,7 @@ communicate with CORS enabled clients.
|
|
|
71
71
|
|
|
72
72
|
#### Defined in
|
|
73
73
|
|
|
74
|
-
[src/CORSMiddleware.ts:75](https://github.com/breautek/storm/blob/
|
|
74
|
+
[src/CORSMiddleware.ts:75](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L75)
|
|
75
75
|
|
|
76
76
|
___
|
|
77
77
|
|
|
@@ -96,7 +96,7 @@ ___
|
|
|
96
96
|
|
|
97
97
|
#### Defined in
|
|
98
98
|
|
|
99
|
-
[src/Middleware.ts:27](https://github.com/breautek/storm/blob/
|
|
99
|
+
[src/Middleware.ts:27](https://github.com/breautek/storm/blob/3ad3438/src/Middleware.ts#L27)
|
|
100
100
|
|
|
101
101
|
___
|
|
102
102
|
|
|
@@ -110,7 +110,7 @@ ___
|
|
|
110
110
|
|
|
111
111
|
#### Defined in
|
|
112
112
|
|
|
113
|
-
[src/CORSMiddleware.ts:54](https://github.com/breautek/storm/blob/
|
|
113
|
+
[src/CORSMiddleware.ts:54](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L54)
|
|
114
114
|
|
|
115
115
|
___
|
|
116
116
|
|
|
@@ -124,7 +124,7 @@ ___
|
|
|
124
124
|
|
|
125
125
|
#### Defined in
|
|
126
126
|
|
|
127
|
-
[src/CORSMiddleware.ts:64](https://github.com/breautek/storm/blob/
|
|
127
|
+
[src/CORSMiddleware.ts:64](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L64)
|
|
128
128
|
|
|
129
129
|
___
|
|
130
130
|
|
|
@@ -140,4 +140,4 @@ Sets the allowed origin. By default,
|
|
|
140
140
|
|
|
141
141
|
#### Defined in
|
|
142
142
|
|
|
143
|
-
[src/CORSMiddleware.ts:50](https://github.com/breautek/storm/blob/
|
|
143
|
+
[src/CORSMiddleware.ts:50](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L50)
|
package/docs/classes/Database.md
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
#### Defined in
|
|
52
52
|
|
|
53
|
-
[src/Database.ts:
|
|
53
|
+
[src/Database.ts:27](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L27)
|
|
54
54
|
|
|
55
55
|
## Methods
|
|
56
56
|
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
#### Defined in
|
|
73
73
|
|
|
74
|
-
[src/Database.ts:
|
|
74
|
+
[src/Database.ts:82](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L82)
|
|
75
75
|
|
|
76
76
|
___
|
|
77
77
|
|
|
@@ -85,7 +85,7 @@ ___
|
|
|
85
85
|
|
|
86
86
|
#### Defined in
|
|
87
87
|
|
|
88
|
-
[src/Database.ts:
|
|
88
|
+
[src/Database.ts:81](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L81)
|
|
89
89
|
|
|
90
90
|
___
|
|
91
91
|
|
|
@@ -106,7 +106,7 @@ ___
|
|
|
106
106
|
|
|
107
107
|
#### Defined in
|
|
108
108
|
|
|
109
|
-
[src/Database.ts:
|
|
109
|
+
[src/Database.ts:84](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L84)
|
|
110
110
|
|
|
111
111
|
___
|
|
112
112
|
|
|
@@ -126,7 +126,7 @@ ___
|
|
|
126
126
|
|
|
127
127
|
#### Defined in
|
|
128
128
|
|
|
129
|
-
[src/Database.ts:
|
|
129
|
+
[src/Database.ts:83](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L83)
|
|
130
130
|
|
|
131
131
|
___
|
|
132
132
|
|
|
@@ -146,7 +146,7 @@ ___
|
|
|
146
146
|
|
|
147
147
|
#### Defined in
|
|
148
148
|
|
|
149
|
-
[src/Database.ts:
|
|
149
|
+
[src/Database.ts:31](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L31)
|
|
150
150
|
|
|
151
151
|
___
|
|
152
152
|
|
|
@@ -167,7 +167,7 @@ ___
|
|
|
167
167
|
|
|
168
168
|
#### Defined in
|
|
169
169
|
|
|
170
|
-
[src/Database.ts:
|
|
170
|
+
[src/Database.ts:45](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L45)
|
|
171
171
|
|
|
172
172
|
___
|
|
173
173
|
|
|
@@ -181,7 +181,7 @@ ___
|
|
|
181
181
|
|
|
182
182
|
#### Defined in
|
|
183
183
|
|
|
184
|
-
[src/Database.ts:
|
|
184
|
+
[src/Database.ts:77](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L77)
|
|
185
185
|
|
|
186
186
|
___
|
|
187
187
|
|
|
@@ -201,7 +201,7 @@ ___
|
|
|
201
201
|
|
|
202
202
|
#### Defined in
|
|
203
203
|
|
|
204
|
-
[src/Database.ts:
|
|
204
|
+
[src/Database.ts:85](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L85)
|
|
205
205
|
|
|
206
206
|
___
|
|
207
207
|
|
|
@@ -222,7 +222,7 @@ ___
|
|
|
222
222
|
|
|
223
223
|
#### Defined in
|
|
224
224
|
|
|
225
|
-
[src/Database.ts:
|
|
225
|
+
[src/Database.ts:64](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L64)
|
|
226
226
|
|
|
227
227
|
___
|
|
228
228
|
|
|
@@ -236,7 +236,7 @@ ___
|
|
|
236
236
|
|
|
237
237
|
#### Defined in
|
|
238
238
|
|
|
239
|
-
[src/Database.ts:
|
|
239
|
+
[src/Database.ts:40](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L40)
|
|
240
240
|
|
|
241
241
|
___
|
|
242
242
|
|
|
@@ -256,4 +256,4 @@ ___
|
|
|
256
256
|
|
|
257
257
|
#### Defined in
|
|
258
258
|
|
|
259
|
-
[src/Database.ts:
|
|
259
|
+
[src/Database.ts:54](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L54)
|
|
@@ -73,7 +73,7 @@ Do not call `new Database` directly. Use `Database.getConnection` to create a `D
|
|
|
73
73
|
|
|
74
74
|
#### Defined in
|
|
75
75
|
|
|
76
|
-
[src/DatabaseConnection.ts:
|
|
76
|
+
[src/DatabaseConnection.ts:43](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L43)
|
|
77
77
|
|
|
78
78
|
## Methods
|
|
79
79
|
|
|
@@ -100,7 +100,7 @@ Promise<void>
|
|
|
100
100
|
|
|
101
101
|
#### Defined in
|
|
102
102
|
|
|
103
|
-
[src/DatabaseConnection.ts:
|
|
103
|
+
[src/DatabaseConnection.ts:238](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L238)
|
|
104
104
|
|
|
105
105
|
___
|
|
106
106
|
|
|
@@ -133,7 +133,7 @@ Promise
|
|
|
133
133
|
|
|
134
134
|
#### Defined in
|
|
135
135
|
|
|
136
|
-
[src/DatabaseConnection.ts:
|
|
136
|
+
[src/DatabaseConnection.ts:249](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L249)
|
|
137
137
|
|
|
138
138
|
___
|
|
139
139
|
|
|
@@ -160,7 +160,7 @@ but returns a `Readable` stream instead.
|
|
|
160
160
|
|
|
161
161
|
#### Defined in
|
|
162
162
|
|
|
163
|
-
[src/DatabaseConnection.ts:
|
|
163
|
+
[src/DatabaseConnection.ts:261](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L261)
|
|
164
164
|
|
|
165
165
|
___
|
|
166
166
|
|
|
@@ -192,7 +192,7 @@ Promise<void>
|
|
|
192
192
|
|
|
193
193
|
#### Defined in
|
|
194
194
|
|
|
195
|
-
[src/DatabaseConnection.ts:
|
|
195
|
+
[src/DatabaseConnection.ts:168](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L168)
|
|
196
196
|
|
|
197
197
|
___
|
|
198
198
|
|
|
@@ -218,7 +218,7 @@ Promise<void>
|
|
|
218
218
|
|
|
219
219
|
#### Defined in
|
|
220
220
|
|
|
221
|
-
[src/DatabaseConnection.ts:
|
|
221
|
+
[src/DatabaseConnection.ts:219](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L219)
|
|
222
222
|
|
|
223
223
|
___
|
|
224
224
|
|
|
@@ -246,7 +246,7 @@ Promise<void>
|
|
|
246
246
|
|
|
247
247
|
#### Defined in
|
|
248
248
|
|
|
249
|
-
[src/DatabaseConnection.ts:
|
|
249
|
+
[src/DatabaseConnection.ts:210](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L210)
|
|
250
250
|
|
|
251
251
|
___
|
|
252
252
|
|
|
@@ -268,7 +268,7 @@ any
|
|
|
268
268
|
|
|
269
269
|
#### Defined in
|
|
270
270
|
|
|
271
|
-
[src/DatabaseConnection.ts:
|
|
271
|
+
[src/DatabaseConnection.ts:90](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L90)
|
|
272
272
|
|
|
273
273
|
___
|
|
274
274
|
|
|
@@ -291,7 +291,7 @@ string - A stacktrace
|
|
|
291
291
|
|
|
292
292
|
#### Defined in
|
|
293
293
|
|
|
294
|
-
[src/DatabaseConnection.ts:
|
|
294
|
+
[src/DatabaseConnection.ts:72](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L72)
|
|
295
295
|
|
|
296
296
|
___
|
|
297
297
|
|
|
@@ -313,7 +313,7 @@ number in milliseconds
|
|
|
313
313
|
|
|
314
314
|
#### Defined in
|
|
315
315
|
|
|
316
|
-
[src/DatabaseConnection.ts:
|
|
316
|
+
[src/DatabaseConnection.ts:120](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L120)
|
|
317
317
|
|
|
318
318
|
___
|
|
319
319
|
|
|
@@ -333,7 +333,7 @@ Returns true if the connection has been closed.
|
|
|
333
333
|
|
|
334
334
|
#### Defined in
|
|
335
335
|
|
|
336
|
-
[src/DatabaseConnection.ts:
|
|
336
|
+
[src/DatabaseConnection.ts:181](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L181)
|
|
337
337
|
|
|
338
338
|
___
|
|
339
339
|
|
|
@@ -356,7 +356,7 @@ boolean
|
|
|
356
356
|
|
|
357
357
|
#### Defined in
|
|
358
358
|
|
|
359
|
-
[src/DatabaseConnection.ts:
|
|
359
|
+
[src/DatabaseConnection.ts:99](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L99)
|
|
360
360
|
|
|
361
361
|
___
|
|
362
362
|
|
|
@@ -380,7 +380,7 @@ boolean
|
|
|
380
380
|
|
|
381
381
|
#### Defined in
|
|
382
382
|
|
|
383
|
-
[src/DatabaseConnection.ts:
|
|
383
|
+
[src/DatabaseConnection.ts:200](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L200)
|
|
384
384
|
|
|
385
385
|
___
|
|
386
386
|
|
|
@@ -416,7 +416,7 @@ Promise<TQueryResult>
|
|
|
416
416
|
|
|
417
417
|
#### Defined in
|
|
418
418
|
|
|
419
|
-
[src/DatabaseConnection.ts:
|
|
419
|
+
[src/DatabaseConnection.ts:131](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L131)
|
|
420
420
|
|
|
421
421
|
___
|
|
422
422
|
|
|
@@ -442,7 +442,7 @@ Promise<void>
|
|
|
442
442
|
|
|
443
443
|
#### Defined in
|
|
444
444
|
|
|
445
|
-
[src/DatabaseConnection.ts:
|
|
445
|
+
[src/DatabaseConnection.ts:228](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L228)
|
|
446
446
|
|
|
447
447
|
___
|
|
448
448
|
|
|
@@ -466,7 +466,7 @@ ___
|
|
|
466
466
|
|
|
467
467
|
#### Defined in
|
|
468
468
|
|
|
469
|
-
[src/DatabaseConnection.ts:
|
|
469
|
+
[src/DatabaseConnection.ts:63](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L63)
|
|
470
470
|
|
|
471
471
|
___
|
|
472
472
|
|
|
@@ -492,7 +492,7 @@ Sets the timeout of this connectino
|
|
|
492
492
|
|
|
493
493
|
#### Defined in
|
|
494
494
|
|
|
495
|
-
[src/DatabaseConnection.ts:
|
|
495
|
+
[src/DatabaseConnection.ts:108](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L108)
|
|
496
496
|
|
|
497
497
|
___
|
|
498
498
|
|
|
@@ -518,7 +518,7 @@ Promise<void>
|
|
|
518
518
|
|
|
519
519
|
#### Defined in
|
|
520
520
|
|
|
521
|
-
[src/DatabaseConnection.ts:
|
|
521
|
+
[src/DatabaseConnection.ts:192](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L192)
|
|
522
522
|
|
|
523
523
|
___
|
|
524
524
|
|
|
@@ -545,4 +545,4 @@ Readable
|
|
|
545
545
|
|
|
546
546
|
#### Defined in
|
|
547
547
|
|
|
548
|
-
[src/DatabaseConnection.ts:
|
|
548
|
+
[src/DatabaseConnection.ts:151](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L151)
|