aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp-concat/index.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-16 01:59:39 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-16 02:00:31 +0100
commitbd65bb67e25a79b019d745b7262b2008ce2adb15 (patch)
tree89e1b032103a63737f1a703e6a943832ef261704 /node_modules/gulp-concat/index.js
parentf91466595b651721690133f58ab37f977539e95b (diff)
incrementally verify denoms
The denominations are not stored in a separate object store.
Diffstat (limited to 'node_modules/gulp-concat/index.js')
-rw-r--r--node_modules/gulp-concat/index.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/node_modules/gulp-concat/index.js b/node_modules/gulp-concat/index.js
index 697fea594..c58866980 100644
--- a/node_modules/gulp-concat/index.js
+++ b/node_modules/gulp-concat/index.js
@@ -2,22 +2,20 @@
var through = require('through2');
var path = require('path');
-var gutil = require('gulp-util');
-var PluginError = gutil.PluginError;
-var File = gutil.File;
+var File = require('vinyl');
var Concat = require('concat-with-sourcemaps');
// file can be a vinyl file object or a string
// when a string it will construct a new one
module.exports = function(file, opt) {
if (!file) {
- throw new PluginError('gulp-concat', 'Missing file option for gulp-concat');
+ throw new Error('gulp-concat: Missing file option');
}
opt = opt || {};
// to preserve existing |undefined| behaviour and to introduce |newLine: ""| for binaries
if (typeof opt.newLine !== 'string') {
- opt.newLine = gutil.linefeed;
+ opt.newLine = '\n';
}
var isUsingSourceMaps = false;
@@ -31,7 +29,7 @@ module.exports = function(file, opt) {
} else if (typeof file.path === 'string') {
fileName = path.basename(file.path);
} else {
- throw new PluginError('gulp-concat', 'Missing path in file options for gulp-concat');
+ throw new Error('gulp-concat: Missing path in file options');
}
function bufferContents(file, enc, cb) {
@@ -43,7 +41,7 @@ module.exports = function(file, opt) {
// we don't do streams (yet)
if (file.isStream()) {
- this.emit('error', new PluginError('gulp-concat', 'Streaming not supported'));
+ this.emit('error', new Error('gulp-concat: Streaming not supported'));
cb();
return;
}