@hyperframes/producer 0.9.81 → 0.9.82

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.
@@ -340,7 +340,7 @@ function remoteSrcUrls(html, tag) {
340
340
  // src/services/renderOrchestrator.ts
341
341
  import { matchHtmlBodyCssHeightFirst, matchHtmlBodyCssWidthFirst } from "@hyperframes/parsers";
342
342
  import {
343
- extractMediaMetadata as extractMediaMetadata5,
343
+ extractMediaMetadata as extractMediaMetadata6,
344
344
  resolveConfig as resolveConfig2,
345
345
  closeCaptureSession as closeCaptureSession8,
346
346
  createCaptureSession as createCaptureSession8,
@@ -363,7 +363,7 @@ import {
363
363
  scaleProtocolTimeoutForComposition,
364
364
  classifyCaptureFailure as classifyCaptureFailure3,
365
365
  cloneCaptureWarning,
366
- isMemoryExhaustionError,
366
+ isMemoryExhaustionError as isMemoryExhaustionError2,
367
367
  isTransientBrowserError as isTransientBrowserError2,
368
368
  isDrawElementVerificationError,
369
369
  isDrawElementCaptureError,
@@ -2484,13 +2484,21 @@ import { parseHTML as parseHTML5 } from "linkedom";
2484
2484
  // src/services/bundledScripts.ts
2485
2485
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
2486
2486
  import { join as join5 } from "node:path";
2487
- import { gsapCdnDist } from "@hyperframes/core/gsap-cdn";
2487
+ import { GSAP_CDN_VERSION } from "@hyperframes/core/gsap-cdn";
2488
2488
  var GSAP_VENDOR_DIR_ENV = "HYPERFRAMES_GSAP_VENDOR_DIR";
2489
+ var DEFAULT_CDN_GSAP_3 = /^https:\/\/cdn\.jsdelivr\.net\/npm\/gsap@(3\.\d+\.\d+)\/dist\/([A-Za-z]+\.min\.js)$/;
2490
+ var read = (file) => existsSync4(file) ? readFileSync2(file) : null;
2489
2491
  function bundledScript(url) {
2490
2492
  const dir = process.env[GSAP_VENDOR_DIR_ENV];
2491
- if (!dir || url !== `${gsapCdnDist()}gsap.min.js`) return null;
2492
- const file = join5(dir, "gsap.min.js");
2493
- return existsSync4(file) ? readFileSync2(file) : null;
2493
+ const [, version, file] = DEFAULT_CDN_GSAP_3.exec(url) ?? [];
2494
+ if (!dir || !version || !file) return null;
2495
+ const at = version === GSAP_CDN_VERSION ? dir : join5(dir, "..", "..", `gsap@${version}`, "dist");
2496
+ return read(join5(at, file));
2497
+ }
2498
+ function bundledGsapStandIn(url) {
2499
+ const dir = process.env[GSAP_VENDOR_DIR_ENV];
2500
+ const [, , file] = DEFAULT_CDN_GSAP_3.exec(url) ?? [];
2501
+ return dir && file ? read(join5(dir, file)) : null;
2494
2502
  }
2495
2503
 
2496
2504
  // src/services/htmlCompiler.ts
@@ -2516,7 +2524,7 @@ import { MAX_AUDIO_GAIN } from "@hyperframes/core/audio-gain";
2516
2524
  import { CAPTURE_CANVAS_SELECTOR } from "@hyperframes/core/html-in-canvas";
2517
2525
  import { readPlaybackRate } from "@hyperframes/parsers/media-duration";
2518
2526
  import { resolveRateSpec } from "@hyperframes/core/speed-ramp";
2519
- import { gsapCdnDist as gsapCdnDist2, normalizeGsapBaseUrl } from "@hyperframes/core/gsap-cdn";
2527
+ import { gsapCdnDist, normalizeGsapBaseUrl } from "@hyperframes/core/gsap-cdn";
2520
2528
  import {
2521
2529
  assignBundledRuntimeCompositionIds,
2522
2530
  assignMediaRenderIds,
@@ -3662,13 +3670,13 @@ function compositionPathProblem(projectDir, filePath, assetRoot, outsideFiles) {
3662
3670
  }
3663
3671
  function readSubCompositionFile(filePath, srcPath) {
3664
3672
  assertCompositionFileSize(filePath, srcPath);
3665
- const read = readProjectFile(filePath);
3666
- if (read.kind === "missing") return { detail: "the file does not exist" };
3667
- if (read.kind === "folder") return { detail: "it is a folder, not an HTML file" };
3668
- const validity = checkSubCompositionUsability(read.text, parseSubCompHtmlForValidity);
3673
+ const read2 = readProjectFile(filePath);
3674
+ if (read2.kind === "missing") return { detail: "the file does not exist" };
3675
+ if (read2.kind === "folder") return { detail: "it is a folder, not an HTML file" };
3676
+ const validity = checkSubCompositionUsability(read2.text, parseSubCompHtmlForValidity);
3669
3677
  if (!validity.ok)
3670
3678
  return { detail: validity.detail ?? "the file is empty or could not be parsed" };
3671
- return { bytes: Buffer.byteLength(read.text), ...compositionSrcsIn(read.text) };
3679
+ return { bytes: Buffer.byteLength(read2.text), ...compositionSrcsIn(read2.text) };
3672
3680
  }
3673
3681
  function assertSubCompositionsUsable(html, projectDir, assetRoot, outsideFiles) {
3674
3682
  const budget = new CompositionExpansionBudget();
@@ -4043,11 +4051,11 @@ async function parseSubCompositions(html, projectDir, downloadDir, visited = /*
4043
4051
  compiledSrcs.add(srcPath);
4044
4052
  assertOutsideMarkupAsked(projectDir, filePath, srcPath, assetRoot, outsideFiles);
4045
4053
  assertCompositionFileSize(filePath, srcPath);
4046
- const read = readProjectFile(filePath);
4047
- if (read.kind !== "file") {
4054
+ const read2 = readProjectFile(filePath);
4055
+ if (read2.kind !== "file") {
4048
4056
  continue;
4049
4057
  }
4050
- const rawSubHtml = normalizeCompositionSrcs(read.text, projectDir);
4058
+ const rawSubHtml = normalizeCompositionSrcs(read2.text, projectDir);
4051
4059
  const nestedVisited = new Set(visited);
4052
4060
  nestedVisited.add(filePath);
4053
4061
  workItems.push({ srcPath, filePath, rawSubHtml, nestedVisited });
@@ -4249,9 +4257,9 @@ function inlineSubCompositions(html, subCompositions, projectDir, variableOverri
4249
4257
  assertOutsideMarkupAsked(projectDir, filePath, srcPath, assetRoot, outsideFiles);
4250
4258
  assertCompositionFileSize(filePath, srcPath);
4251
4259
  }
4252
- const read = filePath && !isPrivateCompositionFile(projectDir, filePath) ? readProjectFile(filePath) : null;
4253
- return read?.kind === "file" ? rewriteUnresolvableGsapToCdn(
4254
- normalizeCompositionSrcs(read.text, projectDir),
4260
+ const read2 = filePath && !isPrivateCompositionFile(projectDir, filePath) ? readProjectFile(filePath) : null;
4261
+ return read2?.kind === "file" ? rewriteUnresolvableGsapToCdn(
4262
+ normalizeCompositionSrcs(read2.text, projectDir),
4255
4263
  projectDir,
4256
4264
  srcPath
4257
4265
  ) : null;
@@ -4478,6 +4486,9 @@ async function inlineExternalScripts(html, budget = new CompositionExpansionBudg
4478
4486
  });
4479
4487
  const remote = new Set(externalScripts.filter((_, i) => !local[i]).map(({ src }) => src));
4480
4488
  assertRemoteFetchCount("scripts", remote.size);
4489
+ const pinned = new Set(
4490
+ externalScripts.filter(({ el }) => el.getAttribute("integrity")).map(({ src }) => src)
4491
+ );
4481
4492
  const mirror = operatorGsapMirror();
4482
4493
  const limit = createConcurrencyLimit(MAX_CONCURRENT_SCRIPT_FETCHES);
4483
4494
  const stop = new AbortController();
@@ -4500,7 +4511,16 @@ async function inlineExternalScripts(html, budget = new CompositionExpansionBudg
4500
4511
  if (!bytes) {
4501
4512
  bytes = limit(async () => {
4502
4513
  fetchSignal.throwIfAborted();
4503
- const downloaded = await downloadScript(src, mirror, fetchSignal);
4514
+ const downloaded = await downloadScript(src, mirror, fetchSignal).catch(
4515
+ (error) => {
4516
+ const standIn = pinned.has(src) || fetchSignal.aborted ? null : bundledGsapStandIn(src);
4517
+ if (!standIn) throw error;
4518
+ defaultLogger.warn(
4519
+ `[Compiler] Could not download ${src} (${error}); using the host's own GSAP instead.`
4520
+ );
4521
+ return standIn;
4522
+ }
4523
+ );
4504
4524
  charge(downloaded.byteLength);
4505
4525
  return downloaded;
4506
4526
  }, fetchSignal);
@@ -4984,7 +5004,7 @@ async function embedLocalFontFaces(html, projectDir, assetRoot, budget, log = de
4984
5004
  }
4985
5005
  function renderGsapDist() {
4986
5006
  try {
4987
- return gsapCdnDist2(void 0, normalizeGsapBaseUrl(process.env.HYPERFRAMES_GSAP_BASE_URL));
5007
+ return gsapCdnDist(void 0, normalizeGsapBaseUrl(process.env.HYPERFRAMES_GSAP_BASE_URL));
4988
5008
  } catch (cause) {
4989
5009
  throw new Error(
4990
5010
  "Invalid HYPERFRAMES_GSAP_BASE_URL: use an absolute HTTPS npm mirror root (plain HTTP only for localhost) without credentials, query, or fragment",
@@ -5872,11 +5892,14 @@ import {
5872
5892
  compositionRequiresWebGpu,
5873
5893
  createCaptureSession as createCaptureSession4,
5874
5894
  deriveBeginFrameProbeTimeTicks,
5895
+ extractMediaMetadata as extractMediaMetadata4,
5875
5896
  getCompositionDuration,
5876
5897
  getCompositionLengthSource,
5877
5898
  initializeSession as initializeSession4,
5899
+ isMemoryExhaustionError,
5878
5900
  isTransientBrowserError,
5879
5901
  probeBeginFrameLiveness,
5902
+ resolveProjectRelativeSrc as resolveProjectRelativeSrc4,
5880
5903
  videoAudioId
5881
5904
  } from "@hyperframes/engine";
5882
5905
  import {
@@ -5981,6 +6004,29 @@ function hasVariableBoundMedia(html, variables, variablesByComp = {}) {
5981
6004
  );
5982
6005
  });
5983
6006
  }
6007
+ async function probeVideoHold(videos, html, projectDir, compiledDir) {
6008
+ const { document: document2 } = parseHTML6(html);
6009
+ const bound = /* @__PURE__ */ new Set();
6010
+ for (const video of document2.querySelectorAll("video")) {
6011
+ if (!video.matches("[data-var-src]") && !video.querySelector("source[data-var-src]")) continue;
6012
+ const id = video.getAttribute(MEDIA_RENDER_ID_ATTR2) || video.getAttribute("id");
6013
+ if (id) bound.add(id);
6014
+ }
6015
+ const hints = await Promise.all(
6016
+ videos.map(async ({ id, src }) => {
6017
+ if (bound.has(id) || /^https?:\/\//i.test(src)) return null;
6018
+ try {
6019
+ const path = resolveProjectRelativeSrc4(src, projectDir, compiledDir);
6020
+ const { width, height } = await extractMediaMetadata4(path);
6021
+ return width > 0 && height > 0 ? { id, width, height } : null;
6022
+ } catch {
6023
+ return null;
6024
+ }
6025
+ })
6026
+ );
6027
+ const held = hints.filter((hint) => hint !== null);
6028
+ return { skipReadinessVideoIds: held.map((hint) => hint.id), videoMetadataHints: held };
6029
+ }
5984
6030
  function authoredMediaStarts(html) {
5985
6031
  const { document: document2 } = parseHTML6(html);
5986
6032
  const starts = /* @__PURE__ */ new Map();
@@ -6117,6 +6163,16 @@ function reportedLengthSource(source) {
6117
6163
  const srcHash = createHash6("sha256").update(name).digest("hex").slice(0, 12);
6118
6164
  return { from: "media", tag: source.tag, trimmed: source.trimmed, srcHash };
6119
6165
  }
6166
+ var STOPPED = "Preparing the render stopped while ";
6167
+ async function probeStep(step, call) {
6168
+ try {
6169
+ return await call();
6170
+ } catch (error) {
6171
+ if (error instanceof Error && !error.message.startsWith(STOPPED) && !isMemoryExhaustionError(error))
6172
+ error.message = `${STOPPED}${step}: ${error.message}`;
6173
+ throw error;
6174
+ }
6175
+ }
6120
6176
  async function runProbeStage(input) {
6121
6177
  const {
6122
6178
  projectDir,
@@ -6189,6 +6245,12 @@ async function runProbeStage(input) {
6189
6245
  assertNotAborted();
6190
6246
  const motionBlur = job.config.motionBlur;
6191
6247
  const captureOpts = {
6248
+ ...await probeVideoHold(
6249
+ composition.videos,
6250
+ compiled.html,
6251
+ projectDir,
6252
+ join11(workDir, "compiled")
6253
+ ),
6192
6254
  recordReferenceBackground: input.recordReferenceBackground,
6193
6255
  width,
6194
6256
  height,
@@ -6227,7 +6289,8 @@ async function runProbeStage(input) {
6227
6289
  log.info(`Still waiting for browser initialization... (${elapsed}s elapsed)`);
6228
6290
  }, 3e4);
6229
6291
  try {
6230
- await initializeSession4(probeSession);
6292
+ const opening = probeSession;
6293
+ await probeStep("opening the film in the browser", () => initializeSession4(opening));
6231
6294
  } finally {
6232
6295
  clearInterval(heartbeat);
6233
6296
  }
@@ -6306,7 +6369,8 @@ async function runProbeStage(input) {
6306
6369
  null,
6307
6370
  { ...probeCfg, forceScreenshot: true }
6308
6371
  );
6309
- await initializeSession4(probeSession);
6372
+ const reopening = probeSession;
6373
+ await probeStep("opening the film in the browser", () => initializeSession4(reopening));
6310
6374
  assertNotAborted();
6311
6375
  lastBrowserConsole = probeSession.browserConsoleBuffer;
6312
6376
  }
@@ -6314,8 +6378,13 @@ async function runProbeStage(input) {
6314
6378
  const session = probeSession;
6315
6379
  if (composition.duration <= 0) {
6316
6380
  log.info("Discovering composition duration...");
6317
- const discoveredDuration = await getCompositionDuration(session);
6318
- lengthSource = reportedLengthSource(await getCompositionLengthSource(session));
6381
+ const discoveredDuration = await probeStep(
6382
+ "reading the film's length",
6383
+ () => getCompositionDuration(session)
6384
+ );
6385
+ lengthSource = reportedLengthSource(
6386
+ await probeStep("reading the film's length", () => getCompositionLengthSource(session))
6387
+ );
6319
6388
  assertNotAborted();
6320
6389
  log.info("Probed composition duration from browser", {
6321
6390
  discoveredDuration,
@@ -6329,9 +6398,9 @@ async function runProbeStage(input) {
6329
6398
  });
6330
6399
  }
6331
6400
  if (compiled.unresolvedCompositions.length > 0) {
6332
- const resolutions = await resolveCompositionDurations(
6333
- session.page,
6334
- compiled.unresolvedCompositions
6401
+ const resolutions = await probeStep(
6402
+ "reading each scene's length",
6403
+ () => resolveCompositionDurations(session.page, compiled.unresolvedCompositions)
6335
6404
  );
6336
6405
  assertNotAborted();
6337
6406
  if (resolutions.length > 0) {
@@ -6351,7 +6420,10 @@ async function runProbeStage(input) {
6351
6420
  }
6352
6421
  }
6353
6422
  log.info("Discovering media assets from browser DOM...");
6354
- const browserMedia = await discoverMediaFromBrowser(session.page);
6423
+ const browserMedia = await probeStep(
6424
+ "listing the film's videos, audio and images",
6425
+ () => discoverMediaFromBrowser(session.page)
6426
+ );
6355
6427
  assertNotAborted();
6356
6428
  if (browserMedia.length > 0) {
6357
6429
  const existingVideoIds = new Set(composition.videos.map((v) => v.id));
@@ -6489,11 +6561,14 @@ async function runProbeStage(input) {
6489
6561
  log.info("Discovering audio volume automation...", {
6490
6562
  audioCount: composition.audios.length
6491
6563
  });
6492
- const automation = await discoverAudioVolumeAutomationFromTimeline(
6493
- session.page,
6494
- composition.audios.map((audio) => audio.id),
6495
- composition.duration,
6496
- fpsToNumber6(job.config.fps)
6564
+ const automation = await probeStep(
6565
+ "reading the audio's volume changes",
6566
+ () => discoverAudioVolumeAutomationFromTimeline(
6567
+ session.page,
6568
+ composition.audios.map((audio) => audio.id),
6569
+ composition.duration,
6570
+ fpsToNumber6(job.config.fps)
6571
+ )
6497
6572
  );
6498
6573
  assertNotAborted();
6499
6574
  if (automation.length > 0) {
@@ -6512,9 +6587,9 @@ async function runProbeStage(input) {
6512
6587
  log.info("Discovering video visibility windows...", {
6513
6588
  videoCount: composition.videos.length
6514
6589
  });
6515
- const visibilityWindows = await discoverVideoVisibilityFromTimeline(
6516
- session.page,
6517
- composition.duration
6590
+ const visibilityWindows = await probeStep(
6591
+ "finding when each video is on screen",
6592
+ () => discoverVideoVisibilityFromTimeline(session.page, composition.duration)
6518
6593
  );
6519
6594
  assertNotAborted();
6520
6595
  for (const win of visibilityWindows) {
@@ -6713,7 +6788,7 @@ import {
6713
6788
  createFrameLookupTable as createFrameLookupTable3,
6714
6789
  detectTransfer,
6715
6790
  extractAllVideoFrames,
6716
- extractMediaMetadata as extractMediaMetadata4,
6791
+ extractMediaMetadata as extractMediaMetadata5,
6717
6792
  gradingKeepsSdr as gradingKeepsSdr2,
6718
6793
  isVideoPastTimelineEnd,
6719
6794
  isHdrColorSpace as isHdrColorSpace2,
@@ -6727,7 +6802,7 @@ import {
6727
6802
  resolveRestrictPageNetwork,
6728
6803
  isUrlNotPermittedError,
6729
6804
  writeUrlDownloadTelemetry as writeUrlDownloadTelemetry2,
6730
- resolveProjectRelativeSrc as resolveProjectRelativeSrc4,
6805
+ resolveProjectRelativeSrc as resolveProjectRelativeSrc5,
6731
6806
  runVideoExtractionWithRetry as runVideoExtractionWithRetry2,
6732
6807
  safeVideoExtractionSourceIdentity,
6733
6808
  videoAudioId as videoAudioId2
@@ -6943,7 +7018,7 @@ function applyVideoExtractionFailurePolicy(result, policy, log) {
6943
7018
  }
6944
7019
  async function probeColorSpaceSafely(path, log) {
6945
7020
  try {
6946
- const meta = await extractMediaMetadata4(path);
7021
+ const meta = await extractMediaMetadata5(path);
6947
7022
  return meta.colorSpace;
6948
7023
  } catch (error) {
6949
7024
  log?.warn("HDR color-space probe failed; treating source as SDR", {
@@ -6989,14 +7064,14 @@ async function runExtractVideosStage(input) {
6989
7064
  log?.info("Probing video color spaces...", { videoCount: composition.videos.length });
6990
7065
  const probeFailures = await Promise.all(
6991
7066
  composition.videos.map(async (v) => {
6992
- const videoPath = resolveProjectRelativeSrc4(v.src, projectDir, compiledDir);
7067
+ const videoPath = resolveProjectRelativeSrc5(v.src, projectDir, compiledDir);
6993
7068
  if (!opensLocally(videoPath, assetRoots)) return null;
6994
7069
  try {
6995
7070
  const attempted = extractionPolicy.maxTransientRetries === 0 ? {
6996
- result: await extractMediaMetadata4(videoPath, { signal: abortSignal }),
7071
+ result: await extractMediaMetadata5(videoPath, { signal: abortSignal }),
6997
7072
  retries: 0
6998
7073
  } : await runVideoExtractionWithRetry2(
6999
- () => extractMediaMetadata4(videoPath, { signal: abortSignal }),
7074
+ () => extractMediaMetadata5(videoPath, { signal: abortSignal }),
7000
7075
  {
7001
7076
  signal: abortSignal,
7002
7077
  maxTransientRetries: extractionPolicy.maxTransientRetries,
@@ -7033,7 +7108,7 @@ async function runExtractVideosStage(input) {
7033
7108
  if (probesHdr && composition.images.length > 0) {
7034
7109
  const probed = await Promise.all(
7035
7110
  composition.images.map(async (img) => {
7036
- const imgPath = resolveProjectRelativeSrc4(img.src, projectDir, compiledDir);
7111
+ const imgPath = resolveProjectRelativeSrc5(img.src, projectDir, compiledDir);
7037
7112
  if (!opensLocally(imgPath, assetRoots)) return null;
7038
7113
  const colorSpace = await probeColorSpaceSafely(imgPath, log);
7039
7114
  if (isHdrColorSpace2(colorSpace)) {
@@ -7168,7 +7243,7 @@ function opensLocally(path, assetRoots) {
7168
7243
  return existsSync9(path) && (!assetRoots || assetRootsRefusal(path, assetRoots) === null);
7169
7244
  }
7170
7245
  function localProbeSource(src, input) {
7171
- const path = resolveProjectRelativeSrc4(src, input.projectDir, input.compiledDir);
7246
+ const path = resolveProjectRelativeSrc5(src, input.projectDir, input.compiledDir);
7172
7247
  const readFrom = input.urlByAbsentLocalPath?.get(path) ?? path;
7173
7248
  const roots = input.allowOutsideProjectAssets ? void 0 : mediaAssetRoots(input.projectDir, input.compiledDir);
7174
7249
  return isHttpUrl3(readFrom) || opensLocally(readFrom, roots) ? readFrom : null;
@@ -7199,7 +7274,7 @@ async function appendVideoAudioFromProbe(input) {
7199
7274
  videos.map(async (video) => {
7200
7275
  const readFrom = isHttpUrl3(video.src) ? await remoteProbeSource(video, input) : localProbeSource(video.src, input);
7201
7276
  if (readFrom === null) return null;
7202
- const metadata = await extractMediaMetadata4(readFrom, { signal: input.signal });
7277
+ const metadata = await extractMediaMetadata5(readFrom, { signal: input.signal });
7203
7278
  const window2 = await resolveFinalFrameExtractionWindow2(
7204
7279
  readFrom,
7205
7280
  video,
@@ -7222,7 +7297,7 @@ import {
7222
7297
  buildVideoLayerInput,
7223
7298
  isHttpUrl as isHttpUrl4,
7224
7299
  qualifyVideoLayer,
7225
- resolveProjectRelativeSrc as resolveProjectRelativeSrc5
7300
+ resolveProjectRelativeSrc as resolveProjectRelativeSrc6
7226
7301
  } from "@hyperframes/engine";
7227
7302
 
7228
7303
  // src/services/render/stages/audioStage.ts
@@ -10252,14 +10327,14 @@ function child2(buf, parent, type) {
10252
10327
  return found;
10253
10328
  }
10254
10329
  var SCAN_BYTES = 64 * 1024;
10255
- async function readMp4Layout(read) {
10330
+ async function readMp4Layout(read2) {
10256
10331
  const found = /* @__PURE__ */ new Map();
10257
10332
  let payload;
10258
10333
  let buf = Buffer.alloc(0);
10259
10334
  let bufAt = 0;
10260
10335
  const load = async (start, end) => {
10261
10336
  if (start >= bufAt && end <= bufAt + buf.length) return;
10262
- buf = await read(start, Math.max(end, start + SCAN_BYTES));
10337
+ buf = await read2(start, Math.max(end, start + SCAN_BYTES));
10263
10338
  bufAt = start;
10264
10339
  };
10265
10340
  for (let at = 0; !(found.has("ftyp") && found.has("moov") && payload); ) {
@@ -14203,9 +14278,9 @@ function hashProjectDir(projectDir, files = listSiteFiles(projectDir)) {
14203
14278
  hash.update("\0");
14204
14279
  const fd = openSync5(join34(projectDir, rel), "r");
14205
14280
  try {
14206
- let read;
14207
- while ((read = readSync4(fd, chunk, 0, chunk.length, null)) > 0) {
14208
- hash.update(chunk.subarray(0, read));
14281
+ let read2;
14282
+ while ((read2 = readSync4(fd, chunk, 0, chunk.length, null)) > 0) {
14283
+ hash.update(chunk.subarray(0, read2));
14209
14284
  }
14210
14285
  } finally {
14211
14286
  closeSync5(fd);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "0.1.0",
3
3
  "buildId": "dev",
4
- "sha256": "06051cdc74abab950e540764c412f44fef44493936a9c12d9082c6fa9218b162",
4
+ "sha256": "d56d279eab6240b740f1086bddc68b57ad9bfc1c4db4a35329612330e3830ae6",
5
5
  "artifacts": {
6
6
  "iife": "hyperframe.runtime.iife.js",
7
7
  "esm": "hyperframe.runtime.mjs"