diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/gulp-debug | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) | |
download | wallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz |
update packages
Diffstat (limited to 'node_modules/gulp-debug')
-rw-r--r-- | node_modules/gulp-debug/index.js | 27 | ||||
-rw-r--r-- | node_modules/gulp-debug/license | 20 | ||||
-rw-r--r-- | node_modules/gulp-debug/package.json | 21 | ||||
-rw-r--r-- | node_modules/gulp-debug/readme.md | 2 |
4 files changed, 33 insertions, 37 deletions
diff --git a/node_modules/gulp-debug/index.js b/node_modules/gulp-debug/index.js index ce720ab38..1a6c70fe0 100644 --- a/node_modules/gulp-debug/index.js +++ b/node_modules/gulp-debug/index.js @@ -1,6 +1,6 @@ 'use strict'; const path = require('path'); -const gutil = require('gulp-util'); +const fancyLog = require('fancy-log'); const through = require('through2'); const tildify = require('tildify'); const stringifyObject = require('stringify-object'); @@ -9,40 +9,43 @@ const plur = require('plur'); const prop = chalk.blue; -module.exports = opts => { - opts = Object.assign({ +module.exports = options => { + options = Object.assign({ title: 'gulp-debug:', minimal: true, showFiles: true - }, opts); + }, options); if (process.argv.indexOf('--verbose') !== -1) { - opts.verbose = true; - opts.minimal = false; - opts.showFiles = true; + options.verbose = true; + options.minimal = false; + options.showFiles = true; } let count = 0; return through.obj((file, enc, cb) => { - if (opts.showFiles) { + if (options.showFiles) { const full = '\n' + (file.cwd ? 'cwd: ' + prop(tildify(file.cwd)) : '') + (file.base ? '\nbase: ' + prop(tildify(file.base)) : '') + (file.path ? '\npath: ' + prop(tildify(file.path)) : '') + - (file.stat && opts.verbose ? '\nstat: ' + prop(stringifyObject(file.stat, {indent: ' '}).replace(/[{}]/g, '').trim()) : '') + + (file.stat && options.verbose ? '\nstat: ' + prop(stringifyObject(file.stat, {indent: ' '}).replace(/[{}]/g, '').trim()) : '') + '\n'; - const output = opts.minimal ? prop(path.relative(process.cwd(), file.path)) : full; + const output = options.minimal ? prop(path.relative(process.cwd(), file.path)) : full; - gutil.log(opts.title + ' ' + output); + module.exports._log(options.title + ' ' + output); } count++; cb(null, file); }, cb => { - gutil.log(opts.title + ' ' + chalk.green(count + ' ' + plur('item', count))); + module.exports._log(options.title + ' ' + chalk.green(count + ' ' + plur('item', count))); cb(); }); }; + +// Internal: Log function used by gulp-debug exposed for testing +module.exports._log = fancyLog; diff --git a/node_modules/gulp-debug/license b/node_modules/gulp-debug/license index 654d0bfe9..e7af2f771 100644 --- a/node_modules/gulp-debug/license +++ b/node_modules/gulp-debug/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-debug/package.json b/node_modules/gulp-debug/package.json index 462857670..78ecf3f9e 100644 --- a/node_modules/gulp-debug/package.json +++ b/node_modules/gulp-debug/package.json @@ -1,6 +1,6 @@ { "name": "gulp-debug", - "version": "3.1.0", + "version": "3.2.0", "description": "Debug Vinyl file streams to see what files are run through your Gulp pipeline", "license": "MIT", "repository": "sindresorhus/gulp-debug", @@ -13,7 +13,7 @@ "node": ">=4" }, "scripts": { - "test": "xo && mocha" + "test": "xo && ava" }, "files": [ "index.js" @@ -27,23 +27,26 @@ "logger", "vinyl", "file", - "inspect", "fs" ], "dependencies": { - "chalk": "^1.0.0", - "gulp-util": "^3.0.0", + "chalk": "^2.3.0", + "fancy-log": "^1.3.2", "plur": "^2.0.0", "stringify-object": "^3.0.0", "through2": "^2.0.0", "tildify": "^1.1.2" }, "devDependencies": { + "ava": "*", "gulp": "^3.8.10", - "mocha": "*", - "proxyquire": "^1.0.1", - "sinon": "^1.9.1", - "strip-ansi": "^3.0.0", + "p-event": "^1.0.0", + "sinon": "^4.1.3", + "strip-ansi": "^4.0.0", + "vinyl": "^2.1.0", "xo": "*" + }, + "ava": { + "serial": true } } diff --git a/node_modules/gulp-debug/readme.md b/node_modules/gulp-debug/readme.md index 5c3b98061..0c7dbab44 100644 --- a/node_modules/gulp-debug/readme.md +++ b/node_modules/gulp-debug/readme.md @@ -32,6 +32,8 @@ gulp.task('default', () => #### options +Type: `Object` + ##### title Type: `string`<br> |