aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp-tar
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
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/gulp-tar')
-rw-r--r--node_modules/gulp-tar/index.js13
-rw-r--r--node_modules/gulp-tar/package.json7
2 files changed, 11 insertions, 9 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),
diff --git a/node_modules/gulp-tar/package.json b/node_modules/gulp-tar/package.json
index 2f0a02ba3..a29669feb 100644
--- a/node_modules/gulp-tar/package.json
+++ b/node_modules/gulp-tar/package.json
@@ -1,6 +1,6 @@
{
"name": "gulp-tar",
- "version": "2.0.0",
+ "version": "2.1.0",
"description": "Create tarball from files",
"license": "MIT",
"repository": "sindresorhus/gulp-tar",
@@ -33,8 +33,9 @@
],
"dependencies": {
"archiver": "^1.0.0",
- "gulp-util": "^3.0.0",
- "through2": "^2.0.0"
+ "plugin-error": "^0.1.2",
+ "through2": "^2.0.0",
+ "vinyl": "^2.1.0"
},
"devDependencies": {
"gulp": "*",