Skip to content

Commit

Permalink
fix(deps): update micromatch to 4.0.8 (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 authored Aug 27, 2024
1 parent d2a62af commit 57f6235
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
11 changes: 9 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55842,7 +55842,12 @@ const util = __nccwpck_require__(3837);
const braces = __nccwpck_require__(610);
const picomatch = __nccwpck_require__(8569);
const utils = __nccwpck_require__(479);
const isEmptyString = val => val === '' || val === './';

const isEmptyString = v => v === '' || v === './';
const hasBraces = v => {
const index = v.indexOf('{');
return index > -1 && v.indexOf('}', index) > -1;
};

/**
* Returns an array of strings that match one or more glob patterns.
Expand Down Expand Up @@ -56283,7 +56288,7 @@ micromatch.parse = (patterns, options) => {

micromatch.braces = (pattern, options) => {
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
if ((options && options.nobrace === true) || !/\{.*\}/.test(pattern)) {
if ((options && options.nobrace === true) || !hasBraces(pattern)) {
return [pattern];
}
return braces(pattern, options);
Expand All @@ -56302,6 +56307,8 @@ micromatch.braceExpand = (pattern, options) => {
* Expose micromatch
*/

// exposed for tests
micromatch.hasBraces = hasBraces;
module.exports = micromatch;


Expand Down
9 changes: 5 additions & 4 deletions examples/webpack/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 57f6235

Please sign in to comment.