peachsim 0.1.1842 → 0.1.1844

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.
Files changed (82) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +25 -4
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +23 -2
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +24 -3
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +1 -1
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +1 -1
  47. package/dist-lib/native-app-identity-project.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.mjs +1 -1
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +25 -4
  68. package/dist-lib/swift-compile.cjs +1 -1
  69. package/dist-lib/swift-compile.mjs +1 -1
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +1 -1
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/engine/text-line-break.d.ts +1 -1
  81. package/package.json +1 -1
  82. package/src/expo-native-workspace.ts +40 -1
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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;
@@ -56391,6 +56391,25 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
56391
56391
  const hash = (0, import_node_crypto26.createHash)("sha256");
56392
56392
  const native = (0, import_node_crypto26.createHash)("sha256");
56393
56393
  const nativeDirectories = localPackageDirectories(root, app);
56394
+ const versionFree = new Set(
56395
+ nativeDirectories.filter((directory2) => directory2 !== appRelative && directory2 !== "").filter(
56396
+ (directory2) => !import_node_fs53.default.readdirSync(import_node_path51.default.join(root, directory2)).some((name3) => NATIVE_PACKAGE_ENTRY.test(name3))
56397
+ ).map((directory2) => directory2.split(import_node_path51.default.sep).join("/"))
56398
+ );
56399
+ const nativeConfigBytes = (posix2, bytes) => {
56400
+ const directory2 = import_node_path51.default.posix.dirname(posix2);
56401
+ if (import_node_path51.default.posix.basename(posix2) === "package.json" && versionFree.has(directory2)) {
56402
+ const { version: _version, ...manifest2 } = JSON.parse(bytes.toString("utf8"));
56403
+ return JSON.stringify(manifest2);
56404
+ }
56405
+ if (posix2 !== "bun.lock") return bytes;
56406
+ let entry = null;
56407
+ return bytes.toString("utf8").split("\n").filter((line) => {
56408
+ const opened = /^ {4}"([^"]+)": \{$/.exec(line);
56409
+ if (opened) entry = opened[1] ?? null;
56410
+ return !(entry && versionFree.has(entry) && /^ {6}"version": "[^"]*",$/.test(line));
56411
+ }).join("\n");
56412
+ };
56394
56413
  const steersNative = (relative5) => !relative5.includes(import_node_path51.default.sep) || relative5.startsWith(`patches${import_node_path51.default.sep}`) || nativeDirectories.some(
56395
56414
  (directory2) => relative5 === directory2 || relative5.startsWith(directory2 + import_node_path51.default.sep)
56396
56415
  );
@@ -56414,7 +56433,8 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
56414
56433
  if (NATIVE_CONFIG_FILE.test(posix2)) {
56415
56434
  const bytes = await import_node_fs53.default.promises.readFile(file);
56416
56435
  if (everyByte) hash.update(`file\0${bytes.length}\0`).update(bytes);
56417
- if (steersNative(relative5)) native.update(`${posix2}\0`).update(bytes);
56436
+ if (steersNative(relative5))
56437
+ native.update(`${posix2}\0`).update(nativeConfigBytes(posix2, bytes));
56418
56438
  } else {
56419
56439
  if (everyByte) {
56420
56440
  const bytes = await import_node_fs53.default.promises.readFile(file);
@@ -56850,7 +56870,7 @@ async function runAdmitted(lease, command, args, cwd, extraEnv) {
56850
56870
  );
56851
56871
  });
56852
56872
  }
56853
- var import_node_child_process31, import_node_crypto26, import_node_fs53, import_node_module5, import_node_path51, import_node_util10, isolatedGitEnv, utf8Env, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current;
56873
+ var import_node_child_process31, import_node_crypto26, import_node_fs53, import_node_module5, import_node_path51, import_node_util10, isolatedGitEnv, utf8Env, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, NATIVE_PACKAGE_ENTRY, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current;
56854
56874
  var init_expo_native_workspace = __esm({
56855
56875
  "src/expo-native-workspace.ts"() {
56856
56876
  "use strict";
@@ -56877,6 +56897,7 @@ var init_expo_native_workspace = __esm({
56877
56897
  utf8Env = { ...process.env, LANG: "en_US.UTF-8", LC_ALL: "en_US.UTF-8" };
56878
56898
  NATIVE_CONFIG_FILE = /(^|\/)(package\.json|bun\.lockb?|package-lock\.json|pnpm-lock\.yaml|pnpm-workspace\.yaml|yarn\.lock|\.yarnrc\.yml|\.npmrc|app\.json|app\.config\.[cm]?[jt]s|Podfile(\.lock|\.properties)?|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|\.nvmrc|\.tool-versions|\.?mise(?:\.[^/]+)?\.toml)$|\.(podspec|patch|plist|entitlements|xcconfig|pbxproj|storyboard|xib|gradle|rb)$|(^|\/)(plugins|patches)\//;
56879
56899
  NATIVE_SOURCE_FILE2 = /\.(swift|mm?|hpp?|c|cc|cpp|kt|java)$/;
56900
+ NATIVE_PACKAGE_ENTRY = /^(ios|android|.*\.podspec|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|app\.plugin\.[cm]?js)$/;
56880
56901
  KEPT_WORKSPACES = 2;
56881
56902
  WORKSPACE_GRACE_MS = 36e5;
56882
56903
  ABANDONED_WORKSPACE_MS = 24 * 36e5;
@@ -76411,7 +76432,7 @@ var init_nitro_superset = __esm({
76411
76432
  init_swift_standin_digest();
76412
76433
  NITRO_SUPERSET_ENTRY_NAME = "superset";
76413
76434
  packageVersion = (root) => JSON.parse((0, import_node_fs84.readFileSync)((0, import_node_path81.join)(root, "package.json"), "utf8")).version;
76414
- NITRO_COMPILER_DIGEST = true ? "aa26f2ee1a4cf37b8345e1011c7ad09b5b0f91c09085437ee13272dd6d8cb205" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
76435
+ NITRO_COMPILER_DIGEST = true ? "f934f30a5735053db3fa0c8e6536bb56a28c989777f07116ed64182c52cb29bc" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
76415
76436
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
76416
76437
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
76417
76438
  published = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (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.1842 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1844 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -12,7 +12,7 @@ export declare function readTextHyphenation(style: {
12
12
  }): TextHyphenation | undefined;
13
13
  export declare function textHyphenationKey(hyphenation: TextHyphenation | undefined): string;
14
14
  export declare function installEnglishHyphenation(create: () => Hyphenator): void;
15
- export declare function hyphenateParagraph(text: string, para: Paragraph, width: number, hyphenation: TextHyphenation | undefined, pushOut: boolean, build: (text: string) => Paragraph): {
15
+ export declare function hyphenateParagraph(text: string, para: Paragraph, width: number, hyphenation: TextHyphenation | undefined, pushOut: boolean, build: (text: string) => Paragraph, rewritePushOut?: boolean): {
16
16
  text: string;
17
17
  para: Paragraph;
18
18
  layoutWidth: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1842",
3
+ "version": "0.1.1844",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -70,6 +70,8 @@ const NATIVE_CONFIG_FILE =
70
70
  // native sources steer pod install by existing, not by content: an edit to one
71
71
  // is copied into the prepared workspace, an added or removed one rebuilds it.
72
72
  const NATIVE_SOURCE_FILE = /\.(swift|mm?|hpp?|c|cc|cpp|kt|java)$/
73
+ const NATIVE_PACKAGE_ENTRY =
74
+ /^(ios|android|.*\.podspec|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|app\.plugin\.[cm]?js)$/
73
75
 
74
76
  // every file the native prepare can read, plus the toolchain that reads it.
75
77
  // node_modules stays out: the js install reconciles it with the hashed
@@ -195,6 +197,42 @@ async function hashWorkspaceInputs(
195
197
  const hash = createHash('sha256')
196
198
  const native = createHash('sha256')
197
199
  const nativeDirectories = localPackageDirectories(root, app)
200
+ // a local package that builds no native code does not steer the prepare by
201
+ // its own version, so a release bump of it and of its lockfile entry keeps
202
+ // the prepared workspace. the app keeps its version: expo config reads it.
203
+ const versionFree = new Set(
204
+ nativeDirectories
205
+ .filter((directory) => directory !== appRelative && directory !== '')
206
+ .filter(
207
+ (directory) =>
208
+ !fs
209
+ .readdirSync(path.join(root, directory))
210
+ .some((name) => NATIVE_PACKAGE_ENTRY.test(name)),
211
+ )
212
+ .map((directory) => directory.split(path.sep).join('/')),
213
+ )
214
+ const nativeConfigBytes = (posix: string, bytes: Buffer) => {
215
+ const directory = path.posix.dirname(posix)
216
+ if (path.posix.basename(posix) === 'package.json' && versionFree.has(directory)) {
217
+ const { version: _version, ...manifest } = JSON.parse(bytes.toString('utf8'))
218
+ return JSON.stringify(manifest)
219
+ }
220
+ if (posix !== 'bun.lock') return bytes
221
+ let entry: string | null = null
222
+ return bytes
223
+ .toString('utf8')
224
+ .split('\n')
225
+ .filter((line) => {
226
+ const opened = /^ {4}"([^"]+)": \{$/.exec(line)
227
+ if (opened) entry = opened[1] ?? null
228
+ return !(
229
+ entry &&
230
+ versionFree.has(entry) &&
231
+ /^ {6}"version": "[^"]*",$/.test(line)
232
+ )
233
+ })
234
+ .join('\n')
235
+ }
198
236
  const steersNative = (relative: string) =>
199
237
  !relative.includes(path.sep) ||
200
238
  relative.startsWith(`patches${path.sep}`) ||
@@ -221,7 +259,8 @@ async function hashWorkspaceInputs(
221
259
  if (NATIVE_CONFIG_FILE.test(posix)) {
222
260
  const bytes = await fs.promises.readFile(file)
223
261
  if (everyByte) hash.update(`file\0${bytes.length}\0`).update(bytes)
224
- if (steersNative(relative)) native.update(`${posix}\0`).update(bytes)
262
+ if (steersNative(relative))
263
+ native.update(`${posix}\0`).update(nativeConfigBytes(posix, bytes))
225
264
  } else {
226
265
  if (everyByte) {
227
266
  const bytes = await fs.promises.readFile(file)