@blockcast/mmt-transport 2.2.0-main.a5b276c121d4 → 2.2.0-main.aee8d33d2cc8

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.
@@ -1015,13 +1015,17 @@
1015
1015
  });
1016
1016
  return { tracks, pointers };
1017
1017
  }
1018
- function resolveFecBindings(catalog, receiver = RUNTIME_FEC_RECEIVER) {
1018
+ function runtimeView(catalog, receiver) {
1019
1019
  const { tracks, pointers } = fecCatalogTracks(catalog);
1020
1020
  const report = validateFecCatalog({ tracks }, receiver);
1021
1021
  const at = (path) => {
1022
1022
  const m = /^\/tracks\/(\d+)(.*)$/.exec(path);
1023
1023
  return m ? pointers[Number(m[1])] + m[2] : path;
1024
1024
  };
1025
+ return { tracks, pointers, report, at };
1026
+ }
1027
+ function resolveFecBindings(catalog, receiver = RUNTIME_FEC_RECEIVER) {
1028
+ const { tracks, pointers, report, at } = runtimeView(catalog, receiver);
1025
1029
  const trackAt = (i) => recordOf(tracks[i]) ?? {};
1026
1030
  const nameAt = (i) => i === null ? void 0 : trackAt(i)["name"];
1027
1031
  const why = (i) => Object.freeze({