vxrn 1.27.1 → 2.0.0-beta.100.1
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.
- package/dist/cli.mjs +229 -261
- package/dist/cli.mjs.map +1 -1
- package/dist/cli.native.js +233 -265
- package/dist/cli.native.js.map +1 -1
- package/dist/config/getAdditionalViteConfig.mjs +32 -62
- package/dist/config/getAdditionalViteConfig.mjs.map +1 -1
- package/dist/config/getAdditionalViteConfig.native.js +32 -62
- package/dist/config/getAdditionalViteConfig.native.js.map +1 -1
- package/dist/config/getBaseViteConfigOnly.mjs +78 -77
- package/dist/config/getBaseViteConfigOnly.mjs.map +1 -1
- package/dist/config/getBaseViteConfigOnly.native.js +80 -79
- package/dist/config/getBaseViteConfigOnly.native.js.map +1 -1
- package/dist/config/getBaseViteConfigWithPlugins.mjs +6 -4
- package/dist/config/getBaseViteConfigWithPlugins.mjs.map +1 -1
- package/dist/config/getBaseViteConfigWithPlugins.native.js +6 -4
- package/dist/config/getBaseViteConfigWithPlugins.native.js.map +1 -1
- package/dist/config/getBaseVitePlugins.mjs +106 -130
- package/dist/config/getBaseVitePlugins.mjs.map +1 -1
- package/dist/config/getBaseVitePlugins.native.js +127 -152
- package/dist/config/getBaseVitePlugins.native.js.map +1 -1
- package/dist/config/getNonCliModeOnlyVitePlugins.mjs +3 -3
- package/dist/config/getNonCliModeOnlyVitePlugins.mjs.map +1 -1
- package/dist/config/getNonCliModeOnlyVitePlugins.native.js +3 -1
- package/dist/config/getNonCliModeOnlyVitePlugins.native.js.map +1 -1
- package/dist/config/getOptimizeDeps.mjs +131 -42
- package/dist/config/getOptimizeDeps.mjs.map +1 -1
- package/dist/config/getOptimizeDeps.native.js +131 -42
- package/dist/config/getOptimizeDeps.native.js.map +1 -1
- package/dist/config/getOptionsFilled.mjs +48 -52
- package/dist/config/getOptionsFilled.mjs.map +1 -1
- package/dist/config/getOptionsFilled.native.js +51 -55
- package/dist/config/getOptionsFilled.native.js.map +1 -1
- package/dist/config/getReactNativePlugins.mjs +17 -15
- package/dist/config/getReactNativePlugins.mjs.map +1 -1
- package/dist/config/getReactNativePlugins.native.js +19 -16
- package/dist/config/getReactNativePlugins.native.js.map +1 -1
- package/dist/config/getServerOptionsFilled.mjs +33 -35
- package/dist/config/getServerOptionsFilled.mjs.map +1 -1
- package/dist/config/getServerOptionsFilled.native.js +35 -38
- package/dist/config/getServerOptionsFilled.native.js.map +1 -1
- package/dist/config/getViteServerConfig.mjs +34 -45
- package/dist/config/getViteServerConfig.mjs.map +1 -1
- package/dist/config/getViteServerConfig.native.js +35 -46
- package/dist/config/getViteServerConfig.native.js.map +1 -1
- package/dist/config/mergeUserConfig.mjs +50 -28
- package/dist/config/mergeUserConfig.mjs.map +1 -1
- package/dist/config/mergeUserConfig.native.js +60 -38
- package/dist/config/mergeUserConfig.native.js.map +1 -1
- package/dist/constants/defaults.mjs +30 -12
- package/dist/constants/defaults.mjs.map +1 -1
- package/dist/constants/defaults.native.js +30 -12
- package/dist/constants/defaults.native.js.map +1 -1
- package/dist/constants.mjs +41 -6
- package/dist/constants.mjs.map +1 -1
- package/dist/constants.native.js +41 -6
- package/dist/constants.native.js.map +1 -1
- package/dist/exports/build.mjs +221 -270
- package/dist/exports/build.mjs.map +1 -1
- package/dist/exports/build.native.js +229 -283
- package/dist/exports/build.native.js.map +1 -1
- package/dist/exports/clean.mjs +71 -78
- package/dist/exports/clean.mjs.map +1 -1
- package/dist/exports/clean.native.js +76 -90
- package/dist/exports/clean.native.js.map +1 -1
- package/dist/exports/createServer.mjs +43 -46
- package/dist/exports/createServer.mjs.map +1 -1
- package/dist/exports/createServer.native.js +45 -48
- package/dist/exports/createServer.native.js.map +1 -1
- package/dist/exports/dev.mjs +177 -201
- package/dist/exports/dev.mjs.map +1 -1
- package/dist/exports/dev.native.js +191 -215
- package/dist/exports/dev.native.js.map +1 -1
- package/dist/exports/loadEnv.mjs +58 -49
- package/dist/exports/loadEnv.mjs.map +1 -1
- package/dist/exports/loadEnv.native.js +83 -58
- package/dist/exports/loadEnv.native.js.map +1 -1
- package/dist/exports/patch.mjs +9 -7
- package/dist/exports/patch.mjs.map +1 -1
- package/dist/exports/patch.native.js +9 -7
- package/dist/exports/patch.native.js.map +1 -1
- package/dist/exports/prebuild.mjs +74 -175
- package/dist/exports/prebuild.mjs.map +1 -1
- package/dist/exports/prebuild.native.js +77 -178
- package/dist/exports/prebuild.native.js.map +1 -1
- package/dist/exports/prebuildWithoutExpo.mjs +1474 -45
- package/dist/exports/prebuildWithoutExpo.mjs.map +1 -1
- package/dist/exports/prebuildWithoutExpo.native.js +1713 -46
- package/dist/exports/prebuildWithoutExpo.native.js.map +1 -1
- package/dist/exports/runAndroid.mjs +10 -11
- package/dist/exports/runAndroid.mjs.map +1 -1
- package/dist/exports/runAndroid.native.js +11 -12
- package/dist/exports/runAndroid.native.js.map +1 -1
- package/dist/exports/runIos.mjs +12 -11
- package/dist/exports/runIos.mjs.map +1 -1
- package/dist/exports/runIos.native.js +13 -12
- package/dist/exports/runIos.native.js.map +1 -1
- package/dist/exports/serve.mjs +23 -31
- package/dist/exports/serve.mjs.map +1 -1
- package/dist/exports/serve.native.js +26 -34
- package/dist/exports/serve.native.js.map +1 -1
- package/dist/exports/serveStaticAssets.mjs +109 -113
- package/dist/exports/serveStaticAssets.mjs.map +1 -1
- package/dist/exports/serveStaticAssets.native.js +180 -192
- package/dist/exports/serveStaticAssets.native.js.map +1 -1
- package/dist/index.js +29 -14
- package/dist/index.mjs +29 -14
- package/dist/index.native.js +29 -14
- package/dist/patches/builtInDepPatches.mjs +262 -458
- package/dist/patches/builtInDepPatches.mjs.map +1 -1
- package/dist/patches/builtInDepPatches.native.js +265 -461
- package/dist/patches/builtInDepPatches.native.js.map +1 -1
- package/dist/plugins/applyBuiltInPatchesPlugin.mjs +11 -11
- package/dist/plugins/applyBuiltInPatchesPlugin.mjs.map +1 -1
- package/dist/plugins/applyBuiltInPatchesPlugin.native.js +11 -11
- package/dist/plugins/applyBuiltInPatchesPlugin.native.js.map +1 -1
- package/dist/plugins/autoDepOptimizePlugin.mjs +87 -90
- package/dist/plugins/autoDepOptimizePlugin.mjs.map +1 -1
- package/dist/plugins/autoDepOptimizePlugin.native.js +99 -102
- package/dist/plugins/autoDepOptimizePlugin.native.js.map +1 -1
- package/dist/plugins/clientInjectPlugin.mjs +13 -11
- package/dist/plugins/clientInjectPlugin.mjs.map +1 -1
- package/dist/plugins/clientInjectPlugin.native.js +13 -11
- package/dist/plugins/clientInjectPlugin.native.js.map +1 -1
- package/dist/plugins/defaultDepOptimizePlugin.mjs +15 -23
- package/dist/plugins/defaultDepOptimizePlugin.mjs.map +1 -1
- package/dist/plugins/defaultDepOptimizePlugin.native.js +15 -23
- package/dist/plugins/defaultDepOptimizePlugin.native.js.map +1 -1
- package/dist/plugins/getResolvedConfigSubset.mjs +6 -5
- package/dist/plugins/getResolvedConfigSubset.mjs.map +1 -1
- package/dist/plugins/getResolvedConfigSubset.native.js +6 -5
- package/dist/plugins/getResolvedConfigSubset.native.js.map +1 -1
- package/dist/plugins/reactNativeCommonJsPlugin.mjs +210 -178
- package/dist/plugins/reactNativeCommonJsPlugin.mjs.map +1 -1
- package/dist/plugins/reactNativeCommonJsPlugin.native.js +283 -259
- package/dist/plugins/reactNativeCommonJsPlugin.native.js.map +1 -1
- package/dist/plugins/reactNativeDevAssetPlugin.mjs +72 -83
- package/dist/plugins/reactNativeDevAssetPlugin.mjs.map +1 -1
- package/dist/plugins/reactNativeDevAssetPlugin.native.js +75 -92
- package/dist/plugins/reactNativeDevAssetPlugin.native.js.map +1 -1
- package/dist/plugins/reactNativeDevServer.mjs +379 -328
- package/dist/plugins/reactNativeDevServer.mjs.map +1 -1
- package/dist/plugins/reactNativeDevServer.native.js +430 -391
- package/dist/plugins/reactNativeDevServer.native.js.map +1 -1
- package/dist/plugins/rnCodegenPlugin.mjs +13 -12
- package/dist/plugins/rnCodegenPlugin.mjs.map +1 -1
- package/dist/plugins/rnCodegenPlugin.native.js +13 -12
- package/dist/plugins/rnCodegenPlugin.native.js.map +1 -1
- package/dist/plugins/rollupRemoveUnusedImports.mjs +8 -7
- package/dist/plugins/rollupRemoveUnusedImports.mjs.map +1 -1
- package/dist/plugins/rollupRemoveUnusedImports.native.js +8 -7
- package/dist/plugins/rollupRemoveUnusedImports.native.js.map +1 -1
- package/dist/plugins/workletImportsPlugin.mjs +127 -132
- package/dist/plugins/workletImportsPlugin.mjs.map +1 -1
- package/dist/plugins/workletImportsPlugin.native.js +192 -203
- package/dist/plugins/workletImportsPlugin.native.js.map +1 -1
- package/dist/rn-commands/bundle/buildBundle.mjs +48 -79
- package/dist/rn-commands/bundle/buildBundle.mjs.map +1 -1
- package/dist/rn-commands/bundle/buildBundle.native.js +49 -85
- package/dist/rn-commands/bundle/buildBundle.native.js.map +1 -1
- package/dist/runtime/hmr-client.mjs +133 -140
- package/dist/runtime/hmr-client.mjs.map +1 -1
- package/dist/runtime/hmr-client.native.js +223 -222
- package/dist/runtime/hmr-client.native.js.map +1 -1
- package/dist/runtime/hmr-runtime.mjs +192 -194
- package/dist/runtime/hmr-runtime.mjs.map +1 -1
- package/dist/runtime/hmr-runtime.native.js +424 -411
- package/dist/runtime/hmr-runtime.native.js.map +1 -1
- package/dist/runtime/hmr-types.mjs +0 -2
- package/dist/runtime/hmr-types.native.js +0 -2
- package/dist/runtime/native-prelude.mjs +3 -1
- package/dist/runtime/native-prelude.mjs.map +1 -1
- package/dist/runtime/native-prelude.native.js +3 -1
- package/dist/runtime/native-prelude.native.js.map +1 -1
- package/dist/runtime/react-refresh-utils.mjs +23 -22
- package/dist/runtime/react-refresh-utils.mjs.map +1 -1
- package/dist/runtime/react-refresh-utils.native.js +23 -27
- package/dist/runtime/react-refresh-utils.native.js.map +1 -1
- package/dist/serve/node.mjs +49 -49
- package/dist/serve/node.mjs.map +1 -1
- package/dist/serve/node.native.js +92 -96
- package/dist/serve/node.native.js.map +1 -1
- package/dist/types.mjs +0 -2
- package/dist/types.native.js +0 -2
- package/dist/user-interface/index.mjs +203 -270
- package/dist/user-interface/index.mjs.map +1 -1
- package/dist/user-interface/index.native.js +215 -306
- package/dist/user-interface/index.native.js.map +1 -1
- package/dist/utils/assert.mjs +7 -6
- package/dist/utils/assert.mjs.map +1 -1
- package/dist/utils/assert.native.js +7 -18
- package/dist/utils/assert.native.js.map +1 -1
- package/dist/utils/bindKeypressInput.mjs +36 -38
- package/dist/utils/bindKeypressInput.mjs.map +1 -1
- package/dist/utils/bindKeypressInput.native.js +36 -38
- package/dist/utils/bindKeypressInput.native.js.map +1 -1
- package/dist/utils/coerceToArray.mjs +2 -1
- package/dist/utils/coerceToArray.mjs.map +1 -1
- package/dist/utils/coerceToArray.native.js +2 -1
- package/dist/utils/coerceToArray.native.js.map +1 -1
- package/dist/utils/connectedNativeClients.mjs +3 -2
- package/dist/utils/connectedNativeClients.mjs.map +1 -1
- package/dist/utils/connectedNativeClients.native.js +3 -2
- package/dist/utils/connectedNativeClients.native.js.map +1 -1
- package/dist/utils/createNativeDevEngine.mjs +1005 -966
- package/dist/utils/createNativeDevEngine.mjs.map +1 -1
- package/dist/utils/createNativeDevEngine.native.js +1198 -1179
- package/dist/utils/createNativeDevEngine.native.js.map +1 -1
- package/dist/utils/dispose.mjs +4 -3
- package/dist/utils/dispose.mjs.map +1 -1
- package/dist/utils/dispose.native.js +6 -5
- package/dist/utils/dispose.native.js.map +1 -1
- package/dist/utils/environmentUtils.mjs +5 -4
- package/dist/utils/environmentUtils.mjs.map +1 -1
- package/dist/utils/environmentUtils.native.js +5 -4
- package/dist/utils/environmentUtils.native.js.map +1 -1
- package/dist/utils/execSync.mjs +7 -5
- package/dist/utils/execSync.mjs.map +1 -1
- package/dist/utils/execSync.native.js +8 -6
- package/dist/utils/execSync.native.js.map +1 -1
- package/dist/utils/filterViteServerResolvedUrls.mjs +24 -22
- package/dist/utils/filterViteServerResolvedUrls.mjs.map +1 -1
- package/dist/utils/filterViteServerResolvedUrls.native.js +61 -63
- package/dist/utils/filterViteServerResolvedUrls.native.js.map +1 -1
- package/dist/utils/getBoundPort.mjs +6 -5
- package/dist/utils/getBoundPort.mjs.map +1 -1
- package/dist/utils/getBoundPort.native.js +8 -12
- package/dist/utils/getBoundPort.native.js.map +1 -1
- package/dist/utils/getCacheDir.mjs +3 -1
- package/dist/utils/getCacheDir.mjs.map +1 -1
- package/dist/utils/getCacheDir.native.js +3 -1
- package/dist/utils/getCacheDir.native.js.map +1 -1
- package/dist/utils/getServerEntry.mjs +6 -4
- package/dist/utils/getServerEntry.mjs.map +1 -1
- package/dist/utils/getServerEntry.native.js +8 -11
- package/dist/utils/getServerEntry.native.js.map +1 -1
- package/dist/utils/getVitePath.mjs +42 -42
- package/dist/utils/getVitePath.mjs.map +1 -1
- package/dist/utils/getVitePath.native.js +43 -41
- package/dist/utils/getVitePath.native.js.map +1 -1
- package/dist/utils/globDir.mjs +7 -11
- package/dist/utils/globDir.mjs.map +1 -1
- package/dist/utils/globDir.native.js +10 -14
- package/dist/utils/globDir.native.js.map +1 -1
- package/dist/utils/isWithin.mjs +4 -2
- package/dist/utils/isWithin.mjs.map +1 -1
- package/dist/utils/isWithin.native.js +4 -2
- package/dist/utils/isWithin.native.js.map +1 -1
- package/dist/utils/nativeRun.mjs +154 -0
- package/dist/utils/nativeRun.mjs.map +1 -0
- package/dist/utils/nativeRun.native.js +192 -0
- package/dist/utils/nativeRun.native.js.map +1 -0
- package/dist/utils/nearestPackageJson.mjs +16 -0
- package/dist/utils/nearestPackageJson.mjs.map +1 -0
- package/dist/utils/nearestPackageJson.native.js +16 -0
- package/dist/utils/nearestPackageJson.native.js.map +1 -0
- package/dist/utils/patches.mjs +233 -255
- package/dist/utils/patches.mjs.map +1 -1
- package/dist/utils/patches.native.js +415 -460
- package/dist/utils/patches.native.js.map +1 -1
- package/dist/utils/printServerUrls.mjs +9 -7
- package/dist/utils/printServerUrls.mjs.map +1 -1
- package/dist/utils/printServerUrls.native.js +48 -51
- package/dist/utils/printServerUrls.native.js.map +1 -1
- package/dist/utils/removeUndefined.mjs +8 -7
- package/dist/utils/removeUndefined.mjs.map +1 -1
- package/dist/utils/removeUndefined.native.js +8 -7
- package/dist/utils/removeUndefined.native.js.map +1 -1
- package/dist/utils/scanDepsToOptimize.mjs +194 -161
- package/dist/utils/scanDepsToOptimize.mjs.map +1 -1
- package/dist/utils/scanDepsToOptimize.native.js +230 -197
- package/dist/utils/scanDepsToOptimize.native.js.map +1 -1
- package/dist/utils/state.mjs +18 -18
- package/dist/utils/state.mjs.map +1 -1
- package/dist/utils/state.native.js +18 -18
- package/dist/utils/state.native.js.map +1 -1
- package/dist/utils/swiftPackageId.mjs +14 -0
- package/dist/utils/swiftPackageId.mjs.map +1 -0
- package/dist/utils/swiftPackageId.native.js +14 -0
- package/dist/utils/swiftPackageId.native.js.map +1 -0
- package/dist/utils/symbolicateNativeStack.mjs +54 -54
- package/dist/utils/symbolicateNativeStack.mjs.map +1 -1
- package/dist/utils/symbolicateNativeStack.native.js +58 -58
- package/dist/utils/symbolicateNativeStack.native.js.map +1 -1
- package/dist/utils/uniq.mjs +2 -1
- package/dist/utils/uniq.mjs.map +1 -1
- package/dist/utils/uniq.native.js +2 -1
- package/dist/utils/uniq.native.js.map +1 -1
- package/dist/utils/utils.mjs +19 -19
- package/dist/utils/utils.mjs.map +1 -1
- package/dist/utils/utils.native.js +38 -40
- package/dist/utils/utils.native.js.map +1 -1
- package/dist/vendor/debugger-app/index.mjs +0 -2
- package/dist/vendor/debugger-app/index.native.js +0 -2
- package/dist/vendor/debugger-app/src/debuggerWorker.mjs +0 -2
- package/dist/vendor/debugger-app/src/debuggerWorker.native.js +0 -2
- package/dist/vendor/debugger-app/src/index.mjs +0 -2
- package/dist/vendor/debugger-app/src/index.native.js +0 -2
- package/dist/vxrn-vite-plugin.mjs +34 -33
- package/dist/vxrn-vite-plugin.mjs.map +1 -1
- package/dist/vxrn-vite-plugin.native.js +35 -34
- package/dist/vxrn-vite-plugin.native.js.map +1 -1
- package/expo-plugin.cjs +56 -889
- package/native-project-patches.cjs +589 -0
- package/package.json +19 -21
- package/react-native-commands.cjs +36 -30
- package/src/cli.ts +29 -6
- package/src/config/getAdditionalViteConfig.ts +0 -1
- package/src/config/getBaseViteConfigOnly.ts +6 -6
- package/src/config/getBaseVitePlugins.ts +2 -1
- package/src/config/getOptimizeDeps.test.ts +7 -0
- package/src/config/getOptimizeDeps.ts +19 -12
- package/src/config/getReactNativePlugins.ts +3 -15
- package/src/config/getServerOptionsFilled.ts +1 -1
- package/src/constants/defaults.ts +1 -0
- package/src/exports/build.ts +4 -1
- package/src/exports/expoPlugin.test.mjs +139 -0
- package/src/exports/loadEnv.test.ts +22 -0
- package/src/exports/loadEnv.ts +20 -11
- package/src/exports/prebuild.ts +68 -255
- package/src/exports/prebuildWithoutExpo.test.ts +1420 -0
- package/src/exports/prebuildWithoutExpo.ts +1922 -34
- package/src/exports/runAndroid.ts +2 -2
- package/src/exports/runIos.ts +13 -3
- package/src/index.ts +2 -0
- package/src/patches/builtInDepPatches.ts +45 -232
- package/src/plugins/reactNativeDevServer.ts +96 -1
- package/src/plugins/workletImportsPlugin.ts +1 -1
- package/src/rn-commands/bundle/buildBundle.ts +8 -6
- package/src/runtime/native-prelude.ts +1 -0
- package/src/user-interface/index.ts +3 -85
- package/src/utils/createNativeDevEngine.test.ts +84 -4
- package/src/utils/createNativeDevEngine.ts +55 -20
- package/src/utils/nativeRun.test.ts +169 -0
- package/src/utils/nativeRun.ts +187 -0
- package/src/utils/nearestPackageJson.ts +24 -0
- package/src/utils/scanDepsToOptimize.test.ts +101 -0
- package/src/utils/scanDepsToOptimize.ts +18 -15
- package/src/utils/swiftPackageId.ts +14 -0
- package/src/vxrn-vite-plugin.ts +2 -5
- package/types/config/getAdditionalViteConfig.d.ts.map +1 -1
- package/types/config/getBaseViteConfigOnly.d.ts.map +1 -1
- package/types/config/getBaseVitePlugins.d.ts.map +1 -1
- package/types/config/getOptimizeDeps.d.ts +5 -0
- package/types/config/getOptimizeDeps.d.ts.map +1 -1
- package/types/config/getOptionsFilled.d.ts +15 -15
- package/types/config/getOptionsFilled.d.ts.map +1 -1
- package/types/config/getReactNativePlugins.d.ts +2 -2
- package/types/config/getReactNativePlugins.d.ts.map +1 -1
- package/types/constants/defaults.d.ts.map +1 -1
- package/types/exports/build.d.ts +11 -11
- package/types/exports/build.d.ts.map +1 -1
- package/types/exports/clean.d.ts +1 -1
- package/types/exports/clean.d.ts.map +1 -1
- package/types/exports/createServer.d.ts.map +1 -1
- package/types/exports/dev.d.ts.map +1 -1
- package/types/exports/loadEnv.d.ts +1 -3
- package/types/exports/loadEnv.d.ts.map +1 -1
- package/types/exports/patch.d.ts.map +1 -1
- package/types/exports/prebuild.d.ts +5 -4
- package/types/exports/prebuild.d.ts.map +1 -1
- package/types/exports/prebuildWithoutExpo.d.ts +31 -1
- package/types/exports/prebuildWithoutExpo.d.ts.map +1 -1
- package/types/exports/runAndroid.d.ts.map +1 -1
- package/types/exports/runIos.d.ts +3 -1
- package/types/exports/runIos.d.ts.map +1 -1
- package/types/exports/serve.d.ts.map +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/patches/builtInDepPatches.d.ts.map +1 -1
- package/types/plugins/autoDepOptimizePlugin.d.ts.map +1 -1
- package/types/plugins/reactNativeDevServer.d.ts.map +1 -1
- package/types/plugins/rollupRemoveUnusedImports.d.ts.map +1 -1
- package/types/rn-commands/bundle/buildBundle.d.ts.map +1 -1
- package/types/runtime/hmr-client.d.ts.map +1 -1
- package/types/runtime/hmr-runtime.d.ts.map +1 -1
- package/types/runtime/hmr-types.d.ts.map +1 -1
- package/types/runtime/native-prelude.d.ts.map +1 -1
- package/types/user-interface/index.d.ts.map +1 -1
- package/types/utils/createNativeDevEngine.d.ts +1 -1
- package/types/utils/createNativeDevEngine.d.ts.map +1 -1
- package/types/utils/execSync.d.ts.map +1 -1
- package/types/utils/getServerEntry.d.ts.map +1 -1
- package/types/utils/nativeRun.d.ts +25 -0
- package/types/utils/nativeRun.d.ts.map +1 -0
- package/types/utils/nearestPackageJson.d.ts +2 -0
- package/types/utils/nearestPackageJson.d.ts.map +1 -0
- package/types/utils/scanDepsToOptimize.d.ts.map +1 -1
- package/types/utils/swiftPackageId.d.ts +3 -0
- package/types/utils/swiftPackageId.d.ts.map +1 -0
- package/types/vxrn-vite-plugin.d.ts +2 -2
- package/types/vxrn-vite-plugin.d.ts.map +1 -1
- package/dist/config/getOptimizeDeps.test.mjs +0 -20
- package/dist/config/getOptimizeDeps.test.mjs.map +0 -1
- package/dist/config/getOptimizeDeps.test.native.js +0 -39
- package/dist/config/getOptimizeDeps.test.native.js.map +0 -1
- package/dist/config/getServerOptionsFilled.test.mjs +0 -20
- package/dist/config/getServerOptionsFilled.test.mjs.map +0 -1
- package/dist/config/getServerOptionsFilled.test.native.js +0 -20
- package/dist/config/getServerOptionsFilled.test.native.js.map +0 -1
- package/dist/config/getViteServerConfig.test.mjs +0 -26
- package/dist/config/getViteServerConfig.test.mjs.map +0 -1
- package/dist/config/getViteServerConfig.test.native.js +0 -26
- package/dist/config/getViteServerConfig.test.native.js.map +0 -1
- package/dist/config/mergeUserConfig.test.mjs +0 -108
- package/dist/config/mergeUserConfig.test.mjs.map +0 -1
- package/dist/config/mergeUserConfig.test.native.js +0 -108
- package/dist/config/mergeUserConfig.test.native.js.map +0 -1
- package/dist/exports/clean.test.mjs +0 -81
- package/dist/exports/clean.test.mjs.map +0 -1
- package/dist/exports/clean.test.native.js +0 -88
- package/dist/exports/clean.test.native.js.map +0 -1
- package/dist/exports/loadEnv.test.mjs +0 -65
- package/dist/exports/loadEnv.test.mjs.map +0 -1
- package/dist/exports/loadEnv.test.native.js +0 -65
- package/dist/exports/loadEnv.test.native.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/index.native.js.map +0 -1
- package/dist/plugins/autoDepOptimizePlugin.test.mjs +0 -31
- package/dist/plugins/autoDepOptimizePlugin.test.mjs.map +0 -1
- package/dist/plugins/autoDepOptimizePlugin.test.native.js +0 -39
- package/dist/plugins/autoDepOptimizePlugin.test.native.js.map +0 -1
- package/dist/plugins/expoManifestRequestHandlerPlugin.mjs +0 -189
- package/dist/plugins/expoManifestRequestHandlerPlugin.mjs.map +0 -1
- package/dist/plugins/expoManifestRequestHandlerPlugin.native.js +0 -202
- package/dist/plugins/expoManifestRequestHandlerPlugin.native.js.map +0 -1
- package/dist/plugins/resolveIdScan.test.mjs +0 -31
- package/dist/plugins/resolveIdScan.test.mjs.map +0 -1
- package/dist/plugins/resolveIdScan.test.native.js +0 -38
- package/dist/plugins/resolveIdScan.test.native.js.map +0 -1
- package/dist/plugins/rnCodegenPlugin.test.mjs +0 -239
- package/dist/plugins/rnCodegenPlugin.test.mjs.map +0 -1
- package/dist/plugins/rnCodegenPlugin.test.native.js +0 -242
- package/dist/plugins/rnCodegenPlugin.test.native.js.map +0 -1
- package/dist/plugins/serverExtensions.test.mjs +0 -106
- package/dist/plugins/serverExtensions.test.mjs.map +0 -1
- package/dist/plugins/serverExtensions.test.native.js +0 -117
- package/dist/plugins/serverExtensions.test.native.js.map +0 -1
- package/dist/runtime/hmr-types.mjs.map +0 -1
- package/dist/runtime/hmr-types.native.js.map +0 -1
- package/dist/serve/node.test.mjs +0 -60
- package/dist/serve/node.test.mjs.map +0 -1
- package/dist/serve/node.test.native.js +0 -72
- package/dist/serve/node.test.native.js.map +0 -1
- package/dist/types.mjs.map +0 -1
- package/dist/types.native.js.map +0 -1
- package/dist/utils/bindKeypressInput.test.mjs +0 -48
- package/dist/utils/bindKeypressInput.test.mjs.map +0 -1
- package/dist/utils/bindKeypressInput.test.native.js +0 -48
- package/dist/utils/bindKeypressInput.test.native.js.map +0 -1
- package/dist/utils/createNativeDevEngine.test.mjs +0 -1788
- package/dist/utils/createNativeDevEngine.test.mjs.map +0 -1
- package/dist/utils/createNativeDevEngine.test.native.js +0 -1942
- package/dist/utils/createNativeDevEngine.test.native.js.map +0 -1
- package/dist/utils/createNativeDevEngineFailure.test.mjs +0 -44
- package/dist/utils/createNativeDevEngineFailure.test.mjs.map +0 -1
- package/dist/utils/createNativeDevEngineFailure.test.native.js +0 -54
- package/dist/utils/createNativeDevEngineFailure.test.native.js.map +0 -1
- package/dist/utils/expoRun.mjs +0 -48
- package/dist/utils/expoRun.mjs.map +0 -1
- package/dist/utils/expoRun.native.js +0 -49
- package/dist/utils/expoRun.native.js.map +0 -1
- package/dist/utils/getBoundPort.test.mjs +0 -71
- package/dist/utils/getBoundPort.test.mjs.map +0 -1
- package/dist/utils/getBoundPort.test.native.js +0 -82
- package/dist/utils/getBoundPort.test.native.js.map +0 -1
- package/dist/utils/imageSizePatch.test.mjs +0 -29
- package/dist/utils/imageSizePatch.test.mjs.map +0 -1
- package/dist/utils/imageSizePatch.test.native.js +0 -30
- package/dist/utils/imageSizePatch.test.native.js.map +0 -1
- package/dist/utils/patches.test.mjs +0 -242
- package/dist/utils/patches.test.mjs.map +0 -1
- package/dist/utils/patches.test.native.js +0 -271
- package/dist/utils/patches.test.native.js.map +0 -1
- package/dist/utils/symbolicateNativeStack.test.mjs +0 -96
- package/dist/utils/symbolicateNativeStack.test.mjs.map +0 -1
- package/dist/utils/symbolicateNativeStack.test.native.js +0 -96
- package/dist/utils/symbolicateNativeStack.test.native.js.map +0 -1
- package/dist/vendor/debugger-app/index.mjs.map +0 -1
- package/dist/vendor/debugger-app/index.native.js.map +0 -1
- package/dist/vendor/debugger-app/src/debuggerWorker.mjs.map +0 -1
- package/dist/vendor/debugger-app/src/debuggerWorker.native.js.map +0 -1
- package/dist/vendor/debugger-app/src/index.mjs.map +0 -1
- package/dist/vendor/debugger-app/src/index.native.js.map +0 -1
- package/expo-js-native-debugging-plugin.cjs +0 -241
- package/src/plugins/expoManifestRequestHandlerPlugin.ts +0 -260
- package/src/utils/expoRun.ts +0 -71
- package/types/config/getOptimizeDeps.test.d.ts +0 -2
- package/types/config/getOptimizeDeps.test.d.ts.map +0 -1
- package/types/config/getServerOptionsFilled.test.d.ts +0 -2
- package/types/config/getServerOptionsFilled.test.d.ts.map +0 -1
- package/types/config/getViteServerConfig.test.d.ts +0 -2
- package/types/config/getViteServerConfig.test.d.ts.map +0 -1
- package/types/config/mergeUserConfig.test.d.ts +0 -2
- package/types/config/mergeUserConfig.test.d.ts.map +0 -1
- package/types/exports/clean.test.d.ts +0 -2
- package/types/exports/clean.test.d.ts.map +0 -1
- package/types/exports/loadEnv.test.d.ts +0 -2
- package/types/exports/loadEnv.test.d.ts.map +0 -1
- package/types/plugins/autoDepOptimizePlugin.test.d.ts +0 -2
- package/types/plugins/autoDepOptimizePlugin.test.d.ts.map +0 -1
- package/types/plugins/expoManifestRequestHandlerPlugin.d.ts +0 -8
- package/types/plugins/expoManifestRequestHandlerPlugin.d.ts.map +0 -1
- package/types/plugins/resolveIdScan.test.d.ts +0 -2
- package/types/plugins/resolveIdScan.test.d.ts.map +0 -1
- package/types/plugins/rnCodegenPlugin.test.d.ts +0 -2
- package/types/plugins/rnCodegenPlugin.test.d.ts.map +0 -1
- package/types/plugins/serverExtensions.test.d.ts +0 -2
- package/types/plugins/serverExtensions.test.d.ts.map +0 -1
- package/types/serve/node.test.d.ts +0 -2
- package/types/serve/node.test.d.ts.map +0 -1
- package/types/utils/bindKeypressInput.test.d.ts +0 -2
- package/types/utils/bindKeypressInput.test.d.ts.map +0 -1
- package/types/utils/createNativeDevEngine.test.d.ts +0 -2
- package/types/utils/createNativeDevEngine.test.d.ts.map +0 -1
- package/types/utils/createNativeDevEngineFailure.test.d.ts +0 -2
- package/types/utils/createNativeDevEngineFailure.test.d.ts.map +0 -1
- package/types/utils/expoRun.d.ts +0 -6
- package/types/utils/expoRun.d.ts.map +0 -1
- package/types/utils/getBoundPort.test.d.ts +0 -2
- package/types/utils/getBoundPort.test.d.ts.map +0 -1
- package/types/utils/imageSizePatch.test.d.ts +0 -2
- package/types/utils/imageSizePatch.test.d.ts.map +0 -1
- package/types/utils/patches.test.d.ts +0 -2
- package/types/utils/patches.test.d.ts.map +0 -1
- package/types/utils/symbolicateNativeStack.test.d.ts +0 -2
- package/types/utils/symbolicateNativeStack.test.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["enqueueUpdate","isReactRefreshBoundary","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","value","o","setPrototypeOf","getPrototypeOf","o2","__proto__","_inherits","subClass","superClass","create","_set_prototype_of","call","_type_of","p","p2","Symbol","result","Boolean","valueOf","_","BaseDevRuntime","DevRuntime","SimpleEmitter","SimpleEmitter1","Map","on","event","fn","listeners","has","set","Set","get","add","off","_this_listeners_get","delete","emit","payload","forEach","ModuleHotContext","ModuleHotContext1","moduleId","socketHolder","removeListeners","acceptCallbacks","globalThis","__ReactRefresh","accept","_len","arguments","Array","_key","push","deps","Error","invalidate","send","JSON","stringify","type","listener"],"sources":["../../src/runtime/hmr-runtime.ts"],"sourcesContent":[null],"mappings":"AAiBA,SAASA,aAAA,EAAeC,sBAAA,QAA8B;AAgBtD,SAAIC,wBAAiBA,CAAAC,IAAA;EAKrB,IAAMA,IAAA,UAAc;IACV,UAAYC,cAAA,4DAA+B;EAEnD;EACE,OAAKD,IAAA;AACL;AAAiC,SACnCE,YAAAC,KAAA,EAAAC,OAAA,EAAAC,IAAA;EAEAD,OAAI,GAAAE,iBAA6B,CAAAF,OAAA;EAC/B,OAAKG,4BAAsB,CAAOJ,KAAE,EAAAK,4BAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,OAAA,EAAAC,IAAA,QAAAC,iBAAA,CAAAH,KAAA,EAAAQ,WAAA,IAAAP,OAAA,CAAAQ,KAAA,CAAAT,KAAA,EAAAE,IAAA;AAAA;AAC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"version":3,"file":"hmr-runtime.native.js","names":[],"sources":["runtime/hmr-runtime.native.js"],"sourcesContent":["import { enqueueUpdate, isReactRefreshBoundary } from \"./react-refresh-utils\";\nfunction _assert_this_initialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _call_super(_this, derived, args) {\n derived = _get_prototype_of(derived);\n return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));\n}\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o2) {\n return o2.__proto__ || Object.getPrototypeOf(o2);\n };\n return _get_prototype_of(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nfunction _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assert_this_initialized(self);\n}\nfunction _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o2, p2) {\n o2.__proto__ = p2;\n return o2;\n };\n return _set_prototype_of(o, p);\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction _is_native_reflect_construct() {\n try {\n var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch (_) {\n }\n return (_is_native_reflect_construct = function() {\n return !!result;\n })();\n}\nvar BaseDevRuntime = DevRuntime;\nvar SimpleEmitter = /* @__PURE__ */ (function() {\n \"use strict\";\n function SimpleEmitter1() {\n _class_call_check(this, SimpleEmitter1);\n _define_property(this, \"listeners\", /* @__PURE__ */ new Map());\n }\n _create_class(SimpleEmitter1, [\n {\n key: \"on\",\n value: function on(event, fn) {\n if (!this.listeners.has(event)) this.listeners.set(event, /* @__PURE__ */ new Set());\n this.listeners.get(event).add(fn);\n }\n },\n {\n key: \"off\",\n value: function off(event, fn) {\n var _this_listeners_get;\n (_this_listeners_get = this.listeners.get(event)) === null || _this_listeners_get === void 0 ? void 0 : _this_listeners_get.delete(fn);\n }\n },\n {\n key: \"emit\",\n value: function emit(event, payload) {\n var _this_listeners_get;\n (_this_listeners_get = this.listeners.get(event)) === null || _this_listeners_get === void 0 ? void 0 : _this_listeners_get.forEach(function(fn) {\n return fn(payload);\n });\n }\n }\n ]);\n return SimpleEmitter1;\n})();\nvar ModuleHotContext = /* @__PURE__ */ (function() {\n \"use strict\";\n function ModuleHotContext1(moduleId, socketHolder) {\n _class_call_check(this, ModuleHotContext1);\n _define_property(this, \"moduleId\", void 0);\n _define_property(this, \"socketHolder\", void 0);\n _define_property(this, \"removeListeners\", void 0);\n _define_property(this, \"acceptCallbacks\", void 0);\n this.moduleId = moduleId;\n this.socketHolder = socketHolder;\n this.removeListeners = [];\n this.acceptCallbacks = [];\n }\n _create_class(ModuleHotContext1, [\n {\n key: \"refresh\",\n get: function get() {\n return globalThis.__ReactRefresh;\n }\n },\n {\n key: \"refreshUtils\",\n get: function get() {\n return {\n isReactRefreshBoundary,\n enqueueUpdate\n };\n }\n },\n {\n key: \"accept\",\n value: function accept() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (args.length === 1) {\n this.acceptCallbacks.push({\n deps: [\n this.moduleId\n ],\n fn: args[0]\n });\n } else if (args.length === 0) {\n } else {\n throw new Error(\"Invalid arguments for `import.meta.hot.accept`\");\n }\n }\n },\n {\n key: \"invalidate\",\n value: function invalidate() {\n this.socketHolder.send(JSON.stringify({\n type: \"hmr:invalidate\",\n moduleId: this.moduleId\n }));\n }\n },\n {\n key: \"on\",\n value: function on(event, listener) {\n var _this = this;\n this.socketHolder.on(event, listener);\n this.removeListeners.push(function() {\n return _this.socketHolder.off(event, listener);\n });\n }\n },\n {\n key: \"off\",\n value: function off(event, listener) {\n this.socketHolder.off(event, listener);\n }\n },\n {\n key: \"send\",\n value: function send(type, payload) {\n this.socketHolder.send(JSON.stringify({\n type,\n payload\n }));\n }\n },\n {\n key: \"cleanup\",\n value: function cleanup() {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = this.removeListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var removeListener = _step.value;\n removeListener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n this.removeListeners.length = 0;\n }\n }\n ]);\n return ModuleHotContext1;\n})();\nvar SocketHolder = /* @__PURE__ */ (function() {\n \"use strict\";\n function SocketHolder1() {\n _class_call_check(this, SocketHolder1);\n _define_property(this, \"queuedMessages\", []);\n _define_property(this, \"emitter\", new SimpleEmitter());\n _define_property(this, \"_socket\", null);\n _define_property(this, \"_origin\", null);\n }\n _create_class(SocketHolder1, [\n {\n key: \"socket\",\n get: function get() {\n return this._socket;\n }\n },\n {\n key: \"origin\",\n get: function get() {\n return this._origin;\n }\n },\n {\n key: \"setup\",\n value: function setup(socket, origin) {\n var _this = this;\n this._socket = socket;\n this._origin = origin;\n if (socket.readyState !== WebSocket.OPEN) {\n socket.addEventListener(\"open\", function() {\n return _this.flushQueuedMessages();\n }, {\n once: true\n });\n } else {\n this.flushQueuedMessages();\n }\n }\n },\n {\n key: \"on\",\n value: function on(event, listener) {\n this.emitter.on(event, listener);\n }\n },\n {\n key: \"off\",\n value: function off(event, listener) {\n this.emitter.off(event, listener);\n }\n },\n {\n key: \"emit\",\n value: function emit(event, payload) {\n this.emitter.emit(event, payload);\n }\n },\n {\n key: \"send\",\n value: function send(message) {\n if (this._socket == null || this._socket.readyState !== WebSocket.OPEN) {\n this.queuedMessages.push(message);\n return;\n }\n this.flushQueuedMessages();\n this._socket.send(message);\n }\n },\n {\n key: \"flushQueuedMessages\",\n value: function flushQueuedMessages() {\n if (this._socket == null) return;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = this.queuedMessages[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var message = _step.value;\n this._socket.send(message);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n this.queuedMessages.length = 0;\n }\n },\n {\n key: \"close\",\n value: function close() {\n var _this__socket;\n (_this__socket = this._socket) === null || _this__socket === void 0 ? void 0 : _this__socket.close();\n }\n }\n ]);\n return SocketHolder1;\n})();\nvar ReactNativeDevRuntime = /* @__PURE__ */ (function(BaseDevRuntime1) {\n \"use strict\";\n _inherits(ReactNativeDevRuntime1, BaseDevRuntime1);\n function ReactNativeDevRuntime1() {\n _class_call_check(this, ReactNativeDevRuntime1);\n var _this;\n var socketHolder = new SocketHolder();\n var messenger = {\n send: function(message) {\n return socketHolder.send(JSON.stringify(message));\n }\n };\n var clientId = `rn-${Date.now()}-${Math.random().toString(36).slice(2)}`;\n _this = _call_super(this, ReactNativeDevRuntime1, [\n messenger,\n clientId\n ]), _define_property(_this, \"socketHolder\", void 0), _define_property(_this, \"moduleHotContexts\", /* @__PURE__ */ new Map()), _define_property(_this, \"moduleHotContextsToBeUpdated\", /* @__PURE__ */ new Map());\n _this.socketHolder = socketHolder;\n return _this;\n }\n _create_class(ReactNativeDevRuntime1, [\n {\n key: \"createModuleHotContext\",\n value: function createModuleHotContext(moduleId) {\n var hotContext = new ModuleHotContext(moduleId, this.socketHolder);\n if (this.moduleHotContexts.has(moduleId)) {\n this.moduleHotContextsToBeUpdated.set(moduleId, hotContext);\n } else {\n this.moduleHotContexts.set(moduleId, hotContext);\n }\n return hotContext;\n }\n },\n {\n key: \"applyUpdates\",\n value: function applyUpdates(boundaries) {\n var _this = this;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n var _this1, _loop = function() {\n var [moduleId] = _step.value;\n var hotContext = _this1.moduleHotContexts.get(moduleId);\n if (hotContext) {\n hotContext.acceptCallbacks.filter(function(cb) {\n cb.fn(_this.modules[moduleId].exports);\n });\n hotContext.cleanup();\n }\n };\n for (var _iterator = boundaries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _this1 = this, _loop();\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n this.moduleHotContextsToBeUpdated.forEach(function(hotContext, moduleId) {\n _this.moduleHotContexts.set(moduleId, hotContext);\n });\n this.moduleHotContextsToBeUpdated.clear();\n }\n },\n {\n key: \"setup\",\n value: function setup(socket, origin) {\n var _this = this;\n if (this.socketHolder.socket != null) {\n console.warn(\"[vxrn HMR]: runtime already setup\");\n return;\n }\n this.socketHolder.setup(socket, origin);\n socket.addEventListener(\"message\", function(event) {\n var message = JSON.parse(event.data);\n if (isCustomHMRMessage(message)) {\n var _globalThis___VXRN_CUSTOM_HMR_HANDLER__, _globalThis;\n _this.socketHolder.emit(message.type, message.payload);\n (_globalThis___VXRN_CUSTOM_HMR_HANDLER__ = (_globalThis = globalThis).__VXRN_CUSTOM_HMR_HANDLER__) === null || _globalThis___VXRN_CUSTOM_HMR_HANDLER__ === void 0 ? void 0 : _globalThis___VXRN_CUSTOM_HMR_HANDLER__.call(_globalThis, socket, message);\n return;\n }\n switch (message.type) {\n case \"hmr:update\":\n _this.evaluate(message.code);\n break;\n case \"hmr:reload\":\n _this.reload();\n break;\n }\n });\n }\n },\n {\n key: \"evaluate\",\n value: function evaluate(code, sourceURL) {\n if (globalThis.globalEvalWithSourceUrl) {\n globalThis.globalEvalWithSourceUrl(code, sourceURL);\n } else {\n eval(code);\n }\n }\n },\n {\n key: \"reload\",\n value: function reload() {\n var moduleName = \"DevSettings\";\n (globalThis.__turboModuleProxy ? globalThis.__turboModuleProxy(moduleName) : globalThis.nativeModuleProxy[moduleName]).reload();\n }\n }\n ]);\n return ReactNativeDevRuntime1;\n})(BaseDevRuntime);\nfunction isCustomHMRMessage(message) {\n if (typeof message !== \"object\" || message == null) return false;\n if (\"type\" in message && typeof message.type === \"string\" && message.type.startsWith(\"hmr:\")) {\n return false;\n }\n return true;\n}\nglobalThis.__rolldown_runtime__ = new ReactNativeDevRuntime();\n//# sourceMappingURL=hmr-runtime.js.map\n"],"mappings":";;;AACA,SAAS,yBAAyB,MAAM;CACtC,IAAI,SAAS,KAAK,GAAG;EACnB,MAAM,IAAI,eAAe,2D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erformanceNow ? nativePerformanceNow() : Date.now();
|
|
4
4
|
|
|
5
5
|
var global = typeof globalThis !== 'undefined' ? globalThis
|
|
@@ -42,6 +42,7 @@ if (typeof process === 'undefined') {
|
|
|
42
42
|
globalThis.process = { env: {} };
|
|
43
43
|
}
|
|
44
44
|
process.env.NODE_ENV = ${JSON.stringify(options.dev ? "development" : "production")};
|
|
45
|
+
process.env.ONE_PLATFORM = ${JSON.stringify(options.platform)};
|
|
45
46
|
process.env.EXPO_OS = ${JSON.stringify(options.platform)};
|
|
46
47
|
process.env.TAMAGUI_TARGET = 'native';
|
|
47
48
|
${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : ""}
|
|
@@ -97,5 +98,6 @@ var $RefreshSig$ = function() { return function(v) { return v; }; };
|
|
|
97
98
|
` : ""}
|
|
98
99
|
`.trim();
|
|
99
100
|
}
|
|
101
|
+
|
|
100
102
|
export { getNativePrelude };
|
|
101
103
|
//# sourceMappingURL=native-prelude.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"native-prelude.js","names":[],"sources":["runtime/native-prelude.js"],"sourcesContent":["function getNativePrelude(options) {\n\treturn `\nvar __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();\n\nvar global = typeof globalThis !== 'undefined' ? globalThis\n : typeof global !== 'undefined' ? global\n : typeof window !== 'undefined' ? window\n : this;\n\nglobalThis.global = global;\nglobalThis.__DEV__ = ${options.dev};\n\n// react native polyfills\nglobal.__FUSEBOX_HAS_FULL_CONSOLE_SUPPORT__ = false;\nglobal.Event = global.Event || function() { return this; };\nglobal.dispatchEvent = global.dispatchEvent || function() {};\nglobal.window = global.window || global;\nglobal.self = global.self || global;\nglobal.navigator = global.navigator || { product: 'ReactNative', userAgent: '' };\nglobal.performance = global.performance || { now: function() { return Date.now(); } };\n\n// hermes can expose addEventListener without the matching removal API. browser\n// libraries use addEventListener as their capability check, then crash during\n// cleanup. keep the incomplete host API from advertising browser event support.\nif (typeof global.addEventListener === 'function' && typeof global.removeEventListener !== 'function') {\n global.addEventListener = undefined;\n}\n\n// ErrorUtils - used by RN's error handling system\nif (!global.ErrorUtils) {\n var _handler = null;\n global.ErrorUtils = {\n setGlobalHandler: function(h) { _handler = h; },\n getGlobalHandler: function() { return _handler; },\n reportFatalError: function(e) { if (_handler) _handler(e, true); else throw e; },\n reportError: function(e) { if (_handler) _handler(e, false); },\n applyWithGuard: function(fn, ctx, args) { try { return fn.apply(ctx, args); } catch(e) { this.reportError(e); } },\n };\n}\n\nif (typeof process === 'undefined') {\n globalThis.process = { env: {} };\n}\nprocess.env.NODE_ENV = ${JSON.stringify(options.dev ? \"development\" : \"production\")};\nprocess.env.ONE_PLATFORM = ${JSON.stringify(options.platform)};\nprocess.env.EXPO_OS = ${JSON.stringify(options.platform)};\nprocess.env.TAMAGUI_TARGET = 'native';\n${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : \"\"}\n\n// polyfill setImmediate (used by react-native internals)\nif (typeof globalThis.setImmediate === 'undefined') {\n globalThis.setImmediate = function(fn) { return setTimeout(fn, 0); };\n globalThis.clearImmediate = function(id) { clearTimeout(id); };\n}\n\n// polyfill URLSearchParams early (before whatwg-fetch checks for it)\n// RN's polyfillGlobal sets this up later but some modules check at import time\nif (typeof globalThis.URLSearchParams === 'undefined') {\n // minimal URLSearchParams polyfill - will be overridden by RN's proper one\n globalThis.URLSearchParams = function URLSearchParams(init) {\n this._params = {};\n if (typeof init === 'string') {\n init.replace(/^\\\\?/, '').split('&').forEach(function(p) {\n var kv = p.split('=');\n if (kv[0]) this._params[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1] || '');\n }.bind(this));\n }\n };\n globalThis.URLSearchParams.prototype.get = function(k) { return this._params[k] || null; };\n globalThis.URLSearchParams.prototype.toString = function() {\n return Object.keys(this._params).map(function(k) { return encodeURIComponent(k) + '=' + encodeURIComponent(this._params[k]); }.bind(this)).join('&');\n };\n}\n\n// ensure console exists before any library prelude touches it in release bundles\nglobalThis.console = globalThis.console || {};\nvar console = globalThis.console;\nconsole.log = console.log || function() {};\nconsole.info = console.info || function() {};\nconsole.warn = console.warn || function() {};\nconsole.error = console.error || function() {};\nconsole.debug = console.debug || function() {};\nconsole.trace = console.trace || function() {};\n\n// reanimated compat - these console methods must exist to avoid EXC_BAD_ACCESS crash\nconsole.assert = console.assert || function() {};\nconsole.clear = console.clear || function() {};\nconsole.dir = console.dir || function() {};\nconsole.dirxml = console.dirxml || function() {};\nconsole.profile = console.profile || function() {};\nconsole.profileEnd = console.profileEnd || function() {};\nconsole.table = console.table || function() {};\n\n// react refresh stubs (overridden by react-refresh plugin in dev)\n${options.dev ? `\nvar $RefreshReg$ = function() {};\nvar $RefreshSig$ = function() { return function(v) { return v; }; };\n` : \"\"}\n`.trim();\n}\n\nexport { getNativePrelude };"],"mappings":";AAAA,SAAS,iBAAiB,SAAS;CAClC,OAAO;;;;;;;;;uBASe,QAAQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiCV,KAAK,UAAU,QAAQ,MAAM,gBAAgB,YAAY,EAAE;6BACvD,KAAK,UAAU,QAAQ,QAAQ,EAAE;wBACtC,KAAK,UAAU,QAAQ,QAAQ,EAAE;;EAEvD,QAAQ,YAAY,gCAAgC,KAAK,UAAU,QAAQ,SAAS,EAAE,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C9F,QAAQ,MAAM;;;IAGZ,GAAG;EACL,KAAK;AACP"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function getNativePrelude(options) {
|
|
2
|
-
|
|
2
|
+
return `
|
|
3
3
|
var __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();
|
|
4
4
|
|
|
5
5
|
var global = typeof globalThis !== 'undefined' ? globalThis
|
|
@@ -42,6 +42,7 @@ if (typeof process === 'undefined') {
|
|
|
42
42
|
globalThis.process = { env: {} };
|
|
43
43
|
}
|
|
44
44
|
process.env.NODE_ENV = ${JSON.stringify(options.dev ? "development" : "production")};
|
|
45
|
+
process.env.ONE_PLATFORM = ${JSON.stringify(options.platform)};
|
|
45
46
|
process.env.EXPO_OS = ${JSON.stringify(options.platform)};
|
|
46
47
|
process.env.TAMAGUI_TARGET = 'native';
|
|
47
48
|
${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : ""}
|
|
@@ -97,5 +98,6 @@ var $RefreshSig$ = function() { return function(v) { return v; }; };
|
|
|
97
98
|
` : ""}
|
|
98
99
|
`.trim();
|
|
99
100
|
}
|
|
101
|
+
|
|
100
102
|
export { getNativePrelude };
|
|
101
103
|
//# sourceMappingURL=native-prelude.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"native-prelude.native.js","names":[],"sources":["runtime/native-prelude.native.js"],"sourcesContent":["function getNativePrelude(options) {\n\treturn `\nvar __BUNDLE_START_TIME__ = globalThis.nativePerformanceNow ? nativePerformanceNow() : Date.now();\n\nvar global = typeof globalThis !== 'undefined' ? globalThis\n : typeof global !== 'undefined' ? global\n : typeof window !== 'undefined' ? window\n : this;\n\nglobalThis.global = global;\nglobalThis.__DEV__ = ${options.dev};\n\n// react native polyfills\nglobal.__FUSEBOX_HAS_FULL_CONSOLE_SUPPORT__ = false;\nglobal.Event = global.Event || function() { return this; };\nglobal.dispatchEvent = global.dispatchEvent || function() {};\nglobal.window = global.window || global;\nglobal.self = global.self || global;\nglobal.navigator = global.navigator || { product: 'ReactNative', userAgent: '' };\nglobal.performance = global.performance || { now: function() { return Date.now(); } };\n\n// hermes can expose addEventListener without the matching removal API. browser\n// libraries use addEventListener as their capability check, then crash during\n// cleanup. keep the incomplete host API from advertising browser event support.\nif (typeof global.addEventListener === 'function' && typeof global.removeEventListener !== 'function') {\n global.addEventListener = undefined;\n}\n\n// ErrorUtils - used by RN's error handling system\nif (!global.ErrorUtils) {\n var _handler = null;\n global.ErrorUtils = {\n setGlobalHandler: function(h) { _handler = h; },\n getGlobalHandler: function() { return _handler; },\n reportFatalError: function(e) { if (_handler) _handler(e, true); else throw e; },\n reportError: function(e) { if (_handler) _handler(e, false); },\n applyWithGuard: function(fn, ctx, args) { try { return fn.apply(ctx, args); } catch(e) { this.reportError(e); } },\n };\n}\n\nif (typeof process === 'undefined') {\n globalThis.process = { env: {} };\n}\nprocess.env.NODE_ENV = ${JSON.stringify(options.dev ? \"development\" : \"production\")};\nprocess.env.ONE_PLATFORM = ${JSON.stringify(options.platform)};\nprocess.env.EXPO_OS = ${JSON.stringify(options.platform)};\nprocess.env.TAMAGUI_TARGET = 'native';\n${options.serverUrl ? `process.env.ONE_SERVER_URL = ${JSON.stringify(options.serverUrl)};` : \"\"}\n\n// polyfill setImmediate (used by react-native internals)\nif (typeof globalThis.setImmediate === 'undefined') {\n globalThis.setImmediate = function(fn) { return setTimeout(fn, 0); };\n globalThis.clearImmediate = function(id) { clearTimeout(id); };\n}\n\n// polyfill URLSearchParams early (before whatwg-fetch checks for it)\n// RN's polyfillGlobal sets this up later but some modules check at import time\nif (typeof globalThis.URLSearchParams === 'undefined') {\n // minimal URLSearchParams polyfill - will be overridden by RN's proper one\n globalThis.URLSearchParams = function URLSearchParams(init) {\n this._params = {};\n if (typeof init === 'string') {\n init.replace(/^\\\\?/, '').split('&').forEach(function(p) {\n var kv = p.split('=');\n if (kv[0]) this._params[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1] || '');\n }.bind(this));\n }\n };\n globalThis.URLSearchParams.prototype.get = function(k) { return this._params[k] || null; };\n globalThis.URLSearchParams.prototype.toString = function() {\n return Object.keys(this._params).map(function(k) { return encodeURIComponent(k) + '=' + encodeURIComponent(this._params[k]); }.bind(this)).join('&');\n };\n}\n\n// ensure console exists before any library prelude touches it in release bundles\nglobalThis.console = globalThis.console || {};\nvar console = globalThis.console;\nconsole.log = console.log || function() {};\nconsole.info = console.info || function() {};\nconsole.warn = console.warn || function() {};\nconsole.error = console.error || function() {};\nconsole.debug = console.debug || function() {};\nconsole.trace = console.trace || function() {};\n\n// reanimated compat - these console methods must exist to avoid EXC_BAD_ACCESS crash\nconsole.assert = console.assert || function() {};\nconsole.clear = console.clear || function() {};\nconsole.dir = console.dir || function() {};\nconsole.dirxml = console.dirxml || function() {};\nconsole.profile = console.profile || function() {};\nconsole.profileEnd = console.profileEnd || function() {};\nconsole.table = console.table || function() {};\n\n// react refresh stubs (overridden by react-refresh plugin in dev)\n${options.dev ? `\nvar $RefreshReg$ = function() {};\nvar $RefreshSig$ = function() { return function(v) { return v; }; };\n` : \"\"}\n`.trim();\n}\n\nexport { getNativePrelude };"],"mappings":";AAAA,SAAS,iBAAiB,SAAS;CAClC,OAAO;;;;;;;;;uBASe,QAAQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiCV,KAAK,UAAU,QAAQ,MAAM,gBAAgB,YAAY,EAAE;6BACvD,KAAK,UAAU,QAAQ,QAAQ,EAAE;wBACtC,KAAK,UAAU,QAAQ,QAAQ,EAAE;;EAEvD,QAAQ,YAAY,gCAAgC,KAAK,UAAU,QAAQ,SAAS,EAAE,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C9F,QAAQ,MAAM;;;IAGZ,GAAG;EACL,KAAK;AACP"}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
function isReactRefreshBoundary(moduleExports) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {
|
|
3
|
+
return true;
|
|
4
|
+
}
|
|
5
|
+
if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== "object") {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
var hasExports = false;
|
|
9
|
+
var areAllExportsComponents = true;
|
|
10
|
+
for (var key in moduleExports) {
|
|
11
|
+
hasExports = true;
|
|
12
|
+
if (key === "__esModule") continue;
|
|
13
|
+
var exportValue = moduleExports[key];
|
|
14
|
+
if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {
|
|
15
|
+
areAllExportsComponents = false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return hasExports && areAllExportsComponents;
|
|
19
19
|
}
|
|
20
20
|
let timer = null;
|
|
21
21
|
function enqueueUpdate() {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
if (timer) return;
|
|
23
|
+
timer = setTimeout(() => {
|
|
24
|
+
globalThis.__ReactRefresh.performReactRefresh();
|
|
25
|
+
timer = null;
|
|
26
|
+
}, 50);
|
|
27
27
|
}
|
|
28
|
+
|
|
28
29
|
export { enqueueUpdate, isReactRefreshBoundary };
|
|
29
30
|
//# sourceMappingURL=react-refresh-utils.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"react-refresh-utils.js","names":[],"sources":["runtime/react-refresh-utils.js"],"sourcesContent":["function isReactRefreshBoundary(moduleExports) {\n if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {\n return true;\n }\n if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== \"object\") {\n return false;\n }\n var hasExports = false;\n var areAllExportsComponents = true;\n for (var key in moduleExports) {\n hasExports = true;\n if (key === \"__esModule\") continue;\n var exportValue = moduleExports[key];\n if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {\n areAllExportsComponents = false;\n }\n }\n return hasExports && areAllExportsComponents;\n}\nlet timer = null;\nfunction enqueueUpdate() {\n if (timer) return;\n timer = setTimeout(() => {\n globalThis.__ReactRefresh.performReactRefresh();\n timer = null;\n }, 50);\n}\nexport {\n enqueueUpdate,\n isReactRefreshBoundary\n};\n//# sourceMappingURL=react-refresh-utils.js.map\n"],"mappings":";AAAA,SAAS,uBAAuB,eAAe;CAC7C,IAAI,WAAW,eAAe,sBAAsB,aAAa,GAAG;EAClE,OAAO;CACT;CACA,IAAI,kBAAkB,KAAK,KAAK,kBAAkB,QAAQ,OAAO,kBAAkB,UAAU;EAC3F,OAAO;CACT;CACA,IAAI,aAAa;CACjB,IAAI,0BAA0B;CAC9B,KAAK,IAAI,OAAO,eAAe;EAC7B,aAAa;EACb,IAAI,QAAQ,cAAc;EAC1B,IAAI,cAAc,cAAc;EAChC,IAAI,CAAC,WAAW,eAAe,sBAAsB,WAAW,GAAG;GACjE,0BAA0B;EAC5B;CACF;CACA,OAAO,cAAc;AACvB;AACA,IAAI,QAAQ;AACZ,SAAS,gBAAgB;CACvB,IAAI,OAAO;CACX,QAAQ,iBAAiB;EACvB,WAAW,eAAe,oBAAoB;EAC9C,QAAQ;CACV,GAAG,EAAE;AACP"}
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
function _type_of(obj) {
|
|
2
|
-
"@swc/helpers - typeof";
|
|
3
|
-
|
|
4
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
5
|
-
}
|
|
6
1
|
function isReactRefreshBoundary(moduleExports) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {
|
|
3
|
+
return true;
|
|
4
|
+
}
|
|
5
|
+
if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== "object") {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
var hasExports = false;
|
|
9
|
+
var areAllExportsComponents = true;
|
|
10
|
+
for (var key in moduleExports) {
|
|
11
|
+
hasExports = true;
|
|
12
|
+
if (key === "__esModule") continue;
|
|
13
|
+
var exportValue = moduleExports[key];
|
|
14
|
+
if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {
|
|
15
|
+
areAllExportsComponents = false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return hasExports && areAllExportsComponents;
|
|
24
19
|
}
|
|
25
20
|
var timer = null;
|
|
26
21
|
function enqueueUpdate() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
if (timer) return;
|
|
23
|
+
timer = setTimeout(function() {
|
|
24
|
+
globalThis.__ReactRefresh.performReactRefresh();
|
|
25
|
+
timer = null;
|
|
26
|
+
}, 50);
|
|
32
27
|
}
|
|
28
|
+
|
|
33
29
|
export { enqueueUpdate, isReactRefreshBoundary };
|
|
34
30
|
//# sourceMappingURL=react-refresh-utils.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"react-refresh-utils.native.js","names":[],"sources":["runtime/react-refresh-utils.native.js"],"sourcesContent":["function isReactRefreshBoundary(moduleExports) {\n if (globalThis.__ReactRefresh.isLikelyComponentType(moduleExports)) {\n return true;\n }\n if (moduleExports === void 0 || moduleExports === null || typeof moduleExports !== \"object\") {\n return false;\n }\n var hasExports = false;\n var areAllExportsComponents = true;\n for (var key in moduleExports) {\n hasExports = true;\n if (key === \"__esModule\") continue;\n var exportValue = moduleExports[key];\n if (!globalThis.__ReactRefresh.isLikelyComponentType(exportValue)) {\n areAllExportsComponents = false;\n }\n }\n return hasExports && areAllExportsComponents;\n}\nvar timer = null;\nfunction enqueueUpdate() {\n if (timer) return;\n timer = setTimeout(function() {\n globalThis.__ReactRefresh.performReactRefresh();\n timer = null;\n }, 50);\n}\nexport {\n enqueueUpdate,\n isReactRefreshBoundary\n};\n//# sourceMappingURL=react-refresh-utils.js.map\n"],"mappings":";AAAA,SAAS,uBAAuB,eAAe;CAC7C,IAAI,WAAW,eAAe,sBAAsB,aAAa,GAAG;EAClE,OAAO;CACT;CACA,IAAI,kBAAkB,KAAK,KAAK,kBAAkB,QAAQ,OAAO,kBAAkB,UAAU;EAC3F,OAAO;CACT;CACA,IAAI,aAAa;CACjB,IAAI,0BAA0B;CAC9B,KAAK,IAAI,OAAO,eAAe;EAC7B,aAAa;EACb,IAAI,QAAQ,cAAc;EAC1B,IAAI,cAAc,cAAc;EAChC,IAAI,CAAC,WAAW,eAAe,sBAAsB,WAAW,GAAG;GACjE,0BAA0B;EAC5B;CACF;CACA,OAAO,cAAc;AACvB;AACA,IAAI,QAAQ;AACZ,SAAS,gBAAgB;CACvB,IAAI,OAAO;CACX,QAAQ,WAAW,WAAW;EAC5B,WAAW,eAAe,oBAAoB;EAC9C,QAAQ;CACV,GAAG,EAAE;AACP"}
|
package/dist/serve/node.mjs
CHANGED
|
@@ -2,61 +2,61 @@ import { createServer } from "node:http";
|
|
|
2
2
|
import { networkInterfaces, platform } from "node:os";
|
|
3
3
|
import { getRequestListener } from "@hono/node-server";
|
|
4
4
|
import colors from "picocolors";
|
|
5
|
+
|
|
5
6
|
function getNetworkAddress() {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
for (const addresses of Object.values(networkInterfaces())) {
|
|
8
|
+
for (const addr of addresses || []) {
|
|
9
|
+
if (addr.family === "IPv4" && !addr.internal) {
|
|
10
|
+
return addr.address;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
13
14
|
}
|
|
14
15
|
const isBun = typeof process.versions.bun !== "undefined";
|
|
15
16
|
const canReusePort = !["win32", "darwin"].includes(platform()) && (isBun || (() => {
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
const [major, minor] = process.versions.node.split(".").map(Number);
|
|
18
|
+
return major > 22 || major === 22 && minor >= 12 || major >= 23;
|
|
18
19
|
})());
|
|
19
20
|
async function honoServeNode(app, options) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
59
|
-
});
|
|
21
|
+
const port = options.port ?? 3e3;
|
|
22
|
+
const host = options.host ?? "0.0.0.0";
|
|
23
|
+
const listener = getRequestListener((request, env) => {
|
|
24
|
+
request.headers.delete("x-vxrn-peer-address");
|
|
25
|
+
const address = env.incoming.socket.remoteAddress;
|
|
26
|
+
if (address) request.headers.set("x-vxrn-peer-address", address);
|
|
27
|
+
return app.fetch(request, env);
|
|
28
|
+
});
|
|
29
|
+
const server = createServer(listener);
|
|
30
|
+
server.listen({
|
|
31
|
+
port,
|
|
32
|
+
host,
|
|
33
|
+
...canReusePort && process.env.ONE_CLUSTER_WORKER === "1" ? { reusePort: true } : {}
|
|
34
|
+
});
|
|
35
|
+
const colorUrl = (url) => colors.cyan(url.replace(/:(\d+)\//, (_, port2) => `:${colors.bold(port2)}/`));
|
|
36
|
+
const displayHost = host === "0.0.0.0" ? "localhost" : host;
|
|
37
|
+
const localUrl = `http://${displayHost}:${port}/`;
|
|
38
|
+
console.info();
|
|
39
|
+
console.info(` ${colors.green("➜")} ${colors.bold("Local")}: ${colorUrl(localUrl)}`);
|
|
40
|
+
if (host === "0.0.0.0") {
|
|
41
|
+
const networkHost = getNetworkAddress();
|
|
42
|
+
if (networkHost) {
|
|
43
|
+
const networkUrl = `http://${networkHost}:${port}/`;
|
|
44
|
+
console.info(` ${colors.green("➜")} ${colors.bold("Network")}: ${colorUrl(networkUrl)}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
console.info();
|
|
48
|
+
const shutdown = () => server.close();
|
|
49
|
+
process.once("SIGINT", shutdown);
|
|
50
|
+
process.once("SIGTERM", shutdown);
|
|
51
|
+
await new Promise((res, rej) => {
|
|
52
|
+
server.once("error", rej);
|
|
53
|
+
server.on("close", () => {
|
|
54
|
+
process.off("SIGINT", shutdown);
|
|
55
|
+
process.off("SIGTERM", shutdown);
|
|
56
|
+
res();
|
|
57
|
+
});
|
|
58
|
+
});
|
|
60
59
|
}
|
|
60
|
+
|
|
61
61
|
export { canReusePort, honoServeNode };
|
|
62
62
|
//# sourceMappingURL=node.mjs.map
|
package/dist/serve/node.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"node.js","names":[],"sources":["serve/node.js"],"sourcesContent":["import { createServer } from \"node:http\";\nimport { networkInterfaces, platform } from \"node:os\";\nimport { getRequestListener } from \"@hono/node-server\";\nimport colors from \"picocolors\";\nfunction getNetworkAddress() {\n for (const addresses of Object.values(networkInterfaces())) {\n for (const addr of addresses || []) {\n if (addr.family === \"IPv4\" && !addr.internal) {\n return addr.address;\n }\n }\n }\n}\nconst isBun = typeof process.versions.bun !== \"undefined\";\nconst canReusePort = ![\"win32\", \"darwin\"].includes(platform()) && (isBun || (() => {\n const [major, minor] = process.versions.node.split(\".\").map(Number);\n return major > 22 || major === 22 && minor >= 12 || major >= 23;\n})());\nasync function honoServeNode(app, options) {\n const port = options.port ?? 3e3;\n const host = options.host ?? \"0.0.0.0\";\n const listener = getRequestListener((request, env) => {\n request.headers.delete(\"x-vxrn-peer-address\");\n const address = env.incoming.socket.remoteAddress;\n if (address) request.headers.set(\"x-vxrn-peer-address\", address);\n return app.fetch(request, env);\n });\n const server = createServer(listener);\n server.listen({\n port,\n host,\n ...canReusePort && process.env.ONE_CLUSTER_WORKER === \"1\" ? { reusePort: true } : {}\n });\n const colorUrl = (url) => colors.cyan(url.replace(/:(\\d+)\\//, (_, port2) => `:${colors.bold(port2)}/`));\n const displayHost = host === \"0.0.0.0\" ? \"localhost\" : host;\n const localUrl = `http://${displayHost}:${port}/`;\n console.info();\n console.info(` ${colors.green(\"\\u279C\")} ${colors.bold(\"Local\")}: ${colorUrl(localUrl)}`);\n if (host === \"0.0.0.0\") {\n const networkHost = getNetworkAddress();\n if (networkHost) {\n const networkUrl = `http://${networkHost}:${port}/`;\n console.info(\n ` ${colors.green(\"\\u279C\")} ${colors.bold(\"Network\")}: ${colorUrl(networkUrl)}`\n );\n }\n }\n console.info();\n const shutdown = () => server.close();\n process.once(\"SIGINT\", shutdown);\n process.once(\"SIGTERM\", shutdown);\n await new Promise((res, rej) => {\n server.once(\"error\", rej);\n server.on(\"close\", () => {\n process.off(\"SIGINT\", shutdown);\n process.off(\"SIGTERM\", shutdown);\n res();\n });\n });\n}\nexport {\n canReusePort,\n honoServeNode\n};\n//# sourceMappingURL=node.js.map\n"],"mappings":";;;;;;AAIA,SAAS,oBAAoB;CAC3B,KAAK,MAAM,aAAa,OAAO,OAAO,kBAAkB,CAAC,GAAG;EAC1D,KAAK,MAAM,QAAQ,aAAa,CAAC,GAAG;GAClC,IAAI,KAAK,WAAW,UAAU,CAAC,KAAK,UAAU;IAC5C,OAAO,KAAK;GACd;EACF;CACF;AACF;AACA,MAAM,QAAQ,OAAO,QAAQ,SAAS,QAAQ;AAC9C,MAAM,eAAe,CAAC,CAAC,S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