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

drivelist

Package Overview
Dependencies
Maintainers
1
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drivelist - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

build/drivelist.js

@@ -12,3 +12,3 @@ var linux, os, osx, win32;

exports.list = function(callback) {
var operatingSystem;
var error, operatingSystem;
operatingSystem = os.platform();

@@ -23,4 +23,5 @@ switch (operatingSystem) {

default:
throw new Error("Your OS is not supported by this module: " + operatingSystem);
error = new Error("Your OS is not supported by this module: " + operatingSystem);
return callback(error);
}
};

2

package.json
{
"name": "drivelist",
"version": "1.0.0",
"version": "1.1.0",
"description": "List all connected drives in your computer, in all major operating systems",

@@ -5,0 +5,0 @@ "main": "build/drivelist.js",

@@ -137,2 +137,9 @@ drivelist

ChangeLog
---------
### v1.1.0
- Return non supported OS error to the callback instead of just throwing it.
License

@@ -139,0 +146,0 @@ -------

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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