@bigbinary/neeto-playwright-commons 1.11.15 → 1.11.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +9 -2
- package/index.cjs.js.map +1 -1
- package/index.js +9 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -9743,7 +9743,12 @@ const util$7 = require$$0__default["default"];
|
|
|
9743
9743
|
const braces = braces_1;
|
|
9744
9744
|
const picomatch = picomatch$1;
|
|
9745
9745
|
const utils$c = utils$g;
|
|
9746
|
-
|
|
9746
|
+
|
|
9747
|
+
const isEmptyString = v => v === '' || v === './';
|
|
9748
|
+
const hasBraces = v => {
|
|
9749
|
+
const index = v.indexOf('{');
|
|
9750
|
+
return index > -1 && v.indexOf('}', index) > -1;
|
|
9751
|
+
};
|
|
9747
9752
|
|
|
9748
9753
|
/**
|
|
9749
9754
|
* Returns an array of strings that match one or more glob patterns.
|
|
@@ -10184,7 +10189,7 @@ micromatch$1.parse = (patterns, options) => {
|
|
|
10184
10189
|
|
|
10185
10190
|
micromatch$1.braces = (pattern, options) => {
|
|
10186
10191
|
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
|
10187
|
-
if ((options && options.nobrace === true) ||
|
|
10192
|
+
if ((options && options.nobrace === true) || !hasBraces(pattern)) {
|
|
10188
10193
|
return [pattern];
|
|
10189
10194
|
}
|
|
10190
10195
|
return braces(pattern, options);
|
|
@@ -10203,6 +10208,8 @@ micromatch$1.braceExpand = (pattern, options) => {
|
|
|
10203
10208
|
* Expose micromatch
|
|
10204
10209
|
*/
|
|
10205
10210
|
|
|
10211
|
+
// exposed for tests
|
|
10212
|
+
micromatch$1.hasBraces = hasBraces;
|
|
10206
10213
|
var micromatch_1 = micromatch$1;
|
|
10207
10214
|
|
|
10208
10215
|
Object.defineProperty(pattern$1, "__esModule", { value: true });
|