@vindral/web-sdk 3.0.2 → 3.0.3
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/index.mjs +2 -2
- package/index.umd.js +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1847,7 +1847,7 @@ const Vs = 0.15, Zs = 0.2, Yt = 0.4, Xs = 0.5, Os = 0.6, Te = 15, zs = {
|
|
|
1847
1847
|
recentDowngrades: B,
|
|
1848
1848
|
timeSpentPlayingInAtLeastLevelRatio: o
|
|
1849
1849
|
}), !1;
|
|
1850
|
-
const Q = Math.max(0, I.length - g.length - a), h = this.config.maxDowngradeLookbackMs * Q, l = I.filter(Ke(h)).length;
|
|
1850
|
+
const Q = Math.max(0, I.length - g.length - a), h = Date.now() - this.config.maxDowngradeLookbackMs * Q, l = I.filter(Ke(h)).length;
|
|
1851
1851
|
return l && Q > this.config.maxCooldownRatio ? (this.logger.debug("Too many downgrades compared to time spent playing", {
|
|
1852
1852
|
downgradesWithinCooldownTime: l,
|
|
1853
1853
|
cooldownRatio: Q
|
|
@@ -5066,7 +5066,7 @@ const cB = (i, A) => {
|
|
|
5066
5066
|
const e = this.modules.canvasModule ? this.options.get("iosMediaElementEnabled") : void 0;
|
|
5067
5067
|
return r({
|
|
5068
5068
|
uptime: Date.now() - this.createdAt,
|
|
5069
|
-
version: "3.0.
|
|
5069
|
+
version: "3.0.3",
|
|
5070
5070
|
clientId: this.clientId,
|
|
5071
5071
|
sessionId: this.sessionId,
|
|
5072
5072
|
channelId: this.channelId,
|