mem-fs-editor
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -10,3 +10,8 @@ 'use strict'; | ||
if (file.state === 'deleted' || file.contents === null) { | ||
file.contents = options.defaults ? new Buffer(options.defaults) : null; | ||
if (typeof options.defaults === 'string' || options.defaults instanceof Buffer) { | ||
file.contents = new Buffer(options.defaults); | ||
} | ||
else { | ||
file.contents = null; | ||
} | ||
} | ||
@@ -13,0 +18,0 @@ |
{ | ||
"name": "mem-fs-editor", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "File edition helpers working on top of mem-fs", | ||
@@ -26,4 +26,4 @@ "scripts": { | ||
"sinon": "^1.12.2", | ||
"through2": "^0.6.3", | ||
"vinyl": "^0.4.3" | ||
"through2": "^2.0.0", | ||
"vinyl": "^0.5.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
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
12920
246
+ Addedclone@1.0.4(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedreplace-ext@0.0.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvinyl@0.5.3(transitive)
- Removedclone@0.2.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedthrough2@0.6.5(transitive)
- Removedvinyl@0.4.6(transitive)
Updatedthrough2@^2.0.0
Updatedvinyl@^0.5.0