vxrn 0.0.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 (311) hide show
  1. package/dist/create.js +349 -0
  2. package/dist/create.js.map +6 -0
  3. package/dist/create.native.js +350 -0
  4. package/dist/create.native.js.map +6 -0
  5. package/dist/dev/clientInjectPlugin.js +71 -0
  6. package/dist/dev/clientInjectPlugin.js.map +6 -0
  7. package/dist/dev/clientInjectPlugin.native.js +72 -0
  8. package/dist/dev/clientInjectPlugin.native.js.map +6 -0
  9. package/dist/dev/createDevServer.js +127 -0
  10. package/dist/dev/createDevServer.js.map +6 -0
  11. package/dist/dev/createDevServer.native.js +128 -0
  12. package/dist/dev/createDevServer.native.js.map +6 -0
  13. package/dist/getVitePath.js +54 -0
  14. package/dist/getVitePath.js.map +6 -0
  15. package/dist/getVitePath.native.js +55 -0
  16. package/dist/getVitePath.native.js.map +6 -0
  17. package/dist/index.js +27 -0
  18. package/dist/index.js.map +6 -0
  19. package/dist/index.native.js +28 -0
  20. package/dist/index.native.js.map +6 -0
  21. package/dist/nativePlugin.js +93 -0
  22. package/dist/nativePlugin.js.map +6 -0
  23. package/dist/nativePlugin.native.js +94 -0
  24. package/dist/nativePlugin.native.js.map +6 -0
  25. package/dist/start.js +348 -0
  26. package/dist/start.js.map +6 -0
  27. package/dist/start.native.js +349 -0
  28. package/dist/start.native.js.map +6 -0
  29. package/dist/types.js +14 -0
  30. package/dist/types.js.map +6 -0
  31. package/dist/types.native.js +15 -0
  32. package/dist/types.native.js.map +6 -0
  33. package/dist/utils/constants.js +25 -0
  34. package/dist/utils/constants.js.map +6 -0
  35. package/dist/utils/constants.native.js +26 -0
  36. package/dist/utils/constants.native.js.map +6 -0
  37. package/dist/utils.js +33 -0
  38. package/dist/utils.js.map +6 -0
  39. package/dist/utils.native.js +34 -0
  40. package/dist/utils.native.js.map +6 -0
  41. package/dist/vendor/debugger-app/index.js +23 -0
  42. package/dist/vendor/debugger-app/index.js.map +6 -0
  43. package/dist/vendor/debugger-app/index.native.js +24 -0
  44. package/dist/vendor/debugger-app/index.native.js.map +6 -0
  45. package/dist/vendor/debugger-app/src/debuggerWorker.js +47 -0
  46. package/dist/vendor/debugger-app/src/debuggerWorker.js.map +6 -0
  47. package/dist/vendor/debugger-app/src/debuggerWorker.native.js +48 -0
  48. package/dist/vendor/debugger-app/src/debuggerWorker.native.js.map +6 -0
  49. package/dist/vendor/debugger-app/src/index.css +41 -0
  50. package/dist/vendor/debugger-app/src/index.css.map +6 -0
  51. package/dist/vendor/debugger-app/src/index.js +105 -0
  52. package/dist/vendor/debugger-app/src/index.js.map +6 -0
  53. package/dist/vendor/debugger-app/src/index.native.js +106 -0
  54. package/dist/vendor/debugger-app/src/index.native.js.map +6 -0
  55. package/dist/vendor/repack/dev-server/src/createServer.js +108 -0
  56. package/dist/vendor/repack/dev-server/src/createServer.js.map +6 -0
  57. package/dist/vendor/repack/dev-server/src/createServer.native.js +109 -0
  58. package/dist/vendor/repack/dev-server/src/createServer.native.js.map +6 -0
  59. package/dist/vendor/repack/dev-server/src/index.js +21 -0
  60. package/dist/vendor/repack/dev-server/src/index.js.map +6 -0
  61. package/dist/vendor/repack/dev-server/src/index.native.js +22 -0
  62. package/dist/vendor/repack/dev-server/src/index.native.js.map +6 -0
  63. package/dist/vendor/repack/dev-server/src/plugins/api/apiPlugin.js +51 -0
  64. package/dist/vendor/repack/dev-server/src/plugins/api/apiPlugin.js.map +6 -0
  65. package/dist/vendor/repack/dev-server/src/plugins/api/apiPlugin.native.js +52 -0
  66. package/dist/vendor/repack/dev-server/src/plugins/api/apiPlugin.native.js.map +6 -0
  67. package/dist/vendor/repack/dev-server/src/plugins/api/index.js +29 -0
  68. package/dist/vendor/repack/dev-server/src/plugins/api/index.js.map +6 -0
  69. package/dist/vendor/repack/dev-server/src/plugins/api/index.native.js +30 -0
  70. package/dist/vendor/repack/dev-server/src/plugins/api/index.native.js.map +6 -0
  71. package/dist/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.js +77 -0
  72. package/dist/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.js.map +6 -0
  73. package/dist/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.native.js +78 -0
  74. package/dist/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.native.js.map +6 -0
  75. package/dist/vendor/repack/dev-server/src/plugins/compiler/index.js +33 -0
  76. package/dist/vendor/repack/dev-server/src/plugins/compiler/index.js.map +6 -0
  77. package/dist/vendor/repack/dev-server/src/plugins/compiler/index.native.js +34 -0
  78. package/dist/vendor/repack/dev-server/src/plugins/compiler/index.native.js.map +6 -0
  79. package/dist/vendor/repack/dev-server/src/plugins/compiler/types.js +14 -0
  80. package/dist/vendor/repack/dev-server/src/plugins/compiler/types.js.map +6 -0
  81. package/dist/vendor/repack/dev-server/src/plugins/compiler/types.native.js +15 -0
  82. package/dist/vendor/repack/dev-server/src/plugins/compiler/types.native.js.map +6 -0
  83. package/dist/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.js +95 -0
  84. package/dist/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.js.map +6 -0
  85. package/dist/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.native.js +96 -0
  86. package/dist/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.native.js.map +6 -0
  87. package/dist/vendor/repack/dev-server/src/plugins/devtools/index.js +29 -0
  88. package/dist/vendor/repack/dev-server/src/plugins/devtools/index.js.map +6 -0
  89. package/dist/vendor/repack/dev-server/src/plugins/devtools/index.native.js +30 -0
  90. package/dist/vendor/repack/dev-server/src/plugins/devtools/index.native.js.map +6 -0
  91. package/dist/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.js +36 -0
  92. package/dist/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.js.map +6 -0
  93. package/dist/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.native.js +37 -0
  94. package/dist/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.native.js.map +6 -0
  95. package/dist/vendor/repack/dev-server/src/plugins/favicon/index.js +29 -0
  96. package/dist/vendor/repack/dev-server/src/plugins/favicon/index.js.map +6 -0
  97. package/dist/vendor/repack/dev-server/src/plugins/favicon/index.native.js +30 -0
  98. package/dist/vendor/repack/dev-server/src/plugins/favicon/index.native.js.map +6 -0
  99. package/dist/vendor/repack/dev-server/src/plugins/multipart/index.js +33 -0
  100. package/dist/vendor/repack/dev-server/src/plugins/multipart/index.js.map +6 -0
  101. package/dist/vendor/repack/dev-server/src/plugins/multipart/index.native.js +34 -0
  102. package/dist/vendor/repack/dev-server/src/plugins/multipart/index.native.js.map +6 -0
  103. package/dist/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.js +61 -0
  104. package/dist/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.js.map +6 -0
  105. package/dist/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.native.js +62 -0
  106. package/dist/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.native.js.map +6 -0
  107. package/dist/vendor/repack/dev-server/src/plugins/multipart/types.js +14 -0
  108. package/dist/vendor/repack/dev-server/src/plugins/multipart/types.js.map +6 -0
  109. package/dist/vendor/repack/dev-server/src/plugins/multipart/types.native.js +15 -0
  110. package/dist/vendor/repack/dev-server/src/plugins/multipart/types.native.js.map +6 -0
  111. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.js +185 -0
  112. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.js.map +6 -0
  113. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.native.js +186 -0
  114. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.native.js.map +6 -0
  115. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/index.js +35 -0
  116. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/index.js.map +6 -0
  117. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/index.native.js +36 -0
  118. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/index.native.js.map +6 -0
  119. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.js +55 -0
  120. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.js.map +6 -0
  121. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.native.js +56 -0
  122. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.native.js.map +6 -0
  123. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/types.js +14 -0
  124. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/types.js.map +6 -0
  125. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/types.native.js +15 -0
  126. package/dist/vendor/repack/dev-server/src/plugins/symbolicate/types.native.js.map +6 -0
  127. package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.js +65 -0
  128. package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.js.map +6 -0
  129. package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.native.js +66 -0
  130. package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.native.js.map +6 -0
  131. package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.js +54 -0
  132. package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.js.map +6 -0
  133. package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.native.js +50 -0
  134. package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.native.js.map +6 -0
  135. package/dist/vendor/repack/dev-server/src/plugins/wss/index.js +35 -0
  136. package/dist/vendor/repack/dev-server/src/plugins/wss/index.js.map +6 -0
  137. package/dist/vendor/repack/dev-server/src/plugins/wss/index.native.js +36 -0
  138. package/dist/vendor/repack/dev-server/src/plugins/wss/index.native.js.map +6 -0
  139. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.js +118 -0
  140. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.js.map +6 -0
  141. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.native.js +118 -0
  142. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.native.js.map +6 -0
  143. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.js +69 -0
  144. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.js.map +6 -0
  145. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.native.js +70 -0
  146. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.native.js.map +6 -0
  147. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.js +110 -0
  148. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.js.map +6 -0
  149. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.native.js +103 -0
  150. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.native.js.map +6 -0
  151. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.js +71 -0
  152. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.js.map +6 -0
  153. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.native.js +72 -0
  154. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.native.js.map +6 -0
  155. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.js +160 -0
  156. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.js.map +6 -0
  157. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.native.js +162 -0
  158. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.native.js.map +6 -0
  159. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.js +86 -0
  160. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.js.map +6 -0
  161. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.native.js +87 -0
  162. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.native.js.map +6 -0
  163. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.js +323 -0
  164. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.js.map +6 -0
  165. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.native.js +325 -0
  166. package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.native.js.map +6 -0
  167. package/dist/vendor/repack/dev-server/src/plugins/wss/types.js +14 -0
  168. package/dist/vendor/repack/dev-server/src/plugins/wss/types.js.map +6 -0
  169. package/dist/vendor/repack/dev-server/src/plugins/wss/types.native.js +15 -0
  170. package/dist/vendor/repack/dev-server/src/plugins/wss/types.native.js.map +6 -0
  171. package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.js +50 -0
  172. package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.js.map +6 -0
  173. package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.native.js +51 -0
  174. package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.native.js.map +6 -0
  175. package/dist/vendor/repack/dev-server/src/types.js +29 -0
  176. package/dist/vendor/repack/dev-server/src/types.js.map +6 -0
  177. package/dist/vendor/repack/dev-server/src/types.native.js +30 -0
  178. package/dist/vendor/repack/dev-server/src/types.native.js.map +6 -0
  179. package/package.json +57 -0
  180. package/react-native-template.js +104 -0
  181. package/src/create.ts +490 -0
  182. package/src/dev/clientInjectPlugin.ts +112 -0
  183. package/src/dev/createDevServer.ts +243 -0
  184. package/src/getVitePath.ts +47 -0
  185. package/src/index.ts +2 -0
  186. package/src/nativePlugin.ts +209 -0
  187. package/src/types.ts +11 -0
  188. package/src/utils/constants.ts +1 -0
  189. package/src/utils.ts +9 -0
  190. package/src/vendor/debugger-app/index.d.ts +2 -0
  191. package/src/vendor/debugger-app/index.js +3 -0
  192. package/src/vendor/debugger-app/public/index.html +49 -0
  193. package/src/vendor/debugger-app/src/assets/blue-icon.png +0 -0
  194. package/src/vendor/debugger-app/src/assets/gray-icon.png +0 -0
  195. package/src/vendor/debugger-app/src/assets/orange-icon.png +0 -0
  196. package/src/vendor/debugger-app/src/debuggerWorker.js +84 -0
  197. package/src/vendor/debugger-app/src/index.css +37 -0
  198. package/src/vendor/debugger-app/src/index.js +199 -0
  199. package/src/vendor/debugger-app/webpack.config.cjs +73 -0
  200. package/src/vendor/repack/dev-server/src/createServer.ts +136 -0
  201. package/src/vendor/repack/dev-server/src/img/favicon.ico +0 -0
  202. package/src/vendor/repack/dev-server/src/index.ts +2 -0
  203. package/src/vendor/repack/dev-server/src/plugins/api/apiPlugin.ts +50 -0
  204. package/src/vendor/repack/dev-server/src/plugins/api/index.ts +1 -0
  205. package/src/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.ts +84 -0
  206. package/src/vendor/repack/dev-server/src/plugins/compiler/index.ts +2 -0
  207. package/src/vendor/repack/dev-server/src/plugins/compiler/types.ts +37 -0
  208. package/src/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.ts +107 -0
  209. package/src/vendor/repack/dev-server/src/plugins/devtools/index.ts +1 -0
  210. package/src/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.ts +14 -0
  211. package/src/vendor/repack/dev-server/src/plugins/favicon/index.ts +1 -0
  212. package/src/vendor/repack/dev-server/src/plugins/multipart/index.ts +2 -0
  213. package/src/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.ts +77 -0
  214. package/src/vendor/repack/dev-server/src/plugins/multipart/types.ts +13 -0
  215. package/src/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.ts +233 -0
  216. package/src/vendor/repack/dev-server/src/plugins/symbolicate/index.ts +3 -0
  217. package/src/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.ts +48 -0
  218. package/src/vendor/repack/dev-server/src/plugins/symbolicate/types.ts +71 -0
  219. package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.ts +74 -0
  220. package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.ts +60 -0
  221. package/src/vendor/repack/dev-server/src/plugins/wss/index.ts +3 -0
  222. package/src/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.ts +158 -0
  223. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.ts +69 -0
  224. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.ts +134 -0
  225. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.ts +74 -0
  226. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.ts +205 -0
  227. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.ts +97 -0
  228. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.ts +401 -0
  229. package/src/vendor/repack/dev-server/src/plugins/wss/types.ts +17 -0
  230. package/src/vendor/repack/dev-server/src/plugins/wss/wssPlugin.ts +73 -0
  231. package/src/vendor/repack/dev-server/src/types.ts +206 -0
  232. package/types/create.d.ts +11 -0
  233. package/types/create.d.ts.map +1 -0
  234. package/types/dev/clientInjectPlugin.d.ts +7 -0
  235. package/types/dev/clientInjectPlugin.d.ts.map +1 -0
  236. package/types/dev/createDevServer.d.ts +35 -0
  237. package/types/dev/createDevServer.d.ts.map +1 -0
  238. package/types/getVitePath.d.ts +2 -0
  239. package/types/getVitePath.d.ts.map +1 -0
  240. package/types/index.d.ts +3 -0
  241. package/types/index.d.ts.map +1 -0
  242. package/types/nativePlugin.d.ts +7 -0
  243. package/types/nativePlugin.d.ts.map +1 -0
  244. package/types/types.d.ts +13 -0
  245. package/types/types.d.ts.map +1 -0
  246. package/types/utils/constants.d.ts +2 -0
  247. package/types/utils/constants.d.ts.map +1 -0
  248. package/types/utils.d.ts +3 -0
  249. package/types/utils.d.ts.map +1 -0
  250. package/types/vendor/repack/dev-server/src/createServer.d.ts +14 -0
  251. package/types/vendor/repack/dev-server/src/createServer.d.ts.map +1 -0
  252. package/types/vendor/repack/dev-server/src/index.d.ts +3 -0
  253. package/types/vendor/repack/dev-server/src/index.d.ts.map +1 -0
  254. package/types/vendor/repack/dev-server/src/plugins/api/apiPlugin.d.ts +7 -0
  255. package/types/vendor/repack/dev-server/src/plugins/api/apiPlugin.d.ts.map +1 -0
  256. package/types/vendor/repack/dev-server/src/plugins/api/index.d.ts +2 -0
  257. package/types/vendor/repack/dev-server/src/plugins/api/index.d.ts.map +1 -0
  258. package/types/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.d.ts +6 -0
  259. package/types/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.d.ts.map +1 -0
  260. package/types/vendor/repack/dev-server/src/plugins/compiler/index.d.ts +3 -0
  261. package/types/vendor/repack/dev-server/src/plugins/compiler/index.d.ts.map +1 -0
  262. package/types/vendor/repack/dev-server/src/plugins/compiler/types.d.ts +32 -0
  263. package/types/vendor/repack/dev-server/src/plugins/compiler/types.d.ts.map +1 -0
  264. package/types/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.d.ts +6 -0
  265. package/types/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.d.ts.map +1 -0
  266. package/types/vendor/repack/dev-server/src/plugins/devtools/index.d.ts +2 -0
  267. package/types/vendor/repack/dev-server/src/plugins/devtools/index.d.ts.map +1 -0
  268. package/types/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.d.ts +3 -0
  269. package/types/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.d.ts.map +1 -0
  270. package/types/vendor/repack/dev-server/src/plugins/favicon/index.d.ts +2 -0
  271. package/types/vendor/repack/dev-server/src/plugins/favicon/index.d.ts.map +1 -0
  272. package/types/vendor/repack/dev-server/src/plugins/multipart/index.d.ts +3 -0
  273. package/types/vendor/repack/dev-server/src/plugins/multipart/index.d.ts.map +1 -0
  274. package/types/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.d.ts +3 -0
  275. package/types/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.d.ts.map +1 -0
  276. package/types/vendor/repack/dev-server/src/plugins/multipart/types.d.ts +13 -0
  277. package/types/vendor/repack/dev-server/src/plugins/multipart/types.d.ts.map +1 -0
  278. package/types/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.d.ts +47 -0
  279. package/types/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.d.ts.map +1 -0
  280. package/types/vendor/repack/dev-server/src/plugins/symbolicate/index.d.ts +4 -0
  281. package/types/vendor/repack/dev-server/src/plugins/symbolicate/index.d.ts.map +1 -0
  282. package/types/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.d.ts +6 -0
  283. package/types/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.d.ts.map +1 -0
  284. package/types/vendor/repack/dev-server/src/plugins/symbolicate/types.d.ts +66 -0
  285. package/types/vendor/repack/dev-server/src/plugins/symbolicate/types.d.ts.map +1 -0
  286. package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.d.ts +33 -0
  287. package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.d.ts.map +1 -0
  288. package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.d.ts +38 -0
  289. package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.d.ts.map +1 -0
  290. package/types/vendor/repack/dev-server/src/plugins/wss/index.d.ts +4 -0
  291. package/types/vendor/repack/dev-server/src/plugins/wss/index.d.ts.map +1 -0
  292. package/types/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.d.ts +25 -0
  293. package/types/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.d.ts.map +1 -0
  294. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.d.ts +33 -0
  295. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.d.ts.map +1 -0
  296. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.d.ts +65 -0
  297. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.d.ts.map +1 -0
  298. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.d.ts +33 -0
  299. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.d.ts.map +1 -0
  300. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.d.ts +76 -0
  301. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.d.ts.map +1 -0
  302. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.d.ts +39 -0
  303. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.d.ts.map +1 -0
  304. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.d.ts +137 -0
  305. package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.d.ts.map +1 -0
  306. package/types/vendor/repack/dev-server/src/plugins/wss/types.d.ts +17 -0
  307. package/types/vendor/repack/dev-server/src/plugins/wss/types.d.ts.map +1 -0
  308. package/types/vendor/repack/dev-server/src/plugins/wss/wssPlugin.d.ts +29 -0
  309. package/types/vendor/repack/dev-server/src/plugins/wss/wssPlugin.d.ts.map +1 -0
  310. package/types/vendor/repack/dev-server/src/types.d.ts +162 -0
  311. package/types/vendor/repack/dev-server/src/types.d.ts.map +1 -0
@@ -0,0 +1,66 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Raw React Native stack frame.
4
+ */
5
+ export interface ReactNativeStackFrame {
6
+ lineNumber: number | null;
7
+ column: number | null;
8
+ file: string | null;
9
+ methodName: string;
10
+ }
11
+ /**
12
+ * React Native stack frame used as input when processing by {@link Symbolicator}.
13
+ */
14
+ export interface InputStackFrame extends ReactNativeStackFrame {
15
+ file: string;
16
+ }
17
+ /**
18
+ * Final symbolicated stack frame.
19
+ */
20
+ export interface StackFrame extends InputStackFrame {
21
+ collapse: boolean;
22
+ }
23
+ /**
24
+ * Represents [@babel/core-frame](https://babeljs.io/docs/en/babel-code-frame).
25
+ */
26
+ export interface CodeFrame {
27
+ content: string;
28
+ location: {
29
+ row: number;
30
+ column: number;
31
+ };
32
+ fileName: string;
33
+ }
34
+ /**
35
+ * Represents results of running {@link process} method on {@link Symbolicator} instance.
36
+ */
37
+ export interface SymbolicatorResults {
38
+ codeFrame: CodeFrame | null;
39
+ stack: StackFrame[];
40
+ }
41
+ /**
42
+ * Delegate with implementation for symbolication functions.
43
+ */
44
+ export interface SymbolicatorDelegate {
45
+ /**
46
+ * Get source code of file in the URL.
47
+ *
48
+ * @param fileUrl A full URL pointing to a file.
49
+ */
50
+ getSource: (fileUrl: string) => Promise<string | Buffer>;
51
+ /**
52
+ * Get source map for the file in the URL.
53
+ *
54
+ * @param fileUrl A full (usually `http:`) URL pointing to a compiled file.
55
+ * The URL points to a file for which to return source map, not to the source map file itself,
56
+ * e.g: `http://localhost:8081/index.bundle?platform=ios`.
57
+ */
58
+ getSourceMap: (fileUrl: string) => Promise<string | Buffer>;
59
+ /**
60
+ * Check if given stack frame should be included in the new symbolicated stack.
61
+ *
62
+ * @param frame Stack frame to check.
63
+ */
64
+ shouldIncludeFrame: (frame: StackFrame) => boolean;
65
+ }
66
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/vendor/repack/dev-server/src/plugins/symbolicate/types.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IAExD;;;;;;OAMG;IACH,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IAE3D;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAA;CACnD"}
@@ -0,0 +1,33 @@
1
+ import type { FastifyInstance } from 'fastify';
2
+ import { WebSocketServer } from './WebSocketServer';
3
+ /**
4
+ * Class for creating a WebSocket router to forward connections to the
5
+ * respective {@link WebSocketServer} as long as the connection is accepted for the upgrade by the
6
+ * server.
7
+ *
8
+ * If the connection is not accepted by any `WebSocketServer`, it will be destroyed to avoid
9
+ * creating handling connections and potentially throwing `ECONNRESET` errors.
10
+ *
11
+ * @category Development server
12
+ */
13
+ export declare class WebSocketRouter {
14
+ private fastify;
15
+ /** The list of all register WebSocket servers. */
16
+ protected servers: WebSocketServer[];
17
+ /**
18
+ * Create new instance of `WebSocketRouter` and attach it to the given Fastify instance.
19
+ * Any logging information, will be passed through standard `fastify.log` API.
20
+ *
21
+ * @param fastify Fastify instance to attach the WebSocket router to.
22
+ */
23
+ constructor(fastify: FastifyInstance);
24
+ /**
25
+ * Register a new {@link WebSocketServer}. New connection will now
26
+ * check if the given server will accept them and forward them.
27
+ *
28
+ * @param server WebSocket server to register.
29
+ * @returns The same instance of the WebSocket server after it's been registered.
30
+ */
31
+ registerServer<T extends WebSocketServer>(server: T): T;
32
+ }
33
+ //# sourceMappingURL=WebSocketRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketRouter.d.ts","sourceRoot":"","sources":["../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;GASG;AACH,qBAAa,eAAe;IAUd,OAAO,CAAC,OAAO;IAT3B,kDAAkD;IAClD,SAAS,CAAC,OAAO,EAAE,eAAe,EAAE,CAAK;IAEzC;;;;;OAKG;gBACiB,OAAO,EAAE,eAAe;IAmC5C;;;;;;OAMG;IACH,cAAc,CAAC,CAAC,SAAS,eAAe,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC;CAIxD"}
@@ -0,0 +1,38 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ /// <reference types="node" />
4
+ import type { IncomingMessage } from 'http';
5
+ import type { Socket } from 'net';
6
+ import type { FastifyInstance } from 'fastify';
7
+ import { ServerOptions, WebSocket, WebSocketServer as WebSocketServerImpl } from 'ws';
8
+ /**
9
+ * Abstract class for providing common logic (eg routing) for all WebSocket servers.
10
+ *
11
+ * @category Development server
12
+ */
13
+ export declare abstract class WebSocketServer {
14
+ /** An instance of the underlying WebSocket server. */
15
+ readonly server: WebSocketServerImpl;
16
+ /** Fastify instance from which {@link server} will receive upgrade connections. */
17
+ protected fastify: FastifyInstance;
18
+ readonly paths: string[];
19
+ /**
20
+ * Create a new instance of the WebSocketServer.
21
+ * Any logging information, will be passed through standard `fastify.log` API.
22
+ *
23
+ * @param fastify Fastify instance to which the WebSocket will be attached to.
24
+ * @param path Path on which this WebSocketServer will be accepting connections.
25
+ * @param wssOptions WebSocket Server options.
26
+ */
27
+ constructor(fastify: FastifyInstance, path: string | string[], wssOptions?: Omit<ServerOptions, 'noServer' | 'server' | 'host' | 'port' | 'path'>);
28
+ shouldUpgrade(pathname: string): boolean;
29
+ upgrade(request: IncomingMessage, socket: Socket, head: Buffer): void;
30
+ /**
31
+ * Process incoming WebSocket connection.
32
+ *
33
+ * @param socket Incoming WebSocket connection.
34
+ * @param request Upgrade request for the connection.
35
+ */
36
+ abstract onConnection(socket: WebSocket, request: IncomingMessage): void;
37
+ }
38
+ //# sourceMappingURL=WebSocketServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketServer.d.ts","sourceRoot":"","sources":["../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAEjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,IAAI,CAAA;AAErF;;;;GAIG;AACH,8BAAsB,eAAe;IACnC,sDAAsD;IACtD,SAAgB,MAAM,EAAE,mBAAmB,CAAA;IAE3C,mFAAmF;IACnF,SAAS,CAAC,OAAO,EAAE,eAAe,CAAA;IAElC,SAAgB,KAAK,EAAE,MAAM,EAAE,CAAA;IAE/B;;;;;;;OAOG;gBAED,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,UAAU,GAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAM;IAWxF,aAAa,CAAC,QAAQ,EAAE,MAAM;IAI9B,OAAO,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAM9D;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;CACzE"}
@@ -0,0 +1,4 @@
1
+ export { default } from './wssPlugin';
2
+ export * from './WebSocketServer';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA"}
@@ -0,0 +1,25 @@
1
+ /// <reference types="node" />
2
+ import type { IncomingMessage } from 'http';
3
+ import type { FastifyInstance } from 'fastify';
4
+ import WebSocket from 'ws';
5
+ import { Server } from '../../../types';
6
+ import { WebSocketServer } from '../WebSocketServer';
7
+ export interface InspectorProxyConfig extends Pick<Server.Options, 'port' | 'host' | 'rootDir'> {
8
+ }
9
+ export declare class HermesInspectorProxy extends WebSocketServer {
10
+ private config;
11
+ private devices;
12
+ private deviceCounter;
13
+ readonly serverHost: string;
14
+ constructor(fastify: FastifyInstance, config: InspectorProxyConfig);
15
+ private setup;
16
+ private buildPageDescription;
17
+ /**
18
+ * Process new WebSocket connection from device.
19
+ *
20
+ * @param socket Incoming device's WebSocket connection.
21
+ * @param request Upgrade request for the connection.
22
+ */
23
+ onConnection(socket: WebSocket, request: IncomingMessage): void;
24
+ }
25
+ //# sourceMappingURL=HermesInspectorProxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HermesInspectorProxy.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAG3C,OAAO,KAAK,EAAE,eAAe,EAA0C,MAAM,SAAS,CAAA;AAEtF,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAuBpD,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAAG;AAE9D,qBAAa,oBAAqB,SAAQ,eAAe;IAKjB,OAAO,CAAC,MAAM;IAJpD,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,aAAa,CAAI;IACzB,SAAgB,UAAU,EAAE,MAAM,CAAA;gBAEtB,OAAO,EAAE,eAAe,EAAU,MAAM,EAAE,oBAAoB;IAM1E,OAAO,CAAC,KAAK;IAsCb,OAAO,CAAC,oBAAoB;IAkB5B;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe;CAkDzD"}
@@ -0,0 +1,33 @@
1
+ import { FastifyInstance } from 'fastify';
2
+ import WebSocket from 'ws';
3
+ import { WebSocketServer } from '../WebSocketServer';
4
+ /**
5
+ * Class for creating a WebSocket server for API clients.
6
+ * Useful to listening for compilation events and new logs.
7
+ *
8
+ * @category Development server
9
+ */
10
+ export declare class WebSocketApiServer extends WebSocketServer {
11
+ private clients;
12
+ private nextClientId;
13
+ /**
14
+ * Create new instance of WebSocketApiServer and attach it to the given Fastify instance.
15
+ * Any logging information, will be passed through standard `fastify.log` API.
16
+ *
17
+ * @param fastify Fastify instance to attach the WebSocket server to.
18
+ */
19
+ constructor(fastify: FastifyInstance);
20
+ /**
21
+ * Send message to all connected API clients.
22
+ *
23
+ * @param event Event string or object to send.
24
+ */
25
+ send(event: any): void;
26
+ /**
27
+ * Process new WebSocket connection from client application.
28
+ *
29
+ * @param socket Incoming client's WebSocket connection.
30
+ */
31
+ onConnection(socket: WebSocket): void;
32
+ }
33
+ //# sourceMappingURL=WebSocketApiServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketApiServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IACrD,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;OAKG;gBACS,OAAO,EAAE,eAAe;IAIpC;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,GAAG;IAYf;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS;CAqB/B"}
@@ -0,0 +1,65 @@
1
+ /// <reference types="node" />
2
+ import type { IncomingMessage } from 'http';
3
+ import type { FastifyInstance } from 'fastify';
4
+ import WebSocket from 'ws';
5
+ import { WebSocketServer } from '../WebSocketServer';
6
+ /**
7
+ * Class for creating a WebSocket server and providing a bridge between
8
+ * debugger UI (Remote JS debugger) and the running React Native application.
9
+ *
10
+ * React Native application (aka client) will send and receive messages from the debugger UI
11
+ * which runs inside a browser.
12
+ *
13
+ * @category Development server
14
+ */
15
+ export declare class WebSocketDebuggerServer extends WebSocketServer {
16
+ /**
17
+ * A WebSocket connection with the debugger UI.
18
+ */
19
+ private debuggerSocket;
20
+ /**
21
+ * A WebSocket connection with the client (React Native app).
22
+ */
23
+ private clientSocket;
24
+ /**
25
+ * Create new instance of WebSocketDebuggerServer and attach it to the given Fastify instance.
26
+ * Any logging information, will be passed through standard `fastify.log` API.
27
+ *
28
+ * @param fastify Fastify instance to attach the WebSocket server to.
29
+ */
30
+ constructor(fastify: FastifyInstance);
31
+ /**
32
+ * Check if debugger UI is connected to the WebSocketDebuggerServer.
33
+ */
34
+ isDebuggerConnected(): boolean;
35
+ /**
36
+ * Send a message to a given WebSocket connection.
37
+ *
38
+ * @param socket WebSocket connection to send the message to.
39
+ * @param message Message to send.
40
+ */
41
+ send(socket: WebSocket | undefined, message: string): void;
42
+ /**
43
+ * Process new WebSocket connection. The upgrade request should contain `role` query param
44
+ * for determining the type of the connection.
45
+ *
46
+ * @param socket Incoming WebSocket connection.
47
+ * @param request Upgrade request for the connection.
48
+ */
49
+ onConnection(socket: WebSocket, request: IncomingMessage): void;
50
+ /**
51
+ * Process new WebSocket connection from Debugger UI (Remote JS Debugger).
52
+ * If there's already open connection, the new one gets closed automatically.
53
+ *
54
+ * @param socket Incoming debugger WebSocket connection.
55
+ */
56
+ onDebuggerConnection(socket: WebSocket): void;
57
+ /**
58
+ * Process new WebSocket connection from React Native app (client)
59
+ * and close any previous connection.
60
+ *
61
+ * @param socket Incoming client WebSocket connection.
62
+ */
63
+ onClientConnection(socket: WebSocket): void;
64
+ }
65
+ //# sourceMappingURL=WebSocketDebuggerServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketDebuggerServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAE3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,SAAQ,eAAe;IAC1D;;OAEG;IACH,OAAO,CAAC,cAAc,CAAuB;IAE7C;;OAEG;IACH,OAAO,CAAC,YAAY,CAAuB;IAE3C;;;;;OAKG;gBACS,OAAO,EAAE,eAAe;IAIpC;;OAEG;IACH,mBAAmB;IAInB;;;;;OAKG;IACH,IAAI,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM;IAQnD;;;;;;OAMG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe;IAaxD;;;;;OAKG;IACH,oBAAoB,CAAC,MAAM,EAAE,SAAS;IAqBtC;;;;;OAKG;IACH,kBAAkB,CAAC,MAAM,EAAE,SAAS;CAsBrC"}
@@ -0,0 +1,33 @@
1
+ import type { FastifyInstance } from 'fastify';
2
+ import WebSocket from 'ws';
3
+ import { WebSocketServer } from '../WebSocketServer';
4
+ /**
5
+ * Class for creating a WebSocket server for communication with React Native clients.
6
+ * All client logs - logs from React Native application - are processed here.
7
+ *
8
+ * @category Development server
9
+ */
10
+ export declare class WebSocketDevClientServer extends WebSocketServer {
11
+ private clients;
12
+ private nextClientId;
13
+ /**
14
+ * Create new instance of WebSocketDevClientServer and attach it to the given Fastify instance.
15
+ * Any logging information, will be passed through standard `fastify.log` API.
16
+ *
17
+ * @param fastify Fastify instance to attach the WebSocket server to.
18
+ */
19
+ constructor(fastify: FastifyInstance);
20
+ /**
21
+ * Process client message.
22
+ *
23
+ * @param message Stringified client message.
24
+ */
25
+ processMessage(message: string): void;
26
+ /**
27
+ * Process new WebSocket connection from client application.
28
+ *
29
+ * @param socket Incoming client's WebSocket connection.
30
+ */
31
+ onConnection(socket: WebSocket): void;
32
+ }
33
+ //# sourceMappingURL=WebSocketDevClientServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketDevClientServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,eAAe;IAC3D,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;OAKG;gBACS,OAAO,EAAE,eAAe;IAIpC;;;;OAIG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM;IAiB9B;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS;CAqB/B"}
@@ -0,0 +1,76 @@
1
+ import type { FastifyInstance } from 'fastify';
2
+ import WebSocket from 'ws';
3
+ import { WebSocketServer } from '../WebSocketServer';
4
+ import { WebSocketMessageServer } from './WebSocketMessageServer';
5
+ /**
6
+ * {@link WebSocketEventsServer} configuration options.
7
+ */
8
+ export interface WebSocketEventsServerConfig {
9
+ /** Instance of a {@link WebSocketMessageServer} which can be used for broadcasting. */
10
+ webSocketMessageServer: WebSocketMessageServer;
11
+ }
12
+ /**
13
+ * Represents a command that connected clients can send to the {@link WebSocketEventsServer}.
14
+ */
15
+ export interface Command {
16
+ version: number;
17
+ type: 'command';
18
+ command: string;
19
+ params?: any;
20
+ }
21
+ /**
22
+ * Represents an event message.
23
+ */
24
+ export interface EventMessage {
25
+ error?: Error | string;
26
+ type?: string;
27
+ data?: any;
28
+ }
29
+ /**
30
+ * Class for creating a WebSocket server to process events and reports.
31
+ *
32
+ * Based on: https://github.com/react-native-community/cli/blob/v4.14.0/packages/cli-server-api/src/websocket/eventsSocketServer.ts
33
+ *
34
+ * @category Development server
35
+ */
36
+ export declare class WebSocketEventsServer extends WebSocketServer {
37
+ private config;
38
+ static readonly PROTOCOL_VERSION = 2;
39
+ private clients;
40
+ private nextClientId;
41
+ /**
42
+ * Create new instance of WebSocketHMRServer and attach it to the given Fastify instance.
43
+ * Any logging information, will be passed through standard `fastify.log` API.
44
+ *
45
+ * @param fastify Fastify instance to attach the WebSocket server to.
46
+ * @param config Configuration object.
47
+ */
48
+ constructor(fastify: FastifyInstance, config: WebSocketEventsServerConfig);
49
+ /**
50
+ * Parse received command message from connected client.
51
+ *
52
+ * @param data Stringified command message to parse.
53
+ * @returns Parsed command or `undefined` if parsing failed.
54
+ */
55
+ parseMessage(data: string): Command | undefined;
56
+ /**
57
+ * Stringify `message` into a format that can be transported as a `string`.
58
+ *
59
+ * @param message Message to serialize.
60
+ * @returns String representation of a `message` or `undefined` if serialization failed.
61
+ */
62
+ serializeMessage(message: EventMessage): string | undefined;
63
+ /**
64
+ * Broadcast event to all connected clients.
65
+ *
66
+ * @param event Event message to broadcast.
67
+ */
68
+ broadcastEvent(event: EventMessage): void;
69
+ /**
70
+ * Process new client's WebSocket connection.
71
+ *
72
+ * @param socket Incoming WebSocket connection.
73
+ */
74
+ onConnection(socket: WebSocket): void;
75
+ }
76
+ //# sourceMappingURL=WebSocketEventsServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketEventsServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,uFAAuF;IACvF,sBAAsB,EAAE,sBAAsB,CAAA;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,GAAG,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,GAAG,CAAA;CACX;AAED;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IAalB,OAAO,CAAC,MAAM;IAZpD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,KAAI;IAEpC,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;;OAMG;gBACS,OAAO,EAAE,eAAe,EAAU,MAAM,EAAE,2BAA2B;IAQjF;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAuB/C;;;;;OAKG;IACH,gBAAgB,CAAC,OAAO,EAAE,YAAY;IAoCtC;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,YAAY;IAwBlC;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS;CAqC/B"}
@@ -0,0 +1,39 @@
1
+ /// <reference types="node" />
2
+ import { IncomingMessage } from 'http';
3
+ import { FastifyInstance } from 'fastify';
4
+ import WebSocket from 'ws';
5
+ import { HmrDelegate } from '../types';
6
+ import { WebSocketServer } from '../WebSocketServer';
7
+ /**
8
+ * Class for creating a WebSocket server for Hot Module Replacement.
9
+ *
10
+ * @category Development server
11
+ */
12
+ export declare class WebSocketHMRServer extends WebSocketServer {
13
+ private delegate;
14
+ private clients;
15
+ private nextClientId;
16
+ /**
17
+ * Create new instance of WebSocketHMRServer and attach it to the given Fastify instance.
18
+ * Any logging information, will be passed through standard `fastify.log` API.
19
+ *
20
+ * @param fastify Fastify instance to attach the WebSocket server to.
21
+ * @param delegate HMR delegate instance.
22
+ */
23
+ constructor(fastify: FastifyInstance, delegate: HmrDelegate);
24
+ /**
25
+ * Send action to all connected HMR clients.
26
+ *
27
+ * @param event Event to send to the clients.
28
+ * @param platform Platform of clients to send the event to.
29
+ * @param clientIds Ids of clients who should receive the event.
30
+ */
31
+ send(event: any, platform: string, clientIds?: string[]): void;
32
+ /**
33
+ * Process new WebSocket connection from HMR client.
34
+ *
35
+ * @param socket Incoming HMR client's WebSocket connection.
36
+ */
37
+ onConnection(socket: WebSocket, request: IncomingMessage): void;
38
+ }
39
+ //# sourceMappingURL=WebSocketHMRServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketHMRServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAGtC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IAWf,OAAO,CAAC,QAAQ;IAVtD,OAAO,CAAC,OAAO,CAA+D;IAC9E,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;;OAMG;gBACS,OAAO,EAAE,eAAe,EAAU,QAAQ,EAAE,WAAW;IAInE;;;;;;OAMG;IACH,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE;IAwBvD;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe;CA+BzD"}
@@ -0,0 +1,137 @@
1
+ /// <reference types="node" />
2
+ import type { IncomingMessage } from 'http';
3
+ import type { FastifyInstance } from 'fastify';
4
+ import WebSocket from 'ws';
5
+ import { WebSocketServer } from '../WebSocketServer';
6
+ /**
7
+ * Holds {@link ReactNativeMessage} `id` data.
8
+ */
9
+ export interface ReactNativeIdObject {
10
+ requestId: string;
11
+ clientId: string;
12
+ }
13
+ /**
14
+ * Message representation used by {@link WebSocketMessageServer}.
15
+ */
16
+ export interface ReactNativeMessage {
17
+ version?: string;
18
+ id?: ReactNativeIdObject;
19
+ method?: string;
20
+ target: string;
21
+ result?: any;
22
+ error?: Error;
23
+ params?: Record<string, any>;
24
+ }
25
+ /**
26
+ * Class for creating a WebSocket server and sending messages between development server
27
+ * and the React Native applications.
28
+ *
29
+ * Based on: https://github.com/react-native-community/cli/blob/v4.14.0/packages/cli-server-api/src/websocket/messageSocketServer.ts
30
+ *
31
+ * @category Development server
32
+ */
33
+ export declare class WebSocketMessageServer extends WebSocketServer {
34
+ static readonly PROTOCOL_VERSION = 2;
35
+ /**
36
+ * Check if message is a broadcast request.
37
+ *
38
+ * @param message Message to check.
39
+ * @returns True if message is a broadcast request and should be broadcasted
40
+ * with {@link sendBroadcast}.
41
+ */
42
+ static isBroadcast(message: Partial<ReactNativeMessage>): boolean;
43
+ /**
44
+ * Check if message is a method request.
45
+ *
46
+ * @param message Message to check.
47
+ * @returns True if message is a request.
48
+ */
49
+ static isRequest(message: Partial<ReactNativeMessage>): boolean;
50
+ /**
51
+ * Check if message is a response with results of performing some request.
52
+ *
53
+ * @param message Message to check.
54
+ * @returns True if message is a response.
55
+ */
56
+ static isResponse(message: Partial<ReactNativeMessage>): boolean;
57
+ private clients;
58
+ private nextClientId;
59
+ /**
60
+ * Create new instance of WebSocketMessageServer and attach it to the given Fastify instance.
61
+ * Any logging information, will be passed through standard `fastify.log` API.
62
+ *
63
+ * @param fastify Fastify instance to attach the WebSocket server to.
64
+ */
65
+ constructor(fastify: FastifyInstance);
66
+ /**
67
+ * Parse stringified message into a {@link ReactNativeMessage}.
68
+ *
69
+ * @param data Stringified message.
70
+ * @param binary Additional binary data if any.
71
+ * @returns Parsed message or `undefined` if parsing failed.
72
+ */
73
+ parseMessage(data: string, binary: any): Partial<ReactNativeMessage> | undefined;
74
+ /**
75
+ * Get client's WebSocket connection for given `clientId`.
76
+ * Throws if no such client is connected.
77
+ *
78
+ * @param clientId Id of the client.
79
+ * @returns WebSocket connection.
80
+ */
81
+ getClientSocket(clientId: string): any;
82
+ /**
83
+ * Process error by sending an error message to the client whose message caused the error
84
+ * to occur.
85
+ *
86
+ * @param clientId Id of the client whose message caused an error.
87
+ * @param message Original message which caused the error.
88
+ * @param error Concrete instance of an error that occurred.
89
+ */
90
+ handleError(clientId: string, message: Partial<ReactNativeMessage>, error: Error): void;
91
+ /**
92
+ * Send given request `message` to it's designated client's socket based on `message.target`.
93
+ * The target client must be connected, otherwise it will throw an error.
94
+ *
95
+ * @param clientId Id of the client that requested the forward.
96
+ * @param message Message to forward.
97
+ */
98
+ forwardRequest(clientId: string, message: Partial<ReactNativeMessage>): void;
99
+ /**
100
+ * Send given response `message` to it's designated client's socket based
101
+ * on `message.id.clientId`.
102
+ * The target client must be connected, otherwise it will throw an error.
103
+ *
104
+ * @param message Message to forward.
105
+ */
106
+ forwardResponse(message: Partial<ReactNativeMessage>): void;
107
+ /**
108
+ * Process request message targeted towards this {@link WebSocketMessageServer}
109
+ * and send back the results.
110
+ *
111
+ * @param clientId Id of the client who send the message.
112
+ * @param message The message to process by the server.
113
+ */
114
+ processServerRequest(clientId: string, message: Partial<ReactNativeMessage>): void;
115
+ /**
116
+ * Broadcast given message to all connected clients.
117
+ *
118
+ * @param broadcasterId Id of the client who is broadcasting.
119
+ * @param message Message to broadcast.
120
+ */
121
+ sendBroadcast(broadcasterId: string | undefined, message: Partial<ReactNativeMessage>): void;
122
+ /**
123
+ * Send method broadcast to all connected clients.
124
+ *
125
+ * @param method Method name to broadcast.
126
+ * @param params Method parameters.
127
+ */
128
+ broadcast(method: string, params?: Record<string, any>): void;
129
+ /**
130
+ * Process new client's WebSocket connection.
131
+ *
132
+ * @param socket Incoming WebSocket connection.
133
+ * @param request Upgrade request for the connection.
134
+ */
135
+ onConnection(socket: WebSocket, request: IncomingMessage): void;
136
+ }
137
+ //# sourceMappingURL=WebSocketMessageServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketMessageServer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,SAAS,MAAM,IAAI,CAAA;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,EAAE,CAAC,EAAE,mBAAmB,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC7B;AAID;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,KAAI;IAEpC;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAQvD;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAIrD;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAStD,OAAO,CAAC,OAAO,CAA6C;IAC5D,OAAO,CAAC,YAAY,CAAI;IAExB;;;;;OAKG;gBACS,OAAO,EAAE,eAAe;IAIpC;;;;;;OAMG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAS;IA4BhF;;;;;;OAMG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM;IAQhC;;;;;;;OAOG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,KAAK;IAqChF;;;;;;OAMG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAqBrE;;;;;;OAMG;IACH,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAgBpD;;;;;;OAMG;IACH,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IA2C3E;;;;;OAKG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAgCrF;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAItD;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe;CAuDzD"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Delegate with implementation for HMR-specific functions.
3
+ */
4
+ export interface HmrDelegate {
5
+ /** Get URI under which HMR server will be running, e.g: `/hmr` */
6
+ getUriPath: () => string;
7
+ /**
8
+ * Callback for when the new HMR client is connected.
9
+ *
10
+ * Useful for running initial synchronization or any other side effect.
11
+ *
12
+ * @param platform Platform of the connected client.
13
+ * @param clientId Id of the connected client.
14
+ */
15
+ onClientConnected: (platform: string, clientId: string) => void;
16
+ }
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/vendor/repack/dev-server/src/plugins/wss/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,kEAAkE;IAClE,UAAU,EAAE,MAAM,MAAM,CAAA;IAExB;;;;;;;OAOG;IACH,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAChE"}