@hyperframes/core 0.8.152 → 0.8.153

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.
@@ -499,12 +499,16 @@ export function wrapScopedCompositionScript(source, compositionId, errorLabel =
499
499
  var __hfBaseHyperframes = window.__hyperframes;
500
500
  var __hfScopedHyperframes = ${SCOPED_HYPERFRAMES_EXPRESSION};
501
501
  var __hfRun = function() {
502
+ var report = window.__hfScriptState;
503
+ if (typeof report === "function") report("start", __hfCompositionSrc || "index.html");
502
504
  try {
503
505
  (function(document, gsap, window, __hyperframes) {
504
506
  ${source.replace(/<\/(script)/gi, "<\\/$1")}
505
507
  }).call(window, __hfScopedDocument, __hfScopedGsap, __hfScopedWindow, __hfScopedHyperframes);
506
508
  } catch (_err) {
507
509
  console.error(__hfErrorLabel, __hfCompId, _err);
510
+ } finally {
511
+ if (typeof report === "function") report("finish", __hfCompositionSrc || "index.html");
508
512
  }
509
513
  };
510
514
  // What the script started on the global gsap timeline, by any route, for a scene swap to revert.