path-serializer 0.0.1 → 0.0.2
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/README.md +10 -25
- package/package.json +32 -28
- package/dist/cjs/{index.d.ts → index.d.cts} +0 -0
- package/dist/cjs/{main.js → main.cjs} +190 -190
- package/dist/esm/{index.d.mts → index.d.ts} +0 -0
- package/dist/esm/{main.mjs → main.js} +189 -189
package/README.md
CHANGED
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# path-serializer
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Usage
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```typescript
|
|
6
|
+
// vitest.setup.ts
|
|
7
|
+
import { createSnapshotSerializer } from 'path-serializer';
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Start the dev server:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pnpm dev
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Build the app for production:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pnpm build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Preview the production build locally:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pnpm preview
|
|
9
|
+
expect.addSnapshotSerializer(
|
|
10
|
+
createSnapshotSerializer({
|
|
11
|
+
workspace: path.join(__dirname, '..'),
|
|
12
|
+
}),
|
|
13
|
+
);
|
|
29
14
|
```
|
package/package.json
CHANGED
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "path-serializer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "path-serializer",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist",
|
|
7
|
-
"README.md",
|
|
8
|
-
"LICENSE"
|
|
9
|
-
],
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./dist/esm/index.d.mts",
|
|
13
|
-
"import": "./dist/esm/main.js",
|
|
14
|
-
"require": "./dist/cjs/main.cjs"
|
|
15
|
-
},
|
|
16
|
-
"./package.json": "./package.json"
|
|
17
|
-
},
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "https://github.com/rspack-contrib/path-serializer.git"
|
|
21
|
-
},
|
|
22
5
|
"keywords": [
|
|
23
6
|
"snapshot",
|
|
24
7
|
"vitest",
|
|
@@ -26,35 +9,56 @@
|
|
|
26
9
|
"ci",
|
|
27
10
|
"test"
|
|
28
11
|
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/rspack-contrib/path-serializer.git"
|
|
16
|
+
},
|
|
29
17
|
"license": "MIT",
|
|
30
18
|
"author": "sooniter",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/esm/index.d.ts",
|
|
22
|
+
"import": "./dist/esm/main.js",
|
|
23
|
+
"require": "./dist/cjs/main.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json"
|
|
26
|
+
},
|
|
31
27
|
"main": "./dist/cjs/main.cjs",
|
|
32
|
-
"
|
|
28
|
+
"module": "./dist/esm/main.js",
|
|
29
|
+
"types": "./dist/esm/index.d.ts",
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"README.md",
|
|
33
|
+
"LICENSE"
|
|
34
|
+
],
|
|
35
|
+
"simple-git-hooks": {
|
|
36
|
+
"pre-commit": "npx nano-staged"
|
|
37
|
+
},
|
|
33
38
|
"devDependencies": {
|
|
34
39
|
"@biomejs/biome": "^1.8.3",
|
|
40
|
+
"@microsoft/api-extractor": "^7.47.5",
|
|
35
41
|
"@rslib/core": "file:./scripts/rslib-core-0.0.0.tgz",
|
|
36
|
-
"
|
|
42
|
+
"@types/lodash-es": "^4.17.12",
|
|
37
43
|
"@types/node": "^22.1.0",
|
|
38
|
-
"upath": "^2.0.1",
|
|
39
44
|
"lodash-es": "^4.17.21",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
45
|
+
"nano-staged": "^0.8.0",
|
|
46
|
+
"simple-git-hooks": "^2.11.1",
|
|
47
|
+
"typescript": "^5.5.2",
|
|
48
|
+
"upath": "^2.0.1"
|
|
42
49
|
},
|
|
43
50
|
"publishConfig": {
|
|
44
51
|
"access": "public",
|
|
45
52
|
"registry": "https://registry.npmjs.org/"
|
|
46
53
|
},
|
|
47
54
|
"nano-staged": {
|
|
48
|
-
"*.{js,jsx,ts,tsx,mjs,cjs}": [
|
|
55
|
+
"*.{js,jsx,ts,tsx,mjs,cjs,json}": [
|
|
49
56
|
"biome check --write --no-errors-on-unmatched"
|
|
50
57
|
]
|
|
51
58
|
},
|
|
52
59
|
"scripts": {
|
|
53
60
|
"build": "rslib build",
|
|
54
|
-
"check": "biome check --write",
|
|
55
61
|
"dev": "rslib build --watch",
|
|
56
|
-
"
|
|
57
|
-
"preview": "rsbuild preview",
|
|
58
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
62
|
+
"lint": "biome check --write"
|
|
59
63
|
}
|
|
60
64
|
}
|
|
File without changes
|
|
@@ -269,18 +269,126 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
269
269
|
createSnapshotSerializer: () => (/* reexport */ createSnapshotSerializer)
|
|
270
270
|
});
|
|
271
271
|
|
|
272
|
-
;// CONCATENATED MODULE: external "node:path"
|
|
273
|
-
var external_node_path_namespaceObject = require("node:path");
|
|
274
|
-
var external_node_path_default = /*#__PURE__*/__webpack_require__.n(external_node_path_namespaceObject);
|
|
275
272
|
;// CONCATENATED MODULE: external "node:os"
|
|
276
273
|
var external_node_os_namespaceObject = require("node:os");
|
|
277
274
|
var external_node_os_default = /*#__PURE__*/__webpack_require__.n(external_node_os_namespaceObject);
|
|
278
|
-
;// CONCATENATED MODULE:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
275
|
+
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js
|
|
276
|
+
/**
|
|
277
|
+
* A specialized version of `_.reduce` for arrays without support for
|
|
278
|
+
* iteratee shorthands.
|
|
279
|
+
*
|
|
280
|
+
* @private
|
|
281
|
+
* @param {Array} [array] The array to iterate over.
|
|
282
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
283
|
+
* @param {*} [accumulator] The initial value.
|
|
284
|
+
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
285
|
+
* the initial value.
|
|
286
|
+
* @returns {*} Returns the accumulated value.
|
|
287
|
+
*/
|
|
288
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
289
|
+
var index = -1,
|
|
290
|
+
length = array == null ? 0 : array.length;
|
|
291
|
+
|
|
292
|
+
if (initAccum && length) {
|
|
293
|
+
accumulator = array[++index];
|
|
294
|
+
}
|
|
295
|
+
while (++index < length) {
|
|
296
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
|
297
|
+
}
|
|
298
|
+
return accumulator;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* harmony default export */ const _arrayReduce = (arrayReduce);
|
|
302
|
+
|
|
303
|
+
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js
|
|
304
|
+
/**
|
|
305
|
+
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
306
|
+
*
|
|
307
|
+
* @private
|
|
308
|
+
* @param {Object} object The object to query.
|
|
309
|
+
* @returns {Function} Returns the new accessor function.
|
|
310
|
+
*/
|
|
311
|
+
function basePropertyOf(object) {
|
|
312
|
+
return function(key) {
|
|
313
|
+
return object == null ? undefined : object[key];
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* harmony default export */ const _basePropertyOf = (basePropertyOf);
|
|
318
|
+
|
|
319
|
+
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
323
|
+
var deburredLetters = {
|
|
324
|
+
// Latin-1 Supplement block.
|
|
325
|
+
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
326
|
+
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
327
|
+
'\xc7': 'C', '\xe7': 'c',
|
|
328
|
+
'\xd0': 'D', '\xf0': 'd',
|
|
329
|
+
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
330
|
+
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
331
|
+
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
332
|
+
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
333
|
+
'\xd1': 'N', '\xf1': 'n',
|
|
334
|
+
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
335
|
+
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
336
|
+
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
337
|
+
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
338
|
+
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
339
|
+
'\xc6': 'Ae', '\xe6': 'ae',
|
|
340
|
+
'\xde': 'Th', '\xfe': 'th',
|
|
341
|
+
'\xdf': 'ss',
|
|
342
|
+
// Latin Extended-A block.
|
|
343
|
+
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
344
|
+
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
345
|
+
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
346
|
+
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
347
|
+
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
348
|
+
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
349
|
+
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
350
|
+
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
351
|
+
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
352
|
+
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
353
|
+
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
354
|
+
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
355
|
+
'\u0134': 'J', '\u0135': 'j',
|
|
356
|
+
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
357
|
+
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
358
|
+
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
359
|
+
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
360
|
+
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
361
|
+
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
362
|
+
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
363
|
+
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
364
|
+
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
365
|
+
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
366
|
+
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
367
|
+
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
368
|
+
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
369
|
+
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
370
|
+
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
371
|
+
'\u0174': 'W', '\u0175': 'w',
|
|
372
|
+
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
373
|
+
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
374
|
+
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
375
|
+
'\u0132': 'IJ', '\u0133': 'ij',
|
|
376
|
+
'\u0152': 'Oe', '\u0153': 'oe',
|
|
377
|
+
'\u0149': "'n", '\u017f': 's'
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
382
|
+
* letters to basic Latin letters.
|
|
383
|
+
*
|
|
384
|
+
* @private
|
|
385
|
+
* @param {string} letter The matched letter to deburr.
|
|
386
|
+
* @returns {string} Returns the deburred letter.
|
|
387
|
+
*/
|
|
388
|
+
var deburrLetter = _basePropertyOf(deburredLetters);
|
|
389
|
+
|
|
390
|
+
/* harmony default export */ const _deburrLetter = (deburrLetter);
|
|
391
|
+
|
|
284
392
|
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
|
|
285
393
|
/** Detect free variable `global` from Node.js. */
|
|
286
394
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -590,187 +698,6 @@ function toString_toString(value) {
|
|
|
590
698
|
|
|
591
699
|
/* harmony default export */ const lodash_es_toString = (toString_toString);
|
|
592
700
|
|
|
593
|
-
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* Used to match `RegExp`
|
|
598
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
599
|
-
*/
|
|
600
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
|
|
601
|
-
reHasRegExpChar = RegExp(reRegExpChar.source);
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
|
|
605
|
-
* "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
|
|
606
|
-
*
|
|
607
|
-
* @static
|
|
608
|
-
* @memberOf _
|
|
609
|
-
* @since 3.0.0
|
|
610
|
-
* @category String
|
|
611
|
-
* @param {string} [string=''] The string to escape.
|
|
612
|
-
* @returns {string} Returns the escaped string.
|
|
613
|
-
* @example
|
|
614
|
-
*
|
|
615
|
-
* _.escapeRegExp('[lodash](https://lodash.com/)');
|
|
616
|
-
* // => '\[lodash\]\(https://lodash\.com/\)'
|
|
617
|
-
*/
|
|
618
|
-
function escapeRegExp(string) {
|
|
619
|
-
string = lodash_es_toString(string);
|
|
620
|
-
return (string && reHasRegExpChar.test(string))
|
|
621
|
-
? string.replace(reRegExpChar, '\\$&')
|
|
622
|
-
: string;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/* harmony default export */ const lodash_es_escapeRegExp = (escapeRegExp);
|
|
626
|
-
|
|
627
|
-
;// CONCATENATED MODULE: ./src/utils.ts
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
const isPathString = (test)=>external_node_path_default().posix.basename(test) !== test || external_node_path_default().win32.basename(test) !== test;
|
|
634
|
-
function utils_getRealTemporaryDirectory() {
|
|
635
|
-
let ret = null;
|
|
636
|
-
try {
|
|
637
|
-
ret = external_node_os_default().tmpdir();
|
|
638
|
-
ret = external_node_fs_default().realpathSync(ret);
|
|
639
|
-
} catch {}
|
|
640
|
-
return ret;
|
|
641
|
-
}
|
|
642
|
-
const normalizeToPosixPath = (p)=>upath_default().normalizeSafe(external_node_path_default().normalize(p || '')).replace(/^([a-zA-Z]+):/, (_, m)=>`/${m.toLowerCase()}`);
|
|
643
|
-
/**
|
|
644
|
-
* Compile path string to RegExp.
|
|
645
|
-
* @note Only support posix path.
|
|
646
|
-
*/ function compilePathMatcherRegExp(match) {
|
|
647
|
-
if (typeof match !== 'string') {
|
|
648
|
-
return match;
|
|
649
|
-
}
|
|
650
|
-
const escaped = lodash_es_escapeRegExp(match);
|
|
651
|
-
return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
|
|
652
|
-
}
|
|
653
|
-
function splitPathString(str) {
|
|
654
|
-
return str.split(/[\\/]/);
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js
|
|
658
|
-
/**
|
|
659
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
660
|
-
* iteratee shorthands.
|
|
661
|
-
*
|
|
662
|
-
* @private
|
|
663
|
-
* @param {Array} [array] The array to iterate over.
|
|
664
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
665
|
-
* @param {*} [accumulator] The initial value.
|
|
666
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
667
|
-
* the initial value.
|
|
668
|
-
* @returns {*} Returns the accumulated value.
|
|
669
|
-
*/
|
|
670
|
-
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
671
|
-
var index = -1,
|
|
672
|
-
length = array == null ? 0 : array.length;
|
|
673
|
-
|
|
674
|
-
if (initAccum && length) {
|
|
675
|
-
accumulator = array[++index];
|
|
676
|
-
}
|
|
677
|
-
while (++index < length) {
|
|
678
|
-
accumulator = iteratee(accumulator, array[index], index, array);
|
|
679
|
-
}
|
|
680
|
-
return accumulator;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
/* harmony default export */ const _arrayReduce = (arrayReduce);
|
|
684
|
-
|
|
685
|
-
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js
|
|
686
|
-
/**
|
|
687
|
-
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
688
|
-
*
|
|
689
|
-
* @private
|
|
690
|
-
* @param {Object} object The object to query.
|
|
691
|
-
* @returns {Function} Returns the new accessor function.
|
|
692
|
-
*/
|
|
693
|
-
function basePropertyOf(object) {
|
|
694
|
-
return function(key) {
|
|
695
|
-
return object == null ? undefined : object[key];
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
/* harmony default export */ const _basePropertyOf = (basePropertyOf);
|
|
700
|
-
|
|
701
|
-
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
705
|
-
var deburredLetters = {
|
|
706
|
-
// Latin-1 Supplement block.
|
|
707
|
-
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
708
|
-
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
709
|
-
'\xc7': 'C', '\xe7': 'c',
|
|
710
|
-
'\xd0': 'D', '\xf0': 'd',
|
|
711
|
-
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
712
|
-
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
713
|
-
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
714
|
-
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
715
|
-
'\xd1': 'N', '\xf1': 'n',
|
|
716
|
-
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
717
|
-
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
718
|
-
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
719
|
-
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
720
|
-
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
721
|
-
'\xc6': 'Ae', '\xe6': 'ae',
|
|
722
|
-
'\xde': 'Th', '\xfe': 'th',
|
|
723
|
-
'\xdf': 'ss',
|
|
724
|
-
// Latin Extended-A block.
|
|
725
|
-
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
726
|
-
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
727
|
-
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
728
|
-
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
729
|
-
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
730
|
-
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
731
|
-
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
732
|
-
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
733
|
-
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
734
|
-
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
735
|
-
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
736
|
-
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
737
|
-
'\u0134': 'J', '\u0135': 'j',
|
|
738
|
-
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
739
|
-
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
740
|
-
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
741
|
-
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
742
|
-
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
743
|
-
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
744
|
-
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
745
|
-
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
746
|
-
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
747
|
-
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
748
|
-
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
749
|
-
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
750
|
-
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
751
|
-
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
752
|
-
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
753
|
-
'\u0174': 'W', '\u0175': 'w',
|
|
754
|
-
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
755
|
-
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
756
|
-
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
757
|
-
'\u0132': 'IJ', '\u0133': 'ij',
|
|
758
|
-
'\u0152': 'Oe', '\u0153': 'oe',
|
|
759
|
-
'\u0149': "'n", '\u017f': 's'
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
764
|
-
* letters to basic Latin letters.
|
|
765
|
-
*
|
|
766
|
-
* @private
|
|
767
|
-
* @param {string} letter The matched letter to deburr.
|
|
768
|
-
* @returns {string} Returns the deburred letter.
|
|
769
|
-
*/
|
|
770
|
-
var deburrLetter = _basePropertyOf(deburredLetters);
|
|
771
|
-
|
|
772
|
-
/* harmony default export */ const _deburrLetter = (deburrLetter);
|
|
773
|
-
|
|
774
701
|
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js
|
|
775
702
|
|
|
776
703
|
|
|
@@ -1016,6 +943,79 @@ var snakeCase_snakeCase = _createCompounder(function(result, word, index) {
|
|
|
1016
943
|
|
|
1017
944
|
/* harmony default export */ const snakeCase = (snakeCase_snakeCase);
|
|
1018
945
|
|
|
946
|
+
;// CONCATENATED MODULE: external "node:fs"
|
|
947
|
+
var external_node_fs_namespaceObject = require("node:fs");
|
|
948
|
+
var external_node_fs_default = /*#__PURE__*/__webpack_require__.n(external_node_fs_namespaceObject);
|
|
949
|
+
;// CONCATENATED MODULE: external "node:path"
|
|
950
|
+
var external_node_path_namespaceObject = require("node:path");
|
|
951
|
+
var external_node_path_default = /*#__PURE__*/__webpack_require__.n(external_node_path_namespaceObject);
|
|
952
|
+
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Used to match `RegExp`
|
|
957
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
958
|
+
*/
|
|
959
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
|
|
960
|
+
reHasRegExpChar = RegExp(reRegExpChar.source);
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
|
|
964
|
+
* "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
|
|
965
|
+
*
|
|
966
|
+
* @static
|
|
967
|
+
* @memberOf _
|
|
968
|
+
* @since 3.0.0
|
|
969
|
+
* @category String
|
|
970
|
+
* @param {string} [string=''] The string to escape.
|
|
971
|
+
* @returns {string} Returns the escaped string.
|
|
972
|
+
* @example
|
|
973
|
+
*
|
|
974
|
+
* _.escapeRegExp('[lodash](https://lodash.com/)');
|
|
975
|
+
* // => '\[lodash\]\(https://lodash\.com/\)'
|
|
976
|
+
*/
|
|
977
|
+
function escapeRegExp(string) {
|
|
978
|
+
string = lodash_es_toString(string);
|
|
979
|
+
return (string && reHasRegExpChar.test(string))
|
|
980
|
+
? string.replace(reRegExpChar, '\\$&')
|
|
981
|
+
: string;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/* harmony default export */ const lodash_es_escapeRegExp = (escapeRegExp);
|
|
985
|
+
|
|
986
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js
|
|
987
|
+
var upath = __webpack_require__("./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js");
|
|
988
|
+
var upath_default = /*#__PURE__*/__webpack_require__.n(upath);
|
|
989
|
+
;// CONCATENATED MODULE: ./src/utils.ts
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
const isPathString = (test)=>external_node_path_default().posix.basename(test) !== test || external_node_path_default().win32.basename(test) !== test;
|
|
996
|
+
function utils_getRealTemporaryDirectory() {
|
|
997
|
+
let ret = null;
|
|
998
|
+
try {
|
|
999
|
+
ret = external_node_os_default().tmpdir();
|
|
1000
|
+
ret = external_node_fs_default().realpathSync(ret);
|
|
1001
|
+
} catch {}
|
|
1002
|
+
return ret;
|
|
1003
|
+
}
|
|
1004
|
+
const normalizeToPosixPath = (p)=>upath_default().normalizeSafe(external_node_path_default().normalize(p || '')).replace(/^([a-zA-Z]+):/, (_, m)=>`/${m.toLowerCase()}`);
|
|
1005
|
+
/**
|
|
1006
|
+
* Compile path string to RegExp.
|
|
1007
|
+
* @note Only support posix path.
|
|
1008
|
+
*/ function compilePathMatcherRegExp(match) {
|
|
1009
|
+
if (typeof match !== 'string') {
|
|
1010
|
+
return match;
|
|
1011
|
+
}
|
|
1012
|
+
const escaped = lodash_es_escapeRegExp(match);
|
|
1013
|
+
return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
|
|
1014
|
+
}
|
|
1015
|
+
function splitPathString(str) {
|
|
1016
|
+
return str.split(/[\\/]/);
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
1019
|
;// CONCATENATED MODULE: ./src/applyMatcherReplacement.ts
|
|
1020
1020
|
|
|
1021
1021
|
|
|
File without changes
|
|
@@ -249,18 +249,126 @@ __webpack_require__.o = function (obj, prop) {
|
|
|
249
249
|
/************************************************************************/
|
|
250
250
|
var __webpack_exports__ = {};
|
|
251
251
|
|
|
252
|
-
;// CONCATENATED MODULE: external "node:path"
|
|
253
|
-
|
|
254
|
-
var external_node_path_default = /*#__PURE__*/__webpack_require__.n(external_node_path_namespaceObject);
|
|
255
252
|
;// CONCATENATED MODULE: external "node:os"
|
|
256
253
|
|
|
257
254
|
var external_node_os_default = /*#__PURE__*/__webpack_require__.n(external_node_os_namespaceObject);
|
|
258
|
-
;// CONCATENATED MODULE:
|
|
255
|
+
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js
|
|
256
|
+
/**
|
|
257
|
+
* A specialized version of `_.reduce` for arrays without support for
|
|
258
|
+
* iteratee shorthands.
|
|
259
|
+
*
|
|
260
|
+
* @private
|
|
261
|
+
* @param {Array} [array] The array to iterate over.
|
|
262
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
263
|
+
* @param {*} [accumulator] The initial value.
|
|
264
|
+
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
265
|
+
* the initial value.
|
|
266
|
+
* @returns {*} Returns the accumulated value.
|
|
267
|
+
*/
|
|
268
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
269
|
+
var index = -1,
|
|
270
|
+
length = array == null ? 0 : array.length;
|
|
271
|
+
|
|
272
|
+
if (initAccum && length) {
|
|
273
|
+
accumulator = array[++index];
|
|
274
|
+
}
|
|
275
|
+
while (++index < length) {
|
|
276
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
|
277
|
+
}
|
|
278
|
+
return accumulator;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* harmony default export */ const _arrayReduce = (arrayReduce);
|
|
282
|
+
|
|
283
|
+
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js
|
|
284
|
+
/**
|
|
285
|
+
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
286
|
+
*
|
|
287
|
+
* @private
|
|
288
|
+
* @param {Object} object The object to query.
|
|
289
|
+
* @returns {Function} Returns the new accessor function.
|
|
290
|
+
*/
|
|
291
|
+
function basePropertyOf(object) {
|
|
292
|
+
return function(key) {
|
|
293
|
+
return object == null ? undefined : object[key];
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* harmony default export */ const _basePropertyOf = (basePropertyOf);
|
|
298
|
+
|
|
299
|
+
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
303
|
+
var deburredLetters = {
|
|
304
|
+
// Latin-1 Supplement block.
|
|
305
|
+
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
306
|
+
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
307
|
+
'\xc7': 'C', '\xe7': 'c',
|
|
308
|
+
'\xd0': 'D', '\xf0': 'd',
|
|
309
|
+
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
310
|
+
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
311
|
+
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
312
|
+
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
313
|
+
'\xd1': 'N', '\xf1': 'n',
|
|
314
|
+
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
315
|
+
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
316
|
+
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
317
|
+
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
318
|
+
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
319
|
+
'\xc6': 'Ae', '\xe6': 'ae',
|
|
320
|
+
'\xde': 'Th', '\xfe': 'th',
|
|
321
|
+
'\xdf': 'ss',
|
|
322
|
+
// Latin Extended-A block.
|
|
323
|
+
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
324
|
+
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
325
|
+
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
326
|
+
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
327
|
+
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
328
|
+
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
329
|
+
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
330
|
+
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
331
|
+
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
332
|
+
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
333
|
+
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
334
|
+
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
335
|
+
'\u0134': 'J', '\u0135': 'j',
|
|
336
|
+
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
337
|
+
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
338
|
+
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
339
|
+
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
340
|
+
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
341
|
+
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
342
|
+
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
343
|
+
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
344
|
+
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
345
|
+
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
346
|
+
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
347
|
+
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
348
|
+
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
349
|
+
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
350
|
+
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
351
|
+
'\u0174': 'W', '\u0175': 'w',
|
|
352
|
+
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
353
|
+
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
354
|
+
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
355
|
+
'\u0132': 'IJ', '\u0133': 'ij',
|
|
356
|
+
'\u0152': 'Oe', '\u0153': 'oe',
|
|
357
|
+
'\u0149': "'n", '\u017f': 's'
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
362
|
+
* letters to basic Latin letters.
|
|
363
|
+
*
|
|
364
|
+
* @private
|
|
365
|
+
* @param {string} letter The matched letter to deburr.
|
|
366
|
+
* @returns {string} Returns the deburred letter.
|
|
367
|
+
*/
|
|
368
|
+
var deburrLetter = _basePropertyOf(deburredLetters);
|
|
369
|
+
|
|
370
|
+
/* harmony default export */ const _deburrLetter = (deburrLetter);
|
|
259
371
|
|
|
260
|
-
var external_node_fs_default = /*#__PURE__*/__webpack_require__.n(external_node_fs_namespaceObject);
|
|
261
|
-
// EXTERNAL MODULE: ./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js
|
|
262
|
-
var upath = __webpack_require__("./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js");
|
|
263
|
-
var upath_default = /*#__PURE__*/__webpack_require__.n(upath);
|
|
264
372
|
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
|
|
265
373
|
/** Detect free variable `global` from Node.js. */
|
|
266
374
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -570,187 +678,6 @@ function toString_toString(value) {
|
|
|
570
678
|
|
|
571
679
|
/* harmony default export */ const lodash_es_toString = (toString_toString);
|
|
572
680
|
|
|
573
|
-
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* Used to match `RegExp`
|
|
578
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
579
|
-
*/
|
|
580
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
|
|
581
|
-
reHasRegExpChar = RegExp(reRegExpChar.source);
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
|
|
585
|
-
* "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
|
|
586
|
-
*
|
|
587
|
-
* @static
|
|
588
|
-
* @memberOf _
|
|
589
|
-
* @since 3.0.0
|
|
590
|
-
* @category String
|
|
591
|
-
* @param {string} [string=''] The string to escape.
|
|
592
|
-
* @returns {string} Returns the escaped string.
|
|
593
|
-
* @example
|
|
594
|
-
*
|
|
595
|
-
* _.escapeRegExp('[lodash](https://lodash.com/)');
|
|
596
|
-
* // => '\[lodash\]\(https://lodash\.com/\)'
|
|
597
|
-
*/
|
|
598
|
-
function escapeRegExp(string) {
|
|
599
|
-
string = lodash_es_toString(string);
|
|
600
|
-
return (string && reHasRegExpChar.test(string))
|
|
601
|
-
? string.replace(reRegExpChar, '\\$&')
|
|
602
|
-
: string;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
/* harmony default export */ const lodash_es_escapeRegExp = (escapeRegExp);
|
|
606
|
-
|
|
607
|
-
;// CONCATENATED MODULE: ./src/utils.ts
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
const isPathString = (test)=>external_node_path_default().posix.basename(test) !== test || external_node_path_default().win32.basename(test) !== test;
|
|
614
|
-
function utils_getRealTemporaryDirectory() {
|
|
615
|
-
let ret = null;
|
|
616
|
-
try {
|
|
617
|
-
ret = external_node_os_default().tmpdir();
|
|
618
|
-
ret = external_node_fs_default().realpathSync(ret);
|
|
619
|
-
} catch {}
|
|
620
|
-
return ret;
|
|
621
|
-
}
|
|
622
|
-
const normalizeToPosixPath = (p)=>upath_default().normalizeSafe(external_node_path_default().normalize(p || '')).replace(/^([a-zA-Z]+):/, (_, m)=>`/${m.toLowerCase()}`);
|
|
623
|
-
/**
|
|
624
|
-
* Compile path string to RegExp.
|
|
625
|
-
* @note Only support posix path.
|
|
626
|
-
*/ function compilePathMatcherRegExp(match) {
|
|
627
|
-
if (typeof match !== 'string') {
|
|
628
|
-
return match;
|
|
629
|
-
}
|
|
630
|
-
const escaped = lodash_es_escapeRegExp(match);
|
|
631
|
-
return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
|
|
632
|
-
}
|
|
633
|
-
function splitPathString(str) {
|
|
634
|
-
return str.split(/[\\/]/);
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js
|
|
638
|
-
/**
|
|
639
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
640
|
-
* iteratee shorthands.
|
|
641
|
-
*
|
|
642
|
-
* @private
|
|
643
|
-
* @param {Array} [array] The array to iterate over.
|
|
644
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
645
|
-
* @param {*} [accumulator] The initial value.
|
|
646
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
647
|
-
* the initial value.
|
|
648
|
-
* @returns {*} Returns the accumulated value.
|
|
649
|
-
*/
|
|
650
|
-
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
651
|
-
var index = -1,
|
|
652
|
-
length = array == null ? 0 : array.length;
|
|
653
|
-
|
|
654
|
-
if (initAccum && length) {
|
|
655
|
-
accumulator = array[++index];
|
|
656
|
-
}
|
|
657
|
-
while (++index < length) {
|
|
658
|
-
accumulator = iteratee(accumulator, array[index], index, array);
|
|
659
|
-
}
|
|
660
|
-
return accumulator;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/* harmony default export */ const _arrayReduce = (arrayReduce);
|
|
664
|
-
|
|
665
|
-
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js
|
|
666
|
-
/**
|
|
667
|
-
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
668
|
-
*
|
|
669
|
-
* @private
|
|
670
|
-
* @param {Object} object The object to query.
|
|
671
|
-
* @returns {Function} Returns the new accessor function.
|
|
672
|
-
*/
|
|
673
|
-
function basePropertyOf(object) {
|
|
674
|
-
return function(key) {
|
|
675
|
-
return object == null ? undefined : object[key];
|
|
676
|
-
};
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/* harmony default export */ const _basePropertyOf = (basePropertyOf);
|
|
680
|
-
|
|
681
|
-
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
685
|
-
var deburredLetters = {
|
|
686
|
-
// Latin-1 Supplement block.
|
|
687
|
-
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
688
|
-
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
689
|
-
'\xc7': 'C', '\xe7': 'c',
|
|
690
|
-
'\xd0': 'D', '\xf0': 'd',
|
|
691
|
-
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
692
|
-
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
693
|
-
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
694
|
-
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
695
|
-
'\xd1': 'N', '\xf1': 'n',
|
|
696
|
-
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
697
|
-
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
698
|
-
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
699
|
-
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
700
|
-
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
701
|
-
'\xc6': 'Ae', '\xe6': 'ae',
|
|
702
|
-
'\xde': 'Th', '\xfe': 'th',
|
|
703
|
-
'\xdf': 'ss',
|
|
704
|
-
// Latin Extended-A block.
|
|
705
|
-
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
706
|
-
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
707
|
-
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
708
|
-
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
709
|
-
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
710
|
-
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
711
|
-
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
712
|
-
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
713
|
-
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
714
|
-
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
715
|
-
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
716
|
-
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
717
|
-
'\u0134': 'J', '\u0135': 'j',
|
|
718
|
-
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
719
|
-
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
720
|
-
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
721
|
-
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
722
|
-
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
723
|
-
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
724
|
-
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
725
|
-
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
726
|
-
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
727
|
-
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
728
|
-
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
729
|
-
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
730
|
-
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
731
|
-
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
732
|
-
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
733
|
-
'\u0174': 'W', '\u0175': 'w',
|
|
734
|
-
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
735
|
-
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
736
|
-
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
737
|
-
'\u0132': 'IJ', '\u0133': 'ij',
|
|
738
|
-
'\u0152': 'Oe', '\u0153': 'oe',
|
|
739
|
-
'\u0149': "'n", '\u017f': 's'
|
|
740
|
-
};
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
744
|
-
* letters to basic Latin letters.
|
|
745
|
-
*
|
|
746
|
-
* @private
|
|
747
|
-
* @param {string} letter The matched letter to deburr.
|
|
748
|
-
* @returns {string} Returns the deburred letter.
|
|
749
|
-
*/
|
|
750
|
-
var deburrLetter = _basePropertyOf(deburredLetters);
|
|
751
|
-
|
|
752
|
-
/* harmony default export */ const _deburrLetter = (deburrLetter);
|
|
753
|
-
|
|
754
681
|
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js
|
|
755
682
|
|
|
756
683
|
|
|
@@ -996,6 +923,79 @@ var snakeCase_snakeCase = _createCompounder(function(result, word, index) {
|
|
|
996
923
|
|
|
997
924
|
/* harmony default export */ const snakeCase = (snakeCase_snakeCase);
|
|
998
925
|
|
|
926
|
+
;// CONCATENATED MODULE: external "node:fs"
|
|
927
|
+
|
|
928
|
+
var external_node_fs_default = /*#__PURE__*/__webpack_require__.n(external_node_fs_namespaceObject);
|
|
929
|
+
;// CONCATENATED MODULE: external "node:path"
|
|
930
|
+
|
|
931
|
+
var external_node_path_default = /*#__PURE__*/__webpack_require__.n(external_node_path_namespaceObject);
|
|
932
|
+
;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Used to match `RegExp`
|
|
937
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
938
|
+
*/
|
|
939
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
|
|
940
|
+
reHasRegExpChar = RegExp(reRegExpChar.source);
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
|
|
944
|
+
* "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
|
|
945
|
+
*
|
|
946
|
+
* @static
|
|
947
|
+
* @memberOf _
|
|
948
|
+
* @since 3.0.0
|
|
949
|
+
* @category String
|
|
950
|
+
* @param {string} [string=''] The string to escape.
|
|
951
|
+
* @returns {string} Returns the escaped string.
|
|
952
|
+
* @example
|
|
953
|
+
*
|
|
954
|
+
* _.escapeRegExp('[lodash](https://lodash.com/)');
|
|
955
|
+
* // => '\[lodash\]\(https://lodash\.com/\)'
|
|
956
|
+
*/
|
|
957
|
+
function escapeRegExp(string) {
|
|
958
|
+
string = lodash_es_toString(string);
|
|
959
|
+
return (string && reHasRegExpChar.test(string))
|
|
960
|
+
? string.replace(reRegExpChar, '\\$&')
|
|
961
|
+
: string;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/* harmony default export */ const lodash_es_escapeRegExp = (escapeRegExp);
|
|
965
|
+
|
|
966
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js
|
|
967
|
+
var upath = __webpack_require__("./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js");
|
|
968
|
+
var upath_default = /*#__PURE__*/__webpack_require__.n(upath);
|
|
969
|
+
;// CONCATENATED MODULE: ./src/utils.ts
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
const isPathString = (test)=>external_node_path_default().posix.basename(test) !== test || external_node_path_default().win32.basename(test) !== test;
|
|
976
|
+
function utils_getRealTemporaryDirectory() {
|
|
977
|
+
let ret = null;
|
|
978
|
+
try {
|
|
979
|
+
ret = external_node_os_default().tmpdir();
|
|
980
|
+
ret = external_node_fs_default().realpathSync(ret);
|
|
981
|
+
} catch {}
|
|
982
|
+
return ret;
|
|
983
|
+
}
|
|
984
|
+
const normalizeToPosixPath = (p)=>upath_default().normalizeSafe(external_node_path_default().normalize(p || '')).replace(/^([a-zA-Z]+):/, (_, m)=>`/${m.toLowerCase()}`);
|
|
985
|
+
/**
|
|
986
|
+
* Compile path string to RegExp.
|
|
987
|
+
* @note Only support posix path.
|
|
988
|
+
*/ function compilePathMatcherRegExp(match) {
|
|
989
|
+
if (typeof match !== 'string') {
|
|
990
|
+
return match;
|
|
991
|
+
}
|
|
992
|
+
const escaped = lodash_es_escapeRegExp(match);
|
|
993
|
+
return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
|
|
994
|
+
}
|
|
995
|
+
function splitPathString(str) {
|
|
996
|
+
return str.split(/[\\/]/);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
999
|
;// CONCATENATED MODULE: ./src/applyMatcherReplacement.ts
|
|
1000
1000
|
|
|
1001
1001
|
|