Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

Location:
trip-planner-front/node_modules/postcss-colormin
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/postcss-colormin/dist/minifyColor.js

    r59329aa re29cc2e  
    66exports.default = minifyColor;
    77
    8 var _color = require("./lib/color");
     8var _colord = require("colord");
    99
    10 var _getShortestString = _interopRequireDefault(require("./lib/getShortestString"));
     10var _names = _interopRequireDefault(require("colord/plugins/names"));
     11
     12var _minify = _interopRequireDefault(require("colord/plugins/minify"));
    1113
    1214function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
    1315
     16(0, _colord.extend)([_names.default, _minify.default]);
    1417/**
    1518 * Performs color value minification
     
    1922 * @param {boolean} options.supportsTransparent – Does the browser support "transparent" value properly
    2023 */
     24
    2125function minifyColor(input, options = {}) {
    2226  const settings = {
     
    2529    ...options
    2630  };
    27   const instance = (0, _color.process)(input);
     31  const instance = (0, _colord.colord)(input);
    2832
    2933  if (instance.isValid()) {
    30     // Try to shorten the string if it is a valid CSS color value.
    31     // Fall back to the original input if it's smaller or has equal length/
    32     return (0, _getShortestString.default)([input.toLowerCase(), instance.toShortString(settings)]);
     34    // Try to shorten the string if it is a valid CSS color value
     35    const minified = instance.minify({
     36      alphaHex: settings.supportsAlphaHex,
     37      transparent: settings.supportsTransparent,
     38      name: true
     39    }); // Fall back to the original input if it's smaller or has equal length
     40
     41    return minified.length < input.length ? minified : input.toLowerCase();
    3342  } else {
    3443    // Possibly malformed, so pass through
  • trip-planner-front/node_modules/postcss-colormin/package.json

    r59329aa re29cc2e  
    11{
    2   "_args": [
    3     [
    4       "postcss-colormin@5.2.0",
    5       "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
    6     ]
    7   ],
    8   "_development": true,
    9   "_from": "postcss-colormin@5.2.0",
    10   "_id": "postcss-colormin@5.2.0",
     2  "_from": "postcss-colormin@^5.2.1",
     3  "_id": "postcss-colormin@5.2.1",
    114  "_inBundle": false,
    12   "_integrity": "sha512-+HC6GfWU3upe5/mqmxuqYZ9B2Wl4lcoUUNkoaX59nEWV4EtADCMiBqui111Bu8R8IvaZTmqmxrqOAqjbHIwXPw==",
     5  "_integrity": "sha512-VVwMrEYLcHYePUYV99Ymuoi7WhKrMGy/V9/kTS0DkCoJYmmjdOMneyhzYUxcNgteKDVbrewOkSM7Wje/MFwxzA==",
    136  "_location": "/postcss-colormin",
    147  "_phantomChildren": {},
    158  "_requested": {
    16     "type": "version",
     9    "type": "range",
    1710    "registry": true,
    18     "raw": "postcss-colormin@5.2.0",
     11    "raw": "postcss-colormin@^5.2.1",
    1912    "name": "postcss-colormin",
    2013    "escapedName": "postcss-colormin",
    21     "rawSpec": "5.2.0",
     14    "rawSpec": "^5.2.1",
    2215    "saveSpec": null,
    23     "fetchSpec": "5.2.0"
     16    "fetchSpec": "^5.2.1"
    2417  },
    2518  "_requiredBy": [
    2619    "/cssnano-preset-default"
    2720  ],
    28   "_resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.0.tgz",
    29   "_spec": "5.2.0",
    30   "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
     21  "_resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.1.tgz",
     22  "_shasum": "6e444a806fd3c578827dbad022762df19334414d",
     23  "_spec": "postcss-colormin@^5.2.1",
     24  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\cssnano-preset-default",
    3125  "author": {
    3226    "name": "Ben Briggs",
     
    3731    "url": "https://github.com/cssnano/cssnano/issues"
    3832  },
     33  "bundleDependencies": false,
    3934  "dependencies": {
    4035    "browserslist": "^4.16.6",
    4136    "caniuse-api": "^3.0.0",
    42     "colord": "^2.0.1",
     37    "colord": "^2.9.1",
    4338    "postcss-value-parser": "^4.1.0"
    4439  },
     40  "deprecated": false,
    4541  "description": "Minify colors in your CSS files with PostCSS.",
    4642  "devDependencies": {
     
    5450    "LICENSE-MIT"
    5551  ],
    56   "gitHead": "9b3c54fd94f3e2bdb503d1e21f171d7fe02f33ca",
     52  "gitHead": "2d84646671c7075f8dae35de310351aac3436bc0",
    5753  "homepage": "https://github.com/cssnano/cssnano",
    5854  "keywords": [
     
    7773  "scripts": {
    7874    "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
    79     "prebuild": "del-cli dist",
    80     "prepublish": "yarn build"
     75    "prebuild": "rimraf dist",
     76    "prepare": "yarn build"
    8177  },
    82   "version": "5.2.0"
     78  "version": "5.2.1"
    8379}
Note: See TracChangeset for help on using the changeset viewer.