aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp-zip
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-zip
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
downloadwallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz
update packages
Diffstat (limited to 'node_modules/gulp-zip')
-rw-r--r--node_modules/gulp-zip/index.js13
-rw-r--r--node_modules/gulp-zip/license20
-rw-r--r--node_modules/gulp-zip/package.json5
-rw-r--r--node_modules/gulp-zip/readme.md9
4 files changed, 23 insertions, 24 deletions
diff --git a/node_modules/gulp-zip/index.js b/node_modules/gulp-zip/index.js
index 9f3e080a6..52794e451 100644
--- a/node_modules/gulp-zip/index.js
+++ b/node_modules/gulp-zip/index.js
@@ -1,13 +1,14 @@
'use strict';
const path = require('path');
-const gutil = require('gulp-util');
+const Vinyl = require('vinyl');
+const PluginError = require('plugin-error');
const through = require('through2');
const Yazl = require('yazl');
const getStream = require('get-stream');
module.exports = (filename, opts) => {
if (!filename) {
- throw new gutil.PluginError('gulp-zip', '`filename` required');
+ throw new PluginError('gulp-zip', '`filename` required');
}
opts = Object.assign({
@@ -32,13 +33,13 @@ module.exports = (filename, opts) => {
if (file.isNull() && file.stat && file.stat.isDirectory && file.stat.isDirectory()) {
zip.addEmptyDirectory(pathname, {
- mtime: file.stat.mtime || new Date(),
+ mtime: opts.modifiedTime || file.stat.mtime || new Date(),
mode: file.stat.mode
});
} else {
const stat = {
compress: opts.compress,
- mtime: file.stat ? file.stat.mtime : new Date(),
+ mtime: opts.modifiedTime || (file.stat ? file.stat.mtime : new Date()),
mode: file.stat ? file.stat.mode : null
};
@@ -59,14 +60,14 @@ module.exports = (filename, opts) => {
}
getStream.buffer(zip.outputStream).then(data => {
- this.push(new gutil.File({
+ this.push(new Vinyl({
cwd: firstFile.cwd,
base: firstFile.base,
path: path.join(firstFile.base, filename),
contents: data
}));
- cb(); // eslint-disable-line promise/no-callback-in-promise
+ cb();
});
zip.end();
diff --git a/node_modules/gulp-zip/license b/node_modules/gulp-zip/license
index 654d0bfe9..e7af2f771 100644
--- a/node_modules/gulp-zip/license
+++ b/node_modules/gulp-zip/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-zip/package.json b/node_modules/gulp-zip/package.json
index 6efa163dc..c2764aed0 100644
--- a/node_modules/gulp-zip/package.json
+++ b/node_modules/gulp-zip/package.json
@@ -1,6 +1,6 @@
{
"name": "gulp-zip",
- "version": "4.0.0",
+ "version": "4.2.0",
"description": "ZIP compress files",
"license": "MIT",
"repository": "sindresorhus/gulp-zip",
@@ -29,8 +29,9 @@
],
"dependencies": {
"get-stream": "^3.0.0",
- "gulp-util": "^3.0.0",
+ "plugin-error": "^0.1.2",
"through2": "^2.0.1",
+ "vinyl": "^2.1.0",
"yazl": "^2.1.0"
},
"devDependencies": {
diff --git a/node_modules/gulp-zip/readme.md b/node_modules/gulp-zip/readme.md
index 9873f7088..4ef9daa5e 100644
--- a/node_modules/gulp-zip/readme.md
+++ b/node_modules/gulp-zip/readme.md
@@ -43,6 +43,15 @@ Type: `Object`
Type: `boolean`<br>
Default: `true`
+##### modifiedTime
+
+Type: `Date`<br>
+Default: `undefined`
+
+Overrides the modification timestamp for all files added to the archive.
+
+Tip: Setting it to the same value across executions enables you to create stable archives—archives that change only when the contents of their entries change, regardless of whether those entries were "touched" or regenerated.
+
## License