path-serializer 0.0.1 → 0.0.3

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.
@@ -1,234 +1,10 @@
1
- var __webpack_modules__ = ({
2
- "./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js": (function (__unused_webpack_module, exports, __webpack_require__) {
3
- /**
4
- * upath http://github.com/anodynos/upath/
5
- *
6
- * A proxy to `path`, replacing `\` with `/` for all results (supports UNC paths) & new methods to normalize & join keeping leading `./` and add, change, default, trim file extensions.
7
- * Version 2.0.1 - Compiled on 2020-11-07 16:59:47
8
- * Repository git://github.com/anodynos/upath
9
- * Copyright(c) 2020 Angelos Pikoulas <agelos.pikoulas@gmail.com>
10
- * License MIT
11
- */
12
-
13
- // Generated by uRequire v0.7.0-beta.33 target: 'lib' template: 'nodejs'
14
-
15
-
16
- var VERSION = '2.0.1'; // injected by urequire-rc-inject-version
17
-
18
- var extraFn, extraFunctions, isFunction, isString, isValidExt, name, path, propName, propValue, toUnix, upath, slice = [].slice, indexOf = [].indexOf || function (item) {
19
- for (var i = 0, l = this.length; i < l; i++) {
20
- if (i in this && this[i] === item)
21
- return i;
22
- }
23
- return -1;
24
- }, hasProp = {}.hasOwnProperty;
25
- path = __webpack_require__("path");
26
- isFunction = function (val) {
27
- return typeof val === "function";
28
- };
29
- isString = function (val) {
30
- return typeof val === "string" || !!val && typeof val === "object" && Object.prototype.toString.call(val) === "[object String]";
31
- };
32
- upath = exports;
33
- upath.VERSION = typeof VERSION !== "undefined" && VERSION !== null ? VERSION : "NO-VERSION";
34
- toUnix = function (p) {
35
- p = p.replace(/\\/g, "/");
36
- p = p.replace(/(?<!^)\/+/g, "/");
37
- return p;
38
- };
39
- for (propName in path) {
40
- propValue = path[propName];
41
- if (isFunction(propValue)) {
42
- upath[propName] = function (propName) {
43
- return function () {
44
- var args, result;
45
- args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
46
- args = args.map(function (p) {
47
- if (isString(p)) {
48
- return toUnix(p);
49
- } else {
50
- return p;
51
- }
52
- });
53
- result = path[propName].apply(path, args);
54
- if (isString(result)) {
55
- return toUnix(result);
56
- } else {
57
- return result;
58
- }
59
- };
60
- }(propName);
61
- } else {
62
- upath[propName] = propValue;
63
- }
64
- }
65
- upath.sep = "/";
66
- extraFunctions = {
67
- toUnix: toUnix,
68
- normalizeSafe: function (p) {
69
- var result;
70
- p = toUnix(p);
71
- result = upath.normalize(p);
72
- if (p.startsWith("./") && !result.startsWith("./") && !result.startsWith("..")) {
73
- result = "./" + result;
74
- } else if (p.startsWith("//") && !result.startsWith("//")) {
75
- if (p.startsWith("//./")) {
76
- result = "//." + result;
77
- } else {
78
- result = "/" + result;
79
- }
80
- }
81
- return result;
82
- },
83
- normalizeTrim: function (p) {
84
- p = upath.normalizeSafe(p);
85
- if (p.endsWith("/")) {
86
- return p.slice(0, +(p.length - 2) + 1 || 9000000000);
87
- } else {
88
- return p;
89
- }
90
- },
91
- joinSafe: function () {
92
- var p, p0, result;
93
- p = 1 <= arguments.length ? slice.call(arguments, 0) : [];
94
- result = upath.join.apply(null, p);
95
- if (p.length > 0) {
96
- p0 = toUnix(p[0]);
97
- if (p0.startsWith("./") && !result.startsWith("./") && !result.startsWith("..")) {
98
- result = "./" + result;
99
- } else if (p0.startsWith("//") && !result.startsWith("//")) {
100
- if (p0.startsWith("//./")) {
101
- result = "//." + result;
102
- } else {
103
- result = "/" + result;
104
- }
105
- }
106
- }
107
- return result;
108
- },
109
- addExt: function (file, ext) {
110
- if (!ext) {
111
- return file;
112
- } else {
113
- if (ext[0] !== ".") {
114
- ext = "." + ext;
115
- }
116
- return file + (file.endsWith(ext) ? "" : ext);
117
- }
118
- },
119
- trimExt: function (filename, ignoreExts, maxSize) {
120
- var oldExt;
121
- if (maxSize == null) {
122
- maxSize = 7;
123
- }
124
- oldExt = upath.extname(filename);
125
- if (isValidExt(oldExt, ignoreExts, maxSize)) {
126
- return filename.slice(0, +(filename.length - oldExt.length - 1) + 1 || 9000000000);
127
- } else {
128
- return filename;
129
- }
130
- },
131
- removeExt: function (filename, ext) {
132
- if (!ext) {
133
- return filename;
134
- } else {
135
- ext = ext[0] === "." ? ext : "." + ext;
136
- if (upath.extname(filename) === ext) {
137
- return upath.trimExt(filename, [], ext.length);
138
- } else {
139
- return filename;
140
- }
141
- }
142
- },
143
- changeExt: function (filename, ext, ignoreExts, maxSize) {
144
- if (maxSize == null) {
145
- maxSize = 7;
146
- }
147
- return upath.trimExt(filename, ignoreExts, maxSize) + (!ext ? "" : ext[0] === "." ? ext : "." + ext);
148
- },
149
- defaultExt: function (filename, ext, ignoreExts, maxSize) {
150
- var oldExt;
151
- if (maxSize == null) {
152
- maxSize = 7;
153
- }
154
- oldExt = upath.extname(filename);
155
- if (isValidExt(oldExt, ignoreExts, maxSize)) {
156
- return filename;
157
- } else {
158
- return upath.addExt(filename, ext);
159
- }
160
- }
161
- };
162
- isValidExt = function (ext, ignoreExts, maxSize) {
163
- if (ignoreExts == null) {
164
- ignoreExts = [];
165
- }
166
- return ext && ext.length <= maxSize && indexOf.call(ignoreExts.map(function (e) {
167
- return (e && e[0] !== "." ? "." : "") + e;
168
- }), ext) < 0;
169
- };
170
- for (name in extraFunctions) {
171
- if (!hasProp.call(extraFunctions, name))
172
- continue;
173
- extraFn = extraFunctions[name];
174
- if (upath[name] !== void 0) {
175
- throw new Error("path." + name + " already exists.");
176
- } else {
177
- upath[name] = extraFn;
178
- }
179
- }
180
-
181
- ;
182
-
183
- }),
184
- "path": (function () {
185
-
186
- ;// CONCATENATED MODULE: external "path"
187
-
188
-
189
- }),
190
-
191
- });
192
- /************************************************************************/
193
- // The module cache
194
- var __webpack_module_cache__ = {};
195
-
196
- // The require function
197
- function __webpack_require__(moduleId) {
198
-
199
- // Check if module is in cache
200
- var cachedModule = __webpack_module_cache__[moduleId];
201
- if (cachedModule !== undefined) {
202
- return cachedModule.exports;
203
- }
204
- // Create a new module (and put it into the cache)
205
- var module = (__webpack_module_cache__[moduleId] = {
206
- exports: {}
207
- });
208
- // Execute the module function
209
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
210
-
211
- // Return the exports of the module
212
- return module.exports;
213
-
214
- }
1
+ import * as __WEBPACK_EXTERNAL_MODULE_node_fs__ from "node:fs";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_node_os__ from "node:os";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_node_path__ from "node:path";
4
+ // The require scope
5
+ var __webpack_require__ = {};
215
6
 
216
7
  /************************************************************************/
217
- // webpack/runtime/compat_get_default_export
218
- (() => {
219
- // getDefaultExport function for compatibility with non-harmony modules
220
- __webpack_require__.n = function (module) {
221
- var getter = module && module.__esModule ?
222
- function () { return module['default']; } :
223
- function () { return module; };
224
- __webpack_require__.d(getter, { a: getter });
225
- return getter;
226
- };
227
-
228
-
229
-
230
-
231
- })();
232
8
  // webpack/runtime/define_property_getters
233
9
  (() => {
234
10
  __webpack_require__.d = function(exports, definition) {
@@ -247,20 +23,124 @@ __webpack_require__.o = function (obj, prop) {
247
23
 
248
24
  })();
249
25
  /************************************************************************/
250
- var __webpack_exports__ = {};
251
26
 
252
- ;// CONCATENATED MODULE: external "node:path"
27
+ ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js
28
+ /**
29
+ * A specialized version of `_.reduce` for arrays without support for
30
+ * iteratee shorthands.
31
+ *
32
+ * @private
33
+ * @param {Array} [array] The array to iterate over.
34
+ * @param {Function} iteratee The function invoked per iteration.
35
+ * @param {*} [accumulator] The initial value.
36
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
37
+ * the initial value.
38
+ * @returns {*} Returns the accumulated value.
39
+ */
40
+ function arrayReduce(array, iteratee, accumulator, initAccum) {
41
+ var index = -1,
42
+ length = array == null ? 0 : array.length;
253
43
 
254
- var external_node_path_default = /*#__PURE__*/__webpack_require__.n(external_node_path_namespaceObject);
255
- ;// CONCATENATED MODULE: external "node:os"
44
+ if (initAccum && length) {
45
+ accumulator = array[++index];
46
+ }
47
+ while (++index < length) {
48
+ accumulator = iteratee(accumulator, array[index], index, array);
49
+ }
50
+ return accumulator;
51
+ }
256
52
 
257
- var external_node_os_default = /*#__PURE__*/__webpack_require__.n(external_node_os_namespaceObject);
258
- ;// CONCATENATED MODULE: external "node:fs"
53
+ /* harmony default export */ const _arrayReduce = (arrayReduce);
54
+
55
+ ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js
56
+ /**
57
+ * The base implementation of `_.propertyOf` without support for deep paths.
58
+ *
59
+ * @private
60
+ * @param {Object} object The object to query.
61
+ * @returns {Function} Returns the new accessor function.
62
+ */
63
+ function basePropertyOf(object) {
64
+ return function(key) {
65
+ return object == null ? undefined : object[key];
66
+ };
67
+ }
68
+
69
+ /* harmony default export */ const _basePropertyOf = (basePropertyOf);
70
+
71
+ ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js
72
+
73
+
74
+ /** Used to map Latin Unicode letters to basic Latin letters. */
75
+ var deburredLetters = {
76
+ // Latin-1 Supplement block.
77
+ '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
78
+ '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
79
+ '\xc7': 'C', '\xe7': 'c',
80
+ '\xd0': 'D', '\xf0': 'd',
81
+ '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
82
+ '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
83
+ '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
84
+ '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
85
+ '\xd1': 'N', '\xf1': 'n',
86
+ '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
87
+ '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
88
+ '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
89
+ '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
90
+ '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
91
+ '\xc6': 'Ae', '\xe6': 'ae',
92
+ '\xde': 'Th', '\xfe': 'th',
93
+ '\xdf': 'ss',
94
+ // Latin Extended-A block.
95
+ '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
96
+ '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
97
+ '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
98
+ '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
99
+ '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
100
+ '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
101
+ '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
102
+ '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
103
+ '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
104
+ '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
105
+ '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
106
+ '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
107
+ '\u0134': 'J', '\u0135': 'j',
108
+ '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
109
+ '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
110
+ '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
111
+ '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
112
+ '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
113
+ '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
114
+ '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
115
+ '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
116
+ '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
117
+ '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
118
+ '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
119
+ '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
120
+ '\u0163': 't', '\u0165': 't', '\u0167': 't',
121
+ '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
122
+ '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
123
+ '\u0174': 'W', '\u0175': 'w',
124
+ '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
125
+ '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
126
+ '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
127
+ '\u0132': 'IJ', '\u0133': 'ij',
128
+ '\u0152': 'Oe', '\u0153': 'oe',
129
+ '\u0149': "'n", '\u017f': 's'
130
+ };
131
+
132
+ /**
133
+ * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
134
+ * letters to basic Latin letters.
135
+ *
136
+ * @private
137
+ * @param {string} letter The matched letter to deburr.
138
+ * @returns {string} Returns the deburred letter.
139
+ */
140
+ var deburrLetter = _basePropertyOf(deburredLetters);
141
+
142
+ /* harmony default export */ const _deburrLetter = (deburrLetter);
259
143
 
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
144
  ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
265
145
  /** Detect free variable `global` from Node.js. */
266
146
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
@@ -570,187 +450,6 @@ function toString_toString(value) {
570
450
 
571
451
  /* harmony default export */ const lodash_es_toString = (toString_toString);
572
452
 
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
453
  ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js
755
454
 
756
455
 
@@ -996,10 +695,266 @@ var snakeCase_snakeCase = _createCompounder(function(result, word, index) {
996
695
 
997
696
  /* harmony default export */ const snakeCase = (snakeCase_snakeCase);
998
697
 
999
- ;// CONCATENATED MODULE: ./src/applyMatcherReplacement.ts
698
+ ;// CONCATENATED MODULE: external "node:fs"
699
+
700
+ var external_node_fs_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
701
+ var external_node_fs_y = x => () => x
702
+ var external_node_fs_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_fs__;
703
+
704
+ ;// CONCATENATED MODULE: external "node:os"
705
+
706
+ var external_node_os_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
707
+ var external_node_os_y = x => () => x
708
+ var external_node_os_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_os__;
709
+
710
+ ;// CONCATENATED MODULE: external "node:path"
711
+
712
+ var external_node_path_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
713
+ var external_node_path_y = x => () => x
714
+ var external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
715
+
716
+ ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js
717
+
718
+
719
+ /**
720
+ * Used to match `RegExp`
721
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
722
+ */
723
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
724
+ reHasRegExpChar = RegExp(reRegExpChar.source);
725
+
726
+ /**
727
+ * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
728
+ * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
729
+ *
730
+ * @static
731
+ * @memberOf _
732
+ * @since 3.0.0
733
+ * @category String
734
+ * @param {string} [string=''] The string to escape.
735
+ * @returns {string} Returns the escaped string.
736
+ * @example
737
+ *
738
+ * _.escapeRegExp('[lodash](https://lodash.com/)');
739
+ * // => '\[lodash\]\(https://lodash\.com/\)'
740
+ */
741
+ function escapeRegExp(string) {
742
+ string = lodash_es_toString(string);
743
+ return (string && reHasRegExpChar.test(string))
744
+ ? string.replace(reRegExpChar, '\\$&')
745
+ : string;
746
+ }
747
+
748
+ /* harmony default export */ const lodash_es_escapeRegExp = (escapeRegExp);
749
+
750
+ ;// CONCATENATED MODULE: ./src/upath.mjs
751
+ // @ts-nocheck
752
+ /**
753
+ * upath http://github.com/anodynos/upath/
754
+ *
755
+ * A proxy to `path`, replacing `\` with `/` for all results (supports UNC paths) & new methods to normalize & join keeping leading `./` and add, change, default, trim file extensions.
756
+ * Version 2.0.1 - Compiled on 2020-11-07 16:59:47
757
+ * Repository git://github.com/anodynos/upath
758
+ * Copyright(c) 2020 Angelos Pikoulas <agelos.pikoulas@gmail.com>
759
+ * License MIT
760
+ */ // Generated by uRequire v0.7.0-beta.33 target: 'lib' template: 'nodejs'
761
+
762
+ const VERSION = '2.0.1';
763
+ // injected by urequire-rc-inject-version
764
+ let extraFn;
765
+ let extraFunctions;
766
+ let isFunction;
767
+ let isString;
768
+ let isValidExt;
769
+ let upath_name;
770
+ let upath_propName;
771
+ let propValue;
772
+ let toUnix;
773
+ let upath;
774
+ const slice = [].slice;
775
+ const indexOf = [].indexOf || function(item) {
776
+ for(let i = 0, l = this.length; i < l; i++){
777
+ if (i in this && this[i] === item) return i;
778
+ }
779
+ return -1;
780
+ };
781
+ const hasProp = {}.hasOwnProperty;
782
+ isFunction = (val)=>typeof val === 'function';
783
+ isString = (val)=>typeof val === 'string' || !!val && typeof val === 'object' && Object.prototype.toString.call(val) === '[object String]';
784
+ upath.VERSION = typeof VERSION !== 'undefined' && VERSION !== null ? VERSION : 'NO-VERSION';
785
+ toUnix = (p)=>{
786
+ p = p.replace(/\\/g, '/');
787
+ p = p.replace(/(?<!^)\/+/g, '/');
788
+ return p;
789
+ };
790
+ for(upath_propName in external_node_path_namespaceObject["default"]){
791
+ propValue = external_node_path_namespaceObject["default"][upath_propName];
792
+ if (isFunction(propValue)) {
793
+ upath[upath_propName] = ((propName)=>()=>{
794
+ let args;
795
+ let result;
796
+ args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
797
+ args = args.map((p)=>{
798
+ if (isString(p)) {
799
+ return toUnix(p);
800
+ }
801
+ return p;
802
+ });
803
+ result = external_node_path_namespaceObject["default"][propName].apply(external_node_path_namespaceObject["default"], args);
804
+ if (isString(result)) {
805
+ return toUnix(result);
806
+ }
807
+ return result;
808
+ })(upath_propName);
809
+ } else {
810
+ upath[upath_propName] = propValue;
811
+ }
812
+ }
813
+ upath.sep = '/';
814
+ extraFunctions = {
815
+ toUnix: toUnix,
816
+ normalizeSafe: (p)=>{
817
+ let result;
818
+ p = toUnix(p);
819
+ result = upath.normalize(p);
820
+ if (p.startsWith('./') && !result.startsWith('./') && !result.startsWith('..')) {
821
+ result = `./${result}`;
822
+ } else if (p.startsWith('//') && !result.startsWith('//')) {
823
+ if (p.startsWith('//./')) {
824
+ result = `//.${result}`;
825
+ } else {
826
+ result = `/${result}`;
827
+ }
828
+ }
829
+ return result;
830
+ },
831
+ normalizeTrim: (p)=>{
832
+ p = upath.normalizeSafe(p);
833
+ if (p.endsWith('/')) {
834
+ return p.slice(0, +(p.length - 2) + 1 || 9000000000);
835
+ }
836
+ return p;
837
+ },
838
+ joinSafe: ()=>{
839
+ let p;
840
+ let p0;
841
+ let result;
842
+ p = 1 <= arguments.length ? slice.call(arguments, 0) : [];
843
+ result = upath.join.apply(null, p);
844
+ if (p.length > 0) {
845
+ p0 = toUnix(p[0]);
846
+ if (p0.startsWith('./') && !result.startsWith('./') && !result.startsWith('..')) {
847
+ result = `./${result}`;
848
+ } else if (p0.startsWith('//') && !result.startsWith('//')) {
849
+ if (p0.startsWith('//./')) {
850
+ result = `//.${result}`;
851
+ } else {
852
+ result = `/${result}`;
853
+ }
854
+ }
855
+ }
856
+ return result;
857
+ },
858
+ addExt: (file, ext)=>{
859
+ if (!ext) {
860
+ return file;
861
+ }
862
+ if (ext[0] !== '.') {
863
+ ext = `.${ext}`;
864
+ }
865
+ return file + (file.endsWith(ext) ? '' : ext);
866
+ },
867
+ trimExt: (filename, ignoreExts, maxSize)=>{
868
+ let oldExt;
869
+ if (maxSize == null) {
870
+ maxSize = 7;
871
+ }
872
+ oldExt = upath.extname(filename);
873
+ if (isValidExt(oldExt, ignoreExts, maxSize)) {
874
+ return filename.slice(0, +(filename.length - oldExt.length - 1) + 1 || 9000000000);
875
+ }
876
+ return filename;
877
+ },
878
+ removeExt: (filename, ext)=>{
879
+ if (!ext) {
880
+ return filename;
881
+ }
882
+ ext = ext[0] === '.' ? ext : `.${ext}`;
883
+ if (upath.extname(filename) === ext) {
884
+ return upath.trimExt(filename, [], ext.length);
885
+ }
886
+ return filename;
887
+ },
888
+ changeExt: (filename, ext, ignoreExts, maxSize)=>{
889
+ if (maxSize == null) {
890
+ maxSize = 7;
891
+ }
892
+ return upath.trimExt(filename, ignoreExts, maxSize) + (!ext ? '' : ext[0] === '.' ? ext : `.${ext}`);
893
+ },
894
+ defaultExt: (filename, ext, ignoreExts, maxSize)=>{
895
+ let oldExt;
896
+ if (maxSize == null) {
897
+ maxSize = 7;
898
+ }
899
+ oldExt = upath.extname(filename);
900
+ if (isValidExt(oldExt, ignoreExts, maxSize)) {
901
+ return filename;
902
+ }
903
+ return upath.addExt(filename, ext);
904
+ }
905
+ };
906
+ isValidExt = (ext, ignoreExts, maxSize)=>{
907
+ if (ignoreExts == null) {
908
+ ignoreExts = [];
909
+ }
910
+ return ext && ext.length <= maxSize && indexOf.call(ignoreExts.map((e)=>(e && e[0] !== '.' ? '.' : '') + e), ext) < 0;
911
+ };
912
+ for(upath_name in extraFunctions){
913
+ if (!hasProp.call(extraFunctions, upath_name)) continue;
914
+ extraFn = extraFunctions[upath_name];
915
+ if (upath[upath_name] !== void 0) {
916
+ throw new Error(`path.${upath_name} already exists.`);
917
+ }
918
+ upath[upath_name] = extraFn;
919
+ }
920
+
921
+
922
+ ;// CONCATENATED MODULE: ./src/utils.ts
1000
923
 
1001
924
 
1002
925
 
926
+
927
+ // @ts-ignore
928
+
929
+ const isPathString = (test)=>external_node_path_namespaceObject["default"].posix.basename(test) !== test || external_node_path_namespaceObject["default"].win32.basename(test) !== test;
930
+ function getRealTemporaryDirectory() {
931
+ let ret = null;
932
+ try {
933
+ ret = external_node_os_namespaceObject["default"].tmpdir();
934
+ ret = external_node_fs_namespaceObject["default"].realpathSync(ret);
935
+ } catch {}
936
+ return ret;
937
+ }
938
+ const normalizeToPosixPath = (p)=>{
939
+ return upath.normalizeSafe(external_node_path_namespaceObject["default"].normalize(p || '')).replace(/^([a-zA-Z]+):/, (_, m)=>`/${m.toLowerCase()}`);
940
+ };
941
+ /**
942
+ * Compile path string to RegExp.
943
+ * @note Only support posix path.
944
+ */ function compilePathMatcherRegExp(match) {
945
+ if (typeof match !== 'string') {
946
+ return match;
947
+ }
948
+ const escaped = lodash_es_escapeRegExp(match);
949
+ return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
950
+ }
951
+ function splitPathString(str) {
952
+ return str.split(/[\\/]/);
953
+ }
954
+
955
+ ;// CONCATENATED MODULE: ./src/applyMatcherReplacement.ts
956
+
957
+
1003
958
  function applyPathMatcher(matcher, str, options = {}) {
1004
959
  const regex = compilePathMatcherRegExp(matcher.match);
1005
960
  const replacer = (substring, ...args)=>{
@@ -1016,50 +971,28 @@ function applyMatcherReplacement(matchers, str, options = {}) {
1016
971
  return applyPathMatcher(matcher, ret, options);
1017
972
  }, str);
1018
973
  }
1019
- const createDefaultPathMatchers = ()=>{
1020
- const ret = [
1021
- {
1022
- match: /(?<=\/)(\.pnpm\/.+?\/node_modules)(?=\/)/,
1023
- mark: 'pnpmInner'
1024
- }
1025
- ];
1026
- const tmpdir = getRealTemporaryDirectory();
1027
- tmpdir && ret.push({
1028
- match: tmpdir,
1029
- mark: 'temp'
1030
- });
1031
- ret.push({
1032
- match: os.tmpdir(),
1033
- mark: 'temp'
1034
- });
1035
- ret.push({
1036
- match: os.homedir(),
1037
- mark: 'home'
1038
- });
1039
- return ret;
1040
- };
1041
974
 
1042
975
  ;// CONCATENATED MODULE: ./src/createDefaultPathMatchers.ts
1043
976
 
1044
977
 
1045
- const createDefaultPathMatchers_createDefaultPathMatchers = ()=>{
978
+ const createDefaultPathMatchers = ()=>{
1046
979
  const ret = [
1047
980
  {
1048
981
  match: /(?<=\/)(\.pnpm\/.+?\/node_modules)(?=\/)/,
1049
982
  mark: 'pnpmInner'
1050
983
  }
1051
984
  ];
1052
- const tmpdir = utils_getRealTemporaryDirectory();
985
+ const tmpdir = getRealTemporaryDirectory();
1053
986
  tmpdir && ret.push({
1054
987
  match: tmpdir,
1055
988
  mark: 'temp'
1056
989
  });
1057
990
  ret.push({
1058
- match: external_node_os_default().tmpdir(),
991
+ match: external_node_os_namespaceObject["default"].tmpdir(),
1059
992
  mark: 'temp'
1060
993
  });
1061
994
  ret.push({
1062
- match: external_node_os_default().homedir(),
995
+ match: external_node_os_namespaceObject["default"].homedir(),
1063
996
  mark: 'home'
1064
997
  });
1065
998
  return ret;
@@ -1081,7 +1014,7 @@ function createSnapshotSerializer(options) {
1081
1014
  match: workspace
1082
1015
  },
1083
1016
  ...customMatchers,
1084
- ...createDefaultPathMatchers_createDefaultPathMatchers()
1017
+ ...createDefaultPathMatchers()
1085
1018
  ];
1086
1019
  for (const matcher of pathMatchers){
1087
1020
  if (typeof matcher.match === 'string') {