hls.js 1.5.9-0.canary.10202 → 1.5.9-0.canary.10206
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-demo.js +3 -5
- package/dist/hls-demo.js.map +1 -1
- package/dist/hls.js +12 -25
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +12 -21
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +7 -7
- package/dist/hls.light.mjs.map +1 -1
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +8 -18
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +4 -4
package/dist/hls.light.mjs
CHANGED
@@ -201,11 +201,11 @@ function _toPrimitive(t, r) {
|
|
201
201
|
if ("object" != typeof t || !t) return t;
|
202
202
|
var e = t[Symbol.toPrimitive];
|
203
203
|
if (void 0 !== e) {
|
204
|
-
var i = e.call(t, r
|
204
|
+
var i = e.call(t, r );
|
205
205
|
if ("object" != typeof i) return i;
|
206
206
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
207
207
|
}
|
208
|
-
return (
|
208
|
+
return (String )(t);
|
209
209
|
}
|
210
210
|
function _toPropertyKey(t) {
|
211
211
|
var i = _toPrimitive(t, "string");
|
@@ -492,10 +492,10 @@ function createLogger() {
|
|
492
492
|
|
493
493
|
function consolePrintFn(type, id) {
|
494
494
|
const func = self.console[type];
|
495
|
-
return func ? func.bind(self.console, `${
|
495
|
+
return func ? func.bind(self.console, `${''}[${type}] >`) : noop;
|
496
496
|
}
|
497
497
|
function getLoggerFn(key, debugConfig, id) {
|
498
|
-
return debugConfig[key] ? debugConfig[key].bind(debugConfig) : consolePrintFn(key
|
498
|
+
return debugConfig[key] ? debugConfig[key].bind(debugConfig) : consolePrintFn(key);
|
499
499
|
}
|
500
500
|
const exportedLogger = createLogger();
|
501
501
|
function enableLogs(debugConfig, context, id) {
|
@@ -507,12 +507,12 @@ function enableLogs(debugConfig, context, id) {
|
|
507
507
|
// 'trace',
|
508
508
|
'debug', 'log', 'info', 'warn', 'error'];
|
509
509
|
keys.forEach(key => {
|
510
|
-
newLogger[key] = getLoggerFn(key, debugConfig
|
510
|
+
newLogger[key] = getLoggerFn(key, debugConfig);
|
511
511
|
});
|
512
512
|
// Some browsers don't allow to use bind on console object anyway
|
513
513
|
// fallback to default if needed
|
514
514
|
try {
|
515
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.9-0.canary.
|
515
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.9-0.canary.10206"}`);
|
516
516
|
} catch (e) {
|
517
517
|
/* log fn threw an exception. All logger methods are no-ops. */
|
518
518
|
return createLogger();
|
@@ -20376,7 +20376,7 @@ class Hls {
|
|
20376
20376
|
* Get the video-dev/hls.js package version.
|
20377
20377
|
*/
|
20378
20378
|
static get version() {
|
20379
|
-
return "1.5.9-0.canary.
|
20379
|
+
return "1.5.9-0.canary.10206";
|
20380
20380
|
}
|
20381
20381
|
|
20382
20382
|
/**
|