@trenskow/atomic-write-stream 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -81,7 +81,7 @@ class AtomicStream extends PassThrough {
|
|
|
81
81
|
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
export default (path, { tmpDirectory
|
|
84
|
+
export default (path, { tmpDirectory } = {}) => {
|
|
85
85
|
|
|
86
86
|
const writeStream = createWriteStream(path);
|
|
87
87
|
const atomicStream = new AtomicStream(path, { tmpDirectory });
|