resin-image-fs
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -75,3 +75,3 @@ | ||
* @param {ReadStream} stream - contents stream | ||
* @returns {Promise} | ||
* @returns {Promise<WriteStream>} | ||
* | ||
@@ -89,5 +89,3 @@ * @example | ||
return driver.interact(definition.image, definition.partition).then(function(fat) { | ||
return fat.openAsync(definition.path, 'w').then(fat.closeAsync).then(function() { | ||
return stream.pipe(fat.createWriteStream(definition.path)); | ||
}); | ||
return stream.pipe(fat.createWriteStream(definition.path)); | ||
}); | ||
@@ -112,3 +110,3 @@ }; | ||
* | ||
* @returns {Promise} | ||
* @returns {Promise<WriteStream>} | ||
* | ||
@@ -115,0 +113,0 @@ * @example |
@@ -6,2 +6,12 @@ # Change Log | ||
## [2.0.1] - 2015-07-27 | ||
### Changed | ||
- Fix documentation issues. | ||
### Removed | ||
- FAT file touch workaround before write. | ||
## [2.0.0] - 2015-07-23 | ||
@@ -17,2 +27,3 @@ | ||
[2.0.1]: https://github.com/resin-io/resin-image-fs/compare/v2.0.0...v2.0.1 | ||
[2.0.0]: https://github.com/resin-io/resin-image-fs/compare/v1.0.0...v2.0.0 |
{ | ||
"name": "resin-image-fs", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Resin.io image filesystem manipulation utilities", | ||
@@ -5,0 +5,0 @@ "main": "build/imagefs.js", |
@@ -33,4 +33,4 @@ resin-image-fs | ||
* [.read(definition)](#module_imagefs.read) ⇒ <code>Promise.<ReadStream></code> | ||
* [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise</code> | ||
* [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise</code> | ||
* [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise.<WriteStream></code> | ||
* [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise.<WriteStream></code> | ||
@@ -63,3 +63,3 @@ <a name="module_imagefs.read"></a> | ||
<a name="module_imagefs.write"></a> | ||
### imagefs.write(definition, stream) ⇒ <code>Promise</code> | ||
### imagefs.write(definition, stream) ⇒ <code>Promise.<WriteStream></code> | ||
**Kind**: static method of <code>[imagefs](#module_imagefs)</code> | ||
@@ -87,3 +87,3 @@ **Summary**: Write to a device file | ||
<a name="module_imagefs.copy"></a> | ||
### imagefs.copy(input, output) ⇒ <code>Promise</code> | ||
### imagefs.copy(input, output) ⇒ <code>Promise.<WriteStream></code> | ||
**Kind**: static method of <code>[imagefs](#module_imagefs)</code> | ||
@@ -90,0 +90,0 @@ **Summary**: Copy a device file |
Sorry, the diff of this file is not supported yet
50368493
357