From 3af8d4d4a2f1ffd561bee7a71424ad512530034c Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 26 Apr 2016 13:33:39 -0400 Subject: [PATCH] Upgrade resin-image-write to v4.0.0 (#368) Signed-off-by: Juan Cruz Viotti --- lib/src/writer.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/writer.js b/lib/src/writer.js index 3d36aefe..e5ddec7b 100644 --- a/lib/src/writer.js +++ b/lib/src/writer.js @@ -93,7 +93,8 @@ exports.writeImage = function(image, drive, options, onProgress) { return exports.getImageStream(image); }).then(function(stream) { return imageWrite.write(drive.device, stream, { - check: options.validateWriteOnSuccess + check: options.validateWriteOnSuccess, + size: stream.length }); }).then(function(writer) { return new Bluebird(function(resolve, reject) { diff --git a/package.json b/package.json index 7af46cae..244d2fdd 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "lodash": "^4.5.1", "ngstorage": "^0.3.10", "open": "0.0.5", - "resin-image-write": "^3.0.4", + "resin-image-write": "^4.0.0", "resin-cli-errors": "^1.2.0", "resin-cli-form": "^1.4.1", "resin-cli-visuals": "^1.2.8",