browser-update
Advanced tools
Comparing version 3.2.5 to 3.2.11
Changes to the notification / detection script | ||
========== | ||
3.2.5 | ||
3.2.11 8.5.19 | ||
- fixed bug where specifying required version "0" did not mean "latest version", as specified in the docs, fixes #436 | ||
- updated browser versions | ||
3.2.10 9.4.19 | ||
- updated browser versions | ||
- changed firefox download link as it did not work in IE 11 | ||
3.2.9 10.2.19 | ||
- updated firefox, ios, opera, chrome, uc, vivaldi browser versions | ||
3.2.8 | ||
- mark safari 12.0.1 as latest version... | ||
3.2.7 8.1.19 | ||
- correct handling of semver version strings with negative numbers | ||
3.2.6 7.1.19 | ||
- fixed which versions of edge are not supported anymore | ||
- updated browser versions | ||
3.2.5 19.12.18 | ||
- updated firefox, opera, chrome, vivaldi, yandex versions | ||
- ingnore firexo focus | ||
- ingnore firefox focus for now | ||
@@ -7,0 +29,0 @@ 3.2.4 12.11.18 |
{ | ||
"name": "browser-update", | ||
"version": "3.2.5", | ||
"version": "3.2.11", | ||
"description": "Remind users to update their browser in an unobtrusive way.", | ||
@@ -5,0 +5,0 @@ "main": "update.npm.full.js", |
@@ -7,6 +7,6 @@ //(c)2017, MIT Style License <browser-update.org/LICENSE.txt> | ||
var s=this; | ||
this.vsakt = {e:18,i:15,f:64,o:57,o_a:48.2,s:12.0,c:71,y:"18.11",v:2.2,uc:12.9,samsung:7.4,ios:12.1}; | ||
this.vsakt = {e:18,i:15,f:66,o:60,o_a:50.3,s:"12.1",c:74,y:"19.4",v:2.4,uc:"12.10",samsung:9.2,ios:12.1}; | ||
//severly insecure below(!) this version, insecure means remote code execution that is actively being exploited | ||
this.vsinsecure_below = {i:11,e:16,c:64,f:59,y:"18.11",s:"10.1.2",ios:"9.3.5",v:"2.0",uc:"12.6",samsung:"6.4",o_a:44,o:51}; | ||
this.vsdefault = {e:-3,i:11,f:-3,o:-3,o_a:-3,s:-1,c:-3,a:535,y:18.6,v:1.14,uc:12.1,samsung:6.4,ios:9}; | ||
this.vsinsecure_below = {i:11,e:16,c:64,f:59,y:"18.11",s:"11.1.1",ios:"9.3.5",v:"2.0",uc:"12.6",samsung:"6.4",o_a:44,o:55}; | ||
this.vsdefault = {e:-3,i:11,f:-3,o:-3,o_a:-3,s:-1,c:-3,a:535,y:19.3,v:2.1,uc:12.8,samsung:7.9,ios:9}; | ||
this.names={i:'Internet Explorer',e:"Edge",f:'Firefox',o:'Opera',o_a:'Opera',s:'Safari',c:"Chrome",a:"Android Browser", y:"Yandex Browser",v:"Vivaldi",uc:"UC Browser",samsung:"Samsung Internet",x:"Other",ios:"iOS",silk:"Silk"}; | ||
@@ -139,4 +139,6 @@ | ||
r.t=s.names[r.n]; | ||
if (r.n==="e") | ||
r.t=s.names[r.n]+" "+r.vmaj; | ||
if (r.n==="e") { | ||
r.t = s.names[r.n] + " " + r.vmaj; | ||
r.is_supported = s.less(r.fullv, "15.15063") != 1 | ||
} | ||
var releases_per_year={'f':7,'c':8,'o':8,'i':1,'e':1,'s':1}//,'v':1} | ||
@@ -219,3 +221,3 @@ if (releases_per_year[r.n]) { | ||
op.apiver=op.api||op.c||-1; | ||
op.jsv="3.2.5npm"; | ||
op.jsv="3.2.11npm"; | ||
@@ -237,6 +239,6 @@ var required_min=(op.apiver<2018&&{i:10,f:11,o:21,s:8,c:30})||{}; | ||
} | ||
if (!required[b]) | ||
if (!(b in required)) | ||
required[b]=$bu_.vsdefault[b] | ||
if ($bu_.less(required[b],0)>=0) // required <= 0 | ||
required[b]=$bu_.vsakt[b]+required[b] | ||
required[b]=parseFloat($bu_.vsakt[b])+required[b] // TODO: make it work for string version | ||
if (required_min[b] && $bu_.less(required[b],required_min[b])===1) // required < required_min | ||
@@ -243,0 +245,0 @@ required[b]=required_min[b] |
@@ -7,6 +7,6 @@ //(c)2017, MIT Style License <browser-update.org/LICENSE.txt> | ||
var s=this; | ||
this.vsakt = {e:18,i:15,f:64,o:57,o_a:48.2,s:12.0,c:71,y:"18.11",v:2.2,uc:12.9,samsung:7.4,ios:12.1}; | ||
this.vsakt = {e:18,i:15,f:66,o:60,o_a:50.3,s:"12.1",c:74,y:"19.4",v:2.4,uc:"12.10",samsung:9.2,ios:12.1}; | ||
//severly insecure below(!) this version, insecure means remote code execution that is actively being exploited | ||
this.vsinsecure_below = {i:11,e:16,c:64,f:59,y:"18.11",s:"10.1.2",ios:"9.3.5",v:"2.0",uc:"12.6",samsung:"6.4",o_a:44,o:51}; | ||
this.vsdefault = {e:-3,i:11,f:-3,o:-3,o_a:-3,s:-1,c:-3,a:535,y:18.6,v:1.14,uc:12.1,samsung:6.4,ios:9}; | ||
this.vsinsecure_below = {i:11,e:16,c:64,f:59,y:"18.11",s:"11.1.1",ios:"9.3.5",v:"2.0",uc:"12.6",samsung:"6.4",o_a:44,o:55}; | ||
this.vsdefault = {e:-3,i:11,f:-3,o:-3,o_a:-3,s:-1,c:-3,a:535,y:19.3,v:2.1,uc:12.8,samsung:7.9,ios:9}; | ||
this.names={i:'Internet Explorer',e:"Edge",f:'Firefox',o:'Opera',o_a:'Opera',s:'Safari',c:"Chrome",a:"Android Browser", y:"Yandex Browser",v:"Vivaldi",uc:"UC Browser",samsung:"Samsung Internet",x:"Other",ios:"iOS",silk:"Silk"}; | ||
@@ -139,4 +139,6 @@ | ||
r.t=s.names[r.n]; | ||
if (r.n==="e") | ||
r.t=s.names[r.n]+" "+r.vmaj; | ||
if (r.n==="e") { | ||
r.t = s.names[r.n] + " " + r.vmaj; | ||
r.is_supported = s.less(r.fullv, "15.15063") != 1 | ||
} | ||
var releases_per_year={'f':7,'c':8,'o':8,'i':1,'e':1,'s':1}//,'v':1} | ||
@@ -219,3 +221,3 @@ if (releases_per_year[r.n]) { | ||
op.apiver=op.api||op.c||-1; | ||
op.jsv="3.2.5npm"; | ||
op.jsv="3.2.11npm"; | ||
@@ -237,6 +239,6 @@ var required_min=(op.apiver<2018&&{i:10,f:11,o:21,s:8,c:30})||{}; | ||
} | ||
if (!required[b]) | ||
if (!(b in required)) | ||
required[b]=$bu_.vsdefault[b] | ||
if ($bu_.less(required[b],0)>=0) // required <= 0 | ||
required[b]=$bu_.vsakt[b]+required[b] | ||
required[b]=parseFloat($bu_.vsakt[b])+required[b] // TODO: make it work for string version | ||
if (required_min[b] && $bu_.less(required[b],required_min[b])===1) // required < required_min | ||
@@ -243,0 +245,0 @@ required[b]=required_min[b] |
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
56344
781