Socket
Socket
Sign inDemoInstall

x-default-browser

Package Overview
Dependencies
56
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.4.0

lib/detect-windows10.js

13

index.js
var detect;
if (process.platform == 'win32') {
detect = require('./lib/detect-windows');
} else if (process.platform == 'darwin') {
var os = require('os');
if (os.platform() == 'win32') {
if (os.release().indexOf('10.') === 0)
detect = require('./lib/detect-windows10');
else
detect = require('./lib/detect-windows');
} else if (os.platform() == 'darwin') {
detect = require('./lib/detect-mac');
} else if (process.platform == 'linux' || process.platform == 'freebsd') {
} else if (os.platform() == 'linux' || os.platform() == 'freebsd') {
detect = require('./lib/detect-linux');

@@ -8,0 +13,0 @@ } else {

module.exports = function (out) {
return (
out.isEdge ? "edge" :
out.isIE ? "ie" :

@@ -4,0 +5,0 @@ out.isFirefox ? "firefox" :

{
"name": "x-default-browser",
"version": "0.3.1",
"version": "0.4.0",
"description": "Detect default web browser of the current user, cross-platform (Win/Lin/Mac)",

@@ -5,0 +5,0 @@ "author": "Jakub Gieryluk <jakub.g.opensource@gmail.com>",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc