peachsim 0.1.1911 → 0.1.1913
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 +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +29 -4
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +28 -3
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +29 -4
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +31 -6
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/expo-native-workspace.ts +30 -1
- package/src/worker-system-chunks.ts +11 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (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;
|
|
@@ -18567,9 +18567,9 @@ var init_registry = __esm({
|
|
|
18567
18567
|
stubType: "native",
|
|
18568
18568
|
versions: [
|
|
18569
18569
|
{
|
|
18570
|
-
range: "8.5.3",
|
|
18570
|
+
range: ">=8.5.3",
|
|
18571
18571
|
coverage: 0,
|
|
18572
|
-
note: "unsupported: Scandit ID capture runtime is absent",
|
|
18572
|
+
note: "unsupported: Scandit ID capture runtime is absent. 8.5.3 and 8.7.0 read: the ScanditDataCaptureId TurboModule constants key is Defaults through 8.5.3 and DynamicDefaults from 8.7.0",
|
|
18573
18573
|
missing: "ScanditDataCaptureId TurboModule, ID capture sessions and views, document recognition, verification, and result models"
|
|
18574
18574
|
}
|
|
18575
18575
|
]
|
|
@@ -62706,7 +62706,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
62706
62706
|
};
|
|
62707
62707
|
const run12 = (command, args, cwd, env = {}) => runAdmitted(lease, command, args, cwd, { ...miseEnv, ...podsEnvironment, ...env });
|
|
62708
62708
|
const manager = workspacePackageManager(root, manifest.packageManager, excluded);
|
|
62709
|
-
const nodeVersion = typeof manifest.engines?.node === "string" && /^\d
|
|
62709
|
+
const nodeVersion = typeof manifest.engines?.node === "string" && /^\d+(\.\d+){0,2}$/.test(manifest.engines.node) ? manifest.engines.node : null;
|
|
62710
62710
|
const prefix = nodeVersion ? ["mise", "exec", `node@${nodeVersion}`, "--"] : [];
|
|
62711
62711
|
const bunPrefix = import_node_path57.default.join(cacheDir(), "package-managers", manager);
|
|
62712
62712
|
const install = manager === "pnpm" || manager.startsWith("pnpm@") ? [
|
|
@@ -62798,6 +62798,7 @@ async function prepareNativeProject(app, manifest, stage, execute, run12, report
|
|
|
62798
62798
|
...sourcePodEnv,
|
|
62799
62799
|
...declares2("react-native-webgpu") ? {} : { RNSKIA_VENDOR_DAWN: "1" }
|
|
62800
62800
|
};
|
|
62801
|
+
stageCachedQuickCryptoOpenSsl(app);
|
|
62801
62802
|
await withCocoaPodsCacheLock(async () => {
|
|
62802
62803
|
if (bundled) {
|
|
62803
62804
|
await run12("bundle", ["install"], iosRoot, podEnv);
|
|
@@ -62806,6 +62807,30 @@ async function prepareNativeProject(app, manifest, stage, execute, run12, report
|
|
|
62806
62807
|
});
|
|
62807
62808
|
report("pod install done");
|
|
62808
62809
|
}
|
|
62810
|
+
function stageCachedQuickCryptoOpenSsl(app) {
|
|
62811
|
+
const root = findWorkspaceRoot(app);
|
|
62812
|
+
let packageDir = null;
|
|
62813
|
+
for (let at = app; ; at = import_node_path57.default.dirname(at)) {
|
|
62814
|
+
const candidate = import_node_path57.default.join(at, "node_modules", "react-native-quick-crypto");
|
|
62815
|
+
if (import_node_fs59.default.existsSync(import_node_path57.default.join(candidate, "QuickCrypto.podspec"))) {
|
|
62816
|
+
packageDir = candidate;
|
|
62817
|
+
break;
|
|
62818
|
+
}
|
|
62819
|
+
if (at === root || import_node_path57.default.dirname(at) === at) break;
|
|
62820
|
+
}
|
|
62821
|
+
if (!packageDir) return;
|
|
62822
|
+
const opensslDir = import_node_path57.default.join(packageDir, "ios", "openssl");
|
|
62823
|
+
if (import_node_fs59.default.existsSync(import_node_path57.default.join(opensslDir, "quickcrypto_openssl_prefix.h"))) return;
|
|
62824
|
+
const podspec = import_node_fs59.default.readFileSync(import_node_path57.default.join(packageDir, "QuickCrypto.podspec"), "utf8");
|
|
62825
|
+
const sha2564 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
|
|
62826
|
+
if (!sha2564) return;
|
|
62827
|
+
const archive = import_node_path57.default.join(cacheDir(), "pod-archives", `${sha2564}.zip`);
|
|
62828
|
+
if (!import_node_fs59.default.existsSync(archive) || (0, import_node_crypto30.createHash)("sha256").update(import_node_fs59.default.readFileSync(archive)).digest("hex") !== sha2564)
|
|
62829
|
+
return;
|
|
62830
|
+
import_node_fs59.default.rmSync(opensslDir, { recursive: true, force: true });
|
|
62831
|
+
import_node_fs59.default.mkdirSync(opensslDir, { recursive: true });
|
|
62832
|
+
(0, import_node_child_process35.execFileSync)("unzip", ["-q", "-o", archive, "-d", opensslDir]);
|
|
62833
|
+
}
|
|
62809
62834
|
async function runAdmitted(lease, command, args, cwd, extraEnv) {
|
|
62810
62835
|
const admitted = teamMachineInstalled();
|
|
62811
62836
|
const child = lease.spawn(
|
|
@@ -64065,7 +64090,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64065
64090
|
init_swift_native_pin();
|
|
64066
64091
|
init_xcode_project();
|
|
64067
64092
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64068
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
64093
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "2cbb259081e37bc9851cd9ce509ca3171eda31765244b1533aeac0020250b78b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64069
64094
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64070
64095
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64071
64096
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -82123,7 +82148,7 @@ var init_nitro_superset = __esm({
|
|
|
82123
82148
|
init_swift_standin_digest();
|
|
82124
82149
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
82125
82150
|
packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path89.join)(root, "package.json"), "utf8")).version;
|
|
82126
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
82151
|
+
NITRO_COMPILER_DIGEST = true ? "a2dc66667bea7056769ce340482f09e9288091c8211cc2658e72c9e25c1653eb" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
82127
82152
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
82128
82153
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
82129
82154
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1913 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/package.json
CHANGED
|
@@ -780,7 +780,7 @@ async function prepareWorkspace(
|
|
|
780
780
|
const manager = workspacePackageManager(root, manifest.packageManager, excluded)
|
|
781
781
|
const nodeVersion =
|
|
782
782
|
typeof manifest.engines?.node === 'string' &&
|
|
783
|
-
/^\d
|
|
783
|
+
/^\d+(\.\d+){0,2}$/.test(manifest.engines.node)
|
|
784
784
|
? manifest.engines.node
|
|
785
785
|
: null
|
|
786
786
|
const prefix = nodeVersion ? ['mise', 'exec', `node@${nodeVersion}`, '--'] : []
|
|
@@ -920,6 +920,7 @@ async function prepareNativeProject(
|
|
|
920
920
|
...sourcePodEnv,
|
|
921
921
|
...(declares('react-native-webgpu') ? {} : { RNSKIA_VENDOR_DAWN: '1' }),
|
|
922
922
|
}
|
|
923
|
+
stageCachedQuickCryptoOpenSsl(app)
|
|
923
924
|
await withCocoaPodsCacheLock(async () => {
|
|
924
925
|
if (bundled) {
|
|
925
926
|
await run('bundle', ['install'], iosRoot, podEnv)
|
|
@@ -929,6 +930,34 @@ async function prepareNativeProject(
|
|
|
929
930
|
report('pod install done')
|
|
930
931
|
}
|
|
931
932
|
|
|
933
|
+
function stageCachedQuickCryptoOpenSsl(app: string) {
|
|
934
|
+
const root = findWorkspaceRoot(app)
|
|
935
|
+
let packageDir: string | null = null
|
|
936
|
+
for (let at = app; ; at = path.dirname(at)) {
|
|
937
|
+
const candidate = path.join(at, 'node_modules', 'react-native-quick-crypto')
|
|
938
|
+
if (fs.existsSync(path.join(candidate, 'QuickCrypto.podspec'))) {
|
|
939
|
+
packageDir = candidate
|
|
940
|
+
break
|
|
941
|
+
}
|
|
942
|
+
if (at === root || path.dirname(at) === at) break
|
|
943
|
+
}
|
|
944
|
+
if (!packageDir) return
|
|
945
|
+
const opensslDir = path.join(packageDir, 'ios', 'openssl')
|
|
946
|
+
if (fs.existsSync(path.join(opensslDir, 'quickcrypto_openssl_prefix.h'))) return
|
|
947
|
+
const podspec = fs.readFileSync(path.join(packageDir, 'QuickCrypto.podspec'), 'utf8')
|
|
948
|
+
const sha256 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1]
|
|
949
|
+
if (!sha256) return
|
|
950
|
+
const archive = path.join(cacheDir(), 'pod-archives', `${sha256}.zip`)
|
|
951
|
+
if (
|
|
952
|
+
!fs.existsSync(archive) ||
|
|
953
|
+
createHash('sha256').update(fs.readFileSync(archive)).digest('hex') !== sha256
|
|
954
|
+
)
|
|
955
|
+
return
|
|
956
|
+
fs.rmSync(opensslDir, { recursive: true, force: true })
|
|
957
|
+
fs.mkdirSync(opensslDir, { recursive: true })
|
|
958
|
+
execFileSync('unzip', ['-q', '-o', archive, '-d', opensslDir])
|
|
959
|
+
}
|
|
960
|
+
|
|
932
961
|
async function runAdmitted(
|
|
933
962
|
lease: SwiftRootLease,
|
|
934
963
|
command: string,
|
|
@@ -263,9 +263,17 @@ function chunkBody(url) {
|
|
|
263
263
|
deliveredChunks.delete(url);
|
|
264
264
|
return new TextDecoder().decode(bytes);
|
|
265
265
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
266
|
+
for (let attempt = 0; ; attempt++) {
|
|
267
|
+
try {
|
|
268
|
+
const response = await fetchWorkerChunk(url, { credentials: 'same-origin' });
|
|
269
|
+
if (!response.ok) throw new Error(url + ': HTTP ' + response.status);
|
|
270
|
+
return await response.text();
|
|
271
|
+
} catch (err) {
|
|
272
|
+
if (attempt >= 2 || (err instanceof Error && err.message.includes(': HTTP '))) {
|
|
273
|
+
throw err;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
269
277
|
})();
|
|
270
278
|
body.catch(() => chunkBodies.delete(url));
|
|
271
279
|
chunkBodies.set(url, body);
|