vinyl-bufferstream
Advanced tools
Comparing version 0.0.0 to 1.0.0
{ | ||
"name": "vinyl-bufferstream", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "Deal with vinyl file contents, regardless of whether it is Buffer/Stream", | ||
@@ -5,0 +5,0 @@ "repository": "shinnn/vinyl-bufferstream", |
@@ -22,3 +22,11 @@ # vinyl-bufferstream | ||
return through.obj(function(file, enc, cb) { | ||
vinylBufferStream(file, cb); | ||
vinylBufferStream(file, function(err, contents) { | ||
if (err) { | ||
self.emit('error', err); | ||
} else { | ||
file.contents = contents; | ||
self.push(file); | ||
} | ||
cb(); | ||
}); | ||
}); | ||
@@ -92,3 +100,11 @@ } | ||
return through.obj(function(file, enc, cb) { | ||
vinylBufferStream(file, cb); | ||
vinylBufferStream(file, function(err, contents) { | ||
if (err) { | ||
self.emit('error', err); | ||
} else { | ||
file.contents = contents; | ||
self.push(file); | ||
} | ||
cb(); | ||
}); | ||
}); | ||
@@ -95,0 +111,0 @@ } |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7967
1
131