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-convert-values
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/postcss-convert-values/dist/index.js

    r59329aa re29cc2e  
    1616function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
    1717
    18 const LENGTH_UNITS = ['em', 'ex', 'ch', 'rem', 'vw', 'vh', 'vmin', 'vmax', 'cm', 'mm', 'q', 'in', 'pt', 'pc', 'px'];
     18const LENGTH_UNITS = ['em', 'ex', 'ch', 'rem', 'vw', 'vh', 'vmin', 'vmax', 'cm', 'mm', 'q', 'in', 'pt', 'pc', 'px']; // These properties only accept percentages, so no point in trying to transform
     19
     20const notALength = new Set(['descent-override', 'ascent-override', 'font-stretch', 'size-adjust', 'line-gap-override']); // Can't change the unit on these properties when they're 0
     21
     22const keepWhenZero = new Set(['stroke-dashoffset', 'stroke-width', 'line-height']);
    1923/*
    2024 * Numbers without digits after the dot are technically invalid,
     
    6771}
    6872
    69 function shouldKeepUnit(decl) {
     73function shouldKeepZeroUnit(decl) {
    7074  const {
    7175    parent
    7276  } = decl;
    7377  const lowerCasedProp = decl.prop.toLowerCase();
    74   return ~decl.value.indexOf('%') && (lowerCasedProp === 'max-height' || lowerCasedProp === 'height') || parent.parent && parent.parent.name && parent.parent.name.toLowerCase() === 'keyframes' && lowerCasedProp === 'stroke-dasharray' || lowerCasedProp === 'stroke-dashoffset' || lowerCasedProp === 'stroke-width' || lowerCasedProp === 'line-height';
     78  return ~decl.value.indexOf('%') && (lowerCasedProp === 'max-height' || lowerCasedProp === 'height') || parent.parent && parent.parent.name && parent.parent.name.toLowerCase() === 'keyframes' && lowerCasedProp === 'stroke-dasharray' || keepWhenZero.has(lowerCasedProp);
    7579}
    7680
     
    7882  const lowerCasedProp = decl.prop.toLowerCase();
    7983
    80   if (~lowerCasedProp.indexOf('flex') || lowerCasedProp.indexOf('--') === 0) {
     84  if (~lowerCasedProp.indexOf('flex') || lowerCasedProp.indexOf('--') === 0 || notALength.has(lowerCasedProp)) {
    8185    return;
    8286  }
     
    8690
    8791    if (node.type === 'word') {
    88       parseWord(node, opts, shouldKeepUnit(decl));
     92      parseWord(node, opts, shouldKeepZeroUnit(decl));
    8993
    9094      if (lowerCasedProp === 'opacity' || lowerCasedProp === 'shape-image-threshold') {
  • trip-planner-front/node_modules/postcss-convert-values/package.json

    r59329aa re29cc2e  
    11{
    2   "_args": [
    3     [
    4       "postcss-convert-values@5.0.1",
    5       "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
    6     ]
    7   ],
    8   "_development": true,
    9   "_from": "postcss-convert-values@5.0.1",
    10   "_id": "postcss-convert-values@5.0.1",
     2  "_from": "postcss-convert-values@^5.0.2",
     3  "_id": "postcss-convert-values@5.0.2",
    114  "_inBundle": false,
    12   "_integrity": "sha512-C3zR1Do2BkKkCgC0g3sF8TS0koF2G+mN8xxayZx3f10cIRmTaAnpgpRQZjNekTZxM2ciSPoh2IWJm0VZx8NoQg==",
     5  "_integrity": "sha512-KQ04E2yadmfa1LqXm7UIDwW1ftxU/QWZmz6NKnHnUvJ3LEYbbcX6i329f/ig+WnEByHegulocXrECaZGLpL8Zg==",
    136  "_location": "/postcss-convert-values",
    147  "_phantomChildren": {},
    158  "_requested": {
    16     "type": "version",
     9    "type": "range",
    1710    "registry": true,
    18     "raw": "postcss-convert-values@5.0.1",
     11    "raw": "postcss-convert-values@^5.0.2",
    1912    "name": "postcss-convert-values",
    2013    "escapedName": "postcss-convert-values",
    21     "rawSpec": "5.0.1",
     14    "rawSpec": "^5.0.2",
    2215    "saveSpec": null,
    23     "fetchSpec": "5.0.1"
     16    "fetchSpec": "^5.0.2"
    2417  },
    2518  "_requiredBy": [
    2619    "/cssnano-preset-default"
    2720  ],
    28   "_resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.1.tgz",
    29   "_spec": "5.0.1",
    30   "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
     21  "_resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.2.tgz",
     22  "_shasum": "879b849dc3677c7d6bc94b6a2c1a3f0808798059",
     23  "_spec": "postcss-convert-values@^5.0.2",
     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    "postcss-value-parser": "^4.1.0"
    4136  },
     37  "deprecated": false,
    4238  "description": "Convert values with PostCSS (e.g. ms -> s)",
    4339  "devDependencies": {
     
    5147    "dist"
    5248  ],
    53   "gitHead": "28c247175032fa03f04911cde56ad82d74d211cc",
     49  "gitHead": "2d84646671c7075f8dae35de310351aac3436bc0",
    5450  "homepage": "https://github.com/cssnano/cssnano",
    5551  "keywords": [
     
    7167  "scripts": {
    7268    "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
    73     "prebuild": "del-cli dist",
    74     "prepublish": "yarn build"
     69    "prebuild": "rimraf dist",
     70    "prepare": "yarn build"
    7571  },
    76   "version": "5.0.1"
     72  "version": "5.0.2"
    7773}
Note: See TracChangeset for help on using the changeset viewer.