peachsim 0.1.2612 → 0.1.2613
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +15 -58
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-QO4N4OBM.mjs → acorn-ACYPRRES.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-YAK7RNDV.mjs → chunk-4737IGWN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PPDXMRAA.mjs → chunk-4KMXTJK7.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-HEPU5HEE.mjs → chunk-5PYWWIEV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WTTIS3AY.mjs → chunk-ALQTIMJN.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-4JTACUL3.mjs → chunk-EHBHTMJD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HQGPI7FM.mjs → chunk-FI6ANCVK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6VWQEI2U.mjs → chunk-FKR3M3SE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3ZTDI2MF.mjs → chunk-HABUBD7F.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6ZP7JWNX.mjs → chunk-HMBNKM6Z.mjs} +12 -55
- package/dist-lib/esm-chunks/{chunk-VM5QGKMB.mjs → chunk-HXFNAJK2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XPVBWRWY.mjs → chunk-JA2VWD36.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-THHH7IPK.mjs → chunk-JZN72POJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UGPX2JTI.mjs → chunk-LKZBPKR7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BWWPWGZW.mjs → chunk-LOG546WG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GRDRKYB5.mjs → chunk-MYDEA4KG.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-VAIU3RSQ.mjs → chunk-N4OAK5F2.mjs} +14 -14
- package/dist-lib/esm-chunks/{chunk-LDYLSTVC.mjs → chunk-OAXXQLLD.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-O5VA25UA.mjs → chunk-RAWOUEDK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WMQA6U5H.mjs → chunk-S6YGE7GH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZRJG25JE.mjs → chunk-TELXLVVV.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-PDKX5WGD.mjs → chunk-VCFIXUE4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7OAXAYW7.mjs → chunk-WHRUBPSD.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-252KNQUF.mjs → chunk-WN7ZU4KM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HHQHP6NX.mjs → chunk-WYHRRW33.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-UUA4AJ2Q.mjs → metro-layout-parser-E7PUOWFM.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-EVJIROFN.mjs → swift-package-prebuilt-I2HAKHB3.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-M5TKMPU6.mjs → swift-sdk-app-module-KLRMLTO2.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-4FST3VAH.mjs → swift-sdk-image-GYAVDPQT.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-4DUU7RUD.mjs → swift-sdk-image-producer-4XVU6GKS.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +14 -57
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +79 -66
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +12 -55
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +12 -55
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +85 -85
- package/dist-lib/public-origins-lib.json +64 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +11 -10
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +79 -66
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/package.json +1 -1
- package/src/plist.ts +13 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./esm-chunks/chunk-LKZBPKR7.mjs";
|
|
3
3
|
|
|
4
4
|
// src/beta.ts
|
|
5
5
|
var IS_BETA = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
BridgeInputError,
|
|
4
4
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
parseSemanticWaitOptions,
|
|
18
18
|
parseStateOptions,
|
|
19
19
|
parseTapTarget
|
|
20
|
-
} from "./esm-chunks/chunk-
|
|
21
|
-
import "./esm-chunks/chunk-
|
|
22
|
-
import "./esm-chunks/chunk-
|
|
23
|
-
import "./esm-chunks/chunk-
|
|
20
|
+
} from "./esm-chunks/chunk-TELXLVVV.mjs";
|
|
21
|
+
import "./esm-chunks/chunk-5PYWWIEV.mjs";
|
|
22
|
+
import "./esm-chunks/chunk-LOG546WG.mjs";
|
|
23
|
+
import "./esm-chunks/chunk-LKZBPKR7.mjs";
|
|
24
24
|
export {
|
|
25
25
|
BridgeInputError,
|
|
26
26
|
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
4
4
|
REFUSED_PERFORM_STEP_TYPES,
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
readyProbeHasContent,
|
|
14
14
|
readyProbeIsReady,
|
|
15
15
|
refusedPerformStepReason
|
|
16
|
-
} from "./esm-chunks/chunk-
|
|
17
|
-
import "./esm-chunks/chunk-
|
|
16
|
+
} from "./esm-chunks/chunk-5PYWWIEV.mjs";
|
|
17
|
+
import "./esm-chunks/chunk-LKZBPKR7.mjs";
|
|
18
18
|
export {
|
|
19
19
|
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
20
20
|
REFUSED_PERFORM_STEP_TYPES,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (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;
|
|
@@ -58419,10 +58419,6 @@ function parseXmlPlist(source, options2 = {}) {
|
|
|
58419
58419
|
if (root.tag !== "plist") {
|
|
58420
58420
|
throw new Error(`expected <plist> root element, got <${root.tag}>`);
|
|
58421
58421
|
}
|
|
58422
|
-
if (root.children.length === 0) {
|
|
58423
|
-
if (options2.strict) throw new Error("<plist> element has no root value");
|
|
58424
|
-
return void 0;
|
|
58425
|
-
}
|
|
58426
58422
|
if (options2.strict && root.children.length !== 1) {
|
|
58427
58423
|
throw new Error("<plist> element must contain exactly one root value");
|
|
58428
58424
|
}
|
|
@@ -58435,18 +58431,23 @@ function parseXmlPlist(source, options2 = {}) {
|
|
|
58435
58431
|
const visit3 = (node) => {
|
|
58436
58432
|
switch (node.tag) {
|
|
58437
58433
|
case "dict": {
|
|
58438
|
-
const
|
|
58434
|
+
const entries2 = [];
|
|
58439
58435
|
if (options2.strict && node.children.length % 2 !== 0) {
|
|
58440
58436
|
throw new Error("<dict> must contain key/value pairs");
|
|
58441
58437
|
}
|
|
58442
|
-
for (let i = 0; i
|
|
58438
|
+
for (let i = 0; i < node.children.length; i += 2) {
|
|
58443
58439
|
const keyNode = node.children[i];
|
|
58444
58440
|
if (keyNode.tag !== "key") {
|
|
58445
58441
|
throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
|
|
58446
58442
|
}
|
|
58447
|
-
|
|
58443
|
+
const key2 = leafText(keyNode);
|
|
58444
|
+
if (!options2.strict && key2 === "__proto__") {
|
|
58445
|
+
throw new Error("unsupported plist dictionary key __proto__");
|
|
58446
|
+
}
|
|
58447
|
+
const value = node.children[i + 1];
|
|
58448
|
+
entries2.push([key2, value ? visit3(value) : ""]);
|
|
58448
58449
|
}
|
|
58449
|
-
return
|
|
58450
|
+
return Object.fromEntries(entries2);
|
|
58450
58451
|
}
|
|
58451
58452
|
case "array":
|
|
58452
58453
|
return node.children.map(visit3);
|
|
@@ -58476,54 +58477,10 @@ function parseXmlPlist(source, options2 = {}) {
|
|
|
58476
58477
|
throw new Error(`unsupported plist element ${node.tag}`);
|
|
58477
58478
|
}
|
|
58478
58479
|
};
|
|
58479
|
-
return visit3(root.children[0]);
|
|
58480
|
+
return root.children.length === 1 ? visit3(root.children[0]) : root.children.map(visit3);
|
|
58480
58481
|
}
|
|
58481
58482
|
function parsePlist(source) {
|
|
58482
|
-
|
|
58483
|
-
if (root.tag !== "plist") {
|
|
58484
|
-
throw new Error(`expected <plist> root element, got <${root.tag}>`);
|
|
58485
|
-
}
|
|
58486
|
-
if (root.children.length === 0) return {};
|
|
58487
|
-
const visit3 = (node) => {
|
|
58488
|
-
switch (node.tag) {
|
|
58489
|
-
case "dict": {
|
|
58490
|
-
const result = {};
|
|
58491
|
-
for (let i = 0; i + 1 < node.children.length; i += 2) {
|
|
58492
|
-
const keyNode = node.children[i];
|
|
58493
|
-
if (keyNode.tag !== "key") {
|
|
58494
|
-
throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
|
|
58495
|
-
}
|
|
58496
|
-
result[keyNode.text] = visit3(node.children[i + 1]);
|
|
58497
|
-
}
|
|
58498
|
-
return result;
|
|
58499
|
-
}
|
|
58500
|
-
case "array":
|
|
58501
|
-
return node.children.map(visit3);
|
|
58502
|
-
case "string":
|
|
58503
|
-
return node.text;
|
|
58504
|
-
case "integer": {
|
|
58505
|
-
const raw2 = node.text.trim();
|
|
58506
|
-
if (!raw2) throw new Error("empty <integer> element");
|
|
58507
|
-
return Number.parseInt(raw2, 10);
|
|
58508
|
-
}
|
|
58509
|
-
case "real": {
|
|
58510
|
-
const raw2 = node.text.trim();
|
|
58511
|
-
if (!raw2) throw new Error("empty <real> element");
|
|
58512
|
-
return Number.parseFloat(raw2);
|
|
58513
|
-
}
|
|
58514
|
-
case "true":
|
|
58515
|
-
return true;
|
|
58516
|
-
case "false":
|
|
58517
|
-
return false;
|
|
58518
|
-
case "data":
|
|
58519
|
-
return Buffer.from(node.text.replace(/\s+/g, ""), "base64");
|
|
58520
|
-
case "date":
|
|
58521
|
-
return new Date(node.text.trim());
|
|
58522
|
-
default:
|
|
58523
|
-
throw new Error(`unsupported plist element ${node.tag}`);
|
|
58524
|
-
}
|
|
58525
|
-
};
|
|
58526
|
-
return visit3(root.children[0]);
|
|
58483
|
+
return parseXmlPlist(source);
|
|
58527
58484
|
}
|
|
58528
58485
|
function parsePlistSource(source) {
|
|
58529
58486
|
return parseXmlPlist(source);
|
|
@@ -86471,7 +86428,7 @@ var init_swift_standin_digest = __esm({
|
|
|
86471
86428
|
];
|
|
86472
86429
|
RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
86473
86430
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
|
|
86474
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
86431
|
+
STANDIN_SOURCE_DIGEST = true ? "434280be603d7288671556bd3927e00632cd94beab9d58010000add5587f959b" : standinSourceDigest();
|
|
86475
86432
|
}
|
|
86476
86433
|
});
|
|
86477
86434
|
|
|
@@ -104242,7 +104199,7 @@ var init_nitro_superset = __esm({
|
|
|
104242
104199
|
init_nitroContract();
|
|
104243
104200
|
init_swift_standin_digest();
|
|
104244
104201
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
104245
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
104202
|
+
NITRO_COMPILER_DIGEST = true ? "20494153d445fedffb1b95f0fdf3d1eeee4ccb3c6f749f5263fd4af39497d19c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
104246
104203
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
104247
104204
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
104248
104205
|
published = /* @__PURE__ */ new Map();
|
|
@@ -105110,7 +105067,7 @@ var init_expo_eager_seam_contract = __esm({
|
|
|
105110
105067
|
|
|
105111
105068
|
// src/expo-native-compiler-digest.ts
|
|
105112
105069
|
function expoNativeCompilerDigestValue() {
|
|
105113
|
-
return true ? "
|
|
105070
|
+
return true ? "d219d4f0d8c36c633e2f30b94c1aad4765274d4af80c31b77198ed3841aa1d76" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
105114
105071
|
}
|
|
105115
105072
|
var import_node_crypto78;
|
|
105116
105073
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
RNX_SCREEN_CAPTURE_VERSION,
|
|
4
4
|
describeInvalidScreenCapture,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
rnxRasterFrames,
|
|
11
11
|
rnxRasterRegionRequests,
|
|
12
12
|
selectRnxRasterNodeIds
|
|
13
|
-
} from "./esm-chunks/chunk-
|
|
14
|
-
import "./esm-chunks/chunk-
|
|
13
|
+
} from "./esm-chunks/chunk-FKR3M3SE.mjs";
|
|
14
|
+
import "./esm-chunks/chunk-LKZBPKR7.mjs";
|
|
15
15
|
export {
|
|
16
16
|
RNX_SCREEN_CAPTURE_VERSION,
|
|
17
17
|
describeInvalidScreenCapture,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
AGENT_IDENTITY_MAX_CHARS,
|
|
4
4
|
RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
readRnxLaunchUrl,
|
|
32
32
|
rnxCloudCommandScope,
|
|
33
33
|
rnxCloudScopesAllowCommand
|
|
34
|
-
} from "./esm-chunks/chunk-
|
|
35
|
-
import "./esm-chunks/chunk-
|
|
34
|
+
} from "./esm-chunks/chunk-FI6ANCVK.mjs";
|
|
35
|
+
import "./esm-chunks/chunk-LKZBPKR7.mjs";
|
|
36
36
|
export {
|
|
37
37
|
AGENT_IDENTITY_MAX_CHARS,
|
|
38
38
|
RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./esm-chunks/chunk-LKZBPKR7.mjs";
|
|
3
3
|
|
|
4
4
|
// src/cloud-test-args.ts
|
|
5
5
|
var CLOUD_TEST_ARGS_MAX_COUNT = 32;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
sleep
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-HXFNAJK2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRnxScreenCapture
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-FKR3M3SE.mjs";
|
|
8
8
|
import {
|
|
9
9
|
RNX_CLOUD_COMMAND_TYPES,
|
|
10
10
|
RNX_CLOUD_MAX_ARTIFACT_BYTES,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
isRnxCloudCommandType,
|
|
15
15
|
rnxCloudCommandScope,
|
|
16
16
|
rnxCloudScopesAllowCommand
|
|
17
|
-
} from "./esm-chunks/chunk-
|
|
17
|
+
} from "./esm-chunks/chunk-FI6ANCVK.mjs";
|
|
18
18
|
import {
|
|
19
19
|
rnxPublicBrand
|
|
20
|
-
} from "./esm-chunks/chunk-
|
|
20
|
+
} from "./esm-chunks/chunk-S6YGE7GH.mjs";
|
|
21
21
|
import {
|
|
22
22
|
isRecord
|
|
23
|
-
} from "./esm-chunks/chunk-
|
|
23
|
+
} from "./esm-chunks/chunk-LOG546WG.mjs";
|
|
24
24
|
import {
|
|
25
25
|
__publicField
|
|
26
|
-
} from "./esm-chunks/chunk-
|
|
26
|
+
} from "./esm-chunks/chunk-LKZBPKR7.mjs";
|
|
27
27
|
|
|
28
28
|
// src/backend-origin.ts
|
|
29
29
|
var NativeURL = globalThis.URL;
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/config.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isValidRuntimeVersion
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-EHBHTMJD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findBundleFooter
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-RAWOUEDK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./esm-chunks/chunk-
|
|
11
|
-
import "./esm-chunks/chunk-
|
|
10
|
+
} from "./esm-chunks/chunk-LOG546WG.mjs";
|
|
11
|
+
import "./esm-chunks/chunk-LKZBPKR7.mjs";
|
|
12
12
|
|
|
13
13
|
// src/nativeViewSourceContract.ts
|
|
14
14
|
function isNativeViewSource(value) {
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
Node,
|
|
4
4
|
Parser,
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
types,
|
|
23
23
|
types$1,
|
|
24
24
|
version
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-HABUBD7F.mjs";
|
|
26
|
+
import "./chunk-LKZBPKR7.mjs";
|
|
27
27
|
export {
|
|
28
28
|
Node,
|
|
29
29
|
Parser,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
DARWIN_RECORDS_PREFIX,
|
|
4
4
|
KEEP_WASM_NAMES,
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
swiftSdkGuestLookups,
|
|
26
26
|
unslottedFunctions,
|
|
27
27
|
wasmSections
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-N4OAK5F2.mjs";
|
|
29
29
|
import {
|
|
30
30
|
withSwiftRootLock
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ALQTIMJN.mjs";
|
|
32
32
|
import {
|
|
33
33
|
swiftDistributionAt,
|
|
34
34
|
swiftModuleDigest,
|
|
35
35
|
swiftModuleToolchain,
|
|
36
36
|
swiftSdkPaths
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-MYDEA4KG.mjs";
|
|
38
38
|
import {
|
|
39
39
|
SWIFT_WASM_TRIPLE,
|
|
40
40
|
sourceSwiftCheckout,
|
|
41
41
|
swiftCacheDir
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WYHRRW33.mjs";
|
|
43
43
|
|
|
44
44
|
// src/swift-sdk-image.ts
|
|
45
45
|
import { execFile } from "node:child_process";
|
|
@@ -219,7 +219,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
219
219
|
const existing = cached(directory, key);
|
|
220
220
|
if (existing) return existing;
|
|
221
221
|
if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
222
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
222
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-4XVU6GKS.mjs");
|
|
223
223
|
await produceSwiftSdkImage({
|
|
224
224
|
moduleRoot,
|
|
225
225
|
key,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
killOrphanedProcessGroup,
|
|
4
4
|
readProcessTable,
|
|
5
5
|
terminateProcessGroup
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WYHRRW33.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/acorn/dist/acorn.mjs
|
|
4
4
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2613 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/plist.ts
|
|
4
4
|
var NAMED_ENTITIES = {
|
|
@@ -154,10 +154,6 @@ function parseXmlPlist(source, options = {}) {
|
|
|
154
154
|
if (root.tag !== "plist") {
|
|
155
155
|
throw new Error(`expected <plist> root element, got <${root.tag}>`);
|
|
156
156
|
}
|
|
157
|
-
if (root.children.length === 0) {
|
|
158
|
-
if (options.strict) throw new Error("<plist> element has no root value");
|
|
159
|
-
return void 0;
|
|
160
|
-
}
|
|
161
157
|
if (options.strict && root.children.length !== 1) {
|
|
162
158
|
throw new Error("<plist> element must contain exactly one root value");
|
|
163
159
|
}
|
|
@@ -170,18 +166,23 @@ function parseXmlPlist(source, options = {}) {
|
|
|
170
166
|
const visit = (node) => {
|
|
171
167
|
switch (node.tag) {
|
|
172
168
|
case "dict": {
|
|
173
|
-
const
|
|
169
|
+
const entries = [];
|
|
174
170
|
if (options.strict && node.children.length % 2 !== 0) {
|
|
175
171
|
throw new Error("<dict> must contain key/value pairs");
|
|
176
172
|
}
|
|
177
|
-
for (let i = 0; i
|
|
173
|
+
for (let i = 0; i < node.children.length; i += 2) {
|
|
178
174
|
const keyNode = node.children[i];
|
|
179
175
|
if (keyNode.tag !== "key") {
|
|
180
176
|
throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
|
|
181
177
|
}
|
|
182
|
-
|
|
178
|
+
const key = leafText(keyNode);
|
|
179
|
+
if (!options.strict && key === "__proto__") {
|
|
180
|
+
throw new Error("unsupported plist dictionary key __proto__");
|
|
181
|
+
}
|
|
182
|
+
const value = node.children[i + 1];
|
|
183
|
+
entries.push([key, value ? visit(value) : ""]);
|
|
183
184
|
}
|
|
184
|
-
return
|
|
185
|
+
return Object.fromEntries(entries);
|
|
185
186
|
}
|
|
186
187
|
case "array":
|
|
187
188
|
return node.children.map(visit);
|
|
@@ -211,54 +212,10 @@ function parseXmlPlist(source, options = {}) {
|
|
|
211
212
|
throw new Error(`unsupported plist element ${node.tag}`);
|
|
212
213
|
}
|
|
213
214
|
};
|
|
214
|
-
return visit(root.children[0]);
|
|
215
|
+
return root.children.length === 1 ? visit(root.children[0]) : root.children.map(visit);
|
|
215
216
|
}
|
|
216
217
|
function parsePlist(source) {
|
|
217
|
-
|
|
218
|
-
if (root.tag !== "plist") {
|
|
219
|
-
throw new Error(`expected <plist> root element, got <${root.tag}>`);
|
|
220
|
-
}
|
|
221
|
-
if (root.children.length === 0) return {};
|
|
222
|
-
const visit = (node) => {
|
|
223
|
-
switch (node.tag) {
|
|
224
|
-
case "dict": {
|
|
225
|
-
const result = {};
|
|
226
|
-
for (let i = 0; i + 1 < node.children.length; i += 2) {
|
|
227
|
-
const keyNode = node.children[i];
|
|
228
|
-
if (keyNode.tag !== "key") {
|
|
229
|
-
throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
|
|
230
|
-
}
|
|
231
|
-
result[keyNode.text] = visit(node.children[i + 1]);
|
|
232
|
-
}
|
|
233
|
-
return result;
|
|
234
|
-
}
|
|
235
|
-
case "array":
|
|
236
|
-
return node.children.map(visit);
|
|
237
|
-
case "string":
|
|
238
|
-
return node.text;
|
|
239
|
-
case "integer": {
|
|
240
|
-
const raw = node.text.trim();
|
|
241
|
-
if (!raw) throw new Error("empty <integer> element");
|
|
242
|
-
return Number.parseInt(raw, 10);
|
|
243
|
-
}
|
|
244
|
-
case "real": {
|
|
245
|
-
const raw = node.text.trim();
|
|
246
|
-
if (!raw) throw new Error("empty <real> element");
|
|
247
|
-
return Number.parseFloat(raw);
|
|
248
|
-
}
|
|
249
|
-
case "true":
|
|
250
|
-
return true;
|
|
251
|
-
case "false":
|
|
252
|
-
return false;
|
|
253
|
-
case "data":
|
|
254
|
-
return Buffer.from(node.text.replace(/\s+/g, ""), "base64");
|
|
255
|
-
case "date":
|
|
256
|
-
return new Date(node.text.trim());
|
|
257
|
-
default:
|
|
258
|
-
throw new Error(`unsupported plist element ${node.tag}`);
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
return visit(root.children[0]);
|
|
218
|
+
return parseXmlPlist(source);
|
|
262
219
|
}
|
|
263
220
|
function parsePlistSource(source) {
|
|
264
221
|
return parseXmlPlist(source);
|