Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@regru/browser-update

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@regru/browser-update - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

9

changelog.txt
Changes to the notification / detection script
==========
3.2.2 4.10.18
- updated versions of almost all browsers
- if option "noclose" is specified, the bar also does not close if the update button is pressed
- reminderClosed: 0 can be passed. Then the user cannot close the bar, fixes #414
3.2.1 26.7.18
- fixed firefox esr detection
- updated firefox version
3.2.0 26.7.18

@@ -4,0 +13,0 @@ - fix when permanently ignoring did not work on some sites (where reminder=0 was set), fixes #399

2

package.json
{
"name": "@regru/browser-update",
"version": "1.0.2",
"version": "1.0.3",
"description": "Remind users to update their browser in an unobtrusive way.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,6 +7,6 @@ //(c)2017, MIT Style License <browser-update.org/LICENSE.txt>

var s=this;
this.vsakt={e:17,i:15,f:61,o:53,o_a:45.1,s:11.1,c:68,y:"18.6",v:1.15,uc:12.5,samsung:6.4,ios:11.4};
this.vsakt = {e:17,i:15,f:62,o:56,o_a:47,s:11.1,c:69,y:18.6,v:2.0,uc:12.9,samsung:7.4,ios:12};
//severly insecure below(!) this version, insecure means remote code execution that is actively being exploited
this.vsinsecure_below = {i:11,e:15,c:63,f:"57.0.1",y:18.1,s:"10.1.2",ios:"9.3.5",v:"1.12",uc:"12.1",samsung:"6.0",o_a:42,o:49};
this.vsdefault = {e:-3,i:11,f:-3,o:-3,o_a:-3,s:-1,c:-3,a:535,y:18.6,v:1.12,uc:12.1,samsung:6.1,ios:9};
this.vsinsecure_below = {i:11,e:15,c:64,f:59,y:18.4,s:"10.1.2",ios:"9.3.5",v:"1.14",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.12,uc:12.1,samsung:6.4,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"};

@@ -127,3 +127,3 @@

if ((r.n==="f" && ((r.vmaj===52 && r.v>=52.1) || (r.vmaj===60 && r.v>=60.1))) || (r.n==="i" && r.vmaj===11)) {
if ((r.n==="f" && (r.vmaj===52 || r.vmaj===60)) || (r.n==="i" && r.vmaj===11)) {
r.is_supported=true;

@@ -219,3 +219,3 @@ r.is_insecure=false;

op.apiver=op.api||op.c||-1;
op.jsv="3.2.0npm";
op.jsv="3.2.2npm";

@@ -247,7 +247,4 @@ var required_min=(op.apiver<2018&&{i:10,f:11,o:21,s:8,c:30})||{};

op.required=required;
if (op.reminder<0.1 || op.reminder===0)
op.reminder=0;
else
op.reminder=op.reminder||24;
op.reminderClosed=op.reminderClosed||(24*7);
op.reminder=op.reminder<0.1 ? 0 : op.reminder||(24*7);
op.reminderClosed=op.reminderClosed<1 ? 0 : op.reminderClosed||(24*7);
op.onshow = op.onshow||function(o){};

@@ -446,7 +443,11 @@ op.onclick = op.onclick||function(o){};

div.onclick = null;
div.style.display = "none";
if (op.addmargin)
hm.style.marginTop = op.bodymt;
op.onclick(op);
if (op.noclose)
return
op.setCookie(op.reminderClosed);
op.onclick(op);
if (!op.noclose) {
div.style.display = "none";
if (op.addmargin)
hm.style.marginTop = op.bodymt;
}
};

@@ -493,3 +494,3 @@ }

}
if (op.noclose) {
if (op.noclose || op.reminderClosed==0) {
ignorebutton.parentNode.removeChild(ignorebutton)

@@ -496,0 +497,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc