@breautek/storm 4.2.0 → 4.4.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 +14 -0
- package/docs/README.md +28 -20
- package/docs/classes/Application.md +158 -76
- package/docs/classes/BackendAuthenticationMiddleware.md +3 -3
- package/docs/classes/CORSMiddleware.md +8 -8
- package/docs/classes/ConfigLoader.md +1 -1
- package/docs/classes/Database.md +12 -12
- package/docs/classes/DatabaseConnection.md +42 -40
- package/docs/classes/DatabaseQueryError.md +58 -16
- package/docs/classes/DeadLockError.md +349 -0
- package/docs/classes/DiskSpaceError.md +56 -16
- package/docs/classes/DropTemporaryTableQuery.md +8 -8
- package/docs/classes/DumpStream.md +1 -1
- package/docs/classes/DuplicateEntryError.md +56 -16
- package/docs/classes/EntityNotFoundError.md +56 -16
- package/docs/classes/ExpiredTokenError.md +56 -16
- package/docs/classes/Handler.md +14 -14
- package/docs/classes/InternalError.md +56 -16
- package/docs/classes/InvalidCredentialsError.md +56 -16
- package/docs/classes/InvalidValueError.md +56 -16
- package/docs/classes/ManagedDatabaseConnection.md +19 -19
- package/docs/classes/Middleware.md +3 -3
- package/docs/classes/MissingConfigError.md +56 -16
- package/docs/classes/MissingParameterError.md +56 -16
- package/docs/classes/MySQLConnection.md +73 -43
- package/docs/classes/MySQLDatabase.md +13 -13
- package/docs/classes/NotImplementedError.md +56 -16
- package/docs/classes/Query.md +8 -8
- package/docs/classes/RawError.md +56 -18
- package/docs/classes/RawQuery.md +8 -8
- package/docs/classes/Request.md +18 -18
- package/docs/classes/Response.md +11 -11
- package/docs/classes/ResponseData.md +7 -7
- package/docs/classes/ServiceProvider.md +15 -15
- package/docs/classes/ServiceResponse.md +4 -4
- package/docs/classes/SetSessionVariableQuery.md +8 -8
- package/docs/classes/StormError.md +48 -16
- package/docs/classes/TemporaryTableQuery.md +8 -8
- package/docs/classes/Token.md +2 -2
- package/docs/classes/TokenManager.md +4 -4
- package/docs/classes/UnauthorizedAccessError.md +56 -16
- package/docs/enums/ErrorCode.md +18 -18
- package/docs/enums/ExitCode.md +4 -4
- package/docs/enums/HTTPMethod.md +8 -8
- package/docs/enums/JWTError.md +4 -4
- package/docs/enums/StatusCode.md +96 -96
- package/docs/interfaces/IConfig.md +8 -8
- package/docs/interfaces/IDatabaseConfig.md +6 -6
- package/docs/interfaces/IDatabaseConnection.md +14 -14
- package/docs/interfaces/IErrorResponse.md +15 -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.File.md +3 -1
- package/docs/interfaces/formidable.FileJSON.md +3 -1
- package/docs/interfaces/formidable.Options.md +33 -11
- package/docs/interfaces/formidable.Part.md +65 -35
- package/lib/DatabaseQueryError.d.ts +1 -0
- package/lib/DatabaseQueryError.js +3 -0
- package/lib/DatabaseQueryError.js.map +1 -1
- package/lib/DeadLockError.d.ts +6 -0
- package/lib/DeadLockError.js +26 -0
- package/lib/DeadLockError.js.map +1 -0
- package/lib/DiskSpaceError.d.ts +1 -0
- package/lib/DiskSpaceError.js +3 -0
- package/lib/DiskSpaceError.js.map +1 -1
- package/lib/DuplicateEntryError.d.ts +2 -0
- package/lib/DuplicateEntryError.js +11 -0
- package/lib/DuplicateEntryError.js.map +1 -1
- package/lib/EntityNotFoundError.d.ts +2 -0
- package/lib/EntityNotFoundError.js +8 -0
- package/lib/EntityNotFoundError.js.map +1 -1
- package/lib/ExpiredTokenError.d.ts +1 -0
- package/lib/ExpiredTokenError.js +3 -0
- package/lib/ExpiredTokenError.js.map +1 -1
- package/lib/InternalError.d.ts +1 -0
- package/lib/InternalError.js +3 -0
- package/lib/InternalError.js.map +1 -1
- package/lib/InvalidCredentialsError.d.ts +1 -0
- package/lib/InvalidCredentialsError.js +3 -0
- package/lib/InvalidCredentialsError.js.map +1 -1
- package/lib/InvalidValueError.d.ts +2 -0
- package/lib/InvalidValueError.js +11 -0
- package/lib/InvalidValueError.js.map +1 -1
- package/lib/MissingConfigError.d.ts +2 -0
- package/lib/MissingConfigError.js +8 -0
- package/lib/MissingConfigError.js.map +1 -1
- package/lib/MissingParameterError.d.ts +2 -0
- package/lib/MissingParameterError.js +8 -0
- package/lib/MissingParameterError.js.map +1 -1
- package/lib/MySQLConnection.js +9 -1
- package/lib/MySQLConnection.js.map +1 -1
- package/lib/NotImplementedError.d.ts +2 -0
- package/lib/NotImplementedError.js +8 -0
- package/lib/NotImplementedError.js.map +1 -1
- package/lib/StormError.d.ts +7 -0
- package/lib/StormError.js +10 -0
- package/lib/StormError.js.map +1 -1
- package/lib/UnauthorizedAccessError.d.ts +1 -0
- package/lib/UnauthorizedAccessError.js +3 -0
- package/lib/UnauthorizedAccessError.js.map +1 -1
- package/lib/api.d.ts +1 -0
- package/lib/api.js +3 -1
- package/lib/api.js.map +1 -1
- package/package.json +19 -18
- package/src/DatabaseQueryError.ts +4 -0
- package/src/DeadLockError.ts +22 -0
- package/src/DiskSpaceError.ts +4 -0
- package/src/DuplicateEntryError.ts +13 -0
- package/src/EntityNotFoundError.ts +10 -0
- package/src/ExpiredTokenError.ts +4 -0
- package/src/InternalError.ts +4 -0
- package/src/InvalidCredentialsError.ts +4 -0
- package/src/InvalidValueError.ts +13 -0
- package/src/MissingConfigError.ts +10 -0
- package/src/MissingParameterError.ts +10 -0
- package/src/MySQLConnection.ts +11 -1
- package/src/NotImplementedError.ts +10 -0
- package/src/StormError.ts +18 -0
- package/src/UnauthorizedAccessError.ts +4 -0
- package/src/api.ts +1 -0
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
- [getErrorResponse](DuplicateEntryError.md#geterrorresponse)
|
|
29
29
|
- [getExitCode](DuplicateEntryError.md#getexitcode)
|
|
30
30
|
- [getHTTPCode](DuplicateEntryError.md#gethttpcode)
|
|
31
|
+
- [getLocaleCode](DuplicateEntryError.md#getlocalecode)
|
|
32
|
+
- [getLocaleParameters](DuplicateEntryError.md#getlocaleparameters)
|
|
31
33
|
- [getMessage](DuplicateEntryError.md#getmessage)
|
|
32
34
|
- [getPrivateDetails](DuplicateEntryError.md#getprivatedetails)
|
|
33
35
|
- [getPublicDetails](DuplicateEntryError.md#getpublicdetails)
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
|
|
54
56
|
#### Defined in
|
|
55
57
|
|
|
56
|
-
[src/DuplicateEntryError.ts:28](https://github.com/breautek/storm/blob/
|
|
58
|
+
[src/DuplicateEntryError.ts:28](https://github.com/breautek/storm/blob/0875c73/src/DuplicateEntryError.ts#L28)
|
|
57
59
|
|
|
58
60
|
## Properties
|
|
59
61
|
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
|
|
68
70
|
#### Defined in
|
|
69
71
|
|
|
70
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
72
|
+
node_modules/typescript/lib/lib.es5.d.ts:1041
|
|
71
73
|
|
|
72
74
|
___
|
|
73
75
|
|
|
@@ -81,7 +83,7 @@ ___
|
|
|
81
83
|
|
|
82
84
|
#### Defined in
|
|
83
85
|
|
|
84
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
86
|
+
node_modules/typescript/lib/lib.es5.d.ts:1040
|
|
85
87
|
|
|
86
88
|
___
|
|
87
89
|
|
|
@@ -95,7 +97,7 @@ ___
|
|
|
95
97
|
|
|
96
98
|
#### Defined in
|
|
97
99
|
|
|
98
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
100
|
+
node_modules/typescript/lib/lib.es5.d.ts:1042
|
|
99
101
|
|
|
100
102
|
___
|
|
101
103
|
|
|
@@ -109,7 +111,9 @@ ___
|
|
|
109
111
|
|
|
110
112
|
Optional override for formatting stack traces
|
|
111
113
|
|
|
112
|
-
**`
|
|
114
|
+
**`See`**
|
|
115
|
+
|
|
116
|
+
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
113
117
|
|
|
114
118
|
##### Parameters
|
|
115
119
|
|
|
@@ -128,7 +132,7 @@ Optional override for formatting stack traces
|
|
|
128
132
|
|
|
129
133
|
#### Defined in
|
|
130
134
|
|
|
131
|
-
node_modules/@types/node/globals.d.ts:11
|
|
135
|
+
node_modules/@types/node/ts4.8/globals.d.ts:11
|
|
132
136
|
|
|
133
137
|
___
|
|
134
138
|
|
|
@@ -142,7 +146,7 @@ ___
|
|
|
142
146
|
|
|
143
147
|
#### Defined in
|
|
144
148
|
|
|
145
|
-
node_modules/@types/node/globals.d.ts:13
|
|
149
|
+
node_modules/@types/node/ts4.8/globals.d.ts:13
|
|
146
150
|
|
|
147
151
|
## Methods
|
|
148
152
|
|
|
@@ -160,7 +164,7 @@ node_modules/@types/node/globals.d.ts:13
|
|
|
160
164
|
|
|
161
165
|
#### Defined in
|
|
162
166
|
|
|
163
|
-
[src/DuplicateEntryError.ts:41](https://github.com/breautek/storm/blob/
|
|
167
|
+
[src/DuplicateEntryError.ts:41](https://github.com/breautek/storm/blob/0875c73/src/DuplicateEntryError.ts#L41)
|
|
164
168
|
|
|
165
169
|
___
|
|
166
170
|
|
|
@@ -178,7 +182,7 @@ ___
|
|
|
178
182
|
|
|
179
183
|
#### Defined in
|
|
180
184
|
|
|
181
|
-
[src/StormError.ts:
|
|
185
|
+
[src/StormError.ts:76](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L76)
|
|
182
186
|
|
|
183
187
|
___
|
|
184
188
|
|
|
@@ -196,7 +200,7 @@ ___
|
|
|
196
200
|
|
|
197
201
|
#### Defined in
|
|
198
202
|
|
|
199
|
-
[src/StormError.ts:
|
|
203
|
+
[src/StormError.ts:97](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L97)
|
|
200
204
|
|
|
201
205
|
___
|
|
202
206
|
|
|
@@ -214,7 +218,43 @@ ___
|
|
|
214
218
|
|
|
215
219
|
#### Defined in
|
|
216
220
|
|
|
217
|
-
[src/DuplicateEntryError.ts:45](https://github.com/breautek/storm/blob/
|
|
221
|
+
[src/DuplicateEntryError.ts:45](https://github.com/breautek/storm/blob/0875c73/src/DuplicateEntryError.ts#L45)
|
|
222
|
+
|
|
223
|
+
___
|
|
224
|
+
|
|
225
|
+
### getLocaleCode
|
|
226
|
+
|
|
227
|
+
▸ **getLocaleCode**(): `string`
|
|
228
|
+
|
|
229
|
+
#### Returns
|
|
230
|
+
|
|
231
|
+
`string`
|
|
232
|
+
|
|
233
|
+
#### Overrides
|
|
234
|
+
|
|
235
|
+
[StormError](StormError.md).[getLocaleCode](StormError.md#getlocalecode)
|
|
236
|
+
|
|
237
|
+
#### Defined in
|
|
238
|
+
|
|
239
|
+
[src/DuplicateEntryError.ts:49](https://github.com/breautek/storm/blob/0875c73/src/DuplicateEntryError.ts#L49)
|
|
240
|
+
|
|
241
|
+
___
|
|
242
|
+
|
|
243
|
+
### getLocaleParameters
|
|
244
|
+
|
|
245
|
+
▸ **getLocaleParameters**(): `Record`<`string`, `string`\>
|
|
246
|
+
|
|
247
|
+
#### Returns
|
|
248
|
+
|
|
249
|
+
`Record`<`string`, `string`\>
|
|
250
|
+
|
|
251
|
+
#### Overrides
|
|
252
|
+
|
|
253
|
+
[StormError](StormError.md).[getLocaleParameters](StormError.md#getlocaleparameters)
|
|
254
|
+
|
|
255
|
+
#### Defined in
|
|
256
|
+
|
|
257
|
+
[src/DuplicateEntryError.ts:53](https://github.com/breautek/storm/blob/0875c73/src/DuplicateEntryError.ts#L53)
|
|
218
258
|
|
|
219
259
|
___
|
|
220
260
|
|
|
@@ -232,7 +272,7 @@ ___
|
|
|
232
272
|
|
|
233
273
|
#### Defined in
|
|
234
274
|
|
|
235
|
-
[src/DuplicateEntryError.ts:36](https://github.com/breautek/storm/blob/
|
|
275
|
+
[src/DuplicateEntryError.ts:36](https://github.com/breautek/storm/blob/0875c73/src/DuplicateEntryError.ts#L36)
|
|
236
276
|
|
|
237
277
|
___
|
|
238
278
|
|
|
@@ -240,7 +280,7 @@ ___
|
|
|
240
280
|
|
|
241
281
|
▸ **getPrivateDetails**(): `any`
|
|
242
282
|
|
|
243
|
-
Private details are only logged to the server log.
|
|
283
|
+
Private details are only logged to the server log.
|
|
244
284
|
They are kept secret from the client.
|
|
245
285
|
|
|
246
286
|
#### Returns
|
|
@@ -253,7 +293,7 @@ They are kept secret from the client.
|
|
|
253
293
|
|
|
254
294
|
#### Defined in
|
|
255
295
|
|
|
256
|
-
[src/StormError.ts:
|
|
296
|
+
[src/StormError.ts:68](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L68)
|
|
257
297
|
|
|
258
298
|
___
|
|
259
299
|
|
|
@@ -273,7 +313,7 @@ Sends details to the client.
|
|
|
273
313
|
|
|
274
314
|
#### Defined in
|
|
275
315
|
|
|
276
|
-
[src/StormError.ts:
|
|
316
|
+
[src/StormError.ts:60](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L60)
|
|
277
317
|
|
|
278
318
|
___
|
|
279
319
|
|
|
@@ -300,4 +340,4 @@ Create .stack property on a target object
|
|
|
300
340
|
|
|
301
341
|
#### Defined in
|
|
302
342
|
|
|
303
|
-
node_modules/@types/node/globals.d.ts:4
|
|
343
|
+
node_modules/@types/node/ts4.8/globals.d.ts:4
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
- [getErrorResponse](EntityNotFoundError.md#geterrorresponse)
|
|
29
29
|
- [getExitCode](EntityNotFoundError.md#getexitcode)
|
|
30
30
|
- [getHTTPCode](EntityNotFoundError.md#gethttpcode)
|
|
31
|
+
- [getLocaleCode](EntityNotFoundError.md#getlocalecode)
|
|
32
|
+
- [getLocaleParameters](EntityNotFoundError.md#getlocaleparameters)
|
|
31
33
|
- [getMessage](EntityNotFoundError.md#getmessage)
|
|
32
34
|
- [getPrivateDetails](EntityNotFoundError.md#getprivatedetails)
|
|
33
35
|
- [getPublicDetails](EntityNotFoundError.md#getpublicdetails)
|
|
@@ -51,7 +53,7 @@
|
|
|
51
53
|
|
|
52
54
|
#### Defined in
|
|
53
55
|
|
|
54
|
-
[src/EntityNotFoundError.ts:22](https://github.com/breautek/storm/blob/
|
|
56
|
+
[src/EntityNotFoundError.ts:22](https://github.com/breautek/storm/blob/0875c73/src/EntityNotFoundError.ts#L22)
|
|
55
57
|
|
|
56
58
|
## Properties
|
|
57
59
|
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
|
|
66
68
|
#### Defined in
|
|
67
69
|
|
|
68
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
70
|
+
node_modules/typescript/lib/lib.es5.d.ts:1041
|
|
69
71
|
|
|
70
72
|
___
|
|
71
73
|
|
|
@@ -79,7 +81,7 @@ ___
|
|
|
79
81
|
|
|
80
82
|
#### Defined in
|
|
81
83
|
|
|
82
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
84
|
+
node_modules/typescript/lib/lib.es5.d.ts:1040
|
|
83
85
|
|
|
84
86
|
___
|
|
85
87
|
|
|
@@ -93,7 +95,7 @@ ___
|
|
|
93
95
|
|
|
94
96
|
#### Defined in
|
|
95
97
|
|
|
96
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
98
|
+
node_modules/typescript/lib/lib.es5.d.ts:1042
|
|
97
99
|
|
|
98
100
|
___
|
|
99
101
|
|
|
@@ -107,7 +109,9 @@ ___
|
|
|
107
109
|
|
|
108
110
|
Optional override for formatting stack traces
|
|
109
111
|
|
|
110
|
-
**`
|
|
112
|
+
**`See`**
|
|
113
|
+
|
|
114
|
+
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
111
115
|
|
|
112
116
|
##### Parameters
|
|
113
117
|
|
|
@@ -126,7 +130,7 @@ Optional override for formatting stack traces
|
|
|
126
130
|
|
|
127
131
|
#### Defined in
|
|
128
132
|
|
|
129
|
-
node_modules/@types/node/globals.d.ts:11
|
|
133
|
+
node_modules/@types/node/ts4.8/globals.d.ts:11
|
|
130
134
|
|
|
131
135
|
___
|
|
132
136
|
|
|
@@ -140,7 +144,7 @@ ___
|
|
|
140
144
|
|
|
141
145
|
#### Defined in
|
|
142
146
|
|
|
143
|
-
node_modules/@types/node/globals.d.ts:13
|
|
147
|
+
node_modules/@types/node/ts4.8/globals.d.ts:13
|
|
144
148
|
|
|
145
149
|
## Methods
|
|
146
150
|
|
|
@@ -158,7 +162,7 @@ node_modules/@types/node/globals.d.ts:13
|
|
|
158
162
|
|
|
159
163
|
#### Defined in
|
|
160
164
|
|
|
161
|
-
[src/EntityNotFoundError.ts:30](https://github.com/breautek/storm/blob/
|
|
165
|
+
[src/EntityNotFoundError.ts:30](https://github.com/breautek/storm/blob/0875c73/src/EntityNotFoundError.ts#L30)
|
|
162
166
|
|
|
163
167
|
___
|
|
164
168
|
|
|
@@ -176,7 +180,7 @@ ___
|
|
|
176
180
|
|
|
177
181
|
#### Defined in
|
|
178
182
|
|
|
179
|
-
[src/StormError.ts:
|
|
183
|
+
[src/StormError.ts:76](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L76)
|
|
180
184
|
|
|
181
185
|
___
|
|
182
186
|
|
|
@@ -194,7 +198,7 @@ ___
|
|
|
194
198
|
|
|
195
199
|
#### Defined in
|
|
196
200
|
|
|
197
|
-
[src/StormError.ts:
|
|
201
|
+
[src/StormError.ts:97](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L97)
|
|
198
202
|
|
|
199
203
|
___
|
|
200
204
|
|
|
@@ -212,7 +216,43 @@ ___
|
|
|
212
216
|
|
|
213
217
|
#### Defined in
|
|
214
218
|
|
|
215
|
-
[src/EntityNotFoundError.ts:34](https://github.com/breautek/storm/blob/
|
|
219
|
+
[src/EntityNotFoundError.ts:34](https://github.com/breautek/storm/blob/0875c73/src/EntityNotFoundError.ts#L34)
|
|
220
|
+
|
|
221
|
+
___
|
|
222
|
+
|
|
223
|
+
### getLocaleCode
|
|
224
|
+
|
|
225
|
+
▸ **getLocaleCode**(): `string`
|
|
226
|
+
|
|
227
|
+
#### Returns
|
|
228
|
+
|
|
229
|
+
`string`
|
|
230
|
+
|
|
231
|
+
#### Overrides
|
|
232
|
+
|
|
233
|
+
[StormError](StormError.md).[getLocaleCode](StormError.md#getlocalecode)
|
|
234
|
+
|
|
235
|
+
#### Defined in
|
|
236
|
+
|
|
237
|
+
[src/EntityNotFoundError.ts:38](https://github.com/breautek/storm/blob/0875c73/src/EntityNotFoundError.ts#L38)
|
|
238
|
+
|
|
239
|
+
___
|
|
240
|
+
|
|
241
|
+
### getLocaleParameters
|
|
242
|
+
|
|
243
|
+
▸ **getLocaleParameters**(): `Record`<`string`, `string`\>
|
|
244
|
+
|
|
245
|
+
#### Returns
|
|
246
|
+
|
|
247
|
+
`Record`<`string`, `string`\>
|
|
248
|
+
|
|
249
|
+
#### Overrides
|
|
250
|
+
|
|
251
|
+
[StormError](StormError.md).[getLocaleParameters](StormError.md#getlocaleparameters)
|
|
252
|
+
|
|
253
|
+
#### Defined in
|
|
254
|
+
|
|
255
|
+
[src/EntityNotFoundError.ts:42](https://github.com/breautek/storm/blob/0875c73/src/EntityNotFoundError.ts#L42)
|
|
216
256
|
|
|
217
257
|
___
|
|
218
258
|
|
|
@@ -230,7 +270,7 @@ ___
|
|
|
230
270
|
|
|
231
271
|
#### Defined in
|
|
232
272
|
|
|
233
|
-
[src/EntityNotFoundError.ts:26](https://github.com/breautek/storm/blob/
|
|
273
|
+
[src/EntityNotFoundError.ts:26](https://github.com/breautek/storm/blob/0875c73/src/EntityNotFoundError.ts#L26)
|
|
234
274
|
|
|
235
275
|
___
|
|
236
276
|
|
|
@@ -238,7 +278,7 @@ ___
|
|
|
238
278
|
|
|
239
279
|
▸ **getPrivateDetails**(): `any`
|
|
240
280
|
|
|
241
|
-
Private details are only logged to the server log.
|
|
281
|
+
Private details are only logged to the server log.
|
|
242
282
|
They are kept secret from the client.
|
|
243
283
|
|
|
244
284
|
#### Returns
|
|
@@ -251,7 +291,7 @@ They are kept secret from the client.
|
|
|
251
291
|
|
|
252
292
|
#### Defined in
|
|
253
293
|
|
|
254
|
-
[src/StormError.ts:
|
|
294
|
+
[src/StormError.ts:68](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L68)
|
|
255
295
|
|
|
256
296
|
___
|
|
257
297
|
|
|
@@ -271,7 +311,7 @@ Sends details to the client.
|
|
|
271
311
|
|
|
272
312
|
#### Defined in
|
|
273
313
|
|
|
274
|
-
[src/StormError.ts:
|
|
314
|
+
[src/StormError.ts:60](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L60)
|
|
275
315
|
|
|
276
316
|
___
|
|
277
317
|
|
|
@@ -298,4 +338,4 @@ Create .stack property on a target object
|
|
|
298
338
|
|
|
299
339
|
#### Defined in
|
|
300
340
|
|
|
301
|
-
node_modules/@types/node/globals.d.ts:4
|
|
341
|
+
node_modules/@types/node/ts4.8/globals.d.ts:4
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
- [getErrorResponse](ExpiredTokenError.md#geterrorresponse)
|
|
29
29
|
- [getExitCode](ExpiredTokenError.md#getexitcode)
|
|
30
30
|
- [getHTTPCode](ExpiredTokenError.md#gethttpcode)
|
|
31
|
+
- [getLocaleCode](ExpiredTokenError.md#getlocalecode)
|
|
32
|
+
- [getLocaleParameters](ExpiredTokenError.md#getlocaleparameters)
|
|
31
33
|
- [getMessage](ExpiredTokenError.md#getmessage)
|
|
32
34
|
- [getPrivateDetails](ExpiredTokenError.md#getprivatedetails)
|
|
33
35
|
- [getPublicDetails](ExpiredTokenError.md#getpublicdetails)
|
|
@@ -51,7 +53,7 @@
|
|
|
51
53
|
|
|
52
54
|
#### Defined in
|
|
53
55
|
|
|
54
|
-
[src/ExpiredTokenError.ts:23](https://github.com/breautek/storm/blob/
|
|
56
|
+
[src/ExpiredTokenError.ts:23](https://github.com/breautek/storm/blob/0875c73/src/ExpiredTokenError.ts#L23)
|
|
55
57
|
|
|
56
58
|
## Properties
|
|
57
59
|
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
|
|
66
68
|
#### Defined in
|
|
67
69
|
|
|
68
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
70
|
+
node_modules/typescript/lib/lib.es5.d.ts:1041
|
|
69
71
|
|
|
70
72
|
___
|
|
71
73
|
|
|
@@ -79,7 +81,7 @@ ___
|
|
|
79
81
|
|
|
80
82
|
#### Defined in
|
|
81
83
|
|
|
82
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
84
|
+
node_modules/typescript/lib/lib.es5.d.ts:1040
|
|
83
85
|
|
|
84
86
|
___
|
|
85
87
|
|
|
@@ -93,7 +95,7 @@ ___
|
|
|
93
95
|
|
|
94
96
|
#### Defined in
|
|
95
97
|
|
|
96
|
-
node_modules/typescript/lib/lib.es5.d.ts:
|
|
98
|
+
node_modules/typescript/lib/lib.es5.d.ts:1042
|
|
97
99
|
|
|
98
100
|
___
|
|
99
101
|
|
|
@@ -107,7 +109,9 @@ ___
|
|
|
107
109
|
|
|
108
110
|
Optional override for formatting stack traces
|
|
109
111
|
|
|
110
|
-
**`
|
|
112
|
+
**`See`**
|
|
113
|
+
|
|
114
|
+
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
111
115
|
|
|
112
116
|
##### Parameters
|
|
113
117
|
|
|
@@ -126,7 +130,7 @@ Optional override for formatting stack traces
|
|
|
126
130
|
|
|
127
131
|
#### Defined in
|
|
128
132
|
|
|
129
|
-
node_modules/@types/node/globals.d.ts:11
|
|
133
|
+
node_modules/@types/node/ts4.8/globals.d.ts:11
|
|
130
134
|
|
|
131
135
|
___
|
|
132
136
|
|
|
@@ -140,7 +144,7 @@ ___
|
|
|
140
144
|
|
|
141
145
|
#### Defined in
|
|
142
146
|
|
|
143
|
-
node_modules/@types/node/globals.d.ts:13
|
|
147
|
+
node_modules/@types/node/ts4.8/globals.d.ts:13
|
|
144
148
|
|
|
145
149
|
## Methods
|
|
146
150
|
|
|
@@ -158,7 +162,7 @@ node_modules/@types/node/globals.d.ts:13
|
|
|
158
162
|
|
|
159
163
|
#### Defined in
|
|
160
164
|
|
|
161
|
-
[src/ExpiredTokenError.ts:31](https://github.com/breautek/storm/blob/
|
|
165
|
+
[src/ExpiredTokenError.ts:31](https://github.com/breautek/storm/blob/0875c73/src/ExpiredTokenError.ts#L31)
|
|
162
166
|
|
|
163
167
|
___
|
|
164
168
|
|
|
@@ -176,7 +180,7 @@ ___
|
|
|
176
180
|
|
|
177
181
|
#### Defined in
|
|
178
182
|
|
|
179
|
-
[src/StormError.ts:
|
|
183
|
+
[src/StormError.ts:76](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L76)
|
|
180
184
|
|
|
181
185
|
___
|
|
182
186
|
|
|
@@ -194,7 +198,7 @@ ___
|
|
|
194
198
|
|
|
195
199
|
#### Defined in
|
|
196
200
|
|
|
197
|
-
[src/StormError.ts:
|
|
201
|
+
[src/StormError.ts:97](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L97)
|
|
198
202
|
|
|
199
203
|
___
|
|
200
204
|
|
|
@@ -212,7 +216,43 @@ ___
|
|
|
212
216
|
|
|
213
217
|
#### Defined in
|
|
214
218
|
|
|
215
|
-
[src/ExpiredTokenError.ts:35](https://github.com/breautek/storm/blob/
|
|
219
|
+
[src/ExpiredTokenError.ts:35](https://github.com/breautek/storm/blob/0875c73/src/ExpiredTokenError.ts#L35)
|
|
220
|
+
|
|
221
|
+
___
|
|
222
|
+
|
|
223
|
+
### getLocaleCode
|
|
224
|
+
|
|
225
|
+
▸ **getLocaleCode**(): `string`
|
|
226
|
+
|
|
227
|
+
#### Returns
|
|
228
|
+
|
|
229
|
+
`string`
|
|
230
|
+
|
|
231
|
+
#### Overrides
|
|
232
|
+
|
|
233
|
+
[StormError](StormError.md).[getLocaleCode](StormError.md#getlocalecode)
|
|
234
|
+
|
|
235
|
+
#### Defined in
|
|
236
|
+
|
|
237
|
+
[src/ExpiredTokenError.ts:39](https://github.com/breautek/storm/blob/0875c73/src/ExpiredTokenError.ts#L39)
|
|
238
|
+
|
|
239
|
+
___
|
|
240
|
+
|
|
241
|
+
### getLocaleParameters
|
|
242
|
+
|
|
243
|
+
▸ **getLocaleParameters**(): `Record`<`string`, `string`\>
|
|
244
|
+
|
|
245
|
+
#### Returns
|
|
246
|
+
|
|
247
|
+
`Record`<`string`, `string`\>
|
|
248
|
+
|
|
249
|
+
#### Inherited from
|
|
250
|
+
|
|
251
|
+
[StormError](StormError.md).[getLocaleParameters](StormError.md#getlocaleparameters)
|
|
252
|
+
|
|
253
|
+
#### Defined in
|
|
254
|
+
|
|
255
|
+
[src/StormError.ts:93](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L93)
|
|
216
256
|
|
|
217
257
|
___
|
|
218
258
|
|
|
@@ -230,7 +270,7 @@ ___
|
|
|
230
270
|
|
|
231
271
|
#### Defined in
|
|
232
272
|
|
|
233
|
-
[src/ExpiredTokenError.ts:27](https://github.com/breautek/storm/blob/
|
|
273
|
+
[src/ExpiredTokenError.ts:27](https://github.com/breautek/storm/blob/0875c73/src/ExpiredTokenError.ts#L27)
|
|
234
274
|
|
|
235
275
|
___
|
|
236
276
|
|
|
@@ -238,7 +278,7 @@ ___
|
|
|
238
278
|
|
|
239
279
|
▸ **getPrivateDetails**(): `any`
|
|
240
280
|
|
|
241
|
-
Private details are only logged to the server log.
|
|
281
|
+
Private details are only logged to the server log.
|
|
242
282
|
They are kept secret from the client.
|
|
243
283
|
|
|
244
284
|
#### Returns
|
|
@@ -251,7 +291,7 @@ They are kept secret from the client.
|
|
|
251
291
|
|
|
252
292
|
#### Defined in
|
|
253
293
|
|
|
254
|
-
[src/StormError.ts:
|
|
294
|
+
[src/StormError.ts:68](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L68)
|
|
255
295
|
|
|
256
296
|
___
|
|
257
297
|
|
|
@@ -271,7 +311,7 @@ Sends details to the client.
|
|
|
271
311
|
|
|
272
312
|
#### Defined in
|
|
273
313
|
|
|
274
|
-
[src/StormError.ts:
|
|
314
|
+
[src/StormError.ts:60](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L60)
|
|
275
315
|
|
|
276
316
|
___
|
|
277
317
|
|
|
@@ -298,4 +338,4 @@ Create .stack property on a target object
|
|
|
298
338
|
|
|
299
339
|
#### Defined in
|
|
300
340
|
|
|
301
|
-
node_modules/@types/node/globals.d.ts:4
|
|
341
|
+
node_modules/@types/node/ts4.8/globals.d.ts:4
|
package/docs/classes/Handler.md
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
#### Defined in
|
|
68
68
|
|
|
69
|
-
[src/Handler.ts:72](https://github.com/breautek/storm/blob/
|
|
69
|
+
[src/Handler.ts:72](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L72)
|
|
70
70
|
|
|
71
71
|
## Methods
|
|
72
72
|
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
|
|
87
87
|
#### Defined in
|
|
88
88
|
|
|
89
|
-
[src/Handler.ts:215](https://github.com/breautek/storm/blob/
|
|
89
|
+
[src/Handler.ts:215](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L215)
|
|
90
90
|
|
|
91
91
|
___
|
|
92
92
|
|
|
@@ -106,7 +106,7 @@ ___
|
|
|
106
106
|
|
|
107
107
|
#### Defined in
|
|
108
108
|
|
|
109
|
-
[src/Handler.ts:203](https://github.com/breautek/storm/blob/
|
|
109
|
+
[src/Handler.ts:203](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L203)
|
|
110
110
|
|
|
111
111
|
___
|
|
112
112
|
|
|
@@ -120,7 +120,7 @@ ___
|
|
|
120
120
|
|
|
121
121
|
#### Defined in
|
|
122
122
|
|
|
123
|
-
[src/Handler.ts:81](https://github.com/breautek/storm/blob/
|
|
123
|
+
[src/Handler.ts:81](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L81)
|
|
124
124
|
|
|
125
125
|
___
|
|
126
126
|
|
|
@@ -142,7 +142,7 @@ ___
|
|
|
142
142
|
|
|
143
143
|
#### Defined in
|
|
144
144
|
|
|
145
|
-
[src/Handler.ts:137](https://github.com/breautek/storm/blob/
|
|
145
|
+
[src/Handler.ts:137](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L137)
|
|
146
146
|
|
|
147
147
|
___
|
|
148
148
|
|
|
@@ -162,7 +162,7 @@ ___
|
|
|
162
162
|
|
|
163
163
|
#### Defined in
|
|
164
164
|
|
|
165
|
-
[src/Handler.ts:207](https://github.com/breautek/storm/blob/
|
|
165
|
+
[src/Handler.ts:207](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L207)
|
|
166
166
|
|
|
167
167
|
___
|
|
168
168
|
|
|
@@ -182,7 +182,7 @@ ___
|
|
|
182
182
|
|
|
183
183
|
#### Defined in
|
|
184
184
|
|
|
185
|
-
[src/Handler.ts:211](https://github.com/breautek/storm/blob/
|
|
185
|
+
[src/Handler.ts:211](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L211)
|
|
186
186
|
|
|
187
187
|
___
|
|
188
188
|
|
|
@@ -202,7 +202,7 @@ ___
|
|
|
202
202
|
|
|
203
203
|
#### Defined in
|
|
204
204
|
|
|
205
|
-
[src/Handler.ts:147](https://github.com/breautek/storm/blob/
|
|
205
|
+
[src/Handler.ts:147](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L147)
|
|
206
206
|
|
|
207
207
|
___
|
|
208
208
|
|
|
@@ -223,7 +223,7 @@ ___
|
|
|
223
223
|
|
|
224
224
|
#### Defined in
|
|
225
225
|
|
|
226
|
-
[src/Handler.ts:190](https://github.com/breautek/storm/blob/
|
|
226
|
+
[src/Handler.ts:190](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L190)
|
|
227
227
|
|
|
228
228
|
___
|
|
229
229
|
|
|
@@ -244,7 +244,7 @@ ___
|
|
|
244
244
|
|
|
245
245
|
#### Defined in
|
|
246
246
|
|
|
247
|
-
[src/Handler.ts:151](https://github.com/breautek/storm/blob/
|
|
247
|
+
[src/Handler.ts:151](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L151)
|
|
248
248
|
|
|
249
249
|
___
|
|
250
250
|
|
|
@@ -264,7 +264,7 @@ ___
|
|
|
264
264
|
|
|
265
265
|
#### Defined in
|
|
266
266
|
|
|
267
|
-
[src/Handler.ts:85](https://github.com/breautek/storm/blob/
|
|
267
|
+
[src/Handler.ts:85](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L85)
|
|
268
268
|
|
|
269
269
|
___
|
|
270
270
|
|
|
@@ -278,7 +278,7 @@ ___
|
|
|
278
278
|
|
|
279
279
|
#### Defined in
|
|
280
280
|
|
|
281
|
-
[src/Handler.ts:77](https://github.com/breautek/storm/blob/
|
|
281
|
+
[src/Handler.ts:77](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L77)
|
|
282
282
|
|
|
283
283
|
___
|
|
284
284
|
|
|
@@ -299,7 +299,7 @@ ___
|
|
|
299
299
|
|
|
300
300
|
#### Defined in
|
|
301
301
|
|
|
302
|
-
[src/Handler.ts:177](https://github.com/breautek/storm/blob/
|
|
302
|
+
[src/Handler.ts:177](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L177)
|
|
303
303
|
|
|
304
304
|
___
|
|
305
305
|
|
|
@@ -320,4 +320,4 @@ ___
|
|
|
320
320
|
|
|
321
321
|
#### Defined in
|
|
322
322
|
|
|
323
|
-
[src/Handler.ts:164](https://github.com/breautek/storm/blob/
|
|
323
|
+
[src/Handler.ts:164](https://github.com/breautek/storm/blob/0875c73/src/Handler.ts#L164)
|