browser-update
Advanced tools
Comparing version 3.3.12 to 3.3.13
Changes to the notification / detection script | ||
========== | ||
3.3.13 24.2.20 | ||
- take care of edge version jump between 18 and 79 when specifying relative to latest version | ||
(e.g. with current Edge 80 e:-4 is translated to e:16 instead of e: 76) | ||
- fix #478 | ||
3.3.12 23.2.20 | ||
@@ -4,0 +9,0 @@ - updated edge and chrome versions |
{ | ||
"name": "browser-update", | ||
"version": "3.3.12", | ||
"version": "3.3.13", | ||
"description": "Remind users to update their browser in an unobtrusive way.", | ||
@@ -5,0 +5,0 @@ "main": "update.npm.full.js", |
@@ -7,3 +7,3 @@ //(c)2019, MIT Style License <browser-update.org/LICENSE.txt> | ||
var s=this; | ||
this.version="3.3.12"; | ||
this.version="3.3.13"; | ||
this.vsakt = {c:"80.0.3987.116",f:72,s:"13.0.4",e:80,i:12,ios:"13.3",samsung:10.2,o:65,e_a:44,o_a:55.2,y:"19.12.3",v:2.10,uc:"12.13"}; | ||
@@ -13,3 +13,3 @@ //severely insecure below(!) this version, insecure means remote code execution that is actively being exploited | ||
this.vsdefault = {c:-3,f:-3,s:-1,e:-3,i:11,ios:10,samsung:7.9,o:-3,o_a:-3,y:19.5,v:2.3,uc:12.8,a:535}; | ||
this.names={c:"Chrome",f:'Firefox',s:'Safari',e:"Edge",i:'Internet Explorer',ios:"iOS",samsung:"Samsung Internet",o:'Opera',o_a:'Opera', "e_a":"Edge", y:"Yandex Browser",v:"Vivaldi",uc:"UC Browser",a:"Android Browser",x:"Other",silk:"Silk"}; | ||
this.names={c:"Chrome",f:'Firefox',s:'Safari',e:"Edge",i:'Internet Explorer',ios:"iOS",samsung:"Samsung Internet",o:'Opera',o_a:'Opera', e_a:"Edge", y:"Yandex Browser",v:"Vivaldi",uc:"UC Browser",a:"Android Browser",x:"Other",silk:"Silk"}; | ||
@@ -89,3 +89,3 @@ this.get_browser = function(ua) { | ||
*/ | ||
if (av < 12 && int(r.v)===11)// all devices with ios 11 support ios 12 | ||
if (av < 12 && Math.round(r.v)===11)// all devices with ios 11 support ios 12 | ||
av=12 | ||
@@ -271,2 +271,4 @@ r.available = {"ios": av}; | ||
if (required.e<79 && required.e>70) | ||
required.e=required.e-60 | ||
op.required=required; | ||
@@ -301,4 +303,6 @@ op.reminder=op.reminder<0.1 ? 0 : op.reminder||(24*7); | ||
op.hide_reasons.push("do not notify mobile") | ||
//if (bb.is_latest) | ||
// op.hide_reasons.push("is latest version of the browser") | ||
if (op.apiver<2018.5 || op.apiver>2020.1) {//TODO: remove | ||
if (bb.is_latest)//the latest versions of a browser can not be notified | ||
op.hide_reasons.push("is latest version of the browser") | ||
} | ||
if (bb.no_device_update) | ||
@@ -305,0 +309,0 @@ op.hide_reasons.push("no device update") |
@@ -7,3 +7,3 @@ //(c)2019, MIT Style License <browser-update.org/LICENSE.txt> | ||
var s=this; | ||
this.version="3.3.12"; | ||
this.version="3.3.13"; | ||
this.vsakt = {c:"80.0.3987.116",f:72,s:"13.0.4",e:80,i:12,ios:"13.3",samsung:10.2,o:65,e_a:44,o_a:55.2,y:"19.12.3",v:2.10,uc:"12.13"}; | ||
@@ -13,3 +13,3 @@ //severely insecure below(!) this version, insecure means remote code execution that is actively being exploited | ||
this.vsdefault = {c:-3,f:-3,s:-1,e:-3,i:11,ios:10,samsung:7.9,o:-3,o_a:-3,y:19.5,v:2.3,uc:12.8,a:535}; | ||
this.names={c:"Chrome",f:'Firefox',s:'Safari',e:"Edge",i:'Internet Explorer',ios:"iOS",samsung:"Samsung Internet",o:'Opera',o_a:'Opera', "e_a":"Edge", y:"Yandex Browser",v:"Vivaldi",uc:"UC Browser",a:"Android Browser",x:"Other",silk:"Silk"}; | ||
this.names={c:"Chrome",f:'Firefox',s:'Safari',e:"Edge",i:'Internet Explorer',ios:"iOS",samsung:"Samsung Internet",o:'Opera',o_a:'Opera', e_a:"Edge", y:"Yandex Browser",v:"Vivaldi",uc:"UC Browser",a:"Android Browser",x:"Other",silk:"Silk"}; | ||
@@ -89,3 +89,3 @@ this.get_browser = function(ua) { | ||
*/ | ||
if (av < 12 && int(r.v)===11)// all devices with ios 11 support ios 12 | ||
if (av < 12 && Math.round(r.v)===11)// all devices with ios 11 support ios 12 | ||
av=12 | ||
@@ -271,2 +271,4 @@ r.available = {"ios": av}; | ||
if (required.e<79 && required.e>70) | ||
required.e=required.e-60 | ||
op.required=required; | ||
@@ -301,4 +303,6 @@ op.reminder=op.reminder<0.1 ? 0 : op.reminder||(24*7); | ||
op.hide_reasons.push("do not notify mobile") | ||
//if (bb.is_latest) | ||
// op.hide_reasons.push("is latest version of the browser") | ||
if (op.apiver<2018.5 || op.apiver>2020.1) {//TODO: remove | ||
if (bb.is_latest)//the latest versions of a browser can not be notified | ||
op.hide_reasons.push("is latest version of the browser") | ||
} | ||
if (bb.no_device_update) | ||
@@ -305,0 +309,0 @@ op.hide_reasons.push("no device update") |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64518
864