Add production dependencies

This commit is contained in:
Jay Trees 2022-01-21 09:28:41 +01:00
parent 5a0114f3e2
commit 579ccdc29f
12113 changed files with 978046 additions and 3 deletions

22
node_modules/fancy-log/LICENSE generated vendored Normal file
View file

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2014, 2015, 2018 Blaine Bublitz <blaine.bublitz@gmail.com> and Eric Schoffstall <yo@contra.io>
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 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.

71
node_modules/fancy-log/README.md generated vendored Normal file
View file

@ -0,0 +1,71 @@
<p align="center">
<a href="http://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>
# fancy-log
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
Log things, prefixed with a timestamp.
## Usage
```js
var log = require('fancy-log');
log('a message');
// [16:27:02] a message
log.error('oh no!');
// [16:27:02] oh no!
```
## API
### `log(msg...)`
Logs the message as if you called `console.log` but prefixes the output with the
current time in HH:MM:ss format.
### `log.error(msg...)`
Logs the message as if you called `console.error` but prefixes the output with the
current time in HH:MM:ss format.
### `log.warn(msg...)`
Logs the message as if you called `console.warn` but prefixes the output with the
current time in HH:MM:ss format.
### `log.info(msg...)`
Logs the message as if you called `console.info` but prefixes the output with the
current time in HH:MM:ss format.
### `log.dir(msg...)`
Logs the message as if you called `console.dir` but prefixes the output with the
current time in HH:MM:ss format.
## License
MIT
[downloads-image]: http://img.shields.io/npm/dm/fancy-log.svg
[npm-url]: https://www.npmjs.com/package/fancy-log
[npm-image]: http://img.shields.io/npm/v/fancy-log.svg
[travis-url]: https://travis-ci.org/gulpjs/fancy-log
[travis-image]: http://img.shields.io/travis/gulpjs/fancy-log.svg?label=travis-ci
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/fancy-log
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/fancy-log.svg?label=appveyor
[coveralls-url]: https://coveralls.io/r/gulpjs/fancy-log
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/fancy-log/master.svg
[gitter-url]: https://gitter.im/gulpjs/gulp
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg

92
node_modules/fancy-log/index.js generated vendored Normal file
View file

@ -0,0 +1,92 @@
'use strict';
var Console = require('console').Console;
var gray = require('ansi-gray');
var timestamp = require('time-stamp');
var supportsColor = require('color-support');
var nodeVersion = require('parse-node-version')(process.version);
var colorDetectionOptions = {
// If on Windows, ignore the isTTY check
// This is due to AppVeyor (and thus probably common Windows platforms?) failing the check
// TODO: If this is too broad, we can reduce it to an APPVEYOR env check
ignoreTTY: (process.platform === 'win32'),
};
// Needed to add this because node 10 decided to start coloring log output randomly
var console;
if (nodeVersion.major >= 10) {
// Node 10 also changed the way this is constructed
console = new Console({
stdout: process.stdout,
stderr: process.stderr,
colorMode: false,
});
} else {
console = new Console(process.stdout, process.stderr);
}
function hasFlag(flag) {
return (process.argv.indexOf('--' + flag) !== -1);
}
function addColor(str) {
if (hasFlag('no-color')) {
return str;
}
if (hasFlag('color')) {
return gray(str);
}
if (supportsColor(colorDetectionOptions)) {
return gray(str);
}
return str;
}
function getTimestamp() {
return '[' + addColor(timestamp('HH:mm:ss')) + ']';
}
function log() {
var time = getTimestamp();
process.stdout.write(time + ' ');
console.log.apply(console, arguments);
return this;
}
function info() {
var time = getTimestamp();
process.stdout.write(time + ' ');
console.info.apply(console, arguments);
return this;
}
function dir() {
var time = getTimestamp();
process.stdout.write(time + ' ');
console.dir.apply(console, arguments);
return this;
}
function warn() {
var time = getTimestamp();
process.stderr.write(time + ' ');
console.warn.apply(console, arguments);
return this;
}
function error() {
var time = getTimestamp();
process.stderr.write(time + ' ');
console.error.apply(console, arguments);
return this;
}
module.exports = log;
module.exports.info = info;
module.exports.dir = dir;
module.exports.warn = warn;
module.exports.error = error;

49
node_modules/fancy-log/package.json generated vendored Normal file
View file

@ -0,0 +1,49 @@
{
"name": "fancy-log",
"version": "1.3.3",
"description": "Log things, prefixed with a timestamp.",
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
"contributors": [
"Blaine Bublitz <blaine.bublitz@gmail.com>",
"Aman Mittal (http://amandeepmittal.github.io/)"
],
"repository": "gulpjs/fancy-log",
"license": "MIT",
"engines": {
"node": ">= 0.10"
},
"main": "index.js",
"files": [
"LICENSE",
"index.js"
],
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "mocha --async-only",
"cover": "istanbul cover _mocha --report lcovonly",
"coveralls": "npm run cover && istanbul-coveralls"
},
"dependencies": {
"ansi-gray": "^0.1.1",
"color-support": "^1.1.3",
"parse-node-version": "^1.0.0",
"time-stamp": "^1.0.0"
},
"devDependencies": {
"eslint": "^2.13.0",
"eslint-config-gulp": "^3.0.1",
"expect": "^1.20.2",
"istanbul": "^0.4.3",
"istanbul-coveralls": "^1.0.3",
"mocha": "^3.5.3"
},
"keywords": [
"console.log",
"log",
"logger",
"logging",
"pretty",
"timestamp"
]
}