vxrn 1.25.5 → 1.25.7

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 (442) hide show
  1. package/dist/cli.mjs +288 -0
  2. package/dist/cli.mjs.map +1 -0
  3. package/dist/cli.native.js +292 -0
  4. package/dist/cli.native.js.map +1 -0
  5. package/dist/config/getAdditionalViteConfig.mjs +67 -0
  6. package/dist/config/getAdditionalViteConfig.mjs.map +1 -0
  7. package/dist/config/getAdditionalViteConfig.native.js +67 -0
  8. package/dist/config/getAdditionalViteConfig.native.js.map +1 -0
  9. package/dist/config/getBaseViteConfigOnly.mjs +84 -0
  10. package/dist/config/getBaseViteConfigOnly.mjs.map +1 -0
  11. package/dist/config/getBaseViteConfigOnly.native.js +86 -0
  12. package/dist/config/getBaseViteConfigOnly.native.js.map +1 -0
  13. package/dist/config/getBaseViteConfigWithPlugins.mjs +10 -0
  14. package/dist/config/getBaseViteConfigWithPlugins.mjs.map +1 -0
  15. package/dist/config/getBaseViteConfigWithPlugins.native.js +10 -0
  16. package/dist/config/getBaseViteConfigWithPlugins.native.js.map +1 -0
  17. package/dist/config/getBaseVitePlugins.mjs +141 -0
  18. package/dist/config/getBaseVitePlugins.mjs.map +1 -0
  19. package/dist/config/getBaseVitePlugins.native.js +163 -0
  20. package/dist/config/getBaseVitePlugins.native.js.map +1 -0
  21. package/dist/config/getNonCliModeOnlyVitePlugins.mjs +8 -0
  22. package/dist/config/getNonCliModeOnlyVitePlugins.mjs.map +1 -0
  23. package/dist/config/getNonCliModeOnlyVitePlugins.native.js +6 -0
  24. package/dist/config/getNonCliModeOnlyVitePlugins.native.js.map +1 -0
  25. package/dist/config/getOptimizeDeps.mjs +47 -0
  26. package/dist/config/getOptimizeDeps.mjs.map +1 -0
  27. package/dist/config/getOptimizeDeps.native.js +47 -0
  28. package/dist/config/getOptimizeDeps.native.js.map +1 -0
  29. package/dist/config/getOptimizeDeps.test.mjs +20 -0
  30. package/dist/config/getOptimizeDeps.test.mjs.map +1 -0
  31. package/dist/config/getOptimizeDeps.test.native.js +39 -0
  32. package/dist/config/getOptimizeDeps.test.native.js.map +1 -0
  33. package/dist/config/getOptionsFilled.mjs +69 -0
  34. package/dist/config/getOptionsFilled.mjs.map +1 -0
  35. package/dist/config/getOptionsFilled.native.js +73 -0
  36. package/dist/config/getOptionsFilled.native.js.map +1 -0
  37. package/dist/config/getReactNativePlugins.mjs +23 -0
  38. package/dist/config/getReactNativePlugins.mjs.map +1 -0
  39. package/dist/config/getReactNativePlugins.native.js +25 -0
  40. package/dist/config/getReactNativePlugins.native.js.map +1 -0
  41. package/dist/config/getServerOptionsFilled.mjs +40 -0
  42. package/dist/config/getServerOptionsFilled.mjs.map +1 -0
  43. package/dist/config/getServerOptionsFilled.native.js +43 -0
  44. package/dist/config/getServerOptionsFilled.native.js.map +1 -0
  45. package/dist/config/getServerOptionsFilled.test.mjs +20 -0
  46. package/dist/config/getServerOptionsFilled.test.mjs.map +1 -0
  47. package/dist/config/getServerOptionsFilled.test.native.js +20 -0
  48. package/dist/config/getServerOptionsFilled.test.native.js.map +1 -0
  49. package/dist/config/getViteServerConfig.mjs +51 -0
  50. package/dist/config/getViteServerConfig.mjs.map +1 -0
  51. package/dist/config/getViteServerConfig.native.js +52 -0
  52. package/dist/config/getViteServerConfig.native.js.map +1 -0
  53. package/dist/config/mergeUserConfig.mjs +37 -0
  54. package/dist/config/mergeUserConfig.mjs.map +1 -0
  55. package/dist/config/mergeUserConfig.native.js +47 -0
  56. package/dist/config/mergeUserConfig.native.js.map +1 -0
  57. package/dist/config/mergeUserConfig.test.mjs +108 -0
  58. package/dist/config/mergeUserConfig.test.mjs.map +1 -0
  59. package/dist/config/mergeUserConfig.test.native.js +108 -0
  60. package/dist/config/mergeUserConfig.test.native.js.map +1 -0
  61. package/dist/constants/defaults.mjs +15 -0
  62. package/dist/constants/defaults.mjs.map +1 -0
  63. package/dist/constants/defaults.native.js +15 -0
  64. package/dist/constants/defaults.native.js.map +1 -0
  65. package/dist/constants.mjs +10 -0
  66. package/dist/constants.mjs.map +1 -0
  67. package/dist/constants.native.js +10 -0
  68. package/dist/constants.native.js.map +1 -0
  69. package/dist/exports/build.mjs +294 -0
  70. package/dist/exports/build.mjs.map +1 -0
  71. package/dist/exports/build.native.js +307 -0
  72. package/dist/exports/build.native.js.map +1 -0
  73. package/dist/exports/clean.mjs +99 -0
  74. package/dist/exports/clean.mjs.map +1 -0
  75. package/dist/exports/clean.native.js +111 -0
  76. package/dist/exports/clean.native.js.map +1 -0
  77. package/dist/exports/clean.test.mjs +81 -0
  78. package/dist/exports/clean.test.mjs.map +1 -0
  79. package/dist/exports/clean.test.native.js +88 -0
  80. package/dist/exports/clean.test.native.js.map +1 -0
  81. package/dist/exports/createServer.mjs +56 -0
  82. package/dist/exports/createServer.mjs.map +1 -0
  83. package/dist/exports/createServer.native.js +57 -0
  84. package/dist/exports/createServer.native.js.map +1 -0
  85. package/dist/exports/dev.mjs +204 -0
  86. package/dist/exports/dev.mjs.map +1 -0
  87. package/dist/exports/dev.native.js +218 -0
  88. package/dist/exports/dev.native.js.map +1 -0
  89. package/dist/exports/loadEnv.mjs +65 -0
  90. package/dist/exports/loadEnv.mjs.map +1 -0
  91. package/dist/exports/loadEnv.native.js +74 -0
  92. package/dist/exports/loadEnv.native.js.map +1 -0
  93. package/dist/exports/loadEnv.test.mjs +65 -0
  94. package/dist/exports/loadEnv.test.mjs.map +1 -0
  95. package/dist/exports/loadEnv.test.native.js +65 -0
  96. package/dist/exports/loadEnv.test.native.js.map +1 -0
  97. package/dist/exports/patch.mjs +12 -0
  98. package/dist/exports/patch.mjs.map +1 -0
  99. package/dist/exports/patch.native.js +12 -0
  100. package/dist/exports/patch.native.js.map +1 -0
  101. package/dist/exports/prebuild.mjs +212 -0
  102. package/dist/exports/prebuild.mjs.map +1 -0
  103. package/dist/exports/prebuild.native.js +215 -0
  104. package/dist/exports/prebuild.native.js.map +1 -0
  105. package/dist/exports/prebuildWithoutExpo.mjs +53 -0
  106. package/dist/exports/prebuildWithoutExpo.mjs.map +1 -0
  107. package/dist/exports/prebuildWithoutExpo.native.js +54 -0
  108. package/dist/exports/prebuildWithoutExpo.native.js.map +1 -0
  109. package/dist/exports/runAndroid.mjs +14 -0
  110. package/dist/exports/runAndroid.mjs.map +1 -0
  111. package/dist/exports/runAndroid.native.js +15 -0
  112. package/dist/exports/runAndroid.native.js.map +1 -0
  113. package/dist/exports/runIos.mjs +14 -0
  114. package/dist/exports/runIos.mjs.map +1 -0
  115. package/dist/exports/runIos.native.js +15 -0
  116. package/dist/exports/runIos.native.js.map +1 -0
  117. package/dist/exports/serve.mjs +37 -0
  118. package/dist/exports/serve.mjs.map +1 -0
  119. package/dist/exports/serve.native.js +40 -0
  120. package/dist/exports/serve.native.js.map +1 -0
  121. package/dist/exports/serveStaticAssets.mjs +133 -0
  122. package/dist/exports/serveStaticAssets.mjs.map +1 -0
  123. package/dist/exports/serveStaticAssets.native.js +213 -0
  124. package/dist/exports/serveStaticAssets.native.js.map +1 -0
  125. package/dist/index.js +22 -0
  126. package/dist/index.js.map +1 -0
  127. package/dist/index.mjs +22 -0
  128. package/dist/index.mjs.map +1 -0
  129. package/dist/index.native.js +22 -0
  130. package/dist/index.native.js.map +1 -0
  131. package/dist/patches/builtInDepPatches.mjs +483 -0
  132. package/dist/patches/builtInDepPatches.mjs.map +1 -0
  133. package/dist/patches/builtInDepPatches.native.js +486 -0
  134. package/dist/patches/builtInDepPatches.native.js.map +1 -0
  135. package/dist/plugins/applyBuiltInPatchesPlugin.mjs +17 -0
  136. package/dist/plugins/applyBuiltInPatchesPlugin.mjs.map +1 -0
  137. package/dist/plugins/applyBuiltInPatchesPlugin.native.js +17 -0
  138. package/dist/plugins/applyBuiltInPatchesPlugin.native.js.map +1 -0
  139. package/dist/plugins/autoDepOptimizePlugin.mjs +108 -0
  140. package/dist/plugins/autoDepOptimizePlugin.mjs.map +1 -0
  141. package/dist/plugins/autoDepOptimizePlugin.native.js +121 -0
  142. package/dist/plugins/autoDepOptimizePlugin.native.js.map +1 -0
  143. package/dist/plugins/autoDepOptimizePlugin.test.mjs +31 -0
  144. package/dist/plugins/autoDepOptimizePlugin.test.mjs.map +1 -0
  145. package/dist/plugins/autoDepOptimizePlugin.test.native.js +39 -0
  146. package/dist/plugins/autoDepOptimizePlugin.test.native.js.map +1 -0
  147. package/dist/plugins/clientInjectPlugin.mjs +16 -0
  148. package/dist/plugins/clientInjectPlugin.mjs.map +1 -0
  149. package/dist/plugins/clientInjectPlugin.native.js +16 -0
  150. package/dist/plugins/clientInjectPlugin.native.js.map +1 -0
  151. package/dist/plugins/defaultDepOptimizePlugin.mjs +30 -0
  152. package/dist/plugins/defaultDepOptimizePlugin.mjs.map +1 -0
  153. package/dist/plugins/defaultDepOptimizePlugin.native.js +30 -0
  154. package/dist/plugins/defaultDepOptimizePlugin.native.js.map +1 -0
  155. package/dist/plugins/expoManifestRequestHandlerPlugin.mjs +189 -0
  156. package/dist/plugins/expoManifestRequestHandlerPlugin.mjs.map +1 -0
  157. package/dist/plugins/expoManifestRequestHandlerPlugin.native.js +202 -0
  158. package/dist/plugins/expoManifestRequestHandlerPlugin.native.js.map +1 -0
  159. package/dist/plugins/getResolvedConfigSubset.mjs +12 -0
  160. package/dist/plugins/getResolvedConfigSubset.mjs.map +1 -0
  161. package/dist/plugins/getResolvedConfigSubset.native.js +12 -0
  162. package/dist/plugins/getResolvedConfigSubset.native.js.map +1 -0
  163. package/dist/plugins/reactNativeCommonJsPlugin.mjs +194 -0
  164. package/dist/plugins/reactNativeCommonJsPlugin.mjs.map +1 -0
  165. package/dist/plugins/reactNativeCommonJsPlugin.native.js +275 -0
  166. package/dist/plugins/reactNativeCommonJsPlugin.native.js.map +1 -0
  167. package/dist/plugins/reactNativeDevAssetPlugin.mjs +99 -0
  168. package/dist/plugins/reactNativeDevAssetPlugin.mjs.map +1 -0
  169. package/dist/plugins/reactNativeDevAssetPlugin.native.js +108 -0
  170. package/dist/plugins/reactNativeDevAssetPlugin.native.js.map +1 -0
  171. package/dist/plugins/reactNativeDevServer.mjs +221 -0
  172. package/dist/plugins/reactNativeDevServer.mjs.map +1 -0
  173. package/dist/plugins/reactNativeDevServer.native.js +263 -0
  174. package/dist/plugins/reactNativeDevServer.native.js.map +1 -0
  175. package/dist/plugins/resolveIdScan.test.mjs +31 -0
  176. package/dist/plugins/resolveIdScan.test.mjs.map +1 -0
  177. package/dist/plugins/resolveIdScan.test.native.js +38 -0
  178. package/dist/plugins/resolveIdScan.test.native.js.map +1 -0
  179. package/dist/plugins/rollupRemoveUnusedImports.mjs +11 -0
  180. package/dist/plugins/rollupRemoveUnusedImports.mjs.map +1 -0
  181. package/dist/plugins/rollupRemoveUnusedImports.native.js +11 -0
  182. package/dist/plugins/rollupRemoveUnusedImports.native.js.map +1 -0
  183. package/dist/plugins/serverExtensions.test.mjs +106 -0
  184. package/dist/plugins/serverExtensions.test.mjs.map +1 -0
  185. package/dist/plugins/serverExtensions.test.native.js +117 -0
  186. package/dist/plugins/serverExtensions.test.native.js.map +1 -0
  187. package/dist/rn-commands/bundle/buildBundle.mjs +68 -0
  188. package/dist/rn-commands/bundle/buildBundle.mjs.map +1 -0
  189. package/dist/rn-commands/bundle/buildBundle.native.js +75 -0
  190. package/dist/rn-commands/bundle/buildBundle.native.js.map +1 -0
  191. package/dist/runtime/hmr-client.mjs +145 -0
  192. package/dist/runtime/hmr-client.mjs.map +1 -0
  193. package/dist/runtime/hmr-client.native.js +237 -0
  194. package/dist/runtime/hmr-client.native.js.map +1 -0
  195. package/dist/runtime/hmr-runtime.mjs +200 -0
  196. package/dist/runtime/hmr-runtime.mjs.map +1 -0
  197. package/dist/runtime/hmr-runtime.native.js +441 -0
  198. package/dist/runtime/hmr-runtime.native.js.map +1 -0
  199. package/dist/runtime/hmr-types.mjs +2 -0
  200. package/dist/runtime/hmr-types.mjs.map +1 -0
  201. package/dist/runtime/hmr-types.native.js +2 -0
  202. package/dist/runtime/hmr-types.native.js.map +1 -0
  203. package/dist/runtime/native-prelude.mjs +94 -0
  204. package/dist/runtime/native-prelude.mjs.map +1 -0
  205. package/dist/runtime/native-prelude.native.js +94 -0
  206. package/dist/runtime/native-prelude.native.js.map +1 -0
  207. package/dist/runtime/react-refresh-utils.mjs +29 -0
  208. package/dist/runtime/react-refresh-utils.mjs.map +1 -0
  209. package/dist/runtime/react-refresh-utils.native.js +34 -0
  210. package/dist/runtime/react-refresh-utils.native.js.map +1 -0
  211. package/dist/serve/node.mjs +62 -0
  212. package/dist/serve/node.mjs.map +1 -0
  213. package/dist/serve/node.native.js +107 -0
  214. package/dist/serve/node.native.js.map +1 -0
  215. package/dist/serve/node.test.mjs +60 -0
  216. package/dist/serve/node.test.mjs.map +1 -0
  217. package/dist/serve/node.test.native.js +72 -0
  218. package/dist/serve/node.test.native.js.map +1 -0
  219. package/dist/types.mjs +2 -0
  220. package/dist/types.mjs.map +1 -0
  221. package/dist/types.native.js +2 -0
  222. package/dist/types.native.js.map +1 -0
  223. package/dist/user-interface/index.mjs +312 -0
  224. package/dist/user-interface/index.mjs.map +1 -0
  225. package/dist/user-interface/index.native.js +349 -0
  226. package/dist/user-interface/index.native.js.map +1 -0
  227. package/dist/utils/assert.mjs +12 -0
  228. package/dist/utils/assert.mjs.map +1 -0
  229. package/dist/utils/assert.native.js +24 -0
  230. package/dist/utils/assert.native.js.map +1 -0
  231. package/dist/utils/bindKeypressInput.mjs +47 -0
  232. package/dist/utils/bindKeypressInput.mjs.map +1 -0
  233. package/dist/utils/bindKeypressInput.native.js +47 -0
  234. package/dist/utils/bindKeypressInput.native.js.map +1 -0
  235. package/dist/utils/bindKeypressInput.test.mjs +48 -0
  236. package/dist/utils/bindKeypressInput.test.mjs.map +1 -0
  237. package/dist/utils/bindKeypressInput.test.native.js +48 -0
  238. package/dist/utils/bindKeypressInput.test.native.js.map +1 -0
  239. package/dist/utils/coerceToArray.mjs +5 -0
  240. package/dist/utils/coerceToArray.mjs.map +1 -0
  241. package/dist/utils/coerceToArray.native.js +5 -0
  242. package/dist/utils/coerceToArray.native.js.map +1 -0
  243. package/dist/utils/connectedNativeClients.mjs +9 -0
  244. package/dist/utils/connectedNativeClients.mjs.map +1 -0
  245. package/dist/utils/connectedNativeClients.native.js +9 -0
  246. package/dist/utils/connectedNativeClients.native.js.map +1 -0
  247. package/dist/utils/createNativeDevEngine.mjs +939 -0
  248. package/dist/utils/createNativeDevEngine.mjs.map +1 -0
  249. package/dist/utils/createNativeDevEngine.native.js +999 -0
  250. package/dist/utils/createNativeDevEngine.native.js.map +1 -0
  251. package/dist/utils/createNativeDevEngine.test.mjs +169 -0
  252. package/dist/utils/createNativeDevEngine.test.mjs.map +1 -0
  253. package/dist/utils/createNativeDevEngine.test.native.js +203 -0
  254. package/dist/utils/createNativeDevEngine.test.native.js.map +1 -0
  255. package/dist/utils/dispose.mjs +9 -0
  256. package/dist/utils/dispose.mjs.map +1 -0
  257. package/dist/utils/dispose.native.js +11 -0
  258. package/dist/utils/dispose.native.js.map +1 -0
  259. package/dist/utils/environmentUtils.mjs +14 -0
  260. package/dist/utils/environmentUtils.mjs.map +1 -0
  261. package/dist/utils/environmentUtils.native.js +14 -0
  262. package/dist/utils/environmentUtils.native.js.map +1 -0
  263. package/dist/utils/execSync.mjs +9 -0
  264. package/dist/utils/execSync.mjs.map +1 -0
  265. package/dist/utils/execSync.native.js +9 -0
  266. package/dist/utils/execSync.native.js.map +1 -0
  267. package/dist/utils/expoRun.mjs +48 -0
  268. package/dist/utils/expoRun.mjs.map +1 -0
  269. package/dist/utils/expoRun.native.js +49 -0
  270. package/dist/utils/expoRun.native.js.map +1 -0
  271. package/dist/utils/filterViteServerResolvedUrls.mjs +29 -0
  272. package/dist/utils/filterViteServerResolvedUrls.mjs.map +1 -0
  273. package/dist/utils/filterViteServerResolvedUrls.native.js +70 -0
  274. package/dist/utils/filterViteServerResolvedUrls.native.js.map +1 -0
  275. package/dist/utils/getBoundPort.mjs +9 -0
  276. package/dist/utils/getBoundPort.mjs.map +1 -0
  277. package/dist/utils/getBoundPort.native.js +16 -0
  278. package/dist/utils/getBoundPort.native.js.map +1 -0
  279. package/dist/utils/getBoundPort.test.mjs +71 -0
  280. package/dist/utils/getBoundPort.test.mjs.map +1 -0
  281. package/dist/utils/getBoundPort.test.native.js +82 -0
  282. package/dist/utils/getBoundPort.test.native.js.map +1 -0
  283. package/dist/utils/getCacheDir.mjs +6 -0
  284. package/dist/utils/getCacheDir.mjs.map +1 -0
  285. package/dist/utils/getCacheDir.native.js +6 -0
  286. package/dist/utils/getCacheDir.native.js.map +1 -0
  287. package/dist/utils/getServerEntry.mjs +10 -0
  288. package/dist/utils/getServerEntry.mjs.map +1 -0
  289. package/dist/utils/getServerEntry.native.js +17 -0
  290. package/dist/utils/getServerEntry.native.js.map +1 -0
  291. package/dist/utils/getVitePath.mjs +49 -0
  292. package/dist/utils/getVitePath.mjs.map +1 -0
  293. package/dist/utils/getVitePath.native.js +48 -0
  294. package/dist/utils/getVitePath.native.js.map +1 -0
  295. package/dist/utils/globDir.mjs +18 -0
  296. package/dist/utils/globDir.mjs.map +1 -0
  297. package/dist/utils/globDir.native.js +21 -0
  298. package/dist/utils/globDir.native.js.map +1 -0
  299. package/dist/utils/imageSizePatch.test.mjs +29 -0
  300. package/dist/utils/imageSizePatch.test.mjs.map +1 -0
  301. package/dist/utils/imageSizePatch.test.native.js +30 -0
  302. package/dist/utils/imageSizePatch.test.native.js.map +1 -0
  303. package/dist/utils/isWithin.mjs +7 -0
  304. package/dist/utils/isWithin.mjs.map +1 -0
  305. package/dist/utils/isWithin.native.js +7 -0
  306. package/dist/utils/isWithin.native.js.map +1 -0
  307. package/dist/utils/patches.mjs +279 -0
  308. package/dist/utils/patches.mjs.map +1 -0
  309. package/dist/utils/patches.native.js +508 -0
  310. package/dist/utils/patches.native.js.map +1 -0
  311. package/dist/utils/patches.test.mjs +214 -0
  312. package/dist/utils/patches.test.mjs.map +1 -0
  313. package/dist/utils/patches.test.native.js +224 -0
  314. package/dist/utils/patches.test.native.js.map +1 -0
  315. package/dist/utils/printServerUrls.mjs +12 -0
  316. package/dist/utils/printServerUrls.mjs.map +1 -0
  317. package/dist/utils/printServerUrls.native.js +56 -0
  318. package/dist/utils/printServerUrls.native.js.map +1 -0
  319. package/dist/utils/removeUndefined.mjs +11 -0
  320. package/dist/utils/removeUndefined.mjs.map +1 -0
  321. package/dist/utils/removeUndefined.native.js +11 -0
  322. package/dist/utils/removeUndefined.native.js.map +1 -0
  323. package/dist/utils/scanDepsToOptimize.mjs +176 -0
  324. package/dist/utils/scanDepsToOptimize.mjs.map +1 -0
  325. package/dist/utils/scanDepsToOptimize.native.js +212 -0
  326. package/dist/utils/scanDepsToOptimize.native.js.map +1 -0
  327. package/dist/utils/state.mjs +28 -0
  328. package/dist/utils/state.mjs.map +1 -0
  329. package/dist/utils/state.native.js +28 -0
  330. package/dist/utils/state.native.js.map +1 -0
  331. package/dist/utils/uniq.mjs +5 -0
  332. package/dist/utils/uniq.mjs.map +1 -0
  333. package/dist/utils/uniq.native.js +5 -0
  334. package/dist/utils/uniq.native.js.map +1 -0
  335. package/dist/utils/utils.mjs +32 -0
  336. package/dist/utils/utils.mjs.map +1 -0
  337. package/dist/utils/utils.native.js +53 -0
  338. package/dist/utils/utils.native.js.map +1 -0
  339. package/dist/vendor/debugger-app/index.mjs +2 -0
  340. package/dist/vendor/debugger-app/index.mjs.map +1 -0
  341. package/dist/vendor/debugger-app/index.native.js +2 -0
  342. package/dist/vendor/debugger-app/index.native.js.map +1 -0
  343. package/dist/vendor/debugger-app/src/debuggerWorker.mjs +2 -0
  344. package/dist/vendor/debugger-app/src/debuggerWorker.mjs.map +1 -0
  345. package/dist/vendor/debugger-app/src/debuggerWorker.native.js +2 -0
  346. package/dist/vendor/debugger-app/src/debuggerWorker.native.js.map +1 -0
  347. package/dist/vendor/debugger-app/src/index.css +41 -0
  348. package/dist/vendor/debugger-app/src/index.css.map +6 -0
  349. package/dist/vendor/debugger-app/src/index.mjs +2 -0
  350. package/dist/vendor/debugger-app/src/index.mjs.map +1 -0
  351. package/dist/vendor/debugger-app/src/index.native.js +2 -0
  352. package/dist/vendor/debugger-app/src/index.native.js.map +1 -0
  353. package/dist/vxrn-vite-plugin.mjs +44 -0
  354. package/dist/vxrn-vite-plugin.mjs.map +1 -0
  355. package/dist/vxrn-vite-plugin.native.js +45 -0
  356. package/dist/vxrn-vite-plugin.native.js.map +1 -0
  357. package/package.json +11 -11
  358. package/types/cli.d.ts.map +1 -0
  359. package/types/config/getAdditionalViteConfig.d.ts.map +1 -0
  360. package/types/config/getBaseViteConfigOnly.d.ts.map +1 -0
  361. package/types/config/getBaseViteConfigWithPlugins.d.ts.map +1 -0
  362. package/types/config/getBaseVitePlugins.d.ts.map +1 -0
  363. package/types/config/getNonCliModeOnlyVitePlugins.d.ts.map +1 -0
  364. package/types/config/getOptimizeDeps.d.ts.map +1 -0
  365. package/types/config/getOptimizeDeps.test.d.ts.map +1 -0
  366. package/types/config/getOptionsFilled.d.ts.map +1 -0
  367. package/types/config/getReactNativePlugins.d.ts.map +1 -0
  368. package/types/config/getServerOptionsFilled.d.ts.map +1 -0
  369. package/types/config/getServerOptionsFilled.test.d.ts.map +1 -0
  370. package/types/config/getViteServerConfig.d.ts.map +1 -0
  371. package/types/config/mergeUserConfig.d.ts.map +1 -0
  372. package/types/config/mergeUserConfig.test.d.ts.map +1 -0
  373. package/types/constants/defaults.d.ts.map +1 -0
  374. package/types/constants.d.ts.map +1 -0
  375. package/types/exports/build.d.ts.map +1 -0
  376. package/types/exports/clean.d.ts.map +1 -0
  377. package/types/exports/clean.test.d.ts.map +1 -0
  378. package/types/exports/createServer.d.ts.map +1 -0
  379. package/types/exports/dev.d.ts.map +1 -0
  380. package/types/exports/loadEnv.d.ts.map +1 -0
  381. package/types/exports/loadEnv.test.d.ts.map +1 -0
  382. package/types/exports/patch.d.ts.map +1 -0
  383. package/types/exports/prebuild.d.ts.map +1 -0
  384. package/types/exports/prebuildWithoutExpo.d.ts.map +1 -0
  385. package/types/exports/runAndroid.d.ts.map +1 -0
  386. package/types/exports/runIos.d.ts.map +1 -0
  387. package/types/exports/serve.d.ts.map +1 -0
  388. package/types/exports/serveStaticAssets.d.ts.map +1 -0
  389. package/types/index.d.ts.map +1 -0
  390. package/types/patches/builtInDepPatches.d.ts.map +1 -0
  391. package/types/plugins/applyBuiltInPatchesPlugin.d.ts.map +1 -0
  392. package/types/plugins/autoDepOptimizePlugin.d.ts.map +1 -0
  393. package/types/plugins/autoDepOptimizePlugin.test.d.ts.map +1 -0
  394. package/types/plugins/clientInjectPlugin.d.ts.map +1 -0
  395. package/types/plugins/defaultDepOptimizePlugin.d.ts.map +1 -0
  396. package/types/plugins/expoManifestRequestHandlerPlugin.d.ts.map +1 -0
  397. package/types/plugins/getResolvedConfigSubset.d.ts.map +1 -0
  398. package/types/plugins/reactNativeCommonJsPlugin.d.ts.map +1 -0
  399. package/types/plugins/reactNativeDevAssetPlugin.d.ts.map +1 -0
  400. package/types/plugins/reactNativeDevServer.d.ts.map +1 -0
  401. package/types/plugins/resolveIdScan.test.d.ts.map +1 -0
  402. package/types/plugins/rollupRemoveUnusedImports.d.ts.map +1 -0
  403. package/types/plugins/serverExtensions.test.d.ts.map +1 -0
  404. package/types/rn-commands/bundle/buildBundle.d.ts.map +1 -0
  405. package/types/runtime/hmr-client.d.ts.map +1 -0
  406. package/types/runtime/hmr-runtime.d.ts.map +1 -0
  407. package/types/runtime/hmr-types.d.ts.map +1 -0
  408. package/types/runtime/native-prelude.d.ts.map +1 -0
  409. package/types/runtime/react-refresh-utils.d.ts.map +1 -0
  410. package/types/serve/node.d.ts.map +1 -0
  411. package/types/serve/node.test.d.ts.map +1 -0
  412. package/types/types.d.ts.map +1 -0
  413. package/types/user-interface/index.d.ts.map +1 -0
  414. package/types/utils/assert.d.ts.map +1 -0
  415. package/types/utils/bindKeypressInput.d.ts.map +1 -0
  416. package/types/utils/bindKeypressInput.test.d.ts.map +1 -0
  417. package/types/utils/coerceToArray.d.ts.map +1 -0
  418. package/types/utils/connectedNativeClients.d.ts.map +1 -0
  419. package/types/utils/createNativeDevEngine.d.ts.map +1 -0
  420. package/types/utils/createNativeDevEngine.test.d.ts.map +1 -0
  421. package/types/utils/dispose.d.ts.map +1 -0
  422. package/types/utils/environmentUtils.d.ts.map +1 -0
  423. package/types/utils/execSync.d.ts.map +1 -0
  424. package/types/utils/expoRun.d.ts.map +1 -0
  425. package/types/utils/filterViteServerResolvedUrls.d.ts.map +1 -0
  426. package/types/utils/getBoundPort.d.ts.map +1 -0
  427. package/types/utils/getBoundPort.test.d.ts.map +1 -0
  428. package/types/utils/getCacheDir.d.ts.map +1 -0
  429. package/types/utils/getServerEntry.d.ts.map +1 -0
  430. package/types/utils/getVitePath.d.ts.map +1 -0
  431. package/types/utils/globDir.d.ts.map +1 -0
  432. package/types/utils/imageSizePatch.test.d.ts.map +1 -0
  433. package/types/utils/isWithin.d.ts.map +1 -0
  434. package/types/utils/patches.d.ts.map +1 -0
  435. package/types/utils/patches.test.d.ts.map +1 -0
  436. package/types/utils/printServerUrls.d.ts.map +1 -0
  437. package/types/utils/removeUndefined.d.ts.map +1 -0
  438. package/types/utils/scanDepsToOptimize.d.ts.map +1 -0
  439. package/types/utils/state.d.ts.map +1 -0
  440. package/types/utils/uniq.d.ts.map +1 -0
  441. package/types/utils/utils.d.ts.map +1 -0
  442. package/types/vxrn-vite-plugin.d.ts.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["mkdtemp","rm","writeFile","tmpdir","join","dev","describe","expect","it","getHermesSWCIncludes","getHmrRuntimeSource","getNativeTransformConfig","hmrClientNoopPlugin","vxrnCompilerPlugin","wrapNativeBundleModuleScope","_instanceof","left","right","Symbol","hasInstance","_type_of","obj","constructor","timeout","testRoot","entry","source","version","resolveInitialOutput","initialOutput","Promise","resolve","resolveHmrUpdate","hmrUpdate","engine","cwd","input","experimental","devMode","implement","format","onOutput","result2","onHmrUpdates","Error","changedFiles","length","_result_updates_find","run","initial","chunk","output","find","item","type","isEntry","toBeTruthy","globalThis","__rolldown_runtime__","Buffer","from","code","toString","runtime","clientId","toBe","registerClient","setTimeout","patch","race","_","reject","updates","update","applyHmrUpdate","changedIds","seq","__vxrnHmrBody","__vxrnHmrAccepted","close","recursive","force","root","_loop","_i2","_iter2","_loop2","_i12","_iter12","dev2","platform","define","JSON","stringify","envObject","parse","TAMAGUI_TARGET","TAMAGUI_ENVIRONMENT","_i1","_iter1","_i","_iter","RUNTIME_MARKER","out","openIdx","indexOf","toBeGreaterThan","toBeLessThan","Function","not","toThrow","CLASS_SET","toEqual","arrayContaining","toContain","plugin","resolveId","load","VIRTUAL_ID","each","importer","id","external","toBeUndefined","result","moduleType","method","previousNodeEnv","process","env","NODE_ENV","transform"],"sources":["createNativeDevEngine.test.native.js"],"sourcesContent":["import { mkdtemp, rm, writeFile } from \"fs/promises\";\nimport { tmpdir } from \"os\";\nimport { join } from \"path\";\nimport { dev } from \"rolldown/experimental\";\nimport { describe, expect, it } from \"vitest\";\nimport { getHermesSWCIncludes, getHmrRuntimeSource, getNativeTransformConfig, hmrClientNoopPlugin, vxrnCompilerPlugin, wrapNativeBundleModuleScope } from \"./createNativeDevEngine\";\n\nfunction _instanceof(left, right) {\n\tif (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) return !!right[Symbol.hasInstance](left);\n\telse return left instanceof right;\n}\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\ndescribe(\"native Rolldown HMR runtime\", function() {\n\tit(\"registers a Rolldown 1.2 client and applies a self-accepted patch\", { timeout: 3e4 }, async function() {\n\t\tvar testRoot = await mkdtemp(join(tmpdir(), \"vxrn-native-hmr-\"));\n\t\tvar entry = join(testRoot, \"entry.js\");\n\t\tvar source = function(version) {\n\t\t\treturn `\nglobalThis.__vxrnHmrBody = '${version}'\nexport const value = '${version}'\nif (import.meta.hot) {\n import.meta.hot.accept((next) => {\n globalThis.__vxrnHmrAccepted = next.value\n })\n}\n`;\n\t\t};\n\t\tawait writeFile(entry, source(\"v1\"));\n\t\tvar resolveInitialOutput;\n\t\tvar initialOutput = new Promise(function(resolve) {\n\t\t\tresolveInitialOutput = resolve;\n\t\t});\n\t\tvar resolveHmrUpdate;\n\t\tvar hmrUpdate = new Promise(function(resolve) {\n\t\t\tresolveHmrUpdate = resolve;\n\t\t});\n\t\tvar engine = await dev({\n\t\t\tcwd: testRoot,\n\t\t\tinput: entry,\n\t\t\texperimental: { devMode: { implement: getHmrRuntimeSource() } }\n\t\t}, { format: \"esm\" }, {\n\t\t\tonOutput(result2) {\n\t\t\t\tresolveInitialOutput(result2);\n\t\t\t},\n\t\t\tonHmrUpdates(result2) {\n\t\t\t\tif (!_instanceof(result2, Error) && result2.changedFiles.length) resolveHmrUpdate(result2);\n\t\t\t}\n\t\t});\n\t\ttry {\n\t\t\tvar _result_updates_find;\n\t\t\tawait engine.run();\n\t\t\tvar initial = await initialOutput;\n\t\t\tif (_instanceof(initial, Error)) throw initial;\n\t\t\tvar chunk = initial.output.find(function(item) {\n\t\t\t\treturn item.type === \"chunk\" && item.isEntry;\n\t\t\t});\n\t\t\texpect(chunk).toBeTruthy();\n\t\t\tdelete globalThis.__rolldown_runtime__;\n\t\t\tawait import(`data:text/javascript;base64,${Buffer.from(chunk.code).toString(\"base64\")}`);\n\t\t\tvar runtime = globalThis.__rolldown_runtime__;\n\t\t\texpect(_type_of(runtime.clientId)).toBe(\"string\");\n\t\t\tawait engine.registerClient(runtime.clientId);\n\t\t\tawait new Promise(function(resolve) {\n\t\t\t\treturn setTimeout(resolve, 100);\n\t\t\t});\n\t\t\tawait writeFile(entry, source(\"v2\"));\n\t\t\tvar patch = (_result_updates_find = (await Promise.race([hmrUpdate, new Promise(function(_, reject) {\n\t\t\t\treturn setTimeout(function() {\n\t\t\t\t\treturn reject(/* @__PURE__ */ new Error(\"timed out waiting for HMR patch\"));\n\t\t\t\t}, 1e4);\n\t\t\t})])).updates.find(function(item) {\n\t\t\t\treturn item.clientId === runtime.clientId && item.update.type === \"Patch\";\n\t\t\t})) === null || _result_updates_find === void 0 ? void 0 : _result_updates_find.update;\n\t\t\texpect(patch).toBeTruthy();\n\t\t\texpect(runtime.applyHmrUpdate(patch.code, patch.changedIds, patch.seq)).toBe(true);\n\t\t\texpect(globalThis.__vxrnHmrBody).toBe(\"v2\");\n\t\t\texpect(globalThis.__vxrnHmrAccepted).toBe(\"v2\");\n\t\t} finally {\n\t\t\tawait engine.close();\n\t\t\tawait rm(testRoot, {\n\t\t\t\trecursive: true,\n\t\t\t\tforce: true\n\t\t\t});\n\t\t\tdelete globalThis.__rolldown_runtime__;\n\t\t\tdelete globalThis.__vxrnHmrBody;\n\t\t\tdelete globalThis.__vxrnHmrAccepted;\n\t\t}\n\t});\n});\nvar root = \"/tmp/vxrn-native-env-define-test-nonexistent\";\ndescribe(\"getNativeTransformConfig platform env defines\", function() {\n\tvar _loop = function(_i2, _iter2) {\n\t\tvar _loop2 = function(_i12, _iter12) {\n\t\t\tvar dev2 = _iter12[_i12];\n\t\t\tit(`injects TAMAGUI_TARGET=native for ${platform} (dev=${dev2})`, function() {\n\t\t\t\tvar { define } = getNativeTransformConfig(platform, dev2, root);\n\t\t\t\texpect(define[\"import.meta.env.TAMAGUI_TARGET\"]).toBe(\"\\\"native\\\"\");\n\t\t\t\texpect(define[\"process.env.TAMAGUI_TARGET\"]).toBe(\"\\\"native\\\"\");\n\t\t\t\texpect(define[\"import.meta.env.TAMAGUI_ENVIRONMENT\"]).toBe(JSON.stringify(platform));\n\t\t\t\texpect(define[\"import.meta.env.VITE_ENVIRONMENT\"]).toBe(JSON.stringify(platform));\n\t\t\t\texpect(define[\"import.meta.env.VITE_NATIVE\"]).toBe(\"\\\"1\\\"\");\n\t\t\t\texpect(define[\"import.meta.env.EXPO_OS\"]).toBe(JSON.stringify(platform));\n\t\t\t\tvar envObject = JSON.parse(define[\"import.meta.env\"]);\n\t\t\t\texpect(envObject.TAMAGUI_TARGET).toBe(\"native\");\n\t\t\t\texpect(envObject.TAMAGUI_ENVIRONMENT).toBe(platform);\n\t\t\t});\n\t\t};\n\t\tvar platform = _iter2[_i2];\n\t\tfor (var _i1 = 0, _iter1 = [true, false]; _i1 < _iter1.length; _i1++) _loop2(_i1, _iter1);\n\t};\n\tfor (var _i = 0, _iter = [\"ios\", \"android\"]; _i < _iter.length; _i++) _loop(_i, _iter);\n});\ndescribe(\"wrapNativeBundleModuleScope\", function() {\n\tvar RUNTIME_MARKER = \"//#region \\\\0rolldown/runtime.js\";\n\tit(\"wraps module code after the prelude so top-level vars do not leak to global\", function() {\n\t\tvar out = wrapNativeBundleModuleScope(`globalThis.global = globalThis;\nglobalThis.__DEV__ = true;\n${RUNTIME_MARKER}\nvar fetch_hot, fetch$1, Headers, Request, Response$1;\nglobalThis.__rolldown_runtime__ = {};\n`);\n\t\tvar openIdx = out.indexOf(\";(function() {\");\n\t\texpect(openIdx).toBeGreaterThan(-1);\n\t\texpect(out.indexOf(\"globalThis.__DEV__\")).toBeLessThan(openIdx);\n\t\texpect(out.indexOf(\"var fetch_hot\")).toBeGreaterThan(openIdx);\n\t\texpect(function() {\n\t\t\treturn new Function(out);\n\t\t}).not.toThrow();\n\t});\n\tit(\"is a no-op when the runtime marker is absent (e.g. prod bundle)\", function() {\n\t\tvar input = \"var x = 1;\\nconsole.log(x);\\n\";\n\t\texpect(wrapNativeBundleModuleScope(input)).toBe(input);\n\t});\n});\ndescribe(\"getHermesSWCIncludes\", function() {\n\tvar CLASS_SET = [\n\t\t\"transform-classes\",\n\t\t\"transform-class-properties\",\n\t\t\"transform-class-static-block\",\n\t\t\"transform-private-methods\",\n\t\t\"transform-private-property-in-object\"\n\t];\n\tit(\"always includes the full Hermes class-transform set (dev and prod)\", function() {\n\t\texpect(getHermesSWCIncludes(true)).toEqual(expect.arrayContaining(CLASS_SET));\n\t\texpect(getHermesSWCIncludes(false)).toEqual(expect.arrayContaining(CLASS_SET));\n\t});\n\tit(\"adds transform-async-to-generator only in production\", function() {\n\t\texpect(getHermesSWCIncludes(true)).not.toContain(\"transform-async-to-generator\");\n\t\texpect(getHermesSWCIncludes(false)).toContain(\"transform-async-to-generator\");\n\t});\n});\ndescribe(\"hmrClientNoopPlugin\", function() {\n\tvar plugin = hmrClientNoopPlugin();\n\tvar resolveId = plugin.resolveId;\n\tvar load = plugin.load;\n\tvar VIRTUAL_ID = \"\\0vxrn-hmr-client-noop\";\n\tit.each([\n\t\t[\"react-native/Libraries/Utilities/HMRClient\", void 0],\n\t\t[\"../Utilities/HMRClient\", \"/project/node_modules/react-native/Libraries/Core.js\"],\n\t\t[\"../../Utilities/HMRClient.js\", \"/project/react-native/Libraries/Core.js\"],\n\t\t[\"..\\\\Utilities\\\\HMRClient.js\", \"C:\\\\project\\\\react-native\\\\Libraries\\\\Core.js\"],\n\t\t[\"../Utilities/HMRClient.ts\", \"/project/node_modules/react-native/Core.js\"],\n\t\t[\"../Utilities/HMRClient.tsx\", \"/project/node_modules/react-native/Core.js\"],\n\t\t[\"../Utilities/HMRClient.cjs\", \"/project/node_modules/react-native/Core.js\"]\n\t])(\"aliases RN HMRClient specifier %j to the no-op virtual module\", function(source, importer) {\n\t\texpect(resolveId(source, importer)).toEqual({\n\t\t\tid: VIRTUAL_ID,\n\t\t\texternal: false\n\t\t});\n\t});\n\tit.each([\n\t\t\"react-native/Libraries/Utilities/HMRClientRegistry\",\n\t\t\"some/MyUtilities/HMRClient\",\n\t\t\"react-native/Libraries/Core/setUpDeveloperTools\",\n\t\t\"react\"\n\t])(\"does not touch unrelated specifier %j\", function(source) {\n\t\texpect(resolveId(source)).toBeUndefined();\n\t});\n\tit(\"does not alias an app-authored Utilities/HMRClient module\", function() {\n\t\texpect(resolveId(\"../Utilities/HMRClient\", \"/project/src/App.tsx\")).toBeUndefined();\n\t});\n\tit(\"loads a no-op module exposing every HMRClient method RN calls\", function() {\n\t\tvar result = load(VIRTUAL_ID);\n\t\texpect(result === null || result === void 0 ? void 0 : result.moduleType).toBe(\"js\");\n\t\tfor (var _i = 0, _iter = [\n\t\t\t\"setup\",\n\t\t\t\"enable\",\n\t\t\t\"disable\",\n\t\t\t\"registerBundle\",\n\t\t\t\"log\",\n\t\t\t\"isEnabled\"\n\t\t]; _i < _iter.length; _i++) {\n\t\t\tvar method = _iter[_i];\n\t\t\texpect(result.code).toContain(method);\n\t\t}\n\t\texpect(result.code).toContain(\"export default HMRClient\");\n\t});\n\tit(\"does not load unrelated ids\", function() {\n\t\texpect(load(\"\\0some-other-virtual\")).toBeUndefined();\n\t});\n});\ndescribe(\"vxrnCompilerPlugin React Refresh registration\", function() {\n\tit(\"keeps initial-bundle registrations visible to rolldown\", async function() {\n\t\tvar previousNodeEnv = process.env.NODE_ENV;\n\t\tprocess.env.NODE_ENV = \"test\";\n\t\ttry {\n\t\t\tvar transform = vxrnCompilerPlugin(\"ios\", true).transform;\n\t\t\tvar code = (await transform(\"export const marker = \\\"$RefreshReg$(\\\"; export function Probe() { return <div>probe</div> }\", \"/project/src/Probe.tsx\")).code;\n\t\t\texpect(code).toContain(\"var __vxrnRefreshReg = globalThis.$RefreshReg$\");\n\t\t\texpect(code).toContain(\"__vxrnRefreshReg(\");\n\t\t\texpect(code).toContain(\"\\\"$RefreshReg$(\\\"\");\n\t\t} finally {\n\t\t\tprocess.env.NODE_ENV = previousNodeEnv;\n\t\t}\n\t});\n});\n\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,EAAE,EAAEC,SAAS,QAAQ,aAAa;AACpD,SAASC,MAAM,QAAQ,IAAI;AAC3B,SAASC,IAAI,QAAQ,MAAM;AAC3B,SAASC,GAAG,QAAQ,uBAAuB;AAC3C,SAASC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAC7C,SAASC,oBAAoB,EAAEC,mBAAmB,EAAEC,wBAAwB,EAAEC,mBAAmB,EAAEC,kBAAkB,EAAEC,2BAA2B,QAAQ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MACxE3G,MAAM,CAACsD,IAAI,CAAC,CAACqD,SAAS,CAAC,mBAAmB,CAAC;MAC3C3G,MAAM,CAACsD,IAAI,CAAC,CAACqD,SAAS,CAAC,mBAAmB,CAAC;IAC5C,CAAC,SAAS;MACTc,OAAO,CAACC,GAAG,CAACC,QAAQ,GAAGH,eAAe;IACvC;EACD,CAAC,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ const disposers = /* @__PURE__ */new Set();
2
+ function registerDispose(cb) {
3
+ disposers.add(cb);
4
+ }
5
+ function disposeAll() {
6
+ disposers.forEach(cb => cb());
7
+ }
8
+ export { disposeAll, registerDispose };
9
+ //# sourceMappingURL=dispose.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["disposers","Set","registerDispose","cb","add","disposeAll","forEach"],"sources":["../../src/utils/dispose.ts"],"sourcesContent":[null],"mappings":"AAAA,MAAMA,SAAA,GAAY,mBAAIC,GAAA,CAAc;AAE7B,SAASC,gBAAgBC,EAAA,EAAgB;EAC9CH,SAAA,CAAUI,GAAA,CAAID,EAAE;AAClB;AAEO,SAASE,WAAA,EAAa;EAC3BL,SAAA,CAAUM,OAAA,CAASH,EAAA,IAAOA,EAAA,CAAG,CAAC;AAChC","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ var disposers = /* @__PURE__ */new Set();
2
+ function registerDispose(cb) {
3
+ disposers.add(cb);
4
+ }
5
+ function disposeAll() {
6
+ disposers.forEach(function (cb) {
7
+ return cb();
8
+ });
9
+ }
10
+ export { disposeAll, registerDispose };
11
+ //# sourceMappingURL=dispose.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["disposers","Set","registerDispose","cb","add","disposeAll","forEach"],"sources":["../../src/utils/dispose.ts"],"sourcesContent":[null],"mappings":"AAAA,IAAAA,SAAM,kBAAY,IAAAC,GAAI;AAEf,SAASC,gBAAgBC,EAAA,EAAgB;EAC9CH,SAAA,CAAUI,GAAA,CAAID,EAAE;AAClB;AAEO,SAASE,WAAA,EAAa;EAC3BL,SAAA,CAAUM,OAAA,CAAQ,UAAQH,EAAG,EAAC;IAChC,OAAAA,EAAA","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ function isWebEnvironment(environment) {
2
+ return environment.name === "client" || environment.name === "ssr";
3
+ }
4
+ function isNativeEnvironment(environment) {
5
+ return environment.name === "ios" || environment.name === "android";
6
+ }
7
+ function isIOSEnvironment(environment) {
8
+ return environment.name === "ios";
9
+ }
10
+ function isAndroidEnvironment(environment) {
11
+ return environment.name === "android";
12
+ }
13
+ export { isAndroidEnvironment, isIOSEnvironment, isNativeEnvironment, isWebEnvironment };
14
+ //# sourceMappingURL=environmentUtils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isWebEnvironment","environment","name","isNativeEnvironment","isIOSEnvironment","isAndroidEnvironment"],"sources":["../../src/utils/environmentUtils.ts"],"sourcesContent":[null],"mappings":"AAIO,SAASA,iBAAiBC,WAAA,EAAiC;EAChE,OAAOA,WAAA,CAAYC,IAAA,KAAS,YAAYD,WAAA,CAAYC,IAAA,KAAS;AAC/D;AAEO,SAASC,oBAAoBF,WAAA,EAAiC;EACnE,OAAOA,WAAA,CAAYC,IAAA,KAAS,SAASD,WAAA,CAAYC,IAAA,KAAS;AAC5D;AAEO,SAASE,iBAAiBH,WAAA,EAAiC;EAChE,OAAOA,WAAA,CAAYC,IAAA,KAAS;AAC9B;AAEO,SAASG,qBAAqBJ,WAAA,EAAiC;EACpE,OAAOA,WAAA,CAAYC,IAAA,KAAS;AAC9B","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ function isWebEnvironment(environment) {
2
+ return environment.name === "client" || environment.name === "ssr";
3
+ }
4
+ function isNativeEnvironment(environment) {
5
+ return environment.name === "ios" || environment.name === "android";
6
+ }
7
+ function isIOSEnvironment(environment) {
8
+ return environment.name === "ios";
9
+ }
10
+ function isAndroidEnvironment(environment) {
11
+ return environment.name === "android";
12
+ }
13
+ export { isAndroidEnvironment, isIOSEnvironment, isNativeEnvironment, isWebEnvironment };
14
+ //# sourceMappingURL=environmentUtils.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isWebEnvironment","environment","name","isNativeEnvironment","isIOSEnvironment","isAndroidEnvironment"],"sources":["../../src/utils/environmentUtils.ts"],"sourcesContent":[null],"mappings":"AAIO,SAASA,iBAAiBC,WAAA,EAAiC;EAChE,OAAOA,WAAA,CAAYC,IAAA,KAAS,YAAYD,WAAA,CAAYC,IAAA,KAAS;AAC/D;AAEO,SAASC,oBAAoBF,WAAA,EAAiC;EACnE,OAAOA,WAAA,CAAYC,IAAA,KAAS,SAASD,WAAA,CAAYC,IAAA,KAAS;AAC5D;AAEO,SAASE,iBAAiBH,WAAA,EAAiC;EAChE,OAAOA,WAAA,CAAYC,IAAA,KAAS;AAC9B;AAEO,SAASG,qBAAqBJ,WAAA,EAAiC;EACpE,OAAOA,WAAA,CAAYC,IAAA,KAAS;AAC9B","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import { execSync as nodeExecSync } from "node:child_process";
2
+ const execSync = (cmd, options) => {
3
+ return nodeExecSync(cmd, {
4
+ stdio: "inherit",
5
+ ...options
6
+ });
7
+ };
8
+ export { execSync };
9
+ //# sourceMappingURL=execSync.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["execSync","nodeExecSync","cmd","options","stdio"],"sources":["../../src/utils/execSync.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,IAAYC,YAAA,QAAoB;AAElC,MAAMD,QAAA,GAAWA,CAACE,GAAA,EAAaC,OAAA,KAAiD;EACrF,OAAOF,YAAA,CAAaC,GAAA,EAAK;IACvBE,KAAA,EAAO;IACP,GAAGD;EACL,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import { execSync as nodeExecSync } from "child_process";
2
+ var execSync = function (cmd, options) {
3
+ return nodeExecSync(cmd, {
4
+ stdio: "inherit",
5
+ ...options
6
+ });
7
+ };
8
+ export { execSync };
9
+ //# sourceMappingURL=execSync.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["execSync","nodeExecSync","cmd","options","stdio"],"sources":["../../src/utils/execSync.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,QAAA,IAAYC,YAAA,QAAoB;AAElC,IAAAD,QAAM,YAAAA,CAAyBE,GAAA,EAAAC,OAAiD;EACrF,OAAOF,YAAA,CAAaC,GAAA,EAAK;IACvBE,KAAA,EAAO;IACP,GAAGD;EACL,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ import module from "node:module";
2
+ import { pathToFileURL } from "node:url";
3
+ import { fillOptions } from "../config/getOptionsFilled.mjs";
4
+ import { applyBuiltInPatches } from "../utils/patches.mjs";
5
+ async function devServerRunning(port) {
6
+ try {
7
+ const res = await fetch(`http://localhost:${port}/status`, {
8
+ signal: AbortSignal.timeout(3e3)
9
+ });
10
+ return (await res.text()).includes("packager-status:running");
11
+ } catch {
12
+ return false;
13
+ }
14
+ }
15
+ async function expoRun({
16
+ root,
17
+ platform,
18
+ port
19
+ }) {
20
+ const options = await fillOptions({
21
+ root
22
+ });
23
+ applyBuiltInPatches(options).catch(err => {
24
+ console.error(`
25
+ \u{1F97A} error applying built-in patches`, err);
26
+ });
27
+ const resolvedPort = port || 8081;
28
+ if (!(await devServerRunning(resolvedPort))) {
29
+ console.error(`
30
+ No dev server running on http://localhost:${resolvedPort} \u2014 the app loads its JS from it.
31
+ Start it first (e.g. \`bun dev\` or \`one dev\`), then re-run this command.`);
32
+ process.exit(1);
33
+ }
34
+ process.env.RCT_METRO_PORT = String(resolvedPort);
35
+ try {
36
+ const require2 = module.createRequire(root);
37
+ const importPath = require2.resolve(`@expo/cli/build/src/run/${platform}/index.js`, {
38
+ paths: [root]
39
+ });
40
+ const expoRun2 = (await import(pathToFileURL(importPath).href)).default[`expoRun${platform.charAt(0).toUpperCase() + platform.slice(1)}`];
41
+ await expoRun2([`--port`, `${resolvedPort}`]);
42
+ } catch (e) {
43
+ console.error(`Failed to run native project: ${e}
44
+ Is "expo" listed in your dependencies?`);
45
+ }
46
+ }
47
+ export { expoRun };
48
+ //# sourceMappingURL=expoRun.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["module","pathToFileURL","fillOptions","applyBuiltInPatches","devServerRunning","port","res","fetch","signal","AbortSignal","timeout","text","includes","expoRun","root","platform","options","catch","err","console","error","resolvedPort","process","exit","env","RCT_METRO_PORT","String","require","createRequire","importPath","resolve","paths","href","default","charAt","toUpperCase","slice","e"],"sources":["../../src/utils/expoRun.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,MAAA,MAAY;AACnB,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,QAAmB;AAC5B,SAASC,mBAAA,QAA2B;AAUpC,eAAeC,iBAAiBC,IAAA,EAAgC;EAC9D,IAAI;IACF,MAAMC,GAAA,GAAM,MAAMC,KAAA,CAAM,oBAAoBF,IAAI,WAAW;MACzDG,MAAA,EAAQC,WAAA,CAAYC,OAAA,CAAQ,GAAI;IAClC,CAAC;IACD,QAAQ,MAAMJ,GAAA,CAAIK,IAAA,CAAK,GAAGC,QAAA,CAAS,yBAAyB;EAC9D,QAAQ;IACN,OAAO;EACT;AACF;AAEA,eAAsBC,QAAQ;EAC5BC,IAAA;EACAC,QAAA;EACAV;AACF,GAIG;EACD,MAAMW,OAAA,GAAU,MAAMd,WAAA,CAAY;IAAEY;EAAK,CAAC;EAE1CX,mBAAA,CAAoBa,OAAO,EAAEC,KAAA,CAAOC,GAAA,IAAQ;IAC1CC,OAAA,CAAQC,KAAA,CAAM;AAAA,6CAAyCF,GAAG;EAC5D,CAAC;EAED,MAAMG,YAAA,GAAehB,IAAA,IAAQ;EAC7B,IAAI,EAAE,MAAMD,gBAAA,CAAiBiB,YAAY,IAAI;IAC3CF,OAAA,CAAQC,KAAA,CACN;AAAA,4CAA+CC,YAAY;AAAA,4EAE7D;IACAC,OAAA,CAAQC,IAAA,CAAK,CAAC;EAChB;EAOAD,OAAA,CAAQE,GAAA,CAAIC,cAAA,GAAiBC,MAAA,CAAOL,YAAY;EAEhD,IAAI;IAEF,MAAMM,QAAA,GAAU3B,MAAA,CAAO4B,aAAA,CAAcd,IAAI;IACzC,MAAMe,UAAA,GAAaF,QAAA,CAAQG,OAAA,CAAQ,2BAA2Bf,QAAQ,aAAa;MACjFgB,KAAA,EAAO,CAACjB,IAAI;IACd,CAAC;IACD,MAAMD,QAAA,IAAW,MAAM,OAAOZ,aAAA,CAAc4B,UAAU,EAAEG,IAAA,GAAOC,OAAA,CAC7D,UAAUlB,QAAA,CAASmB,MAAA,CAAO,CAAC,EAAEC,WAAA,CAAY,IAAIpB,QAAA,CAASqB,KAAA,CAAM,CAAC,CAAC,EAChE;IACA,MAAMvB,QAAA,CAAQ,CAAC,UAAU,GAAGQ,YAAY,EAAE,CAAC;EAC7C,SAASgB,CAAA,EAAG;IACVlB,OAAA,CAAQC,KAAA,CACN,iCAAiCiB,CAAC;AAAA,uCACpC;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ import module from "module";
2
+ import { pathToFileURL } from "url";
3
+ import { fillOptions } from "../config/getOptionsFilled.native.js";
4
+ import { applyBuiltInPatches } from "../utils/patches.native.js";
5
+ async function devServerRunning(port) {
6
+ try {
7
+ var res = await fetch(`http://localhost:${port}/status`, {
8
+ signal: AbortSignal.timeout(3e3)
9
+ });
10
+ return (await res.text()).includes("packager-status:running");
11
+ } catch (unused) {
12
+ return false;
13
+ }
14
+ }
15
+ async function expoRun(param) {
16
+ var {
17
+ root,
18
+ platform,
19
+ port
20
+ } = param;
21
+ var options = await fillOptions({
22
+ root
23
+ });
24
+ applyBuiltInPatches(options).catch(function (err) {
25
+ console.error(`
26
+ \u{1F97A} error applying built-in patches`, err);
27
+ });
28
+ var resolvedPort = port || 8081;
29
+ if (!(await devServerRunning(resolvedPort))) {
30
+ console.error(`
31
+ No dev server running on http://localhost:${resolvedPort} \u2014 the app loads its JS from it.
32
+ Start it first (e.g. \`bun dev\` or \`one dev\`), then re-run this command.`);
33
+ process.exit(1);
34
+ }
35
+ process.env.RCT_METRO_PORT = String(resolvedPort);
36
+ try {
37
+ var require2 = module.createRequire(root);
38
+ var importPath = require2.resolve(`@expo/cli/build/src/run/${platform}/index.js`, {
39
+ paths: [root]
40
+ });
41
+ var expoRun2 = (await import(pathToFileURL(importPath).href)).default[`expoRun${platform.charAt(0).toUpperCase() + platform.slice(1)}`];
42
+ await expoRun2([`--port`, `${resolvedPort}`]);
43
+ } catch (e) {
44
+ console.error(`Failed to run native project: ${e}
45
+ Is "expo" listed in your dependencies?`);
46
+ }
47
+ }
48
+ export { expoRun };
49
+ //# sourceMappingURL=expoRun.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["module","pathToFileURL","fillOptions","applyBuiltInPatches","devServerRunning","port","res","fetch","signal","AbortSignal","timeout","text","includes","unused","expoRun","param","root","platform","options","catch","err","console","error","resolvedPort","process","exit","env","RCT_METRO_PORT","String","require2","createRequire","importPath","resolve","paths","expoRun2","href","default","charAt","toUpperCase","slice","e"],"sources":["../../src/utils/expoRun.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,MAAA,MAAY;AACnB,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,QAAmB;AAC5B,SAASC,mBAAA,QAA2B;AAUpC,eAAeC,iBAAiBC,IAAA,EAAgC;EAC9D,IAAI;IACF,IAAAC,GAAM,SAAMC,KAAM,qBAAMF,IAAoB,SAAI;MAC9CG,MAAA,EAAQC,WAAA,CAAYC,OAAA,CAAQ,GAAI;IAClC,CAAC;IACD,QAAQ,MAAMJ,GAAA,CAAIK,IAAA,CAAK,GAAGC,QAAA,CAAS,yBAAyB;EAC9D,SAAQC,MAAA;IACN,OAAO;EACT;AACF;AAEA,eAAsBC,QAAQC,KAAA;EAC5B;IAAAC,IAAA;IAAAC,QAAA;IAAAZ;EAAA,IAAAU,KAAA;EACA,IAAAG,OAAA,SAAAhB,WAAA;IACAc;EACF,CAIG;EACDb,mBAAgB,CAAAe,OAAM,EAAAC,KAAY,WAAQC,GAAA;IAE1CC,OAAA,CAAAC,KAAA;AACE,2CAAc,EAAAF,GAAA;EAAA;EAChB,IAACG,YAAA,GAAAlB,IAAA;EAED,YAAMD,gBAAe,CAAAmB,YAAQ;IAC7BF,OAAM,CAAAC,KAAM;AACV,4CAAQC,YAAA;AAAA,4EACN;IAAAC,OAAA,CAAAC,IAAA;EAA2D;EAAAD,OAE7D,CAAAE,GAAA,CAAAC,cAAA,GAAAC,MAAA,CAAAL,YAAA;EACA;IACF,IAAAM,QAAA,GAAA7B,MAAA,CAAA8B,aAAA,CAAAd,IAAA;IAOA,IAAAe,UAAY,GAAAF,QAAA,CAAAG,OAAiB,CAAO,2BAAYf,QAAA;MAE5CgB,KAAA,GAEFjB,IAAM;IAC6E,EACjF;IACF,IAACkB,QAAA,iBAAAjC,aAAA,CAAA8B,UAAA,EAAAI,IAAA,GAAAC,OAAA,WAAAnB,QAAA,CAAAoB,MAAA,IAAAC,WAAA,KAAArB,QAAA,CAAAsB,KAAA;IACD,MAAMzB,QAAA,EAGN,QAAM,EACR,GAAAS,YAAY,GACV;EAAQ,SACNiB,CAAA;IAAkCnB,OAAA,CAAAC,KAAA,kCAAAkB,CAAA;AAAA,uCACpC;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ import { networkInterfaces } from "node:os";
2
+ function getLocalIpAddress() {
3
+ const nets = networkInterfaces();
4
+ for (const name of Object.keys(nets)) {
5
+ for (const net of nets[name] ?? []) {
6
+ if (!net.internal && net.family === "IPv4") {
7
+ return net.address;
8
+ }
9
+ }
10
+ }
11
+ return void 0;
12
+ }
13
+ function filterViteServerResolvedUrls(urls) {
14
+ if (!urls) {
15
+ return urls;
16
+ }
17
+ let local = urls.local;
18
+ let network = urls.network;
19
+ const ipAddress = getLocalIpAddress();
20
+ if (ipAddress) {
21
+ network = network.filter(url => url.includes(ipAddress));
22
+ }
23
+ return {
24
+ local,
25
+ network
26
+ };
27
+ }
28
+ export { filterViteServerResolvedUrls };
29
+ //# sourceMappingURL=filterViteServerResolvedUrls.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["networkInterfaces","getLocalIpAddress","nets","name","Object","keys","net","internal","family","address","filterViteServerResolvedUrls","urls","local","network","ipAddress","filter","url","includes"],"sources":["../../src/utils/filterViteServerResolvedUrls.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,iBAAA,QAAyB;AAGlC,SAASC,kBAAA,EAAwC;EAC/C,MAAMC,IAAA,GAAOF,iBAAA,CAAkB;EAC/B,WAAWG,IAAA,IAAQC,MAAA,CAAOC,IAAA,CAAKH,IAAI,GAAG;IACpC,WAAWI,GAAA,IAAOJ,IAAA,CAAKC,IAAI,KAAK,EAAC,EAAG;MAElC,IAAI,CAACG,GAAA,CAAIC,QAAA,IAAYD,GAAA,CAAIE,MAAA,KAAW,QAAQ;QAC1C,OAAOF,GAAA,CAAIG,OAAA;MACb;IACF;EACF;EACA,OAAO;AACT;AAKO,SAASC,6BACdC,IAAA,EAC2B;EAC3B,IAAI,CAACA,IAAA,EAAM;IACT,OAAOA,IAAA;EACT;EAEA,IAAIC,KAAA,GAAQD,IAAA,CAAKC,KAAA;EACjB,IAAIC,OAAA,GAAUF,IAAA,CAAKE,OAAA;EAGnB,MAAMC,SAAA,GAAYb,iBAAA,CAAkB;EACpC,IAAIa,SAAA,EAAW;IACbD,OAAA,GAAUA,OAAA,CAAQE,MAAA,CAAQC,GAAA,IAAQA,GAAA,CAAIC,QAAA,CAASH,SAAS,CAAC;EAC3D;EAEA,OAAO;IAAEF,KAAA;IAAOC;EAAQ;AAC1B","ignoreList":[]}
@@ -0,0 +1,70 @@
1
+ import { networkInterfaces } from "os";
2
+ function getLocalIpAddress() {
3
+ var nets = networkInterfaces();
4
+ var _iteratorNormalCompletion = true,
5
+ _didIteratorError = false,
6
+ _iteratorError = void 0;
7
+ try {
8
+ for (var _iterator = Object.keys(nets)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
9
+ var name = _step.value;
10
+ var _nets_name;
11
+ var _iteratorNormalCompletion1 = true,
12
+ _didIteratorError1 = false,
13
+ _iteratorError1 = void 0;
14
+ try {
15
+ for (var _iterator1 = ((_nets_name = nets[name]) !== null && _nets_name !== void 0 ? _nets_name : [])[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
16
+ var net = _step1.value;
17
+ if (!net.internal && net.family === "IPv4") {
18
+ return net.address;
19
+ }
20
+ }
21
+ } catch (err) {
22
+ _didIteratorError1 = true;
23
+ _iteratorError1 = err;
24
+ } finally {
25
+ try {
26
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
27
+ _iterator1.return();
28
+ }
29
+ } finally {
30
+ if (_didIteratorError1) {
31
+ throw _iteratorError1;
32
+ }
33
+ }
34
+ }
35
+ }
36
+ } catch (err) {
37
+ _didIteratorError = true;
38
+ _iteratorError = err;
39
+ } finally {
40
+ try {
41
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
42
+ _iterator.return();
43
+ }
44
+ } finally {
45
+ if (_didIteratorError) {
46
+ throw _iteratorError;
47
+ }
48
+ }
49
+ }
50
+ return void 0;
51
+ }
52
+ function filterViteServerResolvedUrls(urls) {
53
+ if (!urls) {
54
+ return urls;
55
+ }
56
+ var local = urls.local;
57
+ var network = urls.network;
58
+ var ipAddress = getLocalIpAddress();
59
+ if (ipAddress) {
60
+ network = network.filter(function (url) {
61
+ return url.includes(ipAddress);
62
+ });
63
+ }
64
+ return {
65
+ local,
66
+ network
67
+ };
68
+ }
69
+ export { filterViteServerResolvedUrls };
70
+ //# sourceMappingURL=filterViteServerResolvedUrls.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["networkInterfaces","getLocalIpAddress","nets","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Object","keys","Symbol","iterator","_step","next","done","name","value","_nets_name","_iteratorNormalCompletion1","_didIteratorError1","_iteratorError1","_iterator1","_step1","net","internal","family","address","err","return"],"sources":["../../src/utils/filterViteServerResolvedUrls.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,iBAAA,QAAyB;AAGlC,SAASC,kBAAA,EAAwC;EAC/C,IAAAC,IAAM,GAAAF,iBAAO;EACb,IAAAG,yBAA0B,GAAK,IAAI;IAAGC,iBAAA;IAAAC,cAAA;EACpC;IAEE,SAAKC,SAAI,GAAAC,MAAgB,CAAAC,IAAA,CAAAN,IAAA,CAAW,CAAAO,MAAA,CAAQC,QAAA,KAAAC,KAAA,IAAAR,yBAAA,IAAAQ,KAAA,GAAAL,SAAA,CAAAM,IAAA,IAAAC,IAAA,GAAAV,yBAAA;MAC1C,IAAAW,IAAA,GAAOH,KAAI,CAAAI,KAAA;MACb,IAAAC,UAAA;MACF,IAAAC,0BAAA;QAAAC,kBAAA;QAAAC,eAAA;MACF;QACA,KAAO,IAAAC,UAAA,KAAAJ,UAAA,GAAAd,IAAA,CAAAY,IAAA,eAAAE,UAAA,cAAAA,UAAA,OAAAP,MAAA,CAAAC,QAAA,KAAAW,MAAA,IAAAJ,0BAAA,IAAAI,MAAA,GAAAD,UAAA,CAAAR,IAAA,IAAAC,IAAA,GAAAI,0BAAA;UACT,IAAAK,GAAA,GAAAD,MAAA,CAAAN,KAAA;UAKgB,KAAAO,GAAA,CAAAC,QAAA,IAAAD,GAAA,CAAAE,MACd,KAC2B;YACtB,OAAMF,GAAA,CAAAG,OAAA;UACT;QACF;MAEI,SAAQC,GAAA,EAAK;QACbR,kBAAe;QAGbC,eAAY,GAAAO,GAAA;MACd;QACF;UACF,KAAAT,0BAAA,IAAAG,UAAA,CAAAO,MAAA;YAESP,UAAO,CAAAO,MAAQ;UAC1B","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ function getBoundPort(server) {
2
+ const addr = server.httpServer?.address();
3
+ if (addr && typeof addr === "object" && typeof addr.port === "number") {
4
+ return addr.port;
5
+ }
6
+ return server.config.server.port ?? 8081;
7
+ }
8
+ export { getBoundPort };
9
+ //# sourceMappingURL=getBoundPort.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getBoundPort","server","addr","httpServer","address","port","config"],"sources":["../../src/utils/getBoundPort.ts"],"sourcesContent":[null],"mappings":"AAOO,SAASA,aAAaC,MAAA,EAA+B;EAC1D,MAAMC,IAAA,GAAOD,MAAA,CAAOE,UAAA,EAAYC,OAAA,CAAQ;EACxC,IAAIF,IAAA,IAAQ,OAAOA,IAAA,KAAS,YAAY,OAAOA,IAAA,CAAKG,IAAA,KAAS,UAAU;IACrE,OAAOH,IAAA,CAAKG,IAAA;EACd;EACA,OAAOJ,MAAA,CAAOK,MAAA,CAAOL,MAAA,CAAOI,IAAA,IAAQ;AACtC","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ function _type_of(obj) {
2
+ "@swc/helpers - typeof";
3
+
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ function getBoundPort(server) {
7
+ var _server_config_server_port;
8
+ var _server_httpServer;
9
+ var addr = (_server_httpServer = server.httpServer) === null || _server_httpServer === void 0 ? void 0 : _server_httpServer.address();
10
+ if (addr && (typeof addr === "undefined" ? "undefined" : _type_of(addr)) === "object" && typeof addr.port === "number") {
11
+ return addr.port;
12
+ }
13
+ return (_server_config_server_port = server.config.server.port) !== null && _server_config_server_port !== void 0 ? _server_config_server_port : 8081;
14
+ }
15
+ export { getBoundPort };
16
+ //# sourceMappingURL=getBoundPort.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_type_of","obj","Symbol","constructor","getBoundPort","server","_server_config_server_port","_server_httpServer"],"sources":["../../src/utils/getBoundPort.ts"],"sourcesContent":[null],"mappings":"AAOO,SAASA,SAAAC,GAAA,EAAa;EAC3B,uBAAoB;;EACpB,OAAIA,GAAA,IAAQ,OAAOC,MAAA,KAAS,WAAY,IAAOD,GAAA,CAAAE,WAAc,KAAAD,MAAU,qBAAAD,GAAA;AACrE;AAAY,SACdG,aAAAC,MAAA;EACA,IAAAC,0BAA4B;EAC9B,IAAAC,kBAAA","ignoreList":[]}
@@ -0,0 +1,71 @@
1
+ import { createServer } from "node:http";
2
+ import { describe, expect, it } from "vitest";
3
+ import { getBoundPort } from "./getBoundPort.mjs";
4
+ function fakeServer(opts) {
5
+ return {
6
+ httpServer: opts.address === void 0 ? void 0 : {
7
+ address: () => opts.address ?? null
8
+ },
9
+ config: {
10
+ server: {
11
+ port: opts.configPort
12
+ }
13
+ }
14
+ };
15
+ }
16
+ describe("getBoundPort", () => {
17
+ it("returns the actually-bound port from httpServer.address(), ignoring a stale/undefined config port (the 8081 trap)", () => {
18
+ expect(getBoundPort(fakeServer({
19
+ address: {
20
+ port: 8082
21
+ },
22
+ configPort: void 0
23
+ }))).toBe(8082);
24
+ });
25
+ it("prefers the bound port even when config.server.port disagrees", () => {
26
+ expect(getBoundPort(fakeServer({
27
+ address: {
28
+ port: 8082
29
+ },
30
+ configPort: 8081
31
+ }))).toBe(8082);
32
+ });
33
+ it("falls back to config.server.port when the server is not yet listening", () => {
34
+ expect(getBoundPort(fakeServer({
35
+ address: null,
36
+ configPort: 8085
37
+ }))).toBe(8085);
38
+ });
39
+ it("falls back to 8081 when nothing is available", () => {
40
+ expect(getBoundPort(fakeServer({
41
+ address: null,
42
+ configPort: void 0
43
+ }))).toBe(8081);
44
+ });
45
+ it("ignores a unix-socket/pipe address (string) and falls back to config", () => {
46
+ expect(getBoundPort(fakeServer({
47
+ address: "/tmp/some.sock",
48
+ configPort: 8090
49
+ }))).toBe(8090);
50
+ });
51
+ it("reads the real bound port from a live http server, not the config value", async () => {
52
+ const real = createServer();
53
+ await new Promise(res => real.listen(0, "127.0.0.1", () => res()));
54
+ try {
55
+ const boundPort = real.address().port;
56
+ const server = {
57
+ httpServer: real,
58
+ config: {
59
+ server: {
60
+ port: 8081
61
+ }
62
+ }
63
+ };
64
+ expect(getBoundPort(server)).toBe(boundPort);
65
+ expect(getBoundPort(server)).not.toBe(8081);
66
+ } finally {
67
+ await new Promise(res => real.close(() => res()));
68
+ }
69
+ });
70
+ });
71
+ //# sourceMappingURL=getBoundPort.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createServer","describe","expect","it","getBoundPort","fakeServer","opts","httpServer","address","config","server","port","configPort","toBe","real","Promise","res","listen","boundPort","not","close"],"sources":["../../src/utils/getBoundPort.test.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,YAAA,QAAoB;AAE7B,SAASC,QAAA,EAAUC,MAAA,EAAQC,EAAA,QAAU;AACrC,SAASC,YAAA,QAAoB;AAG7B,SAASC,WAAWC,IAAA,EAGF;EAChB,OAAO;IACLC,UAAA,EACED,IAAA,CAAKE,OAAA,KAAY,SAAY,SAAY;MAAEA,OAAA,EAASA,CAAA,KAAMF,IAAA,CAAKE,OAAA,IAAW;IAAK;IACjFC,MAAA,EAAQ;MAAEC,MAAA,EAAQ;QAAEC,IAAA,EAAML,IAAA,CAAKM;MAAW;IAAE;EAC9C;AACF;AAEAX,QAAA,CAAS,gBAAgB,MAAM;EAC7BE,EAAA,CAAG,qHAAqH,MAAM;IAE5HD,MAAA,CACEE,YAAA,CAAaC,UAAA,CAAW;MAAEG,OAAA,EAAS;QAAEG,IAAA,EAAM;MAAK;MAAGC,UAAA,EAAY;IAAU,CAAC,CAAC,CAC7E,EAAEC,IAAA,CAAK,IAAI;EACb,CAAC;EAEDV,EAAA,CAAG,iEAAiE,MAAM;IACxED,MAAA,CAAOE,YAAA,CAAaC,UAAA,CAAW;MAAEG,OAAA,EAAS;QAAEG,IAAA,EAAM;MAAK;MAAGC,UAAA,EAAY;IAAK,CAAC,CAAC,CAAC,EAAEC,IAAA,CAC9E,IACF;EACF,CAAC;EAEDV,EAAA,CAAG,yEAAyE,MAAM;IAChFD,MAAA,CAAOE,YAAA,CAAaC,UAAA,C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";
3
+ import { getBoundPort } from "./getBoundPort.native.js";
4
+ function fakeServer(opts) {
5
+ return {
6
+ httpServer: opts.address === void 0 ? void 0 : {
7
+ address: function () {
8
+ var _opts_address;
9
+ return (_opts_address = opts.address) !== null && _opts_address !== void 0 ? _opts_address : null;
10
+ }
11
+ },
12
+ config: {
13
+ server: {
14
+ port: opts.configPort
15
+ }
16
+ }
17
+ };
18
+ }
19
+ describe("getBoundPort", function () {
20
+ it("returns the actually-bound port from httpServer.address(), ignoring a stale/undefined config port (the 8081 trap)", function () {
21
+ expect(getBoundPort(fakeServer({
22
+ address: {
23
+ port: 8082
24
+ },
25
+ configPort: void 0
26
+ }))).toBe(8082);
27
+ });
28
+ it("prefers the bound port even when config.server.port disagrees", function () {
29
+ expect(getBoundPort(fakeServer({
30
+ address: {
31
+ port: 8082
32
+ },
33
+ configPort: 8081
34
+ }))).toBe(8082);
35
+ });
36
+ it("falls back to config.server.port when the server is not yet listening", function () {
37
+ expect(getBoundPort(fakeServer({
38
+ address: null,
39
+ configPort: 8085
40
+ }))).toBe(8085);
41
+ });
42
+ it("falls back to 8081 when nothing is available", function () {
43
+ expect(getBoundPort(fakeServer({
44
+ address: null,
45
+ configPort: void 0
46
+ }))).toBe(8081);
47
+ });
48
+ it("ignores a unix-socket/pipe address (string) and falls back to config", function () {
49
+ expect(getBoundPort(fakeServer({
50
+ address: "/tmp/some.sock",
51
+ configPort: 8090
52
+ }))).toBe(8090);
53
+ });
54
+ it("reads the real bound port from a live http server, not the config value", async function () {
55
+ var real = createServer();
56
+ await new Promise(function (res) {
57
+ return real.listen(0, "127.0.0.1", function () {
58
+ return res();
59
+ });
60
+ });
61
+ try {
62
+ var boundPort = real.address().port;
63
+ var server = {
64
+ httpServer: real,
65
+ config: {
66
+ server: {
67
+ port: 8081
68
+ }
69
+ }
70
+ };
71
+ expect(getBoundPort(server)).toBe(boundPort);
72
+ expect(getBoundPort(server)).not.toBe(8081);
73
+ } finally {
74
+ await new Promise(function (res) {
75
+ return real.close(function () {
76
+ return res();
77
+ });
78
+ });
79
+ }
80
+ });
81
+ });
82
+ //# sourceMappingURL=getBoundPort.test.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createServer","describe","expect","it","getBoundPort","fakeServer","opts","httpServer","address","_opts_address","config","server","port","configPort","toBe"],"sources":["../../src/utils/getBoundPort.test.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,YAAA,QAAoB;AAE7B,SAASC,QAAA,EAAUC,MAAA,EAAQC,EAAA,QAAU;AACrC,SAASC,YAAA,QAAoB;AAG7B,SAASC,WAAWC,IAAA,EAGF;EAChB,OAAO;IACLC,UAAA,EACED,IAAA,CAAKE,OAAA,KAAY,SAAY,SAAY;MAC3CA,OAAQ,EAAE,SAAAA,CAAA,EAAU;QACtB,IAAAC,aAAA;QACF,QAAAA,aAAA,GAAAH,IAAA,CAAAE,OAAA,cAAAC,aAAA,cAAAA,aAAA;MAEA;IACE,CAAG;IAEDC,MAAA;MACEC,MAAA;QACAC,IAAK,EAAAN,IAAI,CAAAO;MACZ;IAED;EACE;AAAgF;AAC9EZ,QACF;EACFE,EAAC;IAEDD,MAAG,CAAAE,YAAA,CAAAC,UAAA;MACDG,OAAO;QACRI,IAAA;MAEE;MACDC,UAAO;IACR,KAAAC,IAAA;EAED;EACEX,EAAA;IAAAD,MACE,CAAAE,YAAa,CAAAC,UAAa;MAC1BG,OAAK,EAAI;QACZI,IAAA;MAGE;MACDC,UAAM,EAAO;IACb,KAAAC,IAAM,CAAI;EACV;EACEX,EAAA,wEAAuD;IAEvDD,MAAA,CAAAE,YAAe,CAAAC,UAAA;MAAAG,OACb;MAAYK,UACJ,EAAE;IAAuB,EACnC,GAAAC,IAAA;EACA;EACAX,EAAA,+CAA0C;IAC5CD,MAAA,CAAAE,YAAE,CAAAC,UAAA;MACAG,OAAM,MAAI;MACZK,UAAA;IACD,KAAAC,IAAA;EACF","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import { join } from "node:path";
2
+ function getCacheDir(root) {
3
+ return join(root, "node_modules", ".vxrn");
4
+ }
5
+ export { getCacheDir };
6
+ //# sourceMappingURL=getCacheDir.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["join","getCacheDir","root"],"sources":["../../src/utils/getCacheDir.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AAEd,SAASC,YAAYC,IAAA,EAAc;EACxC,OAAOF,IAAA,CAAKE,IAAA,EAAM,gBAAgB,OAAO;AAC3C","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import { join } from "path";
2
+ function getCacheDir(root) {
3
+ return join(root, "node_modules", ".vxrn");
4
+ }
5
+ export { getCacheDir };
6
+ //# sourceMappingURL=getCacheDir.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["join","getCacheDir","root"],"sources":["../../src/utils/getCacheDir.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AAEd,SAASC,YAAYC,IAAA,EAAc;EACxC,OAAOF,IAAA,CAAKE,IAAA,EAAM,gBAAgB,OAAO;AAC3C","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ import { resolve } from "node:path";
2
+ const getServerCJSSetting = options => {
3
+ const serverOptions = options.build?.server;
4
+ return typeof serverOptions !== "object" ? false : serverOptions.outputFormat === "cjs";
5
+ };
6
+ const getServerEntry = (options, outDir = "dist") => {
7
+ return resolve(process.cwd(), `${options.root}/${outDir}/server/_virtual_one-entry.${getServerCJSSetting(options) ? "c" : ""}js`);
8
+ };
9
+ export { getServerCJSSetting, getServerEntry };
10
+ //# sourceMappingURL=getServerEntry.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["resolve","getServerCJSSetting","options","serverOptions","build","server","outputFormat","getServerEntry","outDir","process","cwd","root"],"sources":["../../src/utils/getServerEntry.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,OAAA,QAAe;AAKjB,MAAMC,mBAAA,GAAuBC,OAAA,IAA2B;EAC7D,MAAMC,aAAA,GAAgBD,OAAA,CAAQE,KAAA,EAAOC,MAAA;EACrC,OAAO,OAAOF,aAAA,KAAkB,WAAW,QAAQA,aAAA,CAAcG,YAAA,KAAiB;AACpF;AAEO,MAAMC,cAAA,GAAiBA,CAACL,OAAA,EAAwBM,MAAA,GAAS,WAAW;EACzE,OAAOR,OAAA,CACLS,OAAA,CAAQC,GAAA,CAAI,GACZ,GAAGR,OAAA,CAAQS,IAAI,IAAIH,MAAM,8BAA8BP,mBAAA,CAAoBC,OAAO,IAAI,MAAM,EAAE,IAChG;AACF","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ import { resolve } from "path";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+
5
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
6
+ }
7
+ var getServerCJSSetting = function (options) {
8
+ var _options_build;
9
+ var serverOptions = (_options_build = options.build) === null || _options_build === void 0 ? void 0 : _options_build.server;
10
+ return (typeof serverOptions === "undefined" ? "undefined" : _type_of(serverOptions)) !== "object" ? false : serverOptions.outputFormat === "cjs";
11
+ };
12
+ var getServerEntry = function (options) {
13
+ var outDir = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "dist";
14
+ return resolve(process.cwd(), `${options.root}/${outDir}/server/_virtual_one-entry.${getServerCJSSetting(options) ? "c" : ""}js`);
15
+ };
16
+ export { getServerCJSSetting, getServerEntry };
17
+ //# sourceMappingURL=getServerEntry.native.js.map