From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/postcss-easings/CHANGELOG.md | 18 - node_modules/postcss-easings/LICENSE | 20 - node_modules/postcss-easings/README.md | 77 - node_modules/postcss-easings/index.js | 85 - .../node_modules/postcss-value-parser/LICENSE | 22 - .../node_modules/postcss-value-parser/README.md | 253 -- .../node_modules/postcss-value-parser/lib/index.js | 28 - .../node_modules/postcss-value-parser/lib/parse.js | 251 -- .../postcss-value-parser/lib/stringify.js | 48 - .../node_modules/postcss-value-parser/lib/unit.js | 49 - .../node_modules/postcss-value-parser/lib/walk.js | 22 - .../node_modules/postcss-value-parser/package.json | 58 - .../node_modules/postcss/CHANGELOG.md | 552 ---- .../node_modules/postcss/CONTRIBUTING.md | 78 - .../postcss-easings/node_modules/postcss/LICENSE | 20 - .../node_modules/postcss/README-cn.md | 349 --- .../postcss-easings/node_modules/postcss/README.md | 376 --- .../node_modules/postcss/docs/architecture.md | 156 - .../node_modules/postcss/docs/guidelines/plugin.md | 195 -- .../node_modules/postcss/docs/guidelines/runner.md | 143 - .../node_modules/postcss/docs/source-maps.md | 74 - .../node_modules/postcss/docs/syntax.md | 231 -- .../node_modules/postcss/gulpfile.js | 97 - .../node_modules/postcss/lib/at-rule.js | 131 - .../node_modules/postcss/lib/comment.js | 61 - .../node_modules/postcss/lib/container.js | 907 ------ .../node_modules/postcss/lib/css-syntax-error.js | 256 -- .../node_modules/postcss/lib/declaration.js | 101 - .../node_modules/postcss/lib/input.js | 204 -- .../node_modules/postcss/lib/lazy-result.js | 435 --- .../node_modules/postcss/lib/list.js | 95 - .../node_modules/postcss/lib/map-generator.js | 323 -- .../node_modules/postcss/lib/node.js | 625 ---- .../node_modules/postcss/lib/parse.js | 41 - .../node_modules/postcss/lib/parser.js | 552 ---- .../node_modules/postcss/lib/postcss.d.ts | 1301 -------- .../node_modules/postcss/lib/postcss.js | 292 -- .../node_modules/postcss/lib/previous-map.js | 170 - .../node_modules/postcss/lib/processor.js | 240 -- .../node_modules/postcss/lib/result.js | 206 -- .../node_modules/postcss/lib/root.js | 129 - .../node_modules/postcss/lib/rule.js | 123 - .../node_modules/postcss/lib/stringifier.js | 344 --- .../node_modules/postcss/lib/stringify.js | 17 - .../node_modules/postcss/lib/terminal-highlight.js | 83 - .../node_modules/postcss/lib/tokenize.js | 306 -- .../node_modules/postcss/lib/vendor.js | 52 - .../node_modules/postcss/lib/warn-once.js | 14 - .../node_modules/postcss/lib/warning.js | 122 - .../postcss/node_modules/source-map/CHANGELOG.md | 301 -- .../postcss/node_modules/source-map/LICENSE | 28 - .../postcss/node_modules/source-map/README.md | 742 ----- .../source-map/dist/source-map.debug.js | 3234 -------------------- .../node_modules/source-map/dist/source-map.js | 3233 ------------------- .../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 | 1145 ------- .../source-map/lib/source-map-generator.js | 425 --- .../node_modules/source-map/lib/source-node.js | 413 --- .../postcss/node_modules/source-map/lib/util.js | 488 --- .../postcss/node_modules/source-map/package.json | 73 - .../node_modules/source-map/source-map.d.ts | 98 - .../postcss/node_modules/source-map/source-map.js | 8 - .../node_modules/postcss/package.json | 25 - node_modules/postcss-easings/package.json | 42 - 71 files changed, 21222 deletions(-) delete mode 100644 node_modules/postcss-easings/CHANGELOG.md delete mode 100644 node_modules/postcss-easings/LICENSE delete mode 100644 node_modules/postcss-easings/README.md delete mode 100644 node_modules/postcss-easings/index.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss-value-parser/LICENSE delete mode 100644 node_modules/postcss-easings/node_modules/postcss-value-parser/README.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss-value-parser/lib/index.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss-value-parser/lib/parse.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss-value-parser/lib/stringify.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss-value-parser/lib/unit.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss-value-parser/lib/walk.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss-value-parser/package.json delete mode 100644 node_modules/postcss-easings/node_modules/postcss/CHANGELOG.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/CONTRIBUTING.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/LICENSE delete mode 100644 node_modules/postcss-easings/node_modules/postcss/README-cn.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/README.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/docs/architecture.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/docs/guidelines/plugin.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/docs/guidelines/runner.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/docs/source-maps.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/docs/syntax.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/gulpfile.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/at-rule.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/comment.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/container.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/css-syntax-error.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/declaration.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/input.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/lazy-result.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/list.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/map-generator.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/node.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/parse.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/parser.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/postcss.d.ts delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/postcss.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/previous-map.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/processor.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/result.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/root.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/rule.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/stringifier.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/stringify.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/terminal-highlight.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/tokenize.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/vendor.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/warn-once.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/lib/warning.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/CHANGELOG.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/LICENSE delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/README.md delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/dist/source-map.debug.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/dist/source-map.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/dist/source-map.min.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/dist/source-map.min.js.map delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/array-set.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/base64-vlq.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/base64.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/binary-search.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/mapping-list.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/quick-sort.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/source-map-consumer.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/source-map-generator.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/source-node.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/lib/util.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/package.json delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/source-map.d.ts delete mode 100644 node_modules/postcss-easings/node_modules/postcss/node_modules/source-map/source-map.js delete mode 100644 node_modules/postcss-easings/node_modules/postcss/package.json delete mode 100644 node_modules/postcss-easings/package.json (limited to 'node_modules/postcss-easings') diff --git a/node_modules/postcss-easings/CHANGELOG.md b/node_modules/postcss-easings/CHANGELOG.md deleted file mode 100644 index f3c1336f..00000000 --- a/node_modules/postcss-easings/CHANGELOG.md +++ /dev/null @@ -1,18 +0,0 @@ -# Change Log -This project adheres to [Semantic Versioning](http://semver.org/). - -## 1.0.1 -* Do not replace values in `url()` (by Fangzhou Li). - -## 1.0 -* Use PostCSS 6.0. - -## 0.3 -* Use PostCSS 5.0. -* Fix error reports. - -## 0.2 -* Support PostCSS 4.1 API. - -## 0.1 -* Initial release. diff --git a/node_modules/postcss-easings/LICENSE b/node_modules/postcss-easings/LICENSE deleted file mode 100644 index d3bd6721..00000000 --- a/node_modules/postcss-easings/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright 2015 Andrey Sitnik - -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-easings/README.md b/node_modules/postcss-easings/README.md deleted file mode 100644 index 8263284a..00000000 --- a/node_modules/postcss-easings/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# PostCSS Easings [![Build Status][ci-img]][ci] - - - -[PostCSS] plugin to replace easing name from [easings.net] to `cubic-bezier()`. - -```css -.snake { - transition: all 600ms ease-in-sine; -} -.camel { - transition: all 600ms easeInSine; -} -``` - -```css -.snake { - transition: all 600ms cubic-bezier(0.47, 0, 0.745, 0.715); -} -.camel { - transition: all 600ms cubic-bezier(0.47, 0, 0.745, 0.715); -} -``` - -[easings.net]: http://easings.net/ -[PostCSS]: https://github.com/postcss/postcss -[ci-img]: https://travis-ci.org/postcss/postcss-easings.svg -[ci]: https://travis-ci.org/postcss/postcss-easings - -## Usage - -Without options: - -```js -postcss([ require('postcss-easings') ]) -``` - -With options: - -```js -postcss([ - require('postcss-easings')({ - easings: { easeJump: 'cubic-bezier(.86,0,.69,1.57)' } - }) -]) -``` - -See [PostCSS] docs for examples for your environment. - -Also you can get all build-in easings: - -```js -require('postcss-easings').easings; -``` - -## Options - -### `easings` - -Allow to set custom easings: - -```js -require('postcss-easings')({ - easings: { easeJump: 'cubic-bezier(.86,0,.69,1.57)' } -}) -``` - -Plugin will convert custom easing name between camelCase and snake-case. -So example below adds `easeJump` and `ease-jump` easings. - -Custom easing name must start from `ease` and contain only letters and `-`. - -You can create custom easing on [cubic-bezier.com]. - -[cubic-bezier.com]: http://cubic-bezier.com/ diff --git a/node_modules/postcss-easings/index.js b/node_modules/postcss-easings/index.js deleted file mode 100644 index add6ee89..00000000 --- a/node_modules/postcss-easings/index.js +++ /dev/null @@ -1,85 +0,0 @@ -var postcss = require('postcss'); -var parser = require('postcss-value-parser'); - -var easings = { - easeInSine: 'cubic-bezier(0.47, 0, 0.745, 0.715)', - easeOutSine: 'cubic-bezier(0.39, 0.575, 0.565, 1)', - easeInOutSine: 'cubic-bezier(0.445, 0.05, 0.55, 0.95)', - easeInQuad: 'cubic-bezier(0.55, 0.085, 0.68, 0.53)', - easeOutQuad: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)', - easeInOutQuad: 'cubic-bezier(0.455, 0.03, 0.515, 0.955)', - easeInCubic: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)', - easeOutCubic: 'cubic-bezier(0.215, 0.61, 0.355, 1)', - easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1)', - easeInQuart: 'cubic-bezier(0.895, 0.03, 0.685, 0.22)', - easeOutQuart: 'cubic-bezier(0.165, 0.84, 0.44, 1)', - easeInOutQuart: 'cubic-bezier(0.77, 0, 0.175, 1)', - easeInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)', - easeOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)', - easeInOutQuint: 'cubic-bezier(0.86, 0, 0.07, 1)', - easeInExpo: 'cubic-bezier(0.95, 0.05, 0.795, 0.035)', - easeOutExpo: 'cubic-bezier(0.19, 1, 0.22, 1)', - easeInOutExpo: 'cubic-bezier(1, 0, 0, 1)', - easeInCirc: 'cubic-bezier(0.6, 0.04, 0.98, 0.335)', - easeOutCirc: 'cubic-bezier(0.075, 0.82, 0.165, 1)', - easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.15, 0.86)', - easeInBack: 'cubic-bezier(0.6, -0.28, 0.735, 0.045)', - easeOutBack: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)', - easeInOutBack: 'cubic-bezier(0.68, -0.55, 0.265, 1.55)' -}; - -var toSnake = function (str) { - return str.replace(/[A-Z]/g, function (letter) { - return '-' + letter.toLowerCase(); - }); -}; - -var toCamel = function (str) { - return str.replace(/-[a-z]/g, function (letter) { - return letter[1].toUpperCase(); - }); -}; - -var camels = Object.keys(easings); -for ( var i = 0; i < camels.length; i++ ) { - var camel = camels[i]; - easings[toSnake(camel)] = easings[camel]; -} - -module.exports = postcss.plugin('postcss-easings', function (opts) { - if ( typeof opts === 'undefined' ) opts = { }; - - var locals = { }; - if ( opts.easings ) { - for ( var name in opts.easings ) { - if ( !/^ease([\w-]+)$/.test(name) ) { - throw new Error('Custom easing ' + name + ' has bad name. ' + - 'Name should start from `ease` and contain ' + - 'only letters and dashes'); - } - locals[name] = opts.easings[name]; - if ( name.indexOf('-') !== -1 ) { - locals[toCamel(name)] = opts.easings[name]; - } else if ( /[A-Z]/.test(name) ) { - locals[toSnake(name)] = opts.easings[name]; - } - } - } - - return function (css) { - css.walkDecls(function (decl) { - if (decl.value.indexOf('ease') === -1) return; - var root = parser(decl.value); - root.nodes = root.nodes.map(function (node) { - const value = node.value; - if (node.type === 'word' && /^ease([\w-]+)$/.test(value)) { - node.value = locals[value] || easings[value] || node.value; - } - return node; - }); - decl.value = root.toString(); - }); - }; -}); - -module.exports.easings = easings; diff --git a/node_modules/postcss-easings/node_modules/postcss-value-parser/LICENSE b/node_modules/postcss-easings/node_modules/postcss-value-parser/LICENSE deleted file mode 100644 index 6dcaefcb..00000000 --- a/node_modules/postcss-easings/node_modules/postcss-value-parser/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) Bogdan Chadkin - -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-easings/node_modules/postcss-value-parser/README.md b/node_modules/postcss-easings/node_modules/postcss-value-parser/README.md deleted file mode 100644 index 0f3be478..00000000 --- a/node_modules/postcss-easings/node_modules/postcss-value-parser/README.md +++ /dev/null @@ -1,253 +0,0 @@ -# postcss-value-parser - -[![Travis CI](https://travis-ci.org/TrySound/postcss-value-parser.svg)](https://travis-ci.org/TrySound/postcss-value-parser) - -Transforms CSS declaration values and at-rule parameters into a tree of nodes, and provides a simple traversal API. - -## Usage - -```js -var valueParser = require('postcss-value-parser'); -var cssBackgroundValue = 'url(foo.png) no-repeat 40px 73%'; -var parsedValue = valueParser(cssBackgroundValue); -// parsedValue exposes an API described below, -// e.g. parsedValue.walk(..), parsedValue.toString(), etc. -``` - -For example, parsing the value `rgba(233, 45, 66, .5)` will return the following: - -```js -{ - nodes: [ - { - type: 'function', - value: 'rgba', - before: '', - after: '', - nodes: [ - { type: 'word', value: '233' }, - { type: 'div', value: ',', before: '', after: ' ' }, - { type: 'word', value: '45' }, - { type: 'div', value: ',', before: '', after: ' ' }, - { type: 'word', value: '66' }, - { type: 'div', value: ',', before: ' ', after: '' }, - { type: 'word', value: '.5' } - ] - } - ] -} -``` - -If you wanted to convert each `rgba()` value in `sourceCSS` to a hex value, you could do so like this: - -```js -var valueParser = require('postcss-value-parser'); - -var parsed = valueParser(sourceCSS); - -// walk() will visit all the of the nodes in the tree, -// invoking the callback for each. -parsed.walk(function (node) { - - // Since we only want to transform rgba() values, - // we can ignore anything else. - if (node.type !== 'function' && node.value !== 'rgba') return; - - // We can make an array of the rgba() arguments to feed to a - // convertToHex() function - var color = node.nodes.filter(function (node) { - return node.type === 'word'; - }).map(function (node) { - return Number(node.value); - }); // [233, 45, 66, .5] - - // Now we will transform the existing rgba() function node - // into a word node with the hex value - node.type = 'word'; - node.value = convertToHex(color); -}) - -parsed.toString(); // #E92D42 -``` - -## Nodes - -Each node is an object with these common properties: - -- **type**: The type of node (`word`, `string`, `div`, `space`, `comment`, or `function`). - Each type is documented below. -- **value**: Each node has a `value` property; but what exactly `value` means - is specific to the node type. Details are documented for each type below. -- **sourceIndex**: The starting index of the node within the original source - string. For example, given the source string `10px 20px`, the `word` node - whose value is `20px` will have a `sourceIndex` of `5`. - -### word - -The catch-all node type that includes keywords (e.g. `no-repeat`), -quantities (e.g. `20px`, `75%`, `1.5`), and hex colors (e.g. `#e6e6e6`). - -Node-specific properties: - -- **value**: The "word" itself. - -### string - -A quoted string value, e.g. `"something"` in `content: "something";`. - -Node-specific properties: - -- **value**: The text content of the string. -- **quote**: The quotation mark surrounding the string, either `"` or `'`. -- **unclosed**: `true` if the string was not closed properly. e.g. `"unclosed string `. - -### div - -A divider, for example - -- `,` in `animation-duration: 1s, 2s, 3s` -- `/` in `border-radius: 10px / 23px` -- `:` in `(min-width: 700px)` - -Node-specific properties: - -- **value**: The divider character. Either `,`, `/`, or `:` (see examples above). -- **before**: Whitespace before the divider. -- **after**: Whitespace after the divider. - -### space - -Whitespace used as a separator, e.g. ` ` occurring twice in `border: 1px solid black;`. - -Node-specific properties: - -- **value**: The whitespace itself. - -### comment - -A CSS comment starts with `/*` and ends with `*/` - -Node-specific properties: - -- **value**: The comment value without `/*` and `*/` -- **unclosed**: `true` if the comment was not closed properly. e.g. `/* comment without an end `. - -### function - -A CSS function, e.g. `rgb(0,0,0)` or `url(foo.bar)`. - -Function nodes have nodes nested within them: the function arguments. - -Additional properties: - -- **value**: The name of the function, e.g. `rgb` in `rgb(0,0,0)`. -- **before**: Whitespace after the opening parenthesis and before the first argument, - e.g. ` ` in `rgb( 0,0,0)`. -- **after**: Whitespace before the closing parenthesis and after the last argument, - e.g. ` ` in `rgb(0,0,0 )`. -- **nodes**: More nodes representing the arguments to the function. -- **unclosed**: `true` if the parentheses was not closed properly. e.g. `( unclosed-function `. - -Media features surrounded by parentheses are considered functions with an -empty value. For example, `(min-width: 700px)` parses to these nodes: - -```js -[ - { - type: 'function', value: '', before: '', after: '', - nodes: [ - { type: 'word', value: 'min-width' }, - { type: 'div', value: ':', before: '', after: ' ' }, - { type: 'word', value: '700px' } - ] - } -] -``` - -`url()` functions can be parsed a little bit differently depending on -whether the first character in the argument is a quotation mark. - -`url( /gfx/img/bg.jpg )` parses to: - -```js -{ type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [ - { type: 'word', sourceIndex: 5, value: '/gfx/img/bg.jpg' } -] } -``` - -`url( "/gfx/img/bg.jpg" )`, on the other hand, parses to: - -```js -{ type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [ - type: 'string', sourceIndex: 5, quote: '"', value: '/gfx/img/bg.jpg' }, -] } -``` - -## API - -``` -var valueParser = require('postcss-value-parser'); -``` - -### valueParser.unit(quantity) - -Parses `quantity`, distinguishing the number from the unit. Returns an object like the following: - -```js -// Given 2rem -{ - number: '2', - unit: 'rem' -} -``` - -If the `quantity` argument cannot be parsed as a number, returns `false`. - -*This function does not parse complete values*: you cannot pass it `1px solid black` and expect `px` as -the unit. Instead, you should pass it single quantities only. Parse `1px solid black`, then pass it -the stringified `1px` node (a `word` node) to parse the number and unit. - -### valueParser.stringify(nodes[, custom]) - -Stringifies a node or array of nodes. - -The `custom` function is called for each `node`; return a string to override the default behaviour. - -### valueParser.walk(nodes, callback[, bubble]) - -Walks each provided node, recursively walking all descendent nodes within functions. - -Returning `false` in the `callback` will prevent traversal of descendent nodes (within functions). -You can use this feature to for shallow iteration, walking over only the *immediate* children. -*Note: This only applies if `bubble` is `false` (which is the default).* - -By default, the tree is walked from the outermost node inwards. -To reverse the direction, pass `true` for the `bubble` argument. - -The `callback` is invoked with three arguments: `callback(node, index, nodes)`. - -- `node`: The current node. -- `index`: The index of the current node. -- `nodes`: The complete nodes array passed to `walk()`. - -Returns the `valueParser` instance. - -### var parsed = valueParser(value) - -Returns the parsed node tree. - -### parsed.nodes - -The array of nodes. - -### parsed.toString() - -Stringifies the node tree. - -### parsed.walk(callback[, bubble]) - -Walks each node inside `parsed.nodes`. See the documentation for `valueParser.walk()` above. - -# License - -MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru) diff --git a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/index.js b/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/index.js deleted file mode 100644 index f9ac0e68..00000000 --- a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/index.js +++ /dev/null @@ -1,28 +0,0 @@ -var parse = require("./parse"); -var walk = require("./walk"); -var stringify = require("./stringify"); - -function ValueParser(value) { - if (this instanceof ValueParser) { - this.nodes = parse(value); - return this; - } - return new ValueParser(value); -} - -ValueParser.prototype.toString = function() { - return Array.isArray(this.nodes) ? stringify(this.nodes) : ""; -}; - -ValueParser.prototype.walk = function(cb, bubble) { - walk(this.nodes, cb, bubble); - return this; -}; - -ValueParser.unit = require("./unit"); - -ValueParser.walk = walk; - -ValueParser.stringify = stringify; - -module.exports = ValueParser; diff --git a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/parse.js b/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/parse.js deleted file mode 100644 index 50d1fe9c..00000000 --- a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/parse.js +++ /dev/null @@ -1,251 +0,0 @@ -var openParentheses = "(".charCodeAt(0); -var closeParentheses = ")".charCodeAt(0); -var singleQuote = "'".charCodeAt(0); -var doubleQuote = '"'.charCodeAt(0); -var backslash = "\\".charCodeAt(0); -var slash = "/".charCodeAt(0); -var comma = ",".charCodeAt(0); -var colon = ":".charCodeAt(0); -var star = "*".charCodeAt(0); - -module.exports = function(input) { - var tokens = []; - var value = input; - - var next, quote, prev, token, escape, escapePos, whitespacePos; - var pos = 0; - var code = value.charCodeAt(pos); - var max = value.length; - var stack = [{ nodes: tokens }]; - var balanced = 0; - var parent; - - var name = ""; - var before = ""; - var after = ""; - - while (pos < max) { - // Whitespaces - if (code <= 32) { - next = pos; - do { - next += 1; - code = value.charCodeAt(next); - } while (code <= 32); - token = value.slice(pos, next); - - prev = tokens[tokens.length - 1]; - if (code === closeParentheses && balanced) { - after = token; - } else if (prev && prev.type === "div") { - prev.after = token; - } else if ( - code === comma || - code === colon || - (code === slash && value.charCodeAt(next + 1) !== star) - ) { - before = token; - } else { - tokens.push({ - type: "space", - sourceIndex: pos, - value: token - }); - } - - pos = next; - - // Quotes - } else if (code === singleQuote || code === doubleQuote) { - next = pos; - quote = code === singleQuote ? "'" : '"'; - token = { - type: "string", - sourceIndex: pos, - quote: quote - }; - do { - escape = false; - next = value.indexOf(quote, next + 1); - if (~next) { - escapePos = next; - while (value.charCodeAt(escapePos - 1) === backslash) { - escapePos -= 1; - escape = !escape; - } - } else { - value += quote; - next = value.length - 1; - token.unclosed = true; - } - } while (escape); - token.value = value.slice(pos + 1, next); - - tokens.push(token); - pos = next + 1; - code = value.charCodeAt(pos); - - // Comments - } else if (code === slash && value.charCodeAt(pos + 1) === star) { - token = { - type: "comment", - sourceIndex: pos - }; - - next = value.indexOf("*/", pos); - if (next === -1) { - token.unclosed = true; - next = value.length; - } - - token.value = value.slice(pos + 2, next); - tokens.push(token); - - pos = next + 2; - code = value.charCodeAt(pos); - - // Dividers - } else if (code === slash || code === comma || code === colon) { - token = value[pos]; - - tokens.push({ - type: "div", - sourceIndex: pos - before.length, - value: token, - before: before, - after: "" - }); - before = ""; - - pos += 1; - code = value.charCodeAt(pos); - - // Open parentheses - } else if (openParentheses === code) { - // Whitespaces after open parentheses - next = pos; - do { - next += 1; - code = value.charCodeAt(next); - } while (code <= 32); - token = { - type: "function", - sourceIndex: pos - name.length, - value: name, - before: value.slice(pos + 1, next) - }; - pos = next; - - if (name === "url" && code !== singleQuote && code !== doubleQuote) { - next -= 1; - do { - escape = false; - next = value.indexOf(")", next + 1); - if (~next) { - escapePos = next; - while (value.charCodeAt(escapePos - 1) === backslash) { - escapePos -= 1; - escape = !escape; - } - } else { - value += ")"; - next = value.length - 1; - token.unclosed = true; - } - } while (escape); - // Whitespaces before closed - whitespacePos = next; - do { - whitespacePos -= 1; - code = value.charCodeAt(whitespacePos); - } while (code <= 32); - if (pos !== whitespacePos + 1) { - token.nodes = [ - { - type: "word", - sourceIndex: pos, - value: value.slice(pos, whitespacePos + 1) - } - ]; - } else { - token.nodes = []; - } - if (token.unclosed && whitespacePos + 1 !== next) { - token.after = ""; - token.nodes.push({ - type: "space", - sourceIndex: whitespacePos + 1, - value: value.slice(whitespacePos + 1, next) - }); - } else { - token.after = value.slice(whitespacePos + 1, next); - } - pos = next + 1; - code = value.charCodeAt(pos); - tokens.push(token); - } else { - balanced += 1; - token.after = ""; - tokens.push(token); - stack.push(token); - tokens = token.nodes = []; - parent = token; - } - name = ""; - - // Close parentheses - } else if (closeParentheses === code && balanced) { - pos += 1; - code = value.charCodeAt(pos); - - parent.after = after; - after = ""; - balanced -= 1; - stack.pop(); - parent = stack[balanced]; - tokens = parent.nodes; - - // Words - } else { - next = pos; - do { - if (code === backslash) { - next += 1; - } - next += 1; - code = value.charCodeAt(next); - } while ( - next < max && - !( - code <= 32 || - code === singleQuote || - code === doubleQuote || - code === comma || - code === colon || - code === slash || - code === openParentheses || - (code === closeParentheses && balanced) - ) - ); - token = value.slice(pos, next); - - if (openParentheses === code) { - name = token; - } else { - tokens.push({ - type: "word", - sourceIndex: pos, - value: token - }); - } - - pos = next; - } - } - - for (pos = stack.length - 1; pos; pos -= 1) { - stack[pos].unclosed = true; - } - - return stack[0].nodes; -}; diff --git a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/stringify.js b/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/stringify.js deleted file mode 100644 index 5f2c845a..00000000 --- a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/stringify.js +++ /dev/null @@ -1,48 +0,0 @@ -function stringifyNode(node, custom) { - var type = node.type; - var value = node.value; - var buf; - var customResult; - - if (custom && (customResult = custom(node)) !== undefined) { - return customResult; - } else if (type === "word" || type === "space") { - return value; - } else if (type === "string") { - buf = node.quote || ""; - return buf + value + (node.unclosed ? "" : buf); - } else if (type === "comment") { - return "/*" + value + (node.unclosed ? "" : "*/"); - } else if (type === "div") { - return (node.before || "") + value + (node.after || ""); - } else if (Array.isArray(node.nodes)) { - buf = stringify(node.nodes); - if (type !== "function") { - return buf; - } - return ( - value + - "(" + - (node.before || "") + - buf + - (node.after || "") + - (node.unclosed ? "" : ")") - ); - } - return value; -} - -function stringify(nodes, custom) { - var result, i; - - if (Array.isArray(nodes)) { - result = ""; - for (i = nodes.length - 1; ~i; i -= 1) { - result = stringifyNode(nodes[i], custom) + result; - } - return result; - } - return stringifyNode(nodes, custom); -} - -module.exports = stringify; diff --git a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/unit.js b/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/unit.js deleted file mode 100644 index 06a1f667..00000000 --- a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/unit.js +++ /dev/null @@ -1,49 +0,0 @@ -var minus = "-".charCodeAt(0); -var plus = "+".charCodeAt(0); -var dot = ".".charCodeAt(0); -var exp = "e".charCodeAt(0); -var EXP = "E".charCodeAt(0); - -module.exports = function(value) { - var pos = 0; - var length = value.length; - var dotted = false; - var sciPos = -1; - var containsNumber = false; - var code; - - while (pos < length) { - code = value.charCodeAt(pos); - - if (code >= 48 && code <= 57) { - containsNumber = true; - } else if (code === exp || code === EXP) { - if (sciPos > -1) { - break; - } - sciPos = pos; - } else if (code === dot) { - if (dotted) { - break; - } - dotted = true; - } else if (code === plus || code === minus) { - if (pos !== 0) { - break; - } - } else { - break; - } - - pos += 1; - } - - if (sciPos + 1 === pos) pos--; - - return containsNumber - ? { - number: value.slice(0, pos), - unit: value.slice(pos) - } - : false; -}; diff --git a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/walk.js b/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/walk.js deleted file mode 100644 index 7666c5b1..00000000 --- a/node_modules/postcss-easings/node_modules/postcss-value-parser/lib/walk.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = function walk(nodes, cb, bubble) { - var i, max, node, result; - - for (i = 0, max = nodes.length; i < max; i += 1) { - node = nodes[i]; - if (!bubble) { - result = cb(node, i, nodes); - } - - if ( - result !== false && - node.type === "function" && - Array.isArray(node.nodes) - ) { - walk(node.nodes, cb, bubble); - } - - if (bubble) { - cb(node, i, nodes); - } - } -}; diff --git a/node_modules/postcss-easings/node_modules/postcss-value-parser/package.json b/node_modules/postcss-easings/node_modules/postcss-value-parser/package.json deleted file mode 100644 index 14ae1dc7..00000000 --- a/node_modules/postcss-easings/node_modules/postcss-value-parser/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "postcss-value-parser", - "version": "3.3.1", - "description": "Transforms css values and at-rule params into the tree", - "main": "lib/index.js", - "files": [ - "lib" - ], - "devDependencies": { - "eslint": "^5.6.1", - "husky": "^1.0.0", - "lint-staged": "^7.3.0", - "prettier": "^1.4.4", - "tap-spec": "^5.0.0", - "tape": "^4.2.0" - }, - "scripts": { - "lint:prettier": "prettier '**/*.js' --list-different", - "lint:js": "eslint . --cache", - "lint": "yarn lint:js && yarn lint:prettier", - "pretest": "yarn lint", - "test": "tape test/*.js | tap-spec" - }, - "eslintConfig": { - "env": { - "es6": true, - "node": true - }, - "extends": "eslint:recommended" - }, - "lint-staged": { - "*.js": [ - "eslint", - "prettier --write", - "git add" - ] - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "author": "Bogdan Chadkin ", - "license": "MIT", - "homepage": "https://github.com/TrySound/postcss-value-parser", - "repository": { - "type": "git", - "url": "https://github.com/TrySound/postcss-value-parser.git" - }, - "keywords": [ - "postcss", - "value", - "parser" - ], - "bugs": { - "url": "https://github.com/TrySound/postcss-value-parser/issues" - } -} diff --git a/node_modules/postcss-easings/node_modules/postcss/CHANGELOG.md b/node_modules/postcss-easings/node_modules/postcss/CHANGELOG.md deleted file mode 100644 index e2cd381e..00000000 --- a/node_modules/postcss-easings/node_modules/postcss/CHANGELOG.md +++ /dev/null @@ -1,552 +0,0 @@ -# Change Log -This project adheres to [Semantic Versioning](http://semver.org/). - -## 6.0.23 -* Fix parsing nested at-rules without semicolon, params, and spaces. - -## 6.0.22 -* Fix `Node#prev` and `Node#next` on missed parent. - -## 6.0.21 -* Rename Chinese docs to fix `yarnpkg.com` issue. - -## 6.0.20 -* Better error message on `null` as input CSS. - -## 6.0.19 -* Fix TypeScript definitions for source maps (by Oleh Kuchuk). -* Fix `source` field in TypeScript definitions (by Sylvain Pollet-Villard). - -## 6.0.18 -* Use primitive object in TypeScript definitions (by Sylvain Pollet-Villard). - -## 6.0.17 -* Fix parsing comment in selector between word tokens (by Oleh Kuchuk). - -## 6.0.16 -* Fix warning text (by Michael Keller). - -## 6.0.15 -* Add warning about missed `from` option on `process().then()` call. -* Add IE 10 support. - -## 6.0.14 -* Fix TypeScript definitions (by Jed Mao). - -## 6.0.13 -* Fix TypeScript definitions for case of multiple PostCSS versions - in `node_modules` (by Chris Eppstein). -* Use `source-map` 0.6. - -## 6.0.12 -* Don’t copy `*` hack to declaration indent. - -## 6.0.11 -* Add upper case `!IMPORTANT` support. - -## 6.0.10 -* Reduce PostCSS size in webpack bundle. - -## 6.0.9 -* Improve error message for plugin with old PostCSS (by Igor Adamenko). - -## 6.0.8 -* Fix Node.js 4.2.2 support. - -## 6.0.7 -* Fix base64 decoding for old Node.js and browser. - -## 6.0.6 -* Fix `end` position in at-rule without semicolon (by Oleh Kuchuk). - -## 6.0.5 -* Move Babel config from `package.json` for `node_modules` compiling cases. - -## 6.0.4 -* Fix parsing `;;` after rules. -* Use Chalk 2.0. - -## 6.0.3 -* Fix escape sequences parsing (by Oleh Kuchuk). -* Added ability to force disable colors with an environment variable. -* Improved color detection of some terminal apps. - -## 6.0.2 -* Keep `raws.before` on moving `Root` children to new `Root`. - -## 6.0.1 -* Fix parser extensibility to use it in Safe Parser. - -## 6.0 “Marquis Orias” -* Remove node.js 0.12 support. -* Remove deprecated method from PostCSS 4. -* Insert methods remove child from previous parent, instead of closing. -* Insert methods and cloning doesn’t clean `raws` anymore. -* Methods `moveTo`, `moveAfter`, `moveBefore` were deprecated. -* Options was changed in `Plugin#process(css, processOptions, pluginOptions)`. -* Add stream parser to reduce memory usage (by Oleh Kuchuk). -* Add `before()`/`after()` shortcuts for `node.parent.insertBefore(node, x)`. -* Add `Rule#raws.ownSemicolon` for semicolon after templates for `@apply`. -* Use `babel-preset-env` to compile npm package. -* Remove `js-base64` from dependencies (by Roman Dvornov). -* Fix error message on single `:` in CSS. -* Move tests to Jest. -* Clean up test (by Gabriel Kalani). - -## 5.2.18 -* Fix TypeScript definitions for case of multiple PostCSS versions - in `node_modules` (by Chris Eppstein). - -## 5.2.17 -* Add `postcss-sass` suggestion to syntax error on `.sass` input. - -## 5.2.16 -* Better error on wrong argument in node constructor. - -## 5.2.15 -* Fix TypeScript definitions (by bumbleblym). - -## 5.2.14 -* Fix browser bundle building in webpack (by janschoenherr). - -## 5.2.13 -* Do not add comment to important raws. -* Fix JSDoc (by Dmitry Semigradsky). - -## 5.2.12 -* Fix typo in deprecation message (by Garet McKinley). - -## 5.2.11 -* Fix TypeScript definitions (by Jed Mao). - -## 5.2.10 -* Fix TypeScript definitions (by Jed Mao). - -## 5.2.9 -* Update TypeScript definitions (by Jed Mao). - -## 5.2.8 -* Fix error message (by Ben Briggs). - -## 5.2.7 -* Better error message on syntax object in plugins list. - -## 5.2.6 -* Fix `postcss.vendor` for values with spaces (by 刘祺). - -## 5.2.5 -* Better error message on unclosed string (by Ben Briggs). - -## 5.2.4 -* Improve terminal CSS syntax highlight (by Simon Lydell). - -## 5.2.3 -* Better color highlight in syntax error code frame. -* Fix color highlight support in old systems. - -## 5.2.2 -* Update `Processor#version`. - -## 5.2.1 -* Fix source map path for CSS without `from` option (by Michele Locati). - -## 5.2 “Duke Vapula” -* Add syntax highlight to code frame in syntax error (by Andrey Popp). -* Use Babel code frame style and size in syntax error. -* Add `[` and `]` tokens to parse `[attr=;] {}` correctly. -* Add `ignoreErrors` options to tokenizer (by Andrey Popp). -* Fix error position on tab indent (by Simon Lydell). - -## 5.1.2 -* Suggests SCSS/Less parsers on parse errors depends on file extension. - -## 5.1.1 -* Fix TypeScript definitions (by Efremov Alexey). - -## 5.1 “King and President Zagan” -* Add URI in source map support (by Mark Finger). -* Add `map.from` option (by Mark Finger). -* Add `` mappings for nodes without source (by Bogdan Chadkin). -* Add function value support to `map.prev` option (by Chris Montoro). -* Add declaration value type check in shortcut creating (by 刘祺). -* `Result#warn` now returns new created warning. -* Don’t call plugin creator in `postcss.plugin` call. -* Add source maps to PostCSS ES5 build. -* Add JSDoc to PostCSS classes. -* Clean npm package from unnecessary docs. - -## 5.0.21 -* Fix support with input source mao with `utf8` encoding name. - -## 5.0.20 -* Fix between raw value parsing (by David Clark). -* Update TypeScript definitions (by Jed Mao). -* Clean fake node.source after `append(string)`. - -## 5.0.19 -* Fix indent-based syntaxes support. - -## 5.0.18 -* Parse new lines according W3C CSS syntax specification. - -## 5.0.17 -* Fix options argument in `Node#warn` (by Ben Briggs). -* Fix TypeScript definitions (by Jed Mao). - -## 5.0.16 -* Fix CSS syntax error position on unclosed quotes. - -## 5.0.15 -* Fix `Node#clone()` on `null` value somewhere in node. - -## 5.0.14 -* Allow to use PostCSS in webpack bundle without JSON loader. - -## 5.0.13 -* Fix `index` and `word` options in `Warning#toString` (by Bogdan Chadkin). -* Fix input source content loading in errors. -* Fix map options on using `LazyResult` as input CSS. -* 100% test coverage. -* Use Babel 6. - -## 5.0.12 -* Allow passing a previous map with no mappings (by Andreas Lind). - -## 5.0.11 -* Increase plugins performance by 1.5 times. - -## 5.0.10 -* Fix warning from nodes without source. - -## 5.0.9 -* Fix source map type detection (by @asan). - -## 5.0.8 -* Fixed a missed step in `5.0.7` that caused the module to be published as - ES6 code. - -## 5.0.7 -* PostCSS now requires that node 0.12 is installed via the engines property - in package.json (by Howard Zuo). - -## 5.0.6 -* Fix parsing nested at-rule without semicolon (by Matt Drake). -* Trim `Declaration#value` (by Bogdan Chadkin). - -## 5.0.5 -* Fix multi-tokens property parsing (by Matt Drake). - -## 5.0.4 -* Fix start position in `Root#source`. -* Fix source map annotation, when CSS uses `\r\n` (by Mohammad Younes). - -## 5.0.3 -* Fix `url()` parsing. -* Fix using `selectors` in `Rule` constructor. -* Add start source to `Root` node. - -## 5.0.2 -* Fix `remove(index)` to be compatible with 4.x plugin. - -## 5.0.1 -* Fix PostCSS 4.x plugins compatibility. -* Fix type definition loading (by Jed Mao). - -## 5.0 “President Valac” -* Remove `safe` option. Move Safe Parser to separate project. -* `Node#toString` does not include `before` for root nodes. -* Remove plugin returning `Root` API. -* Remove Promise polyfill for node.js 0.10. -* Deprecate `eachInside`, `eachDecl`, `eachRule`, `eachAtRule` and `eachComment` - in favor of `walk`, `walkDecls`, `walkRules`, `walkAtRules` and `walkComments` - (by Jed Mao). -* Deprecate `Container#remove` and `Node#removeSelf` - in favor of `Container#removeChild` and `Node#remove` (by Ben Briggs). -* Deprecate `Node#replace` in favor of `replaceWith` (by Ben Briggs). -* Deprecate raw properties in favor of `Node#raws` object. -* Deprecate `Node#style` in favor of `raw`. -* Deprecate `CssSyntaxError#generated` in favor of `input`. -* Deprecate `Node#cleanStyles` in favor of `cleanRaws`. -* Deprecate `Root#prevMap` in favor of `Root.source.input.map`. -* Add `syntax`, `parser` and `stringifier` options for Custom Syntaxes. -* Add stringifier option to `Node#toString`. -* Add `Result#content` alias for non-CSS syntaxes. -* Add `plugin.process(css)` shortcut to every plugin function (by Ben Briggs). -* Add multiple nodes support to insert methods (by Jonathan Neal). -* Add `Node#warn` shortcut (by Ben Briggs). -* Add `word` and `index` options to errors and warnings (by David Clark). -* Add `line`, `column` properties to `Warning`. -* Use `supports-color` library to detect color support in error output. -* Add type definitions for TypeScript plugin developers (by Jed Mao). -* `Rule#selectors` setter detects separators. -* Add `postcss.stringify` method. -* Throw descriptive errors for incorrectly formatted plugins. -* Add docs to npm release. -* Fix `url()` parsing. -* Fix Windows support (by Jed Mao). - -## 4.1.16 -* Fix errors without stack trace. - -## 4.1.15 -* Allow asynchronous plugins to change processor plugins list (by Ben Briggs). - -## 4.1.14 -* Fix for plugins packs defined by `postcss.plugin`. - -## 4.1.13 -* Fix input inlined source maps with UTF-8 encoding. - -## 4.1.12 -* Update Promise polyfill. - -## 4.1.11 -* Fix error message on wrong plugin format. - -## 4.1.10 -* Fix Promise behavior on sync plugin errors. -* Automatically fill `plugin` field in `CssSyntaxError`. -* Fix warning message (by Ben Briggs). - -## 4.1.9 -* Speed up `node.clone()`. - -## 4.1.8 -* Accepts `Processor` instance in `postcss()` constructor too. - -## 4.1.7 -* Speed up `postcss.list` (by Bogdan Chadkin). - -## 4.1.6 -* Fix Promise behavior on parsing error. - -## 4.1.5 -* Parse at-words in declaration values. - -## 4.1.4 -* Fix Promise polyfill dependency (by Anton Yakushev and Matija Marohnić). - -## 4.1.3 -* Add Promise polyfill for node.js 0.10 and IE. - -## 4.1.2 -* List helpers can be accessed independently `var space = postcss.list.space`. - -## 4.1.1 -* Show deprecated message only once. - -## 4.1 “Marquis Andras” -* Asynchronous plugin support. -* Add warnings from plugins and `Result#messages`. -* Add `postcss.plugin()` to create plugins with a standard API. -* Insert nodes by CSS string. -* Show version warning message on error from an outdated plugin. -* Send `Result` instance to plugins as the second argument. -* Add `CssSyntaxError#plugin`. -* Add `CssSyntaxError#showSourceCode()`. -* Add `postcss.list` and `postcss.vendor` aliases. -* Add `Processor#version`. -* Parse wrong closing bracket. -* Parse `!important` statement with spaces and comments inside (by Ben Briggs). -* Throw an error on declaration without `prop` or `value` (by Philip Peterson). -* Fix source map mappings position. -* Add indexed source map support. -* Always set `error.generated`. -* Clean all source map annotation comments. - -## 4.0.6 -* Remove `babel` from released package dependencies (by Andres Suarez). - -## 4.0.5 -* Fix error message on double colon in declaration. - -## 4.0.4 -* Fix indent detection in some rare cases. - -## 4.0.3 -* Faster API with 6to5 Loose mode. -* Fix indexed source maps support. - -## 4.0.2 -* Do not copy IE hacks to code style. - -## 4.0.1 -* Add `source.input` to `Root` too. - -## 4.0 “Duke Flauros” -* Rename `Container#childs` to `nodes`. -* Rename `PostCSS#processors` to `plugins`. -* Add `Node#replaceValues()` method. -* Add `Node#moveTo()`, `moveBefore()` and `moveAfter()` methods. -* Add `Node#cloneBefore()` and `cloneAfter()` shortcuts. -* Add `Node#next()`, `prev()` and `root()` shortcuts. -* Add `Node#replaceWith()` method. -* Add `Node#error()` method. -* Add `Container#removeAll()` method. -* Add filter argument to `eachDecl()` and `eachAtRule()`. -* Add `Node#source.input` and move `source.file` or `source.id` to `input`. -* Change code indent, when node was moved. -* Better fix code style on `Rule`, `AtRule` and `Comment` nodes changes. -* Allow to create rules and at-rules by hash shortcut in append methods. -* Add class name to CSS syntax error output. - -## 3.0.7 -* Fix IE filter parsing with multiple commands. -* Safer way to consume PostCSS object as plugin (by Maxime Thirouin). - -## 3.0.6 -* Fix missing semicolon when comment comes after last declaration. -* Fix Safe Mode declaration parsing on unclosed blocks. - -## 3.0.5 -* Fix parser to support difficult cases with backslash escape and brackets. -* Add `CssSyntaxError#stack` (by Maxime Thirouin). - -## 3.0.4 -* Fix Safe Mode on unknown word before declaration. - -## 3.0.3 -* Increase tokenizer speed (by Roman Dvornov). - -## 3.0.2 -* Fix empty comment parsing. -* Fix `Root#normalize` in some inserts. - -## 3.0.1 -* Fix Rhino JS runtime support. -* Typo in deprecated warning (by Maxime Thirouin). - -## 3.0 “Marquis Andrealphus” -* New parser, which become the fastest ever CSS parser written in JavaScript. -* Parser can now parse declarations and rules in one parent (like in `@page`) - and nested declarations for plugins like `postcss-nested`. -* Child nodes array is now in `childs` property, instead of `decls` and `rules`. -* `map.inline` and `map.sourcesContent` options are now `true` by default. -* Fix iterators (`each`, `insertAfter`) on children array changes. -* Use previous source map to show origin source of CSS syntax error. -* Use 6to5 ES6 compiler, instead of ES6 Transpiler. -* Use code style for manually added rules from existing rules. -* Use `from` option from previous source map `file` field. -* Set `to` value to `from` if `to` option is missing. -* Use better node source name when missing `from` option. -* Show a syntax error when `;` is missed between declarations. -* Allow to pass `PostCSS` instance or list of plugins to `use()` method. -* Allow to pass `Result` instance to `process()` method. -* Trim Unicode BOM on source maps parsing. -* Parse at-rules without spaces like `@import"file"`. -* Better previous `sourceMappingURL` annotation comment cleaning. -* Do not remove previous `sourceMappingURL` comment on `map.annotation: false`. -* Parse nameless at-rules in Safe Mode. -* Fix source map generation for nodes without source. -* Fix next child `before` if `Root` first child got removed. - -## 2.2.6 -* Fix map generation for nodes without source (by Josiah Savary). - -## 2.2.5 -* Fix source map with BOM marker support (by Mohammad Younes). -* Fix source map paths (by Mohammad Younes). - -## 2.2.4 -* Fix `prepend()` on empty `Root`. - -## 2.2.3 -* Allow to use object shortcut in `use()` with functions like `autoprefixer`. - -## 2.2.2 -* Add shortcut to set processors in `use()` via object with `.postcss` property. - -## 2.2.1 -* Send `opts` from `Processor#process(css, opts)` to processors. - -## 2.2 “Marquis Cimeies” -* Use GNU style syntax error messages. -* Add `Node#replace` method. -* Add `CssSyntaxError#reason` property. - -## 2.1.2 -* Fix UTF-8 support in inline source map. -* Fix source map `sourcesContent` if there is no `from` and `to` options. - -## 2.1.1 -* Allow to miss `to` and `from` options for inline source maps. -* Add `Node#source.id` if file name is unknown. -* Better detect splitter between rules in CSS concatenation tools. -* Automatically clone node in insert methods. - -## 2.1 “King Amdusias” -* Change Traceur ES6 compiler to ES6 Transpiler. -* Show broken CSS line in syntax error. - -## 2.0 “King Belial” -* Project was rewritten from CoffeeScript to ES6. -* Add Safe Mode to works with live input or with hacks from legacy code. -* More safer parser to pass all hacks from Browserhacks.com. -* Use real properties instead of magic getter/setter for raw properties. - -## 1.0 “Marquis Decarabia” -* Save previous source map for each node to support CSS concatenation - with multiple previous maps. -* Add `map.sourcesContent` option to add origin content to `sourcesContent` - inside map. -* Allow to set different place of output map in annotation comment. -* Allow to use arrays and `Root` in `Container#append` and same methods. -* Add `Root#prevMap` with information about previous map. -* Allow to use latest PostCSS from GitHub by npm. -* `Result` now is lazy and it will generate output CSS only if you use `css` - or `map` property. -* Use separated `map.prev` option to set previous map. -* Rename `inlineMap` option to `map.inline`. -* Rename `mapAnnotation` option to `map.annotation`. -* `Result#map` now return `SourceMapGenerator` object, instead of string. -* Run previous map autodetect only if input CSS contains annotation comment. -* Add `map: 'inline'` shortcut for `map: { inline: true }` option. -* `Node#source.file` now will contains absolute path. -* Clean `Declaration#between` style on node clone. - -## 0.3.5 -* Allow to use `Root` or `Result` as first argument in `process()`. -* Save parsed AST to `Result#root`. - -## 0.3.4 -* Better space symbol detect to read UTF-8 BOM correctly. - -## 0.3.3 -* Remove source map hacks by using new Mozilla’s `source-map` (by Simon Lydell). - -## 0.3.2 -* Add URI encoding support for inline source maps. - -## 0.3.1 -* Fix relative paths from previous source map. -* Safer space split in `Rule#selectors` (by Simon Lydell). - -## 0.3 “Prince Seere” -* Add `Comment` node for comments between declarations or rules. -* Add source map annotation comment to output CSS. -* Allow to inline source map to annotation comment by data:uri. -* Fix source maps on Windows. -* Fix source maps for subdirectory (by Dmitry Nikitenko and Simon Lydell). -* Autodetect previous source map. -* Add `first` and `last` shortcuts to container nodes. -* Parse `!important` to separated property in `Declaration`. -* Allow to break iteration by returning `false`. -* Copy code style to new nodes. -* Add `eachInside` method to recursively iterate all nodes. -* Add `selectors` shortcut to get selectors array. -* Add `toResult` method to `Rule` to simplify work with several input files. -* Clean declaration’s `value`, rule’s `selector` and at-rule’s `params` - by storing spaces in `between` property. - -## 0.2 “Duke Dantalion” -* Add source map support. -* Add shortcuts to create nodes. -* Method `process()` now returns object with `css` and `map` keys. -* Origin CSS file option was renamed from `file` to `from`. -* Rename `Node#remove()` method to `removeSelf()` to fix name conflict. -* Node source was moved to `source` property with origin file - and node end position. -* You can set own CSS generate function. - -## 0.1 “Count Andromalius” -* Initial release. diff --git a/node_modules/postcss-easings/node_modules/postcss/CONTRIBUTING.md b/node_modules/postcss-easings/node_modules/postcss/CONTRIBUTING.md deleted file mode 100644 index 227caa27..00000000 --- a/node_modules/postcss-easings/node_modules/postcss/CONTRIBUTING.md +++ /dev/null @@ -1,78 +0,0 @@ -# Contributing Guide to PostCSS - -If you want contribute to PostCSS, there are few things that you should -be familiar with. - - -## In Case You Have Question About Using PostCSS - -* **Ask for help in [the chat]** - - If you stuck on something there is a big chance - that someone had similar problem before. - -[the chat]: https://gitter.im/postcss/postcss - - -## Adding Your Plugin to the List - -If you created or found a plugin and want to add it to PostCSS plugins list -follow this simple steps. - -PR should not change plugins defined in README it contains only favorite plugins -and moderated by PostCSS author. - -Plugins submitted by community located in [`docs/plugins`]. - -* **Keep plugins order** - - Be sure that plugin not presented yet and find suitable position - in alphabetic order for it. - But plugins with `postcss-` prefix should come first. - -* **Check spelling** - - Before submitting PR be sure that spelling check pass. - For that run command `npm test`. - If it fails with unknown word error, add it as word - to `.yaspellerrc` dictionary. - -* **Check PostCSS plugin guideline** - - Provided plugin should match plugin [guidelines]. - -- **Provide link to suggested plugin** - - Make sure your pull request description contains link to plugin - you are willing to add. - -[`docs/plugins`]: https://github.com/postcss/postcss/blob/master/docs/plugins.md -[guidelines]: https://github.com/postcss/postcss/blob/master/docs/guidelines/plugin.md - - -## TypeScript Declaration Improvements - -If you found a bug or want to add certain improvements to types declaration file - -* **Check current TypeScript styling** - - Be sure that your changes match TypeScript styling rules defined in typings file. - * We use classes for existing JS classes like `Stringifier`. - * Namespaces used for separating functions related to same subject. - * Interfaces used for defining custom types. - - Make sure you read through declaration file writing [best practices] - by TypeScript team. - -[best practices]: https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html - - -## Core Development - -If you want to add new feature or fix existed issue - -- **Become familiar with PostCSS architecture** - - For gentle intro to PostCSS architecture look through our [guide]. - -[guide]: https://github.com/postcss/postcss/blob/master/docs/architecture.md diff --git a/node_modules/postcss-easings/node_modules/postcss/LICENSE b/node_modules/postcss-easings/node_modules/postcss/LICENSE deleted file mode 100644 index da057b45..00000000 --- a/node_modules/postcss-easings/node_modules/postcss/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright 2013 Andrey Sitnik - -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-easings/node_modules/postcss/README-cn.md b/node_modules/postcss-easings/node_modules/postcss/README-cn.md deleted file mode 100644 index 4846ed96..00000000 --- a/node_modules/postcss-easings/node_modules/postcss/README-cn.md +++ /dev/null @@ -1,349 +0,0 @@ -# PostCSS [![Gitter][chat-img]][chat] - -哲学家的石头 - PostCSS 的 logo - -[chat-img]: https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg -[chat]: https://gitter.im/postcss/postcss - -PostCSS 是一个允许使用 JS 插件转换样式的工具。 -这些插件可以检查(lint)你的 CSS,支持 CSS Variables 和 Mixins, -编译尚未被浏览器广泛支持的先进的 CSS 语法,内联图片,以及其它很多优秀的功能。 - -PostCSS 在工业界被广泛地应用,其中不乏很多有名的行业领导者,如:维基百科,Twitter,阿里巴巴, -JetBrains。PostCSS 的 [Autoprefixer] 插件是最流行的 CSS 处理工具之一。 - -PostCSS 接收一个 CSS 文件并提供了一个 API 来分析、修改它的规则(通过把 CSS 规则转换成一个[抽象语法树]的方式)。在这之后,这个 API 便可被许多[插件]利用来做有用的事情,比如寻错或自动添加 CSS vendor 前缀。 - -**Twitter 账号:** [@postcss](https://twitter.com/postcss)
-**支持 / 讨论:** [Gitter](https://gitter.im/postcss/postcss)
- -如果需要 PostCSS 商业支持(如咨询,提升公司的前端文化, -PostCSS 插件),请联系 [Evil Martians](https://evilmartians.com/?utm_source=postcss) -邮箱 。 - -[抽象语法树]: https://zh.wikipedia.org/wiki/%E6%8A%BD%E8%B1%A1%E8%AA%9E%E6%B3%95%E6%A8%B9 -[Autoprefixer]: https://github.com/postcss/autoprefixer -[插件]: https://github.com/postcss/postcss/blob/master/README-cn.md#%E6%8F%92%E4%BB%B6 - - - 由 Evil Martians 赞助 - - -## 插件 - -截止到目前,PostCSS 有 200 多个插件。你可以在 [插件列表] 或 [搜索目录] 找到它们。 -下方的列表是我们最喜欢的插件 - 它们很好地演示了我们可以用 PostCSS 做些什么。 - -如果你有任何新的想法,[开发 PostCSS 插件] 非常简单易上手。 - -[搜索目录]: http://postcss.parts -[插件列表]: https://github.com/postcss/postcss/blob/master/docs/plugins.md - -### 解决全局 CSS 的问题 - -* [`postcss-use`] 允许你在 CSS 里明确地设置 PostCSS 插件,并且只在当前文件执行它们。 -* [`postcss-modules`] 和 [`react-css-modules`] 可以自动以组件为单位隔绝 CSS 选择器。 -* [`postcss-autoreset`] 是全局样式重置的又一个选择,它更适用于分离的组件。 -* [`postcss-initial`] 添加了 `all: initial` 的支持,重置了所有继承的样式。 -* [`cq-prolyfill`] 添加了容器查询的支持,允许添加响应于父元素宽度的样式. - -### 提前使用先进的 CSS 特性 - -* [`autoprefixer`] 添加了 vendor 浏览器前缀,它使用 Can I Use 上面的数据。 -* [`postcss-preset-env`] 允许你使用未来的 CSS 特性。 - -### 更佳的 CSS 可读性 - -* [`precss`] 囊括了许多插件来支持类似 Sass 的特性,比如 CSS 变量,套嵌,mixins 等。 -* [`postcss-sorting`] 给规则的内容以及@规则排序。 -* [`postcss-utilities`] 囊括了最常用的简写方式和书写帮助。 -* [`short`] 添加并拓展了大量的缩写属性。 - -### 图片和字体 - -* [`postcss-assets`] 可以插入图片尺寸和内联文件。 -* [`postcss-sprites`] 能生成雪碧图。 -* [`font-magician`] 生成所有在 CSS 里需要的 `@font-face` 规则。 -* [`postcss-inline-svg`] 允许你内联 SVG 并定制它的样式。 -* [`postcss-write-svg`] 允许你在 CSS 里写简单的 SVG。 - -### 提示器(Linters) - -* [`stylelint`] 是一个模块化的样式提示器。 -* [`stylefmt`] 是一个能根据 `stylelint` 规则自动优化 CSS 格式的工具。 -* [`doiuse`] 提示 CSS 的浏览器支持性,使用的数据来自于 Can I Use。 -* [`colorguard`] 帮助你保持一个始终如一的调色板。 - -### 其它 - -* [`postcss-rtl`] 在单个 CSS 文件里组合了两个方向(左到右,右到左)的样式。 -* [`cssnano`] 是一个模块化的 CSS 压缩器。 -* [`lost`] 是一个功能强大的 `calc()` 栅格系统。 -* [`rtlcss`] 镜像翻转 CSS 样式,适用于 right-to-left 的应用场景。 - -[`postcss-inline-svg`]: https://github.com/TrySound/postcss-inline-svg -[`postcss-preset-env`]: https://github.com/jonathantneal/postcss-preset-env -[`react-css-modules`]: https://github.com/gajus/react-css-modules -[`postcss-autoreset`]: https://github.com/maximkoretskiy/postcss-autoreset -[`postcss-write-svg`]: https://github.com/jonathantneal/postcss-write-svg -[`postcss-utilities`]: https://github.com/ismamz/postcss-utilities -[`postcss-initial`]: https://github.com/maximkoretskiy/postcss-initial -[`postcss-sprites`]: https://github.com/2createStudio/postcss-sprites -[`postcss-modules`]: https://github.com/outpunk/postcss-modules -[`postcss-sorting`]: https://github.com/hudochenkov/postcss-sorting -[`postcss-assets`]: https://github.com/assetsjs/postcss-assets -[开发 PostCSS 插件]: https://github.com/postcss/postcss/blob/master/docs/writing-a-plugin.md -[`font-magician`]: https://github.com/jonathantneal/postcss-font-magician -[`autoprefixer`]: https://github.com/postcss/autoprefixer -[`cq-prolyfill`]: https://github.com/ausi/cq-prolyfill -[`postcss-rtl`]: https://github.com/vkalinichev/postcss-rtl -[`postcss-use`]: https://github.com/postcss/postcss-use -[`css-modules`]: https://github.com/css-modules/css-modules -[`colorguard`]: https://github.com/SlexAxton/css-colorguard -[`stylelint`]: https://github.com/stylelint/stylelint -[`stylefmt`]: https://github.com/morishitter/stylefmt -[`cssnano`]: http://cssnano.co -[`precss`]: https://github.com/jonathantneal/precss -[`doiuse`]: https://github.com/anandthakker/doiuse -[`rtlcss`]: https://github.com/MohammadYounes/rtlcss -[`short`]: https://github.com/jonathantneal/postcss-short -[`lost`]: https://github.com/peterramsing/lost - -## 语法 - -PostCSS 可以转化样式到任意语法,不仅仅是 CSS。 -如果还没有支持你最喜欢的语法,你可以编写一个解释器以及(或者)一个 stringifier 来拓展 PostCSS。 - -* [`sugarss`] 是一个以缩进为基础的语法,类似于 Sass 和 Stylus。 -* [`postcss-syntax`] 通过文件扩展名自动切换语法。 -* [`postcss-html`] 解析类 HTML 文件里`