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/ignore
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/ignore/index.js

    r59329aa re29cc2e  
    289289
    290290// @param {pattern}
    291 const makeRegex = (pattern, negative, ignorecase) => {
    292   const r = regexCache[pattern]
    293   if (r) {
    294     return r
    295   }
    296 
    297   // const replacers = negative
    298   //   ? NEGATIVE_REPLACERS
    299   //   : POSITIVE_REPLACERS
    300 
    301   const source = REPLACERS.reduce(
    302     (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
    303     pattern
    304   )
    305 
    306   return regexCache[pattern] = ignorecase
     291const makeRegex = (pattern, ignorecase) => {
     292  let source = regexCache[pattern]
     293
     294  if (!source) {
     295    source = REPLACERS.reduce(
     296      (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
     297      pattern
     298    )
     299    regexCache[pattern] = source
     300  }
     301
     302  return ignorecase
    307303    ? new RegExp(source, 'i')
    308304    : new RegExp(source)
     
    353349  .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#')
    354350
    355   const regex = makeRegex(pattern, negative, ignorecase)
     351  const regex = makeRegex(pattern, ignorecase)
    356352
    357353  return new IgnoreRule(
     
    401397    ignorecase = true
    402398  } = {}) {
     399    define(this, KEY_IGNORE, true)
     400
    403401    this._rules = []
    404402    this._ignorecase = ignorecase
    405     define(this, KEY_IGNORE, true)
    406403    this._initCache()
    407404  }
  • trip-planner-front/node_modules/ignore/legacy.js

    r59329aa re29cc2e  
    206206var regexCache = Object.create(null); // @param {pattern}
    207207
    208 var makeRegex = function makeRegex(pattern, negative, ignorecase) {
    209   var r = regexCache[pattern];
    210 
    211   if (r) {
    212     return r;
    213   } // const replacers = negative
    214   //   ? NEGATIVE_REPLACERS
    215   //   : POSITIVE_REPLACERS
    216 
    217 
    218   var source = REPLACERS.reduce(function (prev, current) {
    219     return prev.replace(current[0], current[1].bind(pattern));
    220   }, pattern);
    221   return regexCache[pattern] = ignorecase ? new RegExp(source, 'i') : new RegExp(source);
     208var makeRegex = function makeRegex(pattern, ignorecase) {
     209  var source = regexCache[pattern];
     210
     211  if (!source) {
     212    source = REPLACERS.reduce(function (prev, current) {
     213      return prev.replace(current[0], current[1].bind(pattern));
     214    }, pattern);
     215    regexCache[pattern] = source;
     216  }
     217
     218  return ignorecase ? new RegExp(source, 'i') : new RegExp(source);
    222219};
    223220
     
    259256  // >   begin with a hash.
    260257  .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#');
    261   var regex = makeRegex(pattern, negative, ignorecase);
     258  var regex = makeRegex(pattern, ignorecase);
    262259  return new IgnoreRule(origin, pattern, negative, regex);
    263260};
     
    304301    _classCallCheck(this, Ignore);
    305302
     303    define(this, KEY_IGNORE, true);
    306304    this._rules = [];
    307305    this._ignorecase = ignorecase;
    308     define(this, KEY_IGNORE, true);
    309306
    310307    this._initCache();
  • trip-planner-front/node_modules/ignore/package.json

    r59329aa re29cc2e  
    11{
    2   "_args": [
    3     [
    4       "ignore@5.1.8",
    5       "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
    6     ]
    7   ],
    8   "_development": true,
    9   "_from": "ignore@5.1.8",
    10   "_id": "ignore@5.1.8",
     2  "_from": "ignore@^5.1.4",
     3  "_id": "ignore@5.1.9",
    114  "_inBundle": false,
    12   "_integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==",
     5  "_integrity": "sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ==",
    136  "_location": "/ignore",
    147  "_phantomChildren": {},
    158  "_requested": {
    16     "type": "version",
     9    "type": "range",
    1710    "registry": true,
    18     "raw": "ignore@5.1.8",
     11    "raw": "ignore@^5.1.4",
    1912    "name": "ignore",
    2013    "escapedName": "ignore",
    21     "rawSpec": "5.1.8",
     14    "rawSpec": "^5.1.4",
    2215    "saveSpec": null,
    23     "fetchSpec": "5.1.8"
     16    "fetchSpec": "^5.1.4"
    2417  },
    2518  "_requiredBy": [
    2619    "/globby"
    2720  ],
    28   "_resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz",
    29   "_spec": "5.1.8",
    30   "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
     21  "_resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.9.tgz",
     22  "_shasum": "9ec1a5cbe8e1446ec60d4420060d43aa6e7382fb",
     23  "_spec": "ignore@^5.1.4",
     24  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\globby",
    3125  "author": {
    3226    "name": "kael"
     
    3529    "url": "https://github.com/kaelzhang/node-ignore/issues"
    3630  },
     31  "bundleDependencies": false,
     32  "deprecated": false,
    3733  "description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.",
    3834  "devDependencies": {
     
    8884    "posttest": "tap --coverage-report=html && codecov",
    8985    "prepublishOnly": "npm run build",
     86    "tap": "tap --reporter classic",
    9087    "test": "npm run test:only",
    91     "test:cases": "tap test/*.js --coverage",
    92     "test:git": "tap test/git-check-ignore.js",
    93     "test:ignore": "tap test/ignore.js",
     88    "test:cases": "npm run tap test/*.js -- --coverage",
     89    "test:git": "npm run tap test/git-check-ignore.js",
     90    "test:ignore": "npm run tap test/ignore.js",
    9491    "test:lint": "eslint .",
    9592    "test:only": "npm run test:lint && npm run test:tsc && npm run test:ts && npm run test:cases",
    96     "test:others": "tap test/others.js",
     93    "test:others": "npm run tap test/others.js",
    9794    "test:ts": "node ./test/ts/simple.js",
    9895    "test:tsc": "tsc ./test/ts/simple.ts --lib ES6",
    9996    "test:win32": "IGNORE_TEST_WIN32=1 npm run test"
    10097  },
    101   "version": "5.1.8"
     98  "version": "5.1.9"
    10299}
Note: See TracChangeset for help on using the changeset viewer.