@litert/televoke 1.0.0-9 → 1.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 (277) hide show
  1. package/CHANGES.md +5 -1
  2. package/lib/client/Client.decl.d.ts +14 -14
  3. package/lib/client/Client.decl.d.ts.map +1 -1
  4. package/lib/client/Client.decl.js +14 -14
  5. package/lib/client/Client.decl.js.map +1 -1
  6. package/lib/client/JsonApiClient.impl.d.ts +14 -14
  7. package/lib/client/JsonApiClient.impl.d.ts.map +1 -1
  8. package/lib/client/JsonApiClient.impl.js +14 -14
  9. package/lib/client/JsonApiClient.impl.js.map +1 -1
  10. package/lib/client/LegacyHttpClient.impl.d.ts +14 -14
  11. package/lib/client/LegacyHttpClient.impl.d.ts.map +1 -1
  12. package/lib/client/LegacyHttpClient.impl.js +25 -15
  13. package/lib/client/LegacyHttpClient.impl.js.map +1 -1
  14. package/lib/client/index.d.ts +14 -14
  15. package/lib/client/index.d.ts.map +1 -1
  16. package/lib/client/index.js +14 -14
  17. package/lib/client/index.js.map +1 -1
  18. package/lib/index.d.ts +14 -14
  19. package/lib/index.d.ts.map +1 -1
  20. package/lib/index.js +14 -14
  21. package/lib/index.js.map +1 -1
  22. package/lib/server/LegacyServerChannel.impl.d.ts +14 -14
  23. package/lib/server/LegacyServerChannel.impl.d.ts.map +1 -1
  24. package/lib/server/LegacyServerChannel.impl.js +14 -14
  25. package/lib/server/LegacyServerChannel.impl.js.map +1 -1
  26. package/lib/server/Server.decl.d.ts +14 -14
  27. package/lib/server/Server.decl.d.ts.map +1 -1
  28. package/lib/server/Server.decl.js +14 -14
  29. package/lib/server/Server.decl.js.map +1 -1
  30. package/lib/server/Server.impl.d.ts +14 -14
  31. package/lib/server/Server.impl.d.ts.map +1 -1
  32. package/lib/server/Server.impl.js +14 -14
  33. package/lib/server/Server.impl.js.map +1 -1
  34. package/lib/server/ServerChannel.d.ts +14 -14
  35. package/lib/server/ServerChannel.d.ts.map +1 -1
  36. package/lib/server/ServerChannel.js +14 -14
  37. package/lib/server/ServerChannel.js.map +1 -1
  38. package/lib/server/SimpleJsonApiRouter.d.ts +14 -14
  39. package/lib/server/SimpleJsonApiRouter.d.ts.map +1 -1
  40. package/lib/server/SimpleJsonApiRouter.js +14 -14
  41. package/lib/server/SimpleJsonApiRouter.js.map +1 -1
  42. package/lib/server/index.d.ts +14 -14
  43. package/lib/server/index.d.ts.map +1 -1
  44. package/lib/server/index.js +14 -14
  45. package/lib/server/index.js.map +1 -1
  46. package/lib/shared/BinaryStream.d.ts +14 -14
  47. package/lib/shared/BinaryStream.d.ts.map +1 -1
  48. package/lib/shared/BinaryStream.js +14 -14
  49. package/lib/shared/BinaryStream.js.map +1 -1
  50. package/lib/shared/BinaryStreamManager.d.ts +14 -14
  51. package/lib/shared/BinaryStreamManager.d.ts.map +1 -1
  52. package/lib/shared/BinaryStreamManager.js +14 -14
  53. package/lib/shared/BinaryStreamManager.js.map +1 -1
  54. package/lib/shared/Channel.impl.d.ts +14 -14
  55. package/lib/shared/Channel.impl.d.ts.map +1 -1
  56. package/lib/shared/Channel.impl.js +14 -14
  57. package/lib/shared/Channel.impl.js.map +1 -1
  58. package/lib/shared/Constants.d.ts +14 -14
  59. package/lib/shared/Constants.d.ts.map +1 -1
  60. package/lib/shared/Constants.js +14 -14
  61. package/lib/shared/Constants.js.map +1 -1
  62. package/lib/shared/Encodings/index.d.ts +14 -14
  63. package/lib/shared/Encodings/index.d.ts.map +1 -1
  64. package/lib/shared/Encodings/index.js +14 -14
  65. package/lib/shared/Encodings/index.js.map +1 -1
  66. package/lib/shared/Encodings/v1/EncoderV1.d.ts +14 -14
  67. package/lib/shared/Encodings/v1/EncoderV1.d.ts.map +1 -1
  68. package/lib/shared/Encodings/v1/EncoderV1.js +14 -14
  69. package/lib/shared/Encodings/v1/EncoderV1.js.map +1 -1
  70. package/lib/shared/Encodings/v1/Protocol.v1.decls.d.ts +14 -14
  71. package/lib/shared/Encodings/v1/Protocol.v1.decls.d.ts.map +1 -1
  72. package/lib/shared/Encodings/v1/Protocol.v1.decls.js +14 -14
  73. package/lib/shared/Encodings/v1/Protocol.v1.decls.js.map +1 -1
  74. package/lib/shared/Encodings/v1/index.d.ts +14 -14
  75. package/lib/shared/Encodings/v1/index.d.ts.map +1 -1
  76. package/lib/shared/Encodings/v1/index.js +14 -14
  77. package/lib/shared/Encodings/v1/index.js.map +1 -1
  78. package/lib/shared/Encodings/v2/Constants.v2.d.ts +14 -14
  79. package/lib/shared/Encodings/v2/Constants.v2.d.ts.map +1 -1
  80. package/lib/shared/Encodings/v2/Constants.v2.js +14 -14
  81. package/lib/shared/Encodings/v2/Constants.v2.js.map +1 -1
  82. package/lib/shared/Encodings/v2/DecoderV2.d.ts +14 -14
  83. package/lib/shared/Encodings/v2/DecoderV2.d.ts.map +1 -1
  84. package/lib/shared/Encodings/v2/DecoderV2.js +14 -14
  85. package/lib/shared/Encodings/v2/DecoderV2.js.map +1 -1
  86. package/lib/shared/Encodings/v2/EncoderV2.d.ts +14 -14
  87. package/lib/shared/Encodings/v2/EncoderV2.d.ts.map +1 -1
  88. package/lib/shared/Encodings/v2/EncoderV2.js +14 -14
  89. package/lib/shared/Encodings/v2/EncoderV2.js.map +1 -1
  90. package/lib/shared/Encodings/v2/Encoding.v2.decl.d.ts +14 -14
  91. package/lib/shared/Encodings/v2/Encoding.v2.decl.d.ts.map +1 -1
  92. package/lib/shared/Encodings/v2/Encoding.v2.decl.js +14 -14
  93. package/lib/shared/Encodings/v2/Encoding.v2.decl.js.map +1 -1
  94. package/lib/shared/Encodings/v2/index.d.ts +14 -14
  95. package/lib/shared/Encodings/v2/index.d.ts.map +1 -1
  96. package/lib/shared/Encodings/v2/index.js +14 -14
  97. package/lib/shared/Encodings/v2/index.js.map +1 -1
  98. package/lib/shared/Errors.d.ts +14 -14
  99. package/lib/shared/Errors.d.ts.map +1 -1
  100. package/lib/shared/Errors.js +14 -14
  101. package/lib/shared/Errors.js.map +1 -1
  102. package/lib/shared/Shared.decl.d.ts +14 -14
  103. package/lib/shared/Shared.decl.d.ts.map +1 -1
  104. package/lib/shared/Shared.decl.js +14 -14
  105. package/lib/shared/Shared.decl.js.map +1 -1
  106. package/lib/shared/Utils.d.ts +14 -14
  107. package/lib/shared/Utils.d.ts.map +1 -1
  108. package/lib/shared/Utils.js +14 -14
  109. package/lib/shared/Utils.js.map +1 -1
  110. package/lib/shared/index.d.ts +14 -14
  111. package/lib/shared/index.d.ts.map +1 -1
  112. package/lib/shared/index.js +14 -14
  113. package/lib/shared/index.js.map +1 -1
  114. package/lib/transporters/Transporter.decl.d.ts +14 -14
  115. package/lib/transporters/Transporter.decl.d.ts.map +1 -1
  116. package/lib/transporters/Transporter.decl.js +14 -14
  117. package/lib/transporters/Transporter.decl.js.map +1 -1
  118. package/lib/transporters/http-listener/AbstractHttpListener.d.ts +14 -14
  119. package/lib/transporters/http-listener/AbstractHttpListener.d.ts.map +1 -1
  120. package/lib/transporters/http-listener/AbstractHttpListener.js +14 -14
  121. package/lib/transporters/http-listener/AbstractHttpListener.js.map +1 -1
  122. package/lib/transporters/http-listener/Http.Decl.d.ts +14 -14
  123. package/lib/transporters/http-listener/Http.Decl.d.ts.map +1 -1
  124. package/lib/transporters/http-listener/Http.Decl.js +14 -14
  125. package/lib/transporters/http-listener/Http.Decl.js.map +1 -1
  126. package/lib/transporters/http-listener/HttpListener.d.ts +14 -14
  127. package/lib/transporters/http-listener/HttpListener.d.ts.map +1 -1
  128. package/lib/transporters/http-listener/HttpListener.js +15 -14
  129. package/lib/transporters/http-listener/HttpListener.js.map +1 -1
  130. package/lib/transporters/http-listener/HttpUnixSocketListener.d.ts +14 -14
  131. package/lib/transporters/http-listener/HttpUnixSocketListener.d.ts.map +1 -1
  132. package/lib/transporters/http-listener/HttpUnixSocketListener.js +14 -14
  133. package/lib/transporters/http-listener/HttpUnixSocketListener.js.map +1 -1
  134. package/lib/transporters/http-listener/HttpsListener.d.ts +14 -14
  135. package/lib/transporters/http-listener/HttpsListener.d.ts.map +1 -1
  136. package/lib/transporters/http-listener/HttpsListener.js +14 -14
  137. package/lib/transporters/http-listener/HttpsListener.js.map +1 -1
  138. package/lib/transporters/http-listener/index.d.ts +14 -14
  139. package/lib/transporters/http-listener/index.d.ts.map +1 -1
  140. package/lib/transporters/http-listener/index.js +14 -14
  141. package/lib/transporters/http-listener/index.js.map +1 -1
  142. package/lib/transporters/index.d.ts +14 -14
  143. package/lib/transporters/index.d.ts.map +1 -1
  144. package/lib/transporters/index.js +14 -14
  145. package/lib/transporters/index.js.map +1 -1
  146. package/lib/transporters/legacy-http/LegacyHttp.Server.d.ts +14 -14
  147. package/lib/transporters/legacy-http/LegacyHttp.Server.d.ts.map +1 -1
  148. package/lib/transporters/legacy-http/LegacyHttp.Server.js +14 -14
  149. package/lib/transporters/legacy-http/LegacyHttp.Server.js.map +1 -1
  150. package/lib/transporters/legacy-http/LegacyHttp.Transporter.d.ts +14 -14
  151. package/lib/transporters/legacy-http/LegacyHttp.Transporter.d.ts.map +1 -1
  152. package/lib/transporters/legacy-http/LegacyHttp.Transporter.js +14 -14
  153. package/lib/transporters/legacy-http/LegacyHttp.Transporter.js.map +1 -1
  154. package/lib/transporters/legacy-http/index.d.ts +14 -14
  155. package/lib/transporters/legacy-http/index.d.ts.map +1 -1
  156. package/lib/transporters/legacy-http/index.js +14 -14
  157. package/lib/transporters/legacy-http/index.js.map +1 -1
  158. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.d.ts +14 -14
  159. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.d.ts.map +1 -1
  160. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.js +14 -14
  161. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.js.map +1 -1
  162. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.d.ts +14 -14
  163. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.d.ts.map +1 -1
  164. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.js +14 -14
  165. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.js.map +1 -1
  166. package/lib/transporters/lwdfx/LwDFX.Tls.Client.d.ts +14 -14
  167. package/lib/transporters/lwdfx/LwDFX.Tls.Client.d.ts.map +1 -1
  168. package/lib/transporters/lwdfx/LwDFX.Tls.Client.js +14 -14
  169. package/lib/transporters/lwdfx/LwDFX.Tls.Client.js.map +1 -1
  170. package/lib/transporters/lwdfx/LwDFX.Tls.Server.d.ts +14 -14
  171. package/lib/transporters/lwdfx/LwDFX.Tls.Server.d.ts.map +1 -1
  172. package/lib/transporters/lwdfx/LwDFX.Tls.Server.js +14 -14
  173. package/lib/transporters/lwdfx/LwDFX.Tls.Server.js.map +1 -1
  174. package/lib/transporters/lwdfx/LwDFX.Transporter.d.ts +14 -14
  175. package/lib/transporters/lwdfx/LwDFX.Transporter.d.ts.map +1 -1
  176. package/lib/transporters/lwdfx/LwDFX.Transporter.js +14 -14
  177. package/lib/transporters/lwdfx/LwDFX.Transporter.js.map +1 -1
  178. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.d.ts +14 -14
  179. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.d.ts.map +1 -1
  180. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.js +14 -14
  181. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.js.map +1 -1
  182. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.d.ts +14 -14
  183. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.d.ts.map +1 -1
  184. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.js +14 -14
  185. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.js.map +1 -1
  186. package/lib/transporters/lwdfx/LwDFX.decl.d.ts +14 -14
  187. package/lib/transporters/lwdfx/LwDFX.decl.d.ts.map +1 -1
  188. package/lib/transporters/lwdfx/LwDFX.decl.js +14 -14
  189. package/lib/transporters/lwdfx/LwDFX.decl.js.map +1 -1
  190. package/lib/transporters/lwdfx/index.d.ts +14 -14
  191. package/lib/transporters/lwdfx/index.d.ts.map +1 -1
  192. package/lib/transporters/lwdfx/index.js +14 -14
  193. package/lib/transporters/lwdfx/index.js.map +1 -1
  194. package/lib/transporters/memory/Memory.Impl.d.ts +14 -14
  195. package/lib/transporters/memory/Memory.Impl.d.ts.map +1 -1
  196. package/lib/transporters/memory/Memory.Impl.js +14 -14
  197. package/lib/transporters/memory/Memory.Impl.js.map +1 -1
  198. package/lib/transporters/memory/index.d.ts +14 -14
  199. package/lib/transporters/memory/index.d.ts.map +1 -1
  200. package/lib/transporters/memory/index.js +14 -14
  201. package/lib/transporters/memory/index.js.map +1 -1
  202. package/lib/transporters/websocket/WebSocket.Client.d.ts +14 -14
  203. package/lib/transporters/websocket/WebSocket.Client.d.ts.map +1 -1
  204. package/lib/transporters/websocket/WebSocket.Client.js +16 -16
  205. package/lib/transporters/websocket/WebSocket.Client.js.map +1 -1
  206. package/lib/transporters/websocket/WebSocket.Server.d.ts +14 -14
  207. package/lib/transporters/websocket/WebSocket.Server.d.ts.map +1 -1
  208. package/lib/transporters/websocket/WebSocket.Server.js +15 -15
  209. package/lib/transporters/websocket/WebSocket.Server.js.map +1 -1
  210. package/lib/transporters/websocket/WebSocket.Transporter.d.ts +14 -14
  211. package/lib/transporters/websocket/WebSocket.Transporter.d.ts.map +1 -1
  212. package/lib/transporters/websocket/WebSocket.Transporter.js +15 -15
  213. package/lib/transporters/websocket/WebSocket.Transporter.js.map +1 -1
  214. package/lib/transporters/websocket/WebSocket.decl.d.ts +14 -14
  215. package/lib/transporters/websocket/WebSocket.decl.d.ts.map +1 -1
  216. package/lib/transporters/websocket/WebSocket.decl.js +14 -14
  217. package/lib/transporters/websocket/WebSocket.decl.js.map +1 -1
  218. package/lib/transporters/websocket/index.d.ts +14 -14
  219. package/lib/transporters/websocket/index.d.ts.map +1 -1
  220. package/lib/transporters/websocket/index.js +14 -14
  221. package/lib/transporters/websocket/index.js.map +1 -1
  222. package/package.json +8 -8
  223. package/src/lib/client/Client.decl.ts +14 -14
  224. package/src/lib/client/JsonApiClient.impl.ts +14 -14
  225. package/src/lib/client/LegacyHttpClient.impl.ts +27 -15
  226. package/src/lib/client/index.ts +14 -14
  227. package/src/lib/index.ts +14 -14
  228. package/src/lib/server/LegacyServerChannel.impl.ts +14 -14
  229. package/src/lib/server/Server.decl.ts +14 -14
  230. package/src/lib/server/Server.impl.ts +14 -14
  231. package/src/lib/server/ServerChannel.ts +14 -14
  232. package/src/lib/server/SimpleJsonApiRouter.ts +14 -14
  233. package/src/lib/server/index.ts +14 -14
  234. package/src/lib/shared/BinaryStream.ts +14 -14
  235. package/src/lib/shared/BinaryStreamManager.ts +14 -14
  236. package/src/lib/shared/Channel.impl.ts +14 -14
  237. package/src/lib/shared/Constants.ts +14 -14
  238. package/src/lib/shared/Encodings/index.ts +14 -14
  239. package/src/lib/shared/Encodings/v1/EncoderV1.ts +14 -14
  240. package/src/lib/shared/Encodings/v1/Protocol.v1.decls.ts +14 -14
  241. package/src/lib/shared/Encodings/v1/index.ts +14 -14
  242. package/src/lib/shared/Encodings/v2/Constants.v2.ts +14 -14
  243. package/src/lib/shared/Encodings/v2/DecoderV2.ts +14 -14
  244. package/src/lib/shared/Encodings/v2/EncoderV2.ts +14 -14
  245. package/src/lib/shared/Encodings/v2/Encoding.v2.decl.ts +14 -14
  246. package/src/lib/shared/Encodings/v2/index.ts +14 -14
  247. package/src/lib/shared/Errors.ts +14 -14
  248. package/src/lib/shared/Shared.decl.ts +14 -14
  249. package/src/lib/shared/Utils.ts +14 -14
  250. package/src/lib/shared/index.ts +14 -14
  251. package/src/lib/transporters/Transporter.decl.ts +14 -14
  252. package/src/lib/transporters/http-listener/AbstractHttpListener.ts +14 -14
  253. package/src/lib/transporters/http-listener/Http.Decl.ts +14 -14
  254. package/src/lib/transporters/http-listener/HttpListener.ts +15 -14
  255. package/src/lib/transporters/http-listener/HttpUnixSocketListener.ts +14 -14
  256. package/src/lib/transporters/http-listener/HttpsListener.ts +14 -14
  257. package/src/lib/transporters/http-listener/index.ts +14 -14
  258. package/src/lib/transporters/index.ts +14 -14
  259. package/src/lib/transporters/legacy-http/LegacyHttp.Server.ts +14 -14
  260. package/src/lib/transporters/legacy-http/LegacyHttp.Transporter.ts +14 -14
  261. package/src/lib/transporters/legacy-http/index.ts +14 -14
  262. package/src/lib/transporters/lwdfx/LwDFX.Tcp.Client.ts +14 -14
  263. package/src/lib/transporters/lwdfx/LwDFX.Tcp.Server.ts +14 -14
  264. package/src/lib/transporters/lwdfx/LwDFX.Tls.Client.ts +14 -14
  265. package/src/lib/transporters/lwdfx/LwDFX.Tls.Server.ts +14 -14
  266. package/src/lib/transporters/lwdfx/LwDFX.Transporter.ts +14 -14
  267. package/src/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.ts +14 -14
  268. package/src/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.ts +14 -14
  269. package/src/lib/transporters/lwdfx/LwDFX.decl.ts +14 -14
  270. package/src/lib/transporters/lwdfx/index.ts +14 -14
  271. package/src/lib/transporters/memory/Memory.Impl.ts +14 -14
  272. package/src/lib/transporters/memory/index.ts +14 -14
  273. package/src/lib/transporters/websocket/WebSocket.Client.ts +16 -16
  274. package/src/lib/transporters/websocket/WebSocket.Server.ts +15 -15
  275. package/src/lib/transporters/websocket/WebSocket.Transporter.ts +17 -17
  276. package/src/lib/transporters/websocket/WebSocket.decl.ts +14 -14
  277. package/src/lib/transporters/websocket/index.ts +14 -14
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
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
- * https://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
- */
3
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
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
+ * https://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
+ */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.WSS_PROTOCOL_NAME = exports.WS_PROTOCOL_NAME = exports.WEBSOCKET_SUB_PROTOCOL = void 0;
19
19
  exports.WEBSOCKET_SUB_PROTOCOL = 'televoke2';
@@ -1 +1 @@
1
- {"version":3,"file":"WebSocket.decl.js","sourceRoot":"","sources":["../../../src/lib/transporters/websocket/WebSocket.decl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAEW,QAAA,sBAAsB,GAAG,WAAW,CAAC;AAErC,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAExB,QAAA,iBAAiB,GAAG,KAAK,CAAC"}
1
+ {"version":3,"file":"WebSocket.decl.js","sourceRoot":"","sources":["../../../src/lib/transporters/websocket/WebSocket.decl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEU,QAAA,sBAAsB,GAAG,WAAW,CAAC;AAErC,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAExB,QAAA,iBAAiB,GAAG,KAAK,CAAC"}
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
  export * from './WebSocket.Client';
17
17
  export * from './WebSocket.Server';
18
18
  export * from './WebSocket.decl';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transporters/websocket/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE;AAEF,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transporters/websocket/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
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
- * https://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
- */
3
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
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
+ * https://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
+ */
17
17
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
18
  if (k2 === undefined) k2 = k;
19
19
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/transporters/websocket/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;;;;;;;;;;;;;;AAEF,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/transporters/websocket/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litert/televoke",
3
- "version": "1.0.0-9",
3
+ "version": "1.0.2",
4
4
  "description": "A simple RPC service framework.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@
10
10
  "build-watch": "tsc -v && tsc -w -p .",
11
11
  "typecheck": "tsc -p tsconfig.json --noEmit",
12
12
  "test": "mocha",
13
- "prepare": "husky install",
13
+ "prepare": "husky",
14
14
  "clean": "rm -rf lib examples benchmarks test",
15
15
  "lint": "eslint -c .eslintrc --ext '.ts' ./src"
16
16
  },
@@ -32,15 +32,15 @@
32
32
  "types": "lib/index.d.ts",
33
33
  "typings": "lib/index.d.ts",
34
34
  "devDependencies": {
35
- "@commitlint/cli": "^18.4.3",
36
- "@commitlint/config-conventional": "^18.4.3",
35
+ "@commitlint/cli": "^18.6.1",
36
+ "@commitlint/config-conventional": "^18.6.2",
37
37
  "@litert/eslint-plugin-rules": "^0.1.6",
38
38
  "@litert/lwdfx": "^1.1.3",
39
- "@litert/websocket": "^0.1.1",
39
+ "@litert/websocket": "^0.2.0",
40
40
  "@types/mocha": "^10.0.6",
41
- "@types/node": "^20.10.4",
42
- "husky": "^8.0.3",
43
- "mocha": "^10.2.0",
41
+ "@types/node": "^20.11.19",
42
+ "husky": "^9.0.11",
43
+ "mocha": "^10.3.0",
44
44
  "typescript": "^5.3.3"
45
45
  },
46
46
  "engines": {
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import type * as Shared from '../shared';
18
18
 
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as Shared from '../shared';
18
18
  import type * as dC from './Client.decl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as $Http from 'http';
18
18
  import * as $Https from 'https';
@@ -128,9 +128,20 @@ class TvLegacyHttpClient extends EventEmitter implements C.IClient<any> {
128
128
  },
129
129
  }, (resp) => {
130
130
 
131
+ if (resp.statusCode !== 200) {
132
+
133
+ resp.socket.destroy();
134
+ reject(new Shared.errors.invalid_response({
135
+ reason: 'invalid_status_code',
136
+ statusCode: resp.statusCode
137
+ }));
138
+ return;
139
+ }
140
+
131
141
  if (!resp.headers[HTTP_HEADER_CONTENT_LENGTH]) {
132
142
 
133
- reject(new Shared.errors.invalid_response());
143
+ resp.socket.destroy();
144
+ reject(new Shared.errors.invalid_response({ reason: 'missing_content_length' }));
134
145
  return;
135
146
  }
136
147
 
@@ -138,6 +149,7 @@ class TvLegacyHttpClient extends EventEmitter implements C.IClient<any> {
138
149
 
139
150
  if (!Number.isSafeInteger(length) || length > v1.MAX_PACKET_SIZE) { // Maximum request packet is 64MB
140
151
 
152
+ resp.socket.destroy();
141
153
  reject(new Shared.errors.invalid_packet({ reason: 'packet_too_large' }));
142
154
  return;
143
155
  }
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  export * from './Client.decl';
18
18
  export * from './JsonApiClient.impl';
package/src/lib/index.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  export * from './shared';
18
18
  export * as Servers from './server';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as Shared from '../shared';
18
18
  import { EventEmitter } from 'node:events';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as Shared from '../shared';
18
18
 
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import type * as dS from './Server.decl';
18
18
  import * as Shared from '../shared';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import type * as dS from './Server.decl';
18
18
  import { AbstractTvChannelV2 } from '../shared/Channel.impl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import type * as dS from './Server.decl';
18
18
  import * as Shared from '../shared';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  export * from './Server.decl';
18
18
  export * from './Server.impl';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as Shared from './Shared.decl';
18
18
  import * as E from './Errors';
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright 2023 Angus.Fenying <fenying@litert.org>
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * https://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
 
17
17
  import * as Shared from './Shared.decl';
18
18
  import * as Constants from './Constants';