@openrewrite/rewrite 8.96.3 → 8.96.5

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.
Files changed (142) hide show
  1. package/dist/execution.d.ts +2 -0
  2. package/dist/execution.d.ts.map +1 -1
  3. package/dist/execution.js +4 -0
  4. package/dist/execution.js.map +1 -1
  5. package/dist/heavyweight.d.ts +8 -0
  6. package/dist/heavyweight.d.ts.map +1 -0
  7. package/dist/heavyweight.js +45 -0
  8. package/dist/heavyweight.js.map +1 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +3 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/java/tree.d.ts +11 -11
  14. package/dist/java/tree.d.ts.map +1 -1
  15. package/dist/java/visitor.d.ts.map +1 -1
  16. package/dist/java/visitor.js +46 -2
  17. package/dist/java/visitor.js.map +1 -1
  18. package/dist/javascript/add-import.d.ts +2 -1
  19. package/dist/javascript/add-import.d.ts.map +1 -1
  20. package/dist/javascript/add-import.js +14 -2
  21. package/dist/javascript/add-import.js.map +1 -1
  22. package/dist/javascript/amd.d.ts.map +1 -1
  23. package/dist/javascript/amd.js +2 -1
  24. package/dist/javascript/amd.js.map +1 -1
  25. package/dist/javascript/cleanup/add-parse-int-radix.js +1 -1
  26. package/dist/javascript/cleanup/add-parse-int-radix.js.map +1 -1
  27. package/dist/javascript/format/format.d.ts +12 -0
  28. package/dist/javascript/format/format.d.ts.map +1 -1
  29. package/dist/javascript/format/format.js +17 -3
  30. package/dist/javascript/format/format.js.map +1 -1
  31. package/dist/javascript/format/tabs-and-indents-visitor.d.ts.map +1 -1
  32. package/dist/javascript/format/tabs-and-indents-visitor.js +4 -0
  33. package/dist/javascript/format/tabs-and-indents-visitor.js.map +1 -1
  34. package/dist/javascript/format/whitespace-reconciler.d.ts.map +1 -1
  35. package/dist/javascript/format/whitespace-reconciler.js +4 -0
  36. package/dist/javascript/format/whitespace-reconciler.js.map +1 -1
  37. package/dist/javascript/node-resolution-result.d.ts.map +1 -1
  38. package/dist/javascript/node-resolution-result.js +2 -0
  39. package/dist/javascript/node-resolution-result.js.map +1 -1
  40. package/dist/javascript/parser-utils.d.ts.map +1 -1
  41. package/dist/javascript/parser-utils.js +16 -5
  42. package/dist/javascript/parser-utils.js.map +1 -1
  43. package/dist/javascript/templating/engine.d.ts.map +1 -1
  44. package/dist/javascript/templating/engine.js +11 -6
  45. package/dist/javascript/templating/engine.js.map +1 -1
  46. package/dist/javascript/templating/pattern.d.ts.map +1 -1
  47. package/dist/javascript/templating/pattern.js +8 -0
  48. package/dist/javascript/templating/pattern.js.map +1 -1
  49. package/dist/javascript/templating/placeholder-replacement.d.ts.map +1 -1
  50. package/dist/javascript/templating/placeholder-replacement.js +15 -0
  51. package/dist/javascript/templating/placeholder-replacement.js.map +1 -1
  52. package/dist/javascript/templating/precedence.js +1 -1
  53. package/dist/javascript/templating/precedence.js.map +1 -1
  54. package/dist/javascript/tree.d.ts +12 -12
  55. package/dist/javascript/tree.d.ts.map +1 -1
  56. package/dist/javascript/visitor.d.ts.map +1 -1
  57. package/dist/javascript/visitor.js +96 -0
  58. package/dist/javascript/visitor.js.map +1 -1
  59. package/dist/recipe.d.ts +5 -0
  60. package/dist/recipe.d.ts.map +1 -1
  61. package/dist/recipe.js +5 -0
  62. package/dist/recipe.js.map +1 -1
  63. package/dist/rewrite-javascript-version.txt +1 -1
  64. package/dist/run.d.ts +7 -1
  65. package/dist/run.d.ts.map +1 -1
  66. package/dist/run.js +40 -2
  67. package/dist/run.js.map +1 -1
  68. package/dist/test/accumulator-contents.d.ts +15 -0
  69. package/dist/test/accumulator-contents.d.ts.map +1 -0
  70. package/dist/test/accumulator-contents.js +185 -0
  71. package/dist/test/accumulator-contents.js.map +1 -0
  72. package/dist/test/empty-sources.d.ts +14 -0
  73. package/dist/test/empty-sources.d.ts.map +1 -0
  74. package/dist/test/empty-sources.js +98 -0
  75. package/dist/test/empty-sources.js.map +1 -0
  76. package/dist/test/formatting-scope.d.ts +18 -0
  77. package/dist/test/formatting-scope.d.ts.map +1 -0
  78. package/dist/test/formatting-scope.js +244 -0
  79. package/dist/test/formatting-scope.js.map +1 -0
  80. package/dist/test/probes.d.ts +25 -0
  81. package/dist/test/probes.d.ts.map +1 -0
  82. package/dist/test/probes.js +189 -0
  83. package/dist/test/probes.js.map +1 -0
  84. package/dist/test/rewrite-test.d.ts +27 -0
  85. package/dist/test/rewrite-test.d.ts.map +1 -1
  86. package/dist/test/rewrite-test.js +191 -21
  87. package/dist/test/rewrite-test.js.map +1 -1
  88. package/dist/test/tree-shapes.d.ts +15 -0
  89. package/dist/test/tree-shapes.d.ts.map +1 -0
  90. package/dist/test/tree-shapes.js +288 -0
  91. package/dist/test/tree-shapes.js.map +1 -0
  92. package/dist/test/unparsed-sources.d.ts +17 -0
  93. package/dist/test/unparsed-sources.d.ts.map +1 -0
  94. package/dist/test/unparsed-sources.js +113 -0
  95. package/dist/test/unparsed-sources.js.map +1 -0
  96. package/dist/tree.d.ts.map +1 -1
  97. package/dist/tree.js +2 -0
  98. package/dist/tree.js.map +1 -1
  99. package/dist/visitor.d.ts.map +1 -1
  100. package/dist/visitor.js +2 -0
  101. package/dist/visitor.js.map +1 -1
  102. package/node_modules/picomatch/LICENSE +21 -0
  103. package/node_modules/picomatch/README.md +743 -0
  104. package/node_modules/picomatch/index.js +17 -0
  105. package/node_modules/picomatch/lib/constants.js +184 -0
  106. package/node_modules/picomatch/lib/parse.js +1506 -0
  107. package/node_modules/picomatch/lib/picomatch.js +361 -0
  108. package/node_modules/picomatch/lib/scan.js +403 -0
  109. package/node_modules/picomatch/lib/utils.js +72 -0
  110. package/node_modules/picomatch/package.json +83 -0
  111. package/node_modules/picomatch/posix.js +3 -0
  112. package/package.json +88 -90
  113. package/src/execution.ts +6 -0
  114. package/src/heavyweight.ts +42 -0
  115. package/src/index.ts +1 -0
  116. package/src/java/tree.ts +11 -11
  117. package/src/java/visitor.ts +52 -2
  118. package/src/javascript/add-import.ts +11 -2
  119. package/src/javascript/amd.ts +4 -2
  120. package/src/javascript/cleanup/add-parse-int-radix.ts +2 -2
  121. package/src/javascript/format/format.ts +25 -1
  122. package/src/javascript/format/tabs-and-indents-visitor.ts +4 -0
  123. package/src/javascript/format/whitespace-reconciler.ts +4 -0
  124. package/src/javascript/node-resolution-result.ts +3 -0
  125. package/src/javascript/parser-utils.ts +19 -7
  126. package/src/javascript/templating/engine.ts +11 -6
  127. package/src/javascript/templating/pattern.ts +10 -0
  128. package/src/javascript/templating/placeholder-replacement.ts +16 -0
  129. package/src/javascript/templating/precedence.ts +1 -1
  130. package/src/javascript/tree.ts +12 -12
  131. package/src/javascript/visitor.ts +120 -0
  132. package/src/recipe.ts +5 -0
  133. package/src/run.ts +30 -2
  134. package/src/test/accumulator-contents.ts +194 -0
  135. package/src/test/empty-sources.ts +99 -0
  136. package/src/test/formatting-scope.ts +231 -0
  137. package/src/test/probes.ts +156 -0
  138. package/src/test/rewrite-test.ts +177 -24
  139. package/src/test/tree-shapes.ts +332 -0
  140. package/src/test/unparsed-sources.ts +138 -0
  141. package/src/tree.ts +3 -0
  142. package/src/visitor.ts +3 -0
@@ -0,0 +1,403 @@
1
+ 'use strict';
2
+
3
+ const utils = require('./utils');
4
+ const {
5
+ CHAR_ASTERISK, /* * */
6
+ CHAR_AT, /* @ */
7
+ CHAR_BACKWARD_SLASH, /* \ */
8
+ CHAR_COMMA, /* , */
9
+ CHAR_DOT, /* . */
10
+ CHAR_EXCLAMATION_MARK, /* ! */
11
+ CHAR_FORWARD_SLASH, /* / */
12
+ CHAR_LEFT_CURLY_BRACE, /* { */
13
+ CHAR_LEFT_PARENTHESES, /* ( */
14
+ CHAR_LEFT_SQUARE_BRACKET, /* [ */
15
+ CHAR_PLUS, /* + */
16
+ CHAR_QUESTION_MARK, /* ? */
17
+ CHAR_RIGHT_CURLY_BRACE, /* } */
18
+ CHAR_RIGHT_PARENTHESES, /* ) */
19
+ CHAR_RIGHT_SQUARE_BRACKET /* ] */
20
+ } = require('./constants');
21
+
22
+ const isPathSeparator = code => {
23
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
24
+ };
25
+
26
+ const depth = token => {
27
+ if (token.isPrefix !== true) {
28
+ token.depth = token.isGlobstar ? Infinity : 1;
29
+ }
30
+ };
31
+
32
+ /**
33
+ * Quickly scans a glob pattern and returns an object with a handful of
34
+ * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
35
+ * `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
36
+ * with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
37
+ *
38
+ * ```js
39
+ * const pm = require('picomatch');
40
+ * console.log(pm.scan('foo/bar/*.js'));
41
+ * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
42
+ * ```
43
+ * @param {String} `str`
44
+ * @param {Object} `options`
45
+ * @return {Object} Returns an object with tokens and regex source string.
46
+ * @api public
47
+ */
48
+
49
+ const scan = (input, options) => {
50
+ const opts = options || {};
51
+
52
+ const length = input.length - 1;
53
+ const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
54
+ const slashes = [];
55
+ const tokens = [];
56
+ const parts = [];
57
+
58
+ let str = input;
59
+ let index = -1;
60
+ let start = 0;
61
+ let lastIndex = 0;
62
+ let isBrace = false;
63
+ let isBracket = false;
64
+ let isGlob = false;
65
+ let isExtglob = false;
66
+ let isGlobstar = false;
67
+ let braceEscaped = false;
68
+ let backslashes = false;
69
+ let negated = false;
70
+ let negatedExtglob = false;
71
+ let finished = false;
72
+ let braces = 0;
73
+ let prev;
74
+ let code;
75
+ let token = { value: '', depth: 0, isGlob: false };
76
+
77
+ const eos = () => index >= length;
78
+ const peek = () => str.charCodeAt(index + 1);
79
+ const advance = () => {
80
+ prev = code;
81
+ return str.charCodeAt(++index);
82
+ };
83
+
84
+ while (index < length) {
85
+ code = advance();
86
+ let next;
87
+
88
+ if (code === CHAR_BACKWARD_SLASH) {
89
+ backslashes = token.backslashes = true;
90
+ code = advance();
91
+
92
+ if (code === CHAR_LEFT_CURLY_BRACE) {
93
+ braceEscaped = true;
94
+ }
95
+ continue;
96
+ }
97
+
98
+ if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
99
+ braces++;
100
+
101
+ while (eos() !== true && (code = advance())) {
102
+ if (code === CHAR_BACKWARD_SLASH) {
103
+ backslashes = token.backslashes = true;
104
+ advance();
105
+ continue;
106
+ }
107
+
108
+ if (code === CHAR_LEFT_CURLY_BRACE) {
109
+ braces++;
110
+ continue;
111
+ }
112
+
113
+ if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
114
+ isBrace = token.isBrace = true;
115
+ isGlob = token.isGlob = true;
116
+ finished = true;
117
+
118
+ if (scanToEnd === true) {
119
+ continue;
120
+ }
121
+
122
+ break;
123
+ }
124
+
125
+ if (braceEscaped !== true && code === CHAR_COMMA) {
126
+ isBrace = token.isBrace = true;
127
+ isGlob = token.isGlob = true;
128
+ finished = true;
129
+
130
+ if (scanToEnd === true) {
131
+ continue;
132
+ }
133
+
134
+ break;
135
+ }
136
+
137
+ if (code === CHAR_RIGHT_CURLY_BRACE) {
138
+ braces--;
139
+
140
+ if (braces === 0) {
141
+ braceEscaped = false;
142
+ isBrace = token.isBrace = true;
143
+ finished = true;
144
+ break;
145
+ }
146
+ }
147
+ }
148
+
149
+ if (scanToEnd === true) {
150
+ continue;
151
+ }
152
+
153
+ break;
154
+ }
155
+
156
+ if (code === CHAR_FORWARD_SLASH) {
157
+ slashes.push(index);
158
+ tokens.push(token);
159
+ token = { value: '', depth: 0, isGlob: false };
160
+
161
+ if (finished === true) continue;
162
+ if (prev === CHAR_DOT && index === (start + 1)) {
163
+ start += 2;
164
+ continue;
165
+ }
166
+
167
+ lastIndex = index + 1;
168
+ continue;
169
+ }
170
+
171
+ if (opts.noext !== true) {
172
+ const isExtglobChar = code === CHAR_PLUS
173
+ || code === CHAR_AT
174
+ || code === CHAR_ASTERISK
175
+ || code === CHAR_QUESTION_MARK
176
+ || code === CHAR_EXCLAMATION_MARK;
177
+
178
+ if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
179
+ isGlob = token.isGlob = true;
180
+ isExtglob = token.isExtglob = true;
181
+ finished = true;
182
+ if (code === CHAR_EXCLAMATION_MARK && index === start) {
183
+ negatedExtglob = true;
184
+ }
185
+
186
+ if (scanToEnd === true) {
187
+ let parens = 0;
188
+
189
+ while (eos() !== true && (code = advance())) {
190
+ if (code === CHAR_BACKWARD_SLASH) {
191
+ backslashes = token.backslashes = true;
192
+ advance();
193
+ continue;
194
+ }
195
+
196
+ if (code === CHAR_LEFT_PARENTHESES) {
197
+ parens++;
198
+ continue;
199
+ }
200
+
201
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
202
+ finished = true;
203
+ break;
204
+ }
205
+ }
206
+ continue;
207
+ }
208
+ break;
209
+ }
210
+ }
211
+
212
+ if (code === CHAR_ASTERISK) {
213
+ if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
214
+ isGlob = token.isGlob = true;
215
+ finished = true;
216
+
217
+ if (scanToEnd === true) {
218
+ continue;
219
+ }
220
+ break;
221
+ }
222
+
223
+ if (code === CHAR_QUESTION_MARK) {
224
+ isGlob = token.isGlob = true;
225
+ finished = true;
226
+
227
+ if (scanToEnd === true) {
228
+ continue;
229
+ }
230
+ break;
231
+ }
232
+
233
+ if (code === CHAR_LEFT_SQUARE_BRACKET) {
234
+ while (eos() !== true && (next = advance())) {
235
+ if (next === CHAR_BACKWARD_SLASH) {
236
+ backslashes = token.backslashes = true;
237
+ advance();
238
+ continue;
239
+ }
240
+
241
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
242
+ isBracket = token.isBracket = true;
243
+ isGlob = token.isGlob = true;
244
+ finished = true;
245
+ break;
246
+ }
247
+ }
248
+
249
+ if (scanToEnd === true) {
250
+ continue;
251
+ }
252
+
253
+ break;
254
+ }
255
+
256
+ if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
257
+ negated = token.negated = true;
258
+ start++;
259
+ continue;
260
+ }
261
+
262
+ if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
263
+ isGlob = token.isGlob = true;
264
+
265
+ if (scanToEnd === true) {
266
+ let parens = 1;
267
+
268
+ while (eos() !== true && (code = advance())) {
269
+ if (code === CHAR_BACKWARD_SLASH) {
270
+ backslashes = token.backslashes = true;
271
+ advance();
272
+ continue;
273
+ }
274
+
275
+ if (code === CHAR_LEFT_PARENTHESES) {
276
+ parens++;
277
+ continue;
278
+ }
279
+
280
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
281
+ finished = true;
282
+ break;
283
+ }
284
+ }
285
+ continue;
286
+ }
287
+ break;
288
+ }
289
+
290
+ if (isGlob === true) {
291
+ finished = true;
292
+
293
+ if (scanToEnd === true) {
294
+ continue;
295
+ }
296
+
297
+ break;
298
+ }
299
+ }
300
+
301
+ if (opts.noext === true) {
302
+ isExtglob = false;
303
+ isGlob = false;
304
+ }
305
+
306
+ let base = str;
307
+ let prefix = '';
308
+ let glob = '';
309
+
310
+ if (start > 0) {
311
+ prefix = str.slice(0, start);
312
+ str = str.slice(start);
313
+ lastIndex -= start;
314
+ }
315
+
316
+ if (base && isGlob === true && lastIndex > 0) {
317
+ base = str.slice(0, lastIndex);
318
+ glob = str.slice(lastIndex);
319
+ } else if (isGlob === true) {
320
+ base = '';
321
+ glob = str;
322
+ } else {
323
+ base = str;
324
+ }
325
+
326
+ if (base && base !== '' && base !== '/' && base !== str) {
327
+ if (isPathSeparator(base.charCodeAt(base.length - 1))) {
328
+ base = base.slice(0, -1);
329
+ }
330
+ }
331
+
332
+ if (opts.unescape === true) {
333
+ if (glob) glob = utils.removeBackslashes(glob);
334
+
335
+ if (base && backslashes === true) {
336
+ base = utils.removeBackslashes(base);
337
+ }
338
+ }
339
+
340
+ const state = {
341
+ prefix,
342
+ input,
343
+ start,
344
+ base,
345
+ glob,
346
+ isBrace,
347
+ isBracket,
348
+ isGlob,
349
+ isExtglob,
350
+ isGlobstar,
351
+ negated,
352
+ negatedExtglob
353
+ };
354
+
355
+ if (opts.tokens === true) {
356
+ state.maxDepth = 0;
357
+ if (!isPathSeparator(code)) {
358
+ tokens.push(token);
359
+ }
360
+ state.tokens = tokens;
361
+ }
362
+
363
+ if (opts.parts === true || opts.tokens === true) {
364
+ let prevIndex;
365
+
366
+ for (let idx = 0; idx < slashes.length; idx++) {
367
+ const n = prevIndex !== undefined ? prevIndex + 1 : start;
368
+ const i = slashes[idx];
369
+ const value = input.slice(n, i);
370
+ if (opts.tokens) {
371
+ if (idx === 0 && start !== 0) {
372
+ tokens[idx].isPrefix = true;
373
+ tokens[idx].value = prefix;
374
+ } else {
375
+ tokens[idx].value = value;
376
+ }
377
+ depth(tokens[idx]);
378
+ state.maxDepth += tokens[idx].depth;
379
+ }
380
+ if (i >= start) {
381
+ parts.push(value);
382
+ prevIndex = i;
383
+ }
384
+ }
385
+
386
+ const n = prevIndex !== undefined ? prevIndex + 1 : start;
387
+ const value = input.slice(n);
388
+ parts.push(value);
389
+
390
+ if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
391
+ tokens[tokens.length - 1].value = value;
392
+ depth(tokens[tokens.length - 1]);
393
+ state.maxDepth += tokens[tokens.length - 1].depth;
394
+ }
395
+
396
+ state.slashes = slashes;
397
+ state.parts = parts;
398
+ }
399
+
400
+ return state;
401
+ };
402
+
403
+ module.exports = scan;
@@ -0,0 +1,72 @@
1
+ /*global navigator*/
2
+ 'use strict';
3
+
4
+ const {
5
+ REGEX_BACKSLASH,
6
+ REGEX_REMOVE_BACKSLASH,
7
+ REGEX_SPECIAL_CHARS,
8
+ REGEX_SPECIAL_CHARS_GLOBAL
9
+ } = require('./constants');
10
+
11
+ exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
12
+ exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
13
+ exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
14
+ exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
15
+ exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
16
+
17
+ exports.isWindows = () => {
18
+ if (typeof navigator !== 'undefined' && navigator.platform) {
19
+ const platform = navigator.platform.toLowerCase();
20
+ return platform === 'win32' || platform === 'windows';
21
+ }
22
+
23
+ if (typeof process !== 'undefined' && process.platform) {
24
+ return process.platform === 'win32';
25
+ }
26
+
27
+ return false;
28
+ };
29
+
30
+ exports.removeBackslashes = str => {
31
+ return str.replace(REGEX_REMOVE_BACKSLASH, match => {
32
+ return match === '\\' ? '' : match;
33
+ });
34
+ };
35
+
36
+ exports.escapeLast = (input, char, lastIdx) => {
37
+ const idx = input.lastIndexOf(char, lastIdx);
38
+ if (idx === -1) return input;
39
+ if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
40
+ return `${input.slice(0, idx)}\\${input.slice(idx)}`;
41
+ };
42
+
43
+ exports.removePrefix = (input, state = {}) => {
44
+ let output = input;
45
+ if (output.startsWith('./')) {
46
+ output = output.slice(2);
47
+ state.prefix = './';
48
+ }
49
+ return output;
50
+ };
51
+
52
+ exports.wrapOutput = (input, state = {}, options = {}) => {
53
+ const prepend = options.contains ? '' : '^';
54
+ const append = options.contains ? '' : '$';
55
+
56
+ let output = `${prepend}(?:${input})${append}`;
57
+ if (state.negated === true) {
58
+ output = `(?:^(?!${output}).*$)`;
59
+ }
60
+ return output;
61
+ };
62
+
63
+ exports.basename = (path, { windows } = {}) => {
64
+ const segs = path.split(windows ? /[\\/]/ : '/');
65
+ const last = segs[segs.length - 1];
66
+
67
+ if (last === '') {
68
+ return segs[segs.length - 2];
69
+ }
70
+
71
+ return last;
72
+ };
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "picomatch",
3
+ "description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
4
+ "version": "4.0.8-backpatch-00001",
5
+ "homepage": "https://github.com/micromatch/picomatch",
6
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
+ "funding": "https://github.com/sponsors/jonschlinkert",
8
+ "repository": "micromatch/picomatch",
9
+ "bugs": {
10
+ "url": "https://github.com/micromatch/picomatch/issues"
11
+ },
12
+ "license": "MIT",
13
+ "files": [
14
+ "index.js",
15
+ "posix.js",
16
+ "lib"
17
+ ],
18
+ "sideEffects": false,
19
+ "main": "index.js",
20
+ "engines": {
21
+ "node": ">=12"
22
+ },
23
+ "scripts": {
24
+ "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
25
+ "mocha": "mocha --reporter dot",
26
+ "test": "npm run lint && npm run mocha",
27
+ "test:ci": "npm run test:cover",
28
+ "test:cover": "nyc npm run mocha"
29
+ },
30
+ "devDependencies": {
31
+ "eslint": "^8.57.0",
32
+ "fill-range": "^7.0.1",
33
+ "gulp-format-md": "^2.0.0",
34
+ "mocha": "^10.4.0",
35
+ "nyc": "^15.1.0"
36
+ },
37
+ "keywords": [
38
+ "glob",
39
+ "match",
40
+ "picomatch"
41
+ ],
42
+ "nyc": {
43
+ "reporter": [
44
+ "html",
45
+ "lcov",
46
+ "text-summary",
47
+ "cobertura"
48
+ ]
49
+ },
50
+ "verb": {
51
+ "toc": {
52
+ "render": true,
53
+ "method": "preWrite",
54
+ "maxdepth": 3
55
+ },
56
+ "layout": "empty",
57
+ "tasks": [
58
+ "readme"
59
+ ],
60
+ "plugins": [
61
+ "gulp-format-md"
62
+ ],
63
+ "lint": {
64
+ "reflinks": true
65
+ },
66
+ "related": {
67
+ "list": [
68
+ "braces",
69
+ "micromatch"
70
+ ]
71
+ },
72
+ "reflinks": [
73
+ "braces",
74
+ "expand-brackets",
75
+ "extglob",
76
+ "fill-range",
77
+ "micromatch",
78
+ "minimatch",
79
+ "nanomatch",
80
+ "picomatch"
81
+ ]
82
+ }
83
+ }
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ module.exports = require('./lib/picomatch');