peachsim 0.1.2521 → 0.1.2522
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 +17 -6
- 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-4JVXGEDW.mjs → acorn-OGZREIM4.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-YGYTY5RM.mjs → chunk-2Q53CRLG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YNLZCNHF.mjs → chunk-2XQHYCZJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FHMICG4V.mjs → chunk-A4ZCFPTK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-33NEBPBL.mjs → chunk-AVBUUFTZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KBUZQIKU.mjs → chunk-CG7RQV56.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3HKF2MNZ.mjs → chunk-DLF3CTZM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HBYQWZJW.mjs → chunk-FUDMLXHZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WCBTD7CJ.mjs → chunk-GMZLOA4S.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-BYCC3XF7.mjs → chunk-ICKVBXFK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MDWKX5GI.mjs → chunk-KENKG25P.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-D37M2XQX.mjs → chunk-KXW4QWDW.mjs} +13 -13
- package/dist-lib/esm-chunks/{chunk-HY6PNY4A.mjs → chunk-LTFAADDL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KFVMTY3M.mjs → chunk-MJEXU4Y7.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-EH47OK5J.mjs → chunk-NBBOZWZ2.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-R2D667KZ.mjs → chunk-NILZGSTD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4GCQVV36.mjs → chunk-NLSTKVXZ.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-TIH3DEXP.mjs → chunk-TLGRHIFC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X3FFTU6E.mjs → chunk-VHMUVOWZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HSKIQSPO.mjs → chunk-Y3M6LKXO.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-NSGZF3QW.mjs → chunk-YKNY6EQ4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-D4MWPIVL.mjs → chunk-Z2ZREI4K.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-VJOMJGRY.mjs → metro-layout-parser-C3NFBOIV.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-WDK4LE54.mjs → swift-package-prebuilt-7XHCRW53.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-W22UVP5E.mjs → swift-sdk-app-module-ZIM56PXX.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-5P6YHUKB.mjs → swift-sdk-image-YOA3HATE.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-S5ZJTUTW.mjs → swift-sdk-image-producer-V6VSCQUU.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +16 -5
- 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 +115 -82
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -4
- 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 +2 -2
- 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 +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +69 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +7 -7
- package/dist-lib/skills.cjs +135 -102
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +0 -3
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/one-native-source.ts +19 -1
- package/src/swift-host.ts +31 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2522 | (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;
|
|
@@ -5704,13 +5704,13 @@ var init_swift_standin_digest = __esm({
|
|
|
5704
5704
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
5705
5705
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
5706
5706
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
5707
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
5707
|
+
STANDIN_SOURCE_DIGEST = true ? "f0b0ca3857062e6a7952520613c3225f9c50ba8242e781ff83bd00e9a2308146" : standinSourceDigest();
|
|
5708
5708
|
}
|
|
5709
5709
|
});
|
|
5710
5710
|
|
|
5711
5711
|
// src/expo-native-compiler-digest.ts
|
|
5712
5712
|
function expoNativeCompilerDigestValue() {
|
|
5713
|
-
return true ? "
|
|
5713
|
+
return true ? "a068645caf73cdf37ff07ca738b60e7a14ba8b9ead9468a71c3ea1484247fd24" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
5714
5714
|
}
|
|
5715
5715
|
var import_node_crypto11;
|
|
5716
5716
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -17624,7 +17624,7 @@ function enumValues(graphs2, surface, framework, toolchainBin, search, work, ori
|
|
|
17624
17624
|
throw new Error(
|
|
17625
17625
|
`clang could not read its enum values: ${run17.stderr.trim().slice(0, 400)}`
|
|
17626
17626
|
);
|
|
17627
|
-
const
|
|
17627
|
+
const constants5 = /* @__PURE__ */ new Map();
|
|
17628
17628
|
const walk4 = (node) => {
|
|
17629
17629
|
if (Array.isArray(node)) {
|
|
17630
17630
|
for (const child of node) walk4(child);
|
|
@@ -17643,7 +17643,7 @@ function enumValues(graphs2, surface, framework, toolchainBin, search, work, ori
|
|
|
17643
17643
|
for (const child of inner) {
|
|
17644
17644
|
if (Reflect.get(child, "kind") !== "EnumConstantDecl") continue;
|
|
17645
17645
|
const current2 = wrap(constantValue(child) ?? next);
|
|
17646
|
-
|
|
17646
|
+
constants5.set(String(Reflect.get(child, "name")), current2);
|
|
17647
17647
|
next = current2 + 1n;
|
|
17648
17648
|
}
|
|
17649
17649
|
return;
|
|
@@ -17652,7 +17652,7 @@ function enumValues(graphs2, surface, framework, toolchainBin, search, work, ori
|
|
|
17652
17652
|
};
|
|
17653
17653
|
walk4(JSON.parse(run17.stdout));
|
|
17654
17654
|
for (const [id, name3] of wanted) {
|
|
17655
|
-
const value =
|
|
17655
|
+
const value = constants5.get(name3);
|
|
17656
17656
|
if (value !== void 0) values.set(id, value.toString());
|
|
17657
17657
|
}
|
|
17658
17658
|
return values;
|
|
@@ -39938,7 +39938,7 @@ var init_swift_guest_archive = __esm({
|
|
|
39938
39938
|
});
|
|
39939
39939
|
|
|
39940
39940
|
// ../peach-kit/src/nativeWasmContract.ts
|
|
39941
|
-
var NATIVE_IMAGE_SECTION, NATIVE_TABLE_ABI, NATIVE_TABLE_IMPORT_MODULE, NATIVE_TABLE_ADAPT_IMPORT, NATIVE_DYLD_FUNCTION_IMPORT, NATIVE_DYLD_PLACE_EXPORT, NATIVE_DYLD_SECTION, NATIVE_LAZY_IMPORT_MODULE, NATIVE_SDK_IMPORT_MODULE, NATIVE_SDK_THUNK_SECTION, NATIVE_LAZY_SLOT_IMPORT, NATIVE_LAZY_SECTION, NATIVE_LAZY_DIGEST_BYTES, NATIVE_LAZY_PART_BYTES, NATIVE_LAZY_MAX_PARTS, NATIVE_PROFILE_SECTION, NATIVE_PROFILE_IMPORT, NATIVE_PROFILE_MEMORY, NATIVE_PROFILE_DUMP, NATIVE_PROFILE_ENDPOINT, NATIVE_TABLE_RESERVE_SLOTS;
|
|
39941
|
+
var NATIVE_IMAGE_SECTION, NATIVE_TABLE_ABI, NATIVE_TABLE_IMPORT_MODULE, NATIVE_TABLE_ADAPT_IMPORT, NATIVE_DYLD_FUNCTION_IMPORT, NATIVE_DYLD_PLACE_EXPORT, NATIVE_DYLD_SECTION, NATIVE_LAZY_IMPORT_MODULE, NATIVE_SDK_IMPORT_MODULE, NATIVE_SDK_THUNK_SECTION, NATIVE_LAZY_SLOT_IMPORT, NATIVE_LAZY_SECTION, NATIVE_LAZY_DIGEST_BYTES, NATIVE_LAZY_PART_BYTES, NATIVE_LAZY_MAX_PARTS, NATIVE_PROFILE_SECTION, NATIVE_PROFILE_IMPORT, NATIVE_PROFILE_MEMORY, NATIVE_PROFILE_DUMP, NATIVE_PROFILE_ENDPOINT, SWIFT_ARTIFACT_SHA256_HEADER, NATIVE_TABLE_RESERVE_SLOTS;
|
|
39942
39942
|
var init_nativeWasmContract = __esm({
|
|
39943
39943
|
"../peach-kit/src/nativeWasmContract.ts"() {
|
|
39944
39944
|
"use strict";
|
|
@@ -39962,6 +39962,7 @@ var init_nativeWasmContract = __esm({
|
|
|
39962
39962
|
NATIVE_PROFILE_MEMORY = "profile-data";
|
|
39963
39963
|
NATIVE_PROFILE_DUMP = "__write_profile";
|
|
39964
39964
|
NATIVE_PROFILE_ENDPOINT = "/__peach/swift-startup-profile";
|
|
39965
|
+
SWIFT_ARTIFACT_SHA256_HEADER = "x-peach-swift-sha256";
|
|
39965
39966
|
NATIVE_TABLE_RESERVE_SLOTS = 4096;
|
|
39966
39967
|
}
|
|
39967
39968
|
});
|
|
@@ -57940,7 +57941,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
57940
57941
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57941
57942
|
MULTI_MANIFEST_VERSION = 76;
|
|
57942
57943
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57943
|
-
compilerSourceDigest = true ? "
|
|
57944
|
+
compilerSourceDigest = true ? "952ab7240f001281c94c716af8613ec129cfe2f6373e7d4d07f9729dfcb1c640" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
57944
57945
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57945
57946
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
57946
57947
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -91854,7 +91855,7 @@ var require_crc = __commonJS({
|
|
|
91854
91855
|
var require_parser = __commonJS({
|
|
91855
91856
|
"../../node_modules/pngjs/lib/parser.js"(exports2, module2) {
|
|
91856
91857
|
"use strict";
|
|
91857
|
-
var
|
|
91858
|
+
var constants5 = require_constants();
|
|
91858
91859
|
var CrcCalculator = require_crc();
|
|
91859
91860
|
var Parser2 = module2.exports = function(options2, dependencies) {
|
|
91860
91861
|
this._options = options2;
|
|
@@ -91865,12 +91866,12 @@ var require_parser = __commonJS({
|
|
|
91865
91866
|
this._palette = [];
|
|
91866
91867
|
this._colorType = 0;
|
|
91867
91868
|
this._chunks = {};
|
|
91868
|
-
this._chunks[
|
|
91869
|
-
this._chunks[
|
|
91870
|
-
this._chunks[
|
|
91871
|
-
this._chunks[
|
|
91872
|
-
this._chunks[
|
|
91873
|
-
this._chunks[
|
|
91869
|
+
this._chunks[constants5.TYPE_IHDR] = this._handleIHDR.bind(this);
|
|
91870
|
+
this._chunks[constants5.TYPE_IEND] = this._handleIEND.bind(this);
|
|
91871
|
+
this._chunks[constants5.TYPE_IDAT] = this._handleIDAT.bind(this);
|
|
91872
|
+
this._chunks[constants5.TYPE_PLTE] = this._handlePLTE.bind(this);
|
|
91873
|
+
this._chunks[constants5.TYPE_tRNS] = this._handleTRNS.bind(this);
|
|
91874
|
+
this._chunks[constants5.TYPE_gAMA] = this._handleGAMA.bind(this);
|
|
91874
91875
|
this.read = dependencies.read;
|
|
91875
91876
|
this.error = dependencies.error;
|
|
91876
91877
|
this.metadata = dependencies.metadata;
|
|
@@ -91885,10 +91886,10 @@ var require_parser = __commonJS({
|
|
|
91885
91886
|
};
|
|
91886
91887
|
};
|
|
91887
91888
|
Parser2.prototype.start = function() {
|
|
91888
|
-
this.read(
|
|
91889
|
+
this.read(constants5.PNG_SIGNATURE.length, this._parseSignature.bind(this));
|
|
91889
91890
|
};
|
|
91890
91891
|
Parser2.prototype._parseSignature = function(data) {
|
|
91891
|
-
let signature2 =
|
|
91892
|
+
let signature2 = constants5.PNG_SIGNATURE;
|
|
91892
91893
|
for (let i = 0; i < signature2.length; i++) {
|
|
91893
91894
|
if (data[i] !== signature2[i]) {
|
|
91894
91895
|
this.error(new Error("Invalid file signature"));
|
|
@@ -91905,7 +91906,7 @@ var require_parser = __commonJS({
|
|
|
91905
91906
|
name3 += String.fromCharCode(data[i]);
|
|
91906
91907
|
}
|
|
91907
91908
|
let ancillary = Boolean(data[4] & 32);
|
|
91908
|
-
if (!this._hasIHDR && type !==
|
|
91909
|
+
if (!this._hasIHDR && type !== constants5.TYPE_IHDR) {
|
|
91909
91910
|
this.error(new Error("Expected IHDR on beggining"));
|
|
91910
91911
|
return;
|
|
91911
91912
|
}
|
|
@@ -91953,7 +91954,7 @@ var require_parser = __commonJS({
|
|
|
91953
91954
|
this.error(new Error("Unsupported bit depth " + depth));
|
|
91954
91955
|
return;
|
|
91955
91956
|
}
|
|
91956
|
-
if (!(colorType in
|
|
91957
|
+
if (!(colorType in constants5.COLORTYPE_TO_BPP_MAP)) {
|
|
91957
91958
|
this.error(new Error("Unsupported color type"));
|
|
91958
91959
|
return;
|
|
91959
91960
|
}
|
|
@@ -91970,16 +91971,16 @@ var require_parser = __commonJS({
|
|
|
91970
91971
|
return;
|
|
91971
91972
|
}
|
|
91972
91973
|
this._colorType = colorType;
|
|
91973
|
-
let bpp =
|
|
91974
|
+
let bpp = constants5.COLORTYPE_TO_BPP_MAP[this._colorType];
|
|
91974
91975
|
this._hasIHDR = true;
|
|
91975
91976
|
this.metadata({
|
|
91976
91977
|
width,
|
|
91977
91978
|
height,
|
|
91978
91979
|
depth,
|
|
91979
91980
|
interlace: Boolean(interlace),
|
|
91980
|
-
palette: Boolean(colorType &
|
|
91981
|
-
color: Boolean(colorType &
|
|
91982
|
-
alpha: Boolean(colorType &
|
|
91981
|
+
palette: Boolean(colorType & constants5.COLORTYPE_PALETTE),
|
|
91982
|
+
color: Boolean(colorType & constants5.COLORTYPE_COLOR),
|
|
91983
|
+
alpha: Boolean(colorType & constants5.COLORTYPE_ALPHA),
|
|
91983
91984
|
bpp,
|
|
91984
91985
|
colorType
|
|
91985
91986
|
});
|
|
@@ -92003,7 +92004,7 @@ var require_parser = __commonJS({
|
|
|
92003
92004
|
};
|
|
92004
92005
|
Parser2.prototype._parseTRNS = function(data) {
|
|
92005
92006
|
this._crc.write(data);
|
|
92006
|
-
if (this._colorType ===
|
|
92007
|
+
if (this._colorType === constants5.COLORTYPE_PALETTE_COLOR) {
|
|
92007
92008
|
if (this._palette.length === 0) {
|
|
92008
92009
|
this.error(new Error("Transparency chunk must be after palette"));
|
|
92009
92010
|
return;
|
|
@@ -92017,10 +92018,10 @@ var require_parser = __commonJS({
|
|
|
92017
92018
|
}
|
|
92018
92019
|
this.palette(this._palette);
|
|
92019
92020
|
}
|
|
92020
|
-
if (this._colorType ===
|
|
92021
|
+
if (this._colorType === constants5.COLORTYPE_GRAYSCALE) {
|
|
92021
92022
|
this.transColor([data.readUInt16BE(0)]);
|
|
92022
92023
|
}
|
|
92023
|
-
if (this._colorType ===
|
|
92024
|
+
if (this._colorType === constants5.COLORTYPE_COLOR) {
|
|
92024
92025
|
this.transColor([
|
|
92025
92026
|
data.readUInt16BE(0),
|
|
92026
92027
|
data.readUInt16BE(2),
|
|
@@ -92034,7 +92035,7 @@ var require_parser = __commonJS({
|
|
|
92034
92035
|
};
|
|
92035
92036
|
Parser2.prototype._parseGAMA = function(data) {
|
|
92036
92037
|
this._crc.write(data);
|
|
92037
|
-
this.gamma(data.readUInt32BE(0) /
|
|
92038
|
+
this.gamma(data.readUInt32BE(0) / constants5.GAMMA_DIVISION);
|
|
92038
92039
|
this._handleChunkEnd();
|
|
92039
92040
|
};
|
|
92040
92041
|
Parser2.prototype._handleIDAT = function(length) {
|
|
@@ -92046,7 +92047,7 @@ var require_parser = __commonJS({
|
|
|
92046
92047
|
};
|
|
92047
92048
|
Parser2.prototype._parseIDAT = function(length, data) {
|
|
92048
92049
|
this._crc.write(data);
|
|
92049
|
-
if (this._colorType ===
|
|
92050
|
+
if (this._colorType === constants5.COLORTYPE_PALETTE_COLOR && this._palette.length === 0) {
|
|
92050
92051
|
throw new Error("Expected palette not found");
|
|
92051
92052
|
}
|
|
92052
92053
|
this.inflateData(data);
|
|
@@ -92534,9 +92535,9 @@ var require_parser_async = __commonJS({
|
|
|
92534
92535
|
var require_bitpacker = __commonJS({
|
|
92535
92536
|
"../../node_modules/pngjs/lib/bitpacker.js"(exports2, module2) {
|
|
92536
92537
|
"use strict";
|
|
92537
|
-
var
|
|
92538
|
+
var constants5 = require_constants();
|
|
92538
92539
|
module2.exports = function(dataIn, width, height, options2) {
|
|
92539
|
-
let outHasAlpha = [
|
|
92540
|
+
let outHasAlpha = [constants5.COLORTYPE_COLOR_ALPHA, constants5.COLORTYPE_ALPHA].indexOf(
|
|
92540
92541
|
options2.colorType
|
|
92541
92542
|
) !== -1;
|
|
92542
92543
|
if (options2.colorType === options2.inputColorType) {
|
|
@@ -92556,11 +92557,11 @@ var require_bitpacker = __commonJS({
|
|
|
92556
92557
|
}
|
|
92557
92558
|
let data = options2.bitDepth !== 16 ? dataIn : new Uint16Array(dataIn.buffer);
|
|
92558
92559
|
let maxValue = 255;
|
|
92559
|
-
let inBpp =
|
|
92560
|
+
let inBpp = constants5.COLORTYPE_TO_BPP_MAP[options2.inputColorType];
|
|
92560
92561
|
if (inBpp === 4 && !options2.inputHasAlpha) {
|
|
92561
92562
|
inBpp = 3;
|
|
92562
92563
|
}
|
|
92563
|
-
let outBpp =
|
|
92564
|
+
let outBpp = constants5.COLORTYPE_TO_BPP_MAP[options2.colorType];
|
|
92564
92565
|
if (options2.bitDepth === 16) {
|
|
92565
92566
|
maxValue = 65535;
|
|
92566
92567
|
outBpp *= 2;
|
|
@@ -92584,24 +92585,24 @@ var require_bitpacker = __commonJS({
|
|
|
92584
92585
|
let blue;
|
|
92585
92586
|
let alpha = maxValue;
|
|
92586
92587
|
switch (options2.inputColorType) {
|
|
92587
|
-
case
|
|
92588
|
+
case constants5.COLORTYPE_COLOR_ALPHA:
|
|
92588
92589
|
alpha = data[inIndex + 3];
|
|
92589
92590
|
red = data[inIndex];
|
|
92590
92591
|
green = data[inIndex + 1];
|
|
92591
92592
|
blue = data[inIndex + 2];
|
|
92592
92593
|
break;
|
|
92593
|
-
case
|
|
92594
|
+
case constants5.COLORTYPE_COLOR:
|
|
92594
92595
|
red = data[inIndex];
|
|
92595
92596
|
green = data[inIndex + 1];
|
|
92596
92597
|
blue = data[inIndex + 2];
|
|
92597
92598
|
break;
|
|
92598
|
-
case
|
|
92599
|
+
case constants5.COLORTYPE_ALPHA:
|
|
92599
92600
|
alpha = data[inIndex + 1];
|
|
92600
92601
|
red = data[inIndex];
|
|
92601
92602
|
green = red;
|
|
92602
92603
|
blue = red;
|
|
92603
92604
|
break;
|
|
92604
|
-
case
|
|
92605
|
+
case constants5.COLORTYPE_GRAYSCALE:
|
|
92605
92606
|
red = data[inIndex];
|
|
92606
92607
|
green = red;
|
|
92607
92608
|
blue = red;
|
|
@@ -92634,8 +92635,8 @@ var require_bitpacker = __commonJS({
|
|
|
92634
92635
|
for (let x = 0; x < width; x++) {
|
|
92635
92636
|
let rgba = getRGBA(data, inIndex);
|
|
92636
92637
|
switch (options2.colorType) {
|
|
92637
|
-
case
|
|
92638
|
-
case
|
|
92638
|
+
case constants5.COLORTYPE_COLOR_ALPHA:
|
|
92639
|
+
case constants5.COLORTYPE_COLOR:
|
|
92639
92640
|
if (options2.bitDepth === 8) {
|
|
92640
92641
|
outData[outIndex] = rgba.red;
|
|
92641
92642
|
outData[outIndex + 1] = rgba.green;
|
|
@@ -92652,8 +92653,8 @@ var require_bitpacker = __commonJS({
|
|
|
92652
92653
|
}
|
|
92653
92654
|
}
|
|
92654
92655
|
break;
|
|
92655
|
-
case
|
|
92656
|
-
case
|
|
92656
|
+
case constants5.COLORTYPE_ALPHA:
|
|
92657
|
+
case constants5.COLORTYPE_GRAYSCALE: {
|
|
92657
92658
|
let grayscale = (rgba.red + rgba.green + rgba.blue) / 3;
|
|
92658
92659
|
if (options2.bitDepth === 8) {
|
|
92659
92660
|
outData[outIndex] = grayscale;
|
|
@@ -92826,7 +92827,7 @@ var require_filter_pack = __commonJS({
|
|
|
92826
92827
|
var require_packer = __commonJS({
|
|
92827
92828
|
"../../node_modules/pngjs/lib/packer.js"(exports2, module2) {
|
|
92828
92829
|
"use strict";
|
|
92829
|
-
var
|
|
92830
|
+
var constants5 = require_constants();
|
|
92830
92831
|
var CrcStream = require_crc();
|
|
92831
92832
|
var bitPacker = require_bitpacker();
|
|
92832
92833
|
var filter = require_filter_pack();
|
|
@@ -92839,23 +92840,23 @@ var require_packer = __commonJS({
|
|
|
92839
92840
|
options2.inputHasAlpha = options2.inputHasAlpha != null ? options2.inputHasAlpha : true;
|
|
92840
92841
|
options2.deflateFactory = options2.deflateFactory || zlib4.createDeflate;
|
|
92841
92842
|
options2.bitDepth = options2.bitDepth || 8;
|
|
92842
|
-
options2.colorType = typeof options2.colorType === "number" ? options2.colorType :
|
|
92843
|
-
options2.inputColorType = typeof options2.inputColorType === "number" ? options2.inputColorType :
|
|
92843
|
+
options2.colorType = typeof options2.colorType === "number" ? options2.colorType : constants5.COLORTYPE_COLOR_ALPHA;
|
|
92844
|
+
options2.inputColorType = typeof options2.inputColorType === "number" ? options2.inputColorType : constants5.COLORTYPE_COLOR_ALPHA;
|
|
92844
92845
|
if ([
|
|
92845
|
-
|
|
92846
|
-
|
|
92847
|
-
|
|
92848
|
-
|
|
92846
|
+
constants5.COLORTYPE_GRAYSCALE,
|
|
92847
|
+
constants5.COLORTYPE_COLOR,
|
|
92848
|
+
constants5.COLORTYPE_COLOR_ALPHA,
|
|
92849
|
+
constants5.COLORTYPE_ALPHA
|
|
92849
92850
|
].indexOf(options2.colorType) === -1) {
|
|
92850
92851
|
throw new Error(
|
|
92851
92852
|
"option color type:" + options2.colorType + " is not supported at present"
|
|
92852
92853
|
);
|
|
92853
92854
|
}
|
|
92854
92855
|
if ([
|
|
92855
|
-
|
|
92856
|
-
|
|
92857
|
-
|
|
92858
|
-
|
|
92856
|
+
constants5.COLORTYPE_GRAYSCALE,
|
|
92857
|
+
constants5.COLORTYPE_COLOR,
|
|
92858
|
+
constants5.COLORTYPE_COLOR_ALPHA,
|
|
92859
|
+
constants5.COLORTYPE_ALPHA
|
|
92859
92860
|
].indexOf(options2.inputColorType) === -1) {
|
|
92860
92861
|
throw new Error(
|
|
92861
92862
|
"option input color type:" + options2.inputColorType + " is not supported at present"
|
|
@@ -92879,7 +92880,7 @@ var require_packer = __commonJS({
|
|
|
92879
92880
|
};
|
|
92880
92881
|
Packer.prototype.filterData = function(data, width, height) {
|
|
92881
92882
|
let packedData = bitPacker(data, width, height, this._options);
|
|
92882
|
-
let bpp =
|
|
92883
|
+
let bpp = constants5.COLORTYPE_TO_BPP_MAP[this._options.colorType];
|
|
92883
92884
|
let filteredData = filter(packedData, width, height, this._options, bpp);
|
|
92884
92885
|
return filteredData;
|
|
92885
92886
|
};
|
|
@@ -92899,8 +92900,8 @@ var require_packer = __commonJS({
|
|
|
92899
92900
|
};
|
|
92900
92901
|
Packer.prototype.packGAMA = function(gamma) {
|
|
92901
92902
|
let buf = Buffer.alloc(4);
|
|
92902
|
-
buf.writeUInt32BE(Math.floor(gamma *
|
|
92903
|
-
return this._packChunk(
|
|
92903
|
+
buf.writeUInt32BE(Math.floor(gamma * constants5.GAMMA_DIVISION), 0);
|
|
92904
|
+
return this._packChunk(constants5.TYPE_gAMA, buf);
|
|
92904
92905
|
};
|
|
92905
92906
|
Packer.prototype.packIHDR = function(width, height) {
|
|
92906
92907
|
let buf = Buffer.alloc(13);
|
|
@@ -92911,13 +92912,13 @@ var require_packer = __commonJS({
|
|
|
92911
92912
|
buf[10] = 0;
|
|
92912
92913
|
buf[11] = 0;
|
|
92913
92914
|
buf[12] = 0;
|
|
92914
|
-
return this._packChunk(
|
|
92915
|
+
return this._packChunk(constants5.TYPE_IHDR, buf);
|
|
92915
92916
|
};
|
|
92916
92917
|
Packer.prototype.packIDAT = function(data) {
|
|
92917
|
-
return this._packChunk(
|
|
92918
|
+
return this._packChunk(constants5.TYPE_IDAT, data);
|
|
92918
92919
|
};
|
|
92919
92920
|
Packer.prototype.packIEND = function() {
|
|
92920
|
-
return this._packChunk(
|
|
92921
|
+
return this._packChunk(constants5.TYPE_IEND, null);
|
|
92921
92922
|
};
|
|
92922
92923
|
}
|
|
92923
92924
|
});
|
|
@@ -92928,7 +92929,7 @@ var require_packer_async = __commonJS({
|
|
|
92928
92929
|
"use strict";
|
|
92929
92930
|
var util = require("util");
|
|
92930
92931
|
var Stream = require("stream");
|
|
92931
|
-
var
|
|
92932
|
+
var constants5 = require_constants();
|
|
92932
92933
|
var Packer = require_packer();
|
|
92933
92934
|
var PackerAsync = module2.exports = function(opt) {
|
|
92934
92935
|
Stream.call(this);
|
|
@@ -92939,7 +92940,7 @@ var require_packer_async = __commonJS({
|
|
|
92939
92940
|
};
|
|
92940
92941
|
util.inherits(PackerAsync, Stream);
|
|
92941
92942
|
PackerAsync.prototype.pack = function(data, width, height, gamma) {
|
|
92942
|
-
this.emit("data", Buffer.from(
|
|
92943
|
+
this.emit("data", Buffer.from(constants5.PNG_SIGNATURE));
|
|
92943
92944
|
this.emit("data", this._packer.packIHDR(width, height));
|
|
92944
92945
|
if (gamma) {
|
|
92945
92946
|
this.emit("data", this._packer.packGAMA(gamma));
|
|
@@ -93267,7 +93268,7 @@ var require_packer_sync = __commonJS({
|
|
|
93267
93268
|
if (!zlib4.deflateSync) {
|
|
93268
93269
|
hasSyncZlib = false;
|
|
93269
93270
|
}
|
|
93270
|
-
var
|
|
93271
|
+
var constants5 = require_constants();
|
|
93271
93272
|
var Packer = require_packer();
|
|
93272
93273
|
module2.exports = function(metaData, opt) {
|
|
93273
93274
|
if (!hasSyncZlib) {
|
|
@@ -93278,7 +93279,7 @@ var require_packer_sync = __commonJS({
|
|
|
93278
93279
|
let options2 = opt || {};
|
|
93279
93280
|
let packer = new Packer(options2);
|
|
93280
93281
|
let chunks = [];
|
|
93281
|
-
chunks.push(Buffer.from(
|
|
93282
|
+
chunks.push(Buffer.from(constants5.PNG_SIGNATURE));
|
|
93282
93283
|
chunks.push(packer.packIHDR(metaData.width, metaData.height));
|
|
93283
93284
|
if (metaData.gamma) {
|
|
93284
93285
|
chunks.push(packer.packGAMA(metaData.gamma));
|
|
@@ -97141,6 +97142,14 @@ function nativeSourceFiles(packagePath) {
|
|
|
97141
97142
|
if (sourceEntries().has(packagePath)) return [];
|
|
97142
97143
|
return [NATIVE_DESCRIPTOR, NATIVE_GLUE].map((name3) => import_node_path132.default.join(packagePath, name3)).filter((file) => import_node_fs132.default.existsSync(file));
|
|
97143
97144
|
}
|
|
97145
|
+
function swiftArtifactContentDigest(bytes) {
|
|
97146
|
+
let digest3 = swiftArtifactDigests.get(bytes);
|
|
97147
|
+
if (!digest3) {
|
|
97148
|
+
digest3 = (0, import_node_crypto79.createHash)("sha256").update(bytes).digest("hex");
|
|
97149
|
+
swiftArtifactDigests.set(bytes, digest3);
|
|
97150
|
+
}
|
|
97151
|
+
return digest3;
|
|
97152
|
+
}
|
|
97144
97153
|
function projectFor(packagePath, hosted, signal) {
|
|
97145
97154
|
packagePath = import_node_fs132.default.realpathSync(packagePath);
|
|
97146
97155
|
const existing = projects().get(packagePath);
|
|
@@ -99623,6 +99632,7 @@ function scopedArtifact(project2, entry, moduleRoot, signal) {
|
|
|
99623
99632
|
);
|
|
99624
99633
|
}).then(
|
|
99625
99634
|
(artifact) => {
|
|
99635
|
+
swiftArtifactContentDigest(artifact.bytes);
|
|
99626
99636
|
project2.artifact = artifact;
|
|
99627
99637
|
project2.artifacts = [
|
|
99628
99638
|
artifact,
|
|
@@ -99803,7 +99813,7 @@ async function swiftPackageMetadata(packagePath, packageName2, moduleRoot, origi
|
|
|
99803
99813
|
});
|
|
99804
99814
|
const image = {
|
|
99805
99815
|
...artifact,
|
|
99806
|
-
hash: (
|
|
99816
|
+
hash: swiftArtifactContentDigest(result.primary),
|
|
99807
99817
|
bytes: result.primary,
|
|
99808
99818
|
parts: result.parts
|
|
99809
99819
|
};
|
|
@@ -100043,26 +100053,32 @@ async function serveSwiftPackageAsset(pathname, res) {
|
|
|
100043
100053
|
const address = pathname.slice(ARTIFACT_PATH.length).replace(/\.wasm$/, "");
|
|
100044
100054
|
for (const project2 of projects().values()) {
|
|
100045
100055
|
if (pathname !== `${ARTIFACT_PATH}${address}.wasm`) continue;
|
|
100046
|
-
const
|
|
100047
|
-
|
|
100048
|
-
|
|
100049
|
-
|
|
100050
|
-
|
|
100051
|
-
|
|
100052
|
-
|
|
100053
|
-
|
|
100054
|
-
|
|
100055
|
-
|
|
100056
|
-
|
|
100057
|
-
res.
|
|
100056
|
+
for (const artifact of project2.artifacts) {
|
|
100057
|
+
const primary = artifact.hash === address;
|
|
100058
|
+
const bytes = primary ? artifact.bytes : artifact.parts?.get(address);
|
|
100059
|
+
if (!bytes) continue;
|
|
100060
|
+
res.setHeader("access-control-allow-origin", "*");
|
|
100061
|
+
res.setHeader("access-control-expose-headers", SWIFT_ARTIFACT_SHA256_HEADER);
|
|
100062
|
+
res.setHeader(
|
|
100063
|
+
SWIFT_ARTIFACT_SHA256_HEADER,
|
|
100064
|
+
primary ? swiftArtifactContentDigest(bytes) : address
|
|
100065
|
+
);
|
|
100066
|
+
res.setHeader("content-type", "application/wasm");
|
|
100067
|
+
res.setHeader("vary", "accept-encoding");
|
|
100068
|
+
if (acceptsBr) {
|
|
100069
|
+
res.setHeader("content-encoding", "br");
|
|
100070
|
+
res.end(await brotliCompressQ4(bytes, address));
|
|
100071
|
+
} else {
|
|
100072
|
+
res.end(bytes);
|
|
100073
|
+
}
|
|
100074
|
+
return true;
|
|
100058
100075
|
}
|
|
100059
|
-
return true;
|
|
100060
100076
|
}
|
|
100061
100077
|
res.statusCode = 404;
|
|
100062
100078
|
res.end("swift artifact is stale");
|
|
100063
100079
|
return true;
|
|
100064
100080
|
}
|
|
100065
|
-
var import_node_async_hooks2, import_node_child_process65, import_node_crypto79, import_node_fs132, import_node_os27, import_node_path132, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, startupImages, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartups, sdkStartupParts, sdkStartupPlans, sdkPieces2, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
|
|
100081
|
+
var import_node_async_hooks2, import_node_child_process65, import_node_crypto79, import_node_fs132, import_node_os27, import_node_path132, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, startupImages, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartups, sdkStartupParts, sdkStartupPlans, sdkPieces2, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
|
|
100066
100082
|
var init_swift_host = __esm({
|
|
100067
100083
|
"src/swift-host.ts"() {
|
|
100068
100084
|
"use strict";
|
|
@@ -100074,6 +100090,7 @@ var init_swift_host = __esm({
|
|
|
100074
100090
|
import_node_path132 = __toESM(require("node:path"), 1);
|
|
100075
100091
|
init_pngHeader();
|
|
100076
100092
|
init_nativeSdkBindingContract();
|
|
100093
|
+
init_nativeWasmContract();
|
|
100077
100094
|
init_bundleAssets();
|
|
100078
100095
|
init_stringCatalog();
|
|
100079
100096
|
init_core_data_entity_classes();
|
|
@@ -100122,6 +100139,7 @@ var init_swift_host = __esm({
|
|
|
100122
100139
|
SwiftMissingModulesError = class extends Error {
|
|
100123
100140
|
};
|
|
100124
100141
|
startupImages = /* @__PURE__ */ new WeakMap();
|
|
100142
|
+
swiftArtifactDigests = /* @__PURE__ */ new WeakMap();
|
|
100125
100143
|
sharedProjects = /* @__PURE__ */ new Map();
|
|
100126
100144
|
projectScope = new import_node_async_hooks2.AsyncLocalStorage();
|
|
100127
100145
|
projects = () => projectScope.getStore()?.projects ?? sharedProjects;
|
|
@@ -115737,8 +115755,20 @@ async function handleOneNativeSourceRequest(req, res) {
|
|
|
115737
115755
|
url.pathname.slice(SWIFT_PACKAGE_PATH.length)
|
|
115738
115756
|
);
|
|
115739
115757
|
const metadata = await packageMetadata(app, packageName2);
|
|
115758
|
+
const body = JSON.stringify(metadata);
|
|
115759
|
+
const acceptsBrotli = req.headers["accept-encoding"]?.split(",").some((value) => {
|
|
115760
|
+
const [coding, quality] = value.trim().toLowerCase().split(/\s*;\s*q\s*=\s*/);
|
|
115761
|
+
return coding === "br" && (quality === void 0 || Number(quality) > 0);
|
|
115762
|
+
});
|
|
115740
115763
|
res.setHeader("content-type", "application/json");
|
|
115741
|
-
res.
|
|
115764
|
+
res.setHeader("vary", "origin, accept-encoding");
|
|
115765
|
+
if (acceptsBrotli) {
|
|
115766
|
+
const compressed = await compressMetadata(body, {
|
|
115767
|
+
params: { [import_node_zlib10.constants.BROTLI_PARAM_QUALITY]: 4 }
|
|
115768
|
+
});
|
|
115769
|
+
res.setHeader("content-encoding", "br");
|
|
115770
|
+
res.end(compressed);
|
|
115771
|
+
} else res.end(body);
|
|
115742
115772
|
return true;
|
|
115743
115773
|
}
|
|
115744
115774
|
const kotlin = await Promise.resolve().then(() => (init_kotlin_host(), kotlin_host_exports));
|
|
@@ -115772,7 +115802,7 @@ function handleOneNativeSourceUpgrade(req, socket, head) {
|
|
|
115772
115802
|
});
|
|
115773
115803
|
return true;
|
|
115774
115804
|
}
|
|
115775
|
-
var import_node_fs159, import_node_module22, import_node_path159, import_node_url8, import_ws2, apps;
|
|
115805
|
+
var import_node_fs159, import_node_module22, import_node_path159, import_node_url8, import_node_util22, import_node_zlib10, import_ws2, apps, compressMetadata;
|
|
115776
115806
|
var init_one_native_source = __esm({
|
|
115777
115807
|
"src/one-native-source.ts"() {
|
|
115778
115808
|
"use strict";
|
|
@@ -115780,6 +115810,8 @@ var init_one_native_source = __esm({
|
|
|
115780
115810
|
import_node_module22 = require("node:module");
|
|
115781
115811
|
import_node_path159 = __toESM(require("node:path"), 1);
|
|
115782
115812
|
import_node_url8 = require("node:url");
|
|
115813
|
+
import_node_util22 = require("node:util");
|
|
115814
|
+
import_node_zlib10 = require("node:zlib");
|
|
115783
115815
|
init_kotlinDiscoveryContract();
|
|
115784
115816
|
import_ws2 = require("peachsim/vendor/ws");
|
|
115785
115817
|
init_backend_origin();
|
|
@@ -115790,6 +115822,7 @@ var init_one_native_source = __esm({
|
|
|
115790
115822
|
init_swift_submit();
|
|
115791
115823
|
init_swift_toolchain();
|
|
115792
115824
|
apps = /* @__PURE__ */ new Map();
|
|
115825
|
+
compressMetadata = (0, import_node_util22.promisify)(import_node_zlib10.brotliCompress);
|
|
115793
115826
|
}
|
|
115794
115827
|
});
|
|
115795
115828
|
|
|
@@ -117225,7 +117258,7 @@ var init_nitro_superset = __esm({
|
|
|
117225
117258
|
init_nitroContract();
|
|
117226
117259
|
init_swift_standin_digest();
|
|
117227
117260
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
117228
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
117261
|
+
NITRO_COMPILER_DIGEST = true ? "9ee7e1048e4322b01a587e2d8a5b133696932ab5f05f1e160b96da8b1df52733" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
117229
117262
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
117230
117263
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
117231
117264
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -117426,7 +117459,7 @@ async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
|
117426
117459
|
const runtimeBundle = await withSwiftRootLock(
|
|
117427
117460
|
import_node_path169.default.join(await import_promises19.default.realpath(packageDir), "bundle"),
|
|
117428
117461
|
async () => {
|
|
117429
|
-
await (0,
|
|
117462
|
+
await (0, import_node_util23.promisify)(import_node_child_process76.execFile)(
|
|
117430
117463
|
process.env.NODE_BINARY || "node",
|
|
117431
117464
|
[import_node_path169.default.join(packageDir, "scripts/build-bundle.mjs"), appRoot],
|
|
117432
117465
|
{ cwd: appRoot, maxBuffer: 16 * 1024 * 1024 }
|
|
@@ -117442,7 +117475,7 @@ async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
|
117442
117475
|
}
|
|
117443
117476
|
};
|
|
117444
117477
|
}
|
|
117445
|
-
var import_node_child_process76, import_promises19, import_node_module24, import_node_path169,
|
|
117478
|
+
var import_node_child_process76, import_promises19, import_node_module24, import_node_path169, import_node_util23, EXPO_WIDGETS_ROUTE, handleExpoWidgetsRequest;
|
|
117446
117479
|
var init_expo_widgets_bundle = __esm({
|
|
117447
117480
|
"src/expo-widgets-bundle.ts"() {
|
|
117448
117481
|
"use strict";
|
|
@@ -117450,7 +117483,7 @@ var init_expo_widgets_bundle = __esm({
|
|
|
117450
117483
|
import_promises19 = __toESM(require("node:fs/promises"), 1);
|
|
117451
117484
|
import_node_module24 = require("node:module");
|
|
117452
117485
|
import_node_path169 = __toESM(require("node:path"), 1);
|
|
117453
|
-
|
|
117486
|
+
import_node_util23 = require("node:util");
|
|
117454
117487
|
init_expo_widget_assets();
|
|
117455
117488
|
init_staged_host_files();
|
|
117456
117489
|
init_nitro_bundle();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2522 | (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;
|
|
@@ -989,13 +989,13 @@ var init_swift_standin_digest = __esm({
|
|
|
989
989
|
import_node_crypto5 = require("node:crypto");
|
|
990
990
|
import_node_fs11 = require("node:fs");
|
|
991
991
|
import_node_path12 = __toESM(require("node:path"), 1);
|
|
992
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
992
|
+
STANDIN_SOURCE_DIGEST = true ? "f0b0ca3857062e6a7952520613c3225f9c50ba8242e781ff83bd00e9a2308146" : standinSourceDigest();
|
|
993
993
|
}
|
|
994
994
|
});
|
|
995
995
|
|
|
996
996
|
// src/expo-native-compiler-digest.ts
|
|
997
997
|
function expoNativeCompilerDigestValue() {
|
|
998
|
-
return true ? "
|
|
998
|
+
return true ? "a068645caf73cdf37ff07ca738b60e7a14ba8b9ead9468a71c3ea1484247fd24" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
999
999
|
}
|
|
1000
1000
|
var import_node_crypto6;
|
|
1001
1001
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -9693,7 +9693,7 @@ var init_swift_compile = __esm({
|
|
|
9693
9693
|
};
|
|
9694
9694
|
OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
9695
9695
|
NON_IOS_MODULES = /* @__PURE__ */ new Set(["FoundationNetworking", "WASILibc"]);
|
|
9696
|
-
compilerSourceDigest = true ? "
|
|
9696
|
+
compilerSourceDigest = true ? "952ab7240f001281c94c716af8613ec129cfe2f6373e7d4d07f9729dfcb1c640" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
9697
9697
|
NOT_ON_IOS = new RegExp(
|
|
9698
9698
|
`\\b(?:os\\(\\s*WASI\\s*\\)|canImport\\(\\s*(?:${[...NON_IOS_MODULES].join("|")})\\s*\\))`,
|
|
9699
9699
|
"g"
|
|
@@ -19495,6 +19495,7 @@ var init_swift_host = __esm({
|
|
|
19495
19495
|
import_node_path115 = __toESM(require("node:path"), 1);
|
|
19496
19496
|
init_pngHeader();
|
|
19497
19497
|
init_nativeSdkBindingContract();
|
|
19498
|
+
init_nativeWasmContract();
|
|
19498
19499
|
init_bundleAssets();
|
|
19499
19500
|
init_stringCatalog();
|
|
19500
19501
|
init_core_data_entity_classes();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2522 | (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.2522 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "../esm-chunks/chunk-VHMUVOWZ.mjs";
|
|
3
3
|
|
|
4
4
|
// src/host/fetch-proxy-overrides.ts
|
|
5
5
|
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2522 | (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.2522 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2522 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2522 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2522 | (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;
|