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/glob-parent
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/glob-parent/LICENSE

    r59329aa re29cc2e  
    11The ISC License
    22
    3 Copyright (c) 2015, 2019 Elan Shanker
     3Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors
    44
    55Permission to use, copy, modify, and/or distribute this software for any
  • trip-planner-front/node_modules/glob-parent/README.md

    r59329aa re29cc2e  
    77# glob-parent
    88
    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]
    1010
    1111Extract the non-magic parent path from a glob string.
     
    4646{
    4747  // Disables the automatic conversion of slashes for Windows
    48   flipBackslashes: true
     48  flipBackslashes: true;
    4949}
    5050```
     
    6767
    6868```js
    69 globParent('foo/[bar]/') // 'foo'
    70 globParent('foo/\\[bar]/') // 'foo/[bar]'
     69globParent('foo/[bar]/'); // 'foo'
     70globParent('foo/\\[bar]/'); // 'foo/[bar]'
    7171```
    7272
     
    7474
    7575### Braces & Brackets
     76
    7677This library attempts a quick and imperfect method of determining which path
    7778parts have glob magic without fully parsing/lexing the pattern. There are some
     
    8384
    8485### Windows
     86
    8587Backslashes are not valid path separators for globs. If a path with backslashes
    8688is provided anyway, for simple cases, glob-parent will replace the path
     
    9294```js
    9395// BAD
    94 globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)'
     96globParent('C:\\Program Files \\(x86\\)\\*.ext'); // 'C:/Program Files /(x86/)'
    9597
    9698// GOOD
    97 globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)'
     99globParent('C:/Program Files\\(x86\\)/*.ext'); // 'C:/Program Files (x86)'
    98100```
    99101
     
    103105```js
    104106// BAD
    105 globParent('foo \\[bar]') // 'foo '
    106 globParent('foo \\[bar]*') // 'foo '
     107globParent('foo \\[bar]'); // 'foo '
     108globParent('foo \\[bar]*'); // 'foo '
    107109
    108110// GOOD
    109 globParent('./foo \\[bar]') // 'foo [bar]'
    110 globParent('./foo \\[bar]*') // '.'
     111globParent('./foo \\[bar]'); // 'foo [bar]'
     112globParent('./foo \\[bar]*'); // '.'
    111113```
    112114
     
    115117ISC
    116118
     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 -->
    117132[expand-braces]: https://github.com/jonschlinkert/expand-braces
    118133[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  
    77var slash = '/';
    88var backslash = /\\/g;
    9 var enclosure = /[\{\[].*[\}\]]$/;
    10 var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
    11 var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
     9var escaped = /\\([!*?|[\](){}])/g;
    1210
    1311/**
     
    1513 * @param {Object} opts
    1614 * @param {boolean} [opts.flipBackslashes=true]
    17  * @returns {string}
    1815 */
    1916module.exports = function globParent(str, opts) {
     
    2623
    2724  // special case for strings ending in enclosure containing path separator
    28   if (enclosure.test(str)) {
     25  if (isEnclosure(str)) {
    2926    str += slash;
    3027  }
     
    3633  do {
    3734    str = pathPosixDirname(str);
    38   } while (isGlob(str) || globby.test(str));
     35  } while (isGlobby(str));
    3936
    4037  // remove escape chars and return result
    4138  return str.replace(escaped, '$1');
    4239};
     40
     41function 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
     64function 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  
    11{
    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",
    114  "_inBundle": false,
    12   "_integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
     5  "_integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
    136  "_location": "/glob-parent",
    147  "_phantomChildren": {},
    158  "_requested": {
    16     "type": "version",
     9    "type": "range",
    1710    "registry": true,
    18     "raw": "glob-parent@5.1.2",
     11    "raw": "glob-parent@^6.0.0",
    1912    "name": "glob-parent",
    2013    "escapedName": "glob-parent",
    21     "rawSpec": "5.1.2",
     14    "rawSpec": "^6.0.0",
    2215    "saveSpec": null,
    23     "fetchSpec": "5.1.2"
     16    "fetchSpec": "^6.0.0"
    2417  },
    2518  "_requiredBy": [
    26     "/chokidar",
    27     "/fast-glob"
     19    "/copy-webpack-plugin"
    2820  ],
    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",
    3225  "author": {
    3326    "name": "Gulp Team",
     
    3831    "url": "https://github.com/gulpjs/glob-parent/issues"
    3932  },
     33  "bundleDependencies": false,
    4034  "contributors": [
    4135    {
     
    4943  ],
    5044  "dependencies": {
    51     "is-glob": "^4.0.1"
     45    "is-glob": "^4.0.3"
    5246  },
     47  "deprecated": false,
    5348  "description": "Extract the non-magic parent path from a glob string.",
    5449  "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"
    6155  },
    6256  "engines": {
    63     "node": ">= 6"
     57    "node": ">=10.13.0"
    6458  },
    6559  "files": [
     
    8175  "main": "index.js",
    8276  "name": "glob-parent",
     77  "nyc": {
     78    "reporter": [
     79      "lcov",
     80      "text-summary"
     81    ]
     82  },
     83  "prettier": {
     84    "singleQuote": true
     85  },
    8386  "repository": {
    8487    "type": "git",
     
    8689  },
    8790  "scripts": {
    88     "azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",
    89     "coveralls": "nyc report --reporter=text-lcov | coveralls",
    9091    "lint": "eslint .",
    9192    "pretest": "npm run lint",
    9293    "test": "nyc mocha --async-only"
    9394  },
    94   "version": "5.1.2"
     95  "version": "6.0.2"
    9596}
Note: See TracChangeset for help on using the changeset viewer.