Changeset e29cc2e for trip-planner-front/node_modules/glob-parent
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/glob-parent
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/glob-parent/LICENSE
r59329aa re29cc2e 1 1 The ISC License 2 2 3 Copyright (c) 2015, 2019 Elan Shanker 3 Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors 4 4 5 5 Permission to use, copy, modify, and/or distribute this software for any -
trip-planner-front/node_modules/glob-parent/README.md
r59329aa re29cc2e 7 7 # glob-parent 8 8 9 [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![ Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]9 [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url] 10 10 11 11 Extract the non-magic parent path from a glob string. … … 46 46 { 47 47 // Disables the automatic conversion of slashes for Windows 48 flipBackslashes: true 48 flipBackslashes: true; 49 49 } 50 50 ``` … … 67 67 68 68 ```js 69 globParent('foo/[bar]/') // 'foo'70 globParent('foo/\\[bar]/') // 'foo/[bar]'69 globParent('foo/[bar]/'); // 'foo' 70 globParent('foo/\\[bar]/'); // 'foo/[bar]' 71 71 ``` 72 72 … … 74 74 75 75 ### Braces & Brackets 76 76 77 This library attempts a quick and imperfect method of determining which path 77 78 parts have glob magic without fully parsing/lexing the pattern. There are some … … 83 84 84 85 ### Windows 86 85 87 Backslashes are not valid path separators for globs. If a path with backslashes 86 88 is provided anyway, for simple cases, glob-parent will replace the path … … 92 94 ```js 93 95 // BAD 94 globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)'96 globParent('C:\\Program Files \\(x86\\)\\*.ext'); // 'C:/Program Files /(x86/)' 95 97 96 98 // GOOD 97 globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)'99 globParent('C:/Program Files\\(x86\\)/*.ext'); // 'C:/Program Files (x86)' 98 100 ``` 99 101 … … 103 105 ```js 104 106 // BAD 105 globParent('foo \\[bar]') // 'foo '106 globParent('foo \\[bar]*') // 'foo '107 globParent('foo \\[bar]'); // 'foo ' 108 globParent('foo \\[bar]*'); // 'foo ' 107 109 108 110 // GOOD 109 globParent('./foo \\[bar]') // 'foo [bar]'110 globParent('./foo \\[bar]*') // '.'111 globParent('./foo \\[bar]'); // 'foo [bar]' 112 globParent('./foo \\[bar]*'); // '.' 111 113 ``` 112 114 … … 115 117 ISC 116 118 119 <!-- prettier-ignore-start --> 120 [downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg?style=flat-square 121 [npm-url]: https://www.npmjs.com/package/glob-parent 122 [npm-image]: https://img.shields.io/npm/v/glob-parent.svg?style=flat-square 123 124 [ci-url]: https://github.com/gulpjs/glob-parent/actions?query=workflow:dev 125 [ci-image]: https://img.shields.io/github/workflow/status/gulpjs/glob-parent/dev?style=flat-square 126 127 [coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent 128 [coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg?style=flat-square 129 <!-- prettier-ignore-end --> 130 131 <!-- prettier-ignore-start --> 117 132 [expand-braces]: https://github.com/jonschlinkert/expand-braces 118 133 [expand-brackets]: https://github.com/jonschlinkert/expand-brackets 119 120 [downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg 121 [npm-url]: https://www.npmjs.com/package/glob-parent 122 [npm-image]: https://img.shields.io/npm/v/glob-parent.svg 123 124 [azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master 125 [azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master 126 127 [travis-url]: https://travis-ci.org/gulpjs/glob-parent 128 [travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci 129 130 [appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent 131 [appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor 132 133 [coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent 134 [coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg 135 136 [gitter-url]: https://gitter.im/gulpjs/gulp 137 [gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg 134 <!-- prettier-ignore-end --> -
trip-planner-front/node_modules/glob-parent/index.js
r59329aa re29cc2e 7 7 var slash = '/'; 8 8 var backslash = /\\/g; 9 var enclosure = /[\{\[].*[\}\]]$/; 10 var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; 11 var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; 9 var escaped = /\\([!*?|[\](){}])/g; 12 10 13 11 /** … … 15 13 * @param {Object} opts 16 14 * @param {boolean} [opts.flipBackslashes=true] 17 * @returns {string}18 15 */ 19 16 module.exports = function globParent(str, opts) { … … 26 23 27 24 // special case for strings ending in enclosure containing path separator 28 if ( enclosure.test(str)) {25 if (isEnclosure(str)) { 29 26 str += slash; 30 27 } … … 36 33 do { 37 34 str = pathPosixDirname(str); 38 } while (isGlob (str) || globby.test(str));35 } while (isGlobby(str)); 39 36 40 37 // remove escape chars and return result 41 38 return str.replace(escaped, '$1'); 42 39 }; 40 41 function isEnclosure(str) { 42 var lastChar = str.slice(-1); 43 44 var enclosureStart; 45 switch (lastChar) { 46 case '}': 47 enclosureStart = '{'; 48 break; 49 case ']': 50 enclosureStart = '['; 51 break; 52 default: 53 return false; 54 } 55 56 var foundIndex = str.indexOf(enclosureStart); 57 if (foundIndex < 0) { 58 return false; 59 } 60 61 return str.slice(foundIndex + 1, -1).includes(slash); 62 } 63 64 function isGlobby(str) { 65 if (/\([^()]+$/.test(str)) { 66 return true; 67 } 68 if (str[0] === '{' || str[0] === '[') { 69 return true; 70 } 71 if (/[^\\][{[]/.test(str)) { 72 return true; 73 } 74 return isGlob(str); 75 } -
trip-planner-front/node_modules/glob-parent/package.json
r59329aa re29cc2e 1 1 { 2 "_args": [ 3 [ 4 "glob-parent@5.1.2", 5 "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front" 6 ] 7 ], 8 "_development": true, 9 "_from": "glob-parent@5.1.2", 10 "_id": "glob-parent@5.1.2", 2 "_from": "glob-parent@^6.0.0", 3 "_id": "glob-parent@6.0.2", 11 4 "_inBundle": false, 12 "_integrity": "sha512- AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",5 "_integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 13 6 "_location": "/glob-parent", 14 7 "_phantomChildren": {}, 15 8 "_requested": { 16 "type": " version",9 "type": "range", 17 10 "registry": true, 18 "raw": "glob-parent@ 5.1.2",11 "raw": "glob-parent@^6.0.0", 19 12 "name": "glob-parent", 20 13 "escapedName": "glob-parent", 21 "rawSpec": " 5.1.2",14 "rawSpec": "^6.0.0", 22 15 "saveSpec": null, 23 "fetchSpec": " 5.1.2"16 "fetchSpec": "^6.0.0" 24 17 }, 25 18 "_requiredBy": [ 26 "/chokidar", 27 "/fast-glob" 19 "/copy-webpack-plugin" 28 20 ], 29 "_resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 30 "_spec": "5.1.2", 31 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front", 21 "_resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 22 "_shasum": "6d237d99083950c79290f24c7642a3de9a28f9e3", 23 "_spec": "glob-parent@^6.0.0", 24 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\copy-webpack-plugin", 32 25 "author": { 33 26 "name": "Gulp Team", … … 38 31 "url": "https://github.com/gulpjs/glob-parent/issues" 39 32 }, 33 "bundleDependencies": false, 40 34 "contributors": [ 41 35 { … … 49 43 ], 50 44 "dependencies": { 51 "is-glob": "^4.0. 1"45 "is-glob": "^4.0.3" 52 46 }, 47 "deprecated": false, 53 48 "description": "Extract the non-magic parent path from a glob string.", 54 49 "devDependencies": { 55 "coveralls": "^3.0.11", 56 "eslint": "^2.13.1", 57 "eslint-config-gulp": "^3.0.1", 58 "expect": "^1.20.2", 59 "mocha": "^6.0.2", 60 "nyc": "^13.3.0" 50 "eslint": "^7.0.0", 51 "eslint-config-gulp": "^5.0.0", 52 "expect": "^26.0.1", 53 "mocha": "^7.1.2", 54 "nyc": "^15.0.1" 61 55 }, 62 56 "engines": { 63 "node": ">= 6"57 "node": ">=10.13.0" 64 58 }, 65 59 "files": [ … … 81 75 "main": "index.js", 82 76 "name": "glob-parent", 77 "nyc": { 78 "reporter": [ 79 "lcov", 80 "text-summary" 81 ] 82 }, 83 "prettier": { 84 "singleQuote": true 85 }, 83 86 "repository": { 84 87 "type": "git", … … 86 89 }, 87 90 "scripts": { 88 "azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",89 "coveralls": "nyc report --reporter=text-lcov | coveralls",90 91 "lint": "eslint .", 91 92 "pretest": "npm run lint", 92 93 "test": "nyc mocha --async-only" 93 94 }, 94 "version": " 5.1.2"95 "version": "6.0.2" 95 96 }
Note:
See TracChangeset
for help on using the changeset viewer.