@srgssr/pillarbox-web 1.15.0 → 1.15.2
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/README.md +117 -0
- package/dist/pillarbox-core.cjs.js +1 -1
- package/dist/pillarbox-core.es.js +1 -1
- package/dist/pillarbox.cjs.js +16 -2
- package/dist/pillarbox.cjs.js.map +1 -1
- package/dist/pillarbox.es.js +16 -2
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +16 -2
- package/dist/pillarbox.umd.js.map +1 -1
- package/dist/pillarbox.umd.min.js +8 -8
- package/dist/pillarbox.umd.min.js.map +1 -1
- package/dist/types/src/trackers/PillarboxMonitoring.d.ts +10 -0
- package/dist/types/src/trackers/PillarboxMonitoring.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/pillarbox.umd.js
CHANGED
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
return target;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
const version$8 = "1.
|
|
113
|
+
const version$8 = "1.15.1";
|
|
114
114
|
|
|
115
115
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
116
116
|
|
|
@@ -69337,7 +69337,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
69337
69337
|
this.sendEvent('ERROR', _objectSpread2(_objectSpread2({
|
|
69338
69338
|
log: JSON.stringify(error.metadata || pillarbox.log.history().slice(-15)),
|
|
69339
69339
|
message: error.message,
|
|
69340
|
-
name: error.code
|
|
69340
|
+
name: PillarboxMonitoring.errorKeyCode(error.code)
|
|
69341
69341
|
}, playbackPosition), {}, {
|
|
69342
69342
|
url
|
|
69343
69343
|
}));
|
|
@@ -69849,6 +69849,20 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
69849
69849
|
};
|
|
69850
69850
|
}
|
|
69851
69851
|
|
|
69852
|
+
/**
|
|
69853
|
+
* Returns a string representing the error key combined with its error code.
|
|
69854
|
+
*
|
|
69855
|
+
* If the error code doesn't exist the error key undefined.
|
|
69856
|
+
*
|
|
69857
|
+
* @param {number} code The error code
|
|
69858
|
+
*
|
|
69859
|
+
* @returns {string} The error key combined with its error code
|
|
69860
|
+
*/
|
|
69861
|
+
static errorKeyCode(code) {
|
|
69862
|
+
const error = ['MEDIA_ERR_CUSTOM', ...Object.keys(window.MediaError), 'MEDIA_ERR_ENCRYPTED'];
|
|
69863
|
+
return `${error[code]}: ${code}`;
|
|
69864
|
+
}
|
|
69865
|
+
|
|
69852
69866
|
/**
|
|
69853
69867
|
* Generates a new session ID.
|
|
69854
69868
|
*
|