aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp-tar/index.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/gulp-tar/index.js
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/gulp-tar/index.js')
-rw-r--r--node_modules/gulp-tar/index.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/node_modules/gulp-tar/index.js b/node_modules/gulp-tar/index.js
index fbf064eb6..eea7e2722 100644
--- a/node_modules/gulp-tar/index.js
+++ b/node_modules/gulp-tar/index.js
@@ -1,16 +1,17 @@
'use strict';
const path = require('path');
-const gutil = require('gulp-util');
const through = require('through2');
const archiver = require('archiver');
+const PluginError = require('plugin-error');
+const Vinyl = require('vinyl');
-module.exports = (filename, opts) => {
+module.exports = (filename, options) => {
if (!filename) {
- throw new gutil.PluginError('gulp-tar', '`filename` required');
+ throw new PluginError('gulp-tar', '`filename` required');
}
let firstFile;
- const archive = archiver('tar', opts);
+ const archive = archiver('tar', options);
return through.obj((file, enc, cb) => {
if (file.relative === '') {
@@ -26,7 +27,7 @@ module.exports = (filename, opts) => {
name: file.relative.replace(/\\/g, '/') + (file.isNull() ? '/' : ''),
mode: file.stat && file.stat.mode,
date: file.stat && file.stat.mtime ? file.stat.mtime : null
- }, opts));
+ }, options));
cb();
}, function (cb) {
@@ -37,7 +38,7 @@ module.exports = (filename, opts) => {
archive.finalize();
- this.push(new gutil.File({
+ this.push(new Vinyl({
cwd: firstFile.cwd,
base: firstFile.base,
path: path.join(firstFile.base, filename),