gulp-ttf2eot
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "gulp-ttf2eot", | ||
"description": "Create an EOT font from a TTF font", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"homepage": "https://github.com/nfroidure/gulp-ttf2eot", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,2 +0,2 @@ | ||
var PassThrough = require('stream').PassThrough | ||
var Stream = require('stream') | ||
, gutil = require('gulp-util') | ||
@@ -37,7 +37,7 @@ , BufferStreams = require('bufferstreams') | ||
var stream = new PassThrough({objectMode: true}); | ||
var stream = new Stream.Transform({objectMode: true}); | ||
stream.on('data', function(file) { | ||
if(file.isNull()) return; // Do nothing | ||
if((!options.ignoreExt) && '.ttf' !== path.extname(file.path)) return; | ||
stream._transform = function(file, unused, done) { | ||
if(file.isNull()) return done(); // Do nothing | ||
if((!options.ignoreExt) && '.ttf' !== path.extname(file.path)) return done(); | ||
@@ -62,4 +62,8 @@ file.path = gutil.replaceExtension(file.path, ".eot"); | ||
} | ||
this.push(file); | ||
done(); | ||
}); | ||
}; | ||
@@ -66,0 +70,0 @@ return stream; |
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
12350
136