@breautek/storm 4.0.0 → 4.2.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.
Files changed (217) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/bt-config-sample.jsonc +1 -1
  3. package/docs/README.md +8 -6
  4. package/docs/classes/Application.md +30 -30
  5. package/docs/classes/BackendAuthenticationMiddleware.md +2 -2
  6. package/docs/classes/CORSMiddleware.md +6 -6
  7. package/docs/classes/ConfigLoader.md +1 -1
  8. package/docs/classes/Database.md +12 -12
  9. package/docs/classes/DatabaseConnection.md +19 -19
  10. package/docs/classes/DatabaseQueryError.md +11 -11
  11. package/docs/classes/DiskSpaceError.md +11 -11
  12. package/docs/classes/DropTemporaryTableQuery.md +16 -10
  13. package/docs/classes/DumpStream.md +1 -1
  14. package/docs/classes/DuplicateEntryError.md +11 -11
  15. package/docs/classes/EntityNotFoundError.md +11 -11
  16. package/docs/classes/ExpiredTokenError.md +11 -11
  17. package/docs/classes/Handler.md +22 -22
  18. package/docs/classes/InternalError.md +11 -11
  19. package/docs/classes/InvalidCredentialsError.md +11 -11
  20. package/docs/classes/InvalidValueError.md +11 -11
  21. package/docs/classes/ManagedDatabaseConnection.md +19 -19
  22. package/docs/classes/Middleware.md +3 -3
  23. package/docs/classes/MissingConfigError.md +11 -11
  24. package/docs/classes/MissingParameterError.md +11 -11
  25. package/docs/classes/MySQLConnection.md +20 -20
  26. package/docs/classes/MySQLDatabase.md +14 -14
  27. package/docs/classes/NotImplementedError.md +301 -0
  28. package/docs/classes/Query.md +16 -10
  29. package/docs/classes/RawError.md +313 -0
  30. package/docs/classes/RawQuery.md +25 -17
  31. package/docs/classes/Request.md +18 -18
  32. package/docs/classes/Response.md +12 -12
  33. package/docs/classes/ResponseData.md +7 -7
  34. package/docs/classes/ServiceProvider.md +16 -16
  35. package/docs/classes/ServiceResponse.md +4 -4
  36. package/docs/classes/SetSessionVariableQuery.md +16 -10
  37. package/docs/classes/StormError.md +15 -11
  38. package/docs/classes/TemporaryTableQuery.md +16 -10
  39. package/docs/classes/Token.md +2 -2
  40. package/docs/classes/TokenManager.md +4 -4
  41. package/docs/classes/UnauthorizedAccessError.md +11 -11
  42. package/docs/enums/ErrorCode.md +20 -20
  43. package/docs/enums/ExitCode.md +6 -6
  44. package/docs/enums/HTTPMethod.md +10 -10
  45. package/docs/enums/JWTError.md +6 -6
  46. package/docs/enums/StatusCode.md +98 -98
  47. package/docs/interfaces/IConfig.md +8 -8
  48. package/docs/interfaces/IDatabaseConfig.md +6 -6
  49. package/docs/interfaces/IDatabaseConnection.md +15 -15
  50. package/docs/interfaces/IErrorResponse.md +4 -4
  51. package/docs/interfaces/IFormData.md +2 -2
  52. package/docs/interfaces/IHandler.md +1 -1
  53. package/docs/interfaces/IInsertQueryResult.md +3 -3
  54. package/docs/interfaces/IJWTVerifyOptions.md +1 -1
  55. package/docs/interfaces/IRequestResponse.md +2 -2
  56. package/docs/interfaces/ISetSessionVariableQueryInput.md +2 -2
  57. package/docs/interfaces/ITemporaryTableQueryInput.md +2 -2
  58. package/docs/interfaces/IUpdateQueryResult.md +2 -2
  59. package/docs/interfaces/formidable.EmitData.md +1 -1
  60. package/docs/modules/formidable.md +2 -2
  61. package/lib/Application.d.ts +58 -0
  62. package/lib/Application.js +73 -0
  63. package/lib/Application.js.map +1 -1
  64. package/lib/ApplicationEvent.js +15 -0
  65. package/lib/ApplicationEvent.js.map +1 -1
  66. package/lib/BackendAuthenticationMiddleware.d.ts +12 -0
  67. package/lib/BackendAuthenticationMiddleware.js +28 -0
  68. package/lib/BackendAuthenticationMiddleware.js.map +1 -1
  69. package/lib/CORSMiddleware.d.ts +14 -0
  70. package/lib/CORSMiddleware.js +29 -0
  71. package/lib/CORSMiddleware.js.map +1 -1
  72. package/lib/ConfigLoader.js +16 -0
  73. package/lib/ConfigLoader.js.map +1 -1
  74. package/lib/Database.js +15 -0
  75. package/lib/Database.js.map +1 -1
  76. package/lib/DatabaseConnection.d.ts +115 -0
  77. package/lib/DatabaseConnection.js +71 -0
  78. package/lib/DatabaseConnection.js.map +1 -1
  79. package/lib/DatabaseQueryError.js +16 -0
  80. package/lib/DatabaseQueryError.js.map +1 -1
  81. package/lib/DiskSpaceError.js +15 -0
  82. package/lib/DiskSpaceError.js.map +1 -1
  83. package/lib/DropTemporaryTableQuery.js +15 -0
  84. package/lib/DropTemporaryTableQuery.js.map +1 -1
  85. package/lib/DumpStream.js +16 -0
  86. package/lib/DumpStream.js.map +1 -1
  87. package/lib/DuplicateEntryError.js +15 -0
  88. package/lib/DuplicateEntryError.js.map +1 -1
  89. package/lib/EntityNotFoundError.js +15 -0
  90. package/lib/EntityNotFoundError.js.map +1 -1
  91. package/lib/ErrorCode.js +15 -0
  92. package/lib/ErrorCode.js.map +1 -1
  93. package/lib/ExitCode.js +15 -0
  94. package/lib/ExitCode.js.map +1 -1
  95. package/lib/ExpiredTokenError.js +16 -0
  96. package/lib/ExpiredTokenError.js.map +1 -1
  97. package/lib/HTTPMethod.js +15 -0
  98. package/lib/HTTPMethod.js.map +1 -1
  99. package/lib/Handler.d.ts +22 -4
  100. package/lib/Handler.js +22 -6
  101. package/lib/Handler.js.map +1 -1
  102. package/lib/IAuthTokenData.js +15 -0
  103. package/lib/IAuthTokenData.js.map +1 -1
  104. package/lib/IConfig.js +15 -0
  105. package/lib/IConfig.js.map +1 -1
  106. package/lib/IDatabaseConfig.js +15 -0
  107. package/lib/IDatabaseConfig.js.map +1 -1
  108. package/lib/IDatabaseConnection.js +15 -0
  109. package/lib/IDatabaseConnection.js.map +1 -1
  110. package/lib/IDeleteQueryResult.js +15 -0
  111. package/lib/IDeleteQueryResult.js.map +1 -1
  112. package/lib/IFormData.js +15 -0
  113. package/lib/IFormData.js.map +1 -1
  114. package/lib/IHandler.js +15 -0
  115. package/lib/IHandler.js.map +1 -1
  116. package/lib/IInsertQueryResult.js +15 -0
  117. package/lib/IInsertQueryResult.js.map +1 -1
  118. package/lib/IJWTVerifyOptions.js +15 -0
  119. package/lib/IJWTVerifyOptions.js.map +1 -1
  120. package/lib/IRequestResponse.js +15 -0
  121. package/lib/IRequestResponse.js.map +1 -1
  122. package/lib/IServiceHeaders.js +15 -0
  123. package/lib/IServiceHeaders.js.map +1 -1
  124. package/lib/IUpdateQueryResult.js +15 -0
  125. package/lib/IUpdateQueryResult.js.map +1 -1
  126. package/lib/InternalError.js +16 -0
  127. package/lib/InternalError.js.map +1 -1
  128. package/lib/InvalidConfigError.js +15 -0
  129. package/lib/InvalidConfigError.js.map +1 -1
  130. package/lib/InvalidCredentialsError.js +16 -0
  131. package/lib/InvalidCredentialsError.js.map +1 -1
  132. package/lib/InvalidValueError.js +16 -0
  133. package/lib/InvalidValueError.js.map +1 -1
  134. package/lib/JWTError.js +15 -0
  135. package/lib/JWTError.js.map +1 -1
  136. package/lib/JWTVerifyOptionsParser.js +16 -0
  137. package/lib/JWTVerifyOptionsParser.js.map +1 -1
  138. package/lib/ManagedDatabaseConnection.d.ts +5 -0
  139. package/lib/ManagedDatabaseConnection.js +26 -0
  140. package/lib/ManagedDatabaseConnection.js.map +1 -1
  141. package/lib/Middleware.js +16 -0
  142. package/lib/Middleware.js.map +1 -1
  143. package/lib/MissingConfigError.js +15 -0
  144. package/lib/MissingConfigError.js.map +1 -1
  145. package/lib/MissingParameterError.js +15 -0
  146. package/lib/MissingParameterError.js.map +1 -1
  147. package/lib/MySQLConnection.js +24 -1
  148. package/lib/MySQLConnection.js.map +1 -1
  149. package/lib/MySQLDatabase.js +18 -0
  150. package/lib/MySQLDatabase.js.map +1 -1
  151. package/lib/NotImplementedError.d.ts +14 -0
  152. package/lib/NotImplementedError.js +40 -0
  153. package/lib/NotImplementedError.js.map +1 -0
  154. package/lib/Query.d.ts +22 -2
  155. package/lib/Query.js +37 -0
  156. package/lib/Query.js.map +1 -1
  157. package/lib/RawError.d.ts +14 -0
  158. package/lib/RawError.js +40 -0
  159. package/lib/RawError.js.map +1 -0
  160. package/lib/RawQuery.d.ts +1 -1
  161. package/lib/RawQuery.js +15 -0
  162. package/lib/RawQuery.js.map +1 -1
  163. package/lib/Request.d.ts +1 -0
  164. package/lib/Request.js +15 -0
  165. package/lib/Request.js.map +1 -1
  166. package/lib/Response.d.ts +1 -0
  167. package/lib/Response.js +17 -0
  168. package/lib/Response.js.map +1 -1
  169. package/lib/ResponseData.js +15 -0
  170. package/lib/ResponseData.js.map +1 -1
  171. package/lib/ServiceProvider.d.ts +1 -2
  172. package/lib/ServiceProvider.js +20 -0
  173. package/lib/ServiceProvider.js.map +1 -1
  174. package/lib/ServiceResponse.d.ts +1 -0
  175. package/lib/ServiceResponse.js +15 -0
  176. package/lib/ServiceResponse.js.map +1 -1
  177. package/lib/SetSessionVariableQuery.d.ts +1 -2
  178. package/lib/SetSessionVariableQuery.js +1 -0
  179. package/lib/SetSessionVariableQuery.js.map +1 -1
  180. package/lib/StatusCode.js +15 -0
  181. package/lib/StatusCode.js.map +1 -1
  182. package/lib/StormError.d.ts +7 -0
  183. package/lib/StormError.js +22 -0
  184. package/lib/StormError.js.map +1 -1
  185. package/lib/TemporaryTableQuery.d.ts +1 -2
  186. package/lib/TemporaryTableQuery.js +15 -0
  187. package/lib/TemporaryTableQuery.js.map +1 -1
  188. package/lib/Token.js +15 -0
  189. package/lib/Token.js.map +1 -1
  190. package/lib/TokenManager.js +17 -0
  191. package/lib/TokenManager.js.map +1 -1
  192. package/lib/UnauthorizedAccessError.js +15 -0
  193. package/lib/UnauthorizedAccessError.js.map +1 -1
  194. package/lib/api.d.ts +2 -0
  195. package/lib/api.js +28 -1
  196. package/lib/api.js.map +1 -1
  197. package/lib/instance.js +15 -0
  198. package/lib/instance.js.map +1 -1
  199. package/lib/private/CommitQuery.js +15 -0
  200. package/lib/private/CommitQuery.js.map +1 -1
  201. package/lib/private/RollbackQuery.js +15 -0
  202. package/lib/private/RollbackQuery.js.map +1 -1
  203. package/lib/private/StartTransactionQuery.js +15 -0
  204. package/lib/private/StartTransactionQuery.js.map +1 -1
  205. package/package.json +15 -16
  206. package/src/Database.ts +1 -2
  207. package/src/DatabaseConnection.ts +2 -3
  208. package/src/Handler.ts +10 -9
  209. package/src/NotImplementedError.ts +45 -0
  210. package/src/Query.ts +9 -2
  211. package/src/RawError.ts +39 -0
  212. package/src/RawQuery.ts +1 -1
  213. package/src/ServiceProvider.ts +1 -2
  214. package/src/SetSessionVariableQuery.ts +1 -2
  215. package/src/TemporaryTableQuery.ts +2 -3
  216. package/src/api.ts +2 -0
  217. package/tsconfig.json +0 -1
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.DuplicateEntryError = void 0;
4
19
  const StormError_1 = require("./StormError");
@@ -1 +1 @@
1
- {"version":3,"file":"DuplicateEntryError.js","sourceRoot":"","sources":["../src/DuplicateEntryError.ts"],"names":[],"mappings":";;;AAgBA,6CAAwC;AACxC,2CAAsC;AACtC,6CAAwC;AAQxC,MAAa,mBAAoB,SAAQ,uBAAU;IAC/C,YAAmB,MAAc,EAAE,IAAY,EAAE,WAAmB,MAAM;QACtE,KAAK,CAAC;YACF,MAAM;YACN,IAAI;YACJ,QAAQ;SACX,CAAC,CAAC;IACP,CAAC;IAEM,UAAU;QACb,IAAI,OAAO,GAAgC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO,GAAG,OAAO,CAAC,MAAM,aAAa,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,IAAI,mBAAmB,CAAC;IAC9F,CAAC;IAEM,OAAO;QACV,OAAO,qBAAS,CAAC,eAAe,CAAC;IACrC,CAAC;IAEM,WAAW;QACd,OAAO,uBAAU,CAAC,eAAe,CAAC;IACtC,CAAC;CACJ;AArBD,kDAqBC"}
1
+ {"version":3,"file":"DuplicateEntryError.js","sourceRoot":"","sources":["../src/DuplicateEntryError.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAEF,6CAAwC;AACxC,2CAAsC;AACtC,6CAAwC;AAQxC,MAAa,mBAAoB,SAAQ,uBAAU;IAC/C,YAAmB,MAAc,EAAE,IAAY,EAAE,WAAmB,MAAM;QACtE,KAAK,CAAC;YACF,MAAM;YACN,IAAI;YACJ,QAAQ;SACX,CAAC,CAAC;IACP,CAAC;IAEM,UAAU;QACb,IAAI,OAAO,GAAgC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO,GAAG,OAAO,CAAC,MAAM,aAAa,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,IAAI,mBAAmB,CAAC;IAC9F,CAAC;IAEM,OAAO;QACV,OAAO,qBAAS,CAAC,eAAe,CAAC;IACrC,CAAC;IAEM,WAAW;QACd,OAAO,uBAAU,CAAC,eAAe,CAAC;IACtC,CAAC;CACJ;AArBD,kDAqBC"}
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.EntityNotFoundError = void 0;
4
19
  const StormError_1 = require("./StormError");
@@ -1 +1 @@
1
- {"version":3,"file":"EntityNotFoundError.js","sourceRoot":"","sources":["../src/EntityNotFoundError.ts"],"names":[],"mappings":";;;AAgBA,6CAAwC;AACxC,2CAAsC;AACtC,6CAAwC;AAExC,MAAa,mBAAoB,SAAQ,uBAAU;IAC/C,YAAmB,IAAY;QAC3B,KAAK,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;IACxB,CAAC;IAEM,UAAU;QACb,OAAO,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC,IAAI,mBAAmB,CAAC;IAC/D,CAAC;IAEM,OAAO;QACV,OAAO,qBAAS,CAAC,aAAa,CAAC;IACnC,CAAC;IAEM,WAAW;QACd,OAAO,uBAAU,CAAC,aAAa,CAAC;IACpC,CAAC;CACJ;AAhBD,kDAgBC"}
1
+ {"version":3,"file":"EntityNotFoundError.js","sourceRoot":"","sources":["../src/EntityNotFoundError.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAEF,6CAAwC;AACxC,2CAAsC;AACtC,6CAAwC;AAExC,MAAa,mBAAoB,SAAQ,uBAAU;IAC/C,YAAmB,IAAY;QAC3B,KAAK,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;IACxB,CAAC;IAEM,UAAU;QACb,OAAO,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC,IAAI,mBAAmB,CAAC;IAC/D,CAAC;IAEM,OAAO;QACV,OAAO,qBAAS,CAAC,aAAa,CAAC;IACnC,CAAC;IAEM,WAAW;QACd,OAAO,uBAAU,CAAC,aAAa,CAAC;IACpC,CAAC;CACJ;AAhBD,kDAgBC"}
package/lib/ErrorCode.js CHANGED
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.ErrorCode = void 0;
4
19
  var ErrorCode;
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorCode.js","sourceRoot":"","sources":["../src/ErrorCode.ts"],"names":[],"mappings":";;;AAgBA,IAAY,SAUX;AAVD,WAAY,SAAS;IACjB,iDAAQ,CAAA;IACR,mEAAiB,CAAA;IACjB,2DAAa,CAAA;IACb,uEAAmB,CAAA;IACnB,2DAAa,CAAA;IACb,+DAAe,CAAA;IACf,uEAAmB,CAAA;IACnB,+EAAuB,CAAA;IACvB,6DAAc,CAAA;AAClB,CAAC,EAVW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAUpB"}
1
+ {"version":3,"file":"ErrorCode.js","sourceRoot":"","sources":["../src/ErrorCode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAEF,IAAY,SAUX;AAVD,WAAY,SAAS;IACjB,iDAAQ,CAAA;IACR,mEAAiB,CAAA;IACjB,2DAAa,CAAA;IACb,uEAAmB,CAAA;IACnB,2DAAa,CAAA;IACb,+DAAe,CAAA;IACf,uEAAmB,CAAA;IACnB,+EAAuB,CAAA;IACvB,6DAAc,CAAA;AAClB,CAAC,EAVW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAUpB"}
package/lib/ExitCode.js CHANGED
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.ExitCode = void 0;
4
19
  var ExitCode;
@@ -1 +1 @@
1
- {"version":3,"file":"ExitCode.js","sourceRoot":"","sources":["../src/ExitCode.ts"],"names":[],"mappings":";;;AAgBA,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,2DAAkB,CAAA;IAClB,2DAAkB,CAAA;AACtB,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB"}
1
+ {"version":3,"file":"ExitCode.js","sourceRoot":"","sources":["../src/ExitCode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAEF,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,2DAAkB,CAAA;IAClB,2DAAkB,CAAA;AACtB,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB"}
@@ -1,10 +1,26 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.ExpiredTokenError = void 0;
4
19
  const StormError_1 = require("./StormError");
5
20
  const ErrorCode_1 = require("./ErrorCode");
6
21
  const StatusCode_1 = require("./StatusCode");
7
22
  class ExpiredTokenError extends StormError_1.StormError {
23
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
8
24
  constructor(details) {
9
25
  super(details);
10
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ExpiredTokenError.js","sourceRoot":"","sources":["../src/ExpiredTokenError.ts"],"names":[],"mappings":";;;AAgBA,6CAAwC;AACxC,2CAAsC;AACtC,6CAAwC;AAExC,MAAa,iBAAkB,SAAQ,uBAAe;IAElD,YAAmB,OAAa;QAC5B,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEM,UAAU;QACb,OAAO,iCAAiC,CAAC;IAC7C,CAAC;IAEM,OAAO;QACV,OAAO,qBAAS,CAAC,aAAa,CAAC;IACnC,CAAC;IAEM,WAAW;QACd,OAAO,uBAAU,CAAC,gBAAgB,CAAC;IACvC,CAAC;CACJ;AAjBD,8CAiBC"}
1
+ {"version":3,"file":"ExpiredTokenError.js","sourceRoot":"","sources":["../src/ExpiredTokenError.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAEF,6CAAwC;AACxC,2CAAsC;AACtC,6CAAwC;AAExC,MAAa,iBAAkB,SAAQ,uBAAe;IAClD,6EAA6E;IAC7E,YAAmB,OAAa;QAC5B,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEM,UAAU;QACb,OAAO,iCAAiC,CAAC;IAC7C,CAAC;IAEM,OAAO;QACV,OAAO,qBAAS,CAAC,aAAa,CAAC;IACnC,CAAC;IAEM,WAAW;QACd,OAAO,uBAAU,CAAC,gBAAgB,CAAC;IACvC,CAAC;CACJ;AAjBD,8CAiBC"}
package/lib/HTTPMethod.js CHANGED
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.HTTPMethod = void 0;
4
19
  var HTTPMethod;
@@ -1 +1 @@
1
- {"version":3,"file":"HTTPMethod.js","sourceRoot":"","sources":["../src/HTTPMethod.ts"],"names":[],"mappings":";;;AAgBA,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,yBAAe,CAAA;IACf,2BAAgB,CAAA;IAChB,yBAAe,CAAA;IACf,+BAAkB,CAAA;AACtB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB"}
1
+ {"version":3,"file":"HTTPMethod.js","sourceRoot":"","sources":["../src/HTTPMethod.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAEF,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,yBAAe,CAAA;IACf,2BAAgB,CAAA;IAChB,yBAAe,CAAA;IACf,+BAAkB,CAAA;AACtB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB"}
package/lib/Handler.d.ts CHANGED
@@ -6,7 +6,25 @@ import { Middleware } from './Middleware';
6
6
  import { StormError } from './StormError';
7
7
  import { ResponseData } from './ResponseData';
8
8
  import { ReadStream } from 'fs';
9
+ /**
10
+ * IHandlerResponse can actually accept any arbitrary object, however it may do
11
+ * certain things depending on the type of object it receives.
12
+ *
13
+ * - If the response object is a stream, it will pipe the stream to stream the HTTP response.
14
+ * - If the response is ResponseData, the status code and response data will be passed as the HTTP response.
15
+ * - Passing nothing/undefined will return a status code of 204 with no body content
16
+ * - Primitive data types will be passed as is
17
+ * - Buffers will be passed through
18
+ * - Any other object will be passed through JSON.stringify
19
+ */
9
20
  export declare type IHandlerResponse = ResponseData | ReadableStream | ReadStream | any | void;
21
+ /**
22
+ * Like IHandlerResponse, an IHandlerError can be any arbitrary type of object,
23
+ * however it's recommended that the type be of a StormError.
24
+ *
25
+ * If the type is not a StormError, the error will be wrapped in an InternalError object.
26
+ * This is to avoid accidental leakage of privilege data (e.g. snippets of database queries with sensitive information)
27
+ */
10
28
  export declare type IHandlerError = StormError | Error | any;
11
29
  export declare class Handler<TApplication extends Application = Application, TGetRequest = any, TGetResponse = IHandlerResponse, TPostRequest = any, TPostResponse = IHandlerResponse, TPutRequest = any, TPutResponse = IHandlerResponse, TDeleteRequest = any, TDeleteResponse = IHandlerResponse> {
12
30
  private $app;
@@ -24,8 +42,8 @@ export declare class Handler<TApplication extends Application = Application, TGe
24
42
  put(request: Request<TPutRequest>, response: Response<TPutResponse>): Promise<void>;
25
43
  post(request: Request<TPostRequest>, response: Response<TPostResponse>): Promise<void>;
26
44
  delete(request: Request<TDeleteRequest>, response: Response<TDeleteResponse>): Promise<void>;
27
- protected _get(request: Request<TGetRequest>): Promise<TGetResponse | IHandlerResponse>;
28
- protected _post(request: Request<TPostRequest>): Promise<TPostResponse | IHandlerResponse>;
29
- protected _put(request: Request<TPutRequest>): Promise<TPutResponse | IHandlerResponse>;
30
- protected _delete(request: Request<TDeleteRequest>): Promise<TDeleteResponse | IHandlerResponse>;
45
+ protected _get(request: Request<TGetRequest>): Promise<TGetResponse>;
46
+ protected _post(request: Request<TPostRequest>): Promise<TPostResponse>;
47
+ protected _put(request: Request<TPutRequest>): Promise<TPutResponse>;
48
+ protected _delete(request: Request<TDeleteRequest>): Promise<TDeleteResponse>;
31
49
  }
package/lib/Handler.js CHANGED
@@ -1,11 +1,27 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.Handler = void 0;
4
- const StatusCode_1 = require("./StatusCode");
5
19
  const instance_1 = require("./instance");
6
20
  const StormError_1 = require("./StormError");
7
21
  const InternalError_1 = require("./InternalError");
8
- const ResponseData_1 = require("./ResponseData");
22
+ const NotImplementedError_1 = require("./NotImplementedError");
23
+ const HTTPMethod_1 = require("./HTTPMethod");
24
+ // import { Stream } from 'stream';
9
25
  const TAG = 'Handler';
10
26
  class Handler {
11
27
  constructor(app) {
@@ -116,16 +132,16 @@ class Handler {
116
132
  }
117
133
  }
118
134
  async _get(request) {
119
- return new ResponseData_1.ResponseData(StatusCode_1.StatusCode.INTERNAL_NOT_IMPLEMENTED);
135
+ throw new NotImplementedError_1.NotImplementedError(HTTPMethod_1.HTTPMethod.GET);
120
136
  }
121
137
  async _post(request) {
122
- return new ResponseData_1.ResponseData(StatusCode_1.StatusCode.INTERNAL_NOT_IMPLEMENTED);
138
+ throw new NotImplementedError_1.NotImplementedError(HTTPMethod_1.HTTPMethod.POST);
123
139
  }
124
140
  async _put(request) {
125
- return new ResponseData_1.ResponseData(StatusCode_1.StatusCode.INTERNAL_NOT_IMPLEMENTED);
141
+ throw new NotImplementedError_1.NotImplementedError(HTTPMethod_1.HTTPMethod.PUT);
126
142
  }
127
143
  async _delete(request) {
128
- return new ResponseData_1.ResponseData(StatusCode_1.StatusCode.INTERNAL_NOT_IMPLEMENTED);
144
+ throw new NotImplementedError_1.NotImplementedError(HTTPMethod_1.HTTPMethod.DELETE);
129
145
  }
130
146
  }
131
147
  exports.Handler = Handler;
@@ -1 +1 @@
1
- {"version":3,"file":"Handler.js","sourceRoot":"","sources":["../src/Handler.ts"],"names":[],"mappings":";;;AAgBA,6CAAwC;AAExC,yCAAuC;AAIvC,6CAAwC;AAExC,mDAAgD;AAGhD,iDAA8C;AAI9C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O,CAAC,SAAS,EAAE,IAAI,OAAO,CAAC,MAAM,EAAE,SAAS,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAEtL,IAAI;YACA,IAAI,MAAM,GAAsD,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAClH,IAAI,GAAG,GAAQ,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAClD,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;SACvC;QACD,OAAO,EAAE,EAAE;YACP,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;SAC3C;IACL,CAAC;IAES,KAAK,CAAC,IAAI,CAAC,OAA6B;QAC9C,MAAM,IAAI,yCAAmB,CAAC,uBAAU,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAES,KAAK,CAAC,KAAK,CAAC,OAA8B;QAChD,MAAM,IAAI,yCAAmB,CAAC,uBAAU,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAES,KAAK,CAAC,IAAI,CAAC,OAA6B;QAC9C,MAAM,IAAI,yCAAmB,CAAC,uBAAU,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,OAAgC;QACpD,MAAM,IAAI,yCAAmB,CAAC,uBAAU,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;CACJ;AAjKD,0BAiKC"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IAuthTokenData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IAuthTokenData.js","sourceRoot":"","sources":["../src/IAuthTokenData.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IAuthTokenData.js","sourceRoot":"","sources":["../src/IAuthTokenData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
package/lib/IConfig.js CHANGED
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IConfig.js","sourceRoot":"","sources":["../src/IConfig.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IConfig.js","sourceRoot":"","sources":["../src/IConfig.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IDatabaseConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IDatabaseConfig.js","sourceRoot":"","sources":["../src/IDatabaseConfig.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IDatabaseConfig.js","sourceRoot":"","sources":["../src/IDatabaseConfig.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IDatabaseConnection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IDatabaseConnection.js","sourceRoot":"","sources":["../src/IDatabaseConnection.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IDatabaseConnection.js","sourceRoot":"","sources":["../src/IDatabaseConnection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IDeleteQueryResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IDeleteQueryResult.js","sourceRoot":"","sources":["../src/IDeleteQueryResult.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IDeleteQueryResult.js","sourceRoot":"","sources":["../src/IDeleteQueryResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
package/lib/IFormData.js CHANGED
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IFormData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IFormData.js","sourceRoot":"","sources":["../src/IFormData.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IFormData.js","sourceRoot":"","sources":["../src/IFormData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
package/lib/IHandler.js CHANGED
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IHandler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IHandler.js","sourceRoot":"","sources":["../src/IHandler.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IHandler.js","sourceRoot":"","sources":["../src/IHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IInsertQueryResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IInsertQueryResult.js","sourceRoot":"","sources":["../src/IInsertQueryResult.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IInsertQueryResult.js","sourceRoot":"","sources":["../src/IInsertQueryResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IJWTVerifyOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IJWTVerifyOptions.js","sourceRoot":"","sources":["../src/IJWTVerifyOptions.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IJWTVerifyOptions.js","sourceRoot":"","sources":["../src/IJWTVerifyOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IRequestResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IRequestResponse.js","sourceRoot":"","sources":["../src/IRequestResponse.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IRequestResponse.js","sourceRoot":"","sources":["../src/IRequestResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IServiceHeaders.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IServiceHeaders.js","sourceRoot":"","sources":["../src/IServiceHeaders.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IServiceHeaders.js","sourceRoot":"","sources":["../src/IServiceHeaders.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  //# sourceMappingURL=IUpdateQueryResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IUpdateQueryResult.js","sourceRoot":"","sources":["../src/IUpdateQueryResult.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IUpdateQueryResult.js","sourceRoot":"","sources":["../src/IUpdateQueryResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE"}
@@ -1,10 +1,26 @@
1
1
  "use strict";
2
+ /*
3
+ Copyright 2017-2021 Norman Breau
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.InternalError = void 0;
4
19
  const StormError_1 = require("./StormError");
5
20
  const ErrorCode_1 = require("./ErrorCode");
6
21
  const StatusCode_1 = require("./StatusCode");
7
22
  class InternalError extends StormError_1.StormError {
23
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
8
24
  constructor(details) {
9
25
  super(details);
10
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InternalError.js","sourceRoot":"","sources":["../src/InternalError.ts"],"names":[],"mappings":";;;AAgBA,6CAAwC;AACxC,2CAAsC;AACtC,6CAAwC;AAExC,MAAa,aAAc,SAAQ,uBAAe;IAE9C,YAAmB,OAAa;QAC5B,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEM,UAAU;QACb,OAAO,yDAAyD,CAAC;IACrE,CAAC;IAEM,OAAO;QACV,OAAO,qBAAS,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAEM,WAAW;QACd,OAAO,uBAAU,CAAC,cAAc,CAAC;IACrC,CAAC;CACJ;AAjBD,sCAiBC"}
1
+ {"version":3,"file":"InternalError.js","sourceRoot":"","sources":["../src/InternalError.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAEF,6CAAwC;AACxC,2CAAsC;AACtC,6CAAwC;AAExC,MAAa,aAAc,SAAQ,uBAAe;IAC9C,6EAA6E;IAC7E,YAAmB,OAAa;QAC5B,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEM,UAAU;QACb,OAAO,yDAAyD,CAAC;IACrE,CAAC;IAEM,OAAO;QACV,OAAO,qBAAS,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAEM,WAAW;QACd,OAAO,uBAAU,CAAC,cAAc,CAAC;IACrC,CAAC;CACJ;AAjBD,sCAiBC"}