hls.js 1.5.12-0.canary.10364 → 1.5.12-0.canary.10366

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/dist/hls.mjs CHANGED
@@ -420,7 +420,7 @@ function enableLogs(debugConfig, context, id) {
420
420
  // Some browsers don't allow to use bind on console object anyway
421
421
  // fallback to default if needed
422
422
  try {
423
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.12-0.canary.10364"}`);
423
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.12-0.canary.10366"}`);
424
424
  } catch (e) {
425
425
  /* log fn threw an exception. All logger methods are no-ops. */
426
426
  return createLogger();
@@ -24880,7 +24880,9 @@ function encodeSfDict(value, options) {
24880
24880
  *
24881
24881
  * @internal
24882
24882
  */
24883
- const isTokenField = key => key === 'ot' || key === 'sf' || key === 'st';
24883
+ function isTokenField(key) {
24884
+ return key === 'ot' || key === 'sf' || key === 'st';
24885
+ }
24884
24886
 
24885
24887
  /**
24886
24888
  * Checks if the given value is valid
@@ -24891,12 +24893,12 @@ const isTokenField = key => key === 'ot' || key === 'sf' || key === 'st';
24891
24893
  *
24892
24894
  * @internal
24893
24895
  */
24894
- const isValid = value => {
24896
+ function isValid(value) {
24895
24897
  if (typeof value === 'number') {
24896
24898
  return isFiniteNumber(value);
24897
24899
  }
24898
24900
  return value != null && value !== '' && value !== false;
24899
- };
24901
+ }
24900
24902
 
24901
24903
  const toRounded = value => Math.round(value);
24902
24904
  const toUrlSafe = (value, options) => {
@@ -25030,8 +25032,9 @@ function encodeCmcd(cmcd, options = {}) {
25030
25032
  * @beta
25031
25033
  */
25032
25034
  function toCmcdHeaders(cmcd, options = {}) {
25035
+ const result = {};
25033
25036
  if (!cmcd) {
25034
- return {};
25037
+ return result;
25035
25038
  }
25036
25039
  const entries = Object.entries(cmcd);
25037
25040
  const headerMap = Object.entries(CmcdHeaderMap).concat(Object.entries((options === null || options === void 0 ? void 0 : options.customHeaderMap) || {}));
@@ -25046,7 +25049,7 @@ function toCmcdHeaders(cmcd, options = {}) {
25046
25049
  return Object.entries(shards).reduce((acc, [field, value]) => {
25047
25050
  acc[field] = encodeCmcd(value, options);
25048
25051
  return acc;
25049
- }, {});
25052
+ }, result);
25050
25053
  }
25051
25054
 
25052
25055
  /**
@@ -29171,7 +29174,7 @@ class Hls {
29171
29174
  * Get the video-dev/hls.js package version.
29172
29175
  */
29173
29176
  static get version() {
29174
- return "1.5.12-0.canary.10364";
29177
+ return "1.5.12-0.canary.10366";
29175
29178
  }
29176
29179
 
29177
29180
  /**