peachsim 0.1.2593 → 0.1.2595
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-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +2 -2
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-DLENU3SM.mjs → acorn-J5DSQG5R.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-2MWUVSRW.mjs → chunk-3Z2POHJV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GFMQ5PNX.mjs → chunk-5U76J6OF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UZPLSN2V.mjs → chunk-AEI4FOZK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-E6OGMX3T.mjs → chunk-BCLZPP3O.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4YJJKKKF.mjs → chunk-CDGSSOLF.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-IT4CC3HU.mjs → chunk-D4XFTOV2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OIHSBING.mjs → chunk-D6RI7LMX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-P3A4MQHR.mjs → chunk-ESKLJRT5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TXBZEHNH.mjs → chunk-FHFNRCCX.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-ZT5ZXQC2.mjs → chunk-G35VGABO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BMKI4WBL.mjs → chunk-GCOZNVG7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JPNUGMLE.mjs → chunk-JVVPCJEO.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-23D4W2EY.mjs → chunk-LLO2FLAP.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-2UERF2EN.mjs → chunk-MTGZYNXH.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-LK3KQ4X3.mjs → chunk-NCMIX32U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6O2M4J2Y.mjs → chunk-NZEHZIHZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DLSPHUHQ.mjs → chunk-POM7QBEW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XFFPOSW2.mjs → chunk-RYCGXYYL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NIYJBFXV.mjs → chunk-U4X644Y4.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-KWMJUJJS.mjs → chunk-VZY2J2YJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UM4DCXPA.mjs → chunk-YYAPBU4L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LN7ZTBNS.mjs → chunk-ZSJEHQ3R.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-DHGC2DVE.mjs → metro-layout-parser-ZHPHHXG3.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-ROIDLGLU.mjs → swift-package-prebuilt-UXU6DFC3.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-5VU63S56.mjs → swift-sdk-app-module-25XPGJ4P.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-SNFZVUQ3.mjs → swift-sdk-image-7JKGAHEW.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-5RQDIX53.mjs → swift-sdk-image-producer-KG5I2NUP.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +2 -2
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +70 -13
- package/dist-lib/host/fetch-proxy-handler.cjs +61 -11
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +16 -16
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +81 -81
- package/dist-lib/public-origins-lib.json +69 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +70 -13
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/engine/native-scroll-controller.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +1 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/host/fetch-proxy-handler.ts +63 -9
- package/src/one-native-controls-package.ts +8 -1
- package/src/oneNativeControlsContract.ts +1 -0
package/dist-lib/esm-chunks/{metro-layout-parser-DHGC2DVE.mjs → metro-layout-parser-ZHPHHXG3.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-POM7QBEW.mjs";
|
|
3
3
|
|
|
4
4
|
// src/metro-layout-parser.ts
|
|
5
5
|
var whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
|
|
@@ -8,7 +8,7 @@ var lineBreak = /[\r\n\u2028\u2029]/;
|
|
|
8
8
|
var metroLayoutParser;
|
|
9
9
|
async function loadMetroLayoutParser() {
|
|
10
10
|
if (metroLayoutParser) return metroLayoutParser;
|
|
11
|
-
const { Parser } = await import("./acorn-
|
|
11
|
+
const { Parser } = await import("./acorn-J5DSQG5R.mjs");
|
|
12
12
|
metroLayoutParser = Parser.extend(
|
|
13
13
|
(Base) => {
|
|
14
14
|
const parseFunctionBody = Reflect.get(Base.prototype, "parseFunctionBody");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
compileTargets,
|
|
4
4
|
fetchNativeEntry,
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
swiftAvailableModules,
|
|
7
7
|
swiftDistributionAt,
|
|
8
8
|
swiftImportNames
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-LLO2FLAP.mjs";
|
|
10
|
+
import "./chunk-AEI4FOZK.mjs";
|
|
11
11
|
import {
|
|
12
12
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RYCGXYYL.mjs";
|
|
14
14
|
import {
|
|
15
15
|
manifestCalls
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-ESKLJRT5.mjs";
|
|
17
|
+
import "./chunk-3Z2POHJV.mjs";
|
|
18
|
+
import "./chunk-D4XFTOV2.mjs";
|
|
19
|
+
import "./chunk-YYAPBU4L.mjs";
|
|
20
|
+
import "./chunk-GCOZNVG7.mjs";
|
|
21
|
+
import "./chunk-POM7QBEW.mjs";
|
|
22
22
|
|
|
23
23
|
// src/swift-package-prebuilt.ts
|
|
24
24
|
import { createHash } from "node:crypto";
|
package/dist-lib/esm-chunks/{swift-sdk-app-module-5VU63S56.mjs → swift-sdk-app-module-25XPGJ4P.mjs}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
5
|
SWIFT_SDK_MEMORY_BASE,
|
|
6
6
|
SWIFT_SDK_PIECE_FIELDS,
|
|
7
7
|
readSwiftSdkManifest
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-CDGSSOLF.mjs";
|
|
9
|
+
import "./chunk-JVVPCJEO.mjs";
|
|
10
|
+
import "./chunk-D6RI7LMX.mjs";
|
|
11
|
+
import "./chunk-5U76J6OF.mjs";
|
|
12
12
|
import {
|
|
13
13
|
ADDEND_RELOCATIONS,
|
|
14
14
|
KEEP_WASM_NAMES,
|
|
@@ -36,17 +36,17 @@ import {
|
|
|
36
36
|
wasmReader,
|
|
37
37
|
wasmSections,
|
|
38
38
|
writeWasmCustomSection
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-LLO2FLAP.mjs";
|
|
40
40
|
import {
|
|
41
41
|
SWIFT_WASM_TRIPLE
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-AEI4FOZK.mjs";
|
|
43
|
+
import "./chunk-RYCGXYYL.mjs";
|
|
44
|
+
import "./chunk-ESKLJRT5.mjs";
|
|
45
|
+
import "./chunk-3Z2POHJV.mjs";
|
|
46
|
+
import "./chunk-D4XFTOV2.mjs";
|
|
47
|
+
import "./chunk-YYAPBU4L.mjs";
|
|
48
|
+
import "./chunk-GCOZNVG7.mjs";
|
|
49
|
+
import "./chunk-POM7QBEW.mjs";
|
|
50
50
|
|
|
51
51
|
// src/swift-sdk-app-module.ts
|
|
52
52
|
import { execFile } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
swiftSdkImageFile,
|
|
16
16
|
swiftSdkImageKey,
|
|
17
17
|
swiftSdkImageProducts
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-CDGSSOLF.mjs";
|
|
19
|
+
import "./chunk-JVVPCJEO.mjs";
|
|
20
|
+
import "./chunk-D6RI7LMX.mjs";
|
|
21
|
+
import "./chunk-5U76J6OF.mjs";
|
|
22
|
+
import "./chunk-LLO2FLAP.mjs";
|
|
23
|
+
import "./chunk-AEI4FOZK.mjs";
|
|
24
|
+
import "./chunk-RYCGXYYL.mjs";
|
|
25
|
+
import "./chunk-ESKLJRT5.mjs";
|
|
26
|
+
import "./chunk-3Z2POHJV.mjs";
|
|
27
|
+
import "./chunk-D4XFTOV2.mjs";
|
|
28
|
+
import "./chunk-YYAPBU4L.mjs";
|
|
29
|
+
import "./chunk-GCOZNVG7.mjs";
|
|
30
|
+
import "./chunk-POM7QBEW.mjs";
|
|
31
31
|
export {
|
|
32
32
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
33
33
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
swiftCacheDir,
|
|
4
4
|
windowAdmission,
|
|
5
5
|
withSwiftRootLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AEI4FOZK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-GCOZNVG7.mjs";
|
|
10
|
+
import "./chunk-POM7QBEW.mjs";
|
|
11
11
|
|
|
12
12
|
// src/swift-sdk-image-producer.ts
|
|
13
13
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -26255,7 +26255,7 @@ var init_swift_standin_digest = __esm({
|
|
|
26255
26255
|
|
|
26256
26256
|
// src/expo-native-compiler-digest.ts
|
|
26257
26257
|
function expoNativeCompilerDigestValue() {
|
|
26258
|
-
return true ? "
|
|
26258
|
+
return true ? "8d9cc2b3945c4c67d77156d4c44a7d06d014ce6884cbc3351e77b81e4d4318aa" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
26259
26259
|
}
|
|
26260
26260
|
var import_node_crypto17;
|
|
26261
26261
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-RYCGXYYL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-FHFNRCCX.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-3Z2POHJV.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-VZY2J2YJ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-GCOZNVG7.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-POM7QBEW.mjs";
|
|
17
17
|
|
|
18
18
|
// src/expoSwiftContract.ts
|
|
19
19
|
function strings(value) {
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -5718,7 +5718,7 @@ var init_swift_standin_digest = __esm({
|
|
|
5718
5718
|
|
|
5719
5719
|
// src/expo-native-compiler-digest.ts
|
|
5720
5720
|
function expoNativeCompilerDigestValue() {
|
|
5721
|
-
return true ? "
|
|
5721
|
+
return true ? "8d9cc2b3945c4c67d77156d4c44a7d06d014ce6884cbc3351e77b81e4d4318aa" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
5722
5722
|
}
|
|
5723
5723
|
var import_node_crypto11;
|
|
5724
5724
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -114577,6 +114577,11 @@ var init_rolldown_bundle_forward = __esm({
|
|
|
114577
114577
|
});
|
|
114578
114578
|
|
|
114579
114579
|
// src/host/fetch-proxy-handler.ts
|
|
114580
|
+
function isClientResponseClosed(req, res) {
|
|
114581
|
+
if (res.destroyed || res.writableEnded || res.writableFinished) return true;
|
|
114582
|
+
if (req instanceof import_node_http22.Http2ServerRequest) return req.stream.destroyed || req.stream.closed;
|
|
114583
|
+
return req.aborted || Boolean(req.socket?.destroyed);
|
|
114584
|
+
}
|
|
114580
114585
|
function fetchProxyAgentFor(targetUrl) {
|
|
114581
114586
|
return targetUrl.protocol === "https:" ? fetchProxyHttpsAgent : fetchProxyHttpAgent;
|
|
114582
114587
|
}
|
|
@@ -114788,10 +114793,22 @@ function serveBrowserProxyRoute(req, res) {
|
|
|
114788
114793
|
return false;
|
|
114789
114794
|
}
|
|
114790
114795
|
async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
114796
|
+
let clientClosed = isClientResponseClosed(req, res);
|
|
114797
|
+
let activeUpstream;
|
|
114798
|
+
const hasClientClosed = () => clientClosed || isClientResponseClosed(req, res);
|
|
114799
|
+
if (clientClosed) return;
|
|
114800
|
+
const markClosed = () => {
|
|
114801
|
+
if (res.writableFinished) return;
|
|
114802
|
+
clientClosed = true;
|
|
114803
|
+
if (activeUpstream && !activeUpstream.destroyed) activeUpstream.destroy();
|
|
114804
|
+
};
|
|
114805
|
+
req.once("aborted", markClosed);
|
|
114806
|
+
res.once("close", markClosed);
|
|
114791
114807
|
const originalMethod = req.method || "GET";
|
|
114792
114808
|
const minimumHeader = req.headers[FETCH_PROXY_TLS_MINIMUM_HEADER];
|
|
114793
114809
|
const minimumVersion = typeof minimumHeader === "string" ? tlsMinimumVersions.get(minimumHeader) : void 0;
|
|
114794
114810
|
const proxy = async (targetUrl, method, nextBody, redirects, setCookies) => {
|
|
114811
|
+
if (hasClientClosed()) return;
|
|
114795
114812
|
const transport = targetUrl.protocol === "https:" ? import_https2.default : import_http3.default;
|
|
114796
114813
|
const targetHeaders = route.requestHeaders(targetUrl);
|
|
114797
114814
|
if (targetUrl.origin !== upstreamUrl.origin) {
|
|
@@ -114813,16 +114830,16 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
114813
114830
|
body: nextBody
|
|
114814
114831
|
});
|
|
114815
114832
|
if (!allowed) throw new NetworkPolicyDeniedError(`${method} ${targetUrl.origin}`);
|
|
114833
|
+
if (hasClientClosed()) return;
|
|
114816
114834
|
const port = projectLoopbackPort(
|
|
114817
114835
|
targetUrl.hostname,
|
|
114818
114836
|
Number(targetUrl.port || (targetUrl.protocol === "https:" ? 443 : 80))
|
|
114819
114837
|
);
|
|
114820
|
-
let clientAborted = false;
|
|
114821
|
-
const markAborted = () => {
|
|
114822
|
-
clientAborted = true;
|
|
114823
|
-
};
|
|
114824
|
-
req.once("aborted", markAborted);
|
|
114825
114838
|
const send3 = () => new Promise((resolve11, reject) => {
|
|
114839
|
+
if (hasClientClosed()) {
|
|
114840
|
+
reject(new Error("client closed before upstream request"));
|
|
114841
|
+
return;
|
|
114842
|
+
}
|
|
114826
114843
|
let responded = false;
|
|
114827
114844
|
const proxyReq = transport.request(
|
|
114828
114845
|
{
|
|
@@ -114852,22 +114869,33 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
114852
114869
|
resolve11(upstream);
|
|
114853
114870
|
}
|
|
114854
114871
|
);
|
|
114855
|
-
const abort = () =>
|
|
114872
|
+
const abort = () => {
|
|
114873
|
+
if (!res.writableFinished) proxyReq.destroy();
|
|
114874
|
+
};
|
|
114856
114875
|
req.once("aborted", abort);
|
|
114857
|
-
|
|
114876
|
+
res.once("close", abort);
|
|
114877
|
+
proxyReq.once("close", () => {
|
|
114878
|
+
req.off("aborted", abort);
|
|
114879
|
+
res.off("close", abort);
|
|
114880
|
+
});
|
|
114858
114881
|
let failed = false;
|
|
114859
114882
|
proxyReq.on("error", (err) => {
|
|
114860
114883
|
if (failed) return;
|
|
114861
114884
|
failed = true;
|
|
114862
|
-
if (proxyReq.reusedSocket && !responded && !
|
|
114885
|
+
if (proxyReq.reusedSocket && !responded && !hasClientClosed() && err.code === "ECONNRESET")
|
|
114863
114886
|
resolve11(send3());
|
|
114864
114887
|
else reject(err);
|
|
114865
114888
|
});
|
|
114866
114889
|
if (nextBody === void 0) proxyReq.end();
|
|
114867
114890
|
else proxyReq.end(nextBody);
|
|
114868
114891
|
});
|
|
114869
|
-
const proxyRes = await send3()
|
|
114892
|
+
const proxyRes = await send3();
|
|
114893
|
+
activeUpstream = proxyRes;
|
|
114870
114894
|
upstreamAnswered = true;
|
|
114895
|
+
if (hasClientClosed()) {
|
|
114896
|
+
proxyRes.destroy();
|
|
114897
|
+
return;
|
|
114898
|
+
}
|
|
114871
114899
|
const status = proxyRes.statusCode ?? 502;
|
|
114872
114900
|
const location = proxyRes.headers.location;
|
|
114873
114901
|
const hopCookies = [...setCookies, ...proxyRes.headers["set-cookie"] ?? []];
|
|
@@ -114883,6 +114911,10 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
114883
114911
|
if (minimumVersion && targetUrl.protocol === "https:")
|
|
114884
114912
|
res.setHeader(FETCH_PROXY_TLS_ENFORCED_HEADER, minimumHeader);
|
|
114885
114913
|
await route.respond(proxyRes, hopCookies);
|
|
114914
|
+
if (hasClientClosed()) {
|
|
114915
|
+
proxyRes.destroy();
|
|
114916
|
+
return;
|
|
114917
|
+
}
|
|
114886
114918
|
if (isNativeCookieRedirect(hop)) res.removeHeader("location");
|
|
114887
114919
|
res.statusCode = isNativeCookieRedirect(hop) ? 200 : status;
|
|
114888
114920
|
await (0, import_promises17.pipeline)(proxyRes, res);
|
|
@@ -114897,6 +114929,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
114897
114929
|
const redirectUrl = resolveRedirectUrl(location, targetUrl);
|
|
114898
114930
|
proxyRes.resume();
|
|
114899
114931
|
await (0, import_promises17.finished)(proxyRes);
|
|
114932
|
+
if (hasClientClosed()) return;
|
|
114900
114933
|
await proxy(
|
|
114901
114934
|
redirectUrl,
|
|
114902
114935
|
switchToGet ? "GET" : method,
|
|
@@ -114908,9 +114941,17 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
114908
114941
|
}
|
|
114909
114942
|
if (redirects > 0) res.setHeader(FETCH_PROXY_RESPONSE_URL_HEADER, targetUrl.href);
|
|
114910
114943
|
await route.respond(proxyRes, hopCookies);
|
|
114944
|
+
if (hasClientClosed()) {
|
|
114945
|
+
proxyRes.destroy();
|
|
114946
|
+
return;
|
|
114947
|
+
}
|
|
114911
114948
|
res.statusCode = status;
|
|
114912
114949
|
if (isBundleProxyRequestUrl(req.url) && method === "GET" && status === 200 && targetUrl.pathname.endsWith(".bundle")) {
|
|
114913
114950
|
const { forwardRolldownBundleResponse: forwardRolldownBundleResponse2 } = await Promise.resolve().then(() => (init_rolldown_bundle_forward(), rolldown_bundle_forward_exports));
|
|
114951
|
+
if (hasClientClosed()) {
|
|
114952
|
+
proxyRes.destroy();
|
|
114953
|
+
return;
|
|
114954
|
+
}
|
|
114914
114955
|
await forwardRolldownBundleResponse2(proxyRes, res);
|
|
114915
114956
|
return;
|
|
114916
114957
|
}
|
|
@@ -114932,12 +114973,17 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
114932
114973
|
}
|
|
114933
114974
|
await proxy(upstreamUrl, originalMethod, body, 0, []);
|
|
114934
114975
|
} catch (err) {
|
|
114976
|
+
if (hasClientClosed()) {
|
|
114977
|
+
if (activeUpstream && !activeUpstream.destroyed) activeUpstream.destroy();
|
|
114978
|
+
return;
|
|
114979
|
+
}
|
|
114935
114980
|
const norm = normalizeHostname(upstreamUrl.hostname);
|
|
114936
114981
|
if (upstreamAnswered && !res.headersSent)
|
|
114937
114982
|
console.error(`[peach] fetch proxy could not forward ${upstreamUrl.href}:`, err);
|
|
114938
114983
|
if (!res.headersSent && isLoopbackHost(norm) && err?.code === "ECONNREFUSED") {
|
|
114939
114984
|
const altHosts = norm === "::1" ? ["127.0.0.1"] : norm === "127.0.0.1" ? ["[::1]"] : ["[::1]", "127.0.0.1"];
|
|
114940
114985
|
for (const altHost of altHosts) {
|
|
114986
|
+
if (hasClientClosed()) return;
|
|
114941
114987
|
try {
|
|
114942
114988
|
const altUrl = new URL(upstreamUrl.href);
|
|
114943
114989
|
altUrl.hostname = altHost;
|
|
@@ -114947,6 +114993,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
114947
114993
|
}
|
|
114948
114994
|
}
|
|
114949
114995
|
}
|
|
114996
|
+
if (hasClientClosed()) return;
|
|
114950
114997
|
if (!res.headersSent && reportFailure) {
|
|
114951
114998
|
const code = err?.code;
|
|
114952
114999
|
res.statusCode = 502;
|
|
@@ -114967,6 +115014,9 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
114967
115014
|
if (req instanceof import_node_http22.Http2ServerRequest)
|
|
114968
115015
|
req.stream.destroy(new Error("fetch proxy upstream failed", { cause: err }));
|
|
114969
115016
|
else req.socket.destroy();
|
|
115017
|
+
} finally {
|
|
115018
|
+
req.off("aborted", markClosed);
|
|
115019
|
+
res.off("close", markClosed);
|
|
114970
115020
|
}
|
|
114971
115021
|
}
|
|
114972
115022
|
var import_http3, import_https2, import_node_http22, import_promises17, fetchProxyHttpAgent, fetchProxyHttpsAgent, tlsMinimumVersions, tlsMinimumAgents, FETCH_PROXY_CORS_HEADERS, APP_API_HEADER_REWRITES;
|
|
@@ -115850,7 +115900,7 @@ public func peachOneSDK(_ pointer: UnsafePointer<UInt8>, _ length: Int32) -> Uns
|
|
|
115850
115900
|
});
|
|
115851
115901
|
|
|
115852
115902
|
// ../peach-globals/src/oneNativeControlsContract.ts
|
|
115853
|
-
var ONE_NATIVE_CONTROLS_PACKAGE, ONE_NATIVE_CONTROLS_CONTRACT, ONE_NATIVE_CONTROLS_NAVIGATION_STACK_VIEW, ONE_NATIVE_CONTROLS_NAVIGATION_SPLIT_VIEW;
|
|
115903
|
+
var ONE_NATIVE_CONTROLS_PACKAGE, ONE_NATIVE_CONTROLS_CONTRACT, ONE_NATIVE_CONTROLS_NAVIGATION_STACK_VIEW, ONE_NATIVE_CONTROLS_NAVIGATION_SPLIT_VIEW, ONE_NATIVE_CONTROLS_VISUAL_VIEWS;
|
|
115854
115904
|
var init_oneNativeControlsContract = __esm({
|
|
115855
115905
|
"../peach-globals/src/oneNativeControlsContract.ts"() {
|
|
115856
115906
|
"use strict";
|
|
@@ -115858,6 +115908,7 @@ var init_oneNativeControlsContract = __esm({
|
|
|
115858
115908
|
ONE_NATIVE_CONTROLS_CONTRACT = "one-native-controls-v1";
|
|
115859
115909
|
ONE_NATIVE_CONTROLS_NAVIGATION_STACK_VIEW = "OneNativeNavigationStack";
|
|
115860
115910
|
ONE_NATIVE_CONTROLS_NAVIGATION_SPLIT_VIEW = "OneNativeNavigationSplitView";
|
|
115911
|
+
ONE_NATIVE_CONTROLS_VISUAL_VIEWS = ["OneNativeCircle"];
|
|
115861
115912
|
}
|
|
115862
115913
|
});
|
|
115863
115914
|
|
|
@@ -115916,7 +115967,13 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2) {
|
|
|
115916
115967
|
const iosDir = resolveOneNativeAppleIosDir(appRoot);
|
|
115917
115968
|
const generated = swiftGuestControls(
|
|
115918
115969
|
import_node_path154.default.dirname(iosDir),
|
|
115919
|
-
[
|
|
115970
|
+
[
|
|
115971
|
+
"OneNativeButton",
|
|
115972
|
+
"OneNativeLabel",
|
|
115973
|
+
"OneNativeText",
|
|
115974
|
+
"OneNativeImage",
|
|
115975
|
+
...ONE_NATIVE_CONTROLS_VISUAL_VIEWS
|
|
115976
|
+
],
|
|
115920
115977
|
linkedGroups
|
|
115921
115978
|
);
|
|
115922
115979
|
const sources = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -995,7 +995,7 @@ var init_swift_standin_digest = __esm({
|
|
|
995
995
|
|
|
996
996
|
// src/expo-native-compiler-digest.ts
|
|
997
997
|
function expoNativeCompilerDigestValue() {
|
|
998
|
-
return true ? "
|
|
998
|
+
return true ? "8d9cc2b3945c4c67d77156d4c44a7d06d014ce6884cbc3351e77b81e4d4318aa" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
999
999
|
}
|
|
1000
1000
|
var import_node_crypto6;
|
|
1001
1001
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -23869,6 +23869,11 @@ __export(fetch_proxy_handler_exports, {
|
|
|
23869
23869
|
serveBrowserProxyRoute: () => serveBrowserProxyRoute
|
|
23870
23870
|
});
|
|
23871
23871
|
module.exports = __toCommonJS(fetch_proxy_handler_exports);
|
|
23872
|
+
function isClientResponseClosed(req, res) {
|
|
23873
|
+
if (res.destroyed || res.writableEnded || res.writableFinished) return true;
|
|
23874
|
+
if (req instanceof import_node_http22.Http2ServerRequest) return req.stream.destroyed || req.stream.closed;
|
|
23875
|
+
return req.aborted || Boolean(req.socket?.destroyed);
|
|
23876
|
+
}
|
|
23872
23877
|
function fetchProxyAgentFor(targetUrl) {
|
|
23873
23878
|
return targetUrl.protocol === "https:" ? fetchProxyHttpsAgent : fetchProxyHttpAgent;
|
|
23874
23879
|
}
|
|
@@ -24080,10 +24085,22 @@ function serveBrowserProxyRoute(req, res) {
|
|
|
24080
24085
|
return false;
|
|
24081
24086
|
}
|
|
24082
24087
|
async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
24088
|
+
let clientClosed = isClientResponseClosed(req, res);
|
|
24089
|
+
let activeUpstream;
|
|
24090
|
+
const hasClientClosed = () => clientClosed || isClientResponseClosed(req, res);
|
|
24091
|
+
if (clientClosed) return;
|
|
24092
|
+
const markClosed = () => {
|
|
24093
|
+
if (res.writableFinished) return;
|
|
24094
|
+
clientClosed = true;
|
|
24095
|
+
if (activeUpstream && !activeUpstream.destroyed) activeUpstream.destroy();
|
|
24096
|
+
};
|
|
24097
|
+
req.once("aborted", markClosed);
|
|
24098
|
+
res.once("close", markClosed);
|
|
24083
24099
|
const originalMethod = req.method || "GET";
|
|
24084
24100
|
const minimumHeader = req.headers[FETCH_PROXY_TLS_MINIMUM_HEADER];
|
|
24085
24101
|
const minimumVersion = typeof minimumHeader === "string" ? tlsMinimumVersions.get(minimumHeader) : void 0;
|
|
24086
24102
|
const proxy = async (targetUrl, method, nextBody, redirects, setCookies) => {
|
|
24103
|
+
if (hasClientClosed()) return;
|
|
24087
24104
|
const transport = targetUrl.protocol === "https:" ? import_https.default : import_http2.default;
|
|
24088
24105
|
const targetHeaders = route.requestHeaders(targetUrl);
|
|
24089
24106
|
if (targetUrl.origin !== upstreamUrl.origin) {
|
|
@@ -24105,16 +24122,16 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24105
24122
|
body: nextBody
|
|
24106
24123
|
});
|
|
24107
24124
|
if (!allowed) throw new NetworkPolicyDeniedError(`${method} ${targetUrl.origin}`);
|
|
24125
|
+
if (hasClientClosed()) return;
|
|
24108
24126
|
const port = projectLoopbackPort(
|
|
24109
24127
|
targetUrl.hostname,
|
|
24110
24128
|
Number(targetUrl.port || (targetUrl.protocol === "https:" ? 443 : 80))
|
|
24111
24129
|
);
|
|
24112
|
-
let clientAborted = false;
|
|
24113
|
-
const markAborted = () => {
|
|
24114
|
-
clientAborted = true;
|
|
24115
|
-
};
|
|
24116
|
-
req.once("aborted", markAborted);
|
|
24117
24130
|
const send = () => new Promise((resolve3, reject) => {
|
|
24131
|
+
if (hasClientClosed()) {
|
|
24132
|
+
reject(new Error("client closed before upstream request"));
|
|
24133
|
+
return;
|
|
24134
|
+
}
|
|
24118
24135
|
let responded = false;
|
|
24119
24136
|
const proxyReq = transport.request(
|
|
24120
24137
|
{
|
|
@@ -24144,22 +24161,33 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24144
24161
|
resolve3(upstream);
|
|
24145
24162
|
}
|
|
24146
24163
|
);
|
|
24147
|
-
const abort = () =>
|
|
24164
|
+
const abort = () => {
|
|
24165
|
+
if (!res.writableFinished) proxyReq.destroy();
|
|
24166
|
+
};
|
|
24148
24167
|
req.once("aborted", abort);
|
|
24149
|
-
|
|
24168
|
+
res.once("close", abort);
|
|
24169
|
+
proxyReq.once("close", () => {
|
|
24170
|
+
req.off("aborted", abort);
|
|
24171
|
+
res.off("close", abort);
|
|
24172
|
+
});
|
|
24150
24173
|
let failed = false;
|
|
24151
24174
|
proxyReq.on("error", (err) => {
|
|
24152
24175
|
if (failed) return;
|
|
24153
24176
|
failed = true;
|
|
24154
|
-
if (proxyReq.reusedSocket && !responded && !
|
|
24177
|
+
if (proxyReq.reusedSocket && !responded && !hasClientClosed() && err.code === "ECONNRESET")
|
|
24155
24178
|
resolve3(send());
|
|
24156
24179
|
else reject(err);
|
|
24157
24180
|
});
|
|
24158
24181
|
if (nextBody === void 0) proxyReq.end();
|
|
24159
24182
|
else proxyReq.end(nextBody);
|
|
24160
24183
|
});
|
|
24161
|
-
const proxyRes = await send()
|
|
24184
|
+
const proxyRes = await send();
|
|
24185
|
+
activeUpstream = proxyRes;
|
|
24162
24186
|
upstreamAnswered = true;
|
|
24187
|
+
if (hasClientClosed()) {
|
|
24188
|
+
proxyRes.destroy();
|
|
24189
|
+
return;
|
|
24190
|
+
}
|
|
24163
24191
|
const status = proxyRes.statusCode ?? 502;
|
|
24164
24192
|
const location = proxyRes.headers.location;
|
|
24165
24193
|
const hopCookies = [...setCookies, ...proxyRes.headers["set-cookie"] ?? []];
|
|
@@ -24175,6 +24203,10 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24175
24203
|
if (minimumVersion && targetUrl.protocol === "https:")
|
|
24176
24204
|
res.setHeader(FETCH_PROXY_TLS_ENFORCED_HEADER, minimumHeader);
|
|
24177
24205
|
await route.respond(proxyRes, hopCookies);
|
|
24206
|
+
if (hasClientClosed()) {
|
|
24207
|
+
proxyRes.destroy();
|
|
24208
|
+
return;
|
|
24209
|
+
}
|
|
24178
24210
|
if (isNativeCookieRedirect(hop)) res.removeHeader("location");
|
|
24179
24211
|
res.statusCode = isNativeCookieRedirect(hop) ? 200 : status;
|
|
24180
24212
|
await (0, import_promises16.pipeline)(proxyRes, res);
|
|
@@ -24189,6 +24221,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24189
24221
|
const redirectUrl = resolveRedirectUrl(location, targetUrl);
|
|
24190
24222
|
proxyRes.resume();
|
|
24191
24223
|
await (0, import_promises16.finished)(proxyRes);
|
|
24224
|
+
if (hasClientClosed()) return;
|
|
24192
24225
|
await proxy(
|
|
24193
24226
|
redirectUrl,
|
|
24194
24227
|
switchToGet ? "GET" : method,
|
|
@@ -24200,9 +24233,17 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24200
24233
|
}
|
|
24201
24234
|
if (redirects > 0) res.setHeader(FETCH_PROXY_RESPONSE_URL_HEADER, targetUrl.href);
|
|
24202
24235
|
await route.respond(proxyRes, hopCookies);
|
|
24236
|
+
if (hasClientClosed()) {
|
|
24237
|
+
proxyRes.destroy();
|
|
24238
|
+
return;
|
|
24239
|
+
}
|
|
24203
24240
|
res.statusCode = status;
|
|
24204
24241
|
if (isBundleProxyRequestUrl(req.url) && method === "GET" && status === 200 && targetUrl.pathname.endsWith(".bundle")) {
|
|
24205
24242
|
const { forwardRolldownBundleResponse: forwardRolldownBundleResponse2 } = await Promise.resolve().then(() => (init_rolldown_bundle_forward(), rolldown_bundle_forward_exports));
|
|
24243
|
+
if (hasClientClosed()) {
|
|
24244
|
+
proxyRes.destroy();
|
|
24245
|
+
return;
|
|
24246
|
+
}
|
|
24206
24247
|
await forwardRolldownBundleResponse2(proxyRes, res);
|
|
24207
24248
|
return;
|
|
24208
24249
|
}
|
|
@@ -24224,12 +24265,17 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24224
24265
|
}
|
|
24225
24266
|
await proxy(upstreamUrl, originalMethod, body, 0, []);
|
|
24226
24267
|
} catch (err) {
|
|
24268
|
+
if (hasClientClosed()) {
|
|
24269
|
+
if (activeUpstream && !activeUpstream.destroyed) activeUpstream.destroy();
|
|
24270
|
+
return;
|
|
24271
|
+
}
|
|
24227
24272
|
const norm = normalizeHostname(upstreamUrl.hostname);
|
|
24228
24273
|
if (upstreamAnswered && !res.headersSent)
|
|
24229
24274
|
console.error(`[peach] fetch proxy could not forward ${upstreamUrl.href}:`, err);
|
|
24230
24275
|
if (!res.headersSent && isLoopbackHost(norm) && err?.code === "ECONNREFUSED") {
|
|
24231
24276
|
const altHosts = norm === "::1" ? ["127.0.0.1"] : norm === "127.0.0.1" ? ["[::1]"] : ["[::1]", "127.0.0.1"];
|
|
24232
24277
|
for (const altHost of altHosts) {
|
|
24278
|
+
if (hasClientClosed()) return;
|
|
24233
24279
|
try {
|
|
24234
24280
|
const altUrl = new URL(upstreamUrl.href);
|
|
24235
24281
|
altUrl.hostname = altHost;
|
|
@@ -24239,6 +24285,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24239
24285
|
}
|
|
24240
24286
|
}
|
|
24241
24287
|
}
|
|
24288
|
+
if (hasClientClosed()) return;
|
|
24242
24289
|
if (!res.headersSent && reportFailure) {
|
|
24243
24290
|
const code = err?.code;
|
|
24244
24291
|
res.statusCode = 502;
|
|
@@ -24259,6 +24306,9 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24259
24306
|
if (req instanceof import_node_http22.Http2ServerRequest)
|
|
24260
24307
|
req.stream.destroy(new Error("fetch proxy upstream failed", { cause: err }));
|
|
24261
24308
|
else req.socket.destroy();
|
|
24309
|
+
} finally {
|
|
24310
|
+
req.off("aborted", markClosed);
|
|
24311
|
+
res.off("close", markClosed);
|
|
24262
24312
|
}
|
|
24263
24313
|
}
|
|
24264
24314
|
var import_http2, import_https, import_node_http22, import_promises16, fetchProxyHttpAgent, fetchProxyHttpsAgent, tlsMinimumVersions, tlsMinimumAgents, FETCH_PROXY_CORS_HEADERS, APP_API_HEADER_REWRITES;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "../esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "../esm-chunks/chunk-POM7QBEW.mjs";
|
|
3
3
|
|
|
4
4
|
// src/host/fetch-proxy-overrides.ts
|
|
5
5
|
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2595 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|