drivelist
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -20,8 +20,8 @@ var childProcess, tableParser, _; | ||
result = _.map(result, function(row) { | ||
var size; | ||
size = _.parseInt(row.Size[0]) / 1e+9; | ||
var size, _ref; | ||
size = _.parseInt((_ref = row.Size) != null ? _ref[0] : void 0) / 1e+9 || void 0; | ||
return { | ||
device: _.first(row.DeviceID), | ||
size: "" + (Math.floor(size)) + " GB", | ||
description: row.Caption.join(' ') | ||
description: row.Caption.join(' '), | ||
size: size != null ? "" + (Math.floor(size)) + " GB" : void 0 | ||
}; | ||
@@ -28,0 +28,0 @@ }); |
{ | ||
"name": "drivelist", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "List all connected drives in your computer, in all major operating systems", | ||
@@ -5,0 +5,0 @@ "main": "build/drivelist.js", |
@@ -6,2 +6,3 @@ drivelist | ||
[![dependencies](https://david-dm.org/resin-io/drivelist.png)](https://david-dm.org/resin-io/drivelist.png) | ||
[![Build Status](https://travis-ci.org/resin-io/drivelist.svg?branch=master)](https://travis-ci.org/resin-io/drivelist) | ||
@@ -141,2 +142,6 @@ List all connected drives in your computer, in all major operating systems. | ||
### v1.1.1 | ||
- Prevent empty wmic size crash the module. Return `undefined` size instead. | ||
### v1.1.0 | ||
@@ -143,0 +148,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
23735
20
153