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/laggard/.eslintrc | 25 - node_modules/laggard/.npmignore | 6 - node_modules/laggard/.travis.yml | 5 - node_modules/laggard/CHANGELOG.md | 9 - node_modules/laggard/CONTRIBUTORS.md | 30 - node_modules/laggard/README.md | 194 -- node_modules/laggard/bin/cmd.js | 48 - node_modules/laggard/bin/help.txt | 7 - node_modules/laggard/index.js | 57 - .../laggard/node_modules/pixrem/.editorconfig | 13 - .../laggard/node_modules/pixrem/.gitattributes | 1 - node_modules/laggard/node_modules/pixrem/.jshintrc | 21 - .../laggard/node_modules/pixrem/.npmignore | 2 - .../laggard/node_modules/pixrem/.travis.yml | 5 - .../laggard/node_modules/pixrem/CHANGELOG.md | 86 - node_modules/laggard/node_modules/pixrem/LICENSE | 22 - node_modules/laggard/node_modules/pixrem/README.md | 89 - .../laggard/node_modules/pixrem/lib/pixrem.js | 160 - .../pixrem/node_modules/.bin/browserslist | 1 - .../pixrem/node_modules/browserslist/CHANGELOG.md | 234 -- .../pixrem/node_modules/browserslist/LICENSE | 20 - .../pixrem/node_modules/browserslist/README.md | 455 --- .../pixrem/node_modules/browserslist/browser.js | 29 - .../pixrem/node_modules/browserslist/cli.js | 103 - .../pixrem/node_modules/browserslist/error.js | 12 - .../pixrem/node_modules/browserslist/index.js | 671 ---- .../pixrem/node_modules/browserslist/node.js | 215 -- .../pixrem/node_modules/browserslist/package.json | 86 - .../node_modules/reduce-css-calc/CHANGELOG.md | 87 - .../pixrem/node_modules/reduce-css-calc/LICENSE | 20 - .../pixrem/node_modules/reduce-css-calc/README.md | 72 - .../pixrem/node_modules/reduce-css-calc/index.js | 164 - .../node_modules/reduce-css-calc/package.json | 33 - .../laggard/node_modules/pixrem/package.json | 42 - .../laggard/node_modules/pixrem/test/test.js | 285 -- .../postcss-color-rgba-fallback/CHANGELOG.md | 45 - .../postcss-color-rgba-fallback/LICENSE | 20 - .../postcss-color-rgba-fallback/README.md | 104 - .../postcss-color-rgba-fallback/index.js | 141 - .../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/rgb-hex/index.js | 40 - .../node_modules/rgb-hex/license | 21 - .../node_modules/rgb-hex/package.json | 37 - .../node_modules/rgb-hex/readme.md | 43 - .../postcss-color-rgba-fallback/package.json | 38 - .../node_modules/postcss-reporter/CHANGELOG.md | 65 - .../laggard/node_modules/postcss-reporter/LICENSE | 22 - .../node_modules/postcss-reporter/README.md | 143 - .../laggard/node_modules/postcss-reporter/index.js | 4 - .../node_modules/postcss-reporter/lib/formatter.js | 80 - .../node_modules/postcss-reporter/lib/reporter.js | 81 - .../node_modules/postcss-reporter/lib/util.js | 20 - .../node_modules/postcss-reporter/package.json | 46 - .../node_modules/postcss-will-change/CHANGELOG.md | 17 - .../node_modules/postcss-will-change/LICENSE | 20 - .../node_modules/postcss-will-change/README.md | 45 - .../node_modules/postcss-will-change/index.js | 13 - .../node_modules/postcss-will-change/package.json | 48 - .../laggard/node_modules/postcss/CHANGELOG.md | 552 ---- .../laggard/node_modules/postcss/CONTRIBUTING.md | 78 - node_modules/laggard/node_modules/postcss/LICENSE | 20 - .../laggard/node_modules/postcss/README-cn.md | 349 --- .../laggard/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 - .../laggard/node_modules/postcss/docs/syntax.md | 231 -- .../laggard/node_modules/postcss/gulpfile.js | 97 - .../laggard/node_modules/postcss/lib/at-rule.js | 131 - .../laggard/node_modules/postcss/lib/comment.js | 61 - .../laggard/node_modules/postcss/lib/container.js | 907 ------ .../node_modules/postcss/lib/css-syntax-error.js | 256 -- .../node_modules/postcss/lib/declaration.js | 101 - .../laggard/node_modules/postcss/lib/input.js | 204 -- .../node_modules/postcss/lib/lazy-result.js | 435 --- .../laggard/node_modules/postcss/lib/list.js | 95 - .../node_modules/postcss/lib/map-generator.js | 323 -- .../laggard/node_modules/postcss/lib/node.js | 625 ---- .../laggard/node_modules/postcss/lib/parse.js | 41 - .../laggard/node_modules/postcss/lib/parser.js | 552 ---- .../laggard/node_modules/postcss/lib/postcss.d.ts | 1301 -------- .../laggard/node_modules/postcss/lib/postcss.js | 292 -- .../node_modules/postcss/lib/previous-map.js | 170 - .../laggard/node_modules/postcss/lib/processor.js | 240 -- .../laggard/node_modules/postcss/lib/result.js | 206 -- .../laggard/node_modules/postcss/lib/root.js | 129 - .../laggard/node_modules/postcss/lib/rule.js | 123 - .../node_modules/postcss/lib/stringifier.js | 344 --- .../laggard/node_modules/postcss/lib/stringify.js | 17 - .../node_modules/postcss/lib/terminal-highlight.js | 83 - .../laggard/node_modules/postcss/lib/tokenize.js | 306 -- .../laggard/node_modules/postcss/lib/vendor.js | 52 - .../laggard/node_modules/postcss/lib/warn-once.js | 14 - .../laggard/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 - .../laggard/node_modules/postcss/package.json | 25 - node_modules/laggard/package.json | 56 - node_modules/laggard/test/fixtures/opacity.css | 8 - .../laggard/test/fixtures/opacity.expected.css | 9 - node_modules/laggard/test/fixtures/pixrem.css | 3 - .../laggard/test/fixtures/pixrem.expected.css | 4 - node_modules/laggard/test/fixtures/pseudo.css | 7 - .../laggard/test/fixtures/pseudo.expected.css | 7 - node_modules/laggard/test/fixtures/rgba.css | 11 - .../laggard/test/fixtures/rgba.expected.css | 14 - node_modules/laggard/test/fixtures/vmin.css | 7 - .../laggard/test/fixtures/vmin.expected.css | 9 - node_modules/laggard/test/fixtures/willchange.css | 3 - .../laggard/test/fixtures/willchange.expected.css | 4 - node_modules/laggard/test/test.js | 74 - node_modules/laggard/yarn.lock | 2010 ------------ 138 files changed, 27608 deletions(-) delete mode 100644 node_modules/laggard/.eslintrc delete mode 100644 node_modules/laggard/.npmignore delete mode 100644 node_modules/laggard/.travis.yml delete mode 100644 node_modules/laggard/CHANGELOG.md delete mode 100644 node_modules/laggard/CONTRIBUTORS.md delete mode 100644 node_modules/laggard/README.md delete mode 100755 node_modules/laggard/bin/cmd.js delete mode 100644 node_modules/laggard/bin/help.txt delete mode 100644 node_modules/laggard/index.js delete mode 100644 node_modules/laggard/node_modules/pixrem/.editorconfig delete mode 100644 node_modules/laggard/node_modules/pixrem/.gitattributes delete mode 100644 node_modules/laggard/node_modules/pixrem/.jshintrc delete mode 100644 node_modules/laggard/node_modules/pixrem/.npmignore delete mode 100644 node_modules/laggard/node_modules/pixrem/.travis.yml delete mode 100644 node_modules/laggard/node_modules/pixrem/CHANGELOG.md delete mode 100644 node_modules/laggard/node_modules/pixrem/LICENSE delete mode 100644 node_modules/laggard/node_modules/pixrem/README.md delete mode 100644 node_modules/laggard/node_modules/pixrem/lib/pixrem.js delete mode 120000 node_modules/laggard/node_modules/pixrem/node_modules/.bin/browserslist delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/CHANGELOG.md delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/LICENSE delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/README.md delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/browser.js delete mode 100755 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/cli.js delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/error.js delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/index.js delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/node.js delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/browserslist/package.json delete mode 100755 node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/CHANGELOG.md delete mode 100755 node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/LICENSE delete mode 100755 node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/README.md delete mode 100755 node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/index.js delete mode 100644 node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/package.json delete mode 100644 node_modules/laggard/node_modules/pixrem/package.json delete mode 100644 node_modules/laggard/node_modules/pixrem/test/test.js delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/CHANGELOG.md delete mode 100755 node_modules/laggard/node_modules/postcss-color-rgba-fallback/LICENSE delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/README.md delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/index.js delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/LICENSE delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/README.md delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/index.js delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/parse.js delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/stringify.js delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/unit.js delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/walk.js delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/package.json delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/index.js delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/license delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/package.json delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/readme.md delete mode 100644 node_modules/laggard/node_modules/postcss-color-rgba-fallback/package.json delete mode 100644 node_modules/laggard/node_modules/postcss-reporter/CHANGELOG.md delete mode 100644 node_modules/laggard/node_modules/postcss-reporter/LICENSE delete mode 100644 node_modules/laggard/node_modules/postcss-reporter/README.md delete mode 100644 node_modules/laggard/node_modules/postcss-reporter/index.js delete mode 100644 node_modules/laggard/node_modules/postcss-reporter/lib/formatter.js delete mode 100644 node_modules/laggard/node_modules/postcss-reporter/lib/reporter.js delete mode 100644 node_modules/laggard/node_modules/postcss-reporter/lib/util.js delete mode 100644 node_modules/laggard/node_modules/postcss-reporter/package.json delete mode 100644 node_modules/laggard/node_modules/postcss-will-change/CHANGELOG.md delete mode 100644 node_modules/laggard/node_modules/postcss-will-change/LICENSE delete mode 100644 node_modules/laggard/node_modules/postcss-will-change/README.md delete mode 100644 node_modules/laggard/node_modules/postcss-will-change/index.js delete mode 100644 node_modules/laggard/node_modules/postcss-will-change/package.json delete mode 100644 node_modules/laggard/node_modules/postcss/CHANGELOG.md delete mode 100644 node_modules/laggard/node_modules/postcss/CONTRIBUTING.md delete mode 100644 node_modules/laggard/node_modules/postcss/LICENSE delete mode 100644 node_modules/laggard/node_modules/postcss/README-cn.md delete mode 100644 node_modules/laggard/node_modules/postcss/README.md delete mode 100644 node_modules/laggard/node_modules/postcss/docs/architecture.md delete mode 100644 node_modules/laggard/node_modules/postcss/docs/guidelines/plugin.md delete mode 100644 node_modules/laggard/node_modules/postcss/docs/guidelines/runner.md delete mode 100644 node_modules/laggard/node_modules/postcss/docs/source-maps.md delete mode 100644 node_modules/laggard/node_modules/postcss/docs/syntax.md delete mode 100644 node_modules/laggard/node_modules/postcss/gulpfile.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/at-rule.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/comment.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/container.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/css-syntax-error.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/declaration.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/input.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/lazy-result.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/list.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/map-generator.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/node.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/parse.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/parser.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/postcss.d.ts delete mode 100644 node_modules/laggard/node_modules/postcss/lib/postcss.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/previous-map.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/processor.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/result.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/root.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/rule.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/stringifier.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/stringify.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/terminal-highlight.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/tokenize.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/vendor.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/warn-once.js delete mode 100644 node_modules/laggard/node_modules/postcss/lib/warning.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/CHANGELOG.md delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/LICENSE delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/README.md delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/dist/source-map.debug.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/dist/source-map.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/dist/source-map.min.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/dist/source-map.min.js.map delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/array-set.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/base64-vlq.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/base64.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/binary-search.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/mapping-list.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/quick-sort.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/source-map-consumer.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/source-map-generator.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/source-node.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/lib/util.js delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/package.json delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/source-map.d.ts delete mode 100644 node_modules/laggard/node_modules/postcss/node_modules/source-map/source-map.js delete mode 100644 node_modules/laggard/node_modules/postcss/package.json delete mode 100644 node_modules/laggard/package.json delete mode 100644 node_modules/laggard/test/fixtures/opacity.css delete mode 100644 node_modules/laggard/test/fixtures/opacity.expected.css delete mode 100644 node_modules/laggard/test/fixtures/pixrem.css delete mode 100644 node_modules/laggard/test/fixtures/pixrem.expected.css delete mode 100644 node_modules/laggard/test/fixtures/pseudo.css delete mode 100644 node_modules/laggard/test/fixtures/pseudo.expected.css delete mode 100644 node_modules/laggard/test/fixtures/rgba.css delete mode 100644 node_modules/laggard/test/fixtures/rgba.expected.css delete mode 100644 node_modules/laggard/test/fixtures/vmin.css delete mode 100644 node_modules/laggard/test/fixtures/vmin.expected.css delete mode 100644 node_modules/laggard/test/fixtures/willchange.css delete mode 100644 node_modules/laggard/test/fixtures/willchange.expected.css delete mode 100644 node_modules/laggard/test/test.js delete mode 100644 node_modules/laggard/yarn.lock (limited to 'node_modules/laggard') diff --git a/node_modules/laggard/.eslintrc b/node_modules/laggard/.eslintrc deleted file mode 100644 index 43ad337a..00000000 --- a/node_modules/laggard/.eslintrc +++ /dev/null @@ -1,25 +0,0 @@ -{ - "env": { - "node": true, - "es6": true - }, - "extends": "eslint:recommended", - "rules": { - "indent": [ - "error", - 2 - ], - "linebreak-style": [ - "error", - "unix" - ], - "quotes": [ - "error", - "single" - ], - "semi": [ - "error", - "always" - ] - } -} \ No newline at end of file diff --git a/node_modules/laggard/.npmignore b/node_modules/laggard/.npmignore deleted file mode 100644 index 51af743f..00000000 --- a/node_modules/laggard/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -# Deps -node_modules - -# Runtime -*.log -.DS_Store diff --git a/node_modules/laggard/.travis.yml b/node_modules/laggard/.travis.yml deleted file mode 100644 index dd338dd6..00000000 --- a/node_modules/laggard/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "4" - - "6" - - "8" diff --git a/node_modules/laggard/CHANGELOG.md b/node_modules/laggard/CHANGELOG.md deleted file mode 100644 index 7a42c206..00000000 --- a/node_modules/laggard/CHANGELOG.md +++ /dev/null @@ -1,9 +0,0 @@ -# Change Log - -## [v2.0.0](https://github.com/seaneking/laggard/tree/v2.0.0) (2017-08-01) -[Full Changelog](https://github.com/seaneking/laggard/compare/v1.0.0...v2.0.0) - -## [v1.0.0](https://github.com/seaneking/laggard/tree/v1.0.0) (2017-08-01) - - -\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* \ No newline at end of file diff --git a/node_modules/laggard/CONTRIBUTORS.md b/node_modules/laggard/CONTRIBUTORS.md deleted file mode 100644 index a7b50fdd..00000000 --- a/node_modules/laggard/CONTRIBUTORS.md +++ /dev/null @@ -1,30 +0,0 @@ -# CONTRIBUTORS -Laggard is a collection of community PostCSS plugins. All credit for the functionality of Laggard goes to the authors of these plugins, Laggard itself is just a handy meta-pacakge. - -Laggard (c) 2015 Sean King - - -### Plugins -* [postcss-color-rgba-fallback][postcss-color-rgba-fallback] - (c) 2015 Guillaume Démésy -* [postcss-opacity][postcss-opacity] - (c) 2015 Vincent De Oliveira -* [postcss-vmin][postcss-vmin] - (c) 2015 Vincent De Oliveira -* [postcss-pseudoelements][postcss-pseudoelements] - no license specified -* [pixrem][pixrem] - (c) 2013 Robert Wierzbowski, contributors -* [postcss-will-change] - (c) 2015 Andrey Sitnik - - -## License -All copyrights above apply the MIT license, as does Laggard itself: - -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. - - -[postcss-color-rgba-fallback]: https://github.com/postcss/postcss-color-rgba-fallback -[postcss-opacity]: https://github.com/iamvdo/postcss-opacity -[postcss-vmin]: https://github.com/iamvdo/postcss-vmin -[postcss-pseudoelements]: https://github.com/axa-ch/postcss-pseudoelements -[pixrem]: https://github.com/robwierzbowski/node-pixrem diff --git a/node_modules/laggard/README.md b/node_modules/laggard/README.md deleted file mode 100644 index f4b79817..00000000 --- a/node_modules/laggard/README.md +++ /dev/null @@ -1,194 +0,0 @@ -# Laggard -[![NPM version][npm-badge]][npm-url] [![Downloads][npm-downloads]][npm-url] [![Build Status][travis-badge]][travis-url] - -Laggard automatically generates safe CSS fallbacks for legacy ( process.exit(1)); -} - -read(FILE, function (err, buf) { - if (err) { - throw err; - } - laggard.process(String(buf), { from: FILE, to: OUT }).then(function (result) { - write(OUT, result.css); - if (OPTS.map && OPTS.to) { - fs.writeFile(OPTS.to + '.map', result.map.toString()); - } - }).catch((err) => { - console.error(err); - process.exit(1); - }); -}); \ No newline at end of file diff --git a/node_modules/laggard/bin/help.txt b/node_modules/laggard/bin/help.txt deleted file mode 100644 index 65d65fc6..00000000 --- a/node_modules/laggard/bin/help.txt +++ /dev/null @@ -1,7 +0,0 @@ -Usage: laggard [input] [output] {OPTIONS} - -Options: - - --version, -v Show the version number. - - --help, -h Show this help screen. diff --git a/node_modules/laggard/index.js b/node_modules/laggard/index.js deleted file mode 100644 index 6d73574b..00000000 --- a/node_modules/laggard/index.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict'; - -const postcss = require('postcss'); - -const PLUGINS = [ - { - option: 'rgba', - module: require('postcss-color-rgba-fallback') - }, - { - option: 'opacity', - module: require('postcss-opacity') - }, - { - option: 'pseudo', - module: require('postcss-pseudoelements') - }, - { - option: 'vmin', - module: require('postcss-vmin') - }, - { - option: 'pixrem', - module: require('pixrem') - }, - { - option: 'willchange', - module: require('postcss-will-change') - }, - { - option: 'reporter', - module: require('postcss-reporter') - }, - ], - DEFAULTS = { - rgba: true, - opacity: true, - pseudo: true, - vmin: true, - pixrem: true, - willchange: true, - reporter: false - }; - -// Export PostCSS bundle -module.exports = postcss.plugin('laggard', options => { - options = options || {}; - - let config = Object.assign({}, DEFAULTS, options), - bundle = postcss(); - - PLUGINS.forEach(plugin => { - config[plugin.option] && bundle.use(plugin.module); - }); - - return bundle; -}); \ No newline at end of file diff --git a/node_modules/laggard/node_modules/pixrem/.editorconfig b/node_modules/laggard/node_modules/pixrem/.editorconfig deleted file mode 100644 index 8f6cc4f8..00000000 --- a/node_modules/laggard/node_modules/pixrem/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false \ No newline at end of file diff --git a/node_modules/laggard/node_modules/pixrem/.gitattributes b/node_modules/laggard/node_modules/pixrem/.gitattributes deleted file mode 100644 index 176a458f..00000000 --- a/node_modules/laggard/node_modules/pixrem/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto diff --git a/node_modules/laggard/node_modules/pixrem/.jshintrc b/node_modules/laggard/node_modules/pixrem/.jshintrc deleted file mode 100644 index a24dec95..00000000 --- a/node_modules/laggard/node_modules/pixrem/.jshintrc +++ /dev/null @@ -1,21 +0,0 @@ -{ - "node": true, - "esnext": true, - "bitwise": true, - "camelcase": true, - "curly": true, - "eqeqeq": true, - "immed": true, - "indent": 2, - "latedef": false, - "newcap": true, - "noarg": true, - "quotmark": "single", - "regexp": true, - "undef": true, - "unused": true, - "strict": true, - "trailing": true, - "smarttabs": true, - "white": true -} diff --git a/node_modules/laggard/node_modules/pixrem/.npmignore b/node_modules/laggard/node_modules/pixrem/.npmignore deleted file mode 100644 index 646ac519..00000000 --- a/node_modules/laggard/node_modules/pixrem/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -.DS_Store -node_modules/ diff --git a/node_modules/laggard/node_modules/pixrem/.travis.yml b/node_modules/laggard/node_modules/pixrem/.travis.yml deleted file mode 100644 index 4f66147e..00000000 --- a/node_modules/laggard/node_modules/pixrem/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - stable - - "6" - - "4" diff --git a/node_modules/laggard/node_modules/pixrem/CHANGELOG.md b/node_modules/laggard/node_modules/pixrem/CHANGELOG.md deleted file mode 100644 index 601c8321..00000000 --- a/node_modules/laggard/node_modules/pixrem/CHANGELOG.md +++ /dev/null @@ -1,86 +0,0 @@ -## Release History - -4.0.1, July 06, 2017 - -* Fix CI build, testing only Node.js 4, 6 and stable - -4.0.0, July 06, 2017 - -* Update to PostCSS 6.0 (no longer support Node.js 0.12) -* Update to Browserslist 2.0 - -3.0.2, August 22, 2016 -* Fix reduce-css-calc security bug - -3.0.1, May 24, 2016 -* Fix #54: fallback not added when ie9 and ie 10 are in scope - -3.0.0, Sep 23, 2015 - -* Export module as a PostCSS plugin (#35) -* Follow PostCSS plugin guidelines -* Removed `rootValue` parameter, now defined in options (#40) -* Removed old API. Always use pixrem with PostCSS API. -* Added: `unitPrecision` for rounded values - -2.0.1, Sep 17, 2015 - -* Fix NaNpx values (#45) - -2.0.0, Aug 24, 2015 - -* Update to PostCSS 5.0 - -1.3.2, Aug 24, 2015 - -* Unpublished version - -1.3.1, Jul 9, 2015 - -* Fixed: Replace `eachDecl` with `each` and `decl.type` check in process function - -1.3.0, Jul 1, 2015 - -* Added: Use browserslist to generate rem fallbacks only when needed - -1.2.4, Apr 17, 2015 - -* Fixed: generate fallbacks with a value starting with dot - -1.2.3, Mar 27, 2015 - -* Fix: copy and reduce decl.before, only if defined - -1.2.2, Mar 27, 2015 - -* Fix root-font size detection - -1.2.1, Mar 23, 2015 - -* Reduce line-breaks when inserting clone node - -1.2.0, Feb 19, 2015 - -* Add option `html` to disable root font-size detection -* Fix root-font size defined with `calc` -* Throw error when root font-size is invalid - -1.1.1, Feb 5, 2015: - -* Fix root font-size detection - -1.1.0, Jan 25, 2015: - -* PostCSS 4 -* Expose postcss processor - -1.0.0, Nov 26, 2014: - -* Generate rem fallbacks only when needed -* Updated to PostCSS v3.0 -* Get root font-size from CSS - -0.1.4, March 6, 2014: Code optimization from AI. -0.1.3, Dec 14, 2013: Fix regex for < 0 values. -0.1.1, 0.1.2, Dec 14, 2013: Documentation improvements. -0.1.0, Dec 14, 2013: Initial release. \ No newline at end of file diff --git a/node_modules/laggard/node_modules/pixrem/LICENSE b/node_modules/laggard/node_modules/pixrem/LICENSE deleted file mode 100644 index cdfd304f..00000000 --- a/node_modules/laggard/node_modules/pixrem/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2013 Robert Wierzbowski, contributors - -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/laggard/node_modules/pixrem/README.md b/node_modules/laggard/node_modules/pixrem/README.md deleted file mode 100644 index ae8ba5ed..00000000 --- a/node_modules/laggard/node_modules/pixrem/README.md +++ /dev/null @@ -1,89 +0,0 @@ -# Pixrem - -[![Build Status](https://travis-ci.org/robwierzbowski/node-pixrem.png?branch=master)](https://travis-ci.org/robwierzbowski/node-pixrem) - -[PostCSS](https://github.com/ai/postcss) plugin that generates pixel fallbacks for rem units. - -## Installation - -`npm install --save pixrem` - -## Usage - -Pixrem is a CSS post-processor that, given CSS and a root em value, returns CSS with pixel unit fallbacks or replacements. It's based on [browser data](http://caniuse.com/rem) so only needed fallbacks will be added. Basically, it's for IE8 or less, and for IE9 & IE10 in the `font` shorthand property and in pseudo-elements. - -### Example - -```js -'use strict'; -var fs = require('fs'); -var pixrem = require('pixrem'); -var postcss = require('postcss'); - -var css = fs.readFileSync('main.css', 'utf8'); -var processedCss = postcss([pixrem]).process(css).css; - -fs.writeFile('main.with-fallbacks.css', processedCss, function (err) { - if (err) { - throw err; - } - console.log('IE8, you\'re welcome.'); -}); -``` - -Pixrem takes this: - -```css -.sky { - margin: 2.5rem 2px 3em 100%; - color: blue; -} - -@media screen and (min-width: 20rem) { - .leaf { - margin-bottom: 1.333rem; - font-size: 1.5rem; - } -} -``` - -And returns this: - -```css -.sky { - margin: 80px 2px 3em 100%; - margin: 2.5rem 2px 3em 100%; - color: blue; -} - -@media screen and (min-width: 20rem) { - .leaf { - margin-bottom: 1.333rem; - font-size: 1.5rem; - } -} -``` - -### Options - -Type: `Object | Null` -Default: `{rootValue: 16, replace: false, atrules: false, html: true, browsers: 'ie <= 8', unitPrecision: 3}` - -- `rootValue` the root element font size. Can be `px`, `rem`, `em`, `%`, or unitless pixel value. Pixrem also tries to get the root font-size from CSS (`html` or `:root`) and overrides this option. Use `html` option to disable this behaviour. -- `replace` replaces rules containing `rem`s instead of adding fallbacks. -- `atrules` generates fallback in at-rules too (media-queries) -- `html` overrides root font-size from CSS `html {}` or `:root {}` -- `browsers` sets browser's range you want to target, based on [browserslist](https://github.com/ai/browserslist) -- `unitPrecision` control the significant digits after the decimal point - -## Contribute - -Report bugs and feature proposals in the [Github issue tracker](https://github.com/robwierzbowski/node-pixrem/issues). Run tests with `npm test`. In lieu of a formal styleguide, take care to maintain the existing coding style. - -## License - -[MIT](http://en.wikipedia.org/wiki/MIT_License) - - -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/robwierzbowski/node-pixrem/trend.png)](https://bitdeli.com/free "Bitdeli Badge") - diff --git a/node_modules/laggard/node_modules/pixrem/lib/pixrem.js b/node_modules/laggard/node_modules/pixrem/lib/pixrem.js deleted file mode 100644 index 9f0d61a6..00000000 --- a/node_modules/laggard/node_modules/pixrem/lib/pixrem.js +++ /dev/null @@ -1,160 +0,0 @@ -var calc = require('reduce-css-calc'); -var vendor = require('postcss/lib/vendor'); -var postcss = require('postcss'); -var browserslist = require('browserslist'); - -var REGEX = /(\d*\.?\d+)rem/ig; -var BASE_FONT_SIZE = 16; -var PROPS = /^(background-size|border-image|border-radius|box-shadow|clip-path|column|grid|mask|object|perspective|scroll|shape|size|stroke|transform)/; -var VALUES = /(calc|gradient)\(/; - -module.exports = postcss.plugin('pixrem', function (opts) { - - opts = opts || {}; - - return function (css, result) { - - var options = {}; - options.rootValue = (opts.rootValue !== undefined) ? opts.rootValue : BASE_FONT_SIZE; - options.replace = (opts.replace !== undefined) ? opts.replace : false; - options.atrules = (opts.atrules !== undefined) ? opts.atrules : false; - options.html = (opts.html !== undefined) ? opts.html : true; - options.unitPrecision = (opts.unitPrecision !== undefined) ? opts.unitPrecision : 3; - options.browsers = (opts.browsers !== undefined) ? opts.browsers : 'ie <= 8'; - options.browsers = browserslist(options.browsers); - - var isIElte8, isIEgte9, isIE9_10; - if (detectBrowser(options.browsers, 'ie <= 8')) { - isIElte8 = true; - } - if (detectBrowser(options.browsers, 'ie >= 9')) { - isIEgte9 = true; - } - if (detectBrowser(options.browsers, 'ie 9, ie 10')) { - isIE9_10 = true; - } - // no IE versions needed, skip - if (!isIElte8 && !isIEgte9 && !isIE9_10) { return; } - - if (options.html) { - // First, check root font-size - css.walkRules(function (rule) { - if (rule.parent && rule.parent.type === 'atrule') { return; } - if (/^(html|:root)$/.test(rule.selectors)) { - rule.walkDecls(function (decl) { - if (decl.prop === 'font-size') { - options.rootValue = decl.value; - } else if (decl.prop === 'font' && decl.value.match(/\d/)) { - options.rootValue = decl.value.match(/.*?([\d\.]*(em|px|rem|%|pt|pc))/)[1]; - } - }); - } - }); - } - - css.walkRules(function (rule) { - - // if options.at-rules is false AND it's not IE9-10: skip @rules - if (!options.atrules && !isIE9_10) { - if (rule.type === 'atrule' || (rule.parent && rule.parent.type === 'atrule')) { return; } - } - - var isPseudoElement = (rule.selector.search(/:(after|before)/gi) !== -1); - - rule.each(function (decl, i) { - - if (decl.type !== 'decl') { return; } - - var value = decl.value; - - if (value.indexOf('rem') !== -1) { - - var prop = vendor.unprefixed(decl.prop); - var isFontShorthand = (prop === 'font'); - var isSpecialCaseIE9_10 = (isIE9_10 && (isPseudoElement || isFontShorthand)); - var isUseless = (VALUES.test(value) || PROPS.test(prop)); - var isNotUseless = ((isIElte8 || !isIE9_10) && !isUseless); - - if ( isSpecialCaseIE9_10 || isNotUseless ) { - - value = value.replace(REGEX, function ($1) { - return rounded(parseFloat($1) * toPx(options.rootValue, decl, result), options.unitPrecision) + 'px'; - }); - - if (options.replace) { - decl.value = value; - } else { - var clone = decl.clone({ value: value }); - if (decl.raws.before) { - clone.raws.before = decl.raws.before; - decl.raws.before = reduceLineBreaks(decl.raws.before); - } - rule.insertBefore(i, clone); - } - - } - - } - - }); - - }); - - }; - -}); - -// Detect if one browser from the browserQuery is in browsers -function detectBrowser (browsers, browserQuery) { - var b = false; - browserQuery = browserslist(browserQuery); - for (var i = 0; i < browsers.length; i++) { - for (var j = 0; j < browserQuery.length; j++) { - if (browsers[i] === browserQuery[j]) { - b = true; - break; - } - } - if (b) { break; } - } - return b; -} - -// Return a unitless pixel value from any root font-size value. -function toPx (value, decl, result) { - value = (typeof value === 'string' && value.indexOf('calc(') !== -1) ? calc(value) : value; - var parts = /^(\d*\.?\d+)([a-zA-Z%]*)$/.exec(value); - if (parts !== null) { - var number = parts[1]; - var unit = parts[2]; - - if (unit === 'px' || unit === '') { - return parseFloat(number); - } - else if (unit === 'em' || unit === 'rem') { - return parseFloat(number) * BASE_FONT_SIZE; - } - else if (unit === '%') { - return (parseFloat(number) / 100) * BASE_FONT_SIZE; - } else { - // other units: vw, ex, ch, etc... - result.warn('Unit cannot be used for conversion, so 16px is used.'); - return BASE_FONT_SIZE; - } - } else { - throw decl.error('Root font-size is invalid', {plugin: 'pixrem'}); - } -} - -// Reduce line breaks -function reduceLineBreaks (value) { - return value.replace(/(\r*\n|\r)+/g, '$1'); -} - -// Round values based on precision -// rounded down to match webkit and opera behavior: -// http://tylertate.com/blog/2012/01/05/subpixel-rounding.html -function rounded (value, precision) { - precision = Math.pow(10, precision); - return Math.floor(value * precision) / precision; -} \ No newline at end of file diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/.bin/browserslist b/node_modules/laggard/node_modules/pixrem/node_modules/.bin/browserslist deleted file mode 120000 index 3cd991b2..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/.bin/browserslist +++ /dev/null @@ -1 +0,0 @@ -../browserslist/cli.js \ No newline at end of file diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/CHANGELOG.md b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/CHANGELOG.md deleted file mode 100644 index 5fa322e6..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/CHANGELOG.md +++ /dev/null @@ -1,234 +0,0 @@ -# Change Log -This project adheres to [Semantic Versioning](http://semver.org/). - -## 2.11.3 -* Fix for `path: undefined` option. - -## 2.11.2 -* Remove Node.js specific code from webpack build. - -## 2.11.1 -* Fix using Browserslist in browser with `path` but without `fs`. - -## 2.11 -* Add `last 2 years` query support (by James Harris). - -## 2.10.2 -* Fix Browserify support. - -## 2.10.1 -* Fix using Browserslist without `process` (by Andrew Patton). - -## 2.10 -* Add `< 1%` and `<= 1%` queries support (by August Kaiser). - -## 2.9.1 -* Fix unknown query on trailing spaces in query. - -## 2.9 -* Add `last Electron versions` and `last Electron major versions` queries - (by Louis Mouhat). - -## 2.8 -* Add `since 2016-03` and `since 2016-03-20` queries support (by Andrew Blick). - -## 2.7 -* Add `since 2016` queries support (by Igor Deryabin). - -## 2.6.1 -* Fix `Path must be a string` error. - -## 2.6 -* By default load config from current directory in CLI tool. - -## 2.5.1 -* Allow `@scope/browserlist-config` config name (by Jamie Connolly). - -## 2.5 -* Add `extends` query (by YellowKirby). - -## 2.4.1 -* Throw error if `package.json` contain `browserlist` instead of `browserslist`. - -## 2.4 -* Add `last n major versions` query (by John Sanders). - -## 2.3.3 -* Fix browsers support. - -## 2.3.2 -* Fix `> 0` query for browsers with one version (by Nikolay Solovyov). - -## 2.3.1 -* Reduce library size. - -## 2.3 -* Add `unreleased versions` and `unreleased Chrome versions` queries. - -## 2.2.2 -* Fix `Path must be a string` error (by Pieter Beulque). - -## 2.2.1 -* Fix security issue with regions dynamic `require`. - -## 2.2 -* Add region usage statistics support (by Clément P). - -## 2.1.5 -* Remove Firefox 45 from Firefox ESR. - -## 2.1.4 -* Use both ESR versions when they actual. - -## 2.1.3 -* Add warning on first exclude query. - -## 2.1.2 -* Fix non-Node.js environments support. - -## 2.1.1 -* Fix CLI arguments parsing. - -## 2.1 -* Add `>= 5%`, `>= 5% in US` and `>= 5% in my stats` queries. - -## 2.0 -* `last n versions` returns versions for all browsers, not only main browsers. -* Cache file system operations (by Aarni Koskela). -* Use `caniuse-lite` 1 MB instead of `caniuse-db` 7 MB (by Ben Briggs). -* Add `.browserslistrc` config support. -* Add QQ Browser for Android support. -* Add tests for CLI (by Zhulduz Zhankenova). - -## 1.7.7 -* Update Firefox ESR. - -## 1.7.6 -* Fix Android Chrome selection. - -## 1.7.5 -* Fix combining `not` query with country based statistics. -* Fix `--env` argument in CLI (by Tuure Savuoja). - -## 1.7.4 -* Speed up browser sorting (by Aarni Koskela). - -## 1.7.3 -* Fix config finding when directory was passed to `path` (by Aarni Koskela). - -## 1.7.2 -* Fix config finding algorithm (by Aarni Koskela). - -## 1.7.1 -* Fix unreleased browsers version detection. - -## 1.7 -* Add `--config` and `--env` arguments to CLI (by Jarek Rencz). - -## 1.6 -* Convert Electron version to Chrome (by Kilian Valkhof). -* Fix `0` version mistake in Can I Use data. - -## 1.5.2 -* Fix browser versions ordering (by Marco Massarotto). - -## 1.5.1 -* Fix error on `package.json` and `browserslist` in same directory. - -## 1.5 -* Add `package.json` support (by Stepan Kuzmin). -* Add environments support (by Maksim Semenov and openlibser). -* Add `browserslist-stats.json` file support (by Oleh Aloshkin). -* Add `config` option to CLI (by Evilebot Tnawi). -* Add JSDoc. -* Fix tests on Windows (by Anna Stoliar). -* Don’t set custom usage statistics globally. - -## 1.4 -* Add `defaults` keyword. - -## 1.3.6 -* Add `UCAndroid` alias to `and_uc` (by Evilebot Tnawi). - -## 1.3.5 -* Fix Opera Mini support. Use `op_mini all`. - -## 1.3.4 -* Add space-less `>1%` and `>.5%` syntax support (by Andreas Lind). - -## 1.3.3 -* Clean `0` versions in some country-based requests. - -## 1.3.2 -* Update Firefox ESR. - -## 1.3.1 -* Add Safari TP support. - -## 1.3 -* Add coverage for specific country (by Joshua Wise). - -## 1.2 -* Add `browserslist.coverage()` method. -* Add `--coverage` and `-c` argument to CLI. -* Add `-v` argument support to CLI. -* Better error handling in CLI. - -## 1.1.3 -* Fix jspm support (by Sean Anderson). - -## 1.1.2 -* Fix jspm support (by Sean Anderson). - -## 1.1.1 -* Fix space-less `>10%` and `>10% in my stats` queries. -* Normalize error messages. -* Remove development files from npm package. - -## 1.1 -* Added query against custom browser usage data (by Daniel Rey). - -## 1.0.1 -* Update Firefox ESR (by Rouven Weßling). - -## 1.0 -* Remove Opera 12.1 from default query. -* Add `not` keyword and exclude browsers by query. -* Add Microsoft Edge support (by Andrey Polischuk). -* Add CLI for debug and non-JS usage (by Luke Horvat). -* Use own class in Browserslist errors. - -## 0.5 -* Add version ranges `IE 6-9` (by Ben Briggs). - -## 0.4 -* Add `config` option and `BROWSERSLIST_CONFIG` environment variable support. -* Add symlink config support. - -## 0.3.3 -* Fix DynJS compatibility (by Nick Howes). - -## 0.3.2 -* Fix joined versions on versions query (by Vincent De Oliveira). - -## 0.3.1 -* Fix global variable leak (by Peter Müller). - -## 0.3 -* Takes queries from `BROWSERSLIST` environment variable. - -## 0.2 -* Return Can I Use joined versions as `ios_saf 7.0-7.1`. - -## 0.1.3 -* Better work with Can I Use joined versions like `ios_saf 7.0-7.1`. -* Browserslist now understands `ios_saf 7.0` or `ios_saf 7`. - -## 0.1.2 -* Do not create global `browserslist` var (by Maxime Thirouin). - -## 0.1.1 -* Sort browsers by name and version. - -## 0.1 -* Initial release. diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/LICENSE b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/LICENSE deleted file mode 100644 index 1ae47a20..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright 2014 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/laggard/node_modules/pixrem/node_modules/browserslist/README.md b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/README.md deleted file mode 100644 index d36c8020..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/README.md +++ /dev/null @@ -1,455 +0,0 @@ -# Browserslist - -Browserslist logo by Anton Lovchikov - -Library to share target browsers between different front-end tools. -It is used in: - -* [Autoprefixer] -* [babel-preset-env] - (external config in `package.json` or `browserslist` will be supported in 7.0) -* [postcss-preset-env] -* [eslint-plugin-compat] -* [stylelint-no-unsupported-browser-features] -* [postcss-normalize] - -All tools that rely on Browserslist will find its config automatically, -when you add the following to `package.json`: - -```json -{ - "browserslist": [ - "> 1%", - "last 2 versions" - ] -} -``` - -Or in `.browserslistrc` config: - -```yaml -# Browsers that we support - -> 1% -Last 2 versions -IE 10 # sorry -``` - -Developers set browsers list in queries like `last 2 version` -to be free from updating browser versions manually. -Browserslist will use [Can I Use] data for this queries. - -Browserslist will take browsers queries from tool option, -`browserslist` config, `.browserslistrc` config, -`browserslist` section in `package.json` or environment variables. - -You can test Browserslist queries in [online demo]. - - - Sponsored by Evil Martians - - -[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features -[eslint-plugin-compat]: https://github.com/amilajack/eslint-plugin-compat -[postcss-preset-env]: https://github.com/jonathantneal/postcss-preset-env -[babel-preset-env]: https://github.com/babel/babel/tree/master/packages/babel-preset-env -[postcss-normalize]: https://github.com/jonathantneal/postcss-normalize -[Autoprefixer]: https://github.com/postcss/autoprefixer -[online demo]: http://browserl.ist/ -[Can I Use]: http://caniuse.com/ - -## Tools - -* [`browserslist-useragent`] checks browser by user agent string - to match Browserslist target browsers query. -* [`caniuse-api`] returns browsers which support some specific feature. -* Run `npx browserslist` in your project directory to see project’s - target browsers. This CLI tool is built-in and available in any project - with Autoprefixer. - -[`browserslist-useragent`]: https://github.com/pastelsky/browserslist-useragent -[`caniuse-api`]: https://github.com/Nyalab/caniuse-api - -## Queries - -Browserslist will use browsers query from one of this sources: - -1. Tool options. For example `browsers` option in Autoprefixer. -2. `BROWSERSLIST` environment variable. -3. `browserslist` config file in current or parent directories. -3. `.browserslistrc` config file in current or parent directories. -4. `browserslist` key in `package.json` file in current or parent directories. - **We recommend this way.** -5. If the above methods did not produce a valid result - Browserslist will use defaults: `> 1%, last 2 versions, Firefox ESR`. - -You can specify the versions by queries (case insensitive): - -* `last 2 versions`: the last 2 versions for each browser. -* `last 2 Chrome versions`: the last 2 versions of Chrome browser. -* `> 5%`: versions selected by global usage statistics. - `>=`, `<` and `<=` work too. -* `> 5% in US`: uses USA usage statistics. It accepts [two-letter country code]. -* `> 5% in alt-AS`: uses Asia region usage statistics. List of all region codes - can be found at [`caniuse-lite/data/regions`]. -* `> 5% in my stats`: uses [custom usage data]. -* `extends browserslist-config-mycompany`: take queries from - `browserslist-config-mycompany` npm package. -* `ie 6-8`: selects an inclusive range of versions. -* `Firefox > 20`: versions of Firefox newer than 20. - `>=`, `<` and `<=` work too. -* `iOS 7`: the iOS browser version 7 directly. -* `Firefox ESR`: the latest [Firefox ESR] version. -* `unreleased versions` or `unreleased Chrome versions`: - alpha and beta versions. -* `last 2 major versions` or `last 2 iOS major versions`: - all minor/patch releases of last 2 major versions. -* `since 2015` or `last 2 years`: all versions released since year 2015 - (also `since 2015-03` and `since 2015-03-10`). -* `not ie <= 8`: exclude browsers selected by previous queries. - -You can add `not ` to any query. - -### Debug - -Run `npx browserslist` in project directory to see what browsers was selected -by your queries. - -```sh -$ npx browserslist -and_chr 61 -and_ff 56 -and_qq 1.2 -and_uc 11.4 -android 56 -baidu 7.12 -bb 10 -chrome 62 -edge 16 -firefox 56 -ios_saf 11 -opera 48 -safari 11 -samsung 5 -``` - -### Notes - -Browserslist works with separated versions of browsers. -You should avoid queries like `Firefox > 0`. - -Multiple criteria are combined as a boolean `OR`. A browser version must match -at least one of the criteria to be selected. - -All queries are based on the [Can I Use] support table, -e.g. `last 3 iOS versions` might select `8.4, 9.2, 9.3` (mixed major and minor), -whereas `last 3 Chrome versions` might select `50, 49, 48` (major only). - -[`caniuse-lite/data/regions`]: https://github.com/ben-eb/caniuse-lite/tree/master/data/regions -[two-letter country code]: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements -[custom usage data]: #custom-usage-data -[Can I Use]: http://caniuse.com/ - -### Browsers - -Names are case insensitive: - -* `Android` for Android WebView. -* `Baidu` for Baidu Browser. -* `BlackBerry` or `bb` for Blackberry browser. -* `Chrome` for Google Chrome. -* `ChromeAndroid` or `and_chr` for Chrome for Android -* `Edge` for Microsoft Edge. -* `Electron` for Electron framework. It will be converted to Chrome version. -* `Explorer` or `ie` for Internet Explorer. -* `ExplorerMobile` or `ie_mob` for Internet Explorer Mobile. -* `Firefox` or `ff` for Mozilla Firefox. -* `FirefoxAndroid` or `and_ff` for Firefox for Android. -* `iOS` or `ios_saf` for iOS Safari. -* `Opera` for Opera. -* `OperaMini` or `op_mini` for Opera Mini. -* `OperaMobile` or `op_mob` for Opera Mobile. -* `QQAndroid` or `and_qq` for QQ Browser for Android. -* `Safari` for desktop Safari. -* `Samsung` for Samsung Internet. -* `UCAndroid` or `and_uc` for UC Browser for Android. - -## `package.json` - -If you want to reduce config files in project root, you can specify -browsers in `package.json` with `browserslist` key: - -```json -{ - "private": true, - "dependencies": { - "autoprefixer": "^6.5.4" - }, - "browserslist": [ - "> 1%", - "last 2 versions" - ] -} -``` - -## Config File - -Browserslist config should be named `.browserslistrc` or `browserslist` -and have browsers queries split by a new line. Comments starts with `#` symbol: - -```yaml -# Browsers that we support - -> 1% -Last 2 versions -IE 8 # sorry -``` - -Browserslist will check config in every directory in `path`. -So, if tool process `app/styles/main.css`, you can put config to root, -`app/` or `app/styles`. - -You can specify direct path in `BROWSERSLIST_CONFIG` environment variables. - -## Shareable Configs - -You can use the following query to reference an exported Browserslist config -from another package: - -```json - "browserslist": [ - "extends browserslist-config-mycompany" - ] -``` - -For security reasons, external configuration only supports packages that have -the `browserslist-config-` prefix. npm scoped packages are also supported, by -naming or prefixing the module with `@scope/browserslist-config`, such as -`@scope/browserslist-config` or `@scope/browserslist-config-mycompany`. - -If you don’t accept Browserslist queries from users, you can disable the -validation by using the `dangerousExtend` option: - -```js -browserslist(queries, { path, dangerousExtend: true }) -``` - -Because this uses `npm`'s resolution, you can also reference specific files -in a package: - -```json - "browserslist": [ - "extends browserslist-config-mycompany/desktop", - "extends browserslist-config-mycompany/mobile" - ] -``` - -When writing a shared Browserslist package, just export an array. -`browserslist-config-mycompany/index.js`: - -```js -module.exports = [ - 'last 2 versions', - 'ie 9' -] -``` - -## Environment Variables - -If some tool use Browserslist inside, you can change browsers settings -by [environment variables]: - -* `BROWSERSLIST` with browsers queries. - - ```sh - BROWSERSLIST="> 5%" gulp css - ``` - -* `BROWSERSLIST_CONFIG` with path to config file. - - ```sh - BROWSERSLIST_CONFIG=./config/browserslist gulp css - ``` - -* `BROWSERSLIST_ENV` with environments string. - - ```sh - BROWSERSLIST_ENV="development" gulp css - ``` - -* `BROWSERSLIST_STATS` with path to the custom usage data - for `> 1% in my stats` query. - - ```sh - BROWSERSLIST_STATS=./config/usage_data.json gulp css - ``` - -* `BROWSERSLIST_DISABLE_CACHE` if you want to disable config reading cache. - - ```sh - BROWSERSLIST_DISABLE_CACHE=1 gulp css - ``` - -[environment variables]: https://en.wikipedia.org/wiki/Environment_variable - -## Environments - -You can also specify different browser queries for various environments. -Browserslist will choose query according to `BROWSERSLIST_ENV` or `NODE_ENV` -variables. If none of them is declared, Browserslist will firstly look -for `development` queries and then use defaults. - -In `package.json`: - -```js - "browserslist": { - "production": [ - "last 2 version", - "ie 9" - ], - "development": [ - "last 1 version" - ] - } -``` - -In `.browserslistrc` config: - -```ini -[production] -last 2 version -ie 9 - -[development] -last 1 version -``` - -## Custom Usage Data - -If you have a website, you can query against the usage statistics of your site: - -1. Import your Google Analytics data into [Can I Use]. - Press `Import…` button in Settings page. -2. Open browser DevTools on [Can I Use] and paste this snippet - into the browser console: - - ```js - var e=document.createElement('a');e.setAttribute('href', 'data:text/plain;charset=utf-8,'+encodeURIComponent(JSON.stringify(JSON.parse(localStorage['usage-data-by-id'])[localStorage['config-primary_usage']])));e.setAttribute('download','stats.json');document.body.appendChild(e);e.click();document.body.removeChild(e); - ``` -3. Save the data to a `browserslist-stats.json` file in your project. - -Of course, you can generate usage statistics file by any other method. -File format should be like: - -```js -{ - "ie": { - "6": 0.01, - "7": 0.4, - "8": 1.5 - }, - "chrome": { - … - }, - … -} -``` - -Note that you can query against your custom usage data -while also querying against global or regional data. -For example, the query `> 1% in my stats, > 5% in US, 10%` is permitted. - -[Can I Use]: http://caniuse.com/ - -## Webpack - -If you plan to use Browserslist on client-side (e. g., tools like CodePen) -Browserslist could take big part of your bundle (150 KB). - -But the biggest part of this size will be region usage statistics, which could -be useless for you. `IgnorePlugin` could cut it: - -```js -const webpackConfig = { - … - plugins: [ - new webpack.IgnorePlugin(/caniuse-lite\/data\/regions/) - ] -} -``` - -This plugin will reduce Browserslist size from 150 KB to 6 KB. But you loose -`> 1% in US` queries support. - -## JS API - -```js -var browserslist = require('browserslist'); - -// Your CSS/JS build tool code -var process = function (source, opts) { - var browsers = browserslist(opts.browsers, { - stats: opts.stats, - path: opts.file, - env: opts.env - }); - // Your code to add features for selected browsers -} -``` - -Queries can be a string `"> 5%, last 1 version"` -or an array `['> 5%', 'last 1 version']`. - -If a query is missing, Browserslist will look for a config file. -You can provide a `path` option (that can be a file) to find the config file -relatively to it. - -For non-JS environment and debug purpose you can use CLI tool: - -```sh -browserslist "> 1%, last 2 versions" -``` - -## Coverage - -You can get total users coverage for selected browsers by JS API: - -```js -browserslist.coverage(browserslist('> 1%')) //=> 81.4 -``` - -```js -browserslist.coverage(browserslist('> 1% in US'), 'US') //=> 83.1 -``` - -Or by CLI: - -```sh -$ browserslist --coverage "> 1%" -These browsers account for 81.4% of all users globally -``` - -```sh -$ browserslist --coverage=US "> 1% in US" -These browsers account for 83.1% of all users in the US -``` - -## Cache - -Browserslist caches the configuration it reads from `package.json` and -`browserslist` files, as well as knowledge about the existence of files, -for the duration of the hosting process. - -To clear these caches, use: - -```js -browserslist.clearCaches(); -``` - -To disable the caching altogether, set the `BROWSERSLIST_DISABLE_CACHE` -environment variable. diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/browser.js b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/browser.js deleted file mode 100644 index fdf65d04..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/browser.js +++ /dev/null @@ -1,29 +0,0 @@ -var BrowserslistError = require('./error') - -function noop () { } - -module.exports = { - loadQueries: function loadQueries () { - throw new BrowserslistError( - 'Sharable configs are not supported in client-side build of Browserslist') - }, - - getStat: function getStat (opts) { - return opts.stats - }, - - loadConfig: function loadConfig (opts) { - if (opts.config) { - throw new BrowserslistError( - 'Browserslist config are not supported in client-side build') - } - }, - - parseConfig: noop, - - readConfig: noop, - - findConfig: noop, - - clearCaches: noop -} diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/cli.js b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/cli.js deleted file mode 100755 index 2a6bb913..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/cli.js +++ /dev/null @@ -1,103 +0,0 @@ -#!/usr/bin/env node - -var browserslist = require('./') -var pkg = require('./package.json') -var args = process.argv.slice(2) - -var USAGE = 'Usage:\n' + - ' ' + pkg.name + '\n' + - ' ' + pkg.name + ' "QUERIES"\n' + - ' ' + pkg.name + ' --config="path/to/browserlist/file"\n' + - ' ' + pkg.name + ' --coverage "QUERIES"\n' + - ' ' + pkg.name + ' --coverage=US "QUERIES"\n' + - ' ' + pkg.name + ' --env="environment name defined in config"\n' + - ' ' + pkg.name + ' --stats="path/to/browserlist/stats/file"' - -function isArg (arg) { - return args.some(function (str) { - return str === arg || str.indexOf(arg + '=') === 0 - }) -} - -function error (msg) { - process.stderr.write(pkg.name + ': ' + msg + '\n') - process.exit(1) -} - -if (isArg('--help') || isArg('-h')) { - process.stdout.write(pkg.description + '.\n\n' + USAGE + '\n') -} else if (isArg('--version') || isArg('-v')) { - process.stdout.write(pkg.name + ' ' + pkg.version + '\n') -} else { - var mode = 'browsers' - var opts = { } - var queries - var country - - for (var i = 0; i < args.length; i++) { - if (args[i][0] !== '-') { - queries = args[i].replace(/^['"]|['"]$/g, '') - continue - } - - var arg = args[i].split('=') - var name = arg[0] - var value = arg[1] - - if (value) value = value.replace(/^['"]|['"]$/g, '') - - if (name === '--config' || name === '-b') { - opts.config = value - } else if (name === '--env' || name === '-e') { - opts.env = value - } else if (name === '--stats' || name === '-s') { - opts.stats = value - } else if (name === '--coverage' || name === '-c') { - mode = 'coverage' - if (value) country = value - } else { - error('Unknown arguments ' + args[i] + '.\n\n' + USAGE) - } - } - - if (!queries && !opts.config) { - if (browserslist.findConfig(process.cwd())) { - opts.path = process.cwd() - } else { - error( - 'Browserslist config did not found. ' + - 'Define queries or config path.' + - '\n\n' + USAGE - ) - } - } - - var browsers - try { - browsers = browserslist(queries, opts) - } catch (e) { - if (e.name === 'BrowserslistError') { - error(e.message) - } else { - throw e - } - } - - if (mode === 'browsers') { - browsers.forEach(function (browser) { - process.stdout.write(browser + '\n') - }) - } else { - var result = browserslist.coverage(browsers, country) - var round = Math.round(result * 100) / 100.0 - - var end = 'globally' - if (country && country !== 'global') { - end = 'in the ' + country.toUpperCase() - } - - process.stdout.write( - 'These browsers account for ' + round + '% of all users ' + - end + '\n') - } -} diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/error.js b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/error.js deleted file mode 100644 index 793e9e83..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/error.js +++ /dev/null @@ -1,12 +0,0 @@ -function BrowserslistError (message) { - this.name = 'BrowserslistError' - this.message = message || '' - this.browserslist = true - if (Error.captureStackTrace) { - Error.captureStackTrace(this, BrowserslistError) - } -} - -BrowserslistError.prototype = Error.prototype - -module.exports = BrowserslistError diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/index.js b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/index.js deleted file mode 100644 index ecbeb474..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/index.js +++ /dev/null @@ -1,671 +0,0 @@ -var path = require('path') -var e2c = require('electron-to-chromium/versions') - -var agents = require('caniuse-lite/dist/unpacker/agents').agents -var region = require('caniuse-lite/dist/unpacker/region').default - -var BrowserslistError = require('./error') -var env = require('./node') // Will load browser.js in webpack - -var FLOAT_RANGE = /^\d+(\.\d+)?(-\d+(\.\d+)?)*$/ - -function normalize (versions) { - return versions.filter(function (version) { - return typeof version === 'string' - }) -} - -function nameMapper (name) { - return function mapName (version) { - return name + ' ' + version - } -} - -function getMajor (version) { - return parseInt(version.split('.')[0]) -} - -function getMajorVersions (released, number) { - if (released.length === 0) return [] - var minimum = getMajor(released[released.length - 1]) - parseInt(number) + 1 - var selected = [] - for (var i = released.length - 1; i >= 0; i--) { - if (minimum > getMajor(released[i])) break - selected.unshift(released[i]) - } - return selected -} - -function uniq (array) { - var filtered = [] - for (var i = 0; i < array.length; i++) { - if (filtered.indexOf(array[i]) === -1) filtered.push(array[i]) - } - return filtered -} - -// Helpers - -function fillUsage (result, name, data) { - for (var i in data) { - result[name + ' ' + i] = data[i] - } -} - -function generateFilter (sign, version) { - version = parseFloat(version) - if (sign === '>') { - return function (v) { - return parseFloat(v) > version - } - } else if (sign === '>=') { - return function (v) { - return parseFloat(v) >= version - } - } else if (sign === '<') { - return function (v) { - return parseFloat(v) < version - } - } else { - return function (v) { - return parseFloat(v) <= version - } - } -} - -function compareStrings (a, b) { - if (a < b) return -1 - if (a > b) return +1 - return 0 -} - -function normalizeVersion (data, version) { - if (data.versions.indexOf(version) !== -1) { - return version - } else if (browserslist.versionAliases[data.name][version]) { - return browserslist.versionAliases[data.name][version] - } else if (data.versions.length === 1) { - return data.versions[0] - } else { - return false - } -} - -function loadCountryStatistics (country) { - country = country.replace(/[^\w-]/g, '') - if (!browserslist.usage[country]) { - var usage = { } - // eslint-disable-next-line security/detect-non-literal-require - var compressed = require('caniuse-lite/data/regions/' + country + '.js') - var data = region(compressed) - for (var i in data) { - fillUsage(usage, i, data[i]) - } - browserslist.usage[country] = usage - } -} - -function filterByYear (since) { - return Object.keys(agents).reduce(function (selected, name) { - var data = byName(name) - if (!data) return selected - var versions = Object.keys(data.releaseDate).filter(function (v) { - return data.releaseDate[v] >= since - }) - return selected.concat(versions.map(nameMapper(data.name))) - }, []) -} - -function byName (name) { - name = name.toLowerCase() - name = browserslist.aliases[name] || name - return browserslist.data[name] -} - -function checkName (name) { - var data = byName(name) - if (!data) throw new BrowserslistError('Unknown browser ' + name) - return data -} - -function resolve (queries, context) { - return queries.reduce(function (result, selection, index) { - selection = selection.trim() - if (selection === '') return result - - var isExclude = selection.indexOf('not ') === 0 - if (isExclude) { - if (index === 0) { - throw new BrowserslistError( - 'Write any browsers query (for instance, `defaults`) ' + - 'before `' + selection + '`') - } - selection = selection.slice(4) - } - - for (var i = 0; i < QUERIES.length; i++) { - var type = QUERIES[i] - var match = selection.match(type.regexp) - if (match) { - var args = [context].concat(match.slice(1)) - var array = type.select.apply(browserslist, args) - if (isExclude) { - array = array.concat(array.map(function (j) { - return j.replace(/\s\d+/, ' 0') - })) - return result.filter(function (j) { - return array.indexOf(j) === -1 - }) - } - return result.concat(array) - } - } - - throw new BrowserslistError('Unknown browser query `' + selection + '`') - }, []) -} - -/** - * Return array of browsers by selection queries. - * - * @param {(string|string[])} [queries=browserslist.defaults] Browser queries. - * @param {object} opts Options. - * @param {string} [opts.path="."] Path to processed file. - * It will be used to find config files. - * @param {string} [opts.env="development"] Processing environment. - * It will be used to take right - * queries from config file. - * @param {string} [opts.config] Path to config file with queries. - * @param {object} [opts.stats] Custom browser usage statistics - * for "> 1% in my stats" query. - * @return {string[]} Array with browser names in Can I Use. - * - * @example - * browserslist('IE >= 10, IE 8') //=> ['ie 11', 'ie 10', 'ie 8'] - */ -function browserslist (queries, opts) { - if (typeof opts === 'undefined') opts = { } - - if (!opts.hasOwnProperty('path')) { - opts.path = path.resolve ? path.resolve('.') : '.' - } - - if (typeof queries === 'undefined' || queries === null) { - var config = env.loadConfig(opts) - if (config) { - queries = config - } else { - queries = browserslist.defaults - } - } - - if (typeof queries === 'string') { - queries = queries.split(/,\s*/) - } - - if (!Array.isArray(queries)) { - throw new BrowserslistError( - 'Browser queries must be an array. Got ' + typeof queries + '.') - } - - var context = { dangerousExtend: opts.dangerousExtend } - - var stats = env.getStat(opts) - if (stats) { - if ('dataByBrowser' in stats) { - stats = stats.dataByBrowser - } - context.customUsage = { } - for (var browser in stats) { - fillUsage(context.customUsage, browser, stats[browser]) - } - } - - var result = resolve(queries, context).map(function (i) { - var parts = i.split(' ') - var name = parts[0] - var version = parts[1] - if (version === '0') { - return name + ' ' + byName(name).versions[0] - } else { - return i - } - }).sort(function (name1, name2) { - name1 = name1.split(' ') - name2 = name2.split(' ') - if (name1[0] === name2[0]) { - if (FLOAT_RANGE.test(name1[1]) && FLOAT_RANGE.test(name2[1])) { - return parseFloat(name2[1]) - parseFloat(name1[1]) - } else { - return compareStrings(name2[1], name1[1]) - } - } else { - return compareStrings(name1[0], name2[0]) - } - }) - - return uniq(result) -} - -// Will be filled by Can I Use data below -browserslist.data = { } -browserslist.usage = { - global: { }, - custom: null -} - -// Default browsers query -browserslist.defaults = [ - '> 1%', - 'last 2 versions', - 'Firefox ESR' -] - -// Browser names aliases -browserslist.aliases = { - fx: 'firefox', - ff: 'firefox', - ios: 'ios_saf', - explorer: 'ie', - blackberry: 'bb', - explorermobile: 'ie_mob', - operamini: 'op_mini', - operamobile: 'op_mob', - chromeandroid: 'and_chr', - firefoxandroid: 'and_ff', - ucandroid: 'and_uc', - qqandroid: 'and_qq' -} - -// Aliases to work with joined versions like `ios_saf 7.0-7.1` -browserslist.versionAliases = { } - -browserslist.clearCaches = env.clearCaches -browserslist.parseConfig = env.parseConfig -browserslist.readConfig = env.readConfig -browserslist.findConfig = env.findConfig - -/** - * Return browsers market coverage. - * - * @param {string[]} browsers Browsers names in Can I Use. - * @param {string} [country="global"] Which country statistics should be used. - * - * @return {number} Total market coverage for all selected browsers. - * - * @example - * browserslist.coverage(browserslist('> 1% in US'), 'US') //=> 83.1 - */ -browserslist.coverage = function (browsers, country) { - if (country && country !== 'global') { - if (country.length > 2) { - country = country.toLowerCase() - } else { - country = country.toUpperCase() - } - loadCountryStatistics(country) - } else { - country = 'global' - } - - return browsers.reduce(function (all, i) { - var usage = browserslist.usage[country][i] - if (usage === undefined) { - usage = browserslist.usage[country][i.replace(/ [\d.]+$/, ' 0')] - } - return all + (usage || 0) - }, 0) -} - -var QUERIES = [ - { - regexp: /^last\s+(\d+)\s+major versions?$/i, - select: function (context, versions) { - return Object.keys(agents).reduce(function (selected, name) { - var data = byName(name) - if (!data) return selected - var array = getMajorVersions(data.released, versions) - - array = array.map(nameMapper(data.name)) - return selected.concat(array) - }, []) - } - }, - { - regexp: /^last\s+(\d+)\s+versions?$/i, - select: function (context, versions) { - return Object.keys(agents).reduce(function (selected, name) { - var data = byName(name) - if (!data) return selected - var array = data.released.slice(-versions) - - array = array.map(nameMapper(data.name)) - return selected.concat(array) - }, []) - } - }, - { - regexp: /^last\s+(\d+)\s+electron\s+major versions?$/i, - select: function (context, versions) { - var validVersions = getMajorVersions(Object.keys(e2c).reverse(), versions) - return validVersions.map(function (i) { - return 'chrome ' + e2c[i] - }) - } - }, - { - regexp: /^last\s+(\d+)\s+(\w+)\s+major versions?$/i, - select: function (context, versions, name) { - var data = checkName(name) - var validVersions = getMajorVersions(data.released, versions) - return validVersions.map(nameMapper(data.name)) - } - }, - { - regexp: /^last\s+(\d+)\s+electron\s+versions?$/i, - select: function (context, versions) { - return Object.keys(e2c).reverse().slice(-versions).map(function (i) { - return 'chrome ' + e2c[i] - }) - } - }, - { - regexp: /^last\s+(\d+)\s+(\w+)\s+versions?$/i, - select: function (context, versions, name) { - var data = checkName(name) - return data.released.slice(-versions).map(nameMapper(data.name)) - } - }, - { - regexp: /^unreleased\s+versions$/i, - select: function () { - return Object.keys(agents).reduce(function (selected, name) { - var data = byName(name) - if (!data) return selected - var array = data.versions.filter(function (v) { - return data.released.indexOf(v) === -1 - }) - - array = array.map(nameMapper(data.name)) - return selected.concat(array) - }, []) - } - }, - { - regexp: /^unreleased\s+electron\s+versions?$/i, - select: function () { - return [] - } - }, - { - regexp: /^unreleased\s+(\w+)\s+versions?$/i, - select: function (context, name) { - var data = checkName(name) - return data.versions.filter(function (v) { - return data.released.indexOf(v) === -1 - }).map(nameMapper(data.name)) - } - }, - { - regexp: /^last\s+(\d+)\s+years?$/i, - select: function (context, years) { - var date = new Date() - var since = date.setFullYear(date.getFullYear() - years) / 1000 - - return filterByYear(since) - } - }, - { - regexp: /^since (\d+)(?:-(\d+))?(?:-(\d+))?$/i, - select: function (context, year, month, date) { - year = parseInt(year) - month = parseInt(month || '01') - 1 - date = parseInt(date || '01') - var since = Date.UTC(year, month, date, 0, 0, 0) / 1000 - - return filterByYear(since) - } - }, - { - regexp: /^(>=?|<=?)\s*(\d*\.?\d+)%$/, - select: function (context, sign, popularity) { - popularity = parseFloat(popularity) - var usage = browserslist.usage.global - - return Object.keys(usage).reduce(function (result, version) { - if (sign === '>') { - if (usage[version] > popularity) { - result.push(version) - } - } else if (sign === '<') { - if (usage[version] < popularity) { - result.push(version) - } - } else if (sign === '<=') { - if (usage[version] <= popularity) { - result.push(version) - } - } else if (usage[version] >= popularity) { - result.push(version) - } - return result - }, []) - } - }, - { - regexp: /^(>=?|<=?)\s*(\d*\.?\d+)%\s+in\s+my\s+stats$/, - select: function (context, sign, popularity) { - popularity = parseFloat(popularity) - - if (!context.customUsage) { - throw new BrowserslistError('Custom usage statistics was not provided') - } - - var usage = context.customUsage - - return Object.keys(usage).reduce(function (result, version) { - if (sign === '>') { - if (usage[version] > popularity) { - result.push(version) - } - } else if (sign === '<') { - if (usage[version] < popularity) { - result.push(version) - } - } else if (sign === '<=') { - if (usage[version] <= popularity) { - result.push(version) - } - } else if (usage[version] >= popularity) { - result.push(version) - } - return result - }, []) - } - }, - { - regexp: /^(>=?|<=?)\s*(\d*\.?\d+)%\s+in\s+((alt-)?\w\w)$/, - select: function (context, sign, popularity, place) { - popularity = parseFloat(popularity) - - if (place.length === 2) { - place = place.toUpperCase() - } else { - place = place.toLowerCase() - } - - loadCountryStatistics(place) - var usage = browserslist.usage[place] - - return Object.keys(usage).reduce(function (result, version) { - if (sign === '>') { - if (usage[version] > popularity) { - result.push(version) - } - } else if (sign === '<') { - if (usage[version] < popularity) { - result.push(version) - } - } else if (sign === '<=') { - if (usage[version] <= popularity) { - result.push(version) - } - } else if (usage[version] >= popularity) { - result.push(version) - } - return result - }, []) - } - }, - { - regexp: /^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i, - select: function (context, from, to) { - if (!e2c[from]) { - throw new BrowserslistError('Unknown version ' + from + ' of electron') - } - if (!e2c[to]) { - throw new BrowserslistError('Unknown version ' + to + ' of electron') - } - - from = parseFloat(from) - to = parseFloat(to) - - return Object.keys(e2c).filter(function (i) { - var parsed = parseFloat(i) - return parsed >= from && parsed <= to - }).map(function (i) { - return 'chrome ' + e2c[i] - }) - } - }, - { - regexp: /^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i, - select: function (context, name, from, to) { - var data = checkName(name) - from = parseFloat(normalizeVersion(data, from) || from) - to = parseFloat(normalizeVersion(data, to) || to) - - function filter (v) { - var parsed = parseFloat(v) - return parsed >= from && parsed <= to - } - - return data.released.filter(filter).map(nameMapper(data.name)) - } - }, - { - regexp: /^electron\s*(>=?|<=?)\s*([\d.]+)$/i, - select: function (context, sign, version) { - return Object.keys(e2c) - .filter(generateFilter(sign, version)) - .map(function (i) { - return 'chrome ' + e2c[i] - }) - } - }, - { - regexp: /^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/, - select: function (context, name, sign, version) { - var data = checkName(name) - var alias = browserslist.versionAliases[data.name][version] - if (alias) { - version = alias - } - return data.released - .filter(generateFilter(sign, version)) - .map(function (v) { - return data.name + ' ' + v - }) - } - }, - { - regexp: /^(firefox|ff|fx)\s+esr$/i, - select: function () { - return ['firefox 52'] - } - }, - { - regexp: /(operamini|op_mini)\s+all/i, - select: function () { - return ['op_mini all'] - } - }, - { - regexp: /^electron\s+([\d.]+)$/i, - select: function (context, version) { - var chrome = e2c[version] - if (!chrome) { - throw new BrowserslistError( - 'Unknown version ' + version + ' of electron') - } - return ['chrome ' + chrome] - } - }, - { - regexp: /^(\w+)\s+(tp|[\d.]+)$/i, - select: function (context, name, version) { - if (/^tp$/i.test(version)) version = 'TP' - var data = checkName(name) - var alias = normalizeVersion(data, version) - if (alias) { - version = alias - } else { - if (version.indexOf('.') === -1) { - alias = version + '.0' - } else if (/\.0$/.test(version)) { - alias = version.replace(/\.0$/, '') - } - alias = normalizeVersion(data, alias) - if (alias) { - version = alias - } else { - throw new BrowserslistError( - 'Unknown version ' + version + ' of ' + name) - } - } - return [data.name + ' ' + version] - } - }, - { - regexp: /^extends (.+)$/i, - select: function (context, name) { - return resolve(env.loadQueries(context, name), context) - } - }, - { - regexp: /^defaults$/i, - select: function () { - return browserslist(browserslist.defaults) - } - } -]; - -// Get and convert Can I Use data - -(function () { - for (var name in agents) { - var browser = agents[name] - browserslist.data[name] = { - name: name, - versions: normalize(agents[name].versions), - released: normalize(agents[name].versions.slice(0, -3)), - releaseDate: agents[name].release_date - } - fillUsage(browserslist.usage.global, name, browser.usage_global) - - browserslist.versionAliases[name] = { } - for (var i = 0; i < browser.versions.length; i++) { - var full = browser.versions[i] - if (!full) continue - - if (full.indexOf('-') !== -1) { - var interval = full.split('-') - for (var j = 0; j < interval.length; j++) { - browserslist.versionAliases[name][interval[j]] = full - } - } - } - } -}()) - -module.exports = browserslist diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/node.js b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/node.js deleted file mode 100644 index ce67e3ee..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/node.js +++ /dev/null @@ -1,215 +0,0 @@ -var path = require('path') -var fs = require('fs') - -var BrowserslistError = require('./error') - -var IS_SECTION = /^\s*\[(.+)\]\s*$/ -var CONFIG_PATTERN = /^browserslist-config-/ -var SCOPED_CONFIG__PATTERN = /@[^./]+\/browserslist-config(-|$)/ - -var filenessCache = { } -var configCache = { } - -function checkExtend (name) { - var use = ' Use `dangerousExtend` option to disable.' - if (!CONFIG_PATTERN.test(name) && !SCOPED_CONFIG__PATTERN.test(name)) { - throw new BrowserslistError( - 'Browserslist config needs `browserslist-config-` prefix. ' + use) - } - if (name.indexOf('.') !== -1) { - throw new BrowserslistError( - '`.` not allowed in Browserslist config name. ' + use) - } - if (name.indexOf('node_modules') !== -1) { - throw new BrowserslistError( - '`node_modules` not allowed in Browserslist config.' + use) - } -} - -function isFile (file) { - if (file in filenessCache) { - return filenessCache[file] - } - var result = fs.existsSync(file) && fs.statSync(file).isFile() - if (!process.env.BROWSERSLIST_DISABLE_CACHE) { - filenessCache[file] = result - } - return result -} - -function eachParent (file, callback) { - var loc = path.resolve(file) - do { - var result = callback(loc) - if (typeof result !== 'undefined') return result - } while (loc !== (loc = path.dirname(loc))) - return undefined -} - -function pickEnv (config, opts) { - if (typeof config !== 'object') return config - - var name - if (typeof opts.env === 'string') { - name = opts.env - } else if (process.env.BROWSERSLIST_ENV) { - name = process.env.BROWSERSLIST_ENV - } else if (process.env.NODE_ENV) { - name = process.env.NODE_ENV - } else { - name = 'development' - } - - return config[name] || config.defaults -} - -function parsePackage (file) { - var config = JSON.parse(fs.readFileSync(file)) - if (config.browserlist && !config.browserslist) { - throw new BrowserslistError( - '`browserlist` key instead of `browserslist` in ' + file) - } - var list = config.browserslist - if (typeof list === 'object' && list.length) { - list = { defaults: list } - } - return list -} - -module.exports = { - loadQueries: function loadQueries (context, name) { - if (!context.dangerousExtend) checkExtend(name) - // eslint-disable-next-line security/detect-non-literal-require - var queries = require(name) - if (!Array.isArray(queries)) { - throw new BrowserslistError( - '`' + name + '` config exports not an array of queries') - } - return queries - }, - - getStat: function getStat (opts) { - var stats - if (opts.stats) { - stats = opts.stats - } else if (process.env.BROWSERSLIST_STATS) { - stats = process.env.BROWSERSLIST_STATS - } else if (opts.path && path.resolve && fs.existsSync) { - stats = eachParent(opts.path, function (dir) { - var file = path.join(dir, 'browserslist-stats.json') - return isFile(file) ? file : undefined - }) - } - - if (typeof stats === 'string') { - try { - stats = JSON.parse(fs.readFileSync(stats)) - } catch (e) { - throw new BrowserslistError('Can\'t read ' + stats) - } - } - - return stats - }, - - loadConfig: function loadConfig (opts) { - if (process.env.BROWSERSLIST) { - return process.env.BROWSERSLIST - } else if (opts.config || process.env.BROWSERSLIST_CONFIG) { - var file = opts.config || process.env.BROWSERSLIST_CONFIG - if (path.basename(file) === 'package.json') { - return pickEnv(parsePackage(file), opts) - } else { - return pickEnv(module.exports.readConfig(file), opts) - } - } else if (opts.path) { - return pickEnv(module.exports.findConfig(opts.path), opts) - } else { - return undefined - } - }, - - parseConfig: function parseConfig (string) { - var result = { defaults: [] } - var section = 'defaults' - - string.toString() - .replace(/#[^\n]*/g, '') - .split(/\n/) - .map(function (line) { - return line.trim() - }) - .filter(function (line) { - return line !== '' - }) - .forEach(function (line) { - if (IS_SECTION.test(line)) { - section = line.match(IS_SECTION)[1].trim() - result[section] = result[section] || [] - } else { - result[section].push(line) - } - }) - - return result - }, - - readConfig: function readConfig (file) { - if (!isFile(file)) { - throw new BrowserslistError('Can\'t read ' + file + ' config') - } - return module.exports.parseConfig(fs.readFileSync(file)) - }, - - findConfig: function findConfig (from) { - from = path.resolve(from) - - var cacheKey = isFile(from) ? path.dirname(from) : from - if (cacheKey in configCache) { - return configCache[cacheKey] - } - - var resolved = eachParent(from, function (dir) { - var config = path.join(dir, 'browserslist') - var pkg = path.join(dir, 'package.json') - var rc = path.join(dir, '.browserslistrc') - - var pkgBrowserslist - if (isFile(pkg)) { - try { - pkgBrowserslist = parsePackage(pkg) - } catch (e) { - if (e.name === 'BrowserslistError') throw e - console.warn( - '[Browserslist] Could not parse ' + pkg + '. Ignoring it.') - } - } - - if (isFile(config) && pkgBrowserslist) { - throw new BrowserslistError( - dir + ' contains both browserslist and package.json with browsers') - } else if (isFile(rc) && pkgBrowserslist) { - throw new BrowserslistError( - dir + ' contains both .browserslistrc and package.json with browsers') - } else if (isFile(config) && isFile(rc)) { - throw new BrowserslistError( - dir + ' contains both .browserslistrc and browserslist') - } else if (isFile(config)) { - return module.exports.readConfig(config) - } else if (isFile(rc)) { - return module.exports.readConfig(rc) - } else { - return pkgBrowserslist - } - }) - if (!process.env.BROWSERSLIST_DISABLE_CACHE) { - configCache[cacheKey] = resolved - } - return resolved - }, - - clearCaches: function clearCaches () { - filenessCache = { } - configCache = { } - } -} diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/package.json b/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/package.json deleted file mode 100644 index b8e8572b..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/browserslist/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "name": "browserslist", - "version": "2.11.3", - "description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset", - "keywords": [ - "caniuse", - "browsers", - "target" - ], - "author": "Andrey Sitnik ", - "license": "MIT", - "repository": "ai/browserslist", - "dependencies": { - "caniuse-lite": "^1.0.30000792", - "electron-to-chromium": "^1.3.30" - }, - "bin": "./cli.js", - "devDependencies": { - "cross-spawn": "^5.1.0", - "eslint": "^4.15.0", - "eslint-ci": "^0.1.1", - "eslint-config-logux": "^17.0.0", - "eslint-config-standard": "^10.2.1", - "eslint-plugin-es5": "^1.2.0", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jest": "^21.6.2", - "eslint-plugin-node": "^5.2.1", - "eslint-plugin-promise": "^3.6.0", - "eslint-plugin-security": "^1.4.0", - "eslint-plugin-standard": "^3.0.1", - "jest": "^22.0.6", - "lint-staged": "^6.0.0", - "pre-commit": "^1.1.3", - "size-limit": "^0.14.0", - "yaspeller-ci": "^1.0.0" - }, - "eslintConfig": { - "extends": "eslint-config-logux/browser", - "rules": { - "security/detect-unsafe-regex": "off", - "global-require": "off" - }, - "overrides": { - "files": [ - "*.test.js" - ], - "rules": { - "es5/no-arrow-functions": "off" - } - } - }, - "jest": { - "testEnvironment": "node", - "coverageThreshold": { - "global": { - "statements": 100 - } - }, - "modulePathIgnorePatterns": [ - "/test/fixtures" - ] - }, - "size-limit": [ - { - "path": "index.js", - "limit": "160 KB" - } - ], - "scripts": { - "lint-staged": "lint-staged", - "spellcheck": "yaspeller-ci README.md CHANGELOG.md", - "lint": "eslint-ci *.js test/*.js __mocks__/*.js", - "test": "jest --coverage && yarn lint && yarn spellcheck && size-limit" - }, - "lint-staged": { - "*.md": "yaspeller-ci", - "*.js": "eslint" - }, - "browser": { - "./node.js": "./browser.js", - "path": false - }, - "pre-commit": [ - "lint-staged" - ] -} diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/CHANGELOG.md b/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/CHANGELOG.md deleted file mode 100755 index fff0c07c..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/CHANGELOG.md +++ /dev/null @@ -1,87 +0,0 @@ -# 1.3.0 - 2016-08-26 - -- Added: calc identifier from unresolved nested expressions are removed for - better browser support - ([#19](https://github.com/MoOx/reduce-css-calc/pull/19) - @ben-eb) - -# 1.2.8 - 2016-08-26 - -- Fixed: regression from 1.2.5 on calc() with value without leading 0 - ([#17](https://github.com/MoOx/reduce-css-calc/pull/17) - @ben-eb) - -# 1.2.7 - 2016-08-22 - -- Fixed: regression from 1.2.5 on calc() with value without leading 0 - (@MoOx) - -# 1.2.6 - 2016-08-22 - -- Fixed: regression from 1.2.5 on calc() on multiple lines - (@MoOx) - -# 1.2.5 - 2016-08-22 - -- Fixed: security issue due to the usage of ``eval()``. - This is to avoid an arbitrary code execution. - Now operations are resolved using - [``math-expression-evaluator``](https://github.com/redhivesoftware/math-expression-evaluator) - -# 1.2.4 - 2016-06-09 - -- Fixed: zero values are not unitless anymore. - Browsers do not calculate calc() with 0 unitless values. - http://jsbin.com/punivivipo/edit?html,css,output - ([#11](https://github.com/MoOx/reduce-css-calc/pull/11))
 - -# 1.2.3 - 2016-04-28 - -- Fixed: wrong rouding in some edge cases - ([#10](https://github.com/MoOx/reduce-css-calc/pull/10)) - -# 1.2.2 - 2016-04-19 - -- Fixed: Don't reduce expression containing CSS variables. - ([#9](https://github.com/MoOx/reduce-css-calc/pull/9)) - -# 1.2.1 - 2016-02-22 - -- Fixed: uppercase letters in units are now supported - ([#8](https://github.com/MoOx/reduce-css-calc/pull/8)) - -# 1.2.0 - 2014-11-24 - -- Decimal precision is now customisable as the `precision` option - -# 1.1.4 - 2014-11-12 - -- 5 decimals rounding for everything - -# 1.1.3 - 2014-08-13 - -- 5 decimals rounding for percentage - -# 1.1.2 - 2014-08-10 - -- Prevent infinite loop by adding a `Call stack overflow` -- Correctly ignore unrecognized values (safer evaluation for nested expressions, - see [postcss/postcss-calc#2](https://github.com/postcss/postcss-calc/issues/2)) -- Handle rounding issues (eg: 10% * 20% now give 2%, not 2.0000000000000004%) - -# 1.1.1 - 2014-08-06 - -- Fix issue when using mutiples differents prefixes in the same function - -# 1.1.0 - 2014-08-06 - -- support more complex formulas -- use `reduce-function-call` -- better error message - - -# 1.0.0 - 2014-08-04 - -First release - -- based on [rework-calc](https://github.com/reworkcss/rework-calc) v1.1.0 -- add error if the calc() embed an empty calc() or empty () -- jscs + jshint added before tests diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/LICENSE b/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/LICENSE deleted file mode 100755 index 7cc9dd08..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Maxime Thirouin & Joakim Bengtson - -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/laggard/node_modules/pixrem/node_modules/reduce-css-calc/README.md b/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/README.md deleted file mode 100755 index 0ba73d30..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/README.md +++ /dev/null @@ -1,72 +0,0 @@ -# reduce-css-calc [![Build Status](https://travis-ci.org/MoOx/reduce-css-calc.png)](https://travis-ci.org/MoOx/reduce-css-calc) - -> Reduce CSS calc() function to the maximum. - -Particularly useful for packages like [rework-calc](https://github.com/reworkcss/rework-calc) or [postcss-calc](https://github.com/postcss/postcss-calc). - -## Installation - -```console -$ npm install reduce-css-calc -``` - -## Usage - -### `var reducedString = reduceCSSCalc(string, precision)` - -```javascript -var reduceCSSCalc = require('reduce-css-calc') - -reduceCSSCalc("calc(1 + 1)") -// 2 - -reduceCSSCalc("calc((6 / 2) - (4 * 2) + 1)") -// -4 - -reduceCSSCalc("calc(1/3)") -// 0.33333 - -reduceCSSCalc("calc(1/3)", 10) -// 0.3333333333 - -reduceCSSCalc("calc(3rem * 2 - 1rem)") -// 5rem - -reduceCSSCalc("calc(2 * 50%)") -// 100% - -reduceCSSCalc("calc(120% * 50%)") -// 60% - -reduceCSSCalc("a calc(1 + 1) b calc(1 - 1) c") -// a 2 b 0 c - -reduceCSSCalc("calc(calc(calc(1rem * 0.75) * 1.5) - 1rem)") -// 0.125rem - -reduceCSSCalc("calc(calc(calc(1rem * 0.75) * 1.5) - 1px)") -// calc(1.125rem - 1px) - -reduceCSSCalc("-moz-calc(100px / 2)") -// 50px - -reduceCSSCalc("-moz-calc(50% - 2em)") -// -moz-calc(50% - 2em) -``` - -See [unit tests](test/index.js) for others examples. - -## Contributing - -Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature. - -```console -$ git clone https://github.com/MoOx/reduce-css-calc.git -$ git checkout -b patch-1 -$ npm install -$ npm test -``` - -## [Changelog](CHANGELOG.md) - -## [License](LICENSE-MIT) diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/index.js b/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/index.js deleted file mode 100755 index 3ec72471..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/index.js +++ /dev/null @@ -1,164 +0,0 @@ -/** - * Module dependencies - */ -var balanced = require("balanced-match") -var reduceFunctionCall = require("reduce-function-call") -var mexp = require("math-expression-evaluator") - -/** - * Constantes - */ -var MAX_STACK = 100 // should be enough for a single calc()... -var NESTED_CALC_RE = /(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g - -/** - * Global variables - */ -var stack - -/** - * Expose reduceCSSCalc plugin - * - * @type {Function} - */ -module.exports = reduceCSSCalc - -/** - * Reduce CSS calc() in a string, whenever it's possible - * - * @param {String} value css input - */ -function reduceCSSCalc(value, decimalPrecision) { - stack = 0 - decimalPrecision = Math.pow(10, decimalPrecision === undefined ? 5 : decimalPrecision) - - // Allow calc() on multiple lines - value = value.replace(/\n+/g, " ") - - /** - * Evaluates an expression - * - * @param {String} expression - * @returns {String} - */ - function evaluateExpression (expression, functionIdentifier, call) { - if (stack++ > MAX_STACK) { - stack = 0 - throw new Error("Call stack overflow for " + call) - } - - if (expression === "") { - throw new Error(functionIdentifier + "(): '" + call + "' must contain a non-whitespace string") - } - - expression = evaluateNestedExpression(expression, call) - - var units = getUnitsInExpression(expression) - - // If the expression contains multiple units or CSS variables, - // then let the expression be (i.e. browser calc()) - if (units.length > 1 || expression.indexOf("var(") > -1) { - return functionIdentifier + "(" + expression + ")" - } - - var unit = units[0] || "" - - if (unit === "%") { - // Convert percentages to numbers, to handle expressions like: 50% * 50% (will become: 25%): - // console.log(expression) - expression = expression.replace(/\b[0-9\.]+%/g, function(percent) { - return parseFloat(percent.slice(0, -1)) * 0.01 - }) - } - - // Remove units in expression: - var toEvaluate = expression.replace(new RegExp(unit, "gi"), "") - var result - - try { - result = mexp.eval(toEvaluate) - } - catch (e) { - return functionIdentifier + "(" + expression + ")" - } - - // Transform back to a percentage result: - if (unit === "%") { - result *= 100 - } - - // adjust rounding shit - // (0.1 * 0.2 === 0.020000000000000004) - if (functionIdentifier.length || unit === "%") { - result = Math.round(result * decimalPrecision) / decimalPrecision - } - - // Add unit - result += unit - - return result - } - - /** - * Evaluates nested expressions - * - * @param {String} expression - * @returns {String} - */ - function evaluateNestedExpression(expression, call) { - // Remove the calc part from nested expressions to ensure - // better browser compatibility - expression = expression.replace(/((?:\-[a-z]+\-)?calc)/g, "") - var evaluatedPart = "" - var nonEvaluatedPart = expression - var matches - while ((matches = NESTED_CALC_RE.exec(nonEvaluatedPart))) { - if (matches[0].index > 0) { - evaluatedPart += nonEvaluatedPart.substring(0, matches[0].index) - } - - var balancedExpr = balanced("(", ")", nonEvaluatedPart.substring([0].index)) - if (balancedExpr.body === "") { - throw new Error("'" + expression + "' must contain a non-whitespace string") - } - - var evaluated = evaluateExpression(balancedExpr.body, "", call) - - evaluatedPart += balancedExpr.pre + evaluated - nonEvaluatedPart = balancedExpr.post - } - - return evaluatedPart + nonEvaluatedPart - } - - return reduceFunctionCall(value, /((?:\-[a-z]+\-)?calc)\(/, evaluateExpression) -} - -/** - * Checks what units are used in an expression - * - * @param {String} expression - * @returns {Array} - */ - -function getUnitsInExpression(expression) { - var uniqueUnits = [] - var uniqueLowerCaseUnits = [] - var unitRegEx = /[\.0-9]([%a-z]+)/gi - var matches = unitRegEx.exec(expression) - - while (matches) { - if (!matches || !matches[1]) { - continue - } - - if (uniqueLowerCaseUnits.indexOf(matches[1].toLowerCase()) === -1) { - uniqueUnits.push(matches[1]) - uniqueLowerCaseUnits.push(matches[1].toLowerCase()) - } - - matches = unitRegEx.exec(expression) - } - - return uniqueUnits -} diff --git a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/package.json b/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/package.json deleted file mode 100644 index 6baa0601..00000000 --- a/node_modules/laggard/node_modules/pixrem/node_modules/reduce-css-calc/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "reduce-css-calc", - "version": "1.3.0", - "description": "Reduce CSS calc() function to the maximum", - "keywords": [ - "css", - "calculation", - "calc" - ], - "author": "Maxime Thirouin", - "license": "MIT", - "repository": "https://github.com/MoOx/reduce-css-calc.git", - "files": [ - "index.js" - ], - "dependencies": { - "balanced-match": "^0.4.2", - "math-expression-evaluator": "^1.2.14", - "reduce-function-call": "^1.0.1" - }, - "devDependencies": { - "jscs": "^1.5.9", - "jshint": "^2.5.2", - "npmpub": "^3.0.3", - "tape": "^2.13.4" - }, - "scripts": { - "jscs": "jscs *.js **/*.js", - "jshint": "jshint . --exclude node_modules", - "test": "npm run jscs && npm run jshint && tape test", - "release": "npmpub" - } -} diff --git a/node_modules/laggard/node_modules/pixrem/package.json b/node_modules/laggard/node_modules/pixrem/package.json deleted file mode 100644 index 407dd0e4..00000000 --- a/node_modules/laggard/node_modules/pixrem/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "pixrem", - "description": "A CSS post-processor that generates pixel fallbacks for rem units.", - "version": "4.0.1", - "homepage": "https://github.com/robwierzbowski/node-pixrem", - "author": "Rob Wierzbowski (http://robwierzbowski.com)", - "repository": { - "type": "git", - "url": "git://github.com/robwierzbowski/node-pixrem.git" - }, - "bugs": "https://github.com/robwierzbowski/node-pixrem/issues", - "licenses": [ - { - "type": "BSD-new" - } - ], - "main": "lib/pixrem.js", - "engines": { - "node": ">=0.10.0", - "npm": ">=1.2.10" - }, - "scripts": { - "test": "mocha" - }, - "dependencies": { - "browserslist": "^2.0.0", - "postcss": "^6.0.0", - "reduce-css-calc": "^1.2.7" - }, - "devDependencies": { - "mocha": "^2.3.2" - }, - "keywords": [ - "css", - "postcss", - "postcss-plugin", - "rem", - "parser", - "postproccessor", - "responsive" - ] -} diff --git a/node_modules/laggard/node_modules/pixrem/test/test.js b/node_modules/laggard/node_modules/pixrem/test/test.js deleted file mode 100644 index 99687692..00000000 --- a/node_modules/laggard/node_modules/pixrem/test/test.js +++ /dev/null @@ -1,285 +0,0 @@ -'use strict'; - -var fs = require('fs'); -var assert = require("assert"); -var pixrem = require('../lib/pixrem'); -var postcss = require('postcss'); - -var css = '.rule { font-size: 2rem }'; - -describe('pixrem', function () { - - it('should generate fallbacks using default settings', function () { - var expected = '.rule { font-size: 32px; font-size: 2rem }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should default to 16 when undefined', function () { - var expected = '.rule { font-size: 32px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: undefined})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should generate fallbacks with a pixel root em value', function () { - var expected = '.rule { font-size: 40px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '20px'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should generate fallbacks with a em root em value', function () { - var expected = '.rule { font-size: 48px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '1.5em'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should generate fallbacks with a rem root em value', function () { - var expected = '.rule { font-size: 56px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '1.75rem'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should generate fallbacks with a percent root em value', function () { - var expected = '.rule { font-size: 48px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '150%'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should generate fallbacks with a unitless root em value', function () { - var expected = '.rule { font-size: 36px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '18'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should generate fallbacks with a vw root em value', function () { - var expected = '.rule { font-size: 32px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '.625vw'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should warn when using browser-dependent unit', function (done) { - var expected = '.rule { font-size: 32px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '1vw'})]).process(css).then(function (result) { - var warnings = result.warnings(); - assert.deepEqual(warnings, [{type: 'warning', text: 'Unit cannot be used for conversion, so 16px is used.', plugin: 'pixrem'}]); - done(); - }).catch(done); - }); - - it('should generate fallbacks with a value starting with dot', function () { - var expected = '.rule { font-size: 16px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '.5em'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should replace rules with fallbacks when option.replace is true', function () { - var expected = '.rule { font-size: 40px }'; - var processed = postcss([pixrem({rootValue: '20px', replace: true})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should round values based on default precision', function () { - var expected = '.rule { font-size: 36.032px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '1.126em'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should return integer when precision is 0', function () { - var expected = '.rule { font-size: 36px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '1.126em', unitPrecision: 0})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should return integer rounded down', function () { - var expected = '.rule { font-size: 36px; font-size: 2rem }'; - var processed = postcss([pixrem({rootValue: '1.156em', unitPrecision: 0})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should handle < 1 values and values without a leading 0', function () { - var css = '.rule { margin: 0.5rem .5rem 0rem -2rem }'; - var expected = '.rule { margin: 8px 8px 0px -32px; margin: 0.5rem .5rem 0rem -2rem }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should generate default fallback with an inline sourcemap', function () { - var expected = '.rule { font-size: 32px; font-size: 2rem }\n/*# sourceMappingURL=whatever.css.map *\/'; - var processed = postcss([pixrem]).process(css, { - map: { 'inline': false }, - to: 'whatever.css' - }); - assert.equal(processed, expected); - }); - - it('should not convert rem in at-rules', function () { - var css = '@media screen { .rule { font-size: 2rem } } @keyframes name { from { font-size: 2rem } }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, css); - }); - - it('should convert rem in at-rules if options is true', function () { - var css = '@media screen { .rule { font-size: 2rem } }'; - var expected = '@media screen { .rule { font-size: 32px; font-size: 2rem } }'; - var processed = postcss([pixrem({atrules: true})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should convert rem in at-rules for IE9 hacks', function () { - var css = '@media screen { .rule { font-size: 2rem } .rule::after { font-size: 2rem } }'; - var expected = '@media screen { .rule { font-size: 2rem } .rule::after { font-size: 32px; font-size: 2rem } }'; - var processed = postcss([pixrem({browsers: 'ie 9'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should not convert rem in nested at-rules', function () { - var css = '@media screen { .rule { font-size: 2rem } @media screen { .rule { font-size: 2rem } @media screen { .rule { font-size: 2rem } } } }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, css); - }); - - it('should not convert rem in unsupported feature (value)', function () { - var css = '.rule { width: calc(100% - 2rem); background: linear-gradient(red 2rem, blue) }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, css); - }); - - it('should not convert rem in unsupported feature (property)', function () { - var css = '.rule { transform: translate(2rem) }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, css); - }); - - it('should not convert rem in unsupported feature (with prefixes)', function () { - var css = '.rule { width: -webkit-calc(100% - 2rem); width: calc(100% - 2rem); -ms-transform: translate(2rem) }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, css); - }); - - it('should use default root font-size as defined in CSS', function () { - var css = 'html { font-size: 62.5% } .rule { font-size: 2rem; }'; - var expected = 'html { font-size: 62.5% } .rule { font-size: 20px; font-size: 2rem; }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should use default root font-size from font declaration', function () { - var css = '.rule { font-size: 2rem; } :root { font: italic 100 20px/24px sans-serif }'; - var expected = '.rule { font-size: 40px; font-size: 2rem; } :root { font: italic 100 20px/24px sans-serif }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should detect root font-size only if targeted', function () { - var css = ':root a { font-size: 10px } .rule { font-size: 2rem; }'; - var expected = ':root a { font-size: 10px } .rule { font-size: 32px; font-size: 2rem; }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should use root font-size defined with calc', function () { - var css = 'html { font-size: calc(.625em * 1) } .rule { font-size: 2rem; }'; - var expected = 'html { font-size: calc(.625em * 1) } .rule { font-size: 20px; font-size: 2rem; }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should not use root font-size in MQ', function () { - var css = 'html { font-size: 10px } @media screen { html { font-size: 20px } } .rule { font-size: 2rem; }'; - var expected = 'html { font-size: 10px } @media screen { html { font-size: 20px } } .rule { font-size: 20px; font-size: 2rem; }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should run through font shorthand without root size', function () { - var css = 'html { font: inherit } .rule { font-size: 2rem; }'; - var expected = 'html { font: inherit } .rule { font-size: 32px; font-size: 2rem; }'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should not use root font-size when option is set', function () { - var css = 'html { font-size: 10px } .rule { font-size: 2rem; }'; - var expected = 'html { font-size: 10px } .rule { font-size: 32px; font-size: 2rem; }'; - var processed = postcss([pixrem({html: false})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should throw error when root font-size is invalid', function (done) { - var css = 'html { font-size: calc(1em + 2px) } .rule { font-size: 2rem; }'; - postcss([pixrem]).process(css).then(function () { - done('should not run'); - }).catch(function (err) { - assert.equal(err.name, 'CssSyntaxError'); - assert.equal(err.reason, 'Root font-size is invalid'); - done(); - }).catch(done); - }); - - it('should reduce line-breaks when inserting new node', function () { - var css = '.rule{\n\tcolor:red;\n\n\tfont-size:2rem;\n}'; - var expected = '.rule{\n\tcolor:red;\n\n\tfont-size:32px;\n\tfont-size:2rem;\n}'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should reduce and keep windows line-breaks', function () { - var css = '.rule{\r\n\tcolor:red;\r\n\r\n\tfont-size:2rem;\r\n}'; - var expected = '.rule{\r\n\tcolor:red;\r\n\r\n\tfont-size:32px;\r\n\tfont-size:2rem;\r\n}'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should reduce and keep linux line-breaks', function () { - var css = '.rule{\r\tcolor:red;\r\r\tfont-size:2rem;\r}'; - var expected = '.rule{\r\tcolor:red;\r\r\tfont-size:32px;\r\tfont-size:2rem;\r}'; - var processed = postcss([pixrem]).process(css).css; - assert.equal(processed, expected); - }); - - it('should not reduce line-breaks when replacing node', function () { - var css = '.rule{\n\tcolor:red;\n\n\tfont-size:2rem;\n}'; - var expected = '.rule{\n\tcolor:red;\n\n\tfont-size:32px;\n}'; - var processed = postcss([pixrem({replace: true})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should not add fallback when IE8- are not in scope', function () { - var css = '.rule{width: 2rem}'; - var expected = '.rule{width: 2rem}'; - var processed = postcss([pixrem({browsers: 'firefox 28'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should add fallback when only IE8 is in scope', function () { - var css = '.rule{width: 2rem}'; - var expected = '.rule{width: 32px;width: 2rem}'; - var processed = postcss([pixrem({browsers: 'ie 8'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should add fallback when IE8 is in scope', function () { - var css = '.rule{width: 2rem}'; - var expected = '.rule{width: 32px;width: 2rem}'; - var processed1 = postcss([pixrem({browsers: 'ie 8'})]).process(css).css; - var processed2 = postcss([pixrem({browsers: 'ie >= 8'})]).process(css).css; - var processed3 = postcss([pixrem({browsers: 'ie <= 8'})]).process(css).css; - assert.equal(processed1, processed2); - assert.equal(processed2, processed3); - }); - - it('should add fallback when only IE6 is in scope', function () { - var css = '.rule{width: 2rem}'; - var expected = '.rule{width: 32px;width: 2rem}'; - var processed = postcss([pixrem({browsers: 'ie 6'})]).process(css).css; - assert.equal(processed, expected); - }); - - it('should add fallback only for font and pseudo-element when IE9 is in scope', function () { - var css = '.rule{width: 2rem;font: bold 2rem sans-serif}.rule::after{width: 2rem}'; - var expected = '.rule{width: 2rem;font: bold 32px sans-serif;font: bold 2rem sans-serif}.rule::after{width: 32px;width: 2rem}'; - var processed = postcss([pixrem({browsers: 'ie 9'})]).process(css).css; - assert.equal(processed, expected); - }); - -}); diff --git a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/CHANGELOG.md b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/CHANGELOG.md deleted file mode 100644 index 60a29038..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/CHANGELOG.md +++ /dev/null @@ -1,45 +0,0 @@ -# 3.0.0 - 2017-07-08 - -- Updated postcss v6.x -- Updated dependencies -- droped old nodejs version - -# 2.2.0 - 2015-12-30 - -- added: support for backgroundColor for alpha matte calculation - -# 2.1.0 - 2015-12-29 - -- added: fallback option for ie8 - -# 2.0.0 - 2015-09-06 - -- Removed: compatibility with postcss v4.x -- Added: compatibility with postcss v5.x - -# 1.3.1 - 2015-07-21 - -- Added: minor code changes by switching from jshint to eslint -([#4](https://github.com/postcss/postcss-color-rgba-fallback/issues/4) - -# 1.3.0 - 2015-06-24 - -- Added: fallback are added only for a `properties` whitelist -- Added: fallback are skipped when there is already one -([#11](https://github.com/postcss/postcss-color-rgba-fallback/issues/11) - -# 1.2.0 - 2015-05-23 - -- Added: use PostCSS 4.1 API - -# 1.1.1 - 2015-04-24 - -- Fixed: detect if there is already a fallback. - -# 1.1.0 - 2015-04-20 - -- Added: detect if there is already a fallback. - -# 1.0.0 - 2015-04-15 - -Initial release diff --git a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/LICENSE b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/LICENSE deleted file mode 100755 index 28c7244c..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Guillaume Démésy - -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/laggard/node_modules/postcss-color-rgba-fallback/README.md b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/README.md deleted file mode 100644 index 89e5c9ea..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# postcss-color-rgba-fallback [![Travis Build Status](https://travis-ci.org/postcss/postcss-color-rgba-fallback.svg)](https://travis-ci.org/postcss/postcss-color-rgba-fallback) - -> [PostCSS](https://github.com/postcss/postcss) plugin to transform rgba() to hexadecimal. - -## Installation - -```bash -$ npm install postcss-color-rgba-fallback -``` - -## Usage - -```js -// dependencies -var fs = require("fs") -var postcss = require("postcss") -var colorRgbaFallback = require("postcss-color-rgba-fallback") - -// css to be processed -var css = fs.readFileSync("input.css", "utf8") - -// process css -var output = postcss() - .use(colorRgbaFallback()) - .process(css) - .css -``` - -Using this `input.css`: - -```css -body { - background: rgba(153, 221, 153, 0.8); - border: solid 1px rgba(100,102,103,.3); -} - -``` - -you will get: - -```css -body { - background: #99DD99; - background: rgba(153, 221, 153, 0.8); - border: solid 1px #646667; - border: solid 1px rgba(100,102,103,.3); -} -``` - -## Node.js options - -postcss-color-rgba-fallback accepts options - -### `properties` - -default: ` -[ "background-color", - "background", - "color", - "border", - "border-color", - "outline", - "outline-color ] -` - -Allows you to specify your whitelist of properties. -**This option enables adding a fallback for one or a properties list** - -### `oldie` - -default: `false` - -Set to true to enable the option and to get fallback for ie8 - -### `backgroundColor` - -default: `null` - -Allows you to specify a background color to use as a base alpha matte. - -Instead of cutting off the alpha channel it will blend the foreground and background. - -Expects an array of rgb values: - -```js - "backgroundColor": [255, 1, 1] -``` - -Checkout [tests](test) for more examples. - ---- - -## Contributing - -Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature. - - $ git clone https://github.com/postcss/postcss-color-rgba-fallback.git - $ git checkout -b patch-1 - $ npm install - $ npm test - -## [Changelog](CHANGELOG.md) - -## [License](LICENSE) diff --git a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/index.js b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/index.js deleted file mode 100644 index 6fd67efa..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/index.js +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Module dependencies. - */ -var postcss = require("postcss") -var valueParser = require("postcss-value-parser") -var rgbToHex = require("rgb-hex") - -/** - * Calculate the color of a chanel - * based upon two 0-255 colors and a 0-1 alpha value - */ -function calcChannel(backgroundColor, foregroundColor, alpha) { - var value = backgroundColor + (foregroundColor - backgroundColor) * alpha - return Math.round(value) -} - -/** - * Given a solid rgb background and a rgba foreground color - * it calculates the color of the values combined into a single rgb array - * If there is no background color - * strips off the alpha value from the foreground - */ -function calculateRGB(backgroundColor, foregroundColor) { - if (backgroundColor) { - return [ - calcChannel(backgroundColor[0], foregroundColor[0], foregroundColor[3]), - calcChannel(backgroundColor[1], foregroundColor[1], foregroundColor[3]), - calcChannel(backgroundColor[2], foregroundColor[2], foregroundColor[3]), - ] - } - else { - return [ - foregroundColor[0], - foregroundColor[1], - foregroundColor[2], - ] - } -} - -/** - * PostCSS plugin to transform rgba() to hexadecimal - */ -module.exports = postcss.plugin("postcss-color-rgba-fallback", -function(options) { - options = options || {} - - var properties = options.properties || [ - "background-color", - "background", - "color", - "border", - "border-color", - "outline", - "outline-color", - ] - - var backgroundColor = options.backgroundColor || null - - var oldie = options.oldie - if (oldie === true) { - oldie = [ - "background-color", - "background", - ] - } - else if (!Array.isArray(oldie)) { - oldie = false - } - - return function(style) { - style.walkDecls(function(decl) { - if (!decl.value || - decl.value.indexOf("rgba") === -1 || - properties.indexOf(decl.prop) === -1 - ) { - return - } - - // if previous prop equals current prop - // no need fallback - if ( - decl.prev() && - decl.prev().prop === decl.prop - ) { - return - } - - var hex - var alpha - var RGB - var value = valueParser(decl.value).walk(function(node) { - var nodes = node.nodes - if (node.type === "function" && node.value === "rgba") { - try { - alpha = parseFloat(nodes[6].value) - RGB = calculateRGB(backgroundColor, [ - parseInt(nodes[0].value, 10), - parseInt(nodes[2].value, 10), - parseInt(nodes[4].value, 10), - alpha, - ]) - hex = rgbToHex.apply(null, RGB) - node.type = "word" - node.value = "#" + hex - } - catch (e) { - return false - } - return false - } - }).toString() - - if (value !== decl.value) { - decl.cloneBefore({value: value}) - - if ( - oldie && oldie.indexOf(decl.prop) !== -1 && - 0 < alpha && alpha < 1 - ) { - hex = "#" + Math.round(alpha * 255).toString(16) + hex - var ieFilter = [ - "progid:DXImageTransform.Microsoft.gradient(startColorStr=", - hex, - ",endColorStr=", - hex, - ")", - ].join("") - var gteIE8 = postcss.decl({ - prop: "-ms-filter", value: "\"" + ieFilter + "\"", - }) - var ltIE8 = postcss.decl({ - prop: "filter", value: ieFilter, - }) - - decl.parent.insertBefore(decl, gteIE8) - decl.parent.insertBefore(decl, ltIE8) - } - } - }) - } -}) diff --git a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/LICENSE b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/LICENSE deleted file mode 100644 index 6dcaefcb..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/README.md b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/README.md deleted file mode 100644 index 0f3be478..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/index.js b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/index.js deleted file mode 100644 index f9ac0e68..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/parse.js b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/parse.js deleted file mode 100644 index 50d1fe9c..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/stringify.js b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/stringify.js deleted file mode 100644 index 5f2c845a..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/unit.js b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/unit.js deleted file mode 100644 index 06a1f667..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/walk.js b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/lib/walk.js deleted file mode 100644 index 7666c5b1..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/package.json b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/postcss-value-parser/package.json deleted file mode 100644 index 14ae1dc7..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/index.js b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/index.js deleted file mode 100644 index 82c8a374..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/index.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict'; -/* eslint-disable no-mixed-operators */ -module.exports = (red, green, blue, alpha) => { - const isPercent = (red + (alpha || '')).toString().includes('%'); - - if (typeof red === 'string') { - const res = red.match(/(0?\.?\d{1,3})%?\b/g).map(Number); - // TODO: use destructuring when targeting Node.js 6 - red = res[0]; - green = res[1]; - blue = res[2]; - alpha = res[3]; - } else if (alpha !== undefined) { - alpha = parseFloat(alpha); - } - - if (typeof red !== 'number' || - typeof green !== 'number' || - typeof blue !== 'number' || - red > 255 || - green > 255 || - blue > 255) { - throw new TypeError('Expected three numbers below 256'); - } - - if (typeof alpha === 'number') { - if (!isPercent && alpha >= 0 && alpha <= 1) { - alpha = Math.round(255 * alpha); - } else if (isPercent && alpha >= 0 && alpha <= 100) { - alpha = Math.round(255 * alpha / 100); - } else { - throw new TypeError(`Expected alpha value (${alpha}) as a fraction or percentage`); - } - alpha = (alpha | 1 << 8).toString(16).slice(1); - } else { - alpha = ''; - } - - return ((blue | green << 8 | red << 16) | 1 << 24).toString(16).slice(1) + alpha; -}; diff --git a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/license b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/license deleted file mode 100644 index 654d0bfe..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/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/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/package.json b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/package.json deleted file mode 100644 index 8f3ece0d..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "rgb-hex", - "version": "2.1.0", - "description": "Convert RGB(A) color to HEX", - "license": "MIT", - "repository": "sindresorhus/rgb-hex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "rgb", - "hex", - "color", - "colour", - "convert", - "conversion", - "converter" - ], - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "xo": { - "esnext": true - } -} diff --git a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/readme.md b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/readme.md deleted file mode 100644 index 0fd7da00..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/node_modules/rgb-hex/readme.md +++ /dev/null @@ -1,43 +0,0 @@ -# rgb-hex [![Build Status](https://travis-ci.org/sindresorhus/rgb-hex.svg?branch=master)](https://travis-ci.org/sindresorhus/rgb-hex) - -> Convert RGB(A) color to HEX - - -## Install - -``` -$ npm install --save rgb-hex -``` - - -## Usage - -```js -const rgbHex = require('rgb-hex'); - -rgbHex(65, 131, 196); -//=> '4183c4' - -rgbHex('rgb(40, 42, 54)'); -//=> '282a36' - -rgbHex(65, 131, 196, 0.2); -//=> '4183c433' - -rgbHex(40, 42, 54, '75%'); -//=> '282a36c0' - -rgbHex('rgba(40, 42, 54, 75%)'); -//=> '282a36c0' -``` - - -## Related - -- [rgb-hex-cli](https://github.com/sindresorhus/rgb-hex-cli) - CLI for this module -- [hex-rgb](https://github.com/sindresorhus/hex-rgb) - Convert HEX color to RGB - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/package.json b/node_modules/laggard/node_modules/postcss-color-rgba-fallback/package.json deleted file mode 100644 index 6b6b117e..00000000 --- a/node_modules/laggard/node_modules/postcss-color-rgba-fallback/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "postcss-color-rgba-fallback", - "version": "3.0.0", - "description": "PostCSS plugin to transform rgba() to hexadecimal", - "keywords": [ - "css", - "postcss", - "postcss-plugin", - "rgba", - "hexadecimal" - ], - "author": "Guillaume Démésy", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/postcss/postcss-color-rgba-fallback.git" - }, - "files": [ - "CHANGELOG.md", - "LICENSE", - "index.js" - ], - "dependencies": { - "postcss": "^6.0.6", - "postcss-value-parser": "^3.3.0", - "rgb-hex": "^2.1.0" - }, - "devDependencies": { - "css-whitespace": "^1.1.0", - "eslint": "^1.10.3", - "tap-spec": "^4.1.1", - "tape": "^4.7.0" - }, - "scripts": { - "lint": "eslint . --ignore-path .gitignore", - "test": "npm run lint && tape test/*.js | tap-spec" - } -} diff --git a/node_modules/laggard/node_modules/postcss-reporter/CHANGELOG.md b/node_modules/laggard/node_modules/postcss-reporter/CHANGELOG.md deleted file mode 100644 index 97e25532..00000000 --- a/node_modules/laggard/node_modules/postcss-reporter/CHANGELOG.md +++ /dev/null @@ -1,65 +0,0 @@ -# Changelog - -## 5.0.0 - -- Move PostCSS from `peerDependencies` to `dependencies`. -- Drop support for Node 0.12. - -## 4.0.0 - -- Upgrade to PostCSS v6. (If you still use PostCSS v5, stick with v3 until you can upgrade your PostCSS.) -- Switched PostCSS to a peer dependency. - -## 3.0.0 - -- Replace `clearMessages` option with `clearReportedMessages` and `clearAllMessages`. - -## 2.0.0 - -- Only log warning messages (`type: "warning"`) by default. - -## 1.4.1 -- Add `filter` option. -- Add blacklist functionality to `plugins` option with `!` prefix`. - -## 1.3.3 -- Fix regression that caused positions from sources without incoming sourcemaps not to be logged. - -## 1.3.2 -- Find more accurate positions of preprocessed files with sourcemaps. - -## 1.3.1 -- Fix Windows path bug. - -## 1.3.0 -- Check individual messages for distinct sources, then group messages by those sources, - instead of always using the PostCSS Result's source. -- Output empty string from `formatter` if there are no messages, instead of `undefined`. - -## 1.2.1 -- Handle variable and absent input sources. - -## 1.2.0 -- Add `noIcon` and `noPlugin` options to both reporter and formatter. - -## 1.1.0 -- Use PostCSS 5's line/column properties on warnings, instead of relying on the source node. - -## 1.0.0 -- Upgrade to PostCSS 5. - -## 0.4.0 -- Add `positionless` option (to both the reporter and the formatter), with default value `"first"`. -- Cleaner npm install (files specified in `package.json`). - -## 0.3.1 -- Remove leftover debugging log statement. - -## 0.3.0 -- Add `sortByPosition` option (to both the reporter and the formatter), with default value `true`. - -## 0.2.0 -- Alter `defaultFormatter` to use warning symbol and not repeat `# postcss-reporter`. - -## 0.1.0 -- First release. diff --git a/node_modules/laggard/node_modules/postcss-reporter/LICENSE b/node_modules/laggard/node_modules/postcss-reporter/LICENSE deleted file mode 100644 index 6d347c06..00000000 --- a/node_modules/laggard/node_modules/postcss-reporter/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 David Clark - -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/laggard/node_modules/postcss-reporter/README.md b/node_modules/laggard/node_modules/postcss-reporter/README.md deleted file mode 100644 index 6842f131..00000000 --- a/node_modules/laggard/node_modules/postcss-reporter/README.md +++ /dev/null @@ -1,143 +0,0 @@ -# postcss-reporter -[![Build Status](https://travis-ci.org/postcss/postcss-reporter.svg?branch=master)](https://travis-ci.org/postcss/postcss-reporter) -[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/davidtheclark/postcss-reporter/master.svg?label=windows%20build)](https://ci.appveyor.com/project/davidtheclark/postcss-reporter) - -A PostCSS plugin to `console.log()` the messages (warnings, etc.) registered by other PostCSS plugins. - -## Purpose - -As of PostCSS 4.1, a single PostCSS process can accumulate messages from all of the plugins it uses. -Most of these messages are [warnings](https://github.com/postcss/postcss/blob/master/docs/guidelines/plugin.md#32-use-resultwarn-for-warnings). -Presumably, plugin authors want you to see those messages. -So this plugin exists to read the accumulated messages (or messages from only the plugins you've specified), format them, and print them to the console. - -By default, the messages are formatted for human legibility and sorted according to the line/column positions attached to the messages. But another formatting function can be passed in with an option, and sorting can be turned of with an option. - -*By default, only warnings are logged*. If you would like to see more messages, you can change the `filter` function. - -## Example Output - -![Example](example.png?raw=true) - -## Installation - -``` -npm install postcss-reporter -``` - -Version 1.0.0+ is compatible with PostCSS 5+. (Earlier versions are compatible with PostCSS 4.) - -## Usage - -Add it to your plugin list *after any plugins whose messages you want to log*, and optionally pass it an object of options. - -For example, using [gulp-postcss](https://github.com/postcss/gulp-postcss): - -```js -gulp.task('css', function() { - return gulp.src('./src/*.css') - .pipe(postcss([ - bemLinter(), - customProperties(), - calc(), - rejectAllColors(), - reporter(myOptions) // <------ ding - ])) - .pipe(gulp.dest('./dist')); -}); -``` - -## Options - -**clearReportedMessages** (boolean, default = `false`) - -If true, the plugin will clear the result's messages after it logs them. This prevents other plugins, or the whatever runner you use, from logging the same information again and causing confusion. - -**formatter** (function, default = the default formatter) - -By default, this reporter will format the messages for human legibility in the console. -To use another formatter, pass a function that - - - accepts an object containing a `messages` array and a `source` string - - returns the string to report - -For example, you could write a formatter like this: - -```js -reporter({ - formatter: function(input) { - return input.source + ' produced ' + input.messages.length + ' messages'; - } -}) -``` - -**plugins** (array of strings, default = `[]`) - -If `plugins` is empty (as it is by default), the reporter will log messages from every PostCSS plugin. - -There are 2 ways to limit output: - -- **Whitelist:** Provide an array of the plugins whose messages you would like to show. - For example, `{ plugins: ['postcss-bem-linter'] }` will only log messages from the `postcss-bem-linter` plugin. -- **Blacklist:** Prefix all plugins in the array with `!` to specify only those plugins whose messages you would like to hide. - (All other plugins will be shown.) - For example, `{ plugins: ['!postcss-bem-linter'] }` will never log messages from the `postcss-bem-linter` plugin; but will log messages from every other plugin. - -**filter** (function) - -Provide a filter function. It receives the message object and returns a truthy or falsy value, indicating whether that particular message should be reported or not. - -By default, only messages with `type: "warning"` warnings are logged. (These are the messages produced when the plugin author uses PostCSS's `warn()` function.) - -For example, `function(message) { return true }` will only every message, regardless of the plugin or whether it's a warning or not. - -**clearAllMessages** (boolean, default = `false`) - -If `true`, not pass any messages into other plugins, or the whatever runner you use, for logging. - -**throwError** (boolean, default = `false`) - -If `true`, after the plugin logs your messages it will throw an error if it found any warnings. - -**sortByPosition** (boolean, default = `true`) - -If `false`, messages will not be sorted by line/column position. - -**positionless** (`"first"|"last"|"any"`, default = `"first"`) - -By default, messages without line/column positions will be grouped at the beginning of the output. -To put them at the end, instead, use `"last"`. -To not bother sorting these, use `"any"`. - -**noIcon** (boolean, default = `false`) - -If `true`, no exclamatory triangle icons will be printed next to warnings. - -**noPlugin** (boolean, default = `false`) - -If `true`, plugin names will not be printed in brackets after messages. - -## How to get output without colors - -If you would like no colors in the console output, simply pass `--no-colors` when you invoke whatever command runs this plugin. (This works because of [chalk](https://github.com/sindresorhus/chalk).) - -## Standalone formatter - -You can also use this module's formatter as a library, with following API: - -```js -var formatter = require('postcss-reporter/lib/formatter'); -var myFormatter = formatter(myOptions); -// to use defaults, just pass no options: `formatter()` -var warningLog = myFormatter({ - messages: someMessages, - source: someSource -}); -console.log(warningLog); -``` - -These are the formatter's options: - -- sortByPosition (boolean, default = `true`) -- noIcon (boolean, default = `false`) - Do not print any warning exclamatory triangle icons -- noPlugin (boolean, default = `false`) - Do not print plugin names diff --git a/node_modules/laggard/node_modules/postcss-reporter/index.js b/node_modules/laggard/node_modules/postcss-reporter/index.js deleted file mode 100644 index 2a4e4136..00000000 --- a/node_modules/laggard/node_modules/postcss-reporter/index.js +++ /dev/null @@ -1,4 +0,0 @@ -var postcss = require('postcss'); -var reporter = require('./lib/reporter'); - -module.exports = postcss.plugin('postcss-reporter', reporter); diff --git a/node_modules/laggard/node_modules/postcss-reporter/lib/formatter.js b/node_modules/laggard/node_modules/postcss-reporter/lib/formatter.js deleted file mode 100644 index b5719b8f..00000000 --- a/node_modules/laggard/node_modules/postcss-reporter/lib/formatter.js +++ /dev/null @@ -1,80 +0,0 @@ -var chalk = require('chalk'); -var path = require('path'); -var symbols = require('log-symbols'); -var _ = require('lodash'); -var util = require('./util'); - -module.exports = function(opts) { - var options = opts || {}; - var sortByPosition = (typeof options.sortByPosition !== 'undefined') ? options.sortByPosition : true; - var positionless = options.positionless || 'first'; - - return function(input) { - var messages = input.messages; - var source = input.source; - - if (!messages.length) return ''; - - var orderedMessages = _.sortBy( - messages, - function(m) { - if (!m.line) return 1; - if (positionless === 'any') return 1; - if (positionless === 'first') return 2; - if (positionless === 'last') return 0; - }, - function(m) { - if (!sortByPosition) return 1; - return m.line; - }, - function(m) { - if (!sortByPosition) return 1; - return m.column; - } - ); - - var output = '\n'; - - if (source) { - output += chalk.bold.underline(logFrom(source)) + '\n'; - } - - orderedMessages.forEach(function(w) { - output += messageToString(w) + '\n'; - }); - - return output; - - function messageToString(message) { - var location = util.getLocation(message); - var str = ''; - - if (location.line) { - str += chalk.bold(location.line); - } - - if (location.column) { - str += chalk.bold(':' + location.column) - } - - if (location.line || location.column) { - str += '\t'; - } - - if (!options.noIcon && message.type === 'warning') { - str += chalk.yellow(symbols.warning + ' '); - } - - str += message.text; - if (!options.noPlugin) { - str += chalk.yellow(' [' + message.plugin + ']'); - } - return str; - } - - function logFrom(fromValue) { - if (fromValue.charAt(0) === '<') return fromValue; - return path.relative(process.cwd(), fromValue).split(path.sep).join('/'); - } - }; -}; diff --git a/node_modules/laggard/node_modules/postcss-reporter/lib/reporter.js b/node_modules/laggard/node_modules/postcss-reporter/lib/reporter.js deleted file mode 100644 index 70781fba..00000000 --- a/node_modules/laggard/node_modules/postcss-reporter/lib/reporter.js +++ /dev/null @@ -1,81 +0,0 @@ -var chalk = require('chalk'); -var _ = require('lodash'); -var defaultFormatter = require('./formatter'); -var util = require('./util'); - -module.exports = function(opts) { - var options = opts || {}; - - var formatter = options.formatter || defaultFormatter({ - sortByPosition: (typeof options.sortByPosition !== 'undefined') ? options.sortByPosition : true, - positionless: options.positionless || 'first', - noIcon: options.noIcon, - noPlugin: options.noPlugin, - }); - - var pluginFilter; - if (!options.plugins) { - // Every plugin - pluginFilter = function() { return true; }; - } else if (options.plugins.every(function(plugin) { return plugin[0] === '!'; })) { - // Blacklist - pluginFilter = function(message) { - return options.plugins.indexOf('!' + message.plugin) === -1; - }; - } else { - // Whitelist - pluginFilter = function(message) { - return options.plugins.indexOf(message.plugin) !== -1; - }; - } - - var messageFilter = options.filter || function(message) { return (message.type === 'warning'); }; - - return function(css, result) { - var messagesToLog = result.messages - .filter(pluginFilter) - .filter(messageFilter); - - var resultSource = (!result.root.source) ? '' - : result.root.source.input.file || result.root.source.input.id - - var sourceGroupedMessages = _.groupBy(messagesToLog, function(message) { - return util.getLocation(message).file || resultSource; - }); - - var report = ''; - _.forOwn(sourceGroupedMessages, function(messages, source) { - report += formatter({ - messages: messages, - source: source, - }); - }); - - if (options.clearReportedMessages) { - result.messages = _.difference(result.messages, messagesToLog); - } - - if (options.clearAllMessages) { - var messagesToClear = result.messages.filter(pluginFilter); - result.messages = _.difference(result.messages, messagesToClear); - } - - - if (!report) return; - - console.log(report); - - if (options.throwError && shouldThrowError()) { - throw new Error(chalk.red.bold('\n** postcss-reporter: warnings or errors were found **')); - } - - function shouldThrowError() { - return ( - messagesToLog.length - && messagesToLog.some(function(message) { - return message.type === 'warning' || message.type === 'error'; - }) - ); - } - }; -}; diff --git a/node_modules/laggard/node_modules/postcss-reporter/lib/util.js b/node_modules/laggard/node_modules/postcss-reporter/lib/util.js deleted file mode 100644 index 76c649bc..00000000 --- a/node_modules/laggard/node_modules/postcss-reporter/lib/util.js +++ /dev/null @@ -1,20 +0,0 @@ -var _ = require('lodash'); - -exports.getLocation = function(message) { - var messageNode = message.node; - - var location = { - line: message.line, - column: message.column, - }; - - var messageInput = _.get(messageNode, 'source.input'); - - if (!messageInput) return location; - - var originLocation = messageInput.origin && messageInput.origin(message.line, message.column) - if (originLocation) return originLocation - - location.file = messageInput.file || messageInput.id; - return location; -}; diff --git a/node_modules/laggard/node_modules/postcss-reporter/package.json b/node_modules/laggard/node_modules/postcss-reporter/package.json deleted file mode 100644 index 7233b6f0..00000000 --- a/node_modules/laggard/node_modules/postcss-reporter/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "postcss-reporter", - "version": "5.0.0", - "description": "Log PostCSS messages in the console", - "main": "index.js", - "scripts": { - "lint": "eslint .", - "test": "npm run lint && tape test", - "visual": "node test/visual.js" - }, - "files": [ - "index.js", - "lib" - ], - "repository": { - "type": "git", - "url": "https://github.com/postcss/postcss-reporter.git" - }, - "author": { - "name": "David Clark", - "email": "david.dave.clark@gmail.com", - "url": "http://davidtheclark.com" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/postcss/postcss-reporter/issues" - }, - "homepage": "https://github.com/postcss/postcss-reporter", - "devDependencies": { - "eslint": "1.3.1", - "less": "2.7.1", - "source-map": "0.5.6", - "strip-color": "^0.1.0", - "stylelint": "6.8.0", - "tape": "^4.7.0" - }, - "dependencies": { - "chalk": "^2.0.1", - "lodash": "^4.17.4", - "log-symbols": "^2.0.0", - "postcss": "^6.0.8" - }, - "engines": { - "node": ">=4" - } -} diff --git a/node_modules/laggard/node_modules/postcss-will-change/CHANGELOG.md b/node_modules/laggard/node_modules/postcss-will-change/CHANGELOG.md deleted file mode 100644 index 7e2b98b1..00000000 --- a/node_modules/laggard/node_modules/postcss-will-change/CHANGELOG.md +++ /dev/null @@ -1,17 +0,0 @@ -# Change Log -This project adheres to [Semantic Versioning](http://semver.org/). - -## 2.0 -* Use PostCSS 6. - -## 1.1 -* Do not add `backface-visibility` if rule already has it (by Joe Lencioni). - -## 1.0 -* Use PostCSS 5.0 API. - -## 0.2 -* Support PostCSS 4.1 API. - -## 0.1 -* Initial release. diff --git a/node_modules/laggard/node_modules/postcss-will-change/LICENSE b/node_modules/laggard/node_modules/postcss-will-change/LICENSE deleted file mode 100644 index d3bd6721..00000000 --- a/node_modules/laggard/node_modules/postcss-will-change/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/laggard/node_modules/postcss-will-change/README.md b/node_modules/laggard/node_modules/postcss-will-change/README.md deleted file mode 100644 index c56164d4..00000000 --- a/node_modules/laggard/node_modules/postcss-will-change/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# PostCSS Will Change [![Build Status][ci-img]][ci] - - - -[PostCSS] plugin to insert 3D hack before [will-change] property. - -This plugin uses `backface-visibility` to force the browser to create -a new layer, without overriding existing `backface-visibility` properties. -This 3D CSS hack is commonly done with `transform: translateZ(0)`, -but `backface-visibility` is used here to avoid overriding -the more popular `transform` property. - -These hacks are required for browsers that do not support `will-change`. - -Use this plugin only before [Autoprefixer]. It will add vendor prefixes -to `backface-visibility`. - -[Autoprefixer]: https://github.com/postcss/autoprefixer -[will-change]: https://dev.opera.com/articles/css-will-change-property/ -[PostCSS]: https://github.com/postcss/postcss -[ci-img]: https://travis-ci.org/postcss/postcss-will-change.svg -[ci]: https://travis-ci.org/postcss/postcss-will-change - -```css -.foo { - will-change: transform; -} -``` - -```css -.foo { - backface-visibility: hidden; - will-change: transform; -} -``` - -## Usage - -```js -postcss([ require('postcss-will-change') ]) -``` - -See [PostCSS] docs for examples for your environment. diff --git a/node_modules/laggard/node_modules/postcss-will-change/index.js b/node_modules/laggard/node_modules/postcss-will-change/index.js deleted file mode 100644 index cfd27fb4..00000000 --- a/node_modules/laggard/node_modules/postcss-will-change/index.js +++ /dev/null @@ -1,13 +0,0 @@ -var postcss = require('postcss'); - -module.exports = postcss.plugin('postcss-will-change', function () { - return function (css) { - css.walkDecls('will-change', function (decl) { - var already = decl.parent.some(function (i) { - return i.type === 'decl' && i.prop === 'backface-visibility'; - }); - if ( already ) return; - decl.cloneBefore({ prop: 'backface-visibility', value: 'hidden' }); - }); - }; -}); diff --git a/node_modules/laggard/node_modules/postcss-will-change/package.json b/node_modules/laggard/node_modules/postcss-will-change/package.json deleted file mode 100644 index f543cc37..00000000 --- a/node_modules/laggard/node_modules/postcss-will-change/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "postcss-will-change", - "version": "2.0.0", - "description": "PostCSS plugin to insert 3D hack before will-change property", - "keywords": [ - "postcss", - "css", - "postcss-plugin", - "will-change", - "fallback" - ], - "author": "Andrey Sitnik ", - "license": "MIT", - "repository": "postcss/postcss-will-change.git", - "dependencies": { - "postcss": "^6.0.1" - }, - "devDependencies": { - "eslint": "^3.19.0", - "eslint-config-postcss": "^2.0.2", - "jest": "^20.0.0", - "lint-staged": "^3.4.1", - "pre-commit": "^1.2.2" - }, - "scripts": { - "lint-staged": "lint-staged", - "test": "jest && eslint *.js" - }, - "jest": { - "coverageThreshold": { - "global": { - "statements": 100 - } - } - }, - "eslintConfig": { - "extends": "eslint-config-postcss/es5", - "env": { - "jest": true - } - }, - "lint-staged": { - "*.js": "eslint" - }, - "pre-commit": [ - "lint-staged" - ] -} diff --git a/node_modules/laggard/node_modules/postcss/CHANGELOG.md b/node_modules/laggard/node_modules/postcss/CHANGELOG.md deleted file mode 100644 index e2cd381e..00000000 --- a/node_modules/laggard/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/laggard/node_modules/postcss/CONTRIBUTING.md b/node_modules/laggard/node_modules/postcss/CONTRIBUTING.md deleted file mode 100644 index 227caa27..00000000 --- a/node_modules/laggard/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/laggard/node_modules/postcss/LICENSE b/node_modules/laggard/node_modules/postcss/LICENSE deleted file mode 100644 index da057b45..00000000 --- a/node_modules/laggard/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/laggard/node_modules/postcss/README-cn.md b/node_modules/laggard/node_modules/postcss/README-cn.md deleted file mode 100644 index 4846ed96..00000000 --- a/node_modules/laggard/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 文件里`