@breautek/storm 5.0.2 → 6.0.2

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.
Files changed (128) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/bt-config-defaults.json +0 -1
  3. package/bt-config-sample.jsonc +41 -7
  4. package/docs/assets/highlight.css +13 -6
  5. package/docs/assets/search.js +1 -1
  6. package/docs/classes/Application.html +142 -84
  7. package/docs/classes/BackendAuthenticationMiddleware.html +6 -4
  8. package/docs/classes/CORSMiddleware.html +10 -8
  9. package/docs/classes/ConfigLoader.html +5 -3
  10. package/docs/classes/Database.html +16 -14
  11. package/docs/classes/DatabaseCastObject.html +7 -5
  12. package/docs/classes/DatabaseConnection.html +23 -21
  13. package/docs/classes/DatabaseQueryError.html +14 -12
  14. package/docs/classes/DeadLockError.html +14 -12
  15. package/docs/classes/DiskSpaceError.html +14 -12
  16. package/docs/classes/DropTemporaryTableQuery.html +12 -10
  17. package/docs/classes/DuplicateEntryError.html +14 -12
  18. package/docs/classes/EntityNotFoundError.html +14 -12
  19. package/docs/classes/ExpiredTokenError.html +14 -12
  20. package/docs/classes/Handler.html +17 -15
  21. package/docs/classes/InternalError.html +14 -12
  22. package/docs/classes/InvalidCredentialsError.html +14 -12
  23. package/docs/classes/InvalidValueError.html +14 -12
  24. package/docs/classes/LineString.html +8 -6
  25. package/docs/classes/LockWaitTimeoutError.html +14 -12
  26. package/docs/classes/ManagedDatabaseConnection.html +23 -21
  27. package/docs/classes/Middleware.html +7 -5
  28. package/docs/classes/MissingConfigError.html +14 -12
  29. package/docs/classes/MissingParameterError.html +14 -12
  30. package/docs/classes/MySQLConnection.html +24 -22
  31. package/docs/classes/MySQLDatabase.html +17 -15
  32. package/docs/classes/NotImplementedError.html +14 -12
  33. package/docs/classes/Point.html +8 -6
  34. package/docs/classes/Polygon.html +8 -6
  35. package/docs/classes/Query.html +12 -10
  36. package/docs/classes/RawError.html +14 -12
  37. package/docs/classes/RawQuery.html +12 -10
  38. package/docs/classes/Request.html +22 -20
  39. package/docs/classes/Response.html +15 -13
  40. package/docs/classes/ResponseData.html +11 -9
  41. package/docs/classes/ServiceProvider.html +19 -17
  42. package/docs/classes/ServiceResponse.html +9 -7
  43. package/docs/classes/SetSessionVariableQuery.html +12 -10
  44. package/docs/classes/StormError.html +14 -12
  45. package/docs/classes/TemporaryTableQuery.html +12 -10
  46. package/docs/classes/Token.html +6 -4
  47. package/docs/classes/TokenManager.html +8 -6
  48. package/docs/classes/Transaction.html +10 -8
  49. package/docs/classes/UnauthorizedAccessError.html +14 -12
  50. package/docs/enums/ErrorCode.html +13 -11
  51. package/docs/enums/ExitCode.html +6 -4
  52. package/docs/enums/HTTPMethod.html +8 -6
  53. package/docs/enums/IsolationLevel.html +8 -6
  54. package/docs/enums/JWTError.html +6 -4
  55. package/docs/enums/StatusCode.html +52 -50
  56. package/docs/functions/formidable-1.html +3 -1
  57. package/docs/functions/getInstance.html +7 -2
  58. package/docs/index.html +6 -2
  59. package/docs/interfaces/IAdditionalErrorDetails.html +4 -2
  60. package/docs/interfaces/IAuthTokenData.html +3 -1
  61. package/docs/interfaces/ICloudwatchConfig.html +174 -0
  62. package/docs/interfaces/ICloudwatchCredentials.html +167 -0
  63. package/docs/interfaces/ICloudwatchStreamConfig.html +167 -0
  64. package/docs/interfaces/IConfig.html +14 -12
  65. package/docs/interfaces/IDatabaseConfig.html +10 -8
  66. package/docs/interfaces/IDatabaseConnection.html +18 -16
  67. package/docs/interfaces/IErrorResponse.html +9 -7
  68. package/docs/interfaces/IFormData.html +6 -4
  69. package/docs/interfaces/IHandler.html +5 -3
  70. package/docs/interfaces/IInsertQueryResult.html +7 -5
  71. package/docs/interfaces/IJWTVerifyOptions.html +5 -3
  72. package/docs/interfaces/IParameterMap.html +4 -2
  73. package/docs/interfaces/IQueryable.html +9 -7
  74. package/docs/interfaces/IRequestResponse.html +6 -4
  75. package/docs/interfaces/IServiceHeaders.html +4 -2
  76. package/docs/interfaces/ISetSessionVariableQueryInput.html +6 -4
  77. package/docs/interfaces/ITemporaryTableQueryInput.html +6 -4
  78. package/docs/interfaces/IUpdateQueryResult.html +6 -4
  79. package/docs/interfaces/formidable.EmitData.html +3 -1
  80. package/docs/interfaces/formidable.EventData.html +3 -1
  81. package/docs/interfaces/formidable.Fields.html +3 -1
  82. package/docs/interfaces/formidable.File.html +3 -1
  83. package/docs/interfaces/formidable.FileJSON.html +3 -1
  84. package/docs/interfaces/formidable.Files.html +3 -1
  85. package/docs/interfaces/formidable.Options.html +3 -1
  86. package/docs/interfaces/formidable.Part.html +30 -28
  87. package/docs/modules/formidable.html +3 -1
  88. package/docs/types/IDeleteQueryResult.html +4 -2
  89. package/docs/types/IHandlerError.html +4 -2
  90. package/docs/types/IHandlerResponse.html +4 -2
  91. package/docs/types/TCoordinate.html +4 -2
  92. package/docs/types/formidable.BufferEncoding.html +3 -1
  93. package/docs/types/formidable.DefaultOptions.html +3 -1
  94. package/docs/types/formidable.EnabledPlugins.html +3 -1
  95. package/docs/types/formidable.EventNames.html +3 -1
  96. package/docs/types/formidable.MappedParsers.html +3 -1
  97. package/docs/types/formidable.Plugin.html +3 -1
  98. package/docs/types/formidable.PluginFunction.html +3 -1
  99. package/docs/types/formidable.Plugins.html +3 -1
  100. package/lib/Application.d.ts +7 -3
  101. package/lib/Application.js +108 -63
  102. package/lib/Application.js.map +1 -1
  103. package/lib/Handler.js +0 -1
  104. package/lib/Handler.js.map +1 -1
  105. package/lib/IConfig.d.ts +15 -2
  106. package/lib/MySQLConnection.js +3 -3
  107. package/lib/MySQLConnection.js.map +1 -1
  108. package/lib/StormError.js.map +1 -1
  109. package/lib/api.d.ts +1 -2
  110. package/lib/api.js +2 -4
  111. package/lib/api.js.map +1 -1
  112. package/lib/instance.d.ts +8 -0
  113. package/lib/instance.js +8 -0
  114. package/lib/instance.js.map +1 -1
  115. package/package.json +11 -9
  116. package/src/Application.ts +140 -72
  117. package/src/BackendAuthenticationMiddleware.ts +2 -2
  118. package/src/Handler.ts +2 -3
  119. package/src/IConfig.ts +18 -2
  120. package/src/MySQLConnection.ts +3 -2
  121. package/src/StormError.ts +2 -2
  122. package/src/api.ts +6 -2
  123. package/src/instance.ts +8 -0
  124. package/docs/classes/DumpStream.html +0 -161
  125. package/lib/DumpStream.d.ts +0 -6
  126. package/lib/DumpStream.js +0 -28
  127. package/lib/DumpStream.js.map +0 -1
  128. package/src/DumpStream.ts +0 -28
package/CHANGELOG.md CHANGED
@@ -4,8 +4,29 @@ 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.2](https://github.com/breautek/storm/compare/v6.0.1...v6.0.2)
8
+
9
+ - deproll [`4c09a91`](https://github.com/breautek/storm/commit/4c09a913bb856ae16bb7e50b525a4d7a3be7e7d3)
10
+ - fix logger typings to accept the base logger class & returned a logger factory method that can be overrided on the Application [`50d4643`](https://github.com/breautek/storm/commit/50d4643ad99dea95655faea4f16432ddb8746080)
11
+
12
+ #### [v6.0.1](https://github.com/breautek/storm/compare/v6.0.0...v6.0.1)
13
+
14
+ > 26 May 2023
15
+
16
+ - added start api [`78cd5a3`](https://github.com/breautek/storm/commit/78cd5a3c6c2650a62d7ca28bd37a72aaaadbcc44)
17
+
18
+ ### [v6.0.0](https://github.com/breautek/storm/compare/v5.0.2...v6.0.0)
19
+
20
+ > 26 May 2023
21
+
22
+ - breaking: log changes [`44c42ee`](https://github.com/breautek/storm/commit/44c42ee4e15661e2fbfbeeb0a7d0554a5ee7d712)
23
+ - fix logger pin [`4f1bab2`](https://github.com/breautek/storm/commit/4f1bab24b28e749114dbea03b5b4f32bcb76f28e)
24
+ - noted 6.x breaking changes [`e7472db`](https://github.com/breautek/storm/commit/e7472db172f7a82fcb479bd014a60802414ab27f)
25
+
7
26
  #### [v5.0.2](https://github.com/breautek/storm/compare/v5.0.1...v5.0.2)
8
27
 
28
+ > 17 May 2023
29
+
9
30
  - Updated Typescript & typedoc [`5f3bd46`](https://github.com/breautek/storm/commit/5f3bd4616cde0735d7424171b455f933174f7a30)
10
31
  - deproll [`b5b41eb`](https://github.com/breautek/storm/commit/b5b41eba88f4002390c10fe1ec897544942f03b9)
11
32
  - Added test for transaction for when StartTransaction fails [`b25eae7`](https://github.com/breautek/storm/commit/b25eae7b280160685e0f186a4faf98836ea2e86b)
@@ -8,7 +8,6 @@
8
8
 
9
9
  "log": {
10
10
  "level": "info",
11
- "directory": null,
12
11
  "filters": ["/TokenExpiredError/g"]
13
12
  },
14
13
 
@@ -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: #0070C1;
15
- --dark-hl-6: #4FC1FF;
16
- --light-hl-7: #008000;
17
- --dark-hl-7: #6A9955;
18
- --light-hl-8: #AF00DB;
19
- --dark-hl-8: #C586C0;
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); }