@breautek/storm 5.0.2 → 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 +14 -0
- package/bt-config-defaults.json +0 -1
- package/bt-config-sample.jsonc +41 -7
- package/docs/assets/highlight.css +13 -6
- package/docs/assets/search.js +1 -1
- package/docs/classes/Application.html +123 -80
- package/docs/classes/BackendAuthenticationMiddleware.html +6 -4
- package/docs/classes/CORSMiddleware.html +10 -8
- package/docs/classes/ConfigLoader.html +5 -3
- package/docs/classes/Database.html +16 -14
- package/docs/classes/DatabaseCastObject.html +7 -5
- package/docs/classes/DatabaseConnection.html +23 -21
- package/docs/classes/DatabaseQueryError.html +14 -12
- package/docs/classes/DeadLockError.html +14 -12
- package/docs/classes/DiskSpaceError.html +14 -12
- package/docs/classes/DropTemporaryTableQuery.html +12 -10
- package/docs/classes/DuplicateEntryError.html +14 -12
- package/docs/classes/EntityNotFoundError.html +14 -12
- package/docs/classes/ExpiredTokenError.html +14 -12
- package/docs/classes/Handler.html +17 -15
- package/docs/classes/InternalError.html +14 -12
- package/docs/classes/InvalidCredentialsError.html +14 -12
- package/docs/classes/InvalidValueError.html +14 -12
- package/docs/classes/LineString.html +8 -6
- package/docs/classes/LockWaitTimeoutError.html +14 -12
- package/docs/classes/ManagedDatabaseConnection.html +23 -21
- package/docs/classes/Middleware.html +7 -5
- package/docs/classes/MissingConfigError.html +14 -12
- package/docs/classes/MissingParameterError.html +14 -12
- package/docs/classes/MySQLConnection.html +24 -22
- package/docs/classes/MySQLDatabase.html +17 -15
- package/docs/classes/NotImplementedError.html +14 -12
- package/docs/classes/Point.html +8 -6
- package/docs/classes/Polygon.html +8 -6
- package/docs/classes/Query.html +12 -10
- package/docs/classes/RawError.html +14 -12
- package/docs/classes/RawQuery.html +12 -10
- package/docs/classes/Request.html +22 -20
- package/docs/classes/Response.html +15 -13
- package/docs/classes/ResponseData.html +11 -9
- package/docs/classes/ServiceProvider.html +19 -17
- package/docs/classes/ServiceResponse.html +9 -7
- package/docs/classes/SetSessionVariableQuery.html +12 -10
- package/docs/classes/StormError.html +14 -12
- package/docs/classes/TemporaryTableQuery.html +12 -10
- package/docs/classes/Token.html +6 -4
- package/docs/classes/TokenManager.html +8 -6
- package/docs/classes/Transaction.html +10 -8
- package/docs/classes/UnauthorizedAccessError.html +14 -12
- package/docs/enums/ErrorCode.html +13 -11
- package/docs/enums/ExitCode.html +6 -4
- package/docs/enums/HTTPMethod.html +8 -6
- package/docs/enums/IsolationLevel.html +8 -6
- package/docs/enums/JWTError.html +6 -4
- package/docs/enums/StatusCode.html +52 -50
- package/docs/functions/formidable-1.html +3 -1
- package/docs/functions/getInstance.html +4 -2
- package/docs/index.html +6 -2
- package/docs/interfaces/IAdditionalErrorDetails.html +4 -2
- package/docs/interfaces/IAuthTokenData.html +3 -1
- 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 +14 -12
- package/docs/interfaces/IDatabaseConfig.html +10 -8
- package/docs/interfaces/IDatabaseConnection.html +18 -16
- package/docs/interfaces/IErrorResponse.html +9 -7
- package/docs/interfaces/IFormData.html +6 -4
- package/docs/interfaces/IHandler.html +5 -3
- package/docs/interfaces/IInsertQueryResult.html +7 -5
- package/docs/interfaces/IJWTVerifyOptions.html +5 -3
- package/docs/interfaces/IParameterMap.html +4 -2
- package/docs/interfaces/IQueryable.html +9 -7
- package/docs/interfaces/IRequestResponse.html +6 -4
- package/docs/interfaces/IServiceHeaders.html +4 -2
- package/docs/interfaces/ISetSessionVariableQueryInput.html +6 -4
- package/docs/interfaces/ITemporaryTableQueryInput.html +6 -4
- package/docs/interfaces/IUpdateQueryResult.html +6 -4
- package/docs/interfaces/formidable.EmitData.html +3 -1
- package/docs/interfaces/formidable.EventData.html +3 -1
- package/docs/interfaces/formidable.Fields.html +3 -1
- package/docs/interfaces/formidable.File.html +3 -1
- package/docs/interfaces/formidable.FileJSON.html +3 -1
- package/docs/interfaces/formidable.Files.html +3 -1
- package/docs/interfaces/formidable.Options.html +3 -1
- package/docs/interfaces/formidable.Part.html +30 -28
- package/docs/modules/formidable.html +3 -1
- package/docs/types/IDeleteQueryResult.html +4 -2
- package/docs/types/IHandlerError.html +4 -2
- package/docs/types/IHandlerResponse.html +4 -2
- package/docs/types/TCoordinate.html +4 -2
- package/docs/types/formidable.BufferEncoding.html +3 -1
- package/docs/types/formidable.DefaultOptions.html +3 -1
- package/docs/types/formidable.EnabledPlugins.html +3 -1
- package/docs/types/formidable.EventNames.html +3 -1
- package/docs/types/formidable.MappedParsers.html +3 -1
- package/docs/types/formidable.Plugin.html +3 -1
- package/docs/types/formidable.PluginFunction.html +3 -1
- package/docs/types/formidable.Plugins.html +3 -1
- 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/api.d.ts +1 -2
- package/lib/api.js +2 -4
- package/lib/api.js.map +1 -1
- package/package.json +6 -4
- package/src/Application.ts +131 -68
- package/src/IConfig.ts +18 -2
- package/src/MySQLConnection.ts +2 -1
- package/src/api.ts +6 -2
- package/docs/classes/DumpStream.html +0 -161
- 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
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,22 @@ 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
|
+
#### [v6.0.1](https://github.com/breautek/storm/compare/v6.0.0...v6.0.1)
|
|
8
|
+
|
|
9
|
+
- added start api [`78cd5a3`](https://github.com/breautek/storm/commit/78cd5a3c6c2650a62d7ca28bd37a72aaaadbcc44)
|
|
10
|
+
|
|
11
|
+
### [v6.0.0](https://github.com/breautek/storm/compare/v5.0.2...v6.0.0)
|
|
12
|
+
|
|
13
|
+
> 26 May 2023
|
|
14
|
+
|
|
15
|
+
- breaking: log changes [`44c42ee`](https://github.com/breautek/storm/commit/44c42ee4e15661e2fbfbeeb0a7d0554a5ee7d712)
|
|
16
|
+
- fix logger pin [`4f1bab2`](https://github.com/breautek/storm/commit/4f1bab24b28e749114dbea03b5b4f32bcb76f28e)
|
|
17
|
+
- noted 6.x breaking changes [`e7472db`](https://github.com/breautek/storm/commit/e7472db172f7a82fcb479bd014a60802414ab27f)
|
|
18
|
+
|
|
7
19
|
#### [v5.0.2](https://github.com/breautek/storm/compare/v5.0.1...v5.0.2)
|
|
8
20
|
|
|
21
|
+
> 17 May 2023
|
|
22
|
+
|
|
9
23
|
- Updated Typescript & typedoc [`5f3bd46`](https://github.com/breautek/storm/commit/5f3bd4616cde0735d7424171b455f933174f7a30)
|
|
10
24
|
- deproll [`b5b41eb`](https://github.com/breautek/storm/commit/b5b41eba88f4002390c10fe1ec897544942f03b9)
|
|
11
25
|
- Added test for transaction for when StartTransaction fails [`b25eae7`](https://github.com/breautek/storm/commit/b25eae7b280160685e0f186a4faf98836ea2e86b)
|
package/bt-config-defaults.json
CHANGED
package/bt-config-sample.jsonc
CHANGED
|
@@ -44,17 +44,51 @@
|
|
|
44
44
|
*/
|
|
45
45
|
"level": "info",
|
|
46
46
|
|
|
47
|
-
/*
|
|
48
|
-
@type string
|
|
49
|
-
@description Location for log output
|
|
50
|
-
*/
|
|
51
|
-
"directory": "./",
|
|
52
|
-
|
|
53
47
|
/*
|
|
54
48
|
@type Array<string>
|
|
55
49
|
@description Suppresses logging to log messages matching the listed regex patterns
|
|
56
50
|
*/
|
|
57
|
-
"filters": ["/TokenExpiredError/g"]
|
|
51
|
+
"filters": ["/TokenExpiredError/g"],
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
Object containing cloudwatch settings for cloudwatch transport
|
|
55
|
+
*/
|
|
56
|
+
"cloudwatch": {
|
|
57
|
+
/**
|
|
58
|
+
@description The cloudwatch region
|
|
59
|
+
@type string
|
|
60
|
+
*/
|
|
61
|
+
"region": "string",
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
"credentials": {
|
|
65
|
+
/**
|
|
66
|
+
@description The access key
|
|
67
|
+
@type string
|
|
68
|
+
*/
|
|
69
|
+
"accessKeyId": "string",
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
@description The secret key
|
|
73
|
+
@type string
|
|
74
|
+
*/
|
|
75
|
+
"secretAccessKey": "string"
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
"stream": {
|
|
79
|
+
/**
|
|
80
|
+
@description The log group
|
|
81
|
+
@type string
|
|
82
|
+
*/
|
|
83
|
+
"group": "string",
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
@description The stream name
|
|
87
|
+
@type string
|
|
88
|
+
*/
|
|
89
|
+
"name": "string"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
58
92
|
},
|
|
59
93
|
|
|
60
94
|
/*
|
|
@@ -11,12 +11,14 @@
|
|
|
11
11
|
--dark-hl-4: #9CDCFE;
|
|
12
12
|
--light-hl-5: #795E26;
|
|
13
13
|
--dark-hl-5: #DCDCAA;
|
|
14
|
-
--light-hl-6: #
|
|
15
|
-
--dark-hl-6: #
|
|
16
|
-
--light-hl-7: #
|
|
17
|
-
--dark-hl-7: #
|
|
18
|
-
--light-hl-8: #
|
|
19
|
-
--dark-hl-8: #
|
|
14
|
+
--light-hl-6: #AF00DB;
|
|
15
|
+
--dark-hl-6: #C586C0;
|
|
16
|
+
--light-hl-7: #0070C1;
|
|
17
|
+
--dark-hl-7: #4FC1FF;
|
|
18
|
+
--light-hl-8: #008000;
|
|
19
|
+
--dark-hl-8: #6A9955;
|
|
20
|
+
--light-hl-9: #267F99;
|
|
21
|
+
--dark-hl-9: #4EC9B0;
|
|
20
22
|
--light-code-background: #FFFFFF;
|
|
21
23
|
--dark-code-background: #1E1E1E;
|
|
22
24
|
}
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
--hl-6: var(--light-hl-6);
|
|
32
34
|
--hl-7: var(--light-hl-7);
|
|
33
35
|
--hl-8: var(--light-hl-8);
|
|
36
|
+
--hl-9: var(--light-hl-9);
|
|
34
37
|
--code-background: var(--light-code-background);
|
|
35
38
|
} }
|
|
36
39
|
|
|
@@ -44,6 +47,7 @@
|
|
|
44
47
|
--hl-6: var(--dark-hl-6);
|
|
45
48
|
--hl-7: var(--dark-hl-7);
|
|
46
49
|
--hl-8: var(--dark-hl-8);
|
|
50
|
+
--hl-9: var(--dark-hl-9);
|
|
47
51
|
--code-background: var(--dark-code-background);
|
|
48
52
|
} }
|
|
49
53
|
|
|
@@ -57,6 +61,7 @@
|
|
|
57
61
|
--hl-6: var(--light-hl-6);
|
|
58
62
|
--hl-7: var(--light-hl-7);
|
|
59
63
|
--hl-8: var(--light-hl-8);
|
|
64
|
+
--hl-9: var(--light-hl-9);
|
|
60
65
|
--code-background: var(--light-code-background);
|
|
61
66
|
}
|
|
62
67
|
|
|
@@ -70,6 +75,7 @@
|
|
|
70
75
|
--hl-6: var(--dark-hl-6);
|
|
71
76
|
--hl-7: var(--dark-hl-7);
|
|
72
77
|
--hl-8: var(--dark-hl-8);
|
|
78
|
+
--hl-9: var(--dark-hl-9);
|
|
73
79
|
--code-background: var(--dark-code-background);
|
|
74
80
|
}
|
|
75
81
|
|
|
@@ -82,4 +88,5 @@
|
|
|
82
88
|
.hl-6 { color: var(--hl-6); }
|
|
83
89
|
.hl-7 { color: var(--hl-7); }
|
|
84
90
|
.hl-8 { color: var(--hl-8); }
|
|
91
|
+
.hl-9 { color: var(--hl-9); }
|
|
85
92
|
pre, code { background: var(--code-background); }
|