vinyl-file
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -5,2 +5,3 @@ 'use strict'; | ||
var stripBom = require('strip-bom'); | ||
var stripBomStream = require('strip-bom-stream'); | ||
var File = require('vinyl'); | ||
@@ -40,3 +41,3 @@ | ||
if (opts.buffer === false) { | ||
file.contents = fs.createReadStream(pth).pipe(stripBom.stream()); | ||
file.contents = fs.createReadStream(pth).pipe(stripBomStream()); | ||
cb(null, file); | ||
@@ -70,3 +71,3 @@ return; | ||
contents = opts.buffer === false ? | ||
fs.createReadStream(pth).pipe(stripBom.stream()) : | ||
fs.createReadStream(pth).pipe(stripBomStream()) : | ||
stripBom(fs.readFileSync(pth)); | ||
@@ -73,0 +74,0 @@ } |
{ | ||
"name": "vinyl-file", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Create a vinyl file from an actual file", | ||
@@ -32,4 +32,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"graceful-fs": "^3.0.2", | ||
"strip-bom": "^1.0.0", | ||
"graceful-fs": "^4.1.2", | ||
"strip-bom": "^2.0.0", | ||
"strip-bom-stream": "^1.0.0", | ||
"vinyl": "^0.5.0" | ||
@@ -36,0 +37,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
4619
64
4
+ Addedstrip-bom-stream@^1.0.0
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-bom-stream@1.0.0(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removednatives@1.1.6(transitive)
- Removedstrip-bom@1.0.0(transitive)
Updatedgraceful-fs@^4.1.2
Updatedstrip-bom@^2.0.0