peachsim 0.1.2129 → 0.1.2155
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/README.md +1 -1
- package/cli/app-fonts.ts +1 -1
- package/cli/app-stubs.ts +1 -1
- package/cli/cli-release-origin.ts +1 -0
- package/cli/cli-update.ts +1 -1
- package/cli/cloud-box-artifact.ts +1 -1
- package/cli/cloud-test-tunnel.ts +1 -1
- package/cli/commands/compat.ts +1 -1
- package/cli/commands/control.ts +2 -0
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/flow.ts +8 -1
- package/cli/commands/inspect/core.ts +25 -4
- package/cli/commands/package.ts +21 -12
- package/cli/commands/shell-url.ts +8 -3
- package/cli/commands/upgrade.ts +1 -1
- package/cli/drivers/linux-browser-libs.ts +1 -1
- package/cli/outbound-endpoints.ts +4 -0
- package/cli/remote-project-bundle.ts +2 -2
- package/detox/index.ts +12 -5
- 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 +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/bundle-channel.cjs +1795 -1801
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +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 +2 -2
- package/dist-lib/config.mjs +2 -2
- package/dist-lib/detox/index.cjs +31 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +41 -33
- package/dist-lib/expo-swift-metadata.cjs +10 -2
- package/dist-lib/expo-swift-metadata.mjs +9 -2
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +276 -243
- package/dist-lib/host/fetch-proxy-handler.cjs +459 -484
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +266 -266
- 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 +2 -2
- package/dist-lib/metro-production-bundle.mjs +2 -2
- package/dist-lib/metro.cjs +320 -336
- package/dist-lib/native-app-identity-project.cjs +134 -159
- package/dist-lib/native-app-identity-project.mjs +428 -459
- package/dist-lib/native-app-identity.cjs +18 -18
- package/dist-lib/native-app-identity.mjs +18 -18
- package/dist-lib/native-firebase-metadata.cjs +2 -2
- package/dist-lib/native-firebase-metadata.mjs +2 -2
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.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/public-origins-lib-esm.json +32 -36
- package/dist-lib/public-origins-lib.json +135 -161
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
- package/dist-lib/sdk.cjs +20 -2
- package/dist-lib/sdk.mjs +20 -2
- package/dist-lib/skills.cjs +587 -531
- package/dist-lib/swift-compile.cjs +23 -8
- package/dist-lib/swift-compile.mjs +23 -8
- 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 +41 -39
- package/dist-lib/vite.cjs +745 -768
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/one-native-contentContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/package-versions.d.ts +16 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/androidAutolinkingContract.ts +1 -1
- package/src/androidRootModuleContract.ts +1 -1
- package/src/bundle-channel.mjs +1 -1
- package/src/config.ts +1 -1
- package/src/configured-bundle-producer.ts +1 -1
- package/src/expo-swift-host.ts +34 -4
- package/src/expoKotlinContract.ts +4 -1
- package/src/expoSwiftContract.ts +18 -4
- package/src/guest-bundle.ts +1 -1
- package/src/host/dev-server-package-versions.ts +1 -1
- package/src/host/fetch-proxy-handler.ts +1 -1
- package/src/installed-native-build-options.ts +2 -2
- package/src/installed-package-versions.ts +7 -7
- package/src/metro-plugin.ts +1 -1
- package/src/metro-production-bundle.ts +1 -1
- package/src/native-app-identity.ts +1 -1
- package/src/native-firebase-metadata.ts +1 -1
- package/src/nitro-adapter.lock.json +244 -244
- package/src/nitro-superset.lock.json +4 -4
- package/src/nitroContract.ts +1 -1
- package/src/oneSdkContract.ts +1 -1
- package/src/react-native-coverage/capability-reference-resolution.ts +4 -4
- package/src/storageSnapshotContract.ts +2 -2
- package/src/swift-compile.ts +24 -7
- package/src/swift-coverage/source.ts +1 -1
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-runtime.lock.json +18 -18
- package/src/vite-plugin-one.ts +4 -4
- package/src/vite-plugin.ts +6 -6
- package/src/bundleGlobalFooter.ts +0 -137
- package/src/packageVersionsContract.ts +0 -131
- /package/dist-types/packages/{peach-compat/src/stubs → peach-engine/src/guest}/native-evaluation-lease.d.ts +0 -0
- /package/dist-types/packages/{peach-compat → peach-globals}/src/secure-item-store.d.ts +0 -0
- /package/dist-types/packages/{peach-compat/src/stubs → peach-kit/src}/ring-mode-state.d.ts +0 -0
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2155 | (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;
|
|
@@ -14,8 +14,8 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
14
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
15
|
};
|
|
16
16
|
var __export = (target, all) => {
|
|
17
|
-
for (var
|
|
18
|
-
__defProp(target,
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
19
|
};
|
|
20
20
|
var __copyProps = (to, from, except, desc) => {
|
|
21
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -111,8 +111,8 @@ var require_parse = __commonJS({
|
|
|
111
111
|
}
|
|
112
112
|
return root;
|
|
113
113
|
};
|
|
114
|
-
function internalize(holder,
|
|
115
|
-
const value = holder[
|
|
114
|
+
function internalize(holder, name, reviver) {
|
|
115
|
+
const value = holder[name];
|
|
116
116
|
if (value != null && typeof value === "object") {
|
|
117
117
|
if (Array.isArray(value)) {
|
|
118
118
|
for (let i = 0; i < value.length; i++) {
|
|
@@ -145,7 +145,7 @@ var require_parse = __commonJS({
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
return reviver.call(holder,
|
|
148
|
+
return reviver.call(holder, name, value);
|
|
149
149
|
}
|
|
150
150
|
var lexState;
|
|
151
151
|
var buffer;
|
|
@@ -1185,9 +1185,9 @@ function nodeHttpFetch(url, init = {}, redirects = 0) {
|
|
|
1185
1185
|
return;
|
|
1186
1186
|
}
|
|
1187
1187
|
const headers = new Headers();
|
|
1188
|
-
for (const [
|
|
1189
|
-
if (Array.isArray(value)) for (const entry of value) headers.append(
|
|
1190
|
-
else if (value !== void 0) headers.set(
|
|
1188
|
+
for (const [name, value] of Object.entries(res.headers)) {
|
|
1189
|
+
if (Array.isArray(value)) for (const entry of value) headers.append(name, entry);
|
|
1190
|
+
else if (value !== void 0) headers.set(name, value);
|
|
1191
1191
|
}
|
|
1192
1192
|
if (BODYLESS_STATUS.has(status)) {
|
|
1193
1193
|
res.resume();
|
|
@@ -1281,6 +1281,97 @@ var import_node_https2 = __toESM(require("node:https"), 1);
|
|
|
1281
1281
|
var import_node_url2 = require("node:url");
|
|
1282
1282
|
var import_path4 = __toESM(require("path"), 1);
|
|
1283
1283
|
var import_promises6 = require("stream/promises");
|
|
1284
|
+
|
|
1285
|
+
// ../peach-globals/src/package-versions.ts
|
|
1286
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1287
|
+
|
|
1288
|
+
// ../peach-globals/src/bundle-global-footer.ts
|
|
1289
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1290
|
+
function findBundleFooter(source, prefix) {
|
|
1291
|
+
let end = source.length;
|
|
1292
|
+
while (end > 0) {
|
|
1293
|
+
const newline = source.lastIndexOf("\n", end - 1);
|
|
1294
|
+
if (newline < 0) return -1;
|
|
1295
|
+
const line = newline + 1;
|
|
1296
|
+
if (source.startsWith(prefix, line)) return newline;
|
|
1297
|
+
if (!isFooterBlockLine(source, line, end)) return -1;
|
|
1298
|
+
end = newline;
|
|
1299
|
+
}
|
|
1300
|
+
return -1;
|
|
1301
|
+
}
|
|
1302
|
+
function isFooterBlockLine(source, line, end) {
|
|
1303
|
+
return line === end || source.startsWith("globalThis.", line) || source.startsWith("//", line);
|
|
1304
|
+
}
|
|
1305
|
+
function readFooter(source, prefix, suffix, name) {
|
|
1306
|
+
const start = findBundleFooter(source, prefix);
|
|
1307
|
+
if (start < 0) return null;
|
|
1308
|
+
const end = source.indexOf("\n", start + 1);
|
|
1309
|
+
const line = source.slice(start + 1, end < 0 ? void 0 : end);
|
|
1310
|
+
if (!line.endsWith(suffix)) throw new Error(`${name} footer is truncated`);
|
|
1311
|
+
const value = JSON.parse(
|
|
1312
|
+
line.slice(prefix.length, suffix ? -suffix.length : void 0)
|
|
1313
|
+
);
|
|
1314
|
+
if (value === null) throw new Error(`${name} footer has no metadata`);
|
|
1315
|
+
return value;
|
|
1316
|
+
}
|
|
1317
|
+
function detachFooter(source, prefix, suffix, name) {
|
|
1318
|
+
const start = findBundleFooter(source, prefix);
|
|
1319
|
+
if (start < 0) return { source, value: null };
|
|
1320
|
+
const value = readFooter(source, prefix, suffix, name);
|
|
1321
|
+
const end = source.indexOf("\n", start + 1);
|
|
1322
|
+
return { source: source.slice(0, start) + (end < 0 ? "" : source.slice(end)), value };
|
|
1323
|
+
}
|
|
1324
|
+
function insertBundleGlobalFooter(source, name, value) {
|
|
1325
|
+
return insertFooter(source, `globalThis.${name}=`, ";", name, value);
|
|
1326
|
+
}
|
|
1327
|
+
function insertFooter(source, prefix, suffix, name, value) {
|
|
1328
|
+
source = detachFooter(source, prefix, suffix, name).source;
|
|
1329
|
+
const json = JSON.stringify(value).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/<\//g, "<\\/");
|
|
1330
|
+
const footer = `
|
|
1331
|
+
${prefix}${json}${suffix}`;
|
|
1332
|
+
const identity = findBundleFooter(source, "globalThis.__sootsimModulePaths=");
|
|
1333
|
+
return identity < 0 ? source + footer : source.slice(0, identity) + footer + source.slice(identity);
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
// ../peach-globals/src/package-versions.ts
|
|
1337
|
+
var NATIVE_BUILD_OPTIONS_KEY = "@peach/native-build-options";
|
|
1338
|
+
var PACKAGE_VERSIONS_HEADER = "X-Peach-Package-Versions";
|
|
1339
|
+
var FOOTER = "__peachPackageVersions";
|
|
1340
|
+
function readPackageVersions(value) {
|
|
1341
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
1342
|
+
throw new Error("invalid package versions");
|
|
1343
|
+
}
|
|
1344
|
+
const versions = {};
|
|
1345
|
+
for (const [name, version] of Object.entries(value)) {
|
|
1346
|
+
if (name.length === 0 || typeof version !== "string" || version.length === 0) {
|
|
1347
|
+
throw new Error("invalid package versions");
|
|
1348
|
+
}
|
|
1349
|
+
versions[name] = version;
|
|
1350
|
+
}
|
|
1351
|
+
return versions;
|
|
1352
|
+
}
|
|
1353
|
+
function insertPackageVersionsFooter(source, versions) {
|
|
1354
|
+
return insertBundleGlobalFooter(source, FOOTER, readPackageVersions(versions));
|
|
1355
|
+
}
|
|
1356
|
+
var WORKLETS_STATIC_FLAGS_KEY = "react-native-worklets/staticFlags.json";
|
|
1357
|
+
function isFlagRecord(value) {
|
|
1358
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1359
|
+
}
|
|
1360
|
+
function resolveWorkletsStaticFlags(defaults, appManifest) {
|
|
1361
|
+
if (!isFlagRecord(defaults)) throw new Error("Worklets static flags are malformed");
|
|
1362
|
+
const worklets = isFlagRecord(appManifest) ? appManifest.worklets : void 0;
|
|
1363
|
+
const overrides = isFlagRecord(worklets) ? worklets.staticFeatureFlags : void 0;
|
|
1364
|
+
if (overrides !== void 0 && !isFlagRecord(overrides)) {
|
|
1365
|
+
throw new Error("Worklets static flag overrides are malformed");
|
|
1366
|
+
}
|
|
1367
|
+
const flags = {};
|
|
1368
|
+
for (const [name, value] of Object.entries({ ...defaults, ...overrides })) {
|
|
1369
|
+
flags[name] = String(value) === "true";
|
|
1370
|
+
}
|
|
1371
|
+
return JSON.stringify(flags);
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
// src/vite-plugin-one.ts
|
|
1284
1375
|
var import_ws = require("ws");
|
|
1285
1376
|
|
|
1286
1377
|
// src/bridge-constants.ts
|
|
@@ -1325,7 +1416,7 @@ function isValidRuntimeVersion(value) {
|
|
|
1325
1416
|
}
|
|
1326
1417
|
|
|
1327
1418
|
// runtime-companion.json
|
|
1328
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
1419
|
+
var runtime_companion_default = { abi: 1, sha256: "9b370a218cb12559cba2bb30e1e33d168ccd0f310e473c5428133b85938be20a", file: "node/cli-9b370a218cb12559cba2bb30e1e33d168ccd0f310e473c5428133b85938be20a.cjs" };
|
|
1329
1420
|
|
|
1330
1421
|
// src/answeredNativePackages.ts
|
|
1331
1422
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1770,95 +1861,6 @@ function loopbackOriginOf(value) {
|
|
|
1770
1861
|
}
|
|
1771
1862
|
}
|
|
1772
1863
|
|
|
1773
|
-
// src/packageVersionsContract.ts
|
|
1774
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1775
|
-
|
|
1776
|
-
// src/bundleGlobalFooter.ts
|
|
1777
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1778
|
-
function findBundleFooter(source, prefix) {
|
|
1779
|
-
let end = source.length;
|
|
1780
|
-
while (end > 0) {
|
|
1781
|
-
const newline = source.lastIndexOf("\n", end - 1);
|
|
1782
|
-
if (newline < 0) return -1;
|
|
1783
|
-
const line = newline + 1;
|
|
1784
|
-
if (source.startsWith(prefix, line)) return newline;
|
|
1785
|
-
if (!isFooterBlockLine(source, line, end)) return -1;
|
|
1786
|
-
end = newline;
|
|
1787
|
-
}
|
|
1788
|
-
return -1;
|
|
1789
|
-
}
|
|
1790
|
-
function isFooterBlockLine(source, line, end) {
|
|
1791
|
-
return line === end || source.startsWith("globalThis.", line) || source.startsWith("//", line);
|
|
1792
|
-
}
|
|
1793
|
-
function readFooter(source, prefix, suffix, name2) {
|
|
1794
|
-
const start = findBundleFooter(source, prefix);
|
|
1795
|
-
if (start < 0) return null;
|
|
1796
|
-
const end = source.indexOf("\n", start + 1);
|
|
1797
|
-
const line = source.slice(start + 1, end < 0 ? void 0 : end);
|
|
1798
|
-
if (!line.endsWith(suffix)) throw new Error(`${name2} footer is truncated`);
|
|
1799
|
-
const value = JSON.parse(
|
|
1800
|
-
line.slice(prefix.length, suffix ? -suffix.length : void 0)
|
|
1801
|
-
);
|
|
1802
|
-
if (value === null) throw new Error(`${name2} footer has no metadata`);
|
|
1803
|
-
return value;
|
|
1804
|
-
}
|
|
1805
|
-
function detachFooter(source, prefix, suffix, name2) {
|
|
1806
|
-
const start = findBundleFooter(source, prefix);
|
|
1807
|
-
if (start < 0) return { source, value: null };
|
|
1808
|
-
const value = readFooter(source, prefix, suffix, name2);
|
|
1809
|
-
const end = source.indexOf("\n", start + 1);
|
|
1810
|
-
return { source: source.slice(0, start) + (end < 0 ? "" : source.slice(end)), value };
|
|
1811
|
-
}
|
|
1812
|
-
function insertBundleGlobalFooter(source, name2, value) {
|
|
1813
|
-
return insertFooter(source, `globalThis.${name2}=`, ";", name2, value);
|
|
1814
|
-
}
|
|
1815
|
-
function insertFooter(source, prefix, suffix, name2, value) {
|
|
1816
|
-
source = detachFooter(source, prefix, suffix, name2).source;
|
|
1817
|
-
const json = JSON.stringify(value).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/<\//g, "<\\/");
|
|
1818
|
-
const footer = `
|
|
1819
|
-
${prefix}${json}${suffix}`;
|
|
1820
|
-
const identity = findBundleFooter(source, "globalThis.__sootsimModulePaths=");
|
|
1821
|
-
return identity < 0 ? source + footer : source.slice(0, identity) + footer + source.slice(identity);
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
// src/packageVersionsContract.ts
|
|
1825
|
-
var NATIVE_BUILD_OPTIONS_KEY = "@peach/native-build-options";
|
|
1826
|
-
var PACKAGE_VERSIONS_HEADER = "X-Peach-Package-Versions";
|
|
1827
|
-
var FOOTER = "__peachPackageVersions";
|
|
1828
|
-
function readPackageVersions(value) {
|
|
1829
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
1830
|
-
throw new Error("invalid package versions");
|
|
1831
|
-
}
|
|
1832
|
-
const versions = {};
|
|
1833
|
-
for (const [name2, version] of Object.entries(value)) {
|
|
1834
|
-
if (name2.length === 0 || typeof version !== "string" || version.length === 0) {
|
|
1835
|
-
throw new Error("invalid package versions");
|
|
1836
|
-
}
|
|
1837
|
-
versions[name2] = version;
|
|
1838
|
-
}
|
|
1839
|
-
return versions;
|
|
1840
|
-
}
|
|
1841
|
-
function insertPackageVersionsFooter(source, versions) {
|
|
1842
|
-
return insertBundleGlobalFooter(source, FOOTER, readPackageVersions(versions));
|
|
1843
|
-
}
|
|
1844
|
-
var WORKLETS_STATIC_FLAGS_KEY = "react-native-worklets/staticFlags.json";
|
|
1845
|
-
function isFlagRecord(value) {
|
|
1846
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1847
|
-
}
|
|
1848
|
-
function resolveWorkletsStaticFlags(defaults, appManifest) {
|
|
1849
|
-
if (!isFlagRecord(defaults)) throw new Error("Worklets static flags are malformed");
|
|
1850
|
-
const worklets = isFlagRecord(appManifest) ? appManifest.worklets : void 0;
|
|
1851
|
-
const overrides = isFlagRecord(worklets) ? worklets.staticFeatureFlags : void 0;
|
|
1852
|
-
if (overrides !== void 0 && !isFlagRecord(overrides)) {
|
|
1853
|
-
throw new Error("Worklets static flag overrides are malformed");
|
|
1854
|
-
}
|
|
1855
|
-
const flags = {};
|
|
1856
|
-
for (const [name2, value] of Object.entries({ ...defaults, ...overrides })) {
|
|
1857
|
-
flags[name2] = String(value) === "true";
|
|
1858
|
-
}
|
|
1859
|
-
return JSON.stringify(flags);
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
1864
|
// src/host/dev-server-package-versions.ts
|
|
1863
1865
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1864
1866
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
@@ -1905,7 +1907,7 @@ function readIosSdkTree(root) {
|
|
|
1905
1907
|
|
|
1906
1908
|
// src/swift-standin-digest.ts
|
|
1907
1909
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1908
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
1910
|
+
var STANDIN_SOURCE_DIGEST = true ? "b907e67a4a7c7d3e52e4ce9d48391c83bd5c6b4d3689f58b96f42435e285522e" : standinSourceDigest();
|
|
1909
1911
|
|
|
1910
1912
|
// src/expo-native-workspace.ts
|
|
1911
1913
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -2168,8 +2170,8 @@ var Directives = class _Directives {
|
|
|
2168
2170
|
this.atNextDocument = false;
|
|
2169
2171
|
}
|
|
2170
2172
|
const parts = line.trim().split(/[ \t]+/);
|
|
2171
|
-
const
|
|
2172
|
-
switch (
|
|
2173
|
+
const name = parts.shift();
|
|
2174
|
+
switch (name) {
|
|
2173
2175
|
case "%TAG": {
|
|
2174
2176
|
if (parts.length !== 2) {
|
|
2175
2177
|
onError(0, "%TAG directive should contain exactly two parts");
|
|
@@ -2197,7 +2199,7 @@ var Directives = class _Directives {
|
|
|
2197
2199
|
}
|
|
2198
2200
|
}
|
|
2199
2201
|
default:
|
|
2200
|
-
onError(0, `Unknown directive ${
|
|
2202
|
+
onError(0, `Unknown directive ${name}`, true);
|
|
2201
2203
|
return false;
|
|
2202
2204
|
}
|
|
2203
2205
|
}
|
|
@@ -3218,8 +3220,8 @@ function getTagObject(tags, item) {
|
|
|
3218
3220
|
tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
|
|
3219
3221
|
}
|
|
3220
3222
|
if (!tagObj) {
|
|
3221
|
-
const
|
|
3222
|
-
throw new Error(`Tag not resolved for ${
|
|
3223
|
+
const name = obj?.constructor?.name ?? (obj === null ? "null" : typeof obj);
|
|
3224
|
+
throw new Error(`Tag not resolved for ${name} value`);
|
|
3223
3225
|
}
|
|
3224
3226
|
return tagObj;
|
|
3225
3227
|
}
|
|
@@ -4727,33 +4729,8 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
4727
4729
|
// cli/drivers/linux-browser-libs.ts
|
|
4728
4730
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4729
4731
|
|
|
4730
|
-
// cli/cli-
|
|
4731
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4732
|
-
|
|
4733
|
-
// src/automatic-update-policy.ts
|
|
4734
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4735
|
-
|
|
4736
|
-
// src/cli-version.ts
|
|
4737
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4738
|
-
|
|
4739
|
-
// src/public-brand.ts
|
|
4732
|
+
// cli/cli-release-origin.ts
|
|
4740
4733
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4741
|
-
var name = "Peach";
|
|
4742
|
-
var peachPublicBrand = Object.freeze({
|
|
4743
|
-
name,
|
|
4744
|
-
packageName: "peachsim",
|
|
4745
|
-
commandName: "peach",
|
|
4746
|
-
domain: "peachsim.com",
|
|
4747
|
-
origin: "https://peachsim.com",
|
|
4748
|
-
boxOrigin: "https://rnx-box.contrast.dev"
|
|
4749
|
-
});
|
|
4750
|
-
|
|
4751
|
-
// cli/commands/inspect/env.ts
|
|
4752
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4753
|
-
|
|
4754
|
-
// cli/cli-update.ts
|
|
4755
|
-
var CLI_UPDATE_CHECK_INTERVAL_MS = 20 * 60 * 60 * 1e3;
|
|
4756
|
-
var CLI_UPDATE_NOTIFICATION_COOLDOWN_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
4757
4734
|
|
|
4758
4735
|
// src/swift-compile.ts
|
|
4759
4736
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -5041,7 +5018,7 @@ var WASI_EMULATION = [
|
|
|
5041
5018
|
"_WASI_EMULATED_MMAN",
|
|
5042
5019
|
"_WASI_EMULATED_PROCESS_CLOCKS"
|
|
5043
5020
|
];
|
|
5044
|
-
var WASI_EMULATION_FLAGS = WASI_EMULATION.map((
|
|
5021
|
+
var WASI_EMULATION_FLAGS = WASI_EMULATION.map((name) => `-D${name}`);
|
|
5045
5022
|
var NATIVE_GRAPH_INPUTS = {
|
|
5046
5023
|
sdk: NATIVE_GRAPH_SDK_VERSION,
|
|
5047
5024
|
settings: "e68503e5e534e9194af5efe8c636ca8b824e2d8237c5f38ec84aa4d155bc8418",
|
|
@@ -5291,7 +5268,7 @@ var import_node_zlib = require("node:zlib");
|
|
|
5291
5268
|
// ../sootsim-swift/src/icuData.ts
|
|
5292
5269
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5293
5270
|
|
|
5294
|
-
// ../peach-
|
|
5271
|
+
// ../peach-kit/src/wasm-memory.ts
|
|
5295
5272
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5296
5273
|
|
|
5297
5274
|
// ../sootsim-swift/src/icuData.ts
|
|
@@ -5403,7 +5380,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
5403
5380
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
5404
5381
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
5405
5382
|
).join("");
|
|
5406
|
-
var compilerSourceDigest = true ? "
|
|
5383
|
+
var compilerSourceDigest = true ? "91c8105b0a382e74c2395d36f69294e1ec6afa3aa0b66c61b6b11e63e0dbe5d7" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5407
5384
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
5408
5385
|
"CFAllocator",
|
|
5409
5386
|
"CFArray",
|
|
@@ -5418,7 +5395,7 @@ var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
|
5418
5395
|
"CFSet",
|
|
5419
5396
|
"CFString",
|
|
5420
5397
|
"CFURL"
|
|
5421
|
-
].map((
|
|
5398
|
+
].map((name) => `import class CoreFoundation.${name}`).concat([
|
|
5422
5399
|
"import typealias CoreFoundation.CFPropertyList",
|
|
5423
5400
|
"import typealias CoreFoundation.CFTypeRef",
|
|
5424
5401
|
"import CoreGraphics"
|
|
@@ -5637,399 +5614,10 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
5637
5614
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
5638
5615
|
var import_path2 = __toESM(require("path"), 1);
|
|
5639
5616
|
|
|
5640
|
-
// ../peach-compat/src/
|
|
5617
|
+
// ../peach-compat/src/generated/native-package-names.ts
|
|
5641
5618
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5642
5619
|
|
|
5643
|
-
// ../peach-compat/src/
|
|
5644
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5645
|
-
var ANY_BOUNDS = {
|
|
5646
|
-
lower: null,
|
|
5647
|
-
lowerInclusive: false,
|
|
5648
|
-
upper: null,
|
|
5649
|
-
upperInclusive: false
|
|
5650
|
-
};
|
|
5651
|
-
var COMPARATOR = /\s*(?:[<>]=?|[=^~])?\s*[^\s]+/g;
|
|
5652
|
-
function compareVersions(left, right) {
|
|
5653
|
-
if (left.major !== right.major) return left.major < right.major ? -1 : 1;
|
|
5654
|
-
if (left.minor !== right.minor) return left.minor < right.minor ? -1 : 1;
|
|
5655
|
-
if (left.patch !== right.patch) return left.patch < right.patch ? -1 : 1;
|
|
5656
|
-
if (left.prerelease.length === 0) return right.prerelease.length === 0 ? 0 : 1;
|
|
5657
|
-
if (right.prerelease.length === 0) return -1;
|
|
5658
|
-
const length = Math.max(left.prerelease.length, right.prerelease.length);
|
|
5659
|
-
for (let index = 0; index < length; index++) {
|
|
5660
|
-
const leftPart = left.prerelease[index];
|
|
5661
|
-
const rightPart = right.prerelease[index];
|
|
5662
|
-
if (leftPart === void 0) return -1;
|
|
5663
|
-
if (rightPart === void 0) return 1;
|
|
5664
|
-
if (leftPart === rightPart) continue;
|
|
5665
|
-
const leftNumeric = /^\d+$/.test(leftPart);
|
|
5666
|
-
const rightNumeric = /^\d+$/.test(rightPart);
|
|
5667
|
-
if (leftNumeric && rightNumeric) return Number(leftPart) < Number(rightPart) ? -1 : 1;
|
|
5668
|
-
if (leftNumeric !== rightNumeric) return leftNumeric ? -1 : 1;
|
|
5669
|
-
return leftPart < rightPart ? -1 : 1;
|
|
5670
|
-
}
|
|
5671
|
-
return 0;
|
|
5672
|
-
}
|
|
5673
|
-
function parseComparator(input) {
|
|
5674
|
-
const token = input.trim();
|
|
5675
|
-
if (token === "" || token === "*" || token === "x" || token === "X") {
|
|
5676
|
-
return ANY_BOUNDS;
|
|
5677
|
-
}
|
|
5678
|
-
const match = /^(>=|<=|>|<|=|\^|~)?\s*v?(\d+|[xX*])(?:\.(\d+|[xX*]))?(?:\.(\d+|[xX*]))?(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/.exec(
|
|
5679
|
-
token
|
|
5680
|
-
);
|
|
5681
|
-
if (!match) return null;
|
|
5682
|
-
const operator = match[1] ?? "=";
|
|
5683
|
-
const wildcard = (part) => part === void 0 || part === "x" || part === "X" || part === "*";
|
|
5684
|
-
if (wildcard(match[2])) return ANY_BOUNDS;
|
|
5685
|
-
const major = Number(match[2]);
|
|
5686
|
-
const minor = wildcard(match[3]) ? null : Number(match[3]);
|
|
5687
|
-
const patch = wildcard(match[4]) ? null : Number(match[4]);
|
|
5688
|
-
const floor = {
|
|
5689
|
-
major,
|
|
5690
|
-
minor: minor ?? 0,
|
|
5691
|
-
patch: patch ?? 0,
|
|
5692
|
-
prerelease: match[5] ? match[5].split(".") : []
|
|
5693
|
-
};
|
|
5694
|
-
if (operator === ">") {
|
|
5695
|
-
return { ...ANY_BOUNDS, lower: floor, lowerInclusive: false };
|
|
5696
|
-
}
|
|
5697
|
-
if (operator === ">=") {
|
|
5698
|
-
return { ...ANY_BOUNDS, lower: floor, lowerInclusive: true };
|
|
5699
|
-
}
|
|
5700
|
-
if (operator === "<") {
|
|
5701
|
-
return { ...ANY_BOUNDS, upper: floor, upperInclusive: false };
|
|
5702
|
-
}
|
|
5703
|
-
if (operator === "<=") {
|
|
5704
|
-
return { ...ANY_BOUNDS, upper: floor, upperInclusive: true };
|
|
5705
|
-
}
|
|
5706
|
-
let upper;
|
|
5707
|
-
if (operator === "^") {
|
|
5708
|
-
upper = major !== 0 ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : (minor ?? 0) !== 0 || minor === null ? { major: 0, minor: (minor ?? 0) + 1, patch: 0, prerelease: [] } : { major: 0, minor: 0, patch: (patch ?? 0) + 1, prerelease: [] };
|
|
5709
|
-
} else if (operator === "~") {
|
|
5710
|
-
upper = minor === null ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : { major, minor: minor + 1, patch: 0, prerelease: [] };
|
|
5711
|
-
} else if (minor === null) {
|
|
5712
|
-
upper = { major: major + 1, minor: 0, patch: 0, prerelease: [] };
|
|
5713
|
-
} else if (patch === null) {
|
|
5714
|
-
upper = { major, minor: minor + 1, patch: 0, prerelease: [] };
|
|
5715
|
-
} else {
|
|
5716
|
-
return {
|
|
5717
|
-
lower: floor,
|
|
5718
|
-
lowerInclusive: true,
|
|
5719
|
-
upper: floor,
|
|
5720
|
-
upperInclusive: true
|
|
5721
|
-
};
|
|
5722
|
-
}
|
|
5723
|
-
return {
|
|
5724
|
-
lower: floor,
|
|
5725
|
-
lowerInclusive: true,
|
|
5726
|
-
upper,
|
|
5727
|
-
upperInclusive: false
|
|
5728
|
-
};
|
|
5729
|
-
}
|
|
5730
|
-
function stricterLower(left, right) {
|
|
5731
|
-
if (!left.lower) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
|
|
5732
|
-
if (!right.lower) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
|
|
5733
|
-
const order = compareVersions(left.lower, right.lower);
|
|
5734
|
-
if (order > 0) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
|
|
5735
|
-
if (order < 0) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
|
|
5736
|
-
return {
|
|
5737
|
-
lower: left.lower,
|
|
5738
|
-
lowerInclusive: left.lowerInclusive && right.lowerInclusive
|
|
5739
|
-
};
|
|
5740
|
-
}
|
|
5741
|
-
function stricterUpper(left, right) {
|
|
5742
|
-
if (!left.upper) return { upper: right.upper, upperInclusive: right.upperInclusive };
|
|
5743
|
-
if (!right.upper) return { upper: left.upper, upperInclusive: left.upperInclusive };
|
|
5744
|
-
const order = compareVersions(left.upper, right.upper);
|
|
5745
|
-
if (order < 0) return { upper: left.upper, upperInclusive: left.upperInclusive };
|
|
5746
|
-
if (order > 0) return { upper: right.upper, upperInclusive: right.upperInclusive };
|
|
5747
|
-
return {
|
|
5748
|
-
upper: left.upper,
|
|
5749
|
-
upperInclusive: left.upperInclusive && right.upperInclusive
|
|
5750
|
-
};
|
|
5751
|
-
}
|
|
5752
|
-
function hasValues(bounds) {
|
|
5753
|
-
if (!bounds.lower || !bounds.upper) return true;
|
|
5754
|
-
const order = compareVersions(bounds.lower, bounds.upper);
|
|
5755
|
-
return order < 0 || order === 0 && bounds.lowerInclusive && bounds.upperInclusive;
|
|
5756
|
-
}
|
|
5757
|
-
function parseRange(input) {
|
|
5758
|
-
const groups = input.split("||");
|
|
5759
|
-
const parsed = [];
|
|
5760
|
-
for (const group of groups) {
|
|
5761
|
-
const tokens = group.trim().match(COMPARATOR) ?? [];
|
|
5762
|
-
if (tokens.length === 0) return null;
|
|
5763
|
-
let bounds = ANY_BOUNDS;
|
|
5764
|
-
for (const token of tokens) {
|
|
5765
|
-
const comparator = parseComparator(token);
|
|
5766
|
-
if (!comparator) return null;
|
|
5767
|
-
bounds = {
|
|
5768
|
-
...stricterLower(bounds, comparator),
|
|
5769
|
-
...stricterUpper(bounds, comparator)
|
|
5770
|
-
};
|
|
5771
|
-
}
|
|
5772
|
-
if (!hasValues(bounds)) return null;
|
|
5773
|
-
parsed.push(bounds);
|
|
5774
|
-
}
|
|
5775
|
-
return parsed;
|
|
5776
|
-
}
|
|
5777
|
-
function containsBounds(container, contained) {
|
|
5778
|
-
if (container.lower) {
|
|
5779
|
-
if (!contained.lower) return false;
|
|
5780
|
-
const order = compareVersions(container.lower, contained.lower);
|
|
5781
|
-
if (order > 0) return false;
|
|
5782
|
-
if (order === 0 && contained.lowerInclusive && !container.lowerInclusive) return false;
|
|
5783
|
-
}
|
|
5784
|
-
if (container.upper) {
|
|
5785
|
-
if (!contained.upper) return false;
|
|
5786
|
-
const order = compareVersions(container.upper, contained.upper);
|
|
5787
|
-
if (order < 0) return false;
|
|
5788
|
-
if (order === 0 && contained.upperInclusive && !container.upperInclusive) return false;
|
|
5789
|
-
}
|
|
5790
|
-
return true;
|
|
5791
|
-
}
|
|
5792
|
-
function overlapsBounds(left, right) {
|
|
5793
|
-
const intersection = {
|
|
5794
|
-
...stricterLower(left, right),
|
|
5795
|
-
...stricterUpper(left, right)
|
|
5796
|
-
};
|
|
5797
|
-
return hasValues(intersection);
|
|
5798
|
-
}
|
|
5799
|
-
function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
|
|
5800
|
-
const declaredGroups = parseRange(declaredVersion);
|
|
5801
|
-
const registryGroups = availableRegistryRanges.map((range) => ({
|
|
5802
|
-
range,
|
|
5803
|
-
bounds: parseRange(range)
|
|
5804
|
-
}));
|
|
5805
|
-
if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
|
|
5806
|
-
return {
|
|
5807
|
-
status: "unresolved",
|
|
5808
|
-
declaredVersion,
|
|
5809
|
-
availableRegistryRanges
|
|
5810
|
-
};
|
|
5811
|
-
}
|
|
5812
|
-
let selectedRange = null;
|
|
5813
|
-
for (const declared of declaredGroups) {
|
|
5814
|
-
const containing = registryGroups.filter(
|
|
5815
|
-
(candidate2) => candidate2.bounds?.length === 1 && containsBounds(candidate2.bounds[0], declared)
|
|
5816
|
-
);
|
|
5817
|
-
if (containing.length !== 1) {
|
|
5818
|
-
const overlaps = registryGroups.some(
|
|
5819
|
-
(candidate2) => candidate2.bounds?.some((bounds) => overlapsBounds(bounds, declared))
|
|
5820
|
-
);
|
|
5821
|
-
return {
|
|
5822
|
-
status: overlaps ? "unresolved" : "unmatched",
|
|
5823
|
-
declaredVersion,
|
|
5824
|
-
availableRegistryRanges
|
|
5825
|
-
};
|
|
5826
|
-
}
|
|
5827
|
-
const candidate = containing[0].range;
|
|
5828
|
-
if (selectedRange && selectedRange !== candidate) {
|
|
5829
|
-
return {
|
|
5830
|
-
status: "unresolved",
|
|
5831
|
-
declaredVersion,
|
|
5832
|
-
availableRegistryRanges
|
|
5833
|
-
};
|
|
5834
|
-
}
|
|
5835
|
-
selectedRange = candidate;
|
|
5836
|
-
}
|
|
5837
|
-
if (!selectedRange) {
|
|
5838
|
-
return {
|
|
5839
|
-
status: "unresolved",
|
|
5840
|
-
declaredVersion,
|
|
5841
|
-
availableRegistryRanges
|
|
5842
|
-
};
|
|
5843
|
-
}
|
|
5844
|
-
return {
|
|
5845
|
-
status: "matched",
|
|
5846
|
-
declaredVersion,
|
|
5847
|
-
registryRange: selectedRange,
|
|
5848
|
-
availableRegistryRanges
|
|
5849
|
-
};
|
|
5850
|
-
}
|
|
5851
|
-
|
|
5852
|
-
// ../peach-compat/src/lazy-stub-patterns.ts
|
|
5853
|
-
var LAZY_STUB_PATTERNS = [
|
|
5854
|
-
"@10play/tentap-editor",
|
|
5855
|
-
"@adobe/react-native-aepcore",
|
|
5856
|
-
"@azesmway/react-native-unity",
|
|
5857
|
-
"@azzapp/react-native-skia-video",
|
|
5858
|
-
"@batch.com/react-native-plugin",
|
|
5859
|
-
"@bugsnag/react-native",
|
|
5860
|
-
"@bugsnag/react-native-performance",
|
|
5861
|
-
"@callstack/react-native-bottom-tabs",
|
|
5862
|
-
"@callstack/react-native-visionos",
|
|
5863
|
-
"@clerk/expo",
|
|
5864
|
-
"@cometchat/chat-uikit-react-native",
|
|
5865
|
-
"@didomi/react-native",
|
|
5866
|
-
"@dr.pogodin/react-native-static-server",
|
|
5867
|
-
"@eabdullazyanov/react-native-sms-user-consent",
|
|
5868
|
-
"@expensify/react-native-live-markdown",
|
|
5869
|
-
"@expo/ui/community/menu",
|
|
5870
|
-
"@expo/ui/swift-ui",
|
|
5871
|
-
"@giphy/react-native-sdk",
|
|
5872
|
-
"@google/react-native-make-payment",
|
|
5873
|
-
"@googlemaps/react-native-navigation-sdk",
|
|
5874
|
-
"@iterable/expo-plugin",
|
|
5875
|
-
"@kingstinct/react-native-healthkit",
|
|
5876
|
-
"@lodev09/react-native-exify",
|
|
5877
|
-
"@luciq/react-native",
|
|
5878
|
-
"@mattermost/react-native-paste-input",
|
|
5879
|
-
"@mgcrea/vision-camera-barcode-scanner",
|
|
5880
|
-
"@mozzius/expo-dynamic-app-icon",
|
|
5881
|
-
"@okta/okta-react-native",
|
|
5882
|
-
"@playerdata/react-native-mcu-manager",
|
|
5883
|
-
"@react-native-community/audio-toolkit",
|
|
5884
|
-
"@react-native-community/checkbox",
|
|
5885
|
-
"@react-native-community/progress-bar-android",
|
|
5886
|
-
"@react-native-community/toolbar-android",
|
|
5887
|
-
"@react-native-documents/picker",
|
|
5888
|
-
"@react-native-firebase/app-distribution",
|
|
5889
|
-
"@react-native-firebase/database",
|
|
5890
|
-
"@react-native-firebase/in-app-messaging",
|
|
5891
|
-
"@react-native-ml-kit/face-detection",
|
|
5892
|
-
"@react-native-ml-kit/text-recognition",
|
|
5893
|
-
"@react-native-segmented-control/segmented-control",
|
|
5894
|
-
"@react-native-seoul/naver-login",
|
|
5895
|
-
"@renegades/react-native-tickle",
|
|
5896
|
-
"@rnw-community/react-native-payments",
|
|
5897
|
-
"@rudderstack/rudder-integration-firebase-react-native",
|
|
5898
|
-
"@rudderstack/rudder-sdk-react-native",
|
|
5899
|
-
"@sbaiahmed1/react-native-biometrics",
|
|
5900
|
-
"@sbaiahmed1/react-native-biometrics/types",
|
|
5901
|
-
"@sbaiahmed1/react-native-blur",
|
|
5902
|
-
"@shopify/checkout-sheet-kit",
|
|
5903
|
-
"@stream-io/video-react-native-sdk",
|
|
5904
|
-
"@stripe/stripe-identity-react-native",
|
|
5905
|
-
"@supersami/rn-foreground-service",
|
|
5906
|
-
"@survicate/react-native-survicate",
|
|
5907
|
-
"@twilio/voice-react-native-sdk",
|
|
5908
|
-
"@xmartlabs/react-native-line",
|
|
5909
|
-
"@zoontek/react-native-navigation-bar",
|
|
5910
|
-
"clevertap-react-native",
|
|
5911
|
-
"expo-dynamic-app-icon",
|
|
5912
|
-
"expo-health-connect",
|
|
5913
|
-
"expo-mesh-gradient",
|
|
5914
|
-
"expo-modules-core",
|
|
5915
|
-
"expo-superwall",
|
|
5916
|
-
"freerasp-react-native",
|
|
5917
|
-
"llama.rn",
|
|
5918
|
-
"newrelic-react-native-agent",
|
|
5919
|
-
"realm",
|
|
5920
|
-
"react-native-a11y",
|
|
5921
|
-
"react-native-adapty",
|
|
5922
|
-
"react-native-add-calendar-event",
|
|
5923
|
-
"react-native-adjust",
|
|
5924
|
-
"react-native-advanced-input-mask",
|
|
5925
|
-
"react-native-agora",
|
|
5926
|
-
"react-native-android-location-enabler",
|
|
5927
|
-
"react-native-animateable-text",
|
|
5928
|
-
"react-native-app-clip",
|
|
5929
|
-
"react-native-avoid-softinput",
|
|
5930
|
-
"react-native-azure-auth",
|
|
5931
|
-
"react-native-bare-kit",
|
|
5932
|
-
"react-native-bluetooth-classic",
|
|
5933
|
-
"react-native-bluetooth-state-manager",
|
|
5934
|
-
"react-native-bottom-tabs",
|
|
5935
|
-
"react-native-camera-kit",
|
|
5936
|
-
"react-native-charts-wrapper",
|
|
5937
|
-
"react-native-dialogs",
|
|
5938
|
-
"react-native-drop-shadow",
|
|
5939
|
-
"react-native-dynamic-app-icon",
|
|
5940
|
-
"react-native-expo-braintree",
|
|
5941
|
-
"react-native-extra-dimensions-android",
|
|
5942
|
-
"react-native-fast-opencv",
|
|
5943
|
-
"react-native-fast-shadow",
|
|
5944
|
-
"react-native-fast-squircle",
|
|
5945
|
-
"react-native-fast-tflite",
|
|
5946
|
-
"react-native-filament",
|
|
5947
|
-
"react-native-file-viewer-turbo",
|
|
5948
|
-
"react-native-floating-label-input",
|
|
5949
|
-
"react-native-google-cast",
|
|
5950
|
-
"react-native-google-fit",
|
|
5951
|
-
"react-native-google-places-sdk",
|
|
5952
|
-
"react-native-health",
|
|
5953
|
-
"react-native-health-connect",
|
|
5954
|
-
"react-native-hole-view",
|
|
5955
|
-
"react-native-html-to-pdf",
|
|
5956
|
-
"react-native-image-marker",
|
|
5957
|
-
"react-native-incall-manager",
|
|
5958
|
-
"react-native-ios-modal",
|
|
5959
|
-
"react-native-keyboard-controller/bindings",
|
|
5960
|
-
"react-native-keyboard-controller/findNodeHandle",
|
|
5961
|
-
"react-native-keyboard-manager",
|
|
5962
|
-
"react-native-keys",
|
|
5963
|
-
"react-native-loader-kit",
|
|
5964
|
-
"react-native-localization",
|
|
5965
|
-
"react-native-mixpanel",
|
|
5966
|
-
"react-native-moengage",
|
|
5967
|
-
"react-native-navigation-mode",
|
|
5968
|
-
"react-native-network-info",
|
|
5969
|
-
"react-native-otp-verify",
|
|
5970
|
-
"react-native-passkey",
|
|
5971
|
-
"react-native-payments",
|
|
5972
|
-
"react-native-pdf",
|
|
5973
|
-
"react-native-pdf-renderer",
|
|
5974
|
-
"react-native-pinchable",
|
|
5975
|
-
"react-native-play-age-range-declaration",
|
|
5976
|
-
"react-native-prompt-android",
|
|
5977
|
-
"react-native-radial-gradient",
|
|
5978
|
-
"react-native-razorpay",
|
|
5979
|
-
"react-native-reanimated/platformFunctions/dispatchCommand",
|
|
5980
|
-
"react-native-reanimated/platformFunctions/measure",
|
|
5981
|
-
"react-native-reanimated/platformFunctions/scrollTo",
|
|
5982
|
-
"react-native-reanimated/platformFunctions/setGestureState",
|
|
5983
|
-
"react-native-reanimated/platformFunctions/setNativeProps",
|
|
5984
|
-
"react-native-reanimated/specs/NativeReanimatedModule",
|
|
5985
|
-
"react-native-reanimated/specs/NativeWorkletsModule",
|
|
5986
|
-
"react-native-screenguard",
|
|
5987
|
-
"react-native-screens",
|
|
5988
|
-
"react-native-screens/components/Screen",
|
|
5989
|
-
"react-native-screenshot-prevent",
|
|
5990
|
-
"react-native-select-contact",
|
|
5991
|
-
"react-native-send-intent",
|
|
5992
|
-
"react-native-share-menu",
|
|
5993
|
-
"react-native-shared-element",
|
|
5994
|
-
"react-native-simple-toast",
|
|
5995
|
-
"react-native-spinkit",
|
|
5996
|
-
"react-native-ssl-public-key-pinning",
|
|
5997
|
-
"react-native-star-io10",
|
|
5998
|
-
"react-native-system-navigation-bar",
|
|
5999
|
-
"react-native-tcp",
|
|
6000
|
-
"react-native-teleport",
|
|
6001
|
-
"react-native-theme-switch-animation",
|
|
6002
|
-
"react-native-theoplayer",
|
|
6003
|
-
"react-native-tiktok-business-sdk",
|
|
6004
|
-
"react-native-twilio-video-webrtc",
|
|
6005
|
-
"react-native-udp",
|
|
6006
|
-
"react-native-ui-lib",
|
|
6007
|
-
"react-native-uitextview",
|
|
6008
|
-
"react-native-video-trim",
|
|
6009
|
-
"react-native-voip-push-notification",
|
|
6010
|
-
"react-native-wallet-manager",
|
|
6011
|
-
"react-native-webp-format",
|
|
6012
|
-
"react-native-wheel-pick",
|
|
6013
|
-
"react-native-wheel-picker-android",
|
|
6014
|
-
"react-native-wifi-reborn",
|
|
6015
|
-
"react-native-windows",
|
|
6016
|
-
"react-native-worklets/package.json",
|
|
6017
|
-
"react-native-worklets/specs/NativeWorkletsModule",
|
|
6018
|
-
"react-native-xaml",
|
|
6019
|
-
"react-native-zeroconf",
|
|
6020
|
-
"rn-qr-generator",
|
|
6021
|
-
"rn-secure-storage",
|
|
6022
|
-
"scandit-react-native-datacapture-barcode",
|
|
6023
|
-
"scandit-react-native-datacapture-core",
|
|
6024
|
-
"sp-react-native-in-app-updates",
|
|
6025
|
-
"stream-chat-react-native",
|
|
6026
|
-
"voltra"
|
|
6027
|
-
];
|
|
6028
|
-
|
|
6029
|
-
// ../peach-compat/src/generated/native-package-names.ts
|
|
6030
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6031
|
-
|
|
6032
|
-
// ../peach-compat/src/generated/light-native-package-names.ts
|
|
5620
|
+
// ../peach-compat/src/generated/light-native-package-names.ts
|
|
6033
5621
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6034
5622
|
var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
6035
5623
|
"@100mslive/react-native-hms",
|
|
@@ -7561,265 +7149,654 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
7561
7149
|
"react-native-os",
|
|
7562
7150
|
"react-native-ota-hot-update",
|
|
7563
7151
|
"react-native-otp-verify",
|
|
7564
|
-
"react-native-package-checker",
|
|
7565
|
-
"react-native-pager-view",
|
|
7566
|
-
"react-native-palette-full",
|
|
7152
|
+
"react-native-package-checker",
|
|
7153
|
+
"react-native-pager-view",
|
|
7154
|
+
"react-native-palette-full",
|
|
7155
|
+
"react-native-passkey",
|
|
7156
|
+
"react-native-payments",
|
|
7157
|
+
"react-native-paypal",
|
|
7158
|
+
"react-native-pdf",
|
|
7159
|
+
"react-native-pdf-from-image",
|
|
7160
|
+
"react-native-pdf-jsi",
|
|
7161
|
+
"react-native-pdf-light",
|
|
7162
|
+
"react-native-pdf-renderer",
|
|
7163
|
+
"react-native-pdf-view",
|
|
7164
|
+
"react-native-performance",
|
|
7165
|
+
"react-native-performance-limiter",
|
|
7166
|
+
"react-native-permissions",
|
|
7167
|
+
"react-native-perspective-image-cropper",
|
|
7168
|
+
"react-native-photo-editor",
|
|
7169
|
+
"react-native-photo-manipulator",
|
|
7170
|
+
"react-native-photo-view",
|
|
7171
|
+
"react-native-photo-view-ex",
|
|
7172
|
+
"react-native-photoeditorsdk",
|
|
7173
|
+
"react-native-pinchable",
|
|
7174
|
+
"react-native-ping",
|
|
7175
|
+
"react-native-pkce-challenge",
|
|
7176
|
+
"react-native-plaid-link-sdk",
|
|
7177
|
+
"react-native-platform-components",
|
|
7178
|
+
"react-native-play-age-range-declaration",
|
|
7179
|
+
"react-native-pretty-toast",
|
|
7180
|
+
"react-native-print",
|
|
7181
|
+
"react-native-private-screen",
|
|
7182
|
+
"react-native-prompt-android",
|
|
7183
|
+
"react-native-pulsar",
|
|
7184
|
+
"react-native-purchasely",
|
|
7185
|
+
"react-native-purchases",
|
|
7186
|
+
"react-native-purchases-ui",
|
|
7187
|
+
"react-native-pure-jwt",
|
|
7188
|
+
"react-native-push-notification",
|
|
7189
|
+
"react-native-qr-decode-image-camera",
|
|
7190
|
+
"react-native-qr-kit",
|
|
7191
|
+
"react-native-quick-actions",
|
|
7192
|
+
"react-native-quick-base64",
|
|
7193
|
+
"react-native-quick-crypto",
|
|
7194
|
+
"react-native-quick-sqlite",
|
|
7195
|
+
"react-native-radial-gradient",
|
|
7196
|
+
"react-native-randombytes",
|
|
7197
|
+
"react-native-rate",
|
|
7198
|
+
"react-native-rate-app",
|
|
7199
|
+
"react-native-razorpay",
|
|
7200
|
+
"react-native-reanimated",
|
|
7201
|
+
"react-native-receive-sharing-intent",
|
|
7202
|
+
"react-native-record-screen",
|
|
7203
|
+
"react-native-restart",
|
|
7204
|
+
"react-native-restart-newarch",
|
|
7205
|
+
"react-native-rn-in-app-update",
|
|
7206
|
+
"react-native-rsa-native",
|
|
7207
|
+
"react-native-rsa-signer",
|
|
7208
|
+
"react-native-safari-view",
|
|
7209
|
+
"react-native-safe-area-context",
|
|
7210
|
+
"react-native-screen-choreography",
|
|
7211
|
+
"react-native-screen-corner-radius",
|
|
7212
|
+
"react-native-screenguard",
|
|
7213
|
+
"react-native-screens",
|
|
7214
|
+
"react-native-screenshot-aware",
|
|
7215
|
+
"react-native-screenshot-prevent",
|
|
7216
|
+
"react-native-search-bar",
|
|
7217
|
+
"react-native-secure-key-store",
|
|
7218
|
+
"react-native-securerandom",
|
|
7219
|
+
"react-native-select-contact",
|
|
7220
|
+
"react-native-send-intent",
|
|
7221
|
+
"react-native-sensitive-info",
|
|
7222
|
+
"react-native-sensors",
|
|
7223
|
+
"react-native-settings",
|
|
7224
|
+
"react-native-sfsymbols",
|
|
7225
|
+
"react-native-shake",
|
|
7226
|
+
"react-native-share",
|
|
7227
|
+
"react-native-share-menu",
|
|
7228
|
+
"react-native-shared-element",
|
|
7229
|
+
"react-native-shared-group-preferences",
|
|
7230
|
+
"react-native-shareplay",
|
|
7231
|
+
"react-native-shiki-engine",
|
|
7232
|
+
"react-native-showtime",
|
|
7233
|
+
"react-native-signature-capture",
|
|
7234
|
+
"react-native-simple-biometrics",
|
|
7235
|
+
"react-native-simple-toast",
|
|
7236
|
+
"react-native-siri-shortcut",
|
|
7237
|
+
"react-native-skia",
|
|
7238
|
+
"react-native-smart-splash-screen",
|
|
7239
|
+
"react-native-snackbar",
|
|
7240
|
+
"react-native-social-share",
|
|
7241
|
+
"react-native-sound",
|
|
7242
|
+
"react-native-sound-player",
|
|
7243
|
+
"react-native-speech-recognition-kit",
|
|
7244
|
+
"react-native-spinkit",
|
|
7245
|
+
"react-native-splash-screen",
|
|
7246
|
+
"react-native-splash-screen-newarch",
|
|
7247
|
+
"react-native-splash-view",
|
|
7248
|
+
"react-native-spotify-remote",
|
|
7249
|
+
"react-native-spotlight-search",
|
|
7250
|
+
"react-native-sqlite-2",
|
|
7251
|
+
"react-native-sqlite-storage",
|
|
7252
|
+
"react-native-ssl-manager",
|
|
7253
|
+
"react-native-ssl-public-key-pinning",
|
|
7254
|
+
"react-native-stallion",
|
|
7255
|
+
"react-native-star-io10",
|
|
7256
|
+
"react-native-store-age-signals-native-modules",
|
|
7257
|
+
"react-native-store-review",
|
|
7258
|
+
"react-native-svg",
|
|
7259
|
+
"react-native-system-bars",
|
|
7260
|
+
"react-native-system-navigation-bar",
|
|
7261
|
+
"react-native-system-setting",
|
|
7262
|
+
"react-native-tableview",
|
|
7263
|
+
"react-native-tcp",
|
|
7264
|
+
"react-native-tcp-socket",
|
|
7265
|
+
"react-native-teleport",
|
|
7266
|
+
"react-native-tenjin",
|
|
7267
|
+
"react-native-testfairy",
|
|
7268
|
+
"react-native-text-input-mask",
|
|
7269
|
+
"react-native-text-size",
|
|
7270
|
+
"react-native-theme-switch-animation",
|
|
7271
|
+
"react-native-theoplayer",
|
|
7272
|
+
"react-native-thermal-receipt-printer",
|
|
7273
|
+
"react-native-tiktok",
|
|
7274
|
+
"react-native-tiktok-business-sdk",
|
|
7275
|
+
"react-native-timezone",
|
|
7276
|
+
"react-native-tooltip",
|
|
7277
|
+
"react-native-tor",
|
|
7278
|
+
"react-native-touch-id",
|
|
7279
|
+
"react-native-track-player",
|
|
7280
|
+
"react-native-tracking-transparency",
|
|
7281
|
+
"react-native-transformer-text-input",
|
|
7282
|
+
"react-native-ttlock",
|
|
7283
|
+
"react-native-tts",
|
|
7284
|
+
"react-native-tuner-engine",
|
|
7285
|
+
"react-native-turbo-haptics",
|
|
7286
|
+
"react-native-turbo-image",
|
|
7287
|
+
"react-native-turbo-lnd",
|
|
7288
|
+
"react-native-turbo-mock-location-detector",
|
|
7289
|
+
"react-native-turbo-preferences",
|
|
7290
|
+
"react-native-twilio-video-webrtc",
|
|
7291
|
+
"react-native-udp",
|
|
7292
|
+
"react-native-ui-lib",
|
|
7293
|
+
"react-native-uitextview",
|
|
7294
|
+
"react-native-ulid-jsi",
|
|
7295
|
+
"react-native-unistyles",
|
|
7296
|
+
"react-native-update",
|
|
7297
|
+
"react-native-urovo",
|
|
7298
|
+
"react-native-ux-cam",
|
|
7299
|
+
"react-native-variable-blur",
|
|
7300
|
+
"react-native-vector-icons",
|
|
7301
|
+
"react-native-version-check",
|
|
7302
|
+
"react-native-version-info",
|
|
7303
|
+
"react-native-version-number",
|
|
7304
|
+
"react-native-video",
|
|
7305
|
+
"react-native-video-cache",
|
|
7306
|
+
"react-native-video-duration",
|
|
7307
|
+
"react-native-video-processing",
|
|
7308
|
+
"react-native-video-provider",
|
|
7309
|
+
"react-native-video-trim",
|
|
7310
|
+
"react-native-videoeditorsdk",
|
|
7311
|
+
"react-native-view-pdf",
|
|
7312
|
+
"react-native-view-recorder",
|
|
7313
|
+
"react-native-view-shot",
|
|
7314
|
+
"react-native-vision-camera",
|
|
7315
|
+
"react-native-vision-camera-barcode-scanner",
|
|
7316
|
+
"react-native-vision-camera-face-detector",
|
|
7317
|
+
"react-native-vision-camera-image-labeler",
|
|
7318
|
+
"react-native-vision-camera-location",
|
|
7319
|
+
"react-native-vision-camera-resizer",
|
|
7320
|
+
"react-native-vision-camera-text-recognition",
|
|
7321
|
+
"react-native-vision-camera-worklets",
|
|
7322
|
+
"react-native-vlc-media-player",
|
|
7323
|
+
"react-native-voip-push-notification",
|
|
7324
|
+
"react-native-volume-manager",
|
|
7325
|
+
"react-native-vosk",
|
|
7326
|
+
"react-native-wallet-manager",
|
|
7327
|
+
"react-native-wallet-pass",
|
|
7328
|
+
"react-native-watch-connectivity",
|
|
7329
|
+
"react-native-wear-connectivity",
|
|
7330
|
+
"react-native-web-serial-api",
|
|
7331
|
+
"react-native-webgpu",
|
|
7332
|
+
"react-native-webp-converter",
|
|
7333
|
+
"react-native-webp-format",
|
|
7334
|
+
"react-native-webrtc",
|
|
7335
|
+
"react-native-webview",
|
|
7336
|
+
"react-native-wechat-lib",
|
|
7337
|
+
"react-native-wheel-pick",
|
|
7338
|
+
"react-native-wheel-picker-android",
|
|
7339
|
+
"react-native-whip-whep",
|
|
7340
|
+
"react-native-widget-picker",
|
|
7341
|
+
"react-native-widgetkit",
|
|
7342
|
+
"react-native-wifi-p2p",
|
|
7343
|
+
"react-native-wifi-reborn",
|
|
7344
|
+
"react-native-window-view",
|
|
7345
|
+
"react-native-windows",
|
|
7346
|
+
"react-native-windows-hello",
|
|
7347
|
+
"react-native-wordpress-editor",
|
|
7348
|
+
"react-native-worklets",
|
|
7349
|
+
"react-native-worklets-core",
|
|
7350
|
+
"react-native-xaml",
|
|
7351
|
+
"react-native-xxhash",
|
|
7352
|
+
"react-native-youtube",
|
|
7353
|
+
"react-native-zeroconf",
|
|
7354
|
+
"react-native-zip-archive",
|
|
7355
|
+
"realm",
|
|
7356
|
+
"rive-react-native",
|
|
7357
|
+
"rn-apple-healthkit",
|
|
7358
|
+
"rn-card-scanner",
|
|
7359
|
+
"rn-date-format",
|
|
7360
|
+
"rn-fade-wrapper",
|
|
7361
|
+
"rn-fetch-blob",
|
|
7362
|
+
"rn-mlkit-ocr",
|
|
7363
|
+
"rn-qr-generator",
|
|
7364
|
+
"rn-secure-storage",
|
|
7365
|
+
"rn-watch-connect",
|
|
7366
|
+
"rn-zendesk",
|
|
7367
|
+
"rollbar-react-native",
|
|
7368
|
+
"scandit-react-native-datacapture-barcode",
|
|
7369
|
+
"scandit-react-native-datacapture-core",
|
|
7370
|
+
"scandit-react-native-datacapture-id",
|
|
7371
|
+
"scandit-react-native-datacapture-label",
|
|
7372
|
+
"scandit-react-native-datacapture-label-text",
|
|
7373
|
+
"scandit-react-native-datacapture-parser",
|
|
7374
|
+
"sift-react-native",
|
|
7375
|
+
"sp-react-native-in-app-updates",
|
|
7376
|
+
"stream-chat-expo",
|
|
7377
|
+
"stream-chat-react-native",
|
|
7378
|
+
"swiftui-react-native",
|
|
7379
|
+
"uws-react-native",
|
|
7380
|
+
"vision-camera-cropper",
|
|
7381
|
+
"vision-camera-dynamsoft-document-normalizer",
|
|
7382
|
+
"vision-camera-ocr-plugin",
|
|
7383
|
+
"vision-camera-zxing",
|
|
7384
|
+
"whisper.rn"
|
|
7385
|
+
];
|
|
7386
|
+
var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
7387
|
+
...NATIVE_STUB_PACKAGE_NAMES,
|
|
7388
|
+
...LIGHT_NATIVE_PACKAGE_NAMES,
|
|
7389
|
+
"@ammarahmed/react-native-background-fetch",
|
|
7390
|
+
"@ammarahmed/react-native-sodium",
|
|
7391
|
+
"@bsky.app/react-native-uitextview",
|
|
7392
|
+
"@bsky.app/video",
|
|
7393
|
+
"@datadog/mobile-react-native-webview",
|
|
7394
|
+
"@haileyok/bluesky-video",
|
|
7395
|
+
"@react-native-vector-icons/get-image",
|
|
7396
|
+
"@react-navigation/native",
|
|
7397
|
+
"@tamagui/native-registry",
|
|
7398
|
+
"@uniswap/ethers-rs-mobile",
|
|
7399
|
+
"@valora/react-native-keychain",
|
|
7400
|
+
"react-native-app-control",
|
|
7401
|
+
"react-native-blue-crypto",
|
|
7402
|
+
"react-native-dynamic-theme",
|
|
7403
|
+
"react-native-nitro-gzip",
|
|
7404
|
+
"react-native-sectioned-slider"
|
|
7405
|
+
];
|
|
7406
|
+
|
|
7407
|
+
// ../peach-globals/src/guest-modules/lazy-stub-patterns.ts
|
|
7408
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7409
|
+
|
|
7410
|
+
// ../peach-globals/src/guest-modules/version-range.ts
|
|
7411
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7412
|
+
var ANY_BOUNDS = {
|
|
7413
|
+
lower: null,
|
|
7414
|
+
lowerInclusive: false,
|
|
7415
|
+
upper: null,
|
|
7416
|
+
upperInclusive: false
|
|
7417
|
+
};
|
|
7418
|
+
var COMPARATOR = /\s*(?:[<>]=?|[=^~])?\s*[^\s]+/g;
|
|
7419
|
+
function compareVersions(left, right) {
|
|
7420
|
+
if (left.major !== right.major) return left.major < right.major ? -1 : 1;
|
|
7421
|
+
if (left.minor !== right.minor) return left.minor < right.minor ? -1 : 1;
|
|
7422
|
+
if (left.patch !== right.patch) return left.patch < right.patch ? -1 : 1;
|
|
7423
|
+
if (left.prerelease.length === 0) return right.prerelease.length === 0 ? 0 : 1;
|
|
7424
|
+
if (right.prerelease.length === 0) return -1;
|
|
7425
|
+
const length = Math.max(left.prerelease.length, right.prerelease.length);
|
|
7426
|
+
for (let index = 0; index < length; index++) {
|
|
7427
|
+
const leftPart = left.prerelease[index];
|
|
7428
|
+
const rightPart = right.prerelease[index];
|
|
7429
|
+
if (leftPart === void 0) return -1;
|
|
7430
|
+
if (rightPart === void 0) return 1;
|
|
7431
|
+
if (leftPart === rightPart) continue;
|
|
7432
|
+
const leftNumeric = /^\d+$/.test(leftPart);
|
|
7433
|
+
const rightNumeric = /^\d+$/.test(rightPart);
|
|
7434
|
+
if (leftNumeric && rightNumeric) return Number(leftPart) < Number(rightPart) ? -1 : 1;
|
|
7435
|
+
if (leftNumeric !== rightNumeric) return leftNumeric ? -1 : 1;
|
|
7436
|
+
return leftPart < rightPart ? -1 : 1;
|
|
7437
|
+
}
|
|
7438
|
+
return 0;
|
|
7439
|
+
}
|
|
7440
|
+
function parseComparator(input) {
|
|
7441
|
+
const token = input.trim();
|
|
7442
|
+
if (token === "" || token === "*" || token === "x" || token === "X") {
|
|
7443
|
+
return ANY_BOUNDS;
|
|
7444
|
+
}
|
|
7445
|
+
const match = /^(>=|<=|>|<|=|\^|~)?\s*v?(\d+|[xX*])(?:\.(\d+|[xX*]))?(?:\.(\d+|[xX*]))?(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/.exec(
|
|
7446
|
+
token
|
|
7447
|
+
);
|
|
7448
|
+
if (!match) return null;
|
|
7449
|
+
const operator = match[1] ?? "=";
|
|
7450
|
+
const wildcard = (part) => part === void 0 || part === "x" || part === "X" || part === "*";
|
|
7451
|
+
if (wildcard(match[2])) return ANY_BOUNDS;
|
|
7452
|
+
const major = Number(match[2]);
|
|
7453
|
+
const minor = wildcard(match[3]) ? null : Number(match[3]);
|
|
7454
|
+
const patch = wildcard(match[4]) ? null : Number(match[4]);
|
|
7455
|
+
const floor = {
|
|
7456
|
+
major,
|
|
7457
|
+
minor: minor ?? 0,
|
|
7458
|
+
patch: patch ?? 0,
|
|
7459
|
+
prerelease: match[5] ? match[5].split(".") : []
|
|
7460
|
+
};
|
|
7461
|
+
if (operator === ">") {
|
|
7462
|
+
return { ...ANY_BOUNDS, lower: floor, lowerInclusive: false };
|
|
7463
|
+
}
|
|
7464
|
+
if (operator === ">=") {
|
|
7465
|
+
return { ...ANY_BOUNDS, lower: floor, lowerInclusive: true };
|
|
7466
|
+
}
|
|
7467
|
+
if (operator === "<") {
|
|
7468
|
+
return { ...ANY_BOUNDS, upper: floor, upperInclusive: false };
|
|
7469
|
+
}
|
|
7470
|
+
if (operator === "<=") {
|
|
7471
|
+
return { ...ANY_BOUNDS, upper: floor, upperInclusive: true };
|
|
7472
|
+
}
|
|
7473
|
+
let upper;
|
|
7474
|
+
if (operator === "^") {
|
|
7475
|
+
upper = major !== 0 ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : (minor ?? 0) !== 0 || minor === null ? { major: 0, minor: (minor ?? 0) + 1, patch: 0, prerelease: [] } : { major: 0, minor: 0, patch: (patch ?? 0) + 1, prerelease: [] };
|
|
7476
|
+
} else if (operator === "~") {
|
|
7477
|
+
upper = minor === null ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : { major, minor: minor + 1, patch: 0, prerelease: [] };
|
|
7478
|
+
} else if (minor === null) {
|
|
7479
|
+
upper = { major: major + 1, minor: 0, patch: 0, prerelease: [] };
|
|
7480
|
+
} else if (patch === null) {
|
|
7481
|
+
upper = { major, minor: minor + 1, patch: 0, prerelease: [] };
|
|
7482
|
+
} else {
|
|
7483
|
+
return {
|
|
7484
|
+
lower: floor,
|
|
7485
|
+
lowerInclusive: true,
|
|
7486
|
+
upper: floor,
|
|
7487
|
+
upperInclusive: true
|
|
7488
|
+
};
|
|
7489
|
+
}
|
|
7490
|
+
return {
|
|
7491
|
+
lower: floor,
|
|
7492
|
+
lowerInclusive: true,
|
|
7493
|
+
upper,
|
|
7494
|
+
upperInclusive: false
|
|
7495
|
+
};
|
|
7496
|
+
}
|
|
7497
|
+
function stricterLower(left, right) {
|
|
7498
|
+
if (!left.lower) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
|
|
7499
|
+
if (!right.lower) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
|
|
7500
|
+
const order = compareVersions(left.lower, right.lower);
|
|
7501
|
+
if (order > 0) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
|
|
7502
|
+
if (order < 0) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
|
|
7503
|
+
return {
|
|
7504
|
+
lower: left.lower,
|
|
7505
|
+
lowerInclusive: left.lowerInclusive && right.lowerInclusive
|
|
7506
|
+
};
|
|
7507
|
+
}
|
|
7508
|
+
function stricterUpper(left, right) {
|
|
7509
|
+
if (!left.upper) return { upper: right.upper, upperInclusive: right.upperInclusive };
|
|
7510
|
+
if (!right.upper) return { upper: left.upper, upperInclusive: left.upperInclusive };
|
|
7511
|
+
const order = compareVersions(left.upper, right.upper);
|
|
7512
|
+
if (order < 0) return { upper: left.upper, upperInclusive: left.upperInclusive };
|
|
7513
|
+
if (order > 0) return { upper: right.upper, upperInclusive: right.upperInclusive };
|
|
7514
|
+
return {
|
|
7515
|
+
upper: left.upper,
|
|
7516
|
+
upperInclusive: left.upperInclusive && right.upperInclusive
|
|
7517
|
+
};
|
|
7518
|
+
}
|
|
7519
|
+
function hasValues(bounds) {
|
|
7520
|
+
if (!bounds.lower || !bounds.upper) return true;
|
|
7521
|
+
const order = compareVersions(bounds.lower, bounds.upper);
|
|
7522
|
+
return order < 0 || order === 0 && bounds.lowerInclusive && bounds.upperInclusive;
|
|
7523
|
+
}
|
|
7524
|
+
function parseRange(input) {
|
|
7525
|
+
const groups = input.split("||");
|
|
7526
|
+
const parsed = [];
|
|
7527
|
+
for (const group of groups) {
|
|
7528
|
+
const tokens = group.trim().match(COMPARATOR) ?? [];
|
|
7529
|
+
if (tokens.length === 0) return null;
|
|
7530
|
+
let bounds = ANY_BOUNDS;
|
|
7531
|
+
for (const token of tokens) {
|
|
7532
|
+
const comparator = parseComparator(token);
|
|
7533
|
+
if (!comparator) return null;
|
|
7534
|
+
bounds = {
|
|
7535
|
+
...stricterLower(bounds, comparator),
|
|
7536
|
+
...stricterUpper(bounds, comparator)
|
|
7537
|
+
};
|
|
7538
|
+
}
|
|
7539
|
+
if (!hasValues(bounds)) return null;
|
|
7540
|
+
parsed.push(bounds);
|
|
7541
|
+
}
|
|
7542
|
+
return parsed;
|
|
7543
|
+
}
|
|
7544
|
+
function containsBounds(container, contained) {
|
|
7545
|
+
if (container.lower) {
|
|
7546
|
+
if (!contained.lower) return false;
|
|
7547
|
+
const order = compareVersions(container.lower, contained.lower);
|
|
7548
|
+
if (order > 0) return false;
|
|
7549
|
+
if (order === 0 && contained.lowerInclusive && !container.lowerInclusive) return false;
|
|
7550
|
+
}
|
|
7551
|
+
if (container.upper) {
|
|
7552
|
+
if (!contained.upper) return false;
|
|
7553
|
+
const order = compareVersions(container.upper, contained.upper);
|
|
7554
|
+
if (order < 0) return false;
|
|
7555
|
+
if (order === 0 && contained.upperInclusive && !container.upperInclusive) return false;
|
|
7556
|
+
}
|
|
7557
|
+
return true;
|
|
7558
|
+
}
|
|
7559
|
+
function overlapsBounds(left, right) {
|
|
7560
|
+
const intersection = {
|
|
7561
|
+
...stricterLower(left, right),
|
|
7562
|
+
...stricterUpper(left, right)
|
|
7563
|
+
};
|
|
7564
|
+
return hasValues(intersection);
|
|
7565
|
+
}
|
|
7566
|
+
function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
|
|
7567
|
+
const declaredGroups = parseRange(declaredVersion);
|
|
7568
|
+
const registryGroups = availableRegistryRanges.map((range) => ({
|
|
7569
|
+
range,
|
|
7570
|
+
bounds: parseRange(range)
|
|
7571
|
+
}));
|
|
7572
|
+
if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
|
|
7573
|
+
return {
|
|
7574
|
+
status: "unresolved",
|
|
7575
|
+
declaredVersion,
|
|
7576
|
+
availableRegistryRanges
|
|
7577
|
+
};
|
|
7578
|
+
}
|
|
7579
|
+
let selectedRange = null;
|
|
7580
|
+
for (const declared of declaredGroups) {
|
|
7581
|
+
const containing = registryGroups.filter(
|
|
7582
|
+
(candidate2) => candidate2.bounds?.length === 1 && containsBounds(candidate2.bounds[0], declared)
|
|
7583
|
+
);
|
|
7584
|
+
if (containing.length !== 1) {
|
|
7585
|
+
const overlaps = registryGroups.some(
|
|
7586
|
+
(candidate2) => candidate2.bounds?.some((bounds) => overlapsBounds(bounds, declared))
|
|
7587
|
+
);
|
|
7588
|
+
return {
|
|
7589
|
+
status: overlaps ? "unresolved" : "unmatched",
|
|
7590
|
+
declaredVersion,
|
|
7591
|
+
availableRegistryRanges
|
|
7592
|
+
};
|
|
7593
|
+
}
|
|
7594
|
+
const candidate = containing[0].range;
|
|
7595
|
+
if (selectedRange && selectedRange !== candidate) {
|
|
7596
|
+
return {
|
|
7597
|
+
status: "unresolved",
|
|
7598
|
+
declaredVersion,
|
|
7599
|
+
availableRegistryRanges
|
|
7600
|
+
};
|
|
7601
|
+
}
|
|
7602
|
+
selectedRange = candidate;
|
|
7603
|
+
}
|
|
7604
|
+
if (!selectedRange) {
|
|
7605
|
+
return {
|
|
7606
|
+
status: "unresolved",
|
|
7607
|
+
declaredVersion,
|
|
7608
|
+
availableRegistryRanges
|
|
7609
|
+
};
|
|
7610
|
+
}
|
|
7611
|
+
return {
|
|
7612
|
+
status: "matched",
|
|
7613
|
+
declaredVersion,
|
|
7614
|
+
registryRange: selectedRange,
|
|
7615
|
+
availableRegistryRanges
|
|
7616
|
+
};
|
|
7617
|
+
}
|
|
7618
|
+
|
|
7619
|
+
// ../peach-globals/src/guest-modules/lazy-stub-patterns.ts
|
|
7620
|
+
var LAZY_STUB_PATTERNS = [
|
|
7621
|
+
"@10play/tentap-editor",
|
|
7622
|
+
"@adobe/react-native-aepcore",
|
|
7623
|
+
"@azesmway/react-native-unity",
|
|
7624
|
+
"@azzapp/react-native-skia-video",
|
|
7625
|
+
"@batch.com/react-native-plugin",
|
|
7626
|
+
"@bugsnag/react-native",
|
|
7627
|
+
"@bugsnag/react-native-performance",
|
|
7628
|
+
"@callstack/react-native-bottom-tabs",
|
|
7629
|
+
"@callstack/react-native-visionos",
|
|
7630
|
+
"@clerk/expo",
|
|
7631
|
+
"@cometchat/chat-uikit-react-native",
|
|
7632
|
+
"@didomi/react-native",
|
|
7633
|
+
"@dr.pogodin/react-native-static-server",
|
|
7634
|
+
"@eabdullazyanov/react-native-sms-user-consent",
|
|
7635
|
+
"@expensify/react-native-live-markdown",
|
|
7636
|
+
"@expo/ui/community/menu",
|
|
7637
|
+
"@expo/ui/swift-ui",
|
|
7638
|
+
"@giphy/react-native-sdk",
|
|
7639
|
+
"@google/react-native-make-payment",
|
|
7640
|
+
"@googlemaps/react-native-navigation-sdk",
|
|
7641
|
+
"@iterable/expo-plugin",
|
|
7642
|
+
"@kingstinct/react-native-healthkit",
|
|
7643
|
+
"@lodev09/react-native-exify",
|
|
7644
|
+
"@luciq/react-native",
|
|
7645
|
+
"@mattermost/react-native-paste-input",
|
|
7646
|
+
"@mgcrea/vision-camera-barcode-scanner",
|
|
7647
|
+
"@mozzius/expo-dynamic-app-icon",
|
|
7648
|
+
"@okta/okta-react-native",
|
|
7649
|
+
"@playerdata/react-native-mcu-manager",
|
|
7650
|
+
"@react-native-community/audio-toolkit",
|
|
7651
|
+
"@react-native-community/checkbox",
|
|
7652
|
+
"@react-native-community/progress-bar-android",
|
|
7653
|
+
"@react-native-community/toolbar-android",
|
|
7654
|
+
"@react-native-documents/picker",
|
|
7655
|
+
"@react-native-firebase/app-distribution",
|
|
7656
|
+
"@react-native-firebase/database",
|
|
7657
|
+
"@react-native-firebase/in-app-messaging",
|
|
7658
|
+
"@react-native-ml-kit/face-detection",
|
|
7659
|
+
"@react-native-ml-kit/text-recognition",
|
|
7660
|
+
"@react-native-segmented-control/segmented-control",
|
|
7661
|
+
"@react-native-seoul/naver-login",
|
|
7662
|
+
"@renegades/react-native-tickle",
|
|
7663
|
+
"@rnw-community/react-native-payments",
|
|
7664
|
+
"@rudderstack/rudder-integration-firebase-react-native",
|
|
7665
|
+
"@rudderstack/rudder-sdk-react-native",
|
|
7666
|
+
"@sbaiahmed1/react-native-biometrics",
|
|
7667
|
+
"@sbaiahmed1/react-native-biometrics/types",
|
|
7668
|
+
"@sbaiahmed1/react-native-blur",
|
|
7669
|
+
"@shopify/checkout-sheet-kit",
|
|
7670
|
+
"@stream-io/video-react-native-sdk",
|
|
7671
|
+
"@stripe/stripe-identity-react-native",
|
|
7672
|
+
"@supersami/rn-foreground-service",
|
|
7673
|
+
"@survicate/react-native-survicate",
|
|
7674
|
+
"@twilio/voice-react-native-sdk",
|
|
7675
|
+
"@xmartlabs/react-native-line",
|
|
7676
|
+
"@zoontek/react-native-navigation-bar",
|
|
7677
|
+
"clevertap-react-native",
|
|
7678
|
+
"expo-dynamic-app-icon",
|
|
7679
|
+
"expo-health-connect",
|
|
7680
|
+
"expo-mesh-gradient",
|
|
7681
|
+
"expo-modules-core",
|
|
7682
|
+
"expo-superwall",
|
|
7683
|
+
"freerasp-react-native",
|
|
7684
|
+
"llama.rn",
|
|
7685
|
+
"newrelic-react-native-agent",
|
|
7686
|
+
"realm",
|
|
7687
|
+
"react-native-a11y",
|
|
7688
|
+
"react-native-adapty",
|
|
7689
|
+
"react-native-add-calendar-event",
|
|
7690
|
+
"react-native-adjust",
|
|
7691
|
+
"react-native-advanced-input-mask",
|
|
7692
|
+
"react-native-agora",
|
|
7693
|
+
"react-native-android-location-enabler",
|
|
7694
|
+
"react-native-animateable-text",
|
|
7695
|
+
"react-native-app-clip",
|
|
7696
|
+
"react-native-avoid-softinput",
|
|
7697
|
+
"react-native-azure-auth",
|
|
7698
|
+
"react-native-bare-kit",
|
|
7699
|
+
"react-native-bluetooth-classic",
|
|
7700
|
+
"react-native-bluetooth-state-manager",
|
|
7701
|
+
"react-native-bottom-tabs",
|
|
7702
|
+
"react-native-camera-kit",
|
|
7703
|
+
"react-native-charts-wrapper",
|
|
7704
|
+
"react-native-dialogs",
|
|
7705
|
+
"react-native-drop-shadow",
|
|
7706
|
+
"react-native-dynamic-app-icon",
|
|
7707
|
+
"react-native-expo-braintree",
|
|
7708
|
+
"react-native-extra-dimensions-android",
|
|
7709
|
+
"react-native-fast-opencv",
|
|
7710
|
+
"react-native-fast-shadow",
|
|
7711
|
+
"react-native-fast-squircle",
|
|
7712
|
+
"react-native-fast-tflite",
|
|
7713
|
+
"react-native-filament",
|
|
7714
|
+
"react-native-file-viewer-turbo",
|
|
7715
|
+
"react-native-floating-label-input",
|
|
7716
|
+
"react-native-google-cast",
|
|
7717
|
+
"react-native-google-fit",
|
|
7718
|
+
"react-native-google-places-sdk",
|
|
7719
|
+
"react-native-health",
|
|
7720
|
+
"react-native-health-connect",
|
|
7721
|
+
"react-native-hole-view",
|
|
7722
|
+
"react-native-html-to-pdf",
|
|
7723
|
+
"react-native-image-marker",
|
|
7724
|
+
"react-native-incall-manager",
|
|
7725
|
+
"react-native-ios-modal",
|
|
7726
|
+
"react-native-keyboard-controller/bindings",
|
|
7727
|
+
"react-native-keyboard-controller/findNodeHandle",
|
|
7728
|
+
"react-native-keyboard-manager",
|
|
7729
|
+
"react-native-keys",
|
|
7730
|
+
"react-native-loader-kit",
|
|
7731
|
+
"react-native-localization",
|
|
7732
|
+
"react-native-mixpanel",
|
|
7733
|
+
"react-native-moengage",
|
|
7734
|
+
"react-native-navigation-mode",
|
|
7735
|
+
"react-native-network-info",
|
|
7736
|
+
"react-native-otp-verify",
|
|
7567
7737
|
"react-native-passkey",
|
|
7568
7738
|
"react-native-payments",
|
|
7569
|
-
"react-native-paypal",
|
|
7570
7739
|
"react-native-pdf",
|
|
7571
|
-
"react-native-pdf-from-image",
|
|
7572
|
-
"react-native-pdf-jsi",
|
|
7573
|
-
"react-native-pdf-light",
|
|
7574
7740
|
"react-native-pdf-renderer",
|
|
7575
|
-
"react-native-pdf-view",
|
|
7576
|
-
"react-native-performance",
|
|
7577
|
-
"react-native-performance-limiter",
|
|
7578
|
-
"react-native-permissions",
|
|
7579
|
-
"react-native-perspective-image-cropper",
|
|
7580
|
-
"react-native-photo-editor",
|
|
7581
|
-
"react-native-photo-manipulator",
|
|
7582
|
-
"react-native-photo-view",
|
|
7583
|
-
"react-native-photo-view-ex",
|
|
7584
|
-
"react-native-photoeditorsdk",
|
|
7585
7741
|
"react-native-pinchable",
|
|
7586
|
-
"react-native-ping",
|
|
7587
|
-
"react-native-pkce-challenge",
|
|
7588
|
-
"react-native-plaid-link-sdk",
|
|
7589
|
-
"react-native-platform-components",
|
|
7590
7742
|
"react-native-play-age-range-declaration",
|
|
7591
|
-
"react-native-pretty-toast",
|
|
7592
|
-
"react-native-print",
|
|
7593
|
-
"react-native-private-screen",
|
|
7594
7743
|
"react-native-prompt-android",
|
|
7595
|
-
"react-native-pulsar",
|
|
7596
|
-
"react-native-purchasely",
|
|
7597
|
-
"react-native-purchases",
|
|
7598
|
-
"react-native-purchases-ui",
|
|
7599
|
-
"react-native-pure-jwt",
|
|
7600
|
-
"react-native-push-notification",
|
|
7601
|
-
"react-native-qr-decode-image-camera",
|
|
7602
|
-
"react-native-qr-kit",
|
|
7603
|
-
"react-native-quick-actions",
|
|
7604
|
-
"react-native-quick-base64",
|
|
7605
|
-
"react-native-quick-crypto",
|
|
7606
|
-
"react-native-quick-sqlite",
|
|
7607
7744
|
"react-native-radial-gradient",
|
|
7608
|
-
"react-native-randombytes",
|
|
7609
|
-
"react-native-rate",
|
|
7610
|
-
"react-native-rate-app",
|
|
7611
7745
|
"react-native-razorpay",
|
|
7612
|
-
"react-native-reanimated",
|
|
7613
|
-
"react-native-
|
|
7614
|
-
"react-native-
|
|
7615
|
-
"react-native-
|
|
7616
|
-
"react-native-
|
|
7617
|
-
"react-native-
|
|
7618
|
-
"react-native-
|
|
7619
|
-
"react-native-rsa-signer",
|
|
7620
|
-
"react-native-safari-view",
|
|
7621
|
-
"react-native-safe-area-context",
|
|
7622
|
-
"react-native-screen-choreography",
|
|
7623
|
-
"react-native-screen-corner-radius",
|
|
7746
|
+
"react-native-reanimated/platformFunctions/dispatchCommand",
|
|
7747
|
+
"react-native-reanimated/platformFunctions/measure",
|
|
7748
|
+
"react-native-reanimated/platformFunctions/scrollTo",
|
|
7749
|
+
"react-native-reanimated/platformFunctions/setGestureState",
|
|
7750
|
+
"react-native-reanimated/platformFunctions/setNativeProps",
|
|
7751
|
+
"react-native-reanimated/specs/NativeReanimatedModule",
|
|
7752
|
+
"react-native-reanimated/specs/NativeWorkletsModule",
|
|
7624
7753
|
"react-native-screenguard",
|
|
7625
7754
|
"react-native-screens",
|
|
7626
|
-
"react-native-
|
|
7755
|
+
"react-native-screens/components/Screen",
|
|
7627
7756
|
"react-native-screenshot-prevent",
|
|
7628
|
-
"react-native-search-bar",
|
|
7629
|
-
"react-native-secure-key-store",
|
|
7630
|
-
"react-native-securerandom",
|
|
7631
7757
|
"react-native-select-contact",
|
|
7632
7758
|
"react-native-send-intent",
|
|
7633
|
-
"react-native-sensitive-info",
|
|
7634
|
-
"react-native-sensors",
|
|
7635
|
-
"react-native-settings",
|
|
7636
|
-
"react-native-sfsymbols",
|
|
7637
|
-
"react-native-shake",
|
|
7638
|
-
"react-native-share",
|
|
7639
7759
|
"react-native-share-menu",
|
|
7640
7760
|
"react-native-shared-element",
|
|
7641
|
-
"react-native-shared-group-preferences",
|
|
7642
|
-
"react-native-shareplay",
|
|
7643
|
-
"react-native-shiki-engine",
|
|
7644
|
-
"react-native-showtime",
|
|
7645
|
-
"react-native-signature-capture",
|
|
7646
|
-
"react-native-simple-biometrics",
|
|
7647
7761
|
"react-native-simple-toast",
|
|
7648
|
-
"react-native-siri-shortcut",
|
|
7649
|
-
"react-native-skia",
|
|
7650
|
-
"react-native-smart-splash-screen",
|
|
7651
|
-
"react-native-snackbar",
|
|
7652
|
-
"react-native-social-share",
|
|
7653
|
-
"react-native-sound",
|
|
7654
|
-
"react-native-sound-player",
|
|
7655
|
-
"react-native-speech-recognition-kit",
|
|
7656
7762
|
"react-native-spinkit",
|
|
7657
|
-
"react-native-splash-screen",
|
|
7658
|
-
"react-native-splash-screen-newarch",
|
|
7659
|
-
"react-native-splash-view",
|
|
7660
|
-
"react-native-spotify-remote",
|
|
7661
|
-
"react-native-spotlight-search",
|
|
7662
|
-
"react-native-sqlite-2",
|
|
7663
|
-
"react-native-sqlite-storage",
|
|
7664
|
-
"react-native-ssl-manager",
|
|
7665
7763
|
"react-native-ssl-public-key-pinning",
|
|
7666
|
-
"react-native-stallion",
|
|
7667
7764
|
"react-native-star-io10",
|
|
7668
|
-
"react-native-store-age-signals-native-modules",
|
|
7669
|
-
"react-native-store-review",
|
|
7670
|
-
"react-native-svg",
|
|
7671
|
-
"react-native-system-bars",
|
|
7672
7765
|
"react-native-system-navigation-bar",
|
|
7673
|
-
"react-native-system-setting",
|
|
7674
|
-
"react-native-tableview",
|
|
7675
7766
|
"react-native-tcp",
|
|
7676
|
-
"react-native-tcp-socket",
|
|
7677
7767
|
"react-native-teleport",
|
|
7678
|
-
"react-native-tenjin",
|
|
7679
|
-
"react-native-testfairy",
|
|
7680
|
-
"react-native-text-input-mask",
|
|
7681
|
-
"react-native-text-size",
|
|
7682
7768
|
"react-native-theme-switch-animation",
|
|
7683
7769
|
"react-native-theoplayer",
|
|
7684
|
-
"react-native-thermal-receipt-printer",
|
|
7685
|
-
"react-native-tiktok",
|
|
7686
7770
|
"react-native-tiktok-business-sdk",
|
|
7687
|
-
"react-native-timezone",
|
|
7688
|
-
"react-native-tooltip",
|
|
7689
|
-
"react-native-tor",
|
|
7690
|
-
"react-native-touch-id",
|
|
7691
|
-
"react-native-track-player",
|
|
7692
|
-
"react-native-tracking-transparency",
|
|
7693
|
-
"react-native-transformer-text-input",
|
|
7694
|
-
"react-native-ttlock",
|
|
7695
|
-
"react-native-tts",
|
|
7696
|
-
"react-native-tuner-engine",
|
|
7697
|
-
"react-native-turbo-haptics",
|
|
7698
|
-
"react-native-turbo-image",
|
|
7699
|
-
"react-native-turbo-lnd",
|
|
7700
|
-
"react-native-turbo-mock-location-detector",
|
|
7701
|
-
"react-native-turbo-preferences",
|
|
7702
7771
|
"react-native-twilio-video-webrtc",
|
|
7703
7772
|
"react-native-udp",
|
|
7704
7773
|
"react-native-ui-lib",
|
|
7705
7774
|
"react-native-uitextview",
|
|
7706
|
-
"react-native-ulid-jsi",
|
|
7707
|
-
"react-native-unistyles",
|
|
7708
|
-
"react-native-update",
|
|
7709
|
-
"react-native-urovo",
|
|
7710
|
-
"react-native-ux-cam",
|
|
7711
|
-
"react-native-variable-blur",
|
|
7712
|
-
"react-native-vector-icons",
|
|
7713
|
-
"react-native-version-check",
|
|
7714
|
-
"react-native-version-info",
|
|
7715
|
-
"react-native-version-number",
|
|
7716
|
-
"react-native-video",
|
|
7717
|
-
"react-native-video-cache",
|
|
7718
|
-
"react-native-video-duration",
|
|
7719
|
-
"react-native-video-processing",
|
|
7720
|
-
"react-native-video-provider",
|
|
7721
7775
|
"react-native-video-trim",
|
|
7722
|
-
"react-native-videoeditorsdk",
|
|
7723
|
-
"react-native-view-pdf",
|
|
7724
|
-
"react-native-view-recorder",
|
|
7725
|
-
"react-native-view-shot",
|
|
7726
|
-
"react-native-vision-camera",
|
|
7727
|
-
"react-native-vision-camera-barcode-scanner",
|
|
7728
|
-
"react-native-vision-camera-face-detector",
|
|
7729
|
-
"react-native-vision-camera-image-labeler",
|
|
7730
|
-
"react-native-vision-camera-location",
|
|
7731
|
-
"react-native-vision-camera-resizer",
|
|
7732
|
-
"react-native-vision-camera-text-recognition",
|
|
7733
|
-
"react-native-vision-camera-worklets",
|
|
7734
|
-
"react-native-vlc-media-player",
|
|
7735
7776
|
"react-native-voip-push-notification",
|
|
7736
|
-
"react-native-volume-manager",
|
|
7737
|
-
"react-native-vosk",
|
|
7738
7777
|
"react-native-wallet-manager",
|
|
7739
|
-
"react-native-wallet-pass",
|
|
7740
|
-
"react-native-watch-connectivity",
|
|
7741
|
-
"react-native-wear-connectivity",
|
|
7742
|
-
"react-native-web-serial-api",
|
|
7743
|
-
"react-native-webgpu",
|
|
7744
|
-
"react-native-webp-converter",
|
|
7745
7778
|
"react-native-webp-format",
|
|
7746
|
-
"react-native-webrtc",
|
|
7747
|
-
"react-native-webview",
|
|
7748
|
-
"react-native-wechat-lib",
|
|
7749
7779
|
"react-native-wheel-pick",
|
|
7750
7780
|
"react-native-wheel-picker-android",
|
|
7751
|
-
"react-native-whip-whep",
|
|
7752
|
-
"react-native-widget-picker",
|
|
7753
|
-
"react-native-widgetkit",
|
|
7754
|
-
"react-native-wifi-p2p",
|
|
7755
7781
|
"react-native-wifi-reborn",
|
|
7756
|
-
"react-native-window-view",
|
|
7757
7782
|
"react-native-windows",
|
|
7758
|
-
"react-native-
|
|
7759
|
-
"react-native-
|
|
7760
|
-
"react-native-worklets",
|
|
7761
|
-
"react-native-worklets-core",
|
|
7783
|
+
"react-native-worklets/package.json",
|
|
7784
|
+
"react-native-worklets/specs/NativeWorkletsModule",
|
|
7762
7785
|
"react-native-xaml",
|
|
7763
|
-
"react-native-xxhash",
|
|
7764
|
-
"react-native-youtube",
|
|
7765
7786
|
"react-native-zeroconf",
|
|
7766
|
-
"react-native-zip-archive",
|
|
7767
|
-
"realm",
|
|
7768
|
-
"rive-react-native",
|
|
7769
|
-
"rn-apple-healthkit",
|
|
7770
|
-
"rn-card-scanner",
|
|
7771
|
-
"rn-date-format",
|
|
7772
|
-
"rn-fade-wrapper",
|
|
7773
|
-
"rn-fetch-blob",
|
|
7774
|
-
"rn-mlkit-ocr",
|
|
7775
7787
|
"rn-qr-generator",
|
|
7776
7788
|
"rn-secure-storage",
|
|
7777
|
-
"rn-watch-connect",
|
|
7778
|
-
"rn-zendesk",
|
|
7779
|
-
"rollbar-react-native",
|
|
7780
7789
|
"scandit-react-native-datacapture-barcode",
|
|
7781
7790
|
"scandit-react-native-datacapture-core",
|
|
7782
|
-
"scandit-react-native-datacapture-id",
|
|
7783
|
-
"scandit-react-native-datacapture-label",
|
|
7784
|
-
"scandit-react-native-datacapture-label-text",
|
|
7785
|
-
"scandit-react-native-datacapture-parser",
|
|
7786
|
-
"sift-react-native",
|
|
7787
7791
|
"sp-react-native-in-app-updates",
|
|
7788
|
-
"stream-chat-expo",
|
|
7789
7792
|
"stream-chat-react-native",
|
|
7790
|
-
"
|
|
7791
|
-
"uws-react-native",
|
|
7792
|
-
"vision-camera-cropper",
|
|
7793
|
-
"vision-camera-dynamsoft-document-normalizer",
|
|
7794
|
-
"vision-camera-ocr-plugin",
|
|
7795
|
-
"vision-camera-zxing",
|
|
7796
|
-
"whisper.rn"
|
|
7797
|
-
];
|
|
7798
|
-
var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
7799
|
-
...NATIVE_STUB_PACKAGE_NAMES,
|
|
7800
|
-
...LIGHT_NATIVE_PACKAGE_NAMES,
|
|
7801
|
-
"@ammarahmed/react-native-background-fetch",
|
|
7802
|
-
"@ammarahmed/react-native-sodium",
|
|
7803
|
-
"@bsky.app/react-native-uitextview",
|
|
7804
|
-
"@bsky.app/video",
|
|
7805
|
-
"@datadog/mobile-react-native-webview",
|
|
7806
|
-
"@haileyok/bluesky-video",
|
|
7807
|
-
"@react-native-vector-icons/get-image",
|
|
7808
|
-
"@react-navigation/native",
|
|
7809
|
-
"@tamagui/native-registry",
|
|
7810
|
-
"@uniswap/ethers-rs-mobile",
|
|
7811
|
-
"@valora/react-native-keychain",
|
|
7812
|
-
"react-native-app-control",
|
|
7813
|
-
"react-native-blue-crypto",
|
|
7814
|
-
"react-native-dynamic-theme",
|
|
7815
|
-
"react-native-nitro-gzip",
|
|
7816
|
-
"react-native-sectioned-slider"
|
|
7793
|
+
"voltra"
|
|
7817
7794
|
];
|
|
7818
7795
|
|
|
7819
|
-
// ../peach-
|
|
7796
|
+
// ../peach-globals/src/guest-modules/stub-manifest.ts
|
|
7820
7797
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7821
7798
|
|
|
7822
|
-
// ../peach-
|
|
7799
|
+
// ../peach-globals/src/guest-modules/wrapper-real-packages.ts
|
|
7823
7800
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7824
7801
|
var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
|
|
7825
7802
|
expoUiConfirmationDialog: {
|
|
@@ -8292,7 +8269,7 @@ var PEACH_UPSTREAM_MODULES = {
|
|
|
8292
8269
|
...PEACH_REACT_NATIVE_UPSTREAM_MODULES
|
|
8293
8270
|
};
|
|
8294
8271
|
|
|
8295
|
-
// ../peach-
|
|
8272
|
+
// ../peach-globals/src/guest-modules/stub-manifest.ts
|
|
8296
8273
|
var COMPAT_STUBS = {
|
|
8297
8274
|
reactNativeScreens: {
|
|
8298
8275
|
specifier: "react-native-screens",
|
|
@@ -8871,7 +8848,7 @@ async function runAsync(walk, inputs) {
|
|
|
8871
8848
|
function createInstalledPackageReader() {
|
|
8872
8849
|
const hasModules = /* @__PURE__ */ new Map();
|
|
8873
8850
|
const manifests = /* @__PURE__ */ new Map();
|
|
8874
|
-
return function* readInstalledPackage(fromDir,
|
|
8851
|
+
return function* readInstalledPackage(fromDir, name) {
|
|
8875
8852
|
for (let dir = fromDir; ; ) {
|
|
8876
8853
|
if (import_path2.default.basename(dir) !== "node_modules") {
|
|
8877
8854
|
const modules = import_path2.default.join(dir, "node_modules");
|
|
@@ -8881,7 +8858,7 @@ function createInstalledPackageReader() {
|
|
|
8881
8858
|
hasModules.set(dir, present);
|
|
8882
8859
|
}
|
|
8883
8860
|
if (present) {
|
|
8884
|
-
const root = import_path2.default.join(modules,
|
|
8861
|
+
const root = import_path2.default.join(modules, name);
|
|
8885
8862
|
let installed = manifests.get(root);
|
|
8886
8863
|
if (installed === void 0) {
|
|
8887
8864
|
const manifest = yield* readManifest(import_path2.default.join(root, "package.json"));
|
|
@@ -8900,11 +8877,11 @@ function createInstalledPackageReader() {
|
|
|
8900
8877
|
function* installedVersionsWalk(projectRoot, names, selectedPackages) {
|
|
8901
8878
|
const readInstalledPackage = createInstalledPackageReader();
|
|
8902
8879
|
const versions = {};
|
|
8903
|
-
for (const
|
|
8904
|
-
const installed = selectedPackages ? selectedPackages.get(
|
|
8880
|
+
for (const name of [...names].sort()) {
|
|
8881
|
+
const installed = selectedPackages ? selectedPackages.get(name) : yield* readInstalledPackage(projectRoot, name);
|
|
8905
8882
|
const version = installed && Reflect.get(installed.manifest, "version");
|
|
8906
|
-
if (typeof version === "string" && version.length > 0) versions[
|
|
8907
|
-
if (
|
|
8883
|
+
if (typeof version === "string" && version.length > 0) versions[name] = version;
|
|
8884
|
+
if (name === "react-native-worklets" && installed) {
|
|
8908
8885
|
const defaults = yield* readManifest(
|
|
8909
8886
|
import_path2.default.join(installed.root, "src/featureFlags/staticFlags.json")
|
|
8910
8887
|
);
|
|
@@ -8926,8 +8903,8 @@ function* nativePackageVersionsWalk(projectRoot) {
|
|
|
8926
8903
|
...LAZY_STUB_PATTERNS,
|
|
8927
8904
|
...Object.values(COMPAT_STUBS).map((entry) => entry.specifier)
|
|
8928
8905
|
]) {
|
|
8929
|
-
const
|
|
8930
|
-
if (
|
|
8906
|
+
const name = extractPackageFromPath(`node_modules/${specifier}`);
|
|
8907
|
+
if (name) nativeNames.add(name);
|
|
8931
8908
|
}
|
|
8932
8909
|
const manifest = yield* readManifest(import_path2.default.join(appRoot, "package.json"));
|
|
8933
8910
|
if (!manifest) throw new Error("app package.json must contain an object");
|
|
@@ -8945,16 +8922,16 @@ function* nativePackageVersionsWalk(projectRoot) {
|
|
|
8945
8922
|
for (const field of fields) {
|
|
8946
8923
|
const dependencies = Reflect.get(next.manifest, field);
|
|
8947
8924
|
if (typeof dependencies !== "object" || dependencies === null) continue;
|
|
8948
|
-
for (const
|
|
8925
|
+
for (const name of Object.keys(dependencies)) {
|
|
8949
8926
|
if (field === "peerDependencies" && typeof peers === "object" && peers !== null) {
|
|
8950
|
-
const peer = Reflect.get(peers,
|
|
8927
|
+
const peer = Reflect.get(peers, name);
|
|
8951
8928
|
if (typeof peer === "object" && peer !== null && Reflect.get(peer, "optional"))
|
|
8952
8929
|
continue;
|
|
8953
8930
|
}
|
|
8954
|
-
const installed = yield* readInstalledPackage(root,
|
|
8931
|
+
const installed = yield* readInstalledPackage(root, name);
|
|
8955
8932
|
if (!installed) continue;
|
|
8956
|
-
if (nativeNames.has(
|
|
8957
|
-
needed.set(
|
|
8933
|
+
if (nativeNames.has(name) && !needed.has(name))
|
|
8934
|
+
needed.set(name, (yield* readInstalledPackage(appRoot, name)) ?? installed);
|
|
8958
8935
|
pending.push(installed);
|
|
8959
8936
|
}
|
|
8960
8937
|
}
|
|
@@ -10063,7 +10040,7 @@ function applyFetchProxyCors(req, res) {
|
|
|
10063
10040
|
"access-control-expose-headers",
|
|
10064
10041
|
[
|
|
10065
10042
|
...Object.keys(res.getHeaders()).filter(
|
|
10066
|
-
(
|
|
10043
|
+
(name) => !name.startsWith("access-control-")
|
|
10067
10044
|
),
|
|
10068
10045
|
"x-sootsim-set-cookie"
|
|
10069
10046
|
].join(", ")
|
|
@@ -10089,7 +10066,7 @@ function buildAppApiProxyHeaders(reqHeaders, targetUrl) {
|
|
|
10089
10066
|
if (typeof nativeCookie === "string" && nativeCookie)
|
|
10090
10067
|
headers.cookie = decodeURIComponent(nativeCookie);
|
|
10091
10068
|
headers.host = targetUrl.host;
|
|
10092
|
-
if (!Object.keys(headers).some((
|
|
10069
|
+
if (!Object.keys(headers).some((name) => name.toLowerCase() === "mobile-origin")) {
|
|
10093
10070
|
headers.origin = targetUrl.origin;
|
|
10094
10071
|
headers.referer = `${targetUrl.origin}/`;
|
|
10095
10072
|
}
|
|
@@ -10228,7 +10205,7 @@ function handleAppApiRequest(req, res) {
|
|
|
10228
10205
|
res.setHeader("access-control-allow-credentials", "true");
|
|
10229
10206
|
res.setHeader(
|
|
10230
10207
|
"access-control-expose-headers",
|
|
10231
|
-
Object.keys(res.getHeaders()).filter((
|
|
10208
|
+
Object.keys(res.getHeaders()).filter((name) => !name.startsWith("access-control-") && name !== "set-cookie").join(", ")
|
|
10232
10209
|
);
|
|
10233
10210
|
}
|
|
10234
10211
|
});
|
|
@@ -10577,21 +10554,21 @@ function unsupportedSpecifier(specifier) {
|
|
|
10577
10554
|
`replacement modules may only import react, react-native, peach-kit, the packages rnx stubs for this app, and other project files by relative path; '${specifier}' is none of those. vendor the code into a project file, or add the package to peach.config so the simulator bridges it.`
|
|
10578
10555
|
);
|
|
10579
10556
|
}
|
|
10580
|
-
function bridgeDeclaration(
|
|
10557
|
+
function bridgeDeclaration(name, specifier) {
|
|
10581
10558
|
const notReady = (what) => JSON.stringify(`[peach] replacement ${what} bridge is not ready`);
|
|
10582
10559
|
if (specifier === "react") {
|
|
10583
|
-
return `const ${
|
|
10560
|
+
return `const ${name} = ${REACT_BRIDGE}; if (!${name}) throw new Error(${notReady("React")});`;
|
|
10584
10561
|
}
|
|
10585
10562
|
if (specifier === "react-native") {
|
|
10586
|
-
return `const ${
|
|
10563
|
+
return `const ${name} = ${REACT_NATIVE_BRIDGE}; if (!${name}) throw new Error(${notReady("React Native")});`;
|
|
10587
10564
|
}
|
|
10588
10565
|
if (isPeachKitSpecifier(specifier)) {
|
|
10589
|
-
return `const ${
|
|
10566
|
+
return `const ${name} = (globalThis.__peach_kit_modules && globalThis.__peach_kit_modules[${JSON.stringify(specifier)}]) || (${PACKAGE_BRIDGES} || {})[${JSON.stringify(specifier)}]; if (!${name}) throw new Error(${JSON.stringify(`[peach] replacement package bridge ${specifier} is not ready`)});`;
|
|
10590
10567
|
}
|
|
10591
10568
|
if (JSX_RUNTIME_SPECIFIERS.has(specifier)) {
|
|
10592
|
-
return `const ${
|
|
10569
|
+
return `const ${name} = (() => { const react = ${REACT_BRIDGE}; if (!react) throw new Error(${notReady("React")}); const jsx = (type, props, key) => react.createElement(type, key === undefined ? props : { ...props, key }); return { Fragment: react.Fragment, jsx, jsxs: jsx, jsxDEV: jsx }; })();`;
|
|
10593
10570
|
}
|
|
10594
|
-
return `const ${
|
|
10571
|
+
return `const ${name} = (${PACKAGE_BRIDGES} || {})[${JSON.stringify(specifier)}]; if (!${name}) throw new Error(${JSON.stringify(`[peach] replacement package bridge ${specifier} is not ready`)});`;
|
|
10595
10572
|
}
|
|
10596
10573
|
var DEFAULT_INTEROP = "__rnxReplacementDefault";
|
|
10597
10574
|
var DEFAULT_INTEROP_DECLARATION = `const ${DEFAULT_INTEROP} = (bridge) => (bridge && bridge.__esModule ? bridge.default : bridge);`;
|
|
@@ -10623,10 +10600,10 @@ function compileReplacementModule(input) {
|
|
|
10623
10600
|
const bridgeFor = (specifier) => {
|
|
10624
10601
|
const existing = bridgeNames.get(specifier);
|
|
10625
10602
|
if (existing) return existing;
|
|
10626
|
-
const
|
|
10627
|
-
bridgeNames.set(specifier,
|
|
10628
|
-
declarations.push(bridgeDeclaration(
|
|
10629
|
-
return
|
|
10603
|
+
const name = `__rnxReplacementBridge${bridgeNames.size}`;
|
|
10604
|
+
bridgeNames.set(specifier, name);
|
|
10605
|
+
declarations.push(bridgeDeclaration(name, specifier));
|
|
10606
|
+
return name;
|
|
10630
10607
|
};
|
|
10631
10608
|
const edits = [];
|
|
10632
10609
|
const pointAtLocalModule = (specifierToken, specifier) => {
|
|
@@ -11033,14 +11010,14 @@ async function readOneWidgetSources(appRoot) {
|
|
|
11033
11010
|
};
|
|
11034
11011
|
const files = /* @__PURE__ */ new Map();
|
|
11035
11012
|
const sources = {};
|
|
11036
|
-
for (const [
|
|
11013
|
+
for (const [name, file] of Object.entries(sourceFiles)) {
|
|
11037
11014
|
if (!import_node_fs11.default.existsSync(file))
|
|
11038
11015
|
throw new Error(`missing One widget prebuild source ${file}; run one prebuild`);
|
|
11039
11016
|
const bytes = readPackageFile(root, file, MAX_SWIFT_COMPILE_SOURCE_BYTES);
|
|
11040
11017
|
const text = bytes.toString("utf8");
|
|
11041
11018
|
if (!Buffer.from(text).equals(bytes))
|
|
11042
11019
|
throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
|
|
11043
|
-
files.set(
|
|
11020
|
+
files.set(name, text);
|
|
11044
11021
|
sources[import_node_path15.default.relative(root, file).split(import_node_path15.default.sep).join("/")] = (0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex");
|
|
11045
11022
|
}
|
|
11046
11023
|
const contract = files.get("OneWidgetContract.swift") ?? "";
|
|
@@ -11109,11 +11086,11 @@ function requestAuthority(req) {
|
|
|
11109
11086
|
const authority = req.headers[":authority"];
|
|
11110
11087
|
return req.headers.host ?? (typeof authority === "string" ? authority : void 0);
|
|
11111
11088
|
}
|
|
11112
|
-
function exposeHeader(res,
|
|
11089
|
+
function exposeHeader(res, name) {
|
|
11113
11090
|
const exposed = res.getHeader("access-control-expose-headers");
|
|
11114
11091
|
const names = typeof exposed === "string" && exposed ? exposed.split(/,\s*/) : [];
|
|
11115
|
-
if (!names.includes(
|
|
11116
|
-
res.setHeader("access-control-expose-headers", [...names,
|
|
11092
|
+
if (!names.includes(name))
|
|
11093
|
+
res.setHeader("access-control-expose-headers", [...names, name].join(", "));
|
|
11117
11094
|
}
|
|
11118
11095
|
var BUNDLE_SOURCE_REQUEST_HEADER = "x-peach-bundle-source";
|
|
11119
11096
|
var SWIFT_ROUTE_PREFIX = "/__peach/swift";
|