Changeset e29cc2e for trip-planner-front/node_modules/ignore
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- 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 289 289 290 290 // @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 291 const 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 307 303 ? new RegExp(source, 'i') 308 304 : new RegExp(source) … … 353 349 .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#') 354 350 355 const regex = makeRegex(pattern, negative,ignorecase)351 const regex = makeRegex(pattern, ignorecase) 356 352 357 353 return new IgnoreRule( … … 401 397 ignorecase = true 402 398 } = {}) { 399 define(this, KEY_IGNORE, true) 400 403 401 this._rules = [] 404 402 this._ignorecase = ignorecase 405 define(this, KEY_IGNORE, true)406 403 this._initCache() 407 404 } -
trip-planner-front/node_modules/ignore/legacy.js
r59329aa re29cc2e 206 206 var regexCache = Object.create(null); // @param {pattern} 207 207 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); 208 var 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); 222 219 }; 223 220 … … 259 256 // > begin with a hash. 260 257 .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#'); 261 var regex = makeRegex(pattern, negative,ignorecase);258 var regex = makeRegex(pattern, ignorecase); 262 259 return new IgnoreRule(origin, pattern, negative, regex); 263 260 }; … … 304 301 _classCallCheck(this, Ignore); 305 302 303 define(this, KEY_IGNORE, true); 306 304 this._rules = []; 307 305 this._ignorecase = ignorecase; 308 define(this, KEY_IGNORE, true);309 306 310 307 this._initCache(); -
trip-planner-front/node_modules/ignore/package.json
r59329aa re29cc2e 1 1 { 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", 11 4 "_inBundle": false, 12 "_integrity": "sha512- BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==",5 "_integrity": "sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ==", 13 6 "_location": "/ignore", 14 7 "_phantomChildren": {}, 15 8 "_requested": { 16 "type": " version",9 "type": "range", 17 10 "registry": true, 18 "raw": "ignore@ 5.1.8",11 "raw": "ignore@^5.1.4", 19 12 "name": "ignore", 20 13 "escapedName": "ignore", 21 "rawSpec": " 5.1.8",14 "rawSpec": "^5.1.4", 22 15 "saveSpec": null, 23 "fetchSpec": " 5.1.8"16 "fetchSpec": "^5.1.4" 24 17 }, 25 18 "_requiredBy": [ 26 19 "/globby" 27 20 ], 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", 31 25 "author": { 32 26 "name": "kael" … … 35 29 "url": "https://github.com/kaelzhang/node-ignore/issues" 36 30 }, 31 "bundleDependencies": false, 32 "deprecated": false, 37 33 "description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.", 38 34 "devDependencies": { … … 88 84 "posttest": "tap --coverage-report=html && codecov", 89 85 "prepublishOnly": "npm run build", 86 "tap": "tap --reporter classic", 90 87 "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", 94 91 "test:lint": "eslint .", 95 92 "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", 97 94 "test:ts": "node ./test/ts/simple.js", 98 95 "test:tsc": "tsc ./test/ts/simple.ts --lib ES6", 99 96 "test:win32": "IGNORE_TEST_WIN32=1 npm run test" 100 97 }, 101 "version": "5.1. 8"98 "version": "5.1.9" 102 99 }
Note:
See TracChangeset
for help on using the changeset viewer.