@litert/televoke 1.1.0 → 1.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 (206) hide show
  1. package/CHANGES.md +9 -0
  2. package/lib/client/Client.decl.d.ts +1 -1
  3. package/lib/client/Client.decl.js +1 -1
  4. package/lib/client/JsonApiClient.impl.d.ts +1 -1
  5. package/lib/client/JsonApiClient.impl.js +1 -1
  6. package/lib/client/index.d.ts +1 -1
  7. package/lib/client/index.js +1 -1
  8. package/lib/index.d.ts +1 -1
  9. package/lib/index.js +1 -1
  10. package/lib/server/LegacyServerChannel.impl.d.ts +1 -1
  11. package/lib/server/LegacyServerChannel.impl.js +1 -1
  12. package/lib/server/Server.decl.d.ts +1 -1
  13. package/lib/server/Server.decl.js +1 -1
  14. package/lib/server/Server.impl.d.ts +1 -1
  15. package/lib/server/Server.impl.js +1 -1
  16. package/lib/server/ServerChannel.d.ts +1 -1
  17. package/lib/server/ServerChannel.js +1 -1
  18. package/lib/server/SimpleJsonApiRouter.d.ts +1 -1
  19. package/lib/server/SimpleJsonApiRouter.js +1 -1
  20. package/lib/server/index.d.ts +1 -1
  21. package/lib/server/index.js +1 -1
  22. package/lib/shared/BinaryStream.d.ts +1 -1
  23. package/lib/shared/BinaryStream.js +1 -1
  24. package/lib/shared/BinaryStreamManager.d.ts +1 -1
  25. package/lib/shared/BinaryStreamManager.js +1 -1
  26. package/lib/shared/Channel.impl.d.ts +1 -1
  27. package/lib/shared/Channel.impl.js +1 -1
  28. package/lib/shared/Constants.d.ts +1 -1
  29. package/lib/shared/Constants.js +1 -1
  30. package/lib/shared/Encodings/index.d.ts +1 -1
  31. package/lib/shared/Encodings/index.js +1 -1
  32. package/lib/shared/Encodings/v1/EncoderV1.d.ts +1 -1
  33. package/lib/shared/Encodings/v1/EncoderV1.js +1 -1
  34. package/lib/shared/Encodings/v1/Protocol.v1.decls.d.ts +1 -1
  35. package/lib/shared/Encodings/v1/Protocol.v1.decls.js +1 -1
  36. package/lib/shared/Encodings/v1/index.d.ts +1 -1
  37. package/lib/shared/Encodings/v1/index.js +1 -1
  38. package/lib/shared/Encodings/v2/Constants.v2.d.ts +1 -1
  39. package/lib/shared/Encodings/v2/Constants.v2.js +1 -1
  40. package/lib/shared/Encodings/v2/DecoderV2.d.ts +1 -1
  41. package/lib/shared/Encodings/v2/DecoderV2.js +1 -1
  42. package/lib/shared/Encodings/v2/EncoderV2.d.ts +1 -1
  43. package/lib/shared/Encodings/v2/EncoderV2.js +1 -1
  44. package/lib/shared/Encodings/v2/Encoding.v2.decl.d.ts +1 -1
  45. package/lib/shared/Encodings/v2/Encoding.v2.decl.js +1 -1
  46. package/lib/shared/Encodings/v2/index.d.ts +1 -1
  47. package/lib/shared/Encodings/v2/index.js +1 -1
  48. package/lib/shared/Errors.d.ts +1 -1
  49. package/lib/shared/Errors.d.ts.map +1 -1
  50. package/lib/shared/Errors.js +1 -1
  51. package/lib/shared/Shared.decl.d.ts +2 -2
  52. package/lib/shared/Shared.decl.d.ts.map +1 -1
  53. package/lib/shared/Shared.decl.js +1 -1
  54. package/lib/shared/Utils.d.ts +1 -1
  55. package/lib/shared/Utils.js +1 -1
  56. package/lib/shared/index.d.ts +1 -1
  57. package/lib/shared/index.js +1 -1
  58. package/lib/transporters/Transporter.decl.d.ts +1 -1
  59. package/lib/transporters/Transporter.decl.js +1 -1
  60. package/lib/transporters/http-listener/AbstractHttpListener.d.ts +2 -2
  61. package/lib/transporters/http-listener/AbstractHttpListener.d.ts.map +1 -1
  62. package/lib/transporters/http-listener/AbstractHttpListener.js +10 -6
  63. package/lib/transporters/http-listener/AbstractHttpListener.js.map +1 -1
  64. package/lib/transporters/http-listener/Http.Decl.d.ts +1 -5
  65. package/lib/transporters/http-listener/Http.Decl.d.ts.map +1 -1
  66. package/lib/transporters/http-listener/Http.Decl.js +2 -21
  67. package/lib/transporters/http-listener/Http.Decl.js.map +1 -1
  68. package/lib/transporters/http-listener/HttpListener.d.ts +1 -1
  69. package/lib/transporters/http-listener/HttpListener.d.ts.map +1 -1
  70. package/lib/transporters/http-listener/HttpListener.js +4 -2
  71. package/lib/transporters/http-listener/HttpListener.js.map +1 -1
  72. package/lib/transporters/http-listener/HttpUnixSocketListener.d.ts +1 -1
  73. package/lib/transporters/http-listener/HttpUnixSocketListener.d.ts.map +1 -1
  74. package/lib/transporters/http-listener/HttpUnixSocketListener.js +4 -2
  75. package/lib/transporters/http-listener/HttpUnixSocketListener.js.map +1 -1
  76. package/lib/transporters/http-listener/HttpsListener.d.ts +1 -1
  77. package/lib/transporters/http-listener/HttpsListener.d.ts.map +1 -1
  78. package/lib/transporters/http-listener/HttpsListener.js +6 -4
  79. package/lib/transporters/http-listener/HttpsListener.js.map +1 -1
  80. package/lib/transporters/http-listener/index.d.ts +1 -1
  81. package/lib/transporters/http-listener/index.js +1 -1
  82. package/lib/transporters/index.d.ts +1 -1
  83. package/lib/transporters/index.js +1 -1
  84. package/lib/transporters/legacy-http/LegacyHttp.Client.Native.d.ts +12 -2
  85. package/lib/transporters/legacy-http/LegacyHttp.Client.Native.d.ts.map +1 -1
  86. package/lib/transporters/legacy-http/LegacyHttp.Client.Native.js +11 -1
  87. package/lib/transporters/legacy-http/LegacyHttp.Client.Native.js.map +1 -1
  88. package/lib/transporters/legacy-http/LegacyHttp.Server.d.ts +29 -1
  89. package/lib/transporters/legacy-http/LegacyHttp.Server.d.ts.map +1 -1
  90. package/lib/transporters/legacy-http/LegacyHttp.Server.js +35 -10
  91. package/lib/transporters/legacy-http/LegacyHttp.Server.js.map +1 -1
  92. package/lib/transporters/legacy-http/LegacyHttp.Transporter.d.ts +1 -1
  93. package/lib/transporters/legacy-http/LegacyHttp.Transporter.js +1 -1
  94. package/lib/transporters/legacy-http/index.d.ts +1 -1
  95. package/lib/transporters/legacy-http/index.js +1 -1
  96. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.d.ts +1 -1
  97. package/lib/transporters/lwdfx/LwDFX.Tcp.Client.js +1 -1
  98. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.d.ts +1 -1
  99. package/lib/transporters/lwdfx/LwDFX.Tcp.Server.js +1 -1
  100. package/lib/transporters/lwdfx/LwDFX.Tls.Client.d.ts +1 -1
  101. package/lib/transporters/lwdfx/LwDFX.Tls.Client.js +1 -1
  102. package/lib/transporters/lwdfx/LwDFX.Tls.Server.d.ts +1 -1
  103. package/lib/transporters/lwdfx/LwDFX.Tls.Server.js +1 -1
  104. package/lib/transporters/lwdfx/LwDFX.Transporter.d.ts +1 -1
  105. package/lib/transporters/lwdfx/LwDFX.Transporter.js +1 -1
  106. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.d.ts +1 -1
  107. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.js +1 -1
  108. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.d.ts +1 -1
  109. package/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.js +1 -1
  110. package/lib/transporters/lwdfx/LwDFX.decl.d.ts +1 -1
  111. package/lib/transporters/lwdfx/LwDFX.decl.js +1 -1
  112. package/lib/transporters/lwdfx/index.d.ts +1 -1
  113. package/lib/transporters/lwdfx/index.js +1 -1
  114. package/lib/transporters/memory/Memory.Impl.d.ts +1 -1
  115. package/lib/transporters/memory/Memory.Impl.js +1 -1
  116. package/lib/transporters/memory/index.d.ts +1 -1
  117. package/lib/transporters/memory/index.js +1 -1
  118. package/lib/transporters/websocket/WebSocket.Client.d.ts +18 -3
  119. package/lib/transporters/websocket/WebSocket.Client.d.ts.map +1 -1
  120. package/lib/transporters/websocket/WebSocket.Client.js +21 -1
  121. package/lib/transporters/websocket/WebSocket.Client.js.map +1 -1
  122. package/lib/transporters/websocket/WebSocket.Server.d.ts +24 -2
  123. package/lib/transporters/websocket/WebSocket.Server.d.ts.map +1 -1
  124. package/lib/transporters/websocket/WebSocket.Server.js +29 -10
  125. package/lib/transporters/websocket/WebSocket.Server.js.map +1 -1
  126. package/lib/transporters/websocket/WebSocket.Transporter.d.ts +1 -1
  127. package/lib/transporters/websocket/WebSocket.Transporter.js +1 -1
  128. package/lib/transporters/websocket/WebSocket.decl.d.ts +1 -1
  129. package/lib/transporters/websocket/WebSocket.decl.js +1 -1
  130. package/lib/transporters/websocket/index.d.ts +1 -1
  131. package/lib/transporters/websocket/index.js +1 -1
  132. package/lib/transporters/worker-thread/WorkerThread.Client.d.ts +1 -1
  133. package/lib/transporters/worker-thread/WorkerThread.Client.js +1 -1
  134. package/lib/transporters/worker-thread/WorkerThread.Constants.d.ts +1 -1
  135. package/lib/transporters/worker-thread/WorkerThread.Constants.js +1 -1
  136. package/lib/transporters/worker-thread/WorkerThread.Errors.d.ts +1 -1
  137. package/lib/transporters/worker-thread/WorkerThread.Errors.d.ts.map +1 -1
  138. package/lib/transporters/worker-thread/WorkerThread.Errors.js +1 -1
  139. package/lib/transporters/worker-thread/WorkerThread.Server.d.ts +1 -1
  140. package/lib/transporters/worker-thread/WorkerThread.Server.js +1 -1
  141. package/lib/transporters/worker-thread/WorkerThread.Transporter.d.ts +1 -1
  142. package/lib/transporters/worker-thread/WorkerThread.Transporter.js +1 -1
  143. package/lib/transporters/worker-thread/index.d.ts +1 -1
  144. package/lib/transporters/worker-thread/index.js +1 -1
  145. package/package.json +5 -5
  146. package/src/lib/client/Client.decl.ts +1 -1
  147. package/src/lib/client/JsonApiClient.impl.ts +1 -1
  148. package/src/lib/client/index.ts +1 -1
  149. package/src/lib/index.ts +1 -1
  150. package/src/lib/server/LegacyServerChannel.impl.ts +1 -1
  151. package/src/lib/server/Server.decl.ts +1 -1
  152. package/src/lib/server/Server.impl.ts +1 -1
  153. package/src/lib/server/ServerChannel.ts +1 -1
  154. package/src/lib/server/SimpleJsonApiRouter.ts +1 -1
  155. package/src/lib/server/index.ts +1 -1
  156. package/src/lib/shared/BinaryStream.ts +1 -1
  157. package/src/lib/shared/BinaryStreamManager.ts +1 -1
  158. package/src/lib/shared/Channel.impl.ts +1 -1
  159. package/src/lib/shared/Constants.ts +1 -1
  160. package/src/lib/shared/Encodings/index.ts +1 -1
  161. package/src/lib/shared/Encodings/v1/EncoderV1.ts +1 -1
  162. package/src/lib/shared/Encodings/v1/Protocol.v1.decls.ts +1 -1
  163. package/src/lib/shared/Encodings/v1/index.ts +1 -1
  164. package/src/lib/shared/Encodings/v2/Constants.v2.ts +1 -1
  165. package/src/lib/shared/Encodings/v2/DecoderV2.ts +1 -1
  166. package/src/lib/shared/Encodings/v2/EncoderV2.ts +1 -1
  167. package/src/lib/shared/Encodings/v2/Encoding.v2.decl.ts +1 -1
  168. package/src/lib/shared/Encodings/v2/index.ts +1 -1
  169. package/src/lib/shared/Errors.ts +1 -1
  170. package/src/lib/shared/Shared.decl.ts +3 -3
  171. package/src/lib/shared/Utils.ts +1 -1
  172. package/src/lib/shared/index.ts +1 -1
  173. package/src/lib/transporters/Transporter.decl.ts +1 -1
  174. package/src/lib/transporters/http-listener/AbstractHttpListener.ts +14 -6
  175. package/src/lib/transporters/http-listener/Http.Decl.ts +1 -26
  176. package/src/lib/transporters/http-listener/HttpListener.ts +10 -2
  177. package/src/lib/transporters/http-listener/HttpUnixSocketListener.ts +10 -2
  178. package/src/lib/transporters/http-listener/HttpsListener.ts +12 -4
  179. package/src/lib/transporters/http-listener/index.ts +1 -1
  180. package/src/lib/transporters/index.ts +1 -1
  181. package/src/lib/transporters/legacy-http/LegacyHttp.Client.Native.ts +30 -3
  182. package/src/lib/transporters/legacy-http/LegacyHttp.Server.ts +57 -9
  183. package/src/lib/transporters/legacy-http/LegacyHttp.Transporter.ts +1 -1
  184. package/src/lib/transporters/legacy-http/index.ts +1 -1
  185. package/src/lib/transporters/lwdfx/LwDFX.Tcp.Client.ts +1 -1
  186. package/src/lib/transporters/lwdfx/LwDFX.Tcp.Server.ts +1 -1
  187. package/src/lib/transporters/lwdfx/LwDFX.Tls.Client.ts +1 -1
  188. package/src/lib/transporters/lwdfx/LwDFX.Tls.Server.ts +1 -1
  189. package/src/lib/transporters/lwdfx/LwDFX.Transporter.ts +1 -1
  190. package/src/lib/transporters/lwdfx/LwDFX.UnixSocket.Client.ts +1 -1
  191. package/src/lib/transporters/lwdfx/LwDFX.UnixSocket.Server.ts +1 -1
  192. package/src/lib/transporters/lwdfx/LwDFX.decl.ts +1 -1
  193. package/src/lib/transporters/lwdfx/index.ts +1 -1
  194. package/src/lib/transporters/memory/Memory.Impl.ts +1 -1
  195. package/src/lib/transporters/memory/index.ts +1 -1
  196. package/src/lib/transporters/websocket/WebSocket.Client.ts +52 -7
  197. package/src/lib/transporters/websocket/WebSocket.Server.ts +55 -9
  198. package/src/lib/transporters/websocket/WebSocket.Transporter.ts +1 -1
  199. package/src/lib/transporters/websocket/WebSocket.decl.ts +1 -1
  200. package/src/lib/transporters/websocket/index.ts +1 -1
  201. package/src/lib/transporters/worker-thread/WorkerThread.Client.ts +1 -1
  202. package/src/lib/transporters/worker-thread/WorkerThread.Constants.ts +1 -1
  203. package/src/lib/transporters/worker-thread/WorkerThread.Errors.ts +1 -1
  204. package/src/lib/transporters/worker-thread/WorkerThread.Server.ts +1 -1
  205. package/src/lib/transporters/worker-thread/WorkerThread.Transporter.ts +1 -1
  206. package/src/lib/transporters/worker-thread/index.ts +1 -1
package/CHANGES.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changes Logs
2
2
 
3
+ ## v1.2.0
4
+
5
+ - fix(protocol): the built-in HTTP listener should not listen `upgrade` event by default.
6
+ - feat(protocol): allow use custom HTTP listener [televoke/v1].
7
+ - feat(protocol): allow use custom HTTP listener for WebSocket [televoke/v2].
8
+ - feat(protocol): allow update HTTP headers for clients [televoke/v1].
9
+ - feat(protocol): allow update HTTP headers for clients for WebSocket [televoke/v2].
10
+ - fix(protocol): fixed incorrect brace-pair detection of request body [televoke/1].
11
+
3
12
  ## v1.1.0
4
13
 
5
14
  - feat(protocol): added experimental supports for transports between worker thread.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1 +1 @@
1
- {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/lib/shared/Errors.ts"],"names":[],"mappings":"AAAA;;;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* Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -314,6 +314,6 @@ export interface IChannelBase<TEvents extends IDefaultEvents> extends IEventList
314
314
  /**
315
315
  * Close the channel.
316
316
  */
317
- close(): void;
317
+ close(): void | Promise<void>;
318
318
  }
319
319
  //# sourceMappingURL=Shared.decl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shared.decl.d.ts","sourceRoot":"","sources":["../../src/lib/shared/Shared.decl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,MAAM,GAAG,CAAC,KAAK,SAAS,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;AAEtE,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,GAAG,EAAE,IAAI,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAG5D,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AAEzB,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9F,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,GAAG,SAAS,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAA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Q,CAAC,uBAAuB,EAAE,OAAO,CAAC;IAE1C;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEtC;;;;OAIG;IACH,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE7C;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjD;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExF;;OAEG;IACH,KAAK,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
2
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ import { EventEmitter } from 'node:events';
19
19
  export declare abstract class AbstractHttpListener extends EventEmitter implements dH.IHttpListener {
20
20
  protected _gateway: Http.Server | null;
21
21
  port: number;
22
- protected _upgradeProcessor: dH.IUpgradeProcessor;
22
+ protected _upgradeProcessor: dH.IUpgradeProcessor | null;
23
23
  protected _apiProcessor: dH.ILegacyHttpApiProcessor;
24
24
  setLegacyApiProcessor(processor: dH.ILegacyHttpApiProcessor | null): void;
25
25
  setUpgradeProcessor(processor: dH.IUpgradeProcessor | null): void;
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractHttpListener.d.ts","sourceRoot":"","sources":["../../../src/lib/transporters/http-listener/AbstractHttpListener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,8BAAsB,oBAAqB,SAAQ,YAAa,YAAW,EAAE,CAAC,aAAa;IAEvF,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAQ;IAEvC,IAAI,EAAE,MAAM,CAAK;IAExB,SAAS,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAgC;IAEjF,SAAS,CAAC,aAAa,EAAE,EAAE,CAAC,uBAAuB,CAAwC;IAEpF,qBAAqB,CAAC,SAAS,EAAE,EAAE,CAAC,uBAAuB,GAAG,IAAI,GAAG,IAAI;IASzE,mBAAmB,CAAC,SAAS,EAAE,EAAE,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI;IASxE,IAAW,OAAO,IAAI,OAAO,CAG5B;aAEe,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;aAEtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CACxC"}
1
+ {"version":3,"file":"AbstractHttpListener.d.ts","sourceRoot":"","sources":["../../../src/lib/transporters/http-listener/AbstractHttpListener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,8BAAsB,oBAAqB,SAAQ,YAAa,YAAW,EAAE,CAAC,aAAa;IAEvF,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAQ;IAEvC,IAAI,EAAE,MAAM,CAAK;IAExB,SAAS,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,GAAG,IAAI,CAAQ;IAEhE,SAAS,CAAC,aAAa,EAAE,EAAE,CAAC,uBAAuB,CAAwC;IAEpF,qBAAqB,CAAC,SAAS,EAAE,EAAE,CAAC,uBAAuB,GAAG,IAAI,GAAG,IAAI;IASzE,mBAAmB,CAAC,SAAS,EAAE,EAAE,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI;IAiBxE,IAAW,OAAO,IAAI,OAAO,CAG5B;aAEe,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;aAEtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CACxC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright 2024 Angus.Fenying <fenying@litert.org>
3
+ * Copyright 2025 Angus.Fenying <fenying@litert.org>
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ class AbstractHttpListener extends node_events_1.EventEmitter {
23
23
  super(...arguments);
24
24
  this._gateway = null;
25
25
  this.port = 0;
26
- this._upgradeProcessor = dH.DEFAULT_UPGRADE_PROCESSOR;
26
+ this._upgradeProcessor = null;
27
27
  this._apiProcessor = dH.DEFAULT_LEGACY_HTTP_API_PROCESSOR;
28
28
  }
29
29
  setLegacyApiProcessor(processor) {
@@ -33,10 +33,14 @@ class AbstractHttpListener extends node_events_1.EventEmitter {
33
33
  .addListener('request', this._apiProcessor);
34
34
  }
35
35
  setUpgradeProcessor(processor) {
36
- this._upgradeProcessor = processor ?? dH.DEFAULT_UPGRADE_PROCESSOR;
37
- this._gateway
38
- ?.removeAllListeners('upgrade')
39
- .addListener('upgrade', this._upgradeProcessor);
36
+ this._upgradeProcessor = processor;
37
+ if (!this._gateway) {
38
+ return;
39
+ }
40
+ this._gateway.removeAllListeners('upgrade');
41
+ if (this._upgradeProcessor !== null) {
42
+ this._gateway.addListener('upgrade', this._upgradeProcessor);
43
+ }
40
44
  }
41
45
  get running() {
42
46
  return !!this._gateway;
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractHttpListener.js","sourceRoot":"","sources":["../../../src/lib/transporters/http-listener/AbstractHttpListener.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,kCAAkC;AAClC,6CAA2C;AAE3C,MAAsB,oBAAqB,SAAQ,0BAAY;IAA/D;;QAEc,aAAQ,GAAuB,IAAI,CAAC;QAEvC,SAAI,GAAW,CAAC,CAAC;QAEd,sBAAiB,GAAyB,EAAE,CAAC,yBAAyB,CAAC;QAEvE,kBAAa,GAA+B,EAAE,CAAC,iCAAiC,CAAC;IA4B/F,CAAC;IA1BU,qBAAqB,CAAC,SAA4C;QAErE,IAAI,CAAC,aAAa,GAAG,SAAS,IAAI,EAAE,CAAC,iCAAiC,CAAC;QAEvE,IAAI,CAAC,QAAQ;YACT,EAAE,kBAAkB,CAAC,SAAS,CAAC;aAC9B,WAAW,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpD,CAAC;IAEM,mBAAmB,CAAC,SAAsC;QAE7D,IAAI,CAAC,iBAAiB,GAAG,SAAS,IAAI,EAAE,CAAC,yBAAyB,CAAC;QAEnE,IAAI,CAAC,QAAQ;YACT,EAAE,kBAAkB,CAAC,SAAS,CAAC;aAC9B,WAAW,CAAC,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACxD,CAAC;IAED,IAAW,OAAO;QAEd,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC3B,CAAC;CAKJ;AApCD,oDAoCC"}
1
+ {"version":3,"file":"AbstractHttpList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