peachsim 0.1.2624 → 0.1.2625
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 +339 -324
- 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-DH6VFUJ3.mjs → acorn-SHZZDBSI.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-CM2NU5MS.mjs → chunk-2LDG7OD4.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-UJORQHAE.mjs → chunk-3XZGWT62.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JHMD4G4V.mjs → chunk-6PZI7TYE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-265THLTP.mjs → chunk-7Z7YJ4FU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IMI2NE4A.mjs → chunk-A4R4YGFJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QNXV766K.mjs → chunk-A66VNSO6.mjs} +15 -15
- package/dist-lib/esm-chunks/{chunk-3XA5HYI5.mjs → chunk-DVMKYLDN.mjs} +9 -8
- package/dist-lib/esm-chunks/{chunk-LOQBWIPM.mjs → chunk-F4YHL4UM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LCO2EXKF.mjs → chunk-JRU2VXUU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YOD53JTM.mjs → chunk-JVEJLPJC.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-AV7G5PTE.mjs → chunk-KA4AQDVF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HKPKCJI5.mjs → chunk-LJYNZ5HM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LMWSFXYN.mjs → chunk-M2FEKSK3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N4ZJZUCO.mjs → chunk-OCCZJOSA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LD7Z3NDO.mjs → chunk-P542MMIN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OLAYY7SG.mjs → chunk-Q5NI4L3Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QZ5HTMWV.mjs → chunk-R4FFTWPL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-A2WMBGJO.mjs → chunk-RJWEWNAJ.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-T7C6Z5UH.mjs → chunk-RXXCTHJG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LT533AHJ.mjs → chunk-SRIRVPNX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XONCLAVA.mjs → chunk-ULHG6CND.mjs} +21 -13
- package/dist-lib/esm-chunks/{chunk-2YHIYKY2.mjs → chunk-W4HQINQ6.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-EFQFJ7M6.mjs → chunk-XQBHCWS4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VH4BJS5V.mjs → chunk-Z6AH6AQC.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-MDVTDJ65.mjs → metro-layout-parser-GJHR7FCR.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-ZN7I4FYC.mjs → swift-package-prebuilt-UVRGKTD4.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-DUVE2OXH.mjs → swift-sdk-app-module-U3MUJ7QD.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-YSWQBCYV.mjs → swift-sdk-image-U4W7QMAT.mjs} +16 -18
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-MZ235WSK.mjs → swift-sdk-image-producer-TFFZDNRK.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +240 -225
- 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 +343 -328
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -6
- 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 +4 -3
- 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 +87 -86
- package/dist-lib/public-origins-lib.json +69 -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 +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +380 -365
- package/dist-lib/swift-compile.cjs +75 -61
- 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/swift-distribution-contract.ts +6 -1
- package/src/swift-distribution.lock.json +4 -2
- package/src/swift-sdk-image-recipe.ts +20 -0
- package/src/swift-sdk-image.ts +2 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (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;
|
|
@@ -6000,13 +6000,13 @@ var init_swift_standin_digest = __esm({
|
|
|
6000
6000
|
];
|
|
6001
6001
|
RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
6002
6002
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
|
|
6003
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
6003
|
+
STANDIN_SOURCE_DIGEST = true ? "c87e0b7f1ae69b2a4e76611266612d6218f81a3244e592800c02f78c4f8e48f6" : standinSourceDigest();
|
|
6004
6004
|
}
|
|
6005
6005
|
});
|
|
6006
6006
|
|
|
6007
6007
|
// src/expo-native-compiler-digest.ts
|
|
6008
6008
|
function expoNativeCompilerDigestValue() {
|
|
6009
|
-
return true ? "
|
|
6009
|
+
return true ? "a46618eade53d31c53a3c6377fc86635c03dbcfedd5e131d38b77d9fcc366623" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
6010
6010
|
}
|
|
6011
6011
|
var import_node_crypto11;
|
|
6012
6012
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -27673,12 +27673,13 @@ function parseSwiftDistributionLock(value) {
|
|
|
27673
27673
|
if (runtime === void 0) return void 0;
|
|
27674
27674
|
if (!isRecord(runtime) || typeof runtime.source !== "string" || !/^[a-f0-9]{64}$/.test(runtime.source) || typeof runtime.url !== "string" || !/^https:\/\/[a-z0-9.-]+(?::\d+)?\/compile\/asset\/[a-f0-9]{64}$/.test(
|
|
27675
27675
|
runtime.url
|
|
27676
|
-
) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)))
|
|
27676
|
+
) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)) || runtime.recipe !== void 0 && (typeof runtime.recipe !== "string" || !/^[a-f0-9]{16}$/.test(runtime.recipe)))
|
|
27677
27677
|
throw new Error("invalid shared SDK runtime publication in Swift distribution lock");
|
|
27678
27678
|
return {
|
|
27679
27679
|
source: runtime.source,
|
|
27680
27680
|
url: runtime.url,
|
|
27681
|
-
...runtime.dataPlan && { dataPlan: runtime.dataPlan }
|
|
27681
|
+
...runtime.dataPlan && { dataPlan: runtime.dataPlan },
|
|
27682
|
+
...runtime.recipe && { recipe: runtime.recipe }
|
|
27682
27683
|
};
|
|
27683
27684
|
};
|
|
27684
27685
|
const sdkRuntime = publication(value.sdkRuntime);
|
|
@@ -43918,6 +43919,21 @@ var init_swift_root_lock = __esm({
|
|
|
43918
43919
|
}
|
|
43919
43920
|
});
|
|
43920
43921
|
|
|
43922
|
+
// src/swift-sdk-image-recipe.ts
|
|
43923
|
+
var import_node_crypto42, SWIFT_SDK_IMAGE_VERSION, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
|
|
43924
|
+
var init_swift_sdk_image_recipe = __esm({
|
|
43925
|
+
"src/swift-sdk-image-recipe.ts"() {
|
|
43926
|
+
"use strict";
|
|
43927
|
+
import_node_crypto42 = require("node:crypto");
|
|
43928
|
+
init_wasm_optimize();
|
|
43929
|
+
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
43930
|
+
swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
|
|
43931
|
+
SWIFT_SDK_IMAGE_RECIPE = (0, import_node_crypto42.createHash)("sha256").update(`swift-sdk-image
|
|
43932
|
+
${SWIFT_SDK_IMAGE_VERSION}
|
|
43933
|
+
`).update(WASM_LOWER_IDENTITY).update(swiftSdkImageScope(false)).update(swiftSdkImageScope(true)).digest("hex").slice(0, 16);
|
|
43934
|
+
}
|
|
43935
|
+
});
|
|
43936
|
+
|
|
43921
43937
|
// src/swift-sdk-image-producer.ts
|
|
43922
43938
|
var swift_sdk_image_producer_exports = {};
|
|
43923
43939
|
__export(swift_sdk_image_producer_exports, {
|
|
@@ -43958,7 +43974,7 @@ function applySwiftSdkProducerEnvironment(environment) {
|
|
|
43958
43974
|
}
|
|
43959
43975
|
}
|
|
43960
43976
|
function writeSwiftSdkProducerResult(file, launchId, error) {
|
|
43961
|
-
const temporary = `${file}.${(0,
|
|
43977
|
+
const temporary = `${file}.${(0, import_node_crypto43.randomUUID)()}`;
|
|
43962
43978
|
(0, import_node_fs71.writeFileSync)(temporary, JSON.stringify({ launchId, error: error ?? null }));
|
|
43963
43979
|
(0, import_node_fs71.renameSync)(temporary, file);
|
|
43964
43980
|
}
|
|
@@ -44070,7 +44086,7 @@ async function produceSwiftSdkImage(input) {
|
|
|
44070
44086
|
}
|
|
44071
44087
|
}
|
|
44072
44088
|
const repo = import_node_path71.default.resolve(input.moduleRoot, "../..");
|
|
44073
|
-
const launchId = (0,
|
|
44089
|
+
const launchId = (0, import_node_crypto43.randomUUID)();
|
|
44074
44090
|
const directory3 = import_node_path71.default.join(root, launchId);
|
|
44075
44091
|
const requestFile = import_node_path71.default.join(directory3, "request.json");
|
|
44076
44092
|
const sessionFile2 = import_node_path71.default.join(directory3, "session");
|
|
@@ -44168,12 +44184,12 @@ async function produceSwiftSdkImage(input) {
|
|
|
44168
44184
|
await (0, import_promises10.setTimeout)(2e3, void 0, { signal: input.signal });
|
|
44169
44185
|
}
|
|
44170
44186
|
}
|
|
44171
|
-
var import_node_child_process36,
|
|
44187
|
+
var import_node_child_process36, import_node_crypto43, import_node_fs71, import_node_path71, import_promises10, import_node_util9, run3, environmentNames, launcher;
|
|
44172
44188
|
var init_swift_sdk_image_producer = __esm({
|
|
44173
44189
|
"src/swift-sdk-image-producer.ts"() {
|
|
44174
44190
|
"use strict";
|
|
44175
44191
|
import_node_child_process36 = require("node:child_process");
|
|
44176
|
-
|
|
44192
|
+
import_node_crypto43 = require("node:crypto");
|
|
44177
44193
|
import_node_fs71 = require("node:fs");
|
|
44178
44194
|
import_node_path71 = __toESM(require("node:path"), 1);
|
|
44179
44195
|
import_promises10 = require("node:timers/promises");
|
|
@@ -44213,7 +44229,6 @@ __export(swift_sdk_image_exports, {
|
|
|
44213
44229
|
SWIFT_SDK_APP_TABLE_BASE: () => SWIFT_SDK_APP_TABLE_BASE,
|
|
44214
44230
|
SWIFT_SDK_IMAGE_BUNDLE: () => SWIFT_SDK_IMAGE_BUNDLE,
|
|
44215
44231
|
SWIFT_SDK_IMAGE_FILES: () => SWIFT_SDK_IMAGE_FILES,
|
|
44216
|
-
SWIFT_SDK_IMAGE_VERSION: () => SWIFT_SDK_IMAGE_VERSION,
|
|
44217
44232
|
SWIFT_SDK_MEMORY_BASE: () => SWIFT_SDK_MEMORY_BASE,
|
|
44218
44233
|
SWIFT_SDK_PIECE_FIELDS: () => SWIFT_SDK_PIECE_FIELDS,
|
|
44219
44234
|
buildSwiftSdkImage: () => buildSwiftSdkImage,
|
|
@@ -44248,9 +44263,9 @@ function swiftSdkImageProducts(moduleRoot, frameworkImports2) {
|
|
|
44248
44263
|
function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
|
|
44249
44264
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
44250
44265
|
const inputs2 = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
|
|
44251
|
-
return (0,
|
|
44266
|
+
return (0, import_node_crypto44.createHash)("sha256").update(`swift-sdk-image
|
|
44252
44267
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
44253
|
-
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(scopedLookups
|
|
44268
|
+
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(inputs2).update(products.length === 0 ? "" : `
|
|
44254
44269
|
products ${products.join(" ")}`).digest("hex").slice(0, 32);
|
|
44255
44270
|
}
|
|
44256
44271
|
function swiftSdkImageEntry(key2, scopedLookups) {
|
|
@@ -44339,7 +44354,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
44339
44354
|
stage
|
|
44340
44355
|
]);
|
|
44341
44356
|
const image = cached3(stage, key2);
|
|
44342
|
-
if (!image || (0,
|
|
44357
|
+
if (!image || (0, import_node_crypto44.createHash)("sha256").update((0, import_node_fs72.readFileSync)(image.image)).digest("hex") !== image.sha256)
|
|
44343
44358
|
throw new Error(`invalid published Swift SDK image ${key2}`);
|
|
44344
44359
|
(0, import_node_fs72.rmSync)(directory2, { recursive: true, force: true });
|
|
44345
44360
|
(0, import_node_fs72.renameSync)(stage, directory2);
|
|
@@ -44609,7 +44624,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
44609
44624
|
(0, import_node_fs72.writeFileSync)(import_node_path72.default.join(work, INTERFACE_FILE), JSON.stringify(sdkInterface));
|
|
44610
44625
|
(0, import_node_fs72.writeFileSync)(
|
|
44611
44626
|
import_node_path72.default.join(work, IMAGE_DIGEST),
|
|
44612
|
-
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0,
|
|
44627
|
+
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0, import_node_crypto44.createHash)("sha256").update(image).digest("hex")
|
|
44613
44628
|
);
|
|
44614
44629
|
if (swiftSdkImageKey(
|
|
44615
44630
|
moduleRoot,
|
|
@@ -44878,12 +44893,12 @@ function readSwiftSdkManifest(image) {
|
|
|
44878
44893
|
}));
|
|
44879
44894
|
return setBoundedCache(cachedSdkManifests, cacheKey, { manifest, block: block2, segments });
|
|
44880
44895
|
}
|
|
44881
|
-
var import_node_child_process37,
|
|
44896
|
+
var import_node_child_process37, import_node_crypto44, import_node_fs72, import_node_path72, import_node_util10, run4, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE, SWIFT_SDK_APP_TABLE_BASE, EMPTY_APP, IMAGE_TABLES, IMAGE_ENTRY, imageApp, IMAGE_FILE, IMAGE_DIGEST, swiftSdkImageFile, INTERFACE_FILE, MANIFEST_FILE, MANIFEST_DATA_FILE, SWIFT_SDK_IMAGE_FILES, SWIFT_SDK_IMAGE_BUNDLE, MAX_CACHED_SDK_IMAGES, cachedSdkInterfaces, cachedSdkManifestIndices, cachedSdkManifests, SWIFT_SDK_PIECE_FIELDS, MANIFEST_BLOCKS, isManifestBlock;
|
|
44882
44897
|
var init_swift_sdk_image = __esm({
|
|
44883
44898
|
"src/swift-sdk-image.ts"() {
|
|
44884
44899
|
"use strict";
|
|
44885
44900
|
import_node_child_process37 = require("node:child_process");
|
|
44886
|
-
|
|
44901
|
+
import_node_crypto44 = require("node:crypto");
|
|
44887
44902
|
import_node_fs72 = require("node:fs");
|
|
44888
44903
|
import_node_path72 = __toESM(require("node:path"), 1);
|
|
44889
44904
|
import_node_util10 = require("node:util");
|
|
@@ -44895,13 +44910,13 @@ var init_swift_sdk_image = __esm({
|
|
|
44895
44910
|
init_swift_root_lock();
|
|
44896
44911
|
init_swift_sdk_guest_lookups();
|
|
44897
44912
|
init_swift_sdk_image_map();
|
|
44913
|
+
init_swift_sdk_image_recipe();
|
|
44898
44914
|
init_swift_sdk_image_wasm();
|
|
44899
44915
|
init_swift_toolchain();
|
|
44900
44916
|
init_swift_wasm_prune();
|
|
44901
44917
|
init_swiftTargetContract();
|
|
44902
44918
|
init_wasm_optimize();
|
|
44903
44919
|
run4 = (0, import_node_util10.promisify)(import_node_child_process37.execFile);
|
|
44904
|
-
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
44905
44920
|
SWIFT_SDK_APP_MEMORY_BASE = 8372224;
|
|
44906
44921
|
SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
|
|
44907
44922
|
SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
@@ -45545,7 +45560,7 @@ async function linkSwiftAppModule(options2) {
|
|
|
45545
45560
|
lazy,
|
|
45546
45561
|
KEEP_WASM_NAMES
|
|
45547
45562
|
])
|
|
45548
|
-
).update(bytes).digest("hex") : (0,
|
|
45563
|
+
).update(bytes).digest("hex") : (0, import_node_crypto45.createHash)("sha256").update(
|
|
45549
45564
|
JSON.stringify([
|
|
45550
45565
|
loweringCache.compilerDigest,
|
|
45551
45566
|
optimize,
|
|
@@ -46164,7 +46179,7 @@ function createSwiftSdkBinding(linkage, sdk2, usage, projection) {
|
|
|
46164
46179
|
bindSwiftAppModule(linkage, sdk2),
|
|
46165
46180
|
selectSwiftSdkData(sdk2, usage, linkage, projection)
|
|
46166
46181
|
]);
|
|
46167
|
-
const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0,
|
|
46182
|
+
const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto45.createHash)("sha256").update(bytes).digest("hex");
|
|
46168
46183
|
return { bytes, sha256: sha2565 };
|
|
46169
46184
|
}
|
|
46170
46185
|
function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
|
|
@@ -46711,12 +46726,12 @@ function partitionParent(section2) {
|
|
|
46711
46726
|
"__objc_class_refs"
|
|
46712
46727
|
].find((name3) => section2 === name3 || section2.startsWith(`${name3}.`));
|
|
46713
46728
|
}
|
|
46714
|
-
var import_node_child_process38,
|
|
46729
|
+
var import_node_child_process38, import_node_crypto45, import_node_fs73, import_node_path73, import_node_util11, import_node_zlib5, run5, RELOCATION_WIDTHS, GLOBAL_INDEX, TLS_SLEB64, SDK_TLS_HELPER, SDK_TLS_DELTA, OBJC_SECTION_BOUNDARY, uleb4, sleb2, encodedName2, SCANNED, RUN_GAP;
|
|
46715
46730
|
var init_swift_sdk_app_module = __esm({
|
|
46716
46731
|
"src/swift-sdk-app-module.ts"() {
|
|
46717
46732
|
"use strict";
|
|
46718
46733
|
import_node_child_process38 = require("node:child_process");
|
|
46719
|
-
|
|
46734
|
+
import_node_crypto45 = require("node:crypto");
|
|
46720
46735
|
import_node_fs73 = require("node:fs");
|
|
46721
46736
|
import_node_path73 = __toESM(require("node:path"), 1);
|
|
46722
46737
|
import_node_util11 = require("node:util");
|
|
@@ -47422,7 +47437,7 @@ function compilerCheckpoint(root, recipe2, args, header) {
|
|
|
47422
47437
|
}
|
|
47423
47438
|
if (!objects.length) return;
|
|
47424
47439
|
const outputs = [module2, header, map2[""].dependencies, ...objects];
|
|
47425
|
-
const digest3 = (0,
|
|
47440
|
+
const digest3 = (0, import_node_crypto46.createHash)("sha256").update(recipe2).update(JSON.stringify(args)).update(mapText);
|
|
47426
47441
|
for (const flag of args) {
|
|
47427
47442
|
if (!flag.startsWith("@")) continue;
|
|
47428
47443
|
const response = flag.slice(1);
|
|
@@ -47516,11 +47531,11 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe2, producers, b
|
|
|
47516
47531
|
(0, import_node_fs75.rmSync)(directory2, { recursive: true, force: true });
|
|
47517
47532
|
}
|
|
47518
47533
|
}
|
|
47519
|
-
var
|
|
47534
|
+
var import_node_crypto46, import_node_fs75, import_node_http2, import_node_path75, SWIFT_HEADER_COMPILER_WRAPPER, argument, client;
|
|
47520
47535
|
var init_swift_header_compiler = __esm({
|
|
47521
47536
|
"src/swift-header-compiler.ts"() {
|
|
47522
47537
|
"use strict";
|
|
47523
|
-
|
|
47538
|
+
import_node_crypto46 = require("node:crypto");
|
|
47524
47539
|
import_node_fs75 = require("node:fs");
|
|
47525
47540
|
import_node_http2 = require("node:http");
|
|
47526
47541
|
import_node_path75 = __toESM(require("node:path"), 1);
|
|
@@ -47784,7 +47799,7 @@ var init_icuData = __esm({
|
|
|
47784
47799
|
|
|
47785
47800
|
// src/swift-icu.ts
|
|
47786
47801
|
async function cachedBrotli(bytes, quality, cacheKey) {
|
|
47787
|
-
const key2 = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0,
|
|
47802
|
+
const key2 = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0, import_node_crypto47.createHash)("sha256").update(bytes).digest("hex");
|
|
47788
47803
|
const cacheId = `${quality}:${key2}`;
|
|
47789
47804
|
const cached4 = brotliMemoryCache.get(cacheId);
|
|
47790
47805
|
if (cached4) return cached4;
|
|
@@ -47802,7 +47817,7 @@ async function cachedBrotli(bytes, quality, cacheKey) {
|
|
|
47802
47817
|
});
|
|
47803
47818
|
try {
|
|
47804
47819
|
await (0, import_promises11.mkdir)(dir, { recursive: true });
|
|
47805
|
-
const tmp = `${file}.${(0,
|
|
47820
|
+
const tmp = `${file}.${(0, import_node_crypto47.randomUUID)()}.tmp`;
|
|
47806
47821
|
await (0, import_promises11.writeFile)(tmp, compressed);
|
|
47807
47822
|
await (0, import_promises11.rename)(tmp, file);
|
|
47808
47823
|
} catch {
|
|
@@ -47840,7 +47855,7 @@ function swiftIcuAsset(toolchainBin, sdk2) {
|
|
|
47840
47855
|
JSON.stringify([toolchainBin, sdk2, swiftSdkOptions()]),
|
|
47841
47856
|
async () => {
|
|
47842
47857
|
const zipped = await deflate(await swiftIcuData(toolchainBin, sdk2));
|
|
47843
|
-
return { sha256: (0,
|
|
47858
|
+
return { sha256: (0, import_node_crypto47.createHash)("sha256").update(zipped).digest("hex"), gzip: zipped };
|
|
47844
47859
|
}
|
|
47845
47860
|
);
|
|
47846
47861
|
}
|
|
@@ -47942,7 +47957,7 @@ function swiftIcuPacked(icu) {
|
|
|
47942
47957
|
)
|
|
47943
47958
|
);
|
|
47944
47959
|
await (0, import_promises11.mkdir)(import_node_path77.default.dirname(file), { recursive: true });
|
|
47945
|
-
const tmp = `${file}.${(0,
|
|
47960
|
+
const tmp = `${file}.${(0, import_node_crypto47.randomUUID)()}.tmp`;
|
|
47946
47961
|
await (0, import_promises11.writeFile)(tmp, packed);
|
|
47947
47962
|
await (0, import_promises11.rename)(tmp, file);
|
|
47948
47963
|
return packed;
|
|
@@ -47955,12 +47970,12 @@ async function swiftIcuBundleAsset(icu) {
|
|
|
47955
47970
|
contentType: "application/octet-stream"
|
|
47956
47971
|
};
|
|
47957
47972
|
}
|
|
47958
|
-
var import_node_child_process40,
|
|
47973
|
+
var import_node_child_process40, import_node_crypto47, import_node_fs76, import_promises11, import_node_os16, import_node_path77, import_node_util12, import_node_zlib6, run6, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, brotliMemoryCache, packedFiles;
|
|
47959
47974
|
var init_swift_icu = __esm({
|
|
47960
47975
|
"src/swift-icu.ts"() {
|
|
47961
47976
|
"use strict";
|
|
47962
47977
|
import_node_child_process40 = require("node:child_process");
|
|
47963
|
-
|
|
47978
|
+
import_node_crypto47 = require("node:crypto");
|
|
47964
47979
|
import_node_fs76 = require("node:fs");
|
|
47965
47980
|
import_promises11 = require("node:fs/promises");
|
|
47966
47981
|
import_node_os16 = __toESM(require("node:os"), 1);
|
|
@@ -48163,7 +48178,7 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
48163
48178
|
);
|
|
48164
48179
|
if (!modules.length) return [];
|
|
48165
48180
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
48166
|
-
const compiler = (0,
|
|
48181
|
+
const compiler = (0, import_node_crypto48.createHash)("sha256").update(import_node_fs77.default.readFileSync(clang)).digest("hex");
|
|
48167
48182
|
return [
|
|
48168
48183
|
'case "$module" in',
|
|
48169
48184
|
` ${modules.join("|")}) exec ${[
|
|
@@ -48181,12 +48196,12 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
48181
48196
|
"esac"
|
|
48182
48197
|
];
|
|
48183
48198
|
}
|
|
48184
|
-
var import_node_child_process41,
|
|
48199
|
+
var import_node_child_process41, import_node_crypto48, import_node_fs77, import_node_path78, quote2;
|
|
48185
48200
|
var init_swift_objc_prebuilt = __esm({
|
|
48186
48201
|
"src/swift-objc-prebuilt.ts"() {
|
|
48187
48202
|
"use strict";
|
|
48188
48203
|
import_node_child_process41 = require("node:child_process");
|
|
48189
|
-
|
|
48204
|
+
import_node_crypto48 = require("node:crypto");
|
|
48190
48205
|
import_node_fs77 = __toESM(require("node:fs"), 1);
|
|
48191
48206
|
import_node_path78 = __toESM(require("node:path"), 1);
|
|
48192
48207
|
init_internal_child_contract();
|
|
@@ -48539,7 +48554,7 @@ function swiftPackagePrebuiltEntries(input, moduleRoot, toolchainBin) {
|
|
|
48539
48554
|
([file, source]) => !/\.(?:swift|c|h|inc|modulemap)$/.test(file) || file.endsWith(".swift") && swiftImportNames(source, available2).some((name4) => !available2.has(name4))
|
|
48540
48555
|
))
|
|
48541
48556
|
return [];
|
|
48542
|
-
const hash = (0,
|
|
48557
|
+
const hash = (0, import_node_crypto49.createHash)("sha256");
|
|
48543
48558
|
for (const entry of files2.sort(
|
|
48544
48559
|
([left], [right]) => left < right ? -1 : left > right ? 1 : 0
|
|
48545
48560
|
))
|
|
@@ -48606,11 +48621,11 @@ function useSwiftPackagePrebuilts(input, moduleRoot, toolchainBin) {
|
|
|
48606
48621
|
}
|
|
48607
48622
|
return resolved;
|
|
48608
48623
|
}
|
|
48609
|
-
var
|
|
48624
|
+
var import_node_crypto49, import_node_fs80, import_node_path82, PACKAGE_RECIPE;
|
|
48610
48625
|
var init_swift_package_prebuilt = __esm({
|
|
48611
48626
|
"src/swift-package-prebuilt.ts"() {
|
|
48612
48627
|
"use strict";
|
|
48613
|
-
|
|
48628
|
+
import_node_crypto49 = require("node:crypto");
|
|
48614
48629
|
import_node_fs80 = __toESM(require("node:fs"), 1);
|
|
48615
48630
|
import_node_path82 = __toESM(require("node:path"), 1);
|
|
48616
48631
|
init_native_prebuilt();
|
|
@@ -48770,7 +48785,7 @@ function swiftObjCSelectorOptions(moduleRoot) {
|
|
|
48770
48785
|
`;
|
|
48771
48786
|
if (!(0, import_node_fs81.existsSync)(map2) || (0, import_node_fs81.readFileSync)(map2, "utf8") !== content) {
|
|
48772
48787
|
(0, import_node_fs81.mkdirSync)(import_node_path83.default.dirname(map2), { recursive: true });
|
|
48773
|
-
const partial = `${map2}.${(0,
|
|
48788
|
+
const partial = `${map2}.${(0, import_node_crypto50.randomUUID)()}`;
|
|
48774
48789
|
(0, import_node_fs81.writeFileSync)(partial, content);
|
|
48775
48790
|
(0, import_node_fs81.renameSync)(partial, map2);
|
|
48776
48791
|
}
|
|
@@ -48798,7 +48813,7 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
48798
48813
|
return { libraries, executables };
|
|
48799
48814
|
}
|
|
48800
48815
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
48801
|
-
return (0,
|
|
48816
|
+
return (0, import_node_crypto50.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
48802
48817
|
}
|
|
48803
48818
|
function sameStringList(left, right) {
|
|
48804
48819
|
if (left === right) return true;
|
|
@@ -49046,7 +49061,7 @@ function distributionClangModuleOptions(root, modules) {
|
|
|
49046
49061
|
function providedModulesPath(root, modules, excluded) {
|
|
49047
49062
|
if (!excluded || excluded.size === 0) return modules;
|
|
49048
49063
|
const entries2 = (0, import_node_fs81.readdirSync)(modules).filter((entry) => !excluded.has(entry.replace(/\..*$/, ""))).sort();
|
|
49049
|
-
const key2 = (0,
|
|
49064
|
+
const key2 = (0, import_node_crypto50.createHash)("sha256").update(JSON.stringify([modules, entries2])).update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
|
|
49050
49065
|
const directory2 = import_node_path83.default.join(root, `.peach-modules-${key2}`);
|
|
49051
49066
|
const complete = import_node_path83.default.join(directory2, ".complete");
|
|
49052
49067
|
if (!(0, import_node_fs81.existsSync)(complete)) {
|
|
@@ -49128,10 +49143,10 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
|
|
|
49128
49143
|
function sha256Digest(value) {
|
|
49129
49144
|
if (typeof Bun !== "undefined")
|
|
49130
49145
|
return new Bun.CryptoHasher("sha256").update(value).digest();
|
|
49131
|
-
return (0,
|
|
49146
|
+
return (0, import_node_crypto50.createHash)("sha256").update(value).digest();
|
|
49132
49147
|
}
|
|
49133
49148
|
function swiftCompileInputHash(input, release) {
|
|
49134
|
-
const hash = (0,
|
|
49149
|
+
const hash = (0, import_node_crypto50.createHash)("sha256");
|
|
49135
49150
|
hash.update(`swift-compile
|
|
49136
49151
|
${release}
|
|
49137
49152
|
`);
|
|
@@ -49338,7 +49353,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
49338
49353
|
].join("\n") + "\n";
|
|
49339
49354
|
distributionLinkPath = distributionLink.path.replace(
|
|
49340
49355
|
/\.rsp$/,
|
|
49341
|
-
`-${(0,
|
|
49356
|
+
`-${(0, import_node_crypto50.createHash)("sha256").update(list2).digest("hex").slice(0, 12)}.rsp`
|
|
49342
49357
|
);
|
|
49343
49358
|
distributionLink.files.set(distributionLinkPath, list2);
|
|
49344
49359
|
}
|
|
@@ -49359,7 +49374,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
49359
49374
|
const endRun = () => {
|
|
49360
49375
|
if (run17.length >= MODULE_MAP_RESPONSE_FILE_RUN) {
|
|
49361
49376
|
const lines = run17.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
49362
|
-
const digest4 = (0,
|
|
49377
|
+
const digest4 = (0, import_node_crypto50.createHash)("sha256").update(lines).digest("hex");
|
|
49363
49378
|
const file2 = import_node_path83.default.join(args.root, ".peach-clang-arguments", `${digest4}.rsp`);
|
|
49364
49379
|
args.files.set(file2, lines);
|
|
49365
49380
|
flags.push(`@${file2}`);
|
|
@@ -49383,7 +49398,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
49383
49398
|
}
|
|
49384
49399
|
endRun();
|
|
49385
49400
|
const content = JSON.stringify(flags);
|
|
49386
|
-
const digest3 = (0,
|
|
49401
|
+
const digest3 = (0, import_node_crypto50.createHash)("sha256").update(content).digest("hex");
|
|
49387
49402
|
const file = import_node_path83.default.join(args.root, ".peach-manifest-arguments", `${digest3}.json`);
|
|
49388
49403
|
args.files.set(file, content);
|
|
49389
49404
|
return `peachCompilerArguments(${JSON.stringify(file)})`;
|
|
@@ -49395,7 +49410,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
49395
49410
|
const macros = compactSwiftClangDefines(swiftClangSearchArguments(flags));
|
|
49396
49411
|
const compact = args.coalescibleOverlays ? compactSwiftClangOverlays(macros, args.coalescibleOverlays) : macros;
|
|
49397
49412
|
const content = compact.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
49398
|
-
const digest3 = (0,
|
|
49413
|
+
const digest3 = (0, import_node_crypto50.createHash)("sha256").update(content).digest("hex");
|
|
49399
49414
|
const file = import_node_path83.default.join(args.root, ".peach-swift-arguments", `${digest3}.rsp`);
|
|
49400
49415
|
args.files.set(file, content);
|
|
49401
49416
|
return JSON.stringify([`@${file}`]);
|
|
@@ -50984,7 +50999,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
50984
50999
|
)
|
|
50985
51000
|
];
|
|
50986
51001
|
const moduleFlag = perFile.some((flag) => flag.startsWith("-fmodule-name=")) ? [] : [`-fmodule-name=${swiftTargetModuleName(target.name)}`];
|
|
50987
|
-
const identity2 = (0,
|
|
51002
|
+
const identity2 = (0, import_node_crypto50.createHash)("sha256").update(
|
|
50988
51003
|
JSON.stringify([
|
|
50989
51004
|
cxx,
|
|
50990
51005
|
quoteDirs,
|
|
@@ -51347,7 +51362,7 @@ module ${moduleName2}.Swift {
|
|
|
51347
51362
|
])
|
|
51348
51363
|
(0, import_node_fs81.rmSync)(cache, { recursive: true, force: true });
|
|
51349
51364
|
files2.set(frameworkSearchRecord, frameworkSearch);
|
|
51350
|
-
const modulePlan = (0,
|
|
51365
|
+
const modulePlan = (0, import_node_crypto50.createHash)("sha256").update(
|
|
51351
51366
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
51352
51367
|
);
|
|
51353
51368
|
if (!distribution) {
|
|
@@ -51356,7 +51371,7 @@ module ${moduleName2}.Swift {
|
|
|
51356
51371
|
modulePlan.update(
|
|
51357
51372
|
Object.keys(input.files).filter((file) => file.endsWith(".swift")).sort().join("\n")
|
|
51358
51373
|
);
|
|
51359
|
-
const resourcePlan = (0,
|
|
51374
|
+
const resourcePlan = (0, import_node_crypto50.createHash)("sha256").update(
|
|
51360
51375
|
JSON.stringify(
|
|
51361
51376
|
resourceTargets.filter((target) => target.resources).map((target) => [
|
|
51362
51377
|
target.name,
|
|
@@ -51664,7 +51679,7 @@ ${entry}`);
|
|
|
51664
51679
|
);
|
|
51665
51680
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
51666
51681
|
const bytes = Buffer.from(data, "base64");
|
|
51667
|
-
const digest3 = (0,
|
|
51682
|
+
const digest3 = (0, import_node_crypto50.createHash)("sha256").update(bytes).digest("hex");
|
|
51668
51683
|
if (input.binaryModules?.[target] && packageTargets.has(target)) {
|
|
51669
51684
|
const objects = import_node_path83.default.join(
|
|
51670
51685
|
layout2.root,
|
|
@@ -52316,7 +52331,7 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
52316
52331
|
return null;
|
|
52317
52332
|
const bytes = (0, import_node_fs81.readFileSync)(import_node_path83.default.join(directory2, "app.wasm"));
|
|
52318
52333
|
const gzip2 = (0, import_node_fs81.readFileSync)(import_node_path83.default.join(directory2, "icu.gz"));
|
|
52319
|
-
if ((0,
|
|
52334
|
+
if ((0, import_node_crypto50.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto50.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
52320
52335
|
return null;
|
|
52321
52336
|
let sdk2;
|
|
52322
52337
|
if ("sdk" in receipt) {
|
|
@@ -52324,7 +52339,7 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
52324
52339
|
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string")
|
|
52325
52340
|
return null;
|
|
52326
52341
|
const binding = (0, import_node_fs81.readFileSync)(import_node_path83.default.join(directory2, "sdk-binding.bin"));
|
|
52327
|
-
if ((0,
|
|
52342
|
+
if ((0, import_node_crypto50.createHash)("sha256").update(binding).digest("hex") !== image.binding)
|
|
52328
52343
|
return null;
|
|
52329
52344
|
sdk2 = {
|
|
52330
52345
|
key: image.key,
|
|
@@ -52352,7 +52367,7 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
52352
52367
|
import_node_path83.default.join(pending2, "artifact.json"),
|
|
52353
52368
|
JSON.stringify({
|
|
52354
52369
|
hash: artifact.hash,
|
|
52355
|
-
wasm: (0,
|
|
52370
|
+
wasm: (0, import_node_crypto50.createHash)("sha256").update(artifact.bytes).digest("hex"),
|
|
52356
52371
|
icu: artifact.icu.sha256,
|
|
52357
52372
|
sdk: artifact.sdk && {
|
|
52358
52373
|
key: artifact.sdk.key,
|
|
@@ -52701,7 +52716,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
52701
52716
|
const unoptimized = args.input.unoptimized === true;
|
|
52702
52717
|
const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
|
|
52703
52718
|
const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
|
|
52704
|
-
const receiptKey = (0,
|
|
52719
|
+
const receiptKey = (0, import_node_crypto50.createHash)("sha256").update(
|
|
52705
52720
|
JSON.stringify([
|
|
52706
52721
|
"framework-products/v2",
|
|
52707
52722
|
args.frameworkKey,
|
|
@@ -52868,7 +52883,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
52868
52883
|
const archiveBase = import_node_path83.default.join(scratch2, "products-lib");
|
|
52869
52884
|
(0, import_node_fs81.mkdirSync)(archiveBase, { recursive: true });
|
|
52870
52885
|
const archiveRoot = import_node_path83.default.join(archiveBase, receiptKey);
|
|
52871
|
-
const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0,
|
|
52886
|
+
const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0, import_node_crypto50.randomUUID)()}`;
|
|
52872
52887
|
const stagedArchive = import_node_path83.default.join(stagedArchiveRoot, "lib");
|
|
52873
52888
|
(0, import_node_fs81.mkdirSync)(stagedArchive, { recursive: true });
|
|
52874
52889
|
const archived = /* @__PURE__ */ new Map();
|
|
@@ -52911,7 +52926,7 @@ ${args.frameworkKey}`,
|
|
|
52911
52926
|
const receiptsDir = import_node_path83.default.join(scratch2, "products-ready");
|
|
52912
52927
|
(0, import_node_fs81.mkdirSync)(receiptsDir, { recursive: true });
|
|
52913
52928
|
const receiptFile2 = import_node_path83.default.join(receiptsDir, `${receiptKey}.json`);
|
|
52914
|
-
const partialReceipt = `${receiptFile2}.${process.pid}.${(0,
|
|
52929
|
+
const partialReceipt = `${receiptFile2}.${process.pid}.${(0, import_node_crypto50.randomUUID)()}`;
|
|
52915
52930
|
(0, import_node_fs81.writeFileSync)(
|
|
52916
52931
|
partialReceipt,
|
|
52917
52932
|
JSON.stringify({
|
|
@@ -53083,7 +53098,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
53083
53098
|
if (existing?.isFile() && existing.size === stat2.size && (existing.mtimeMs === stat2.mtimeMs || (0, import_node_fs81.readFileSync)(from).equals((0, import_node_fs81.readFileSync)(to))))
|
|
53084
53099
|
continue;
|
|
53085
53100
|
if (existing) (0, import_node_fs81.rmSync)(to, { recursive: true, force: true });
|
|
53086
|
-
const partial = `${to}.${(0,
|
|
53101
|
+
const partial = `${to}.${(0, import_node_crypto50.randomUUID)()}`;
|
|
53087
53102
|
(0, import_node_fs81.copyFileSync)(from, partial);
|
|
53088
53103
|
if (stat2.mtimeMs > Date.now()) (0, import_node_fs81.utimesSync)(partial, stat2.atime, stat2.mtime);
|
|
53089
53104
|
(0, import_node_fs81.renameSync)(partial, to);
|
|
@@ -53143,7 +53158,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
53143
53158
|
return stagedModule;
|
|
53144
53159
|
}
|
|
53145
53160
|
function swiftLinkStamp(args) {
|
|
53146
|
-
const hash = (0,
|
|
53161
|
+
const hash = (0, import_node_crypto50.createHash)("sha256");
|
|
53147
53162
|
hash.update(`swift-link/v1
|
|
53148
53163
|
${args.frameworkKey}
|
|
53149
53164
|
`);
|
|
@@ -53271,7 +53286,7 @@ async function compileSwiftProjectOnce(sources, options2) {
|
|
|
53271
53286
|
const inputHash = swiftCompileInputHash(input, options2.release);
|
|
53272
53287
|
const moduleDigest = swiftModuleDigest(moduleRoot);
|
|
53273
53288
|
const sourceHash = inputHash.copy().update(moduleDigest).digest("hex");
|
|
53274
|
-
const hash = sdkImage ? (0,
|
|
53289
|
+
const hash = sdkImage ? (0, import_node_crypto50.createHash)("sha256").update(`${sourceHash}
|
|
53275
53290
|
sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
|
|
53276
53291
|
const frameworkKey = swiftProjectBuildKey(moduleRoot, options2.release);
|
|
53277
53292
|
const sharedRoot = import_node_path83.default.join(swiftCacheDir(), "swift-projects", hash);
|
|
@@ -53368,7 +53383,7 @@ ${cap}` : "";
|
|
|
53368
53383
|
}
|
|
53369
53384
|
const baseRoot = root;
|
|
53370
53385
|
const canPoolBuildRoot = !options2.intermediates && !options2.project && !options2.linkOnly && import_node_path83.default.basename(import_node_path83.default.dirname(baseRoot)) === "swift-builds";
|
|
53371
|
-
const buildShape = canPoolBuildRoot ? (0,
|
|
53386
|
+
const buildShape = canPoolBuildRoot ? (0, import_node_crypto50.createHash)("sha256").update(
|
|
53372
53387
|
JSON.stringify([
|
|
53373
53388
|
frameworkKey,
|
|
53374
53389
|
Boolean(sdkImage),
|
|
@@ -53857,17 +53872,17 @@ ${cap}` : "";
|
|
|
53857
53872
|
}
|
|
53858
53873
|
const receipt = import_node_path83.default.join(
|
|
53859
53874
|
checkpoints,
|
|
53860
|
-
(0,
|
|
53875
|
+
(0, import_node_crypto50.createHash)("sha256").update(target).digest("hex")
|
|
53861
53876
|
);
|
|
53862
53877
|
const headers = producers.map(headerPaths);
|
|
53863
53878
|
for (const header of headers)
|
|
53864
53879
|
if ((0, import_node_fs81.existsSync)(header.original)) publishHeader(header);
|
|
53865
53880
|
const fingerprint = () => {
|
|
53866
|
-
const digest3 = (0,
|
|
53881
|
+
const digest3 = (0, import_node_crypto50.createHash)("sha256").update(recipe2);
|
|
53867
53882
|
for (const { original, emitted } of headers) {
|
|
53868
53883
|
if (!(0, import_node_fs81.existsSync)(original) || !(0, import_node_fs81.existsSync)(emitted)) return;
|
|
53869
53884
|
digest3.update(
|
|
53870
|
-
(0,
|
|
53885
|
+
(0, import_node_crypto50.createHash)("sha256").update((0, import_node_fs81.readFileSync)(emitted)).digest()
|
|
53871
53886
|
);
|
|
53872
53887
|
}
|
|
53873
53888
|
return digest3.digest("hex");
|
|
@@ -54080,12 +54095,12 @@ ${cap}` : "";
|
|
|
54080
54095
|
options2.signal
|
|
54081
54096
|
);
|
|
54082
54097
|
}
|
|
54083
|
-
var import_node_child_process43,
|
|
54098
|
+
var import_node_child_process43, import_node_crypto50, import_node_fs81, import_node_os18, import_node_path83, v6, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_COMPILER_ENV_KEYS, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, lastPartition, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, CLANG_DISTRIBUTION_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, MODULE_MAP_RESPONSE_FILE_RUN, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, cPredefineTable, cPredefineCache, HIDDEN_UNITS, FIRST_WINS_PAIRS, LAST_WINS_PAIRS, VALUE_FLAGS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, frameworkProductsReceiptSchema, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN, SWIFT_FRAMEWORK_SLOT_RELEASE, SWIFT_BUILD_ROOT_SLOTS, SWIFT_BUILD_ROOT_SHAPE;
|
|
54084
54099
|
var init_swift_compile = __esm({
|
|
54085
54100
|
"src/swift-compile.ts"() {
|
|
54086
54101
|
"use strict";
|
|
54087
54102
|
import_node_child_process43 = require("node:child_process");
|
|
54088
|
-
|
|
54103
|
+
import_node_crypto50 = require("node:crypto");
|
|
54089
54104
|
import_node_fs81 = require("node:fs");
|
|
54090
54105
|
import_node_os18 = __toESM(require("node:os"), 1);
|
|
54091
54106
|
import_node_path83 = __toESM(require("node:path"), 1);
|
|
@@ -54313,7 +54328,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
54313
54328
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
54314
54329
|
MULTI_MANIFEST_VERSION = 76;
|
|
54315
54330
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
54316
|
-
compilerSourceDigest = true ? "
|
|
54331
|
+
compilerSourceDigest = true ? "169122685e250113f128b79efc78f9868f581da36ab083c174056ab99b87b629" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
54317
54332
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
54318
54333
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
54319
54334
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -54429,7 +54444,7 @@ async function podPrepareEnvironment(base2) {
|
|
|
54429
54444
|
if (process.platform !== "linux") return base2;
|
|
54430
54445
|
const { root, toolchainBin } = await resolveSwiftModule();
|
|
54431
54446
|
const { sysroot, resources } = swiftSdkPaths(root, toolchainBin);
|
|
54432
|
-
const key2 = (0,
|
|
54447
|
+
const key2 = (0, import_node_crypto51.createHash)("sha256").update(XCRUN).update(CLANG).digest("hex").slice(0, 16);
|
|
54433
54448
|
const directory2 = import_node_path84.default.join(cacheDir(), "pod-tools", key2);
|
|
54434
54449
|
if (!import_node_fs82.default.existsSync(directory2)) {
|
|
54435
54450
|
import_node_fs82.default.mkdirSync(import_node_path84.default.dirname(directory2), { recursive: true });
|
|
@@ -54470,11 +54485,11 @@ async function podPrepareEnvironment(base2) {
|
|
|
54470
54485
|
PEACH_POD_RESOURCES: resources
|
|
54471
54486
|
};
|
|
54472
54487
|
}
|
|
54473
|
-
var
|
|
54488
|
+
var import_node_crypto51, import_node_fs82, import_node_path84, XCRUN, CLANG;
|
|
54474
54489
|
var init_pod_prepare_toolchain = __esm({
|
|
54475
54490
|
"src/pod-prepare-toolchain.ts"() {
|
|
54476
54491
|
"use strict";
|
|
54477
|
-
|
|
54492
|
+
import_node_crypto51 = require("node:crypto");
|
|
54478
54493
|
import_node_fs82 = __toESM(require("node:fs"), 1);
|
|
54479
54494
|
import_node_path84 = __toESM(require("node:path"), 1);
|
|
54480
54495
|
init_home_paths();
|
|
@@ -54560,10 +54575,10 @@ async function podSourceRoot(spec, prepareEnv) {
|
|
|
54560
54575
|
`${name3}: unrecognized ${strategy} source options ${unrecognized.join(", ")}`
|
|
54561
54576
|
);
|
|
54562
54577
|
const base2 = import_node_path85.default.join(rnxHomeDir(), "pod-sources");
|
|
54563
|
-
const digest3 = (0,
|
|
54578
|
+
const digest3 = (0, import_node_crypto52.createHash)("sha256").update(canonicalJson(source)).digest("hex").slice(0, 16);
|
|
54564
54579
|
const root = import_node_path85.default.join(base2, name3, `${String(spec.version)}-${digest3}`);
|
|
54565
54580
|
if (import_node_fs83.default.existsSync(root)) return root;
|
|
54566
|
-
const stage = import_node_path85.default.join(base2, ".staging", (0,
|
|
54581
|
+
const stage = import_node_path85.default.join(base2, ".staging", (0, import_node_crypto52.randomUUID)());
|
|
54567
54582
|
import_node_fs83.default.mkdirSync(stage, { recursive: true });
|
|
54568
54583
|
try {
|
|
54569
54584
|
if (strategy === "git") await downloadGit(name3, url, options2, stage);
|
|
@@ -54738,7 +54753,7 @@ async function downloadFile(pod, url, headers, file, algorithm) {
|
|
|
54738
54753
|
}
|
|
54739
54754
|
if (!response?.ok || !response.body)
|
|
54740
54755
|
throw new Error(`${pod}: GET ${url} failed with HTTP ${response?.status ?? "error"}`);
|
|
54741
|
-
const hash = algorithm ? (0,
|
|
54756
|
+
const hash = algorithm ? (0, import_node_crypto52.createHash)(algorithm) : null;
|
|
54742
54757
|
const handle = await import_node_fs83.default.promises.open(file, "w");
|
|
54743
54758
|
try {
|
|
54744
54759
|
const reader = response.body.getReader();
|
|
@@ -54995,12 +55010,12 @@ function cleanInstalledPod(spec, root, used) {
|
|
|
54995
55010
|
(node) => used.filter((entry) => entry.specs.includes(node.name)).map((entry) => entry.platform)
|
|
54996
55011
|
);
|
|
54997
55012
|
}
|
|
54998
|
-
var import_node_child_process44,
|
|
55013
|
+
var import_node_child_process44, import_node_crypto52, import_node_fs83, import_node_os19, import_node_path85, COCOAPODS_VERSION, USER_AGENT, PLATFORMS, HEADER_EXTENSIONS, SOURCE_EXTENSIONS2, SOURCE_FILES_PATTERN, STRATEGIES, OPTIONS, ARCHIVE_TYPES, object5, RETRY_STATUSES, chomp, stringList, bracketEnd, escapeRegex;
|
|
54999
55014
|
var init_pod_sources = __esm({
|
|
55000
55015
|
"src/pod-sources.ts"() {
|
|
55001
55016
|
"use strict";
|
|
55002
55017
|
import_node_child_process44 = require("node:child_process");
|
|
55003
|
-
|
|
55018
|
+
import_node_crypto52 = require("node:crypto");
|
|
55004
55019
|
import_node_fs83 = __toESM(require("node:fs"), 1);
|
|
55005
55020
|
import_node_os19 = __toESM(require("node:os"), 1);
|
|
55006
55021
|
import_node_path85 = __toESM(require("node:path"), 1);
|
|
@@ -62254,7 +62269,7 @@ function specRepo(url, refresh) {
|
|
|
62254
62269
|
const dir = import_node_path86.default.join(
|
|
62255
62270
|
cacheDir(),
|
|
62256
62271
|
"cocoapods-repos",
|
|
62257
|
-
(0,
|
|
62272
|
+
(0, import_node_crypto53.createHash)("sha256").update(url).digest("hex").slice(0, 16)
|
|
62258
62273
|
);
|
|
62259
62274
|
if (!import_node_fs84.default.existsSync(import_node_path86.default.join(dir, ".git"))) {
|
|
62260
62275
|
const staged = `${dir}.${process.pid}`;
|
|
@@ -62284,7 +62299,7 @@ function podDir(repo, name3) {
|
|
|
62284
62299
|
const specs = import_node_fs84.default.existsSync(import_node_path86.default.join(repo, "Specs")) ? import_node_path86.default.join(repo, "Specs") : repo;
|
|
62285
62300
|
const metadata = import_node_path86.default.join(repo, "CocoaPods-version.yml");
|
|
62286
62301
|
const lengths = import_node_fs84.default.existsSync(metadata) ? browser_default.parse(import_node_fs84.default.readFileSync(metadata, "utf8"))?.prefix_lengths : void 0;
|
|
62287
|
-
const hash = (0,
|
|
62302
|
+
const hash = (0, import_node_crypto53.createHash)("md5").update(name3).digest("hex");
|
|
62288
62303
|
let at = 0;
|
|
62289
62304
|
const shards2 = (Array.isArray(lengths) ? lengths : []).map((length) => {
|
|
62290
62305
|
if (typeof length !== "number")
|
|
@@ -62317,17 +62332,17 @@ async function sourceSpecificationFile(source, name3, version2) {
|
|
|
62317
62332
|
if (!file) throw new Error(`${source} lists ${name3} ${version2} without a podspec`);
|
|
62318
62333
|
return file;
|
|
62319
62334
|
}
|
|
62320
|
-
var import_node_child_process45,
|
|
62335
|
+
var import_node_child_process45, import_node_crypto53, import_node_fs84, import_node_path86, shard, shards, TRUNK_SOURCES, refreshed, specRepoKey;
|
|
62321
62336
|
var init_cocoapods_trunk = __esm({
|
|
62322
62337
|
"src/cocoapods-trunk.ts"() {
|
|
62323
62338
|
"use strict";
|
|
62324
62339
|
import_node_child_process45 = require("node:child_process");
|
|
62325
|
-
|
|
62340
|
+
import_node_crypto53 = require("node:crypto");
|
|
62326
62341
|
import_node_fs84 = __toESM(require("node:fs"), 1);
|
|
62327
62342
|
import_node_path86 = __toESM(require("node:path"), 1);
|
|
62328
62343
|
init_browser();
|
|
62329
62344
|
init_home_paths();
|
|
62330
|
-
shard = (name3) => (0,
|
|
62345
|
+
shard = (name3) => (0, import_node_crypto53.createHash)("md5").update(name3).digest("hex").slice(0, 3).split("");
|
|
62331
62346
|
shards = /* @__PURE__ */ new Map();
|
|
62332
62347
|
TRUNK_SOURCES = /* @__PURE__ */ new Set([
|
|
62333
62348
|
"trunk",
|
|
@@ -71996,7 +72011,7 @@ end
|
|
|
71996
72011
|
function sha256Hex5(bytes) {
|
|
71997
72012
|
if (typeof Bun !== "undefined")
|
|
71998
72013
|
return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
|
|
71999
|
-
return (0,
|
|
72014
|
+
return (0, import_node_crypto54.createHash)("sha256").update(bytes).digest("hex");
|
|
72000
72015
|
}
|
|
72001
72016
|
function isBazelPackage(input) {
|
|
72002
72017
|
return /^BUILD(?:\.bazel)?$/.test(import_node_path96.default.basename(input)) && import_node_fs93.default.statSync(input).isFile();
|
|
@@ -72027,7 +72042,7 @@ function bazelBinary(root) {
|
|
|
72027
72042
|
const expected = (0, import_node_child_process46.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
|
|
72028
72043
|
encoding: "utf8"
|
|
72029
72044
|
}).split(/\s/)[0];
|
|
72030
|
-
const actual = (0,
|
|
72045
|
+
const actual = (0, import_node_crypto54.createHash)("sha256").update(import_node_fs93.default.readFileSync(partial)).digest("hex");
|
|
72031
72046
|
if (actual !== expected) {
|
|
72032
72047
|
import_node_fs93.default.rmSync(partial, { force: true });
|
|
72033
72048
|
throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
|
|
@@ -72057,7 +72072,7 @@ function parseRule(raw2) {
|
|
|
72057
72072
|
};
|
|
72058
72073
|
}
|
|
72059
72074
|
function graphInputsDigest(root) {
|
|
72060
|
-
const hash = (0,
|
|
72075
|
+
const hash = (0, import_node_crypto54.createHash)("sha256");
|
|
72061
72076
|
const visit3 = (dir) => {
|
|
72062
72077
|
for (const entry of import_node_fs93.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
72063
72078
|
if (entry.name.startsWith(".") || entry.name.startsWith("bazel-")) continue;
|
|
@@ -72090,7 +72105,7 @@ function bazelGraph(root, label, configuration2) {
|
|
|
72090
72105
|
const cached4 = graphs.get(key2);
|
|
72091
72106
|
if (cached4) return cached4;
|
|
72092
72107
|
const flags = configurationFlags(configuration2);
|
|
72093
|
-
const digest3 = (0,
|
|
72108
|
+
const digest3 = (0, import_node_crypto54.createHash)("sha256").update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES])).update(graphInputsDigest(root)).digest("hex").slice(0, 24);
|
|
72094
72109
|
const file = import_node_path96.default.join(root, ".build", "peach-bazel", `graph-${digest3}.json`);
|
|
72095
72110
|
const bazel = bazelBinary(root);
|
|
72096
72111
|
const run17 = (args) => (0, import_node_child_process46.execFileSync)(bazel, args, {
|
|
@@ -72914,12 +72929,12 @@ function shellTokens(options2) {
|
|
|
72914
72929
|
return words2;
|
|
72915
72930
|
});
|
|
72916
72931
|
}
|
|
72917
|
-
var import_node_child_process46,
|
|
72932
|
+
var import_node_child_process46, import_node_crypto54, import_node_fs93, import_node_os20, import_node_path96, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER4, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
|
|
72918
72933
|
var init_bazel_project = __esm({
|
|
72919
72934
|
"src/bazel-project.ts"() {
|
|
72920
72935
|
"use strict";
|
|
72921
72936
|
import_node_child_process46 = require("node:child_process");
|
|
72922
|
-
|
|
72937
|
+
import_node_crypto54 = require("node:crypto");
|
|
72923
72938
|
import_node_fs93 = __toESM(require("node:fs"), 1);
|
|
72924
72939
|
import_node_os20 = __toESM(require("node:os"), 1);
|
|
72925
72940
|
import_node_path96 = __toESM(require("node:path"), 1);
|
|
@@ -73897,7 +73912,7 @@ async function swiftBinaryModules(binary2) {
|
|
|
73897
73912
|
if (!binary2.url) return localSwiftBinaryModules(binary2.dir);
|
|
73898
73913
|
const cached4 = import_node_path97.default.join(
|
|
73899
73914
|
cacheDir3,
|
|
73900
|
-
`${(0,
|
|
73915
|
+
`${(0, import_node_crypto55.createHash)("sha256").update(`${binary2.url}\0${binary2.checksum ?? ""}`).digest("hex").slice(0, 32)}.json`
|
|
73901
73916
|
);
|
|
73902
73917
|
if (import_node_fs94.default.existsSync(cached4)) {
|
|
73903
73918
|
const value = JSON.parse(import_node_fs94.default.readFileSync(cached4, "utf8"));
|
|
@@ -73909,11 +73924,11 @@ async function swiftBinaryModules(binary2) {
|
|
|
73909
73924
|
import_node_fs94.default.writeFileSync(cached4, JSON.stringify(modules));
|
|
73910
73925
|
return modules;
|
|
73911
73926
|
}
|
|
73912
|
-
var
|
|
73927
|
+
var import_node_crypto55, import_node_fs94, import_node_path97, cacheDir3;
|
|
73913
73928
|
var init_swift_binary_modules = __esm({
|
|
73914
73929
|
"src/swift-binary-modules.ts"() {
|
|
73915
73930
|
"use strict";
|
|
73916
|
-
|
|
73931
|
+
import_node_crypto55 = require("node:crypto");
|
|
73917
73932
|
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
73918
73933
|
import_node_path97 = __toESM(require("node:path"), 1);
|
|
73919
73934
|
init_home_paths();
|
|
@@ -73923,11 +73938,11 @@ var init_swift_binary_modules = __esm({
|
|
|
73923
73938
|
});
|
|
73924
73939
|
|
|
73925
73940
|
// src/swift-coverage/provenance.ts
|
|
73926
|
-
var
|
|
73941
|
+
var import_node_crypto56, import_node_fs95, import_node_path98, swiftCoverageProvenance;
|
|
73927
73942
|
var init_provenance = __esm({
|
|
73928
73943
|
"src/swift-coverage/provenance.ts"() {
|
|
73929
73944
|
"use strict";
|
|
73930
|
-
|
|
73945
|
+
import_node_crypto56 = require("node:crypto");
|
|
73931
73946
|
import_node_fs95 = require("node:fs");
|
|
73932
73947
|
import_node_path98 = require("node:path");
|
|
73933
73948
|
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"32bf10d6f3396dd1a20ff6d415499a5990ec2550c63306fd9ef071bdf4a58f1e","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"e30510099ee19d34de62d8ae859df53f77594a4ab105fdb5bcd7e005ec9689ca","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path98.join)(__sootsim_import_meta_dirname, ".."));
|
|
@@ -75024,16 +75039,16 @@ function assetSymbolText(plan, root) {
|
|
|
75024
75039
|
if (source.status === "unknown") throw new Error(source.reason);
|
|
75025
75040
|
return source.text;
|
|
75026
75041
|
}
|
|
75027
|
-
var
|
|
75042
|
+
var import_node_crypto57, import_node_fs97, import_node_path100, sha2562, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
|
|
75028
75043
|
var init_xcode_assets = __esm({
|
|
75029
75044
|
"src/swift-coverage/xcode-assets.ts"() {
|
|
75030
75045
|
"use strict";
|
|
75031
|
-
|
|
75046
|
+
import_node_crypto57 = require("node:crypto");
|
|
75032
75047
|
import_node_fs97 = require("node:fs");
|
|
75033
75048
|
import_node_path100 = require("node:path");
|
|
75034
75049
|
init_provenance();
|
|
75035
75050
|
init_xcode_asset_symbols();
|
|
75036
|
-
sha2562 = (bytes) => (0,
|
|
75051
|
+
sha2562 = (bytes) => (0, import_node_crypto57.createHash)("sha256").update(bytes).digest("hex");
|
|
75037
75052
|
unprovenAssetSettings = [
|
|
75038
75053
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
|
|
75039
75054
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
|
|
@@ -75629,7 +75644,7 @@ function normalizedEnums(input) {
|
|
|
75629
75644
|
}
|
|
75630
75645
|
function localizationIdentifier(field, key2) {
|
|
75631
75646
|
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
75632
|
-
const digest3 = (0,
|
|
75647
|
+
const digest3 = (0, import_node_crypto58.createHash)("sha256").update(JSON.stringify([...field, key2])).digest();
|
|
75633
75648
|
return Array.from(
|
|
75634
75649
|
digest3.subarray(0, 6),
|
|
75635
75650
|
(byte) => alphabet[byte % alphabet.length]
|
|
@@ -75954,12 +75969,12 @@ function writeIntentDefinition(input, prefix) {
|
|
|
75954
75969
|
lines.push("</plist>", "");
|
|
75955
75970
|
return lines.join("\n");
|
|
75956
75971
|
}
|
|
75957
|
-
var import_strict4,
|
|
75972
|
+
var import_strict4, import_node_crypto58, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
|
|
75958
75973
|
var init_metadata = __esm({
|
|
75959
75974
|
"src/intent-definition/metadata.ts"() {
|
|
75960
75975
|
"use strict";
|
|
75961
75976
|
import_strict4 = __toESM(require("node:assert/strict"), 1);
|
|
75962
|
-
|
|
75977
|
+
import_node_crypto58 = require("node:crypto");
|
|
75963
75978
|
init_fields();
|
|
75964
75979
|
init_hash_input();
|
|
75965
75980
|
init_siphash();
|
|
@@ -76668,7 +76683,7 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
|
|
|
76668
76683
|
if (prefix) identifier(prefix);
|
|
76669
76684
|
if (module2) identifier(module2);
|
|
76670
76685
|
const source = import_node_fs98.default.readFileSync(definition2);
|
|
76671
|
-
const key2 = (0,
|
|
76686
|
+
const key2 = (0, import_node_crypto59.createHash)("sha256").update(
|
|
76672
76687
|
JSON.stringify([intentCompilerRevision, definition2, prefix, language, module2])
|
|
76673
76688
|
).update("\0").update(source).digest("hex");
|
|
76674
76689
|
const cache = import_node_path101.default.join(derivedDirectory, "IntentDefinitions");
|
|
@@ -76708,11 +76723,11 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
|
|
|
76708
76723
|
import_node_fs98.default.rmSync(stage, { recursive: true, force: true });
|
|
76709
76724
|
}
|
|
76710
76725
|
}
|
|
76711
|
-
var
|
|
76726
|
+
var import_node_crypto59, import_node_fs98, import_node_path101, intentCompilerRevision;
|
|
76712
76727
|
var init_xcode_intents = __esm({
|
|
76713
76728
|
"src/xcode-intents.ts"() {
|
|
76714
76729
|
"use strict";
|
|
76715
|
-
|
|
76730
|
+
import_node_crypto59 = require("node:crypto");
|
|
76716
76731
|
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
76717
76732
|
import_node_path101 = __toESM(require("node:path"), 1);
|
|
76718
76733
|
init_fields();
|
|
@@ -77414,7 +77429,7 @@ function loadProject(xcodeproj) {
|
|
|
77414
77429
|
if (!projectFile)
|
|
77415
77430
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
77416
77431
|
const source = import_node_fs99.default.readFileSync(projectFile, "utf8");
|
|
77417
|
-
const digest3 = (0,
|
|
77432
|
+
const digest3 = (0, import_node_crypto60.createHash)("sha256").update(source).digest("hex");
|
|
77418
77433
|
const cached4 = loaded3.get(projectFile);
|
|
77419
77434
|
if (cached4?.digest === digest3) return cached4.project;
|
|
77420
77435
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
@@ -77466,7 +77481,7 @@ function xcodeInstallationIdentity() {
|
|
|
77466
77481
|
if (!selected) return null;
|
|
77467
77482
|
const directory2 = import_node_path103.default.extname(selected) === ".app" ? import_node_path103.default.join(selected, "Contents", "Developer") : selected;
|
|
77468
77483
|
const versionFile = `${directory2}/../version.plist`;
|
|
77469
|
-
const version2 = import_node_fs99.default.existsSync(versionFile) ? (0,
|
|
77484
|
+
const version2 = import_node_fs99.default.existsSync(versionFile) ? (0, import_node_crypto60.createHash)("sha256").update(import_node_fs99.default.readFileSync(versionFile)).digest("hex") : null;
|
|
77470
77485
|
return { directory: directory2, version: version2 };
|
|
77471
77486
|
}
|
|
77472
77487
|
function defaultConfiguration(project2) {
|
|
@@ -77934,7 +77949,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
|
77934
77949
|
);
|
|
77935
77950
|
});
|
|
77936
77951
|
}
|
|
77937
|
-
const signature2 = (0,
|
|
77952
|
+
const signature2 = (0, import_node_crypto60.createHash)("sha256").update(
|
|
77938
77953
|
JSON.stringify([phase, [...settingKeys].map((key3) => [key3, settings(key3)])])
|
|
77939
77954
|
);
|
|
77940
77955
|
for (const file of inputFiles) {
|
|
@@ -78089,7 +78104,7 @@ ${output}`
|
|
|
78089
78104
|
const inputs2 = JSON.stringify([
|
|
78090
78105
|
1,
|
|
78091
78106
|
args,
|
|
78092
|
-
(0,
|
|
78107
|
+
(0, import_node_crypto60.createHash)("sha256").update(import_node_fs99.default.readFileSync(file)).digest("hex")
|
|
78093
78108
|
]);
|
|
78094
78109
|
const developer = settings("DEVELOPER_DIR");
|
|
78095
78110
|
const cached4 = import_node_fs99.default.existsSync(output) && import_node_fs99.default.existsSync(stamp) ? import_node_fs99.default.readFileSync(stamp, "utf8").split("\n") : [];
|
|
@@ -79592,12 +79607,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
79592
79607
|
cocoapods
|
|
79593
79608
|
};
|
|
79594
79609
|
}
|
|
79595
|
-
var import_node_child_process47,
|
|
79610
|
+
var import_node_child_process47, import_node_crypto60, import_node_fs99, import_node_module9, import_node_path103, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
79596
79611
|
var init_xcode_project = __esm({
|
|
79597
79612
|
"src/xcode-project.ts"() {
|
|
79598
79613
|
"use strict";
|
|
79599
79614
|
import_node_child_process47 = require("node:child_process");
|
|
79600
|
-
|
|
79615
|
+
import_node_crypto60 = require("node:crypto");
|
|
79601
79616
|
import_node_fs99 = __toESM(require("node:fs"), 1);
|
|
79602
79617
|
import_node_module9 = require("node:module");
|
|
79603
79618
|
import_node_path103 = __toESM(require("node:path"), 1);
|
|
@@ -79789,8 +79804,8 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
|
|
|
79789
79804
|
);
|
|
79790
79805
|
const appRelative = import_node_path104.default.relative(root, app);
|
|
79791
79806
|
const manifest = JSON.parse(import_node_fs100.default.readFileSync(import_node_path104.default.join(root, "package.json"), "utf8"));
|
|
79792
|
-
const hash = (0,
|
|
79793
|
-
const native = (0,
|
|
79807
|
+
const hash = (0, import_node_crypto61.createHash)("sha256");
|
|
79808
|
+
const native = (0, import_node_crypto61.createHash)("sha256");
|
|
79794
79809
|
const nativeDirectories = localPackageDirectories(root, app);
|
|
79795
79810
|
const versionFree = new Set(
|
|
79796
79811
|
nativeDirectories.filter((directory2) => directory2 !== appRelative && directory2 !== "").filter(
|
|
@@ -79874,7 +79889,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
|
|
|
79874
79889
|
unread.slice(start, start + 32).map(async ({ file, content }) => {
|
|
79875
79890
|
const bytes = await import_node_fs100.default.promises.readFile(file);
|
|
79876
79891
|
content.size = bytes.length;
|
|
79877
|
-
content.digest = (0,
|
|
79892
|
+
content.digest = (0, import_node_crypto61.createHash)("sha256").update(bytes).digest("hex");
|
|
79878
79893
|
fileDigests.set(file, content);
|
|
79879
79894
|
})
|
|
79880
79895
|
);
|
|
@@ -80424,7 +80439,7 @@ function stageCachedQuickCryptoOpenSsl(app) {
|
|
|
80424
80439
|
const sha2565 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
|
|
80425
80440
|
if (!sha2565) return;
|
|
80426
80441
|
const archive = import_node_path104.default.join(cacheDir(), "pod-archives", `${sha2565}.zip`);
|
|
80427
|
-
if (!import_node_fs100.default.existsSync(archive) || (0,
|
|
80442
|
+
if (!import_node_fs100.default.existsSync(archive) || (0, import_node_crypto61.createHash)("sha256").update(import_node_fs100.default.readFileSync(archive)).digest("hex") !== sha2565)
|
|
80428
80443
|
return;
|
|
80429
80444
|
import_node_fs100.default.rmSync(opensslDir, { recursive: true, force: true });
|
|
80430
80445
|
import_node_fs100.default.mkdirSync(opensslDir, { recursive: true });
|
|
@@ -80462,12 +80477,12 @@ ${failedOutputLine(command, cwd, bytes)}`
|
|
|
80462
80477
|
});
|
|
80463
80478
|
});
|
|
80464
80479
|
}
|
|
80465
|
-
var import_node_child_process48,
|
|
80480
|
+
var import_node_child_process48, import_node_crypto61, import_node_fs100, import_node_module10, import_node_os21, import_node_path104, import_node_util13, isolatedGitEnv, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
|
|
80466
80481
|
var init_expo_native_workspace = __esm({
|
|
80467
80482
|
"src/expo-native-workspace.ts"() {
|
|
80468
80483
|
"use strict";
|
|
80469
80484
|
import_node_child_process48 = require("node:child_process");
|
|
80470
|
-
|
|
80485
|
+
import_node_crypto61 = require("node:crypto");
|
|
80471
80486
|
import_node_fs100 = __toESM(require("node:fs"), 1);
|
|
80472
80487
|
import_node_module10 = require("node:module");
|
|
80473
80488
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
@@ -80540,7 +80555,7 @@ function run() {
|
|
|
80540
80555
|
|
|
80541
80556
|
// src/expo-discovery-cache.ts
|
|
80542
80557
|
function peachPin() {
|
|
80543
|
-
return (0,
|
|
80558
|
+
return (0, import_node_crypto62.createHash)("sha256").update(
|
|
80544
80559
|
`${FORMAT}\0${expoNativeCompilerDigestValue()}\0${swiftNativePin().distribution.id}\0`
|
|
80545
80560
|
).update(JSON.stringify([...EXPO_EAGER_NATIVE_VIEWS])).update(JSON.stringify([...peachAnsweredNativePackages()].sort())).digest("hex");
|
|
80546
80561
|
}
|
|
@@ -80554,7 +80569,7 @@ function stable(value) {
|
|
|
80554
80569
|
}
|
|
80555
80570
|
async function expoDiscoveryKey(options2) {
|
|
80556
80571
|
const { root, hash } = await hashExpoWorkspace(options2.appRoot, options2.signal);
|
|
80557
|
-
const key2 = (0,
|
|
80572
|
+
const key2 = (0, import_node_crypto62.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable(JSON.parse(options2.searchText))}\0`).update(`${stable(options2.configuration)}\0`).update(stable(JSON.parse(options2.resolveText))).digest("hex");
|
|
80558
80573
|
return { key: key2, root };
|
|
80559
80574
|
}
|
|
80560
80575
|
function expoDiscoveryCacheDir() {
|
|
@@ -80625,7 +80640,7 @@ function readExpoDiscovery(key2) {
|
|
|
80625
80640
|
if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
|
|
80626
80641
|
const archive = import_node_path105.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
|
|
80627
80642
|
const bytes = import_node_fs101.default.readFileSync(archive);
|
|
80628
|
-
if ((0,
|
|
80643
|
+
if ((0, import_node_crypto62.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
|
|
80629
80644
|
return void 0;
|
|
80630
80645
|
const bodies = (0, import_node_zlib7.zstdDecompressSync)(bytes);
|
|
80631
80646
|
const decoded = /* @__PURE__ */ new Map();
|
|
@@ -80699,7 +80714,7 @@ function stampedFileHash(file) {
|
|
|
80699
80714
|
const stamp = [stat2.dev, stat2.ino, stat2.size, stat2.mtimeNs, stat2.ctimeNs].join(":");
|
|
80700
80715
|
const cached4 = fileHashes.get(file);
|
|
80701
80716
|
if (cached4?.stamp === stamp) return cached4.checksum;
|
|
80702
|
-
const checksum = (0,
|
|
80717
|
+
const checksum = (0, import_node_crypto62.createHash)("sha256").update(import_node_fs101.default.readFileSync(file)).digest("hex");
|
|
80703
80718
|
fileHashes.set(file, { stamp, checksum });
|
|
80704
80719
|
fileHashesChanged = true;
|
|
80705
80720
|
return checksum;
|
|
@@ -80708,7 +80723,7 @@ function saveFileHashes() {
|
|
|
80708
80723
|
if (!fileHashesChanged) return;
|
|
80709
80724
|
fileHashesChanged = false;
|
|
80710
80725
|
const target = fileHashesPath();
|
|
80711
|
-
const temporary = `${target}.${process.pid}.${(0,
|
|
80726
|
+
const temporary = `${target}.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`;
|
|
80712
80727
|
try {
|
|
80713
80728
|
import_node_fs101.default.mkdirSync(import_node_path105.default.dirname(target), { recursive: true });
|
|
80714
80729
|
import_node_fs101.default.writeFileSync(
|
|
@@ -80763,7 +80778,7 @@ function frameworkDigest(directory2, signal) {
|
|
|
80763
80778
|
if (target !== root && !target.startsWith(`${root}${import_node_path105.default.sep}`))
|
|
80764
80779
|
throw new Error(`framework link escapes its tree: ${relative6}`);
|
|
80765
80780
|
}
|
|
80766
|
-
return (0,
|
|
80781
|
+
return (0, import_node_crypto62.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
|
|
80767
80782
|
}
|
|
80768
80783
|
function rewritePreparedPaths(options2) {
|
|
80769
80784
|
const { units, sourceRoot, preparedRoot, signal } = options2;
|
|
@@ -80784,7 +80799,7 @@ function rewritePreparedPaths(options2) {
|
|
|
80784
80799
|
return null;
|
|
80785
80800
|
}
|
|
80786
80801
|
if (!preparedBytes.equals(sourceBytes)) return null;
|
|
80787
|
-
dependencies[sourceFile] = (0,
|
|
80802
|
+
dependencies[sourceFile] = (0, import_node_crypto62.createHash)("sha256").update(sourceBytes).digest("hex");
|
|
80788
80803
|
verifiedFiles.set(preparedFile, sourceFile);
|
|
80789
80804
|
return sourceFile;
|
|
80790
80805
|
};
|
|
@@ -80861,7 +80876,7 @@ function rewritePreparedPaths(options2) {
|
|
|
80861
80876
|
portableDir = import_node_path105.default.join(parent, import_node_path105.default.basename(dir));
|
|
80862
80877
|
if (!import_node_fs101.default.existsSync(portableDir)) {
|
|
80863
80878
|
import_node_fs101.default.mkdirSync(parent, { recursive: true });
|
|
80864
|
-
const tmp = import_node_path105.default.join(parent, `.${process.pid}.${(0,
|
|
80879
|
+
const tmp = import_node_path105.default.join(parent, `.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`);
|
|
80865
80880
|
try {
|
|
80866
80881
|
import_node_fs101.default.cpSync(dir, tmp, { recursive: true, verbatimSymlinks: true });
|
|
80867
80882
|
if (frameworkDigest(tmp, signal) !== preparedDigest)
|
|
@@ -80890,7 +80905,7 @@ function writeExpoDiscovery(options2) {
|
|
|
80890
80905
|
try {
|
|
80891
80906
|
const dir = expoDiscoveryCacheDir();
|
|
80892
80907
|
import_node_fs101.default.mkdirSync(dir, { recursive: true });
|
|
80893
|
-
const tmp = import_node_path105.default.join(dir, `.${options2.key}.${process.pid}.${(0,
|
|
80908
|
+
const tmp = import_node_path105.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto62.randomUUID)()}.tmp`);
|
|
80894
80909
|
if (options2.units === null) {
|
|
80895
80910
|
import_node_fs101.default.writeFileSync(
|
|
80896
80911
|
tmp,
|
|
@@ -80953,8 +80968,8 @@ function writeExpoDiscovery(options2) {
|
|
|
80953
80968
|
}
|
|
80954
80969
|
);
|
|
80955
80970
|
const contents2 = (0, import_node_zlib7.zstdCompressSync)(Buffer.concat(chunks, size2));
|
|
80956
|
-
const archive = (0,
|
|
80957
|
-
const temporary = import_node_path105.default.join(blobDir, "." + (0,
|
|
80971
|
+
const archive = (0, import_node_crypto62.createHash)("sha256").update(contents2).digest("hex");
|
|
80972
|
+
const temporary = import_node_path105.default.join(blobDir, "." + (0, import_node_crypto62.randomUUID)() + ".tmp");
|
|
80958
80973
|
try {
|
|
80959
80974
|
import_node_fs101.default.writeFileSync(temporary, contents2);
|
|
80960
80975
|
import_node_fs101.default.renameSync(temporary, import_node_path105.default.join(blobDir, `${archive}.zst`));
|
|
@@ -80981,11 +80996,11 @@ function writeExpoDiscovery(options2) {
|
|
|
80981
80996
|
return error instanceof Error ? error.message : String(error);
|
|
80982
80997
|
}
|
|
80983
80998
|
}
|
|
80984
|
-
var
|
|
80999
|
+
var import_node_crypto62, import_node_fs101, import_node_path105, import_node_zlib7, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings2, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
|
|
80985
81000
|
var init_expo_discovery_cache = __esm({
|
|
80986
81001
|
"src/expo-discovery-cache.ts"() {
|
|
80987
81002
|
"use strict";
|
|
80988
|
-
|
|
81003
|
+
import_node_crypto62 = require("node:crypto");
|
|
80989
81004
|
import_node_fs101 = __toESM(require("node:fs"), 1);
|
|
80990
81005
|
import_node_path105 = __toESM(require("node:path"), 1);
|
|
80991
81006
|
import_node_zlib7 = require("node:zlib");
|
|
@@ -81433,7 +81448,7 @@ function hashPackageTree(root, options2) {
|
|
|
81433
81448
|
}
|
|
81434
81449
|
};
|
|
81435
81450
|
walk4(root, "");
|
|
81436
|
-
const hash = (0,
|
|
81451
|
+
const hash = (0, import_node_crypto63.createHash)("sha256");
|
|
81437
81452
|
return (async () => {
|
|
81438
81453
|
for (let start = 0; start < files2.length; start += READ_AHEAD) {
|
|
81439
81454
|
const batch = files2.slice(start, start + READ_AHEAD);
|
|
@@ -81454,11 +81469,11 @@ function nativePackageTreeDigest(root) {
|
|
|
81454
81469
|
skipFile: (name3) => name3.endsWith(".d.ts") || name3.endsWith(".d.ts.map") || name3.endsWith(".js.map")
|
|
81455
81470
|
});
|
|
81456
81471
|
}
|
|
81457
|
-
var
|
|
81472
|
+
var import_node_crypto63, import_node_fs104, import_promises12, import_node_path108, READ_AHEAD;
|
|
81458
81473
|
var init_package_tree_digest = __esm({
|
|
81459
81474
|
"src/package-tree-digest.ts"() {
|
|
81460
81475
|
"use strict";
|
|
81461
|
-
|
|
81476
|
+
import_node_crypto63 = require("node:crypto");
|
|
81462
81477
|
import_node_fs104 = require("node:fs");
|
|
81463
81478
|
import_promises12 = require("node:fs/promises");
|
|
81464
81479
|
import_node_path108 = require("node:path");
|
|
@@ -81538,7 +81553,7 @@ async function expoNativeInputs(appRoot) {
|
|
|
81538
81553
|
"swift-pin": JSON.stringify(swiftNativePin()),
|
|
81539
81554
|
answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
|
|
81540
81555
|
"pods-environment": JSON.stringify(reactNativePodsEnvironment()),
|
|
81541
|
-
fingerprint: (0,
|
|
81556
|
+
fingerprint: (0, import_node_crypto64.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
|
|
81542
81557
|
},
|
|
81543
81558
|
packages
|
|
81544
81559
|
};
|
|
@@ -81656,7 +81671,7 @@ async function managedExpoNativeAppIdentity(appRoot, iosTarget) {
|
|
|
81656
81671
|
}
|
|
81657
81672
|
function servedExpoSwift(appRoot, entry, app) {
|
|
81658
81673
|
if (!entry.expoSwift) return null;
|
|
81659
|
-
const rootId = `${(0,
|
|
81674
|
+
const rootId = `${(0, import_node_crypto64.createHash)("sha256").update(import_node_fs105.default.realpathSync(appRoot)).digest("hex")}/Expo`;
|
|
81660
81675
|
if (app.infoPlist === null) throw new Error("the prebuilt app target has no Info.plist");
|
|
81661
81676
|
const installed2 = installedInfoPlist(app.infoPlist, entry.infoPlist);
|
|
81662
81677
|
const infoPlist2 = Buffer.from(installed2).toString("base64");
|
|
@@ -81684,11 +81699,11 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
|
|
|
81684
81699
|
await prebuiltAppTarget(appRoot, signal, "installed")
|
|
81685
81700
|
);
|
|
81686
81701
|
}
|
|
81687
|
-
var
|
|
81702
|
+
var import_node_crypto64, import_node_fs105, import_node_module13, import_node_path109, import_node_util14, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
|
|
81688
81703
|
var init_expo_native_prebuilt = __esm({
|
|
81689
81704
|
"src/expo-native-prebuilt.ts"() {
|
|
81690
81705
|
"use strict";
|
|
81691
|
-
|
|
81706
|
+
import_node_crypto64 = require("node:crypto");
|
|
81692
81707
|
import_node_fs105 = __toESM(require("node:fs"), 1);
|
|
81693
81708
|
import_node_module13 = require("node:module");
|
|
81694
81709
|
import_node_path109 = __toESM(require("node:path"), 1);
|
|
@@ -81740,7 +81755,7 @@ function watchNativeInputs(root) {
|
|
|
81740
81755
|
(0, import_node_timers2.clearTimeout)(expiry);
|
|
81741
81756
|
for (const watcher of watchers) watcher.close();
|
|
81742
81757
|
}
|
|
81743
|
-
const inputs2 = { expiry, revision: (0,
|
|
81758
|
+
const inputs2 = { expiry, revision: (0, import_node_crypto65.randomUUID)() };
|
|
81744
81759
|
const watch3 = (directory2, recursive, name3) => {
|
|
81745
81760
|
const watcher = import_node_fs106.default.watch(
|
|
81746
81761
|
directory2,
|
|
@@ -81785,11 +81800,11 @@ function nativeInputRevision(root) {
|
|
|
81785
81800
|
const inputs2 = watchNativeInputs(root);
|
|
81786
81801
|
if (inputs2) return JSON.stringify([inputs2.revision, resolveActiveRuntimeRoot()]);
|
|
81787
81802
|
}
|
|
81788
|
-
var
|
|
81803
|
+
var import_node_crypto65, import_node_fs106, import_node_path110, import_node_timers2, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
81789
81804
|
var init_native_preparation = __esm({
|
|
81790
81805
|
"src/native-preparation.ts"() {
|
|
81791
81806
|
"use strict";
|
|
81792
|
-
|
|
81807
|
+
import_node_crypto65 = require("node:crypto");
|
|
81793
81808
|
import_node_fs106 = __toESM(require("node:fs"), 1);
|
|
81794
81809
|
import_node_path110 = __toESM(require("node:path"), 1);
|
|
81795
81810
|
import_node_timers2 = require("node:timers");
|
|
@@ -81969,7 +81984,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
|
|
|
81969
81984
|
return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
|
|
81970
81985
|
}
|
|
81971
81986
|
function nativeStaticLibraryRecipe(bytes) {
|
|
81972
|
-
const digest3 = (0,
|
|
81987
|
+
const digest3 = (0, import_node_crypto66.createHash)("sha256").update(bytes).digest("hex");
|
|
81973
81988
|
return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest3);
|
|
81974
81989
|
}
|
|
81975
81990
|
function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
@@ -82012,7 +82027,7 @@ function isRustSymbol(name3, demangled) {
|
|
|
82012
82027
|
function rustStaticLibrary(file, moduleRoot) {
|
|
82013
82028
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
82014
82029
|
const bytes = import_node_fs108.default.readFileSync(file);
|
|
82015
|
-
const key2 = (0,
|
|
82030
|
+
const key2 = (0, import_node_crypto66.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
|
|
82016
82031
|
const directory2 = import_node_path112.default.join(cacheDir(), "native-archives", key2);
|
|
82017
82032
|
const archive = import_node_path112.default.join(directory2, "library.a");
|
|
82018
82033
|
if (import_node_fs108.default.existsSync(archive)) return archive;
|
|
@@ -82041,7 +82056,7 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
82041
82056
|
const members2 = readArMembers(bytes, true);
|
|
82042
82057
|
const seen = /* @__PURE__ */ new Set();
|
|
82043
82058
|
const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
|
|
82044
|
-
const identity2 = name3 + "\0" + (0,
|
|
82059
|
+
const identity2 = name3 + "\0" + (0, import_node_crypto66.createHash)("sha256").update(bytes2).digest("hex");
|
|
82045
82060
|
if (seen.has(identity2)) return false;
|
|
82046
82061
|
seen.add(identity2);
|
|
82047
82062
|
return true;
|
|
@@ -82088,14 +82103,14 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
82088
82103
|
function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
82089
82104
|
if (files2.length === 1) return files2[0];
|
|
82090
82105
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
82091
|
-
const hash = (0,
|
|
82106
|
+
const hash = (0, import_node_crypto66.createHash)("sha256").update(toolchain.release);
|
|
82092
82107
|
for (const file of files2)
|
|
82093
82108
|
hash.update("\0").update(import_node_path112.default.basename(file)).update("\0").update(import_node_fs108.default.readFileSync(file));
|
|
82094
82109
|
const directory2 = import_node_path112.default.join(cacheDir(), "native-archives", hash.digest("hex"));
|
|
82095
82110
|
const archive = import_node_path112.default.join(directory2, "combined.a");
|
|
82096
82111
|
if (import_node_fs108.default.existsSync(archive)) return archive;
|
|
82097
82112
|
import_node_fs108.default.mkdirSync(directory2, { recursive: true });
|
|
82098
|
-
const temporary = import_node_path112.default.join(directory2, `combined-${(0,
|
|
82113
|
+
const temporary = import_node_path112.default.join(directory2, `combined-${(0, import_node_crypto66.randomUUID)()}.a`);
|
|
82099
82114
|
try {
|
|
82100
82115
|
(0, import_node_child_process50.execFileSync)(import_node_path112.default.join(toolchain.toolchainBin, "llvm-ar"), [
|
|
82101
82116
|
"qcsDL",
|
|
@@ -82108,12 +82123,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
82108
82123
|
}
|
|
82109
82124
|
return archive;
|
|
82110
82125
|
}
|
|
82111
|
-
var import_node_child_process50,
|
|
82126
|
+
var import_node_child_process50, import_node_crypto66, import_node_fs108, import_node_path112, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
82112
82127
|
var init_native_static_libraries = __esm({
|
|
82113
82128
|
"src/native-static-libraries.ts"() {
|
|
82114
82129
|
"use strict";
|
|
82115
82130
|
import_node_child_process50 = require("node:child_process");
|
|
82116
|
-
|
|
82131
|
+
import_node_crypto66 = require("node:crypto");
|
|
82117
82132
|
import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
82118
82133
|
import_node_path112 = __toESM(require("node:path"), 1);
|
|
82119
82134
|
init_home_paths();
|
|
@@ -82718,13 +82733,13 @@ var init_swift_wasm64_wamr = __esm({
|
|
|
82718
82733
|
|
|
82719
82734
|
// src/swift-wasm64-native-source.ts
|
|
82720
82735
|
function deriveSource(file, bytes, backport) {
|
|
82721
|
-
if (!backport || (0,
|
|
82736
|
+
if (!backport || (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
|
|
82722
82737
|
return null;
|
|
82723
82738
|
const source = bytes.toString("utf8");
|
|
82724
82739
|
const derived = Buffer.from(
|
|
82725
82740
|
"rewrite" in backport ? backport.rewrite(source) : source.replace(backport.before, backport.after)
|
|
82726
82741
|
);
|
|
82727
|
-
if ((0,
|
|
82742
|
+
if ((0, import_node_crypto67.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
|
|
82728
82743
|
throw new Error(`Native source derivation differs: ${file}`);
|
|
82729
82744
|
return {
|
|
82730
82745
|
bytes: derived,
|
|
@@ -82743,11 +82758,11 @@ function deriveWasm64NativeSource(file, bytes) {
|
|
|
82743
82758
|
sourceDerivations.get(name3) ?? headerDerivations.get(name3)
|
|
82744
82759
|
);
|
|
82745
82760
|
}
|
|
82746
|
-
var
|
|
82761
|
+
var import_node_crypto67, import_node_path114, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
|
|
82747
82762
|
var init_swift_wasm64_native_source = __esm({
|
|
82748
82763
|
"src/swift-wasm64-native-source.ts"() {
|
|
82749
82764
|
"use strict";
|
|
82750
|
-
|
|
82765
|
+
import_node_crypto67 = require("node:crypto");
|
|
82751
82766
|
import_node_path114 = __toESM(require("node:path"), 1);
|
|
82752
82767
|
init_swift_wasm64_wamr();
|
|
82753
82768
|
init_swiftWasm64ConfigContract();
|
|
@@ -83207,7 +83222,7 @@ var init_genrule_library_builds = __esm({
|
|
|
83207
83222
|
function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
83208
83223
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
83209
83224
|
const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
83210
|
-
const identity2 = (0,
|
|
83225
|
+
const identity2 = (0, import_node_crypto68.createHash)("sha256").update(
|
|
83211
83226
|
JSON.stringify([
|
|
83212
83227
|
distribution?.id,
|
|
83213
83228
|
distribution?.link,
|
|
@@ -83233,7 +83248,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
83233
83248
|
for (const alias of product.frameworkAliases) {
|
|
83234
83249
|
if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
|
|
83235
83250
|
throw new Error(`framework SDK identity differs for ${alias.name}`);
|
|
83236
|
-
if ((0,
|
|
83251
|
+
if ((0, import_node_crypto68.createHash)("sha256").update(import_node_fs111.default.readFileSync(import_node_path116.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
83237
83252
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
83238
83253
|
const selected = /* @__PURE__ */ new Set();
|
|
83239
83254
|
const reach = (name3) => {
|
|
@@ -83274,7 +83289,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
83274
83289
|
for (const alias of owner.frameworkAliases) {
|
|
83275
83290
|
if (frameworkResponses[alias.name])
|
|
83276
83291
|
throw new Error(`ambiguous declared framework ${alias.name}`);
|
|
83277
|
-
if ((0,
|
|
83292
|
+
if ((0, import_node_crypto68.createHash)("sha256").update(import_node_fs111.default.readFileSync(import_node_path116.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
83278
83293
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
83279
83294
|
const file = import_node_path116.default.join(root, `${alias.name}.rsp`);
|
|
83280
83295
|
import_node_fs111.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
|
|
@@ -83368,11 +83383,11 @@ exec ${shellQuote(configuration2.compiler)} "$@"
|
|
|
83368
83383
|
};
|
|
83369
83384
|
return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
|
|
83370
83385
|
}
|
|
83371
|
-
var
|
|
83386
|
+
var import_node_crypto68, import_node_fs111, import_node_path116, v7;
|
|
83372
83387
|
var init_native_framework_compiler = __esm({
|
|
83373
83388
|
"src/native-framework-compiler.ts"() {
|
|
83374
83389
|
"use strict";
|
|
83375
|
-
|
|
83390
|
+
import_node_crypto68 = require("node:crypto");
|
|
83376
83391
|
import_node_fs111 = __toESM(require("node:fs"), 1);
|
|
83377
83392
|
import_node_path116 = __toESM(require("node:path"), 1);
|
|
83378
83393
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
@@ -83393,7 +83408,7 @@ function processAlive(pid) {
|
|
|
83393
83408
|
}
|
|
83394
83409
|
function tryAcquireNumberedLock(directory2, detail = "") {
|
|
83395
83410
|
(0, import_node_fs112.mkdirSync)(directory2, { recursive: true });
|
|
83396
|
-
const claim = (0, import_node_path117.join)(directory2, `claim-${process.pid}-${(0,
|
|
83411
|
+
const claim = (0, import_node_path117.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto69.randomUUID)()}`);
|
|
83397
83412
|
for (; ; ) {
|
|
83398
83413
|
const numbers = (0, import_node_fs112.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
|
|
83399
83414
|
const top = Math.max(-1, ...numbers);
|
|
@@ -83432,11 +83447,11 @@ ${detail}` : ""}`);
|
|
|
83432
83447
|
};
|
|
83433
83448
|
}
|
|
83434
83449
|
}
|
|
83435
|
-
var
|
|
83450
|
+
var import_node_crypto69, import_node_fs112, import_node_path117, errorCode2;
|
|
83436
83451
|
var init_numbered_lock = __esm({
|
|
83437
83452
|
"src/numbered-lock.ts"() {
|
|
83438
83453
|
"use strict";
|
|
83439
|
-
|
|
83454
|
+
import_node_crypto69 = require("node:crypto");
|
|
83440
83455
|
import_node_fs112 = require("node:fs");
|
|
83441
83456
|
import_node_path117 = require("node:path");
|
|
83442
83457
|
errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
|
|
@@ -83463,7 +83478,7 @@ function llvmIdentity(toolchainBin, release) {
|
|
|
83463
83478
|
] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
|
|
83464
83479
|
(name3) => swiftFileChecksum(import_node_path118.default.join(toolchainBin, name3))
|
|
83465
83480
|
);
|
|
83466
|
-
const identity2 = (0,
|
|
83481
|
+
const identity2 = (0, import_node_crypto70.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
|
|
83467
83482
|
toolIdentities.set(toolchainBin, identity2);
|
|
83468
83483
|
return identity2;
|
|
83469
83484
|
}
|
|
@@ -83471,7 +83486,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
|
|
|
83471
83486
|
const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
|
|
83472
83487
|
const cached4 = sysrootIdentities.get(key2);
|
|
83473
83488
|
if (cached4) return cached4;
|
|
83474
|
-
const hash = (0,
|
|
83489
|
+
const hash = (0, import_node_crypto70.createHash)("sha256");
|
|
83475
83490
|
const add = (root, relative6) => {
|
|
83476
83491
|
const file = import_node_path118.default.join(root, relative6);
|
|
83477
83492
|
const stat2 = import_node_fs113.default.statSync(file, { throwIfNoEntry: false });
|
|
@@ -83506,7 +83521,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
83506
83521
|
import_node_fs113.default.readFileSync(import_node_path118.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
|
|
83507
83522
|
)
|
|
83508
83523
|
);
|
|
83509
|
-
const hash = (0,
|
|
83524
|
+
const hash = (0, import_node_crypto70.createHash)("sha256").update(
|
|
83510
83525
|
JSON.stringify([
|
|
83511
83526
|
headers,
|
|
83512
83527
|
distribution.link,
|
|
@@ -83516,7 +83531,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
83516
83531
|
])
|
|
83517
83532
|
);
|
|
83518
83533
|
const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
|
|
83519
|
-
const objectKey = (0,
|
|
83534
|
+
const objectKey = (0, import_node_crypto70.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
|
|
83520
83535
|
const cache = import_node_path118.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
|
|
83521
83536
|
if (!import_node_fs113.default.existsSync(cache)) {
|
|
83522
83537
|
import_node_fs113.default.mkdirSync(import_node_path118.default.dirname(cache), { recursive: true });
|
|
@@ -83551,7 +83566,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
83551
83566
|
const digest3 = import_node_path118.default.join(temporary, "digest");
|
|
83552
83567
|
import_node_fs113.default.writeFileSync(
|
|
83553
83568
|
digest3,
|
|
83554
|
-
(0,
|
|
83569
|
+
(0, import_node_crypto70.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
|
|
83555
83570
|
);
|
|
83556
83571
|
import_node_fs113.default.renameSync(digest3, cache);
|
|
83557
83572
|
} finally {
|
|
@@ -83606,7 +83621,7 @@ function buildable(declaration) {
|
|
|
83606
83621
|
return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
|
|
83607
83622
|
}
|
|
83608
83623
|
function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
|
|
83609
|
-
const hash = (0,
|
|
83624
|
+
const hash = (0, import_node_crypto70.createHash)("sha256");
|
|
83610
83625
|
const files2 = declaration.sources.filter(
|
|
83611
83626
|
(source) => !source.generator && !source.file.split(import_node_path118.default.sep).includes(".git")
|
|
83612
83627
|
).map((source) => import_node_path118.default.relative(declaration.packageDir, source.file));
|
|
@@ -83740,12 +83755,12 @@ function genruleArchive(declaration, library, moduleRoot) {
|
|
|
83740
83755
|
}
|
|
83741
83756
|
return combined;
|
|
83742
83757
|
}
|
|
83743
|
-
var import_node_child_process53,
|
|
83758
|
+
var import_node_child_process53, import_node_crypto70, import_node_fs113, import_node_os23, import_node_path118, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
|
|
83744
83759
|
var init_genrule_archives = __esm({
|
|
83745
83760
|
"src/genrule-archives.ts"() {
|
|
83746
83761
|
"use strict";
|
|
83747
83762
|
import_node_child_process53 = require("node:child_process");
|
|
83748
|
-
|
|
83763
|
+
import_node_crypto70 = require("node:crypto");
|
|
83749
83764
|
import_node_fs113 = __toESM(require("node:fs"), 1);
|
|
83750
83765
|
import_node_os23 = __toESM(require("node:os"), 1);
|
|
83751
83766
|
import_node_path118 = __toESM(require("node:path"), 1);
|
|
@@ -83853,7 +83868,7 @@ function privateSentrySlice(entry, moduleRoot) {
|
|
|
83853
83868
|
function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
|
|
83854
83869
|
if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
|
|
83855
83870
|
const native = simulatorNativeLibrary(artifact());
|
|
83856
|
-
if (!native || (0,
|
|
83871
|
+
if (!native || (0, import_node_crypto71.createHash)("sha256").update(import_node_fs114.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
|
|
83857
83872
|
return standin;
|
|
83858
83873
|
if (configured)
|
|
83859
83874
|
throw new Error(
|
|
@@ -83911,12 +83926,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
83911
83926
|
}
|
|
83912
83927
|
};
|
|
83913
83928
|
}
|
|
83914
|
-
var import_node_child_process54,
|
|
83929
|
+
var import_node_child_process54, import_node_crypto71, import_node_fs114, import_node_os24, import_node_path119, SENTRY_SWIFT_SLICE;
|
|
83915
83930
|
var init_native_swift_slices = __esm({
|
|
83916
83931
|
"src/native-swift-slices.ts"() {
|
|
83917
83932
|
"use strict";
|
|
83918
83933
|
import_node_child_process54 = require("node:child_process");
|
|
83919
|
-
|
|
83934
|
+
import_node_crypto71 = require("node:crypto");
|
|
83920
83935
|
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
83921
83936
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
83922
83937
|
import_node_path119 = __toESM(require("node:path"), 1);
|
|
@@ -84724,7 +84739,7 @@ function treeDigest2(root) {
|
|
|
84724
84739
|
}).join("\n");
|
|
84725
84740
|
const memo2 = digests.get(`tree\0${root}`);
|
|
84726
84741
|
if (memo2?.stamp === stamp) return memo2.digest;
|
|
84727
|
-
const hash = (0,
|
|
84742
|
+
const hash = (0, import_node_crypto72.createHash)("sha256");
|
|
84728
84743
|
for (const name3 of names) {
|
|
84729
84744
|
hash.update(`${name3}\0`);
|
|
84730
84745
|
hash.update(import_node_fs118.default.readFileSync(import_node_path122.default.join(root, name3)));
|
|
@@ -84771,7 +84786,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
84771
84786
|
const found4 = locateXcframework(import_node_path122.default.join(dir, "tree"));
|
|
84772
84787
|
if (found4) return { dir: found4, digest: stored.sha };
|
|
84773
84788
|
}
|
|
84774
|
-
const sha2 = (0,
|
|
84789
|
+
const sha2 = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs118.default.readFileSync(binary2.dir)).digest("hex");
|
|
84775
84790
|
if (sha2 !== stored?.sha || !locateXcframework(import_node_path122.default.join(dir, "tree"))) {
|
|
84776
84791
|
import_node_fs118.default.rmSync(dir, { recursive: true, force: true });
|
|
84777
84792
|
import_node_fs118.default.mkdirSync(import_node_path122.default.join(dir, "tree"), { recursive: true });
|
|
@@ -84783,7 +84798,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
84783
84798
|
return { dir: found3, digest: sha2 };
|
|
84784
84799
|
}
|
|
84785
84800
|
if (stored && import_node_fs118.default.existsSync(archive)) {
|
|
84786
|
-
const sha2 = (0,
|
|
84801
|
+
const sha2 = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs118.default.readFileSync(archive)).digest("hex");
|
|
84787
84802
|
if (sha2 !== expected)
|
|
84788
84803
|
throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
|
|
84789
84804
|
const found3 = locateXcframework(import_node_path122.default.join(dir, "tree"));
|
|
@@ -84792,7 +84807,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
84792
84807
|
import_node_fs118.default.rmSync(dir, { recursive: true, force: true });
|
|
84793
84808
|
import_node_fs118.default.mkdirSync(import_node_path122.default.join(dir, "tree"), { recursive: true });
|
|
84794
84809
|
exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
|
|
84795
|
-
const sha = (0,
|
|
84810
|
+
const sha = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs118.default.readFileSync(archive)).digest("hex");
|
|
84796
84811
|
if (sha !== expected) {
|
|
84797
84812
|
import_node_fs118.default.rmSync(dir, { recursive: true, force: true });
|
|
84798
84813
|
throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
|
|
@@ -84917,7 +84932,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
84917
84932
|
});
|
|
84918
84933
|
}
|
|
84919
84934
|
}
|
|
84920
|
-
const declaredDigest = (0,
|
|
84935
|
+
const declaredDigest = (0, import_node_crypto72.createHash)("sha256");
|
|
84921
84936
|
for (const framework of providedFrameworks)
|
|
84922
84937
|
declaredDigest.update(`provided/${import_node_path122.default.relative(artifact.dir, framework)}\0`);
|
|
84923
84938
|
for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
|
|
@@ -84987,7 +85002,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
84987
85002
|
import_node_fs118.default.copyFileSync(surface.modulemap, modulemap);
|
|
84988
85003
|
}
|
|
84989
85004
|
}
|
|
84990
|
-
const contents2 = (0,
|
|
85005
|
+
const contents2 = (0, import_node_crypto72.createHash)("sha256");
|
|
84991
85006
|
for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
|
|
84992
85007
|
const modulemap = import_node_path122.default.join(
|
|
84993
85008
|
pending2,
|
|
@@ -86402,7 +86417,7 @@ function crateSourceRoots(manifest, searchRoot) {
|
|
|
86402
86417
|
return roots;
|
|
86403
86418
|
}
|
|
86404
86419
|
function crateSourceDigest(manifest, searchRoot) {
|
|
86405
|
-
const hash = (0,
|
|
86420
|
+
const hash = (0, import_node_crypto72.createHash)("sha256");
|
|
86406
86421
|
const walk4 = (dir, root) => {
|
|
86407
86422
|
for (const entry of import_node_fs118.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
|
|
86408
86423
|
const full = import_node_path122.default.join(dir, entry.name);
|
|
@@ -86849,7 +86864,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
86849
86864
|
...swiftSources.flags,
|
|
86850
86865
|
...swiftSources.sources.flatMap((source) => [
|
|
86851
86866
|
source,
|
|
86852
|
-
(0,
|
|
86867
|
+
(0, import_node_crypto72.createHash)("sha256").update(import_node_fs118.default.readFileSync(import_node_path122.default.join(binary2.dir, source))).digest("hex")
|
|
86853
86868
|
])
|
|
86854
86869
|
);
|
|
86855
86870
|
continue;
|
|
@@ -86885,7 +86900,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
86885
86900
|
);
|
|
86886
86901
|
}
|
|
86887
86902
|
}
|
|
86888
|
-
return (0,
|
|
86903
|
+
return (0, import_node_crypto72.createHash)("sha256").update(parts2.join("\0")).digest("hex");
|
|
86889
86904
|
}
|
|
86890
86905
|
function missingArtifactGap(binary2) {
|
|
86891
86906
|
if (swiftBinaryOnDisk(binary2)) return null;
|
|
@@ -86967,7 +86982,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
86967
86982
|
return NO_IMPORTABLE_SURFACE;
|
|
86968
86983
|
}
|
|
86969
86984
|
const configured = new Map(Object.entries(behavior));
|
|
86970
|
-
const hash = (0,
|
|
86985
|
+
const hash = (0, import_node_crypto72.createHash)("sha256").update(
|
|
86971
86986
|
standinGenerationInputs([binary2], toolchain, behavior)
|
|
86972
86987
|
);
|
|
86973
86988
|
hash.update(digest3);
|
|
@@ -87207,7 +87222,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
87207
87222
|
);
|
|
87208
87223
|
if (binary2.moduleSources !== void 0)
|
|
87209
87224
|
frameworkInputs.push(
|
|
87210
|
-
`${binary2.target}\0${(0,
|
|
87225
|
+
`${binary2.target}\0${(0, import_node_crypto72.createHash)("sha256").update(
|
|
87211
87226
|
[iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
|
|
87212
87227
|
"\0"
|
|
87213
87228
|
)
|
|
@@ -87248,7 +87263,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
87248
87263
|
import_node_fs118.default.mkdirSync(sourceFrameworks);
|
|
87249
87264
|
const frameworks = {
|
|
87250
87265
|
dirs: [...frameworkDirs, sourceFrameworks].sort(),
|
|
87251
|
-
digest: (0,
|
|
87266
|
+
digest: (0, import_node_crypto72.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
87252
87267
|
surfaces: frameworkSurfaces
|
|
87253
87268
|
};
|
|
87254
87269
|
const siblings = new Map(
|
|
@@ -87367,12 +87382,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
87367
87382
|
import_node_fs118.default.rmSync(modules, { recursive: true, force: true });
|
|
87368
87383
|
}
|
|
87369
87384
|
}
|
|
87370
|
-
var import_node_child_process56,
|
|
87385
|
+
var import_node_child_process56, import_node_crypto72, import_node_fs118, import_node_path122, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
|
|
87371
87386
|
var init_swift_standins = __esm({
|
|
87372
87387
|
"src/swift-standins.ts"() {
|
|
87373
87388
|
"use strict";
|
|
87374
87389
|
import_node_child_process56 = require("node:child_process");
|
|
87375
|
-
|
|
87390
|
+
import_node_crypto72 = require("node:crypto");
|
|
87376
87391
|
import_node_fs118 = __toESM(require("node:fs"), 1);
|
|
87377
87392
|
import_node_path122 = __toESM(require("node:path"), 1);
|
|
87378
87393
|
init_forked_script_contract();
|
|
@@ -87402,7 +87417,7 @@ var init_swift_standins = __esm({
|
|
|
87402
87417
|
init_swiftTargetContract();
|
|
87403
87418
|
TRIPLE = SWIFT_WASM_TRIPLE;
|
|
87404
87419
|
cacheDir5 = import_node_path122.default.join(cacheDir(), "swift-standins");
|
|
87405
|
-
key = (...parts2) => (0,
|
|
87420
|
+
key = (...parts2) => (0, import_node_crypto72.createHash)("sha256").update(parts2.join("\0")).digest("hex").slice(0, 32);
|
|
87406
87421
|
digests = /* @__PURE__ */ new Map();
|
|
87407
87422
|
isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
|
|
87408
87423
|
OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
|
|
@@ -87565,7 +87580,7 @@ function compiledFrameworkImports(app, products) {
|
|
|
87565
87580
|
function sha256Hex6(bytes) {
|
|
87566
87581
|
if (typeof Bun !== "undefined")
|
|
87567
87582
|
return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
|
|
87568
|
-
return (0,
|
|
87583
|
+
return (0, import_node_crypto73.createHash)("sha256").update(bytes).digest("hex");
|
|
87569
87584
|
}
|
|
87570
87585
|
function regularFileStamp(file) {
|
|
87571
87586
|
const stat2 = import_node_fs119.default.lstatSync(file, { bigint: true, throwIfNoEntry: false });
|
|
@@ -87608,7 +87623,7 @@ function cachedBinaryFileDigest(file) {
|
|
|
87608
87623
|
const digest3 = sha256Hex6(import_node_fs119.default.readFileSync(real));
|
|
87609
87624
|
binaryFileDigests.set(real, { stamp, digest: digest3 });
|
|
87610
87625
|
import_node_fs119.default.mkdirSync(dir, { recursive: true });
|
|
87611
|
-
const partial = `${record6}.${process.pid}.${(0,
|
|
87626
|
+
const partial = `${record6}.${process.pid}.${(0, import_node_crypto73.randomUUID)()}`;
|
|
87612
87627
|
import_node_fs119.default.writeFileSync(partial, JSON.stringify({ stamp, digest: digest3 }));
|
|
87613
87628
|
import_node_fs119.default.renameSync(partial, record6);
|
|
87614
87629
|
return digest3;
|
|
@@ -88878,12 +88893,12 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
|
|
|
88878
88893
|
import_node_fs119.default.closeSync(descriptor);
|
|
88879
88894
|
}
|
|
88880
88895
|
}
|
|
88881
|
-
var import_node_child_process57,
|
|
88896
|
+
var import_node_child_process57, import_node_crypto73, import_node_fs119, import_node_path123, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
|
|
88882
88897
|
var init_swift_objc_compile = __esm({
|
|
88883
88898
|
"src/swift-objc-compile.ts"() {
|
|
88884
88899
|
"use strict";
|
|
88885
88900
|
import_node_child_process57 = require("node:child_process");
|
|
88886
|
-
|
|
88901
|
+
import_node_crypto73 = require("node:crypto");
|
|
88887
88902
|
import_node_fs119 = __toESM(require("node:fs"), 1);
|
|
88888
88903
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
88889
88904
|
init_mapLimit();
|
|
@@ -93048,11 +93063,11 @@ function coreDataModelDirectories(files2) {
|
|
|
93048
93063
|
}
|
|
93049
93064
|
return [...models].sort();
|
|
93050
93065
|
}
|
|
93051
|
-
var
|
|
93066
|
+
var import_node_crypto74, import_node_fs123, import_node_path127, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
|
|
93052
93067
|
var init_core_data_model = __esm({
|
|
93053
93068
|
"src/core-data-model.ts"() {
|
|
93054
93069
|
"use strict";
|
|
93055
|
-
|
|
93070
|
+
import_node_crypto74 = require("node:crypto");
|
|
93056
93071
|
import_node_fs123 = require("node:fs");
|
|
93057
93072
|
import_node_path127 = __toESM(require("node:path"), 1);
|
|
93058
93073
|
init_core_data_entity_classes();
|
|
@@ -93171,7 +93186,7 @@ var init_core_data_model = __esm({
|
|
|
93171
93186
|
});
|
|
93172
93187
|
}
|
|
93173
93188
|
};
|
|
93174
|
-
sha2563 = (...parts2) => (0,
|
|
93189
|
+
sha2563 = (...parts2) => (0, import_node_crypto74.createHash)("sha256").update(
|
|
93175
93190
|
Buffer.concat(
|
|
93176
93191
|
parts2.map(
|
|
93177
93192
|
(part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
|
|
@@ -95363,7 +95378,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
|
|
|
95363
95378
|
];
|
|
95364
95379
|
const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
|
|
95365
95380
|
const xcode = (0, import_node_child_process59.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
|
|
95366
|
-
const key2 = (0,
|
|
95381
|
+
const key2 = (0, import_node_crypto75.createHash)("sha256").update(
|
|
95367
95382
|
JSON.stringify([
|
|
95368
95383
|
RECIPE,
|
|
95369
95384
|
(0, import_node_child_process59.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
|
|
@@ -95574,12 +95589,12 @@ exec ${quote3(import_node_path128.default.join(toolchainBin, "llvm-ar"))} rcs "$
|
|
|
95574
95589
|
);
|
|
95575
95590
|
return directory2;
|
|
95576
95591
|
}
|
|
95577
|
-
var import_node_child_process59,
|
|
95592
|
+
var import_node_child_process59, import_node_crypto75, import_node_fs124, import_node_os25, import_node_path128, import_promises14, RECIPE, CONFIG, RUNTIME_LIBRARIES;
|
|
95578
95593
|
var init_rive_runtime_dependencies = __esm({
|
|
95579
95594
|
"src/rive-runtime-dependencies.ts"() {
|
|
95580
95595
|
"use strict";
|
|
95581
95596
|
import_node_child_process59 = require("node:child_process");
|
|
95582
|
-
|
|
95597
|
+
import_node_crypto75 = require("node:crypto");
|
|
95583
95598
|
import_node_fs124 = __toESM(require("node:fs"), 1);
|
|
95584
95599
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
95585
95600
|
import_node_path128 = __toESM(require("node:path"), 1);
|
|
@@ -96436,7 +96451,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
96436
96451
|
(binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
|
|
96437
96452
|
))
|
|
96438
96453
|
return [...binaries];
|
|
96439
|
-
const hash = (0,
|
|
96454
|
+
const hash = (0, import_node_crypto76.createHash)("sha256");
|
|
96440
96455
|
hash.update(
|
|
96441
96456
|
JSON.stringify([
|
|
96442
96457
|
inputs2.targets,
|
|
@@ -96645,12 +96660,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
96645
96660
|
);
|
|
96646
96661
|
return result;
|
|
96647
96662
|
}
|
|
96648
|
-
var import_node_child_process61,
|
|
96663
|
+
var import_node_child_process61, import_node_crypto76, import_node_fs126, import_node_path130, cachedInputs;
|
|
96649
96664
|
var init_swift_cxx_reachable = __esm({
|
|
96650
96665
|
"src/swift-cxx-reachable.ts"() {
|
|
96651
96666
|
"use strict";
|
|
96652
96667
|
import_node_child_process61 = require("node:child_process");
|
|
96653
|
-
|
|
96668
|
+
import_node_crypto76 = require("node:crypto");
|
|
96654
96669
|
import_node_fs126 = __toESM(require("node:fs"), 1);
|
|
96655
96670
|
import_node_path130 = __toESM(require("node:path"), 1);
|
|
96656
96671
|
init_is_record();
|
|
@@ -97141,7 +97156,7 @@ function fetchSwiftSdkDataPlan({ url, dataPlan }) {
|
|
|
97141
97156
|
if (!response.ok)
|
|
97142
97157
|
throw new Error(`Swift SDK data plan ${address} answered ${response.status}`);
|
|
97143
97158
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
97144
|
-
if ((0,
|
|
97159
|
+
if ((0, import_node_crypto77.createHash)("sha256").update(bytes).digest("hex") !== dataPlan)
|
|
97145
97160
|
throw new Error(`Swift SDK data plan ${address} failed its digest check`);
|
|
97146
97161
|
return bytes;
|
|
97147
97162
|
});
|
|
@@ -97246,7 +97261,7 @@ function splitSwiftSdkLaterData(directory2, binding, plan) {
|
|
|
97246
97261
|
encode2(now),
|
|
97247
97262
|
encodeNativeSdkLater({
|
|
97248
97263
|
files: later.map((bytes) => ({
|
|
97249
|
-
sha256: (0,
|
|
97264
|
+
sha256: (0, import_node_crypto77.createHash)("sha256").update(bytes).digest("hex"),
|
|
97250
97265
|
byteLength: bytes.length
|
|
97251
97266
|
})),
|
|
97252
97267
|
...needs && {
|
|
@@ -97262,11 +97277,11 @@ function splitSwiftSdkLaterData(directory2, binding, plan) {
|
|
|
97262
97277
|
later
|
|
97263
97278
|
};
|
|
97264
97279
|
}
|
|
97265
|
-
var
|
|
97280
|
+
var import_node_crypto77, ADDRESS_REACH, sdkPieces, firstAtOrAfter, pieceAt, LATER_GROUP_BYTES, MAX_LATER_GROUPS, publishedPlans;
|
|
97266
97281
|
var init_swift_sdk_later_data = __esm({
|
|
97267
97282
|
"src/swift-sdk-later-data.ts"() {
|
|
97268
97283
|
"use strict";
|
|
97269
|
-
|
|
97284
|
+
import_node_crypto77 = require("node:crypto");
|
|
97270
97285
|
init_nativeSdkBindingContract();
|
|
97271
97286
|
init_nativeWasmContract();
|
|
97272
97287
|
init_swift_sdk_image();
|
|
@@ -97864,7 +97879,7 @@ function gpuChromeLaunchOptions(opts = {}, runtime = currentRuntime()) {
|
|
|
97864
97879
|
async function launchWithPauseAwareDeadline(launch, opts) {
|
|
97865
97880
|
const budget = typeof opts.timeout === "number" ? opts.timeout : DEFAULT_LAUNCH_TIMEOUT_MS;
|
|
97866
97881
|
if (budget === 0) return launch(opts);
|
|
97867
|
-
const marker = `--peach-launch-id=${(0,
|
|
97882
|
+
const marker = `--peach-launch-id=${(0, import_node_crypto78.randomUUID)()}`;
|
|
97868
97883
|
let expired = false;
|
|
97869
97884
|
const cleanupAttempted = [];
|
|
97870
97885
|
const lookupFailed = [];
|
|
@@ -98021,13 +98036,13 @@ async function launchReapedChrome(launch, opts = {}, rendererTarget, policy = {}
|
|
|
98021
98036
|
policy.admission
|
|
98022
98037
|
);
|
|
98023
98038
|
}
|
|
98024
|
-
var childProcess, import_node_child_process64,
|
|
98039
|
+
var childProcess, import_node_child_process64, import_node_crypto78, fs79, os22, path115, LINUX_CHROME_SCOPE_ENV, discoveredChromePids, discoveredChromeProcesses, reapPids, installed, signalShutdownClaimed, PLAYWRIGHT_DISABLED_FEATURES, PLAYWRIGHT_ENABLED_FEATURES, DISABLED_FEATURES, DEFAULT_LAUNCH_TIMEOUT_MS;
|
|
98025
98040
|
var init_reap_browser = __esm({
|
|
98026
98041
|
"src/reap-browser.ts"() {
|
|
98027
98042
|
"use strict";
|
|
98028
98043
|
childProcess = __toESM(require("node:child_process"), 1);
|
|
98029
98044
|
import_node_child_process64 = require("node:child_process");
|
|
98030
|
-
|
|
98045
|
+
import_node_crypto78 = require("node:crypto");
|
|
98031
98046
|
fs79 = __toESM(require("node:fs"), 1);
|
|
98032
98047
|
os22 = __toESM(require("node:os"), 1);
|
|
98033
98048
|
path115 = __toESM(require("node:path"), 1);
|
|
@@ -99535,7 +99550,7 @@ async function splitNativeWasm(input, directory2, profile, binaryen, shared, kee
|
|
|
99535
99550
|
const part = await guard((0, import_node_path133.join)(directory2, `side-${id}.wasm`), lazy, env);
|
|
99536
99551
|
const bytes = (0, import_node_fs131.readFileSync)(part.file);
|
|
99537
99552
|
assertWasmCodeOnly(bytes);
|
|
99538
|
-
return { ...part, slots: slots2, sha256: (0,
|
|
99553
|
+
return { ...part, slots: slots2, sha256: (0, import_node_crypto79.createHash)("sha256").update(bytes).digest("hex") };
|
|
99539
99554
|
}
|
|
99540
99555
|
);
|
|
99541
99556
|
const dyldGroups = parts2.flatMap(
|
|
@@ -99603,12 +99618,12 @@ function describePart(file) {
|
|
|
99603
99618
|
);
|
|
99604
99619
|
return { file, functions, byteLength: bytes.byteLength };
|
|
99605
99620
|
}
|
|
99606
|
-
var import_node_child_process66,
|
|
99621
|
+
var import_node_child_process66, import_node_crypto79, import_node_fs131, import_node_os27, import_node_path133, import_node_util16, run10, MAX_MODULE_FUNCTIONS, MAX_START_FUNCTIONS, SIDE_FUNCTIONS, SIDE_CODE_BYTES, FEATURES2, featuresOf;
|
|
99607
99622
|
var init_wasm_lazy_split = __esm({
|
|
99608
99623
|
"src/wasm-lazy-split.ts"() {
|
|
99609
99624
|
"use strict";
|
|
99610
99625
|
import_node_child_process66 = require("node:child_process");
|
|
99611
|
-
|
|
99626
|
+
import_node_crypto79 = require("node:crypto");
|
|
99612
99627
|
import_node_fs131 = require("node:fs");
|
|
99613
99628
|
import_node_os27 = require("node:os");
|
|
99614
99629
|
import_node_path133 = require("node:path");
|
|
@@ -100045,11 +100060,11 @@ async function bootSwiftPreview(launch, profile) {
|
|
|
100045
100060
|
server.close();
|
|
100046
100061
|
}
|
|
100047
100062
|
}
|
|
100048
|
-
var
|
|
100063
|
+
var import_node_crypto80, import_node_fs132, import_node_http3, import_node_https2, import_node_os28, import_node_path134, packageName, guestPath, appPath, profileWindowMs, profileQuietMs, digest2, partDigest, platform;
|
|
100049
100064
|
var init_swift_startup_split = __esm({
|
|
100050
100065
|
"src/swift-startup-split.ts"() {
|
|
100051
100066
|
"use strict";
|
|
100052
|
-
|
|
100067
|
+
import_node_crypto80 = require("node:crypto");
|
|
100053
100068
|
import_node_fs132 = require("node:fs");
|
|
100054
100069
|
import_node_http3 = require("node:http");
|
|
100055
100070
|
import_node_https2 = require("node:https");
|
|
@@ -100074,7 +100089,7 @@ var init_swift_startup_split = __esm({
|
|
|
100074
100089
|
appPath = "/__peach/swift/startup.wasm";
|
|
100075
100090
|
profileWindowMs = 3e4;
|
|
100076
100091
|
profileQuietMs = 2e3;
|
|
100077
|
-
digest2 = (bytes) => (0,
|
|
100092
|
+
digest2 = (bytes) => (0, import_node_crypto80.createHash)("sha256").update(bytes).digest("hex");
|
|
100078
100093
|
partDigest = /^[a-f0-9]{64}$/;
|
|
100079
100094
|
platform = `${process.platform}-${process.arch}`;
|
|
100080
100095
|
}
|
|
@@ -100118,7 +100133,7 @@ function* filesUnder(absolute) {
|
|
|
100118
100133
|
}
|
|
100119
100134
|
function hashFile(absolutePath) {
|
|
100120
100135
|
try {
|
|
100121
|
-
return (0,
|
|
100136
|
+
return (0, import_node_crypto81.createHash)("sha1").update((0, import_node_fs133.readFileSync)(absolutePath)).digest("hex");
|
|
100122
100137
|
} catch {
|
|
100123
100138
|
return null;
|
|
100124
100139
|
}
|
|
@@ -100252,11 +100267,11 @@ function findStaleRoutes(monorepoRoot, routes2) {
|
|
|
100252
100267
|
}
|
|
100253
100268
|
return stale;
|
|
100254
100269
|
}
|
|
100255
|
-
var
|
|
100270
|
+
var import_node_crypto81, import_node_fs133, import_node_path135, DEV_BUILD_REBUILD_COMMAND, RECORD_DIR, PEACHSIM_ENGINE_INPUTS, ENGINE_SOURCES, ROUTES, STANDALONE_ENGINE_ROUTES, EXCLUDED_DIR_NAMES;
|
|
100256
100271
|
var init_dev_build_freshness = __esm({
|
|
100257
100272
|
"cli/dev-build-freshness.ts"() {
|
|
100258
100273
|
"use strict";
|
|
100259
|
-
|
|
100274
|
+
import_node_crypto81 = require("node:crypto");
|
|
100260
100275
|
import_node_fs133 = require("node:fs");
|
|
100261
100276
|
import_node_path135 = require("node:path");
|
|
100262
100277
|
DEV_BUILD_REBUILD_COMMAND = "bun run build:peach";
|
|
@@ -100383,7 +100398,7 @@ function nativeSourceFiles(packagePath) {
|
|
|
100383
100398
|
function swiftArtifactContentDigest(bytes) {
|
|
100384
100399
|
let digest3 = swiftArtifactDigests.get(bytes);
|
|
100385
100400
|
if (!digest3) {
|
|
100386
|
-
digest3 = (0,
|
|
100401
|
+
digest3 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
|
|
100387
100402
|
swiftArtifactDigests.set(bytes, digest3);
|
|
100388
100403
|
}
|
|
100389
100404
|
return digest3;
|
|
@@ -100511,7 +100526,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
100511
100526
|
const clang = import_node_path136.default.join(toolchainBin, "clang");
|
|
100512
100527
|
const empty = (binary2, file) => {
|
|
100513
100528
|
const source = import_node_path136.default.join(binary2.dir, file);
|
|
100514
|
-
const key2 = (0,
|
|
100529
|
+
const key2 = (0, import_node_crypto82.createHash)("sha256").update(
|
|
100515
100530
|
JSON.stringify([
|
|
100516
100531
|
clang,
|
|
100517
100532
|
sdk2.sysroot,
|
|
@@ -100556,7 +100571,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
100556
100571
|
return new Set(portable.flat());
|
|
100557
100572
|
}
|
|
100558
100573
|
async function swiftPackages(entry, app) {
|
|
100559
|
-
const stamp = (file) => import_node_fs134.default.existsSync(file) ? (0,
|
|
100574
|
+
const stamp = (file) => import_node_fs134.default.existsSync(file) ? (0, import_node_crypto82.createHash)("sha256").update(import_node_fs134.default.readFileSync(file)).digest("hex") : null;
|
|
100560
100575
|
const owners = [...app.frameworks, app].map((target) => ({
|
|
100561
100576
|
module: target.moduleName,
|
|
100562
100577
|
products: target.packageProducts ?? []
|
|
@@ -101720,7 +101735,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
101720
101735
|
const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
|
|
101721
101736
|
bytes
|
|
101722
101737
|
);
|
|
101723
|
-
const sha2565 = (0,
|
|
101738
|
+
const sha2565 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
|
|
101724
101739
|
const bundle = swiftResourceBundleForFile(bundles, key2);
|
|
101725
101740
|
if (!bundle && inputs2["Package.swift"])
|
|
101726
101741
|
throw new Error(`metal source ${key2} has no resource target bundle`);
|
|
@@ -101743,7 +101758,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
101743
101758
|
const bytes = readPackageFile2(project2.packagePath, disk, limits.imageBytes);
|
|
101744
101759
|
pdfs.set(file, {
|
|
101745
101760
|
file: disk,
|
|
101746
|
-
sha256: (0,
|
|
101761
|
+
sha256: (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex")
|
|
101747
101762
|
});
|
|
101748
101763
|
}
|
|
101749
101764
|
const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
|
|
@@ -101789,7 +101804,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
101789
101804
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
101790
101805
|
}
|
|
101791
101806
|
imageBytes += bytes.length;
|
|
101792
|
-
const hash = (0,
|
|
101807
|
+
const hash = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
|
|
101793
101808
|
const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
|
|
101794
101809
|
const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
|
|
101795
101810
|
const variant2 = {
|
|
@@ -102099,7 +102114,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
|
|
|
102099
102114
|
hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
|
|
102100
102115
|
}
|
|
102101
102116
|
function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
102102
|
-
const hash = (0,
|
|
102117
|
+
const hash = (0, import_node_crypto82.createHash)("sha256");
|
|
102103
102118
|
hash.update(packagePath);
|
|
102104
102119
|
updateSwiftConfigStamp(hash, packagePath);
|
|
102105
102120
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -102128,7 +102143,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
|
102128
102143
|
return hash.digest("hex").slice(0, 16);
|
|
102129
102144
|
}
|
|
102130
102145
|
function sourceContentStamp(packagePath, moduleRootOverride) {
|
|
102131
|
-
const hash = (0,
|
|
102146
|
+
const hash = (0, import_node_crypto82.createHash)("sha256");
|
|
102132
102147
|
hash.update(compilerSourceDigest);
|
|
102133
102148
|
updateSwiftConfigStamp(hash, packagePath);
|
|
102134
102149
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -102160,7 +102175,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
102160
102175
|
(root) => import_node_fs134.default.existsSync(import_node_path136.default.join(root, "toolchain.json"))
|
|
102161
102176
|
);
|
|
102162
102177
|
if (!moduleRoot) return "";
|
|
102163
|
-
const hash = (0,
|
|
102178
|
+
const hash = (0, import_node_crypto82.createHash)("sha256");
|
|
102164
102179
|
hash.update(moduleRoot);
|
|
102165
102180
|
for (const relative6 of swiftModuleInputFiles(moduleRoot)) {
|
|
102166
102181
|
hash.update(relative6);
|
|
@@ -102170,7 +102185,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
102170
102185
|
}
|
|
102171
102186
|
function otherInputs(input, standalone) {
|
|
102172
102187
|
const { files: _files, ...rest } = input;
|
|
102173
|
-
return (0,
|
|
102188
|
+
return (0, import_node_crypto82.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
|
|
102174
102189
|
}
|
|
102175
102190
|
function icuUrl(origin, artifact) {
|
|
102176
102191
|
return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
|
|
@@ -102185,7 +102200,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
|
|
|
102185
102200
|
for (const standin of standins) {
|
|
102186
102201
|
if (!standin.prebuilt) continue;
|
|
102187
102202
|
const bytes = Buffer.from(standin.prebuilt.library, "base64");
|
|
102188
|
-
const digest3 = (0,
|
|
102203
|
+
const digest3 = (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex");
|
|
102189
102204
|
const dir = import_node_path136.default.join(swiftCacheDir(), "native-archives", digest3);
|
|
102190
102205
|
import_node_fs134.default.mkdirSync(dir, { recursive: true });
|
|
102191
102206
|
const library = import_node_path136.default.join(dir, `lib${standin.module}.a`);
|
|
@@ -102534,7 +102549,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
|
|
|
102534
102549
|
return import_node_path136.default.join(
|
|
102535
102550
|
swiftCacheDir(),
|
|
102536
102551
|
"swift-builds",
|
|
102537
|
-
(0,
|
|
102552
|
+
(0, import_node_crypto82.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
|
|
102538
102553
|
);
|
|
102539
102554
|
}
|
|
102540
102555
|
function installedWorkspaceInput(packagePath, entry, moduleRoot) {
|
|
@@ -102835,7 +102850,7 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
|
|
|
102835
102850
|
const response = await fetch(url, { signal });
|
|
102836
102851
|
if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
|
|
102837
102852
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
102838
|
-
if (bytes.length !== byteLength || (0,
|
|
102853
|
+
if (bytes.length !== byteLength || (0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
|
|
102839
102854
|
throw new Error(`swift compile: ${url} does not match its module's index`);
|
|
102840
102855
|
return { dyldTable: { sha256: sha2565, bytes } };
|
|
102841
102856
|
}
|
|
@@ -103098,10 +103113,10 @@ async function splitSdkBinding(sdk2, splitKey, plan) {
|
|
|
103098
103113
|
sdk2.binding.bytes,
|
|
103099
103114
|
plan
|
|
103100
103115
|
);
|
|
103101
|
-
const digest3 = (0,
|
|
103116
|
+
const digest3 = (0, import_node_crypto82.createHash)("sha256").update(split.binding).digest("hex");
|
|
103102
103117
|
sdkBindingFiles.set(digest3, split.binding);
|
|
103103
103118
|
for (const later of split.later)
|
|
103104
|
-
sdkBindingFiles.set((0,
|
|
103119
|
+
sdkBindingFiles.set((0, import_node_crypto82.createHash)("sha256").update(later).digest("hex"), later);
|
|
103105
103120
|
sdkSplitBindings.set(key2, digest3);
|
|
103106
103121
|
}
|
|
103107
103122
|
function swiftCodePartAssets(origin, appParts, sdkDigest) {
|
|
@@ -103168,7 +103183,7 @@ function swiftSdkEntryAssets(origin, image, sdkDigest = image.sdk?.sha256) {
|
|
|
103168
103183
|
function swiftSdkStartup(sdk2, packagePath, artifactHash, metadata, launch, runtimeRootOverride) {
|
|
103169
103184
|
const { key: key2 } = sdk2;
|
|
103170
103185
|
const normalizedPackage = normalizedSwiftPackagePath(packagePath);
|
|
103171
|
-
const app = (0,
|
|
103186
|
+
const app = (0, import_node_crypto82.createHash)("sha256").update(
|
|
103172
103187
|
JSON.stringify([
|
|
103173
103188
|
normalizedPackage,
|
|
103174
103189
|
launch.environment,
|
|
@@ -103200,7 +103215,7 @@ function swiftSdkStartup(sdk2, packagePath, artifactHash, metadata, launch, runt
|
|
|
103200
103215
|
},
|
|
103201
103216
|
app
|
|
103202
103217
|
);
|
|
103203
|
-
const name3 = (0,
|
|
103218
|
+
const name3 = (0, import_node_crypto82.createHash)("sha256").update(split.primary).digest("hex");
|
|
103204
103219
|
sdkPieces2.set(name3, split.primary);
|
|
103205
103220
|
for (const [digest3, bytes] of split.parts) sdkPieces2.set(digest3, bytes);
|
|
103206
103221
|
sdkStartupParts.set(name3, split.parts);
|
|
@@ -103374,13 +103389,13 @@ async function serveSwiftPackageAsset(pathname, res) {
|
|
|
103374
103389
|
res.end("swift artifact is stale");
|
|
103375
103390
|
return true;
|
|
103376
103391
|
}
|
|
103377
|
-
var import_node_async_hooks2, import_node_child_process67,
|
|
103392
|
+
var import_node_async_hooks2, import_node_child_process67, import_node_crypto82, import_node_fs134, import_node_os29, import_node_path136, 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;
|
|
103378
103393
|
var init_swift_host = __esm({
|
|
103379
103394
|
"src/swift-host.ts"() {
|
|
103380
103395
|
"use strict";
|
|
103381
103396
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
103382
103397
|
import_node_child_process67 = require("node:child_process");
|
|
103383
|
-
|
|
103398
|
+
import_node_crypto82 = require("node:crypto");
|
|
103384
103399
|
import_node_fs134 = __toESM(require("node:fs"), 1);
|
|
103385
103400
|
import_node_os29 = __toESM(require("node:os"), 1);
|
|
103386
103401
|
import_node_path136 = __toESM(require("node:path"), 1);
|
|
@@ -104139,7 +104154,7 @@ function hashTree(root) {
|
|
|
104139
104154
|
for (const entry of import_node_fs137.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
|
|
104140
104155
|
if (!entry.isFile()) continue;
|
|
104141
104156
|
const file = import_node_path139.default.join(entry.parentPath, entry.name);
|
|
104142
|
-
hashes[import_node_path139.default.relative(root, file).split(import_node_path139.default.sep).join("/")] = (0,
|
|
104157
|
+
hashes[import_node_path139.default.relative(root, file).split(import_node_path139.default.sep).join("/")] = (0, import_node_crypto83.createHash)("sha256").update(import_node_fs137.default.readFileSync(file)).digest("hex");
|
|
104143
104158
|
}
|
|
104144
104159
|
return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
|
|
104145
104160
|
}
|
|
@@ -104189,12 +104204,12 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
104189
104204
|
files: hashTree(generatedRoot)
|
|
104190
104205
|
};
|
|
104191
104206
|
}
|
|
104192
|
-
var import_node_child_process68,
|
|
104207
|
+
var import_node_child_process68, import_node_crypto83, import_node_fs137, import_node_module17, import_node_path139, import_node_util17, run11, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
104193
104208
|
var init_turbo_codegen_intake = __esm({
|
|
104194
104209
|
"src/turbo-codegen-intake.ts"() {
|
|
104195
104210
|
"use strict";
|
|
104196
104211
|
import_node_child_process68 = require("node:child_process");
|
|
104197
|
-
|
|
104212
|
+
import_node_crypto83 = require("node:crypto");
|
|
104198
104213
|
import_node_fs137 = __toESM(require("node:fs"), 1);
|
|
104199
104214
|
import_node_module17 = require("node:module");
|
|
104200
104215
|
import_node_path139 = __toESM(require("node:path"), 1);
|
|
@@ -108145,11 +108160,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
|
|
|
108145
108160
|
}
|
|
108146
108161
|
`;
|
|
108147
108162
|
}
|
|
108148
|
-
var
|
|
108163
|
+
var import_node_crypto84, import_node_fs138, import_node_path140, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
|
|
108149
108164
|
var init_turbo_source = __esm({
|
|
108150
108165
|
"src/turbo-source.ts"() {
|
|
108151
108166
|
"use strict";
|
|
108152
|
-
|
|
108167
|
+
import_node_crypto84 = require("node:crypto");
|
|
108153
108168
|
import_node_fs138 = __toESM(require("node:fs"), 1);
|
|
108154
108169
|
import_node_path140 = __toESM(require("node:path"), 1);
|
|
108155
108170
|
init_cocoapods_trunk();
|
|
@@ -108277,7 +108292,7 @@ var init_turbo_source = __esm({
|
|
|
108277
108292
|
];
|
|
108278
108293
|
DECLARED_MODULE_NAME = /\bName\(\s*"(\w+)"\s*\)/g;
|
|
108279
108294
|
EXPORTED_MODULE = /\bRCT_(?:EXPORT_MODULE(?:_NO_LOAD)?|EXTERN_MODULE)\s*\(\s*(\w*)/g;
|
|
108280
|
-
sha2564 = (data) => (0,
|
|
108295
|
+
sha2564 = (data) => (0, import_node_crypto84.createHash)("sha256").update(data).digest("hex");
|
|
108281
108296
|
podspecList = podspecAttribute;
|
|
108282
108297
|
versionParts = (version2) => version2.split(/[.-]/).map((p) => Number(p) || 0);
|
|
108283
108298
|
iosOf = (member) => object7(member.ios) ? member.ios : null;
|
|
@@ -109077,7 +109092,7 @@ function retainInstalledReactNativeDeclarations(snapshot, options2, skipped) {
|
|
|
109077
109092
|
}
|
|
109078
109093
|
async function prepareTurboCompileInput(options2) {
|
|
109079
109094
|
await prepareTurboSourceDependencies(options2.reactNativeRoot);
|
|
109080
|
-
const key2 = (0,
|
|
109095
|
+
const key2 = (0, import_node_crypto85.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs139.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs139.default.realpathSync(options2.moduleRoot)).digest("hex");
|
|
109081
109096
|
const scratch2 = import_node_path141.default.join(import_node_os30.default.tmpdir(), "peach-turbo-swift", key2);
|
|
109082
109097
|
import_node_fs139.default.mkdirSync(scratch2, { recursive: true });
|
|
109083
109098
|
const codegenDir = import_node_fs139.default.mkdtempSync(import_node_path141.default.join(scratch2, "codegen-"));
|
|
@@ -109278,11 +109293,11 @@ async function compileTurboModule(options2) {
|
|
|
109278
109293
|
collection
|
|
109279
109294
|
};
|
|
109280
109295
|
}
|
|
109281
|
-
var
|
|
109296
|
+
var import_node_crypto85, import_node_fs139, import_node_module18, import_node_os30, import_node_path141;
|
|
109282
109297
|
var init_turbo_compile = __esm({
|
|
109283
109298
|
"src/turbo-compile.ts"() {
|
|
109284
109299
|
"use strict";
|
|
109285
|
-
|
|
109300
|
+
import_node_crypto85 = require("node:crypto");
|
|
109286
109301
|
import_node_fs139 = __toESM(require("node:fs"), 1);
|
|
109287
109302
|
import_node_module18 = require("node:module");
|
|
109288
109303
|
import_node_os30 = __toESM(require("node:os"), 1);
|
|
@@ -109499,8 +109514,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
109499
109514
|
);
|
|
109500
109515
|
if (!isRecord(manifest) || typeof manifest.version !== "string")
|
|
109501
109516
|
throw new Error(`${reactNativeRoot}: react-native has no version`);
|
|
109502
|
-
const headers = (0,
|
|
109503
|
-
const sources = (0,
|
|
109517
|
+
const headers = (0, import_node_crypto86.createHash)("sha256");
|
|
109518
|
+
const sources = (0, import_node_crypto86.createHash)("sha256");
|
|
109504
109519
|
const walk4 = (relative6) => {
|
|
109505
109520
|
for (const file of import_node_fs141.default.readdirSync(import_node_path143.default.join(reactNativeRoot, relative6), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
109506
109521
|
if (file.name === "node_modules" || file.name.startsWith(".")) continue;
|
|
@@ -109607,7 +109622,7 @@ function linkReactNativeCore(collection, core, moduleRoot) {
|
|
|
109607
109622
|
const file = import_node_path143.default.join(
|
|
109608
109623
|
cacheDir(),
|
|
109609
109624
|
"native-archives",
|
|
109610
|
-
`${(0,
|
|
109625
|
+
`${(0, import_node_crypto86.createHash)("sha256").update(data).digest("hex")}.a`
|
|
109611
109626
|
);
|
|
109612
109627
|
import_node_fs141.default.mkdirSync(import_node_path143.default.dirname(file), { recursive: true });
|
|
109613
109628
|
if (!import_node_fs141.default.existsSync(file)) import_node_fs141.default.writeFileSync(file, Buffer.from(data, "base64"));
|
|
@@ -109617,11 +109632,11 @@ function linkReactNativeCore(collection, core, moduleRoot) {
|
|
|
109617
109632
|
}
|
|
109618
109633
|
}
|
|
109619
109634
|
}
|
|
109620
|
-
var
|
|
109635
|
+
var import_node_crypto86, import_node_fs141, import_node_module19, import_node_path143, import_node_util18, recipe, strings4, building;
|
|
109621
109636
|
var init_react_native_core = __esm({
|
|
109622
109637
|
"src/react-native-core.ts"() {
|
|
109623
109638
|
"use strict";
|
|
109624
|
-
|
|
109639
|
+
import_node_crypto86 = require("node:crypto");
|
|
109625
109640
|
import_node_fs141 = __toESM(require("node:fs"), 1);
|
|
109626
109641
|
import_node_module19 = require("node:module");
|
|
109627
109642
|
import_node_path143 = __toESM(require("node:path"), 1);
|
|
@@ -109646,7 +109661,7 @@ function exportedNames(moduleRoot, name3) {
|
|
|
109646
109661
|
const modules = import_node_path144.default.join(moduleRoot, "modules");
|
|
109647
109662
|
const module2 = import_node_path144.default.join(modules, `${name3}.swiftmodule`);
|
|
109648
109663
|
if (!import_node_fs142.default.existsSync(module2)) return /* @__PURE__ */ new Set();
|
|
109649
|
-
const key2 = (0,
|
|
109664
|
+
const key2 = (0, import_node_crypto87.createHash)("sha256").update(import_node_fs142.default.readFileSync(module2)).digest("hex");
|
|
109650
109665
|
const directory2 = import_node_path144.default.join(swiftCacheDir(), "swift-public-names");
|
|
109651
109666
|
const receipt = import_node_path144.default.join(directory2, `${key2}.json`);
|
|
109652
109667
|
if (import_node_fs142.default.existsSync(receipt)) {
|
|
@@ -109729,12 +109744,12 @@ function clangTypeOwnership(moduleRoot, module2) {
|
|
|
109729
109744
|
}
|
|
109730
109745
|
);
|
|
109731
109746
|
}
|
|
109732
|
-
var import_node_child_process70,
|
|
109747
|
+
var import_node_child_process70, import_node_crypto87, import_node_fs142, import_node_path144, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
|
|
109733
109748
|
var init_swift_clang_type_ownership = __esm({
|
|
109734
109749
|
"src/swift-clang-type-ownership.ts"() {
|
|
109735
109750
|
"use strict";
|
|
109736
109751
|
import_node_child_process70 = require("node:child_process");
|
|
109737
|
-
|
|
109752
|
+
import_node_crypto87 = require("node:crypto");
|
|
109738
109753
|
import_node_fs142 = __toESM(require("node:fs"), 1);
|
|
109739
109754
|
import_node_path144 = __toESM(require("node:path"), 1);
|
|
109740
109755
|
init_is_record();
|
|
@@ -111389,7 +111404,7 @@ function targetSettings2(units) {
|
|
|
111389
111404
|
}
|
|
111390
111405
|
function oneSDKStamp(oneSDK) {
|
|
111391
111406
|
if (!oneSDK) return "";
|
|
111392
|
-
const hash = (0,
|
|
111407
|
+
const hash = (0, import_node_crypto88.createHash)("sha256");
|
|
111393
111408
|
for (const files2 of [oneSDK.targets, oneSDK.entry])
|
|
111394
111409
|
for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
|
|
111395
111410
|
hash.update(`${name3}\0${source}\0`);
|
|
@@ -111440,7 +111455,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
|
|
|
111440
111455
|
`;
|
|
111441
111456
|
}
|
|
111442
111457
|
function expoSwiftPreparedKey(base2, units, reactProviderStamp) {
|
|
111443
|
-
const hash = (0,
|
|
111458
|
+
const hash = (0, import_node_crypto88.createHash)("sha256");
|
|
111444
111459
|
hash.update(base2);
|
|
111445
111460
|
hash.update(reactProviderStamp);
|
|
111446
111461
|
for (const unit2 of units) {
|
|
@@ -111814,8 +111829,8 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
111814
111829
|
}
|
|
111815
111830
|
return provider;
|
|
111816
111831
|
})() : void 0;
|
|
111817
|
-
const reactProviderStamp = reactProvider ? (0,
|
|
111818
|
-
const key2 = (0,
|
|
111832
|
+
const reactProviderStamp = reactProvider ? (0, import_node_crypto88.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
|
|
111833
|
+
const key2 = (0, import_node_crypto88.createHash)("sha256").update(import_node_fs143.default.realpathSync(root)).digest("hex");
|
|
111819
111834
|
const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
|
|
111820
111835
|
const failures = /* @__PURE__ */ new Map();
|
|
111821
111836
|
const failureRecords = /* @__PURE__ */ new Map();
|
|
@@ -112257,13 +112272,13 @@ ${diagnostics}`}`
|
|
|
112257
112272
|
}
|
|
112258
112273
|
return true;
|
|
112259
112274
|
}
|
|
112260
|
-
var import_node_async_hooks3, import_node_child_process71,
|
|
112275
|
+
var import_node_async_hooks3, import_node_child_process71, import_node_crypto88, import_node_fs143, import_node_module20, import_node_os31, import_node_path145, import_node_url7, import_node_util19, run12, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
112261
112276
|
var init_expo_swift_host = __esm({
|
|
112262
112277
|
"src/expo-swift-host.ts"() {
|
|
112263
112278
|
"use strict";
|
|
112264
112279
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
112265
112280
|
import_node_child_process71 = require("node:child_process");
|
|
112266
|
-
|
|
112281
|
+
import_node_crypto88 = require("node:crypto");
|
|
112267
112282
|
import_node_fs143 = __toESM(require("node:fs"), 1);
|
|
112268
112283
|
import_node_module20 = require("node:module");
|
|
112269
112284
|
import_node_os31 = __toESM(require("node:os"), 1);
|
|
@@ -116188,10 +116203,10 @@ function stageHostBytes(bytes, origin, extension = "") {
|
|
|
116188
116203
|
}
|
|
116189
116204
|
async function stageHostDerivedBytes(input, producer, origin, extension, derive) {
|
|
116190
116205
|
const directory2 = prepareStagedDirectory();
|
|
116191
|
-
const inputDigest = (0,
|
|
116206
|
+
const inputDigest = (0, import_node_crypto90.createHash)("sha256").update(input).digest("hex");
|
|
116192
116207
|
const index = import_node_path153.default.join(
|
|
116193
116208
|
directory2,
|
|
116194
|
-
`derived-${(0,
|
|
116209
|
+
`derived-${(0, import_node_crypto90.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
|
|
116195
116210
|
);
|
|
116196
116211
|
const recorded = import_node_fs151.default.existsSync(index) ? import_node_fs151.default.readFileSync(index, "utf8") : "";
|
|
116197
116212
|
if (STAGED_NAME.test(recorded) && import_node_fs151.default.existsSync(import_node_path153.default.join(directory2, recorded))) {
|
|
@@ -116202,7 +116217,7 @@ async function stageHostDerivedBytes(input, producer, origin, extension, derive)
|
|
|
116202
116217
|
return new URL(STAGED_PREFIX + recorded, origin).toString();
|
|
116203
116218
|
}
|
|
116204
116219
|
const staged = writeStagedBytes(await derive(), origin, extension, directory2);
|
|
116205
|
-
const temporary = import_node_path153.default.join(directory2, (0,
|
|
116220
|
+
const temporary = import_node_path153.default.join(directory2, (0, import_node_crypto90.randomUUID)());
|
|
116206
116221
|
try {
|
|
116207
116222
|
import_node_fs151.default.writeFileSync(temporary, new URL(staged).pathname.slice(STAGED_PREFIX.length), {
|
|
116208
116223
|
flag: "wx"
|
|
@@ -116221,7 +116236,7 @@ function metroIndexName(url) {
|
|
|
116221
116236
|
url.searchParams.get("unstable_path"),
|
|
116222
116237
|
hashes[0]
|
|
116223
116238
|
]);
|
|
116224
|
-
return `metro-${(0,
|
|
116239
|
+
return `metro-${(0, import_node_crypto90.createHash)("sha256").update(key2).digest("hex")}`;
|
|
116225
116240
|
}
|
|
116226
116241
|
function metroRequestIndex(rawUrl) {
|
|
116227
116242
|
if (!rawUrl?.startsWith("/") || rawUrl.startsWith("//")) return null;
|
|
@@ -116249,7 +116264,7 @@ function prepareStagedDirectory() {
|
|
|
116249
116264
|
return directory2;
|
|
116250
116265
|
}
|
|
116251
116266
|
function writeStagedBytes(bytes, origin, extension, directory2) {
|
|
116252
|
-
const digest3 = (0,
|
|
116267
|
+
const digest3 = (0, import_node_crypto90.createHash)("sha256").update(bytes).digest("hex");
|
|
116253
116268
|
extension = extension.toLowerCase();
|
|
116254
116269
|
const name3 = STAGED_NAME.test(digest3 + extension) ? digest3 + extension : digest3;
|
|
116255
116270
|
stagedCapture.getStore()?.add(name3);
|
|
@@ -116258,7 +116273,7 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
|
|
|
116258
116273
|
if (import_node_fs151.default.existsSync(destination)) {
|
|
116259
116274
|
import_node_fs151.default.utimesSync(destination, new Date(now), new Date(now));
|
|
116260
116275
|
} else {
|
|
116261
|
-
const temporary = import_node_path153.default.join(directory2, (0,
|
|
116276
|
+
const temporary = import_node_path153.default.join(directory2, (0, import_node_crypto90.randomUUID)());
|
|
116262
116277
|
try {
|
|
116263
116278
|
import_node_fs151.default.writeFileSync(temporary, bytes, { flag: "wx" });
|
|
116264
116279
|
import_node_fs151.default.renameSync(temporary, destination);
|
|
@@ -116330,12 +116345,12 @@ async function handleStagedHostFileRequest(req, res) {
|
|
|
116330
116345
|
throw error;
|
|
116331
116346
|
}
|
|
116332
116347
|
}
|
|
116333
|
-
var import_node_async_hooks4,
|
|
116348
|
+
var import_node_async_hooks4, import_node_crypto90, import_node_fs151, import_node_path153, stagedCapture, STAGED_PREFIX, STAGED_NAME, METRO_INDEX_NAME, STAGED_RETENTION_MS;
|
|
116334
116349
|
var init_staged_host_files = __esm({
|
|
116335
116350
|
"src/host/staged-host-files.ts"() {
|
|
116336
116351
|
"use strict";
|
|
116337
116352
|
import_node_async_hooks4 = require("node:async_hooks");
|
|
116338
|
-
|
|
116353
|
+
import_node_crypto90 = require("node:crypto");
|
|
116339
116354
|
import_node_fs151 = __toESM(require("node:fs"), 1);
|
|
116340
116355
|
import_node_path153 = __toESM(require("node:path"), 1);
|
|
116341
116356
|
init_uttype_mime();
|
|
@@ -117224,7 +117239,7 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2) {
|
|
|
117224
117239
|
""
|
|
117225
117240
|
].join("\n");
|
|
117226
117241
|
}
|
|
117227
|
-
const digest3 = (0,
|
|
117242
|
+
const digest3 = (0, import_node_crypto91.createHash)("sha256").update(manifest);
|
|
117228
117243
|
for (const [name3, source] of files2)
|
|
117229
117244
|
digest3.update(name3).update("\0").update(source).update("\0");
|
|
117230
117245
|
const key2 = digest3.digest("hex").slice(0, 16);
|
|
@@ -117246,11 +117261,11 @@ async function oneNativeControlsPackage(appRoot, linkedGroups, sdk2) {
|
|
|
117246
117261
|
oneSDKModules: bindings && [...bindings.modules]
|
|
117247
117262
|
};
|
|
117248
117263
|
}
|
|
117249
|
-
var
|
|
117264
|
+
var import_node_crypto91, import_node_fs153, import_node_module21, import_node_path155, import_node_url8, ONE_SDK_DEFINES, BRIDGE_SWIFT, ONE_SDK_RUNTIME_SOURCES;
|
|
117250
117265
|
var init_one_native_controls_package = __esm({
|
|
117251
117266
|
"src/one-native-controls-package.ts"() {
|
|
117252
117267
|
"use strict";
|
|
117253
|
-
|
|
117268
|
+
import_node_crypto91 = require("node:crypto");
|
|
117254
117269
|
import_node_fs153 = __toESM(require("node:fs"), 1);
|
|
117255
117270
|
import_node_module21 = require("node:module");
|
|
117256
117271
|
import_node_path155 = __toESM(require("node:path"), 1);
|
|
@@ -118488,7 +118503,7 @@ async function readOneWidgetSources(appRoot) {
|
|
|
118488
118503
|
if (!Buffer.from(text7).equals(bytes))
|
|
118489
118504
|
throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
|
|
118490
118505
|
files2.set(name3, text7);
|
|
118491
|
-
sources[import_node_path157.default.relative(root, file).split(import_node_path157.default.sep).join("/")] = (0,
|
|
118506
|
+
sources[import_node_path157.default.relative(root, file).split(import_node_path157.default.sep).join("/")] = (0, import_node_crypto92.createHash)("sha256").update(bytes).digest("hex");
|
|
118492
118507
|
}
|
|
118493
118508
|
const contract = files2.get("OneWidgetContract.swift") ?? "";
|
|
118494
118509
|
const source = files2.get("OneWidget.swift") ?? "";
|
|
@@ -118512,17 +118527,17 @@ async function configuredOneWidget(appRoot, bundleUrl, packageUrl) {
|
|
|
118512
118527
|
return {
|
|
118513
118528
|
metadata: source.widget,
|
|
118514
118529
|
projectRoot: source.root,
|
|
118515
|
-
appIdentity: (0,
|
|
118530
|
+
appIdentity: (0, import_node_crypto92.createHash)("sha256").update(JSON.stringify([source.root, source.widget.bundleId])).digest("hex"),
|
|
118516
118531
|
bundleUrl,
|
|
118517
118532
|
packageUrl,
|
|
118518
118533
|
urlSchemes: source.urlSchemes
|
|
118519
118534
|
};
|
|
118520
118535
|
}
|
|
118521
|
-
var
|
|
118536
|
+
var import_node_crypto92, import_node_fs155, import_node_path157, ONE_WIDGET_PACKAGE, nonEmpty;
|
|
118522
118537
|
var init_one_widget_metadata = __esm({
|
|
118523
118538
|
"src/one-widget-metadata.ts"() {
|
|
118524
118539
|
"use strict";
|
|
118525
|
-
|
|
118540
|
+
import_node_crypto92 = require("node:crypto");
|
|
118526
118541
|
import_node_fs155 = __toESM(require("node:fs"), 1);
|
|
118527
118542
|
import_node_path157 = __toESM(require("node:path"), 1);
|
|
118528
118543
|
init_is_record();
|
|
@@ -118556,7 +118571,7 @@ async function oneWidgetPackage(appRoot) {
|
|
|
118556
118571
|
const packagePath = import_node_path158.default.join(
|
|
118557
118572
|
import_node_os33.default.tmpdir(),
|
|
118558
118573
|
"peach-one-widgets",
|
|
118559
|
-
(0,
|
|
118574
|
+
(0, import_node_crypto93.createHash)("sha256").update(root).digest("hex"),
|
|
118560
118575
|
ONE_WIDGET_PACKAGE
|
|
118561
118576
|
);
|
|
118562
118577
|
import_node_fs156.default.mkdirSync(packagePath, { recursive: true });
|
|
@@ -118570,11 +118585,11 @@ async function oneWidgetPackage(appRoot) {
|
|
|
118570
118585
|
widget
|
|
118571
118586
|
};
|
|
118572
118587
|
}
|
|
118573
|
-
var
|
|
118588
|
+
var import_node_crypto93, import_node_fs156, import_node_os33, import_node_path158;
|
|
118574
118589
|
var init_one_widget_package = __esm({
|
|
118575
118590
|
"src/one-widget-package.ts"() {
|
|
118576
118591
|
"use strict";
|
|
118577
|
-
|
|
118592
|
+
import_node_crypto93 = require("node:crypto");
|
|
118578
118593
|
import_node_fs156 = __toESM(require("node:fs"), 1);
|
|
118579
118594
|
import_node_os33 = __toESM(require("node:os"), 1);
|
|
118580
118595
|
import_node_path158 = __toESM(require("node:path"), 1);
|
|
@@ -118790,7 +118805,7 @@ var init_android_view_classes = __esm({
|
|
|
118790
118805
|
|
|
118791
118806
|
// src/java-module-abi.ts
|
|
118792
118807
|
async function readJavaModuleSpecs(files2, sdkRoot, toolchain) {
|
|
118793
|
-
const digest3 = (0,
|
|
118808
|
+
const digest3 = (0, import_node_crypto94.createHash)("sha256");
|
|
118794
118809
|
const parent = import_node_path160.default.join(kotlinHome(), "java-specs");
|
|
118795
118810
|
import_node_fs158.default.mkdirSync(parent, { recursive: true });
|
|
118796
118811
|
const work = import_node_fs158.default.mkdtempSync(import_node_path160.default.join(parent, ".read-"));
|
|
@@ -118887,12 +118902,12 @@ async function compileJavaModuleAbi(input) {
|
|
|
118887
118902
|
);
|
|
118888
118903
|
return library;
|
|
118889
118904
|
}
|
|
118890
|
-
var import_node_child_process74,
|
|
118905
|
+
var import_node_child_process74, import_node_crypto94, import_node_fs158, import_node_path160, import_node_util20, run13, JAVA_BINDINGS_INITIALIZER;
|
|
118891
118906
|
var init_java_module_abi = __esm({
|
|
118892
118907
|
"src/java-module-abi.ts"() {
|
|
118893
118908
|
"use strict";
|
|
118894
118909
|
import_node_child_process74 = require("node:child_process");
|
|
118895
|
-
|
|
118910
|
+
import_node_crypto94 = require("node:crypto");
|
|
118896
118911
|
import_node_fs158 = __toESM(require("node:fs"), 1);
|
|
118897
118912
|
import_node_path160 = __toESM(require("node:path"), 1);
|
|
118898
118913
|
import_node_util20 = require("node:util");
|
|
@@ -119220,7 +119235,7 @@ function zipSources(bytes, where) {
|
|
|
119220
119235
|
return entries2;
|
|
119221
119236
|
}
|
|
119222
119237
|
function extract(bytes, where) {
|
|
119223
|
-
const key2 = (0,
|
|
119238
|
+
const key2 = (0, import_node_crypto95.createHash)("sha256").update(bytes).digest("hex");
|
|
119224
119239
|
const cached4 = pending.get(key2);
|
|
119225
119240
|
if (cached4) return cached4;
|
|
119226
119241
|
const request = (async () => {
|
|
@@ -119269,11 +119284,11 @@ function readSourcesJar(archive, where) {
|
|
|
119269
119284
|
function readMavenSourcesArchive(archive) {
|
|
119270
119285
|
return extract(readSourcesJar(archive, archive), archive);
|
|
119271
119286
|
}
|
|
119272
|
-
var
|
|
119287
|
+
var import_node_crypto95, import_node_fs160, import_node_os34, import_node_path162, import_node_zlib9, pending, MAX_SOURCES_JAR_BYTES, MAX_SOURCE_ENTRY_BYTES, MAX_TOTAL_EXTRACTED_BYTES;
|
|
119273
119288
|
var init_kotlin_maven_sources = __esm({
|
|
119274
119289
|
"src/kotlin-maven-sources.ts"() {
|
|
119275
119290
|
"use strict";
|
|
119276
|
-
|
|
119291
|
+
import_node_crypto95 = require("node:crypto");
|
|
119277
119292
|
import_node_fs160 = __toESM(require("node:fs"), 1);
|
|
119278
119293
|
import_node_os34 = __toESM(require("node:os"), 1);
|
|
119279
119294
|
import_node_path162 = __toESM(require("node:path"), 1);
|
|
@@ -119314,7 +119329,7 @@ async function compileKotlinGradleLibraries(input) {
|
|
|
119314
119329
|
])
|
|
119315
119330
|
];
|
|
119316
119331
|
const name3 = library.coordinate.replace(/[^a-zA-Z0-9._-]/g, "-");
|
|
119317
|
-
const suffix = (0,
|
|
119332
|
+
const suffix = (0, import_node_crypto96.createHash)("sha256").update(library.coordinate).digest("hex").slice(0, 12);
|
|
119318
119333
|
const klib = import_node_path163.default.join(input.output, `${name3}-${suffix}.klib`);
|
|
119319
119334
|
const kotlinJvmAbi = java.length && kotlin.length && library.jars.length === 1 ? library.jars[0] : void 0;
|
|
119320
119335
|
const abiPairs = java.length ? dependencies.flatMap(
|
|
@@ -119356,11 +119371,11 @@ async function compileKotlinGradleLibraries(input) {
|
|
|
119356
119371
|
}
|
|
119357
119372
|
return [...compiled.values()].map(({ klib }) => klib);
|
|
119358
119373
|
}
|
|
119359
|
-
var
|
|
119374
|
+
var import_node_crypto96, import_node_fs161, import_node_path163;
|
|
119360
119375
|
var init_kotlin_gradle_library_plan = __esm({
|
|
119361
119376
|
"src/kotlin-gradle-library-plan.ts"() {
|
|
119362
119377
|
"use strict";
|
|
119363
|
-
|
|
119378
|
+
import_node_crypto96 = require("node:crypto");
|
|
119364
119379
|
import_node_fs161 = __toESM(require("node:fs"), 1);
|
|
119365
119380
|
import_node_path163 = __toESM(require("node:path"), 1);
|
|
119366
119381
|
init_kotlin_library_sources();
|
|
@@ -119596,13 +119611,13 @@ function verifyKotlinSdkDirectory(root, compiler) {
|
|
|
119596
119611
|
if (!stat2.isFile() || stat2.nlink !== 1)
|
|
119597
119612
|
throw new Error(`Kotlin SDK binary is not a regular file: ${name3}`);
|
|
119598
119613
|
const bytes = import_node_fs162.default.readFileSync(target);
|
|
119599
|
-
if (bytes.length !== expected.bytes || (0,
|
|
119614
|
+
if (bytes.length !== expected.bytes || (0, import_node_crypto97.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
|
|
119600
119615
|
throw new Error(`Kotlin SDK binary differs from its manifest: ${name3}`);
|
|
119601
119616
|
}
|
|
119602
119617
|
return manifest;
|
|
119603
119618
|
}
|
|
119604
119619
|
async function installKotlinSdkArchive(archive, compiler) {
|
|
119605
|
-
const sha2565 = (0,
|
|
119620
|
+
const sha2565 = (0, import_node_crypto97.createHash)("sha256").update(archive).digest("hex");
|
|
119606
119621
|
const parent = import_node_path164.default.join(kotlinHome(), "sdk");
|
|
119607
119622
|
const root = import_node_path164.default.join(parent, sha2565);
|
|
119608
119623
|
if (import_node_fs162.default.existsSync(root))
|
|
@@ -119631,12 +119646,12 @@ async function installKotlinSdkArchive(archive, compiler) {
|
|
|
119631
119646
|
import_node_fs162.default.rmSync(work, { recursive: true, force: true });
|
|
119632
119647
|
}
|
|
119633
119648
|
}
|
|
119634
|
-
var import_node_child_process76,
|
|
119649
|
+
var import_node_child_process76, import_node_crypto97, import_node_fs162, import_node_path164, import_node_util21, run14;
|
|
119635
119650
|
var init_kotlin_sdk = __esm({
|
|
119636
119651
|
"src/kotlin-sdk.ts"() {
|
|
119637
119652
|
"use strict";
|
|
119638
119653
|
import_node_child_process76 = require("node:child_process");
|
|
119639
|
-
|
|
119654
|
+
import_node_crypto97 = require("node:crypto");
|
|
119640
119655
|
import_node_fs162 = __toESM(require("node:fs"), 1);
|
|
119641
119656
|
import_node_path164 = __toESM(require("node:path"), 1);
|
|
119642
119657
|
import_node_util21 = require("node:util");
|
|
@@ -119772,7 +119787,7 @@ function peachKotlinModuleRoot() {
|
|
|
119772
119787
|
if (!IS_STANDALONE) return import_node_path165.default.join(peachsimPackageRoot(), "kotlin");
|
|
119773
119788
|
if (installedRoot) return installedRoot;
|
|
119774
119789
|
const files2 = JSON.parse(__PEACH_BUNDLED_KOTLIN__);
|
|
119775
|
-
const digest3 = (0,
|
|
119790
|
+
const digest3 = (0, import_node_crypto98.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
|
|
119776
119791
|
const parent = import_node_path165.default.join(rnxHomeDir(), "kotlin", "modules");
|
|
119777
119792
|
const root = import_node_path165.default.join(parent, digest3);
|
|
119778
119793
|
import_node_fs163.default.mkdirSync(parent, { recursive: true });
|
|
@@ -119801,11 +119816,11 @@ function peachKotlinModuleRoot() {
|
|
|
119801
119816
|
installedRoot = root;
|
|
119802
119817
|
return root;
|
|
119803
119818
|
}
|
|
119804
|
-
var
|
|
119819
|
+
var import_node_crypto98, import_node_fs163, import_node_path165, installedRoot;
|
|
119805
119820
|
var init_kotlin_module = __esm({
|
|
119806
119821
|
"src/kotlin-module.ts"() {
|
|
119807
119822
|
"use strict";
|
|
119808
|
-
|
|
119823
|
+
import_node_crypto98 = require("node:crypto");
|
|
119809
119824
|
import_node_fs163 = __toESM(require("node:fs"), 1);
|
|
119810
119825
|
import_node_path165 = __toESM(require("node:path"), 1);
|
|
119811
119826
|
init_standalone();
|
|
@@ -119839,7 +119854,7 @@ async function resolveAndroidGradleSources(request) {
|
|
|
119839
119854
|
const parent = import_node_path166.default.join(kotlinHome(), "gradle-sources");
|
|
119840
119855
|
import_node_fs164.default.mkdirSync(parent, { recursive: true });
|
|
119841
119856
|
const work = import_node_fs164.default.mkdtempSync(import_node_path166.default.join(parent, ".query-"));
|
|
119842
|
-
const task = `peachAndroidSources${(0,
|
|
119857
|
+
const task = `peachAndroidSources${(0, import_node_crypto99.randomBytes)(8).toString("hex")}`;
|
|
119843
119858
|
const script = import_node_path166.default.join(work, "sources.gradle");
|
|
119844
119859
|
const encoded = Buffer.from(
|
|
119845
119860
|
JSON.stringify({
|
|
@@ -119991,12 +120006,12 @@ function readDependencySources(value) {
|
|
|
119991
120006
|
};
|
|
119992
120007
|
});
|
|
119993
120008
|
}
|
|
119994
|
-
var import_node_child_process77,
|
|
120009
|
+
var import_node_child_process77, import_node_crypto99, import_node_fs164, import_node_path166, import_node_util22, run15, modelQuery;
|
|
119995
120010
|
var init_android_gradle_sources = __esm({
|
|
119996
120011
|
"src/android-gradle-sources.ts"() {
|
|
119997
120012
|
"use strict";
|
|
119998
120013
|
import_node_child_process77 = require("node:child_process");
|
|
119999
|
-
|
|
120014
|
+
import_node_crypto99 = require("node:crypto");
|
|
120000
120015
|
import_node_fs164 = __toESM(require("node:fs"), 1);
|
|
120001
120016
|
import_node_path166 = __toESM(require("node:path"), 1);
|
|
120002
120017
|
import_node_util22 = require("node:util");
|
|
@@ -120411,7 +120426,7 @@ function readExpoTypes(output) {
|
|
|
120411
120426
|
});
|
|
120412
120427
|
}
|
|
120413
120428
|
async function scanSources(tool, parse17, toolchain, moduleRoot, files2) {
|
|
120414
|
-
const digest3 = (0,
|
|
120429
|
+
const digest3 = (0, import_node_crypto100.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
|
|
120415
120430
|
const sdk2 = await loadKotlinSdk(moduleRoot, toolchain);
|
|
120416
120431
|
digest3.update(import_node_fs165.default.readFileSync(import_node_path167.default.join(moduleRoot, "sdk.tar.gz")));
|
|
120417
120432
|
digest3.update(tool);
|
|
@@ -121073,7 +121088,7 @@ async function compileKotlin(input, origin) {
|
|
|
121073
121088
|
bytes: import_node_fs165.default.readFileSync(file)
|
|
121074
121089
|
}));
|
|
121075
121090
|
const { composeArchive, ...compilerInputs } = toolchain;
|
|
121076
|
-
const digest3 = (0,
|
|
121091
|
+
const digest3 = (0, import_node_crypto100.createHash)("sha256");
|
|
121077
121092
|
digest3.update(
|
|
121078
121093
|
JSON.stringify({
|
|
121079
121094
|
format: BUILD_FORMAT,
|
|
@@ -121095,7 +121110,7 @@ async function compileKotlin(input, origin) {
|
|
|
121095
121110
|
...gradleLibraries.libraries.flatMap(({ archive, jars }) => [archive, ...jars])
|
|
121096
121111
|
]);
|
|
121097
121112
|
for (const file of files2) {
|
|
121098
|
-
digest3.update((0,
|
|
121113
|
+
digest3.update((0, import_node_crypto100.createHash)("sha256").update(import_node_fs165.default.readFileSync(file)).digest());
|
|
121099
121114
|
}
|
|
121100
121115
|
}
|
|
121101
121116
|
if (viewModels) digest3.update(viewModels.toolClass);
|
|
@@ -121387,12 +121402,12 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
121387
121402
|
}
|
|
121388
121403
|
return true;
|
|
121389
121404
|
}
|
|
121390
|
-
var import_node_child_process78,
|
|
121405
|
+
var import_node_child_process78, import_node_crypto100, import_node_fs165, import_node_module22, import_node_path167, import_node_util23, run16, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal3, CONTENT_TYPES;
|
|
121391
121406
|
var init_kotlin_host = __esm({
|
|
121392
121407
|
"src/kotlin-host.ts"() {
|
|
121393
121408
|
"use strict";
|
|
121394
121409
|
import_node_child_process78 = require("node:child_process");
|
|
121395
|
-
|
|
121410
|
+
import_node_crypto100 = require("node:crypto");
|
|
121396
121411
|
import_node_fs165 = __toESM(require("node:fs"), 1);
|
|
121397
121412
|
import_node_module22 = require("node:module");
|
|
121398
121413
|
import_node_path167 = __toESM(require("node:path"), 1);
|
|
@@ -121748,7 +121763,7 @@ async function readManagedExpoIdentity(root, platform3, iosTarget, bridgeOrigin)
|
|
|
121748
121763
|
url.searchParams.set("root", root);
|
|
121749
121764
|
const response = await nodeHttpFetch(url.href);
|
|
121750
121765
|
if (response.ok && response.headers.get("content-type") === revisionType) {
|
|
121751
|
-
const environment = (0,
|
|
121766
|
+
const environment = (0, import_node_crypto101.createHash)("sha256").update(JSON.stringify(Object.entries(process.env).sort())).digest("hex");
|
|
121752
121767
|
const inputs2 = Buffer.from(
|
|
121753
121768
|
JSON.stringify([
|
|
121754
121769
|
await response.text(),
|
|
@@ -121804,11 +121819,11 @@ function handleManagedExpoInputs(req, res, url) {
|
|
|
121804
121819
|
res.writeHead(200, { "Content-Type": revisionType });
|
|
121805
121820
|
res.end(revision);
|
|
121806
121821
|
}
|
|
121807
|
-
var
|
|
121822
|
+
var import_node_crypto101, import_node_fs167, import_node_path169, revisionType;
|
|
121808
121823
|
var init_managed_expo_identity = __esm({
|
|
121809
121824
|
"src/managed-expo-identity.ts"() {
|
|
121810
121825
|
"use strict";
|
|
121811
|
-
|
|
121826
|
+
import_node_crypto101 = require("node:crypto");
|
|
121812
121827
|
import_node_fs167 = __toESM(require("node:fs"), 1);
|
|
121813
121828
|
import_node_path169 = __toESM(require("node:path"), 1);
|
|
121814
121829
|
init_backend_origin();
|
|
@@ -121923,7 +121938,7 @@ async function stagePreparedExpoWidgetAssets(preparedApp, origin) {
|
|
|
121923
121938
|
const ext = import_node_path172.default.extname(file);
|
|
121924
121939
|
if (ext.toLowerCase() === ".svg") return stageCatalogSvg(file, scale, origin, bytes);
|
|
121925
121940
|
if (ext.toLowerCase() === ".pdf") {
|
|
121926
|
-
const sha2565 = (0,
|
|
121941
|
+
const sha2565 = (0, import_node_crypto102.createHash)("sha256").update(bytes).digest("hex");
|
|
121927
121942
|
const png = rasterizePdfFiles([{ file: members2.get(file), sha256: sha2565 }]).get(sha2565);
|
|
121928
121943
|
return stageHostBytes(png, origin, ".png");
|
|
121929
121944
|
}
|
|
@@ -121936,11 +121951,11 @@ async function stageExpoWidgetAssets(appRoot, origin) {
|
|
|
121936
121951
|
const prepared = await prepareExpoNativeProject(appRoot);
|
|
121937
121952
|
return stagePreparedExpoWidgetAssets(prepared.app, origin);
|
|
121938
121953
|
}
|
|
121939
|
-
var
|
|
121954
|
+
var import_node_crypto102, import_node_fs169, import_node_path172;
|
|
121940
121955
|
var init_expo_widget_assets = __esm({
|
|
121941
121956
|
"src/expo-widget-assets.ts"() {
|
|
121942
121957
|
"use strict";
|
|
121943
|
-
|
|
121958
|
+
import_node_crypto102 = require("node:crypto");
|
|
121944
121959
|
import_node_fs169 = __toESM(require("node:fs"), 1);
|
|
121945
121960
|
import_node_path172 = __toESM(require("node:path"), 1);
|
|
121946
121961
|
init_app_catalog();
|
|
@@ -121995,11 +122010,11 @@ async function trunkSpecification(lockFile, root, version2, checksum) {
|
|
|
121995
122010
|
"specifications",
|
|
121996
122011
|
`${checksum}.json`
|
|
121997
122012
|
);
|
|
121998
|
-
const sha1 = (value) => (0,
|
|
122013
|
+
const sha1 = (value) => (0, import_node_crypto103.createHash)("sha1").update(value).digest("hex");
|
|
121999
122014
|
let text7;
|
|
122000
122015
|
if (import_node_fs170.default.existsSync(file)) text7 = import_node_fs170.default.readFileSync(file, "utf8");
|
|
122001
122016
|
else {
|
|
122002
|
-
const shard2 = (0,
|
|
122017
|
+
const shard2 = (0, import_node_crypto103.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
|
|
122003
122018
|
const specPath = `Specs/${shard2}/${root}/${version2}/${root}.podspec.json`;
|
|
122004
122019
|
const response = await fetch(`https://cdn.cocoapods.org/${specPath}`);
|
|
122005
122020
|
if (!response.ok)
|
|
@@ -122128,7 +122143,7 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
|
|
|
122128
122143
|
"end",
|
|
122129
122144
|
""
|
|
122130
122145
|
].join("\n");
|
|
122131
|
-
const key2 = (0,
|
|
122146
|
+
const key2 = (0, import_node_crypto103.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
|
|
122132
122147
|
JSON.stringify(
|
|
122133
122148
|
Object.entries(specificationChecksums).sort(([a], [b]) => a.localeCompare(b))
|
|
122134
122149
|
)
|
|
@@ -122197,11 +122212,11 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
|
|
|
122197
122212
|
);
|
|
122198
122213
|
});
|
|
122199
122214
|
}
|
|
122200
|
-
var
|
|
122215
|
+
var import_node_crypto103, import_node_fs170, import_node_path173, APP, record5, project, podModuleName;
|
|
122201
122216
|
var init_swift_source_pods = __esm({
|
|
122202
122217
|
"src/swift-source-pods.ts"() {
|
|
122203
122218
|
"use strict";
|
|
122204
|
-
|
|
122219
|
+
import_node_crypto103 = require("node:crypto");
|
|
122205
122220
|
import_node_fs170 = __toESM(require("node:fs"), 1);
|
|
122206
122221
|
import_node_path173 = __toESM(require("node:path"), 1);
|
|
122207
122222
|
init_browser();
|
|
@@ -122878,7 +122893,7 @@ async function prepareNitroCompileInput(options2) {
|
|
|
122878
122893
|
input.libraries ??= {};
|
|
122879
122894
|
input.libraries[nitroProviderTarget({ name: name3 })] = library;
|
|
122880
122895
|
}
|
|
122881
|
-
const key2 = (0,
|
|
122896
|
+
const key2 = (0, import_node_crypto104.createHash)("sha256").update(
|
|
122882
122897
|
collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
|
|
122883
122898
|
).update("\0").update(import_node_fs171.default.realpathSync(options2.moduleRoot)).update("\0").update(options2.configuration).digest("hex");
|
|
122884
122899
|
const packagePath = import_node_path174.default.join(import_node_os35.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
|
|
@@ -122935,11 +122950,11 @@ function nitrogenGeneratedSources(podDirectory) {
|
|
|
122935
122950
|
...sources(import_node_path174.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
|
|
122936
122951
|
];
|
|
122937
122952
|
}
|
|
122938
|
-
var
|
|
122953
|
+
var import_node_crypto104, import_node_fs171, import_node_os35, import_node_path174, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
|
|
122939
122954
|
var init_nitro_compile = __esm({
|
|
122940
122955
|
"src/nitro-compile.ts"() {
|
|
122941
122956
|
"use strict";
|
|
122942
|
-
|
|
122957
|
+
import_node_crypto104 = require("node:crypto");
|
|
122943
122958
|
import_node_fs171 = __toESM(require("node:fs"), 1);
|
|
122944
122959
|
import_node_os35 = __toESM(require("node:os"), 1);
|
|
122945
122960
|
import_node_path174 = __toESM(require("node:path"), 1);
|
|
@@ -123016,11 +123031,11 @@ var init_nitro_compile = __esm({
|
|
|
123016
123031
|
});
|
|
123017
123032
|
|
|
123018
123033
|
// src/nitro-compiler-digest.ts
|
|
123019
|
-
var
|
|
123034
|
+
var import_node_crypto105, import_node_fs172, import_node_path175;
|
|
123020
123035
|
var init_nitro_compiler_digest = __esm({
|
|
123021
123036
|
"src/nitro-compiler-digest.ts"() {
|
|
123022
123037
|
"use strict";
|
|
123023
|
-
|
|
123038
|
+
import_node_crypto105 = require("node:crypto");
|
|
123024
123039
|
import_node_fs172 = require("node:fs");
|
|
123025
123040
|
import_node_path175 = __toESM(require("node:path"), 1);
|
|
123026
123041
|
init_swift_compiler_digest();
|
|
@@ -123158,7 +123173,7 @@ var init_nitro_superset = __esm({
|
|
|
123158
123173
|
init_nitroContract();
|
|
123159
123174
|
init_swift_standin_digest();
|
|
123160
123175
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
123161
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
123176
|
+
NITRO_COMPILER_DIGEST = true ? "bdc0f5dd61f31a5b6f5bba3db67fc29584077dfb64bd237228a11b91b9ab2730" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
123162
123177
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
123163
123178
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
123164
123179
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -123687,7 +123702,7 @@ async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRoo
|
|
|
123687
123702
|
const packagePath = import_node_path179.default.join(
|
|
123688
123703
|
swiftCacheDir(),
|
|
123689
123704
|
"peach-one-sdk-swift",
|
|
123690
|
-
(0,
|
|
123705
|
+
(0, import_node_crypto106.createHash)("sha256").update(import_node_fs175.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
|
|
123691
123706
|
"sdk"
|
|
123692
123707
|
);
|
|
123693
123708
|
const bindingFlags = optimize ? '["-suppress-warnings"]' : '["-suppress-warnings", "-Onone", "-no-whole-module-optimization"]';
|
|
@@ -123734,11 +123749,11 @@ async function buildOneSDKBundle(appRoot) {
|
|
|
123734
123749
|
assets: await compiledModuleAssets(compiled.artifact)
|
|
123735
123750
|
};
|
|
123736
123751
|
}
|
|
123737
|
-
var
|
|
123752
|
+
var import_node_crypto106, import_node_fs175, import_node_path179, ONE_SDK_ROUTE, ONE_SDK_BINDING_SHARDS, ONE_SDK_BINDING_SHARD_MIN_BYTES, handleOneSDKRequest;
|
|
123738
123753
|
var init_one_sdk_bundle = __esm({
|
|
123739
123754
|
"src/one-sdk-bundle.ts"() {
|
|
123740
123755
|
"use strict";
|
|
123741
|
-
|
|
123756
|
+
import_node_crypto106 = require("node:crypto");
|
|
123742
123757
|
import_node_fs175 = __toESM(require("node:fs"), 1);
|
|
123743
123758
|
import_node_path179 = __toESM(require("node:path"), 1);
|
|
123744
123759
|
init_expo_native_workspace();
|
|
@@ -124401,11 +124416,11 @@ function readSharedDesktopAuthSession() {
|
|
|
124401
124416
|
return null;
|
|
124402
124417
|
}
|
|
124403
124418
|
}
|
|
124404
|
-
var
|
|
124419
|
+
var import_node_crypto107, import_node_fs179, import_node_path184, SESSION_VERSION, SESSION_FILE_ENV, DEFAULT_ORIGIN;
|
|
124405
124420
|
var init_shared_session = __esm({
|
|
124406
124421
|
"src/auth/shared-session.ts"() {
|
|
124407
124422
|
"use strict";
|
|
124408
|
-
|
|
124423
|
+
import_node_crypto107 = require("node:crypto");
|
|
124409
124424
|
import_node_fs179 = require("node:fs");
|
|
124410
124425
|
import_node_path184 = require("node:path");
|
|
124411
124426
|
init_home_paths();
|
|
@@ -124443,7 +124458,7 @@ var init_run_rnx = __esm({
|
|
|
124443
124458
|
// cli/secure-file.ts
|
|
124444
124459
|
function writeSecureJsonAtomic(filepath, value, { durable = true } = {}) {
|
|
124445
124460
|
(0, import_node_fs180.mkdirSync)((0, import_node_path185.dirname)(filepath), { recursive: true });
|
|
124446
|
-
const temporary = `${filepath}.tmp-${process.pid}-${(0,
|
|
124461
|
+
const temporary = `${filepath}.tmp-${process.pid}-${(0, import_node_crypto108.randomUUID)()}`;
|
|
124447
124462
|
let descriptor = null;
|
|
124448
124463
|
try {
|
|
124449
124464
|
descriptor = (0, import_node_fs180.openSync)(temporary, "wx", 384);
|
|
@@ -124460,11 +124475,11 @@ function writeSecureJsonAtomic(filepath, value, { durable = true } = {}) {
|
|
|
124460
124475
|
throw error;
|
|
124461
124476
|
}
|
|
124462
124477
|
}
|
|
124463
|
-
var
|
|
124478
|
+
var import_node_crypto108, import_node_fs180, import_node_path185;
|
|
124464
124479
|
var init_secure_file = __esm({
|
|
124465
124480
|
"cli/secure-file.ts"() {
|
|
124466
124481
|
"use strict";
|
|
124467
|
-
|
|
124482
|
+
import_node_crypto108 = require("node:crypto");
|
|
124468
124483
|
import_node_fs180 = require("node:fs");
|
|
124469
124484
|
import_node_path185 = require("node:path");
|
|
124470
124485
|
}
|
|
@@ -126826,11 +126841,11 @@ function createCloudSession(input) {
|
|
|
126826
126841
|
}
|
|
126827
126842
|
return session;
|
|
126828
126843
|
}
|
|
126829
|
-
var
|
|
126844
|
+
var import_node_crypto109, import_node_fs182, import_node_path187, CLOUD_SESSION_VERSION, MAX_ENCODED_SESSION_BYTES, RNX_SHELL_UPDATE_PREFIX, RNX_SHELL_UPDATE_SET_PREFIX, RNX_SHELL_UPDATE_UNSET;
|
|
126830
126845
|
var init_cloud_session = __esm({
|
|
126831
126846
|
"cli/cloud-session.ts"() {
|
|
126832
126847
|
"use strict";
|
|
126833
|
-
|
|
126848
|
+
import_node_crypto109 = require("node:crypto");
|
|
126834
126849
|
import_node_fs182 = require("node:fs");
|
|
126835
126850
|
import_node_path187 = require("node:path");
|
|
126836
126851
|
init_backend_origin();
|
|
@@ -127092,7 +127107,7 @@ function listMetroAssetDest(assetsPath) {
|
|
|
127092
127107
|
return { directory: directory2, files: files2, truncated };
|
|
127093
127108
|
}
|
|
127094
127109
|
function metroDescriptorHash(scaleBytes) {
|
|
127095
|
-
const hasher = (0,
|
|
127110
|
+
const hasher = (0, import_node_crypto110.createHash)("md5");
|
|
127096
127111
|
for (const bytes of scaleBytes) hasher.update(bytes);
|
|
127097
127112
|
return hasher.digest("hex");
|
|
127098
127113
|
}
|
|
@@ -127121,7 +127136,7 @@ function distinctByContent(directory2, options2) {
|
|
|
127121
127136
|
} catch {
|
|
127122
127137
|
continue;
|
|
127123
127138
|
}
|
|
127124
|
-
const digest3 = (0,
|
|
127139
|
+
const digest3 = (0, import_node_crypto110.createHash)("md5").update(bytes).digest("hex");
|
|
127125
127140
|
if (!byContent.has(digest3)) byContent.set(digest3, relative6);
|
|
127126
127141
|
}
|
|
127127
127142
|
return [...byContent.values()];
|
|
@@ -127169,7 +127184,7 @@ function placeMetroDescriptor(listing, descriptor) {
|
|
|
127169
127184
|
continue;
|
|
127170
127185
|
}
|
|
127171
127186
|
const identical = fileHashes2 ? bytes.every((file, index) => {
|
|
127172
|
-
const digest3 = (0,
|
|
127187
|
+
const digest3 = (0, import_node_crypto110.createHash)("md5").update(file).digest("hex");
|
|
127173
127188
|
return descriptor.scales.some(
|
|
127174
127189
|
(scale, declared) => scale === scales[index] && fileHashes2[declared] === digest3
|
|
127175
127190
|
);
|
|
@@ -127194,7 +127209,7 @@ function unverifiedContentKey(dest, fileDigests2) {
|
|
|
127194
127209
|
const file = (0, import_node_path189.join)(dest.directory, relative6);
|
|
127195
127210
|
let digest3 = fileDigests2.get(file);
|
|
127196
127211
|
if (digest3 === void 0) {
|
|
127197
|
-
digest3 = (0,
|
|
127212
|
+
digest3 = (0, import_node_crypto110.createHash)("sha256").update((0, import_node_fs184.readFileSync)(file)).digest("hex");
|
|
127198
127213
|
fileDigests2.set(file, digest3);
|
|
127199
127214
|
}
|
|
127200
127215
|
return [scale, digest3];
|
|
@@ -127483,7 +127498,7 @@ async function produceArtifact(prepared, maxBytes, command) {
|
|
|
127483
127498
|
}
|
|
127484
127499
|
return {
|
|
127485
127500
|
bytes,
|
|
127486
|
-
sha256: (0,
|
|
127501
|
+
sha256: (0, import_node_crypto110.createHash)("sha256").update(bytes).digest("hex"),
|
|
127487
127502
|
receipt: artifact.receipt,
|
|
127488
127503
|
assetsDirectory: prepared.dest?.directory ?? null,
|
|
127489
127504
|
warnings
|
|
@@ -127588,11 +127603,11 @@ async function createCloudBox(options2) {
|
|
|
127588
127603
|
warnings: artifact.warnings
|
|
127589
127604
|
};
|
|
127590
127605
|
}
|
|
127591
|
-
var
|
|
127606
|
+
var import_node_crypto110, import_node_fs184, import_node_path189, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, NanoDevelopmentOnlyError, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS;
|
|
127592
127607
|
var init_cloud_client = __esm({
|
|
127593
127608
|
"cli/cloud-client.ts"() {
|
|
127594
127609
|
"use strict";
|
|
127595
|
-
|
|
127610
|
+
import_node_crypto110 = require("node:crypto");
|
|
127596
127611
|
import_node_fs184 = require("node:fs");
|
|
127597
127612
|
import_node_path189 = require("node:path");
|
|
127598
127613
|
import_node_vm = require("node:vm");
|
|
@@ -129359,7 +129374,7 @@ function serveAppPackageResource(req, res) {
|
|
|
129359
129374
|
init_fetch_proxy_handler();
|
|
129360
129375
|
|
|
129361
129376
|
// src/host/fetch-proxy-transport.ts
|
|
129362
|
-
var
|
|
129377
|
+
var import_node_crypto89 = require("node:crypto");
|
|
129363
129378
|
var import_node_fs147 = require("node:fs");
|
|
129364
129379
|
var import_node_http23 = require("node:http2");
|
|
129365
129380
|
var import_node_path149 = __toESM(require("node:path"), 1);
|
|
@@ -129392,7 +129407,7 @@ async function createIdentity() {
|
|
|
129392
129407
|
const keys = await crypto.subtle.generateKey(algorithm, true, ["sign", "verify"]);
|
|
129393
129408
|
const certificate = await import_x5092.X509CertificateGenerator.createSelfSigned(
|
|
129394
129409
|
{
|
|
129395
|
-
serialNumber: (0,
|
|
129410
|
+
serialNumber: (0, import_node_crypto89.randomBytes)(16).toString("hex"),
|
|
129396
129411
|
name: "CN=localhost",
|
|
129397
129412
|
notBefore: new Date(Date.now() - 6e4),
|
|
129398
129413
|
notAfter: new Date(Date.now() + 365 * 24 * 60 * 6e4),
|
|
@@ -129411,7 +129426,7 @@ async function createIdentity() {
|
|
|
129411
129426
|
${privateKey.toString("base64").match(/.{1,64}/g)?.join("\n")}
|
|
129412
129427
|
-----END PRIVATE KEY-----
|
|
129413
129428
|
`,
|
|
129414
|
-
spki: (0,
|
|
129429
|
+
spki: (0, import_node_crypto89.createHash)("sha256").update(Buffer.from(await crypto.subtle.exportKey("spki", keys.publicKey))).digest("base64")
|
|
129415
129430
|
};
|
|
129416
129431
|
}
|
|
129417
129432
|
async function startFetchProxyTransport(identityPath, hasLiveSims = () => false) {
|