peachsim 0.1.2429 → 0.1.2432
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/cli/commands/preview.ts +2 -1
- package/cli/outbound-endpoints.ts +10 -2
- 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 +15792 -5999
- 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 +14638 -4887
- 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 +15465 -5754
- package/dist-lib/host/fetch-proxy-handler.cjs +3205 -54
- 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 +3542 -391
- 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 +3438 -287
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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 +174 -81
- 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 +16787 -6994
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- 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 +95 -27
- package/dist-lib/vite.cjs +3331 -180
- 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 +23 -63
- package/src/pbx-table.ts +200 -0
- package/src/pod-sources.ts +628 -0
- package/src/podfile-cocoapods.ts +40 -3
- package/src/pods-analysis.ts +488 -0
- package/src/pods-build-settings.ts +1015 -0
- package/src/pods-files.ts +478 -0
- package/src/pods-install.ts +475 -0
- package/src/pods-integration.ts +778 -0
- package/src/pods-post-install.ts +1811 -0
- package/src/pods-project.ts +2416 -0
- package/src/pods-scripts.ts +409 -0
- package/src/pods-targets.ts +757 -0
- package/src/pods-xcconfig.ts +198 -0
- package/src/podspec-cocoapods.ts +29 -3
- package/src/podspec-ruby-stdlib.ts +111 -10
- package/src/podspec-ruby.ts +52 -8
- package/src/swift-catalog-png.ts +75 -0
- package/src/swift-host.ts +4 -3
- package/src/swift-root-lock.ts +0 -10
- package/src/swift-source-pods.ts +29 -73
- package/src/turbo-source.ts +16 -37
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2432 | (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;
|
|
@@ -14058,7 +14058,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
14058
14058
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
14059
14059
|
var MULTI_MANIFEST_VERSION = 72;
|
|
14060
14060
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
14061
|
-
var compilerSourceDigest = true ? "
|
|
14061
|
+
var compilerSourceDigest = true ? "da253e49615973dfc65a40000574546cbf7dc4c9d44a36295773bd33442d8c1d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
14062
14062
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
14063
14063
|
const hash = (0, import_node_crypto15.createHash)("sha256");
|
|
14064
14064
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2432 | (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);
|
|
@@ -14057,7 +14057,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
14057
14057
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
14058
14058
|
var MULTI_MANIFEST_VERSION = 72;
|
|
14059
14059
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
14060
|
-
var compilerSourceDigest = true ? "
|
|
14060
|
+
var compilerSourceDigest = true ? "da253e49615973dfc65a40000574546cbf7dc4c9d44a36295773bd33442d8c1d" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
14061
14061
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
14062
14062
|
const hash = createHash15("sha256");
|
|
14063
14063
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2432 | (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.2432 | (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.2432 | (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.2432 | (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.2432 | (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;
|
|
@@ -1169,6 +1169,27 @@ var import_node_path63 = __toESM(require("node:path"), 1);
|
|
|
1169
1169
|
// ../sootsim-swift/src/bundleAssets.ts
|
|
1170
1170
|
var import_svgpath = __toESM(require("svgpath"), 1);
|
|
1171
1171
|
|
|
1172
|
+
// ../../src/helpers/mapLimit.ts
|
|
1173
|
+
async function mapLimit(items2, limit, worker) {
|
|
1174
|
+
const results = new Array(items2.length);
|
|
1175
|
+
let next = 0;
|
|
1176
|
+
let failure2;
|
|
1177
|
+
await Promise.all(
|
|
1178
|
+
Array.from({ length: Math.min(limit, items2.length) }, async () => {
|
|
1179
|
+
while (!failure2 && next < items2.length) {
|
|
1180
|
+
const index = next++;
|
|
1181
|
+
try {
|
|
1182
|
+
results[index] = await worker(items2[index], index);
|
|
1183
|
+
} catch (error) {
|
|
1184
|
+
failure2 ??= { error };
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
})
|
|
1188
|
+
);
|
|
1189
|
+
if (failure2) throw failure2.error;
|
|
1190
|
+
return results;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1172
1193
|
// src/assetCatalogContract.ts
|
|
1173
1194
|
var DEFAULT_SF_SYMBOL_VARIANT = {
|
|
1174
1195
|
scale: "medium",
|
|
@@ -18975,7 +18996,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18975
18996
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18976
18997
|
var MULTI_MANIFEST_VERSION = 72;
|
|
18977
18998
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18978
|
-
var compilerSourceDigest = true ? "
|
|
18999
|
+
var compilerSourceDigest = true ? "da253e49615973dfc65a40000574546cbf7dc4c9d44a36295773bd33442d8c1d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18979
19000
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18980
19001
|
const hash = (0, import_node_crypto15.createHash)("sha256");
|
|
18981
19002
|
hash.update(`swift-compile
|
|
@@ -33612,6 +33633,74 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
33612
33633
|
};
|
|
33613
33634
|
}
|
|
33614
33635
|
|
|
33636
|
+
// src/swift-catalog-png.ts
|
|
33637
|
+
var import_node_zlib3 = require("node:zlib");
|
|
33638
|
+
var import_pngjs = require("pngjs");
|
|
33639
|
+
var pngSignature = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
|
|
33640
|
+
function dataChunk(bytes) {
|
|
33641
|
+
const chunk = Buffer.alloc(bytes.length + 12);
|
|
33642
|
+
chunk.writeUInt32BE(bytes.length);
|
|
33643
|
+
chunk.write("IDAT", 4, "ascii");
|
|
33644
|
+
chunk.set(bytes, 8);
|
|
33645
|
+
chunk.writeUInt32BE((0, import_node_zlib3.crc32)(chunk.subarray(4, -4)), chunk.length - 4);
|
|
33646
|
+
return chunk;
|
|
33647
|
+
}
|
|
33648
|
+
function normalizeSwiftCatalogPng(png) {
|
|
33649
|
+
if (!png.subarray(0, 8).equals(pngSignature) || png.toString("ascii", 12, 16) !== "CgBI")
|
|
33650
|
+
return png;
|
|
33651
|
+
const chunks = [pngSignature];
|
|
33652
|
+
const compressed = [];
|
|
33653
|
+
let scanlineBytes = 0;
|
|
33654
|
+
let ended = false;
|
|
33655
|
+
for (let offset = 8; offset + 12 <= png.length; ) {
|
|
33656
|
+
const size = png.readUInt32BE(offset);
|
|
33657
|
+
const end = offset + size + 12;
|
|
33658
|
+
if (end > png.length) throw new Error("truncated Swift catalog PNG chunk");
|
|
33659
|
+
const name3 = png.toString("ascii", offset + 4, offset + 8);
|
|
33660
|
+
const chunk = png.subarray(offset, end);
|
|
33661
|
+
const body = chunk.subarray(8, -4);
|
|
33662
|
+
offset = end;
|
|
33663
|
+
if (name3 === "IHDR") {
|
|
33664
|
+
if (size !== 13 || body[8] !== 8 || body[9] !== 6 || body[12] !== 0)
|
|
33665
|
+
throw new Error("unsupported Swift catalog CgBI pixel format");
|
|
33666
|
+
const width = body.readUInt32BE(0);
|
|
33667
|
+
const height = body.readUInt32BE(4);
|
|
33668
|
+
if (width === 0 || height === 0 || width * height > 16777216)
|
|
33669
|
+
throw new Error("Swift catalog CgBI dimensions exceed the image limit");
|
|
33670
|
+
scanlineBytes = (width * 4 + 1) * height;
|
|
33671
|
+
}
|
|
33672
|
+
if (name3 === "IDAT") {
|
|
33673
|
+
compressed.push(body);
|
|
33674
|
+
} else if (name3 === "IEND") {
|
|
33675
|
+
if (!scanlineBytes || !compressed.length)
|
|
33676
|
+
throw new Error("Swift catalog CgBI has no pixel data");
|
|
33677
|
+
const scanlines = (0, import_node_zlib3.inflateRawSync)(Buffer.concat(compressed), {
|
|
33678
|
+
maxOutputLength: scanlineBytes
|
|
33679
|
+
});
|
|
33680
|
+
if (scanlines.length !== scanlineBytes)
|
|
33681
|
+
throw new Error("Swift catalog CgBI has incomplete scanlines");
|
|
33682
|
+
chunks.push(dataChunk((0, import_node_zlib3.deflateSync)(scanlines)), chunk);
|
|
33683
|
+
ended = true;
|
|
33684
|
+
break;
|
|
33685
|
+
} else if (name3 !== "CgBI" && name3 !== "iDOT") {
|
|
33686
|
+
chunks.push(chunk);
|
|
33687
|
+
}
|
|
33688
|
+
}
|
|
33689
|
+
if (!ended) throw new Error("truncated Swift catalog CgBI");
|
|
33690
|
+
const decoded = import_pngjs.PNG.sync.read(Buffer.concat(chunks));
|
|
33691
|
+
for (let i = 0; i < decoded.data.length; i += 4) {
|
|
33692
|
+
const blue = decoded.data[i];
|
|
33693
|
+
const green = decoded.data[i + 1];
|
|
33694
|
+
const red = decoded.data[i + 2];
|
|
33695
|
+
const alpha = decoded.data[i + 3];
|
|
33696
|
+
const scale = alpha === 0 ? 0 : 255 / alpha;
|
|
33697
|
+
decoded.data[i] = Math.min(255, Math.round(red * scale));
|
|
33698
|
+
decoded.data[i + 1] = Math.min(255, Math.round(green * scale));
|
|
33699
|
+
decoded.data[i + 2] = Math.min(255, Math.round(blue * scale));
|
|
33700
|
+
}
|
|
33701
|
+
return import_pngjs.PNG.sync.write(decoded);
|
|
33702
|
+
}
|
|
33703
|
+
|
|
33615
33704
|
// src/swift-cxx-reachable.ts
|
|
33616
33705
|
var import_node_child_process34 = require("node:child_process");
|
|
33617
33706
|
var import_node_crypto31 = require("node:crypto");
|
|
@@ -33667,27 +33756,6 @@ var import_node_crypto30 = require("node:crypto");
|
|
|
33667
33756
|
var import_node_fs54 = __toESM(require("node:fs"), 1);
|
|
33668
33757
|
var import_node_path55 = __toESM(require("node:path"), 1);
|
|
33669
33758
|
|
|
33670
|
-
// ../../src/helpers/mapLimit.ts
|
|
33671
|
-
async function mapLimit(items2, limit, worker) {
|
|
33672
|
-
const results = new Array(items2.length);
|
|
33673
|
-
let next = 0;
|
|
33674
|
-
let failure2;
|
|
33675
|
-
await Promise.all(
|
|
33676
|
-
Array.from({ length: Math.min(limit, items2.length) }, async () => {
|
|
33677
|
-
while (!failure2 && next < items2.length) {
|
|
33678
|
-
const index = next++;
|
|
33679
|
-
try {
|
|
33680
|
-
results[index] = await worker(items2[index], index);
|
|
33681
|
-
} catch (error) {
|
|
33682
|
-
failure2 ??= { error };
|
|
33683
|
-
}
|
|
33684
|
-
}
|
|
33685
|
-
})
|
|
33686
|
-
);
|
|
33687
|
-
if (failure2) throw failure2.error;
|
|
33688
|
-
return results;
|
|
33689
|
-
}
|
|
33690
|
-
|
|
33691
33759
|
// src/nitro-dependencies.ts
|
|
33692
33760
|
var import_node_child_process26 = require("node:child_process");
|
|
33693
33761
|
var import_node_util6 = require("node:util");
|
|
@@ -34806,7 +34874,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
|
34806
34874
|
return hash.digest("hex");
|
|
34807
34875
|
}
|
|
34808
34876
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
34809
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
34877
|
+
var STANDIN_SOURCE_DIGEST = true ? "3475ca483b1e5005a2c76ec887310c0d0f44c91ea427496b33acbb5bf6188684" : standinSourceDigest();
|
|
34810
34878
|
|
|
34811
34879
|
// src/swift-standins.ts
|
|
34812
34880
|
var import_node_child_process32 = require("node:child_process");
|
|
@@ -41677,9 +41745,6 @@ function buildSwiftResourceTable(project, baseUrl, inputs) {
|
|
|
41677
41745
|
const pdfHash = (0, import_node_crypto34.createHash)("sha256").update(pdfBytes).digest("hex");
|
|
41678
41746
|
const raster = rasterizePdfFile(disk, pdfHash);
|
|
41679
41747
|
bytes = raster.bytes;
|
|
41680
|
-
if (bytes.length > limits.imageBytes) {
|
|
41681
|
-
throw new Error(`swift image ${file} raster exceeds the per-image cap`);
|
|
41682
|
-
}
|
|
41683
41748
|
ext = ".png";
|
|
41684
41749
|
uploadName = `${import_node_path60.default.posix.basename(file, import_node_path60.default.posix.extname(file))}.png`;
|
|
41685
41750
|
} else {
|
|
@@ -41687,6 +41752,7 @@ function buildSwiftResourceTable(project, baseUrl, inputs) {
|
|
|
41687
41752
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
41688
41753
|
}
|
|
41689
41754
|
bytes = readPackageFile2(project.packagePath, disk, limits.imageBytes);
|
|
41755
|
+
if (ext === ".png") bytes = normalizeSwiftCatalogPng(bytes);
|
|
41690
41756
|
const svg = ext === ".svg" ? rasterizeSvgFile(disk, (0, import_node_crypto34.createHash)("sha256").update(bytes).digest("hex")) : null;
|
|
41691
41757
|
if (svg) {
|
|
41692
41758
|
bytes = svg.bytes;
|
|
@@ -41695,6 +41761,8 @@ function buildSwiftResourceTable(project, baseUrl, inputs) {
|
|
|
41695
41761
|
uploadName = `${import_node_path60.default.posix.basename(file, import_node_path60.default.posix.extname(file))}.png`;
|
|
41696
41762
|
}
|
|
41697
41763
|
}
|
|
41764
|
+
if (bytes.length > limits.imageBytes)
|
|
41765
|
+
throw new Error(`swift image ${file} raster exceeds the per-image cap`);
|
|
41698
41766
|
if (imageBytes + bytes.length > limits.imageTotalBytes) {
|
|
41699
41767
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
41700
41768
|
}
|