From efbc2ffe6a1ee5ec38a4396305561d6515d0943e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 30 Aug 2024 17:21:18 +0800 Subject: node fixes, updates --- .../node_modules/ansi-styles/index.js | 65 - .../node_modules/ansi-styles/license | 21 - .../node_modules/ansi-styles/package.json | 50 - .../node_modules/ansi-styles/readme.md | 86 - .../postcss-unroot/node_modules/chalk/index.js | 116 - .../postcss-unroot/node_modules/chalk/license | 21 - .../chalk/node_modules/supports-color/index.js | 50 - .../chalk/node_modules/supports-color/license | 21 - .../chalk/node_modules/supports-color/package.json | 49 - .../chalk/node_modules/supports-color/readme.md | 36 - .../postcss-unroot/node_modules/chalk/package.json | 70 - .../postcss-unroot/node_modules/chalk/readme.md | 213 -- .../postcss-unroot/node_modules/has-flag/index.js | 10 - .../postcss-unroot/node_modules/has-flag/license | 21 - .../node_modules/has-flag/package.json | 48 - .../postcss-unroot/node_modules/has-flag/readme.md | 64 - .../postcss/node_modules/chalk/index.js | 116 + .../postcss/node_modules/chalk/license | 21 + .../chalk/node_modules/ansi-styles/index.js | 65 + .../chalk/node_modules/ansi-styles/license | 21 + .../chalk/node_modules/ansi-styles/package.json | 50 + .../chalk/node_modules/ansi-styles/readme.md | 86 + .../chalk/node_modules/strip-ansi/index.js | 6 + .../chalk/node_modules/strip-ansi/license | 21 + .../strip-ansi/node_modules/ansi-regex/index.js | 4 + .../strip-ansi/node_modules/ansi-regex/license | 21 + .../node_modules/ansi-regex/package.json | 64 + .../strip-ansi/node_modules/ansi-regex/readme.md | 39 + .../chalk/node_modules/strip-ansi/package.json | 57 + .../chalk/node_modules/strip-ansi/readme.md | 33 + .../chalk/node_modules/supports-color/index.js | 50 + .../chalk/node_modules/supports-color/license | 21 + .../chalk/node_modules/supports-color/package.json | 49 + .../chalk/node_modules/supports-color/readme.md | 36 + .../postcss/node_modules/chalk/package.json | 70 + .../postcss/node_modules/chalk/readme.md | 213 ++ .../postcss/node_modules/source-map/CHANGELOG.md | 301 ++ .../postcss/node_modules/source-map/LICENSE | 28 + .../postcss/node_modules/source-map/README.md | 729 +++++ .../source-map/dist/source-map.debug.js | 3091 ++++++++++++++++++++ .../node_modules/source-map/dist/source-map.js | 3090 +++++++++++++++++++ .../node_modules/source-map/dist/source-map.min.js | 2 + .../source-map/dist/source-map.min.js.map | 1 + .../node_modules/source-map/lib/array-set.js | 121 + .../node_modules/source-map/lib/base64-vlq.js | 140 + .../postcss/node_modules/source-map/lib/base64.js | 67 + .../node_modules/source-map/lib/binary-search.js | 111 + .../node_modules/source-map/lib/mapping-list.js | 79 + .../node_modules/source-map/lib/quick-sort.js | 114 + .../source-map/lib/source-map-consumer.js | 1082 +++++++ .../source-map/lib/source-map-generator.js | 416 +++ .../node_modules/source-map/lib/source-node.js | 413 +++ .../postcss/node_modules/source-map/lib/util.js | 417 +++ .../postcss/node_modules/source-map/package.json | 72 + .../postcss/node_modules/source-map/source-map.js | 8 + .../postcss/node_modules/supports-color/browser.js | 2 + .../postcss/node_modules/supports-color/index.js | 84 + .../postcss/node_modules/supports-color/license | 21 + .../supports-color/node_modules/has-flag/index.js | 10 + .../supports-color/node_modules/has-flag/license | 21 + .../node_modules/has-flag/package.json | 48 + .../supports-color/node_modules/has-flag/readme.md | 64 + .../node_modules/supports-color/package.json | 66 + .../postcss/node_modules/supports-color/readme.md | 60 + .../node_modules/strip-ansi/index.js | 6 - .../postcss-unroot/node_modules/strip-ansi/license | 21 - .../node_modules/strip-ansi/package.json | 57 - .../node_modules/strip-ansi/readme.md | 33 - .../node_modules/supports-color/browser.js | 2 - .../node_modules/supports-color/index.js | 84 - .../node_modules/supports-color/license | 21 - .../node_modules/supports-color/package.json | 66 - .../node_modules/supports-color/readme.md | 60 - 73 files changed, 11701 insertions(+), 1291 deletions(-) delete mode 100644 node_modules/postcss-unroot/node_modules/ansi-styles/index.js delete mode 100644 node_modules/postcss-unroot/node_modules/ansi-styles/license delete mode 100644 node_modules/postcss-unroot/node_modules/ansi-styles/package.json delete mode 100644 node_modules/postcss-unroot/node_modules/ansi-styles/readme.md delete mode 100644 node_modules/postcss-unroot/node_modules/chalk/index.js delete mode 100644 node_modules/postcss-unroot/node_modules/chalk/license delete mode 100644 node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/index.js delete mode 100644 node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/license delete mode 100644 node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/package.json delete mode 100644 node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/readme.md delete mode 100644 node_modules/postcss-unroot/node_modules/chalk/package.json delete mode 100644 node_modules/postcss-unroot/node_modules/chalk/readme.md delete mode 100644 node_modules/postcss-unroot/node_modules/has-flag/index.js delete mode 100644 node_modules/postcss-unroot/node_modules/has-flag/license delete mode 100644 node_modules/postcss-unroot/node_modules/has-flag/package.json delete mode 100644 node_modules/postcss-unroot/node_modules/has-flag/readme.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/index.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/license create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/ansi-styles/index.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/ansi-styles/license create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/ansi-styles/package.json create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/ansi-styles/readme.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/strip-ansi/index.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/strip-ansi/license create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/index.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/license create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/readme.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/strip-ansi/package.json create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/strip-ansi/readme.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/supports-color/index.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/supports-color/license create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/supports-color/package.json create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/node_modules/supports-color/readme.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/package.json create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/chalk/readme.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/CHANGELOG.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/LICENSE create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/README.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/dist/source-map.debug.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/dist/source-map.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/dist/source-map.min.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/dist/source-map.min.js.map create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/array-set.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/base64-vlq.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/base64.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/binary-search.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/mapping-list.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/quick-sort.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/source-map-consumer.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/source-map-generator.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/source-node.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/lib/util.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/package.json create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/source-map/source-map.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/browser.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/index.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/license create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/node_modules/has-flag/index.js create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/node_modules/has-flag/license create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/node_modules/has-flag/package.json create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/node_modules/has-flag/readme.md create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/package.json create mode 100644 node_modules/postcss-unroot/node_modules/postcss/node_modules/supports-color/readme.md delete mode 100644 node_modules/postcss-unroot/node_modules/strip-ansi/index.js delete mode 100644 node_modules/postcss-unroot/node_modules/strip-ansi/license delete mode 100644 node_modules/postcss-unroot/node_modules/strip-ansi/package.json delete mode 100644 node_modules/postcss-unroot/node_modules/strip-ansi/readme.md delete mode 100644 node_modules/postcss-unroot/node_modules/supports-color/browser.js delete mode 100644 node_modules/postcss-unroot/node_modules/supports-color/index.js delete mode 100644 node_modules/postcss-unroot/node_modules/supports-color/license delete mode 100644 node_modules/postcss-unroot/node_modules/supports-color/package.json delete mode 100644 node_modules/postcss-unroot/node_modules/supports-color/readme.md (limited to 'node_modules/postcss-unroot') diff --git a/node_modules/postcss-unroot/node_modules/ansi-styles/index.js b/node_modules/postcss-unroot/node_modules/ansi-styles/index.js deleted file mode 100644 index 78945278..00000000 --- a/node_modules/postcss-unroot/node_modules/ansi-styles/index.js +++ /dev/null @@ -1,65 +0,0 @@ -'use strict'; - -function assembleStyles () { - var styles = { - modifiers: { - reset: [0, 0], - bold: [1, 22], // 21 isn't widely supported and 22 does the same thing - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29] - }, - colors: { - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39] - }, - bgColors: { - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49] - } - }; - - // fix humans - styles.colors.grey = styles.colors.gray; - - Object.keys(styles).forEach(function (groupName) { - var group = styles[groupName]; - - Object.keys(group).forEach(function (styleName) { - var style = group[styleName]; - - styles[styleName] = group[styleName] = { - open: '\u001b[' + style[0] + 'm', - close: '\u001b[' + style[1] + 'm' - }; - }); - - Object.defineProperty(styles, groupName, { - value: group, - enumerable: false - }); - }); - - return styles; -} - -Object.defineProperty(module, 'exports', { - enumerable: true, - get: assembleStyles -}); diff --git a/node_modules/postcss-unroot/node_modules/ansi-styles/license b/node_modules/postcss-unroot/node_modules/ansi-styles/license deleted file mode 100644 index 654d0bfe..00000000 --- a/node_modules/postcss-unroot/node_modules/ansi-styles/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (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: - -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. diff --git a/node_modules/postcss-unroot/node_modules/ansi-styles/package.json b/node_modules/postcss-unroot/node_modules/ansi-styles/package.json deleted file mode 100644 index 78c535f7..00000000 --- a/node_modules/postcss-unroot/node_modules/ansi-styles/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "ansi-styles", - "version": "2.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "maintainers": [ - "Sindre Sorhus (sindresorhus.com)", - "Joshua Appelman (jbnicolai.com)" - ], - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "mocha" - }, - "files": [ - "index.js" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "devDependencies": { - "mocha": "*" - } -} diff --git a/node_modules/postcss-unroot/node_modules/ansi-styles/readme.md b/node_modules/postcss-unroot/node_modules/ansi-styles/readme.md deleted file mode 100644 index 3f933f61..00000000 --- a/node_modules/postcss-unroot/node_modules/ansi-styles/readme.md +++ /dev/null @@ -1,86 +0,0 @@ -# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) - -> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal - -You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. - -![](screenshot.png) - - -## Install - -``` -$ npm install --save ansi-styles -``` - - -## Usage - -```js -var ansi = require('ansi-styles'); - -console.log(ansi.green.open + 'Hello world!' + ansi.green.close); -``` - - -## API - -Each style has an `open` and `close` property. - - -## Styles - -### Modifiers - -- `reset` -- `bold` -- `dim` -- `italic` *(not widely supported)* -- `underline` -- `inverse` -- `hidden` -- `strikethrough` *(not widely supported)* - -### Colors - -- `black` -- `red` -- `green` -- `yellow` -- `blue` -- `magenta` -- `cyan` -- `white` -- `gray` - -### Background colors - -- `bgBlack` -- `bgRed` -- `bgGreen` -- `bgYellow` -- `bgBlue` -- `bgMagenta` -- `bgCyan` -- `bgWhite` - - -## Advanced usage - -By default you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. - -- `ansi.modifiers` -- `ansi.colors` -- `ansi.bgColors` - - -###### Example - -```js -console.log(ansi.colors.green.open); -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/postcss-unroot/node_modules/chalk/index.js b/node_modules/postcss-unroot/node_modules/chalk/index.js deleted file mode 100644 index 2d85a917..00000000 --- a/node_modules/postcss-unroot/node_modules/chalk/index.js +++ /dev/null @@ -1,116 +0,0 @@ -'use strict'; -var escapeStringRegexp = require('escape-string-regexp'); -var ansiStyles = require('ansi-styles'); -var stripAnsi = require('strip-ansi'); -var hasAnsi = require('has-ansi'); -var supportsColor = require('supports-color'); -var defineProps = Object.defineProperties; -var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM); - -function Chalk(options) { - // detect mode if not set manually - this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled; -} - -// use bright blue on Windows as the normal blue color is illegible -if (isSimpleWindowsTerm) { - ansiStyles.blue.open = '\u001b[94m'; -} - -var styles = (function () { - var ret = {}; - - Object.keys(ansiStyles).forEach(function (key) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); - - ret[key] = { - get: function () { - return build.call(this, this._styles.concat(key)); - } - }; - }); - - return ret; -})(); - -var proto = defineProps(function chalk() {}, styles); - -function build(_styles) { - var builder = function () { - return applyStyle.apply(builder, arguments); - }; - - builder._styles = _styles; - builder.enabled = this.enabled; - // __proto__ is used because we must return a function, but there is - // no way to create a function with a different prototype. - /* eslint-disable no-proto */ - builder.__proto__ = proto; - - return builder; -} - -function applyStyle() { - // support varags, but simply cast to string in case there's only one arg - var args = arguments; - var argsLen = args.length; - var str = argsLen !== 0 && String(arguments[0]); - - if (argsLen > 1) { - // don't slice `arguments`, it prevents v8 optimizations - for (var a = 1; a < argsLen; a++) { - str += ' ' + args[a]; - } - } - - if (!this.enabled || !str) { - return str; - } - - var nestedStyles = this._styles; - var i = nestedStyles.length; - - // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, - // see https://github.com/chalk/chalk/issues/58 - // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. - var originalDim = ansiStyles.dim.open; - if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) { - ansiStyles.dim.open = ''; - } - - while (i--) { - var code = ansiStyles[nestedStyles[i]]; - - // Replace any instances already present with a re-opening code - // otherwise only the part of the string until said closing code - // will be colored, and the rest will simply be 'plain'. - str = code.open + str.replace(code.closeRe, code.open) + code.close; - } - - // Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. - ansiStyles.dim.open = originalDim; - - return str; -} - -function init() { - var ret = {}; - - Object.keys(styles).forEach(function (name) { - ret[name] = { - get: function () { - return build.call(this, [name]); - } - }; - }); - - return ret; -} - -defineProps(Chalk.prototype, init()); - -module.exports = new Chalk(); -module.exports.styles = ansiStyles; -module.exports.hasColor = hasAnsi; -module.exports.stripColor = stripAnsi; -module.exports.supportsColor = supportsColor; diff --git a/node_modules/postcss-unroot/node_modules/chalk/license b/node_modules/postcss-unroot/node_modules/chalk/license deleted file mode 100644 index 654d0bfe..00000000 --- a/node_modules/postcss-unroot/node_modules/chalk/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (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: - -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. diff --git a/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/index.js b/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/index.js deleted file mode 100644 index 4346e272..00000000 --- a/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/index.js +++ /dev/null @@ -1,50 +0,0 @@ -'use strict'; -var argv = process.argv; - -var terminator = argv.indexOf('--'); -var hasFlag = function (flag) { - flag = '--' + flag; - var pos = argv.indexOf(flag); - return pos !== -1 && (terminator !== -1 ? pos < terminator : true); -}; - -module.exports = (function () { - if ('FORCE_COLOR' in process.env) { - return true; - } - - if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - return false; - } - - if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - return true; - } - - if (process.stdout && !process.stdout.isTTY) { - return false; - } - - if (process.platform === 'win32') { - return true; - } - - if ('COLORTERM' in process.env) { - return true; - } - - if (process.env.TERM === 'dumb') { - return false; - } - - if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { - return true; - } - - return false; -})(); diff --git a/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/license b/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/license deleted file mode 100644 index 654d0bfe..00000000 --- a/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (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: - -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. diff --git a/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/package.json b/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/package.json deleted file mode 100644 index 3bb77ac1..00000000 --- a/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "supports-color", - "version": "2.0.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "maintainers": [ - "Sindre Sorhus (sindresorhus.com)", - "Joshua Appelman (jbnicolai.com)" - ], - "engines": { - "node": ">=0.8.0" - }, - "scripts": { - "test": "mocha" - }, - "files": [ - "index.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect" - ], - "devDependencies": { - "mocha": "*", - "require-uncached": "^1.0.2" - } -} diff --git a/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/readme.md b/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/readme.md deleted file mode 100644 index b4761f1e..00000000 --- a/node_modules/postcss-unroot/node_modules/chalk/node_modules/supports-color/readme.md +++ /dev/null @@ -1,36 +0,0 @@ -# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color) - -> Detect whether a terminal supports color - - -## Install - -``` -$ npm install --save supports-color -``` - - -## Usage - -```js -var supportsColor = require('supports-color'); - -if (supportsColor) { - console.log('Terminal supports color'); -} -``` - -It obeys the `--color` and `--no-color` CLI flags. - -For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`. - - -## Related - -- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module -- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/postcss-unroot/node_modules/chalk/package.json b/node_modules/postcss-unroot/node_modules/chalk/package.json deleted file mode 100644 index 2b5881e9..00000000 --- a/node_modules/postcss-unroot/node_modules/chalk/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "chalk", - "version": "1.1.3", - "description": "Terminal string styling done right. Much color.", - "license": "MIT", - "repository": "chalk/chalk", - "maintainers": [ - "Sindre Sorhus (sindresorhus.com)", - "Joshua Appelman (jbnicolai.com)", - "JD Ballard (github.com/qix-)" - ], - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && mocha", - "bench": "matcha benchmark.js", - "coverage": "nyc npm test && nyc report", - "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "index.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "devDependencies": { - "coveralls": "^2.11.2", - "matcha": "^0.6.0", - "mocha": "*", - "nyc": "^3.0.0", - "require-uncached": "^1.0.2", - "resolve-from": "^1.0.0", - "semver": "^4.3.3", - "xo": "*" - }, - "xo": { - "envs": [ - "node", - "mocha" - ] - } -} diff --git a/node_modules/postcss-unroot/node_modules/chalk/readme.md b/node_modules/postcss-unroot/node_modules/chalk/readme.md deleted file mode 100644 index 5cf111e3..00000000 --- a/node_modules/postcss-unroot/node_modules/chalk/readme.md +++ /dev/null @@ -1,213 +0,0 @@ -

-
-
- chalk -
-
-
-

- -> Terminal string styling done right - -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) -[![Coverage Status](https://coveralls.io/repos/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/r/chalk/chalk?branch=master) -[![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) - - -[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough. - -**Chalk is a clean and focused alternative.** - -![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png) - - -## Why - -- Highly performant -- Doesn't extend `String.prototype` -- Expressive API -- Ability to nest styles -- Clean and focused -- Auto-detects color support -- Actively maintained -- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015 - - -## Install - -``` -$ npm install --save chalk -``` - - -## Usage - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -var chalk = require('chalk'); - -// style a string -chalk.blue('Hello world!'); - -// combine styled and normal strings -chalk.blue('Hello') + 'World' + chalk.red('!'); - -// compose multiple styles using the chainable API -chalk.blue.bgRed.bold('Hello world!'); - -// pass in multiple arguments -chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'); - -// nest styles -chalk.red('Hello', chalk.underline.bgBlue('world') + '!'); - -// nest styles of the same type even (color, underline, background) -chalk.green( - 'I am a green line ' + - chalk.blue.underline.bold('with a blue substring') + - ' that becomes green again!' -); -``` - -Easily define your own themes. - -```js -var chalk = require('chalk'); -var error = chalk.bold.red; -console.log(error('Error!')); -``` - -Take advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data). - -```js -var name = 'Sindre'; -console.log(chalk.green('Hello %s'), name); -//=> Hello Sindre -``` - - -## API - -### chalk.`