dependencies: bump etcher-sdk to pull in fixes

Change-type: patch
Signed-off-by: Gergely Imreh <gergely@balena.io>
This commit is contained in:
Gergely Imreh 2019-05-02 10:00:04 +01:00
parent 3ae01fdaa0
commit f2bd3c0ffb
No known key found for this signature in database
GPG Key ID: 2159E9E41D38A9EB
2 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,10 @@ export class DriveList extends CustomDynamicList<
} }
protected format(drive: _sdk.sourceDestination.BlockDevice) { protected format(drive: _sdk.sourceDestination.BlockDevice) {
const size = drive.size / 1e9; const size =
return `${drive.device} (${size.toFixed(1)} GB) - ${drive.description}`; drive.size != null
? `${(drive.size / 1e9).toFixed(1).toString()} GB`
: 'Unknown size';
return `${drive.device} (${size}) - ${drive.description}`;
} }
} }

View File

@ -132,7 +132,7 @@
"dockerode": "^2.5.5", "dockerode": "^2.5.5",
"dockerode-options": "^0.2.1", "dockerode-options": "^0.2.1",
"ejs": "^2.5.7", "ejs": "^2.5.7",
"etcher-sdk": "^0.2.0", "etcher-sdk": "^2.0.5",
"event-stream": "3.3.4", "event-stream": "3.3.4",
"express": "^4.13.3", "express": "^4.13.3",
"fast-boot2": "^1.0.9", "fast-boot2": "^1.0.9",