drivelist
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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); | ||
} | ||
}; |
{ | ||
"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
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
22520
234
148