diff options
Diffstat (limited to 'node_modules/gulp-tar')
-rw-r--r-- | node_modules/gulp-tar/index.js | 19 | ||||
-rw-r--r-- | node_modules/gulp-tar/license | 20 | ||||
-rw-r--r-- | node_modules/gulp-tar/package.json | 91 | ||||
-rw-r--r-- | node_modules/gulp-tar/readme.md | 4 |
4 files changed, 60 insertions, 74 deletions
diff --git a/node_modules/gulp-tar/index.js b/node_modules/gulp-tar/index.js index 40ccbb3fd..fbf064eb6 100644 --- a/node_modules/gulp-tar/index.js +++ b/node_modules/gulp-tar/index.js @@ -1,19 +1,18 @@ 'use strict'; -var path = require('path'); -var gutil = require('gulp-util'); -var through = require('through2'); -var objectAssign = require('object-assign'); -var archiver = require('archiver'); +const path = require('path'); +const gutil = require('gulp-util'); +const through = require('through2'); +const archiver = require('archiver'); -module.exports = function (filename, opts) { +module.exports = (filename, opts) => { if (!filename) { throw new gutil.PluginError('gulp-tar', '`filename` required'); } - var firstFile; - var archive = archiver('tar'); + let firstFile; + const archive = archiver('tar', opts); - return through.obj(function (file, enc, cb) { + return through.obj((file, enc, cb) => { if (file.relative === '') { cb(); return; @@ -23,7 +22,7 @@ module.exports = function (filename, opts) { firstFile = file; } - archive.append(file.contents, objectAssign({ + archive.append(file.contents, Object.assign({ name: file.relative.replace(/\\/g, '/') + (file.isNull() ? '/' : ''), mode: file.stat && file.stat.mode, date: file.stat && file.stat.mtime ? file.stat.mtime : null diff --git a/node_modules/gulp-tar/license b/node_modules/gulp-tar/license index 654d0bfe9..e7af2f771 100644 --- a/node_modules/gulp-tar/license +++ b/node_modules/gulp-tar/license @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/gulp-tar/package.json b/node_modules/gulp-tar/package.json index 484441c28..2f0a02ba3 100644 --- a/node_modules/gulp-tar/package.json +++ b/node_modules/gulp-tar/package.json @@ -1,48 +1,47 @@ { - "name": "gulp-tar", - "version": "1.9.0", - "description": "Create tarball from files", - "license": "MIT", - "repository": "sindresorhus/gulp-tar", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && mocha" - }, - "files": [ - "index.js" - ], - "keywords": [ - "gulpplugin", - "tar", - "tarball", - "archive", - "archiver", - "compress", - "compression", - "file", - "files", - "stream", - "streams" - ], - "dependencies": { - "archiver": "^1.0.0", - "gulp-util": "^3.0.0", - "object-assign": "^4.0.1", - "through2": "^2.0.0" - }, - "devDependencies": { - "gulp": "*", - "gulp-gzip": "^1.2.0", - "mocha": "*", - "tar-stream": "^1.0.2", - "vinyl-map": "^1.0.1", - "xo": "*" - } + "name": "gulp-tar", + "version": "2.0.0", + "description": "Create tarball from files", + "license": "MIT", + "repository": "sindresorhus/gulp-tar", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && mocha" + }, + "files": [ + "index.js" + ], + "keywords": [ + "gulpplugin", + "tar", + "tarball", + "archive", + "archiver", + "compress", + "compression", + "file", + "files", + "stream", + "streams" + ], + "dependencies": { + "archiver": "^1.0.0", + "gulp-util": "^3.0.0", + "through2": "^2.0.0" + }, + "devDependencies": { + "gulp": "*", + "gulp-gzip": "^1.2.0", + "mocha": "*", + "tar-stream": "^1.0.2", + "vinyl-map": "^1.0.1", + "xo": "*" + } } diff --git a/node_modules/gulp-tar/readme.md b/node_modules/gulp-tar/readme.md index 47c213132..5b036443a 100644 --- a/node_modules/gulp-tar/readme.md +++ b/node_modules/gulp-tar/readme.md @@ -38,9 +38,9 @@ Filename for the output tar archive. #### options -Type: `object` +Type: `Object` -Default file headers passed to [tar-stream](https://github.com/mafintosh/tar-stream). +Default options passed to [Archiver](https://github.com/archiverjs/node-archiver)'s [constructor](https://archiverjs.com/docs/Archiver.html) and merged into the [data](https://archiverjs.com/docs/global.html#TarEntryData) passed to its [`append`](https://archiverjs.com/docs/Archiver.html#append) method. ## License |