peachsim 0.1.684 → 0.1.686
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/detox/gestures.ts +19 -7
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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 +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +18 -6
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +12 -4
- package/dist-lib/host/fetch-proxy-handler.cjs +12 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +6 -5
- package/dist-lib/host/fetch-proxy-overrides.mjs +5 -4
- 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/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.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 +1 -1
- package/dist-lib/skills.cjs +13 -5
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/host/fetch-proxy-handler.ts +10 -1
- package/src/host/fetch-proxy-overrides.ts +17 -13
package/detox/gestures.ts
CHANGED
|
@@ -335,28 +335,40 @@ export async function dragScrollNode(
|
|
|
335
335
|
)
|
|
336
336
|
const startSootSimX = node.absolutePosition.x + node.layout.width * normalizedStartX
|
|
337
337
|
const startSootSimY = node.absolutePosition.y + node.layout.height * normalizedStartY
|
|
338
|
+
let recognitionSootSimX = startSootSimX
|
|
339
|
+
let recognitionSootSimY = startSootSimY
|
|
338
340
|
let endSootSimX = startSootSimX
|
|
339
341
|
let endSootSimY = startSootSimY
|
|
340
|
-
//
|
|
341
|
-
//
|
|
342
|
-
const
|
|
342
|
+
// commit recognition separately: ios consumes the entire first move. cross
|
|
343
|
+
// the threshold clearly so browser coordinate rounding cannot defer it.
|
|
344
|
+
const slop = 2 * scrollTouchSlop(DETOX_PLATFORM, 1)
|
|
345
|
+
const travel = pixels + slop
|
|
343
346
|
|
|
344
347
|
switch (direction) {
|
|
345
348
|
case 'down':
|
|
349
|
+
recognitionSootSimY -= slop
|
|
346
350
|
endSootSimY -= travel
|
|
347
351
|
break
|
|
348
352
|
case 'up':
|
|
353
|
+
recognitionSootSimY += slop
|
|
349
354
|
endSootSimY += travel
|
|
350
355
|
break
|
|
351
356
|
case 'left':
|
|
357
|
+
recognitionSootSimX += slop
|
|
352
358
|
endSootSimX += travel
|
|
353
359
|
break
|
|
354
360
|
case 'right':
|
|
361
|
+
recognitionSootSimX -= slop
|
|
355
362
|
endSootSimX -= travel
|
|
356
363
|
break
|
|
357
364
|
}
|
|
358
365
|
|
|
359
366
|
const startPage = await sootsimToPage(page, startSootSimX, startSootSimY)
|
|
367
|
+
const recognitionPage = await sootsimToPage(
|
|
368
|
+
page,
|
|
369
|
+
recognitionSootSimX,
|
|
370
|
+
recognitionSootSimY,
|
|
371
|
+
)
|
|
360
372
|
const endPage = await sootsimToPage(page, endSootSimX, endSootSimY)
|
|
361
373
|
const steps = Math.max(16, Math.ceil(travel / 8))
|
|
362
374
|
|
|
@@ -364,10 +376,10 @@ export async function dragScrollNode(
|
|
|
364
376
|
await page.mouse.down()
|
|
365
377
|
await page.waitForTimeout(20)
|
|
366
378
|
|
|
367
|
-
const dx = (endPage.x -
|
|
368
|
-
const dy = (endPage.y -
|
|
369
|
-
for (let i =
|
|
370
|
-
await page.mouse.move(
|
|
379
|
+
const dx = (endPage.x - recognitionPage.x) / (steps - 1)
|
|
380
|
+
const dy = (endPage.y - recognitionPage.y) / (steps - 1)
|
|
381
|
+
for (let i = 0; i < steps; i++) {
|
|
382
|
+
await page.mouse.move(recognitionPage.x + dx * i, recognitionPage.y + dy * i)
|
|
371
383
|
await page.waitForTimeout(24)
|
|
372
384
|
}
|
|
373
385
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1280,33 +1280,45 @@ async function dragScrollNode(page, node, pixels, direction, startPositionX, sta
|
|
|
1280
1280
|
);
|
|
1281
1281
|
const startSootSimX = node.absolutePosition.x + node.layout.width * normalizedStartX;
|
|
1282
1282
|
const startSootSimY = node.absolutePosition.y + node.layout.height * normalizedStartY;
|
|
1283
|
+
let recognitionSootSimX = startSootSimX;
|
|
1284
|
+
let recognitionSootSimY = startSootSimY;
|
|
1283
1285
|
let endSootSimX = startSootSimX;
|
|
1284
1286
|
let endSootSimY = startSootSimY;
|
|
1285
|
-
const
|
|
1287
|
+
const slop = 2 * scrollTouchSlop(DETOX_PLATFORM, 1);
|
|
1288
|
+
const travel = pixels + slop;
|
|
1286
1289
|
switch (direction) {
|
|
1287
1290
|
case "down":
|
|
1291
|
+
recognitionSootSimY -= slop;
|
|
1288
1292
|
endSootSimY -= travel;
|
|
1289
1293
|
break;
|
|
1290
1294
|
case "up":
|
|
1295
|
+
recognitionSootSimY += slop;
|
|
1291
1296
|
endSootSimY += travel;
|
|
1292
1297
|
break;
|
|
1293
1298
|
case "left":
|
|
1299
|
+
recognitionSootSimX += slop;
|
|
1294
1300
|
endSootSimX += travel;
|
|
1295
1301
|
break;
|
|
1296
1302
|
case "right":
|
|
1303
|
+
recognitionSootSimX -= slop;
|
|
1297
1304
|
endSootSimX -= travel;
|
|
1298
1305
|
break;
|
|
1299
1306
|
}
|
|
1300
1307
|
const startPage = await sootsimToPage(page, startSootSimX, startSootSimY);
|
|
1308
|
+
const recognitionPage = await sootsimToPage(
|
|
1309
|
+
page,
|
|
1310
|
+
recognitionSootSimX,
|
|
1311
|
+
recognitionSootSimY
|
|
1312
|
+
);
|
|
1301
1313
|
const endPage = await sootsimToPage(page, endSootSimX, endSootSimY);
|
|
1302
1314
|
const steps = Math.max(16, Math.ceil(travel / 8));
|
|
1303
1315
|
await page.mouse.move(startPage.x, startPage.y);
|
|
1304
1316
|
await page.mouse.down();
|
|
1305
1317
|
await page.waitForTimeout(20);
|
|
1306
|
-
const dx = (endPage.x -
|
|
1307
|
-
const dy = (endPage.y -
|
|
1308
|
-
for (let i =
|
|
1309
|
-
await page.mouse.move(
|
|
1318
|
+
const dx = (endPage.x - recognitionPage.x) / (steps - 1);
|
|
1319
|
+
const dy = (endPage.y - recognitionPage.y) / (steps - 1);
|
|
1320
|
+
for (let i = 0; i < steps; i++) {
|
|
1321
|
+
await page.mouse.move(recognitionPage.x + dx * i, recognitionPage.y + dy * i);
|
|
1310
1322
|
await page.waitForTimeout(24);
|
|
1311
1323
|
}
|
|
1312
1324
|
await page.waitForTimeout(300);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -10097,6 +10097,7 @@ var import_promises4 = require("stream/promises");
|
|
|
10097
10097
|
init_backend_origin();
|
|
10098
10098
|
|
|
10099
10099
|
// src/host/fetch-proxy-overrides.ts
|
|
10100
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
10100
10101
|
var HOST_HEADER_OVERRIDES = [
|
|
10101
10102
|
{
|
|
10102
10103
|
hostSuffix: "uniswap.org",
|
|
@@ -10141,10 +10142,11 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
10141
10142
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
10142
10143
|
return replacement ? new URL(replacement) : requested;
|
|
10143
10144
|
}
|
|
10144
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
10145
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
10145
10146
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
10146
10147
|
return {
|
|
10147
10148
|
"accept-encoding": "identity",
|
|
10149
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
10148
10150
|
...hostOverrides?.headers
|
|
10149
10151
|
};
|
|
10150
10152
|
}
|
|
@@ -10172,7 +10174,8 @@ var STRIP_FETCH_PROXY_HEADERS = /* @__PURE__ */ new Set([
|
|
|
10172
10174
|
"sec-fetch-dest",
|
|
10173
10175
|
"sec-ch-ua",
|
|
10174
10176
|
"sec-ch-ua-mobile",
|
|
10175
|
-
"sec-ch-ua-platform"
|
|
10177
|
+
"sec-ch-ua-platform",
|
|
10178
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER
|
|
10176
10179
|
]);
|
|
10177
10180
|
var FETCH_PROXY_CORS_HEADERS = {
|
|
10178
10181
|
"access-control-allow-origin": "*",
|
|
@@ -10205,7 +10208,12 @@ function buildFetchProxyHeaders(reqHeaders, targetUrl) {
|
|
|
10205
10208
|
if (STRIP_FETCH_PROXY_HEADERS.has(key.toLowerCase())) continue;
|
|
10206
10209
|
headers[key] = Array.isArray(value) ? value.join(", ") : value;
|
|
10207
10210
|
}
|
|
10208
|
-
|
|
10211
|
+
const rawNativeUserAgent = reqHeaders[FETCH_PROXY_NATIVE_USER_AGENT_HEADER];
|
|
10212
|
+
const nativeUserAgent = Array.isArray(rawNativeUserAgent) ? rawNativeUserAgent[0] : rawNativeUserAgent;
|
|
10213
|
+
Object.assign(
|
|
10214
|
+
headers,
|
|
10215
|
+
targetUrl ? getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) : {}
|
|
10216
|
+
);
|
|
10209
10217
|
return headers;
|
|
10210
10218
|
}
|
|
10211
10219
|
function buildAppApiProxyHeaders(reqHeaders, targetUrl) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -56,6 +56,7 @@ function isLoopbackHost(hostname) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// src/host/fetch-proxy-overrides.ts
|
|
59
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
59
60
|
var HOST_HEADER_OVERRIDES = [
|
|
60
61
|
{
|
|
61
62
|
hostSuffix: "uniswap.org",
|
|
@@ -100,10 +101,11 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
100
101
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
101
102
|
return replacement ? new URL(replacement) : requested;
|
|
102
103
|
}
|
|
103
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
104
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
104
105
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
105
106
|
return {
|
|
106
107
|
"accept-encoding": "identity",
|
|
108
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
107
109
|
...hostOverrides?.headers
|
|
108
110
|
};
|
|
109
111
|
}
|
|
@@ -131,7 +133,8 @@ var STRIP_FETCH_PROXY_HEADERS = /* @__PURE__ */ new Set([
|
|
|
131
133
|
"sec-fetch-dest",
|
|
132
134
|
"sec-ch-ua",
|
|
133
135
|
"sec-ch-ua-mobile",
|
|
134
|
-
"sec-ch-ua-platform"
|
|
136
|
+
"sec-ch-ua-platform",
|
|
137
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER
|
|
135
138
|
]);
|
|
136
139
|
var FETCH_PROXY_CORS_HEADERS = {
|
|
137
140
|
"access-control-allow-origin": "*",
|
|
@@ -164,7 +167,12 @@ function buildFetchProxyHeaders(reqHeaders, targetUrl) {
|
|
|
164
167
|
if (STRIP_FETCH_PROXY_HEADERS.has(key.toLowerCase())) continue;
|
|
165
168
|
headers[key] = Array.isArray(value) ? value.join(", ") : value;
|
|
166
169
|
}
|
|
167
|
-
|
|
170
|
+
const rawNativeUserAgent = reqHeaders[FETCH_PROXY_NATIVE_USER_AGENT_HEADER];
|
|
171
|
+
const nativeUserAgent = Array.isArray(rawNativeUserAgent) ? rawNativeUserAgent[0] : rawNativeUserAgent;
|
|
172
|
+
Object.assign(
|
|
173
|
+
headers,
|
|
174
|
+
targetUrl ? getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) : {}
|
|
175
|
+
);
|
|
168
176
|
return headers;
|
|
169
177
|
}
|
|
170
178
|
function buildAppApiProxyHeaders(reqHeaders, targetUrl) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -22,13 +22,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
// src/host/fetch-proxy-overrides.ts
|
|
23
23
|
var fetch_proxy_overrides_exports = {};
|
|
24
24
|
__export(fetch_proxy_overrides_exports, {
|
|
25
|
-
|
|
25
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER: () => FETCH_PROXY_NATIVE_USER_AGENT_HEADER,
|
|
26
26
|
PUBLIC_RPC_TENANT: () => PUBLIC_RPC_TENANT,
|
|
27
27
|
getFetchProxyTargetHeaders: () => getFetchProxyTargetHeaders,
|
|
28
28
|
resolveFetchProxyTargetUrl: () => resolveFetchProxyTargetUrl
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(fetch_proxy_overrides_exports);
|
|
31
|
-
var
|
|
31
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
32
32
|
var HOST_HEADER_OVERRIDES = [
|
|
33
33
|
{
|
|
34
34
|
hostSuffix: "uniswap.org",
|
|
@@ -73,16 +73,17 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
73
73
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
74
74
|
return replacement ? new URL(replacement) : requested;
|
|
75
75
|
}
|
|
76
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
76
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
77
77
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
78
78
|
return {
|
|
79
79
|
"accept-encoding": "identity",
|
|
80
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
80
81
|
...hostOverrides?.headers
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
// Annotate the CommonJS export names for ESM import in node:
|
|
84
85
|
0 && (module.exports = {
|
|
85
|
-
|
|
86
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER,
|
|
86
87
|
PUBLIC_RPC_TENANT,
|
|
87
88
|
getFetchProxyTargetHeaders,
|
|
88
89
|
resolveFetchProxyTargetUrl
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/host/fetch-proxy-overrides.ts
|
|
4
|
-
var
|
|
4
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
5
5
|
var HOST_HEADER_OVERRIDES = [
|
|
6
6
|
{
|
|
7
7
|
hostSuffix: "uniswap.org",
|
|
@@ -46,15 +46,16 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
46
46
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
47
47
|
return replacement ? new URL(replacement) : requested;
|
|
48
48
|
}
|
|
49
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
49
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
50
50
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
51
51
|
return {
|
|
52
52
|
"accept-encoding": "identity",
|
|
53
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
53
54
|
...hostOverrides?.headers
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER,
|
|
58
59
|
PUBLIC_RPC_TENANT,
|
|
59
60
|
getFetchProxyTargetHeaders,
|
|
60
61
|
resolveFetchProxyTargetUrl
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -25593,17 +25593,19 @@ function resolveFetchProxyTargetUrl(requested) {
|
|
|
25593
25593
|
const replacement = PUBLIC_RPC_BY_QUICKNODE_CHAIN[chain];
|
|
25594
25594
|
return replacement ? new URL(replacement) : requested;
|
|
25595
25595
|
}
|
|
25596
|
-
function getFetchProxyTargetHeaders(targetUrl) {
|
|
25596
|
+
function getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) {
|
|
25597
25597
|
const hostOverrides = headerOverridesFor(targetUrl.hostname);
|
|
25598
25598
|
return {
|
|
25599
25599
|
"accept-encoding": "identity",
|
|
25600
|
+
...nativeUserAgent ? { "user-agent": nativeUserAgent } : {},
|
|
25600
25601
|
...hostOverrides?.headers
|
|
25601
25602
|
};
|
|
25602
25603
|
}
|
|
25603
|
-
var HOST_HEADER_OVERRIDES, PUBLIC_RPC_TENANT, QUICKNODE_HOST_SUFFIX, PUBLIC_RPC_BY_QUICKNODE_CHAIN;
|
|
25604
|
+
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER, HOST_HEADER_OVERRIDES, PUBLIC_RPC_TENANT, QUICKNODE_HOST_SUFFIX, PUBLIC_RPC_BY_QUICKNODE_CHAIN;
|
|
25604
25605
|
var init_fetch_proxy_overrides = __esm({
|
|
25605
25606
|
"src/host/fetch-proxy-overrides.ts"() {
|
|
25606
25607
|
"use strict";
|
|
25608
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
25607
25609
|
HOST_HEADER_OVERRIDES = [
|
|
25608
25610
|
{
|
|
25609
25611
|
hostSuffix: "uniswap.org",
|
|
@@ -25651,7 +25653,12 @@ function buildFetchProxyHeaders(reqHeaders, targetUrl) {
|
|
|
25651
25653
|
if (STRIP_FETCH_PROXY_HEADERS.has(key.toLowerCase())) continue;
|
|
25652
25654
|
headers[key] = Array.isArray(value) ? value.join(", ") : value;
|
|
25653
25655
|
}
|
|
25654
|
-
|
|
25656
|
+
const rawNativeUserAgent = reqHeaders[FETCH_PROXY_NATIVE_USER_AGENT_HEADER];
|
|
25657
|
+
const nativeUserAgent = Array.isArray(rawNativeUserAgent) ? rawNativeUserAgent[0] : rawNativeUserAgent;
|
|
25658
|
+
Object.assign(
|
|
25659
|
+
headers,
|
|
25660
|
+
targetUrl ? getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) : {}
|
|
25661
|
+
);
|
|
25655
25662
|
return headers;
|
|
25656
25663
|
}
|
|
25657
25664
|
function buildAppApiProxyHeaders(reqHeaders, targetUrl) {
|
|
@@ -25922,7 +25929,8 @@ var init_fetch_proxy_handler = __esm({
|
|
|
25922
25929
|
"sec-fetch-dest",
|
|
25923
25930
|
"sec-ch-ua",
|
|
25924
25931
|
"sec-ch-ua-mobile",
|
|
25925
|
-
"sec-ch-ua-platform"
|
|
25932
|
+
"sec-ch-ua-platform",
|
|
25933
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER
|
|
25926
25934
|
]);
|
|
25927
25935
|
FETCH_PROXY_CORS_HEADERS = {
|
|
25928
25936
|
"access-control-allow-origin": "*",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.686 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/package.json
CHANGED
|
@@ -28,6 +28,7 @@ import https from 'https'
|
|
|
28
28
|
import { finished, pipeline } from 'stream/promises'
|
|
29
29
|
import { isLoopbackHost, normalizeHostname } from '../backend-origin.ts'
|
|
30
30
|
import {
|
|
31
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER,
|
|
31
32
|
getFetchProxyTargetHeaders,
|
|
32
33
|
resolveFetchProxyTargetUrl,
|
|
33
34
|
} from './fetch-proxy-overrides.ts'
|
|
@@ -67,6 +68,7 @@ const STRIP_FETCH_PROXY_HEADERS = new Set([
|
|
|
67
68
|
'sec-ch-ua',
|
|
68
69
|
'sec-ch-ua-mobile',
|
|
69
70
|
'sec-ch-ua-platform',
|
|
71
|
+
FETCH_PROXY_NATIVE_USER_AGENT_HEADER,
|
|
70
72
|
])
|
|
71
73
|
|
|
72
74
|
const FETCH_PROXY_CORS_HEADERS: Record<string, string> = {
|
|
@@ -112,7 +114,14 @@ export function buildFetchProxyHeaders(
|
|
|
112
114
|
if (STRIP_FETCH_PROXY_HEADERS.has(key.toLowerCase())) continue
|
|
113
115
|
headers[key] = Array.isArray(value) ? value.join(', ') : value
|
|
114
116
|
}
|
|
115
|
-
|
|
117
|
+
const rawNativeUserAgent = reqHeaders[FETCH_PROXY_NATIVE_USER_AGENT_HEADER]
|
|
118
|
+
const nativeUserAgent = Array.isArray(rawNativeUserAgent)
|
|
119
|
+
? rawNativeUserAgent[0]
|
|
120
|
+
: rawNativeUserAgent
|
|
121
|
+
Object.assign(
|
|
122
|
+
headers,
|
|
123
|
+
targetUrl ? getFetchProxyTargetHeaders(targetUrl, nativeUserAgent) : {},
|
|
124
|
+
)
|
|
116
125
|
return headers
|
|
117
126
|
}
|
|
118
127
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// shared upstream header policy for SootSim's CORS-bypassing fetch proxy.
|
|
2
2
|
// requests still forward tenant auth and app headers, but the proxy transport
|
|
3
|
-
// defaults to native-app semantics: no browser Origin, Referer, Sec-Fetch
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
3
|
+
// defaults to native-app semantics: no browser Origin, Referer, Sec-Fetch-*.
|
|
4
|
+
// the User-Agent an NSURLSession request on a real device sends is the
|
|
5
|
+
// app's own (`<app>/<version> CFNetwork/<cf> Darwin/<darwin>`), never a
|
|
6
|
+
// browser string; the engine computes that shape (bundle-exec/app-config
|
|
7
|
+
// identity + the device profile's OS) and hands it to the proxy through this
|
|
8
|
+
// header, since `fetch()` cannot set `User-Agent` itself (forbidden header
|
|
9
|
+
// name). web-backed mobile APIs that require a specific web origin opt in
|
|
10
|
+
// below.
|
|
7
11
|
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
// way a real device's absent ones read — not a browser, not restricted.
|
|
13
|
-
export const FETCH_PROXY_BROWSER_USER_AGENT =
|
|
14
|
-
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 ' +
|
|
15
|
-
'(KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36'
|
|
12
|
+
// the engine attaches the native-shaped User-Agent it computed under this
|
|
13
|
+
// name; the proxy moves it onto the real `user-agent` header and never lets
|
|
14
|
+
// the name itself reach upstream (see STRIP_FETCH_PROXY_HEADERS).
|
|
15
|
+
export const FETCH_PROXY_NATIVE_USER_AGENT_HEADER = 'x-sootsim-native-user-agent'
|
|
16
16
|
|
|
17
17
|
const HOST_HEADER_OVERRIDES: Array<{
|
|
18
18
|
hostSuffix: string
|
|
@@ -82,10 +82,14 @@ export function resolveFetchProxyTargetUrl(requested: URL): URL {
|
|
|
82
82
|
return replacement ? new URL(replacement) : requested
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export function getFetchProxyTargetHeaders(
|
|
85
|
+
export function getFetchProxyTargetHeaders(
|
|
86
|
+
targetUrl: URL,
|
|
87
|
+
nativeUserAgent?: string,
|
|
88
|
+
): Record<string, string> {
|
|
86
89
|
const hostOverrides = headerOverridesFor(targetUrl.hostname)
|
|
87
90
|
return {
|
|
88
91
|
'accept-encoding': 'identity',
|
|
92
|
+
...(nativeUserAgent ? { 'user-agent': nativeUserAgent } : {}),
|
|
89
93
|
...hostOverrides?.headers,
|
|
90
94
|
}
|
|
91
95
|
}
|