Socket
Socket
Sign inDemoInstall

default-browser

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

default-browser - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

index.js

@@ -10,7 +10,7 @@ 'use strict';

if (process.platform !== 'darwin') {
throw new Error('Only OS X and Linux are supported');
if (process.platform === 'darwin') {
return defaultBrowserId().then(id => bundleName(id).then(name => ({name, id})));
}
return defaultBrowserId().then(id => bundleName(id).then(name => ({name, id})));
return Promise.reject(new Error('Only macOS and Linux are supported'));
};
{
"name": "default-browser",
"version": "2.0.0",
"version": "2.0.1",
"description": "Get the default browser",

@@ -22,2 +22,3 @@ "license": "MIT",

"keywords": [
"macos",
"osx",

@@ -24,0 +25,0 @@ "linux",

# default-browser [![Build Status](https://travis-ci.org/sindresorhus/default-browser.svg?branch=master)](https://travis-ci.org/sindresorhus/default-browser)
> Get the default browser (OS X and Linux)
> Get the default browser (macOS and Linux)

@@ -5,0 +5,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