NUEVA BUSQUEDA DE DATOS SRI
This commit is contained in:
2
node_modules/is-glob/README.md
generated
vendored
2
node_modules/is-glob/README.md
generated
vendored
@@ -1,4 +1,4 @@
|
||||
# is-glob [](https://www.npmjs.com/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://travis-ci.org/micromatch/is-glob) [](https://ci.appveyor.com/project/micromatch/is-glob)
|
||||
# is-glob [](https://www.npmjs.com/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://github.com/micromatch/is-glob/actions)
|
||||
|
||||
> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.
|
||||
|
||||
|
||||
150
node_modules/is-glob/index.js
generated
vendored
150
node_modules/is-glob/index.js
generated
vendored
@@ -7,8 +7,128 @@
|
||||
|
||||
var isExtglob = require('is-extglob');
|
||||
var chars = { '{': '}', '(': ')', '[': ']'};
|
||||
var strictRegex = /\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
|
||||
var relaxedRegex = /\\(.)|(^!|[*?{}()[\]]|\(\?)/;
|
||||
var strictCheck = function(str) {
|
||||
if (str[0] === '!') {
|
||||
return true;
|
||||
}
|
||||
var index = 0;
|
||||
var pipeIndex = -2;
|
||||
var closeSquareIndex = -2;
|
||||
var closeCurlyIndex = -2;
|
||||
var closeParenIndex = -2;
|
||||
var backSlashIndex = -2;
|
||||
while (index < str.length) {
|
||||
if (str[index] === '*') {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (str[index + 1] === '?' && /[\].+)]/.test(str[index])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (closeSquareIndex !== -1 && str[index] === '[' && str[index + 1] !== ']') {
|
||||
if (closeSquareIndex < index) {
|
||||
closeSquareIndex = str.indexOf(']', index);
|
||||
}
|
||||
if (closeSquareIndex > index) {
|
||||
if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
|
||||
return true;
|
||||
}
|
||||
backSlashIndex = str.indexOf('\\', index);
|
||||
if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (closeCurlyIndex !== -1 && str[index] === '{' && str[index + 1] !== '}') {
|
||||
closeCurlyIndex = str.indexOf('}', index);
|
||||
if (closeCurlyIndex > index) {
|
||||
backSlashIndex = str.indexOf('\\', index);
|
||||
if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (closeParenIndex !== -1 && str[index] === '(' && str[index + 1] === '?' && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ')') {
|
||||
closeParenIndex = str.indexOf(')', index);
|
||||
if (closeParenIndex > index) {
|
||||
backSlashIndex = str.indexOf('\\', index);
|
||||
if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (pipeIndex !== -1 && str[index] === '(' && str[index + 1] !== '|') {
|
||||
if (pipeIndex < index) {
|
||||
pipeIndex = str.indexOf('|', index);
|
||||
}
|
||||
if (pipeIndex !== -1 && str[pipeIndex + 1] !== ')') {
|
||||
closeParenIndex = str.indexOf(')', pipeIndex);
|
||||
if (closeParenIndex > pipeIndex) {
|
||||
backSlashIndex = str.indexOf('\\', pipeIndex);
|
||||
if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (str[index] === '\\') {
|
||||
var open = str[index + 1];
|
||||
index += 2;
|
||||
var close = chars[open];
|
||||
|
||||
if (close) {
|
||||
var n = str.indexOf(close, index);
|
||||
if (n !== -1) {
|
||||
index = n + 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (str[index] === '!') {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
index++;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
var relaxedCheck = function(str) {
|
||||
if (str[0] === '!') {
|
||||
return true;
|
||||
}
|
||||
var index = 0;
|
||||
while (index < str.length) {
|
||||
if (/[*?{}()[\]]/.test(str[index])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (str[index] === '\\') {
|
||||
var open = str[index + 1];
|
||||
index += 2;
|
||||
var close = chars[open];
|
||||
|
||||
if (close) {
|
||||
var n = str.indexOf(close, index);
|
||||
if (n !== -1) {
|
||||
index = n + 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (str[index] === '!') {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
index++;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
module.exports = function isGlob(str, options) {
|
||||
if (typeof str !== 'string' || str === '') {
|
||||
@@ -19,30 +139,12 @@ module.exports = function isGlob(str, options) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var regex = strictRegex;
|
||||
var match;
|
||||
var check = strictCheck;
|
||||
|
||||
// optionally relax regex
|
||||
// optionally relax check
|
||||
if (options && options.strict === false) {
|
||||
regex = relaxedRegex;
|
||||
check = relaxedCheck;
|
||||
}
|
||||
|
||||
while ((match = regex.exec(str))) {
|
||||
if (match[2]) return true;
|
||||
var idx = match.index + match[0].length;
|
||||
|
||||
// if an open bracket/brace/paren is escaped,
|
||||
// set the index to the next closing character
|
||||
var open = match[1];
|
||||
var close = open ? chars[open] : null;
|
||||
if (open && close) {
|
||||
var n = str.indexOf(close, idx);
|
||||
if (n !== -1) {
|
||||
idx = n + 1;
|
||||
}
|
||||
}
|
||||
|
||||
str = str.slice(idx);
|
||||
}
|
||||
return false;
|
||||
return check(str);
|
||||
};
|
||||
|
||||
138
node_modules/is-glob/package.json
generated
vendored
138
node_modules/is-glob/package.json
generated
vendored
@@ -1,87 +1,36 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-glob@~4.0.1",
|
||||
"/home/pablinux/Projects/Node/app_sigma/node_modules/chokidar"
|
||||
]
|
||||
"name": "is-glob",
|
||||
"description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.",
|
||||
"version": "4.0.3",
|
||||
"homepage": "https://github.com/micromatch/is-glob",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"contributors": [
|
||||
"Brian Woodward (https://twitter.com/doowb)",
|
||||
"Daniel Perez (https://tuvistavie.com)",
|
||||
"Jon Schlinkert (http://twitter.com/jonschlinkert)"
|
||||
],
|
||||
"_from": "is-glob@>=4.0.1 <4.1.0",
|
||||
"_hasShrinkwrap": false,
|
||||
"_id": "is-glob@4.0.1",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/is-glob",
|
||||
"_nodeVersion": "10.15.1",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "s3://npm-registry-packages",
|
||||
"tmp": "tmp/is-glob_4.0.1_1553725595739_0.7795574194293109"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "blaine.bublitz@gmail.com",
|
||||
"name": "phated"
|
||||
},
|
||||
"_npmVersion": "6.4.1",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "is-glob",
|
||||
"raw": "is-glob@~4.0.1",
|
||||
"rawSpec": "~4.0.1",
|
||||
"scope": null,
|
||||
"spec": ">=4.0.1 <4.1.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/chokidar",
|
||||
"/glob-parent"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
|
||||
"_shasum": "7567dbe9f2f5e2467bc77ab83c4a29482407a5dc",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "is-glob@~4.0.1",
|
||||
"_where": "/home/pablinux/Projects/Node/app_sigma/node_modules/chokidar",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"repository": "micromatch/is-glob",
|
||||
"bugs": {
|
||||
"url": "https://github.com/micromatch/is-glob/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Brian Woodward",
|
||||
"url": "https://twitter.com/doowb"
|
||||
},
|
||||
{
|
||||
"name": "Daniel Perez",
|
||||
"url": "https://tuvistavie.com"
|
||||
},
|
||||
{
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "http://twitter.com/jonschlinkert"
|
||||
}
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha && node benchmark.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-extglob": "^2.1.1"
|
||||
},
|
||||
"description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet",
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.10",
|
||||
"mocha": "^3.0.2"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"fileCount": 4,
|
||||
"integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
|
||||
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcm/icCRA9TVsSAnZWagAAjNkP/1NEsRwsDNmHrumIbD19\nzEU1zZjHfN0XqjB286992EaNriCSMXs54xYQmxM6UQ5tHWytmY9caAmc5hFl\nBEm7L0eczOpDGxKpIZWHLy8gEUfLcYRzn6vRvdTpMDRf6zSVrcC7/sebclAT\njdMsZc0HrO3Lg3QZXXkJ6+elOxVrJT5HdVr5avXgneeD6EA3VTFVNRMu5mTv\n/cogXKWvVi0rOgupV4mYKwkAH+9Anh1MbfnPxVg7CLE/GG8AyhtgkTbzovGn\njoQ1rWN4UHYIG3Lguyg966HP48o0GCPklbXrb5a3yDRoZQgjng2C0zpt7dUU\nTINpyDxiQMgjJhriNnuYkr4SkOMg0xahJQjjiP0Zer9MTJPCbty064P4WJJ6\ni8wdxz06qhfb++WF+h3N5YQOT824Cg/cD48KBC/+qXV2ltnvQ+cO767drZXL\nsdqq184pqI/k+VaXFPOW55AJ5H3vbXBdfFj84ys6q2ly/dtiSiWuNV0BBLNk\n4Vp63vHMT/O4hbMStsSFtvGOuc+ym/0+5D8xX3YCjFFDLxlWyr5B89CmVkoe\nwMRwPXbqwds3ZQIiv7UlX+OmkhLscfMI888QEYdZcezOqwfKK2gpk0qbkE6w\nVL4jNOQcgCBmz8AIWSCZM8dTbkLhLGWS7voN5HhOt1LlVByrfYOrlLYYEyxK\n/LsU\r\n=kTf9\r\n-----END PGP SIGNATURE-----\r\n",
|
||||
"shasum": "7567dbe9f2f5e2467bc77ab83c4a29482407a5dc",
|
||||
"tarball": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
|
||||
"unpackedSize": 11285
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"gitHead": "4ac6a0cb019fa39141457946c2d455f281f73659",
|
||||
"homepage": "https://github.com/micromatch/is-glob",
|
||||
"keywords": [
|
||||
"bash",
|
||||
"braces",
|
||||
@@ -101,37 +50,19 @@
|
||||
"string",
|
||||
"test"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "doowb",
|
||||
"email": "brian.woodward@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "jonschlinkert",
|
||||
"email": "github@sellside.com"
|
||||
},
|
||||
{
|
||||
"name": "phated",
|
||||
"email": "blaine.bublitz@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "is-glob",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/micromatch/is-glob.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"verb": {
|
||||
"layout": "default",
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"assemble",
|
||||
"base",
|
||||
"update",
|
||||
"verb"
|
||||
]
|
||||
},
|
||||
"reflinks": [
|
||||
"assemble",
|
||||
"bach",
|
||||
@@ -145,15 +76,6 @@
|
||||
"scaffold",
|
||||
"verb",
|
||||
"vinyl"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"assemble",
|
||||
"base",
|
||||
"update",
|
||||
"verb"
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": "4.0.1"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user