@quilted/create 0.2.22 → 0.2.23
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/CHANGELOG.md +6 -0
- package/build/esnext/app.esnext +2 -4
- package/build/esnext/module.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +4 -8
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +8 -16
- package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/TemplateTag/TemplateTag.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +12 -24
- package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +6 -12
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +19 -38
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +8 -16
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/datepart.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/day.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/hours.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/meridiem.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/milliseconds.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/minutes.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/month.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/seconds.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/year.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocomplete.esnext +16 -30
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocompleteMultiselect.esnext +6 -12
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/confirm.esnext +4 -8
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.esnext +9 -18
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/multiselect.esnext +8 -13
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/number.esnext +11 -22
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/prompt.esnext +4 -8
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/select.esnext +10 -17
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/text.esnext +9 -18
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/toggle.esnext +7 -14
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +15 -30
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/action.esnext +24 -48
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +13 -26
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/entriesToDisplay.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/figures.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/lines.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/strip.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/wrap.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.esnext +11 -22
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.esnext +6 -12
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.esnext +4 -8
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.esnext +8 -16
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.esnext +4 -8
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.esnext +10 -20
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.esnext +4 -8
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.esnext +5 -10
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.esnext +8 -16
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.esnext +7 -14
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.esnext +4 -8
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.esnext +24 -48
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.esnext +2 -4
- package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.esnext +6 -12
- package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +1 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.esnext +11 -12
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +17 -18
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +9 -10
- package/build/esnext/package.esnext +7 -14
- package/build/esnext/server.esnext +1 -2
- package/build/esnext/shared/prompts.esnext +3 -6
- package/build/esnext/shared.esnext +3 -6
- package/package.json +1 -1
- package/templates/app-empty/tsconfig.json +2 -1
- package/templates/app-graphql/tsconfig.json +2 -1
- package/templates/app-trpc/tsconfig.json +2 -1
- package/templates/workspace/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @quilted/create
|
|
2
2
|
|
|
3
|
+
## 0.2.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0251270`](https://github.com/lemonmade/quilt/commit/0251270ca57edac1684d242cbc764e511a046d08) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix more template typescript issues
|
|
8
|
+
|
|
3
9
|
## 0.2.22
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/build/esnext/app.esnext
CHANGED
|
@@ -117,8 +117,7 @@ async function createApp() {
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
await appTemplate.copy(appDirectory, (file) => {
|
|
120
|
-
if (file === "_gitignore")
|
|
121
|
-
return partOfMonorepo;
|
|
120
|
+
if (file === "_gitignore") return partOfMonorepo;
|
|
122
121
|
return file !== "package.json";
|
|
123
122
|
});
|
|
124
123
|
if (template === "graphql" && !inWorkspace) {
|
|
@@ -282,8 +281,7 @@ async function getDirectory(argv, { name }) {
|
|
|
282
281
|
)} is not empty, is it safe to empty it?`,
|
|
283
282
|
initial: true
|
|
284
283
|
});
|
|
285
|
-
if (empty)
|
|
286
|
-
break;
|
|
284
|
+
if (empty) break;
|
|
287
285
|
const promptDirectory = await prompt({
|
|
288
286
|
type: "text",
|
|
289
287
|
message: "What directory do you want to create your new app in?"
|
|
@@ -266,8 +266,7 @@ async function getDirectory(argv, { name }) {
|
|
|
266
266
|
)} is not empty, is it safe to empty it?`,
|
|
267
267
|
initial: true
|
|
268
268
|
});
|
|
269
|
-
if (empty)
|
|
270
|
-
break;
|
|
269
|
+
if (empty) break;
|
|
271
270
|
const promptDirectory = await prompt({
|
|
272
271
|
type: "text",
|
|
273
272
|
message: "What directory do you want to create your new module in?"
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
var balancedMatch = balanced;
|
|
2
2
|
function balanced(a, b, str) {
|
|
3
|
-
if (a instanceof RegExp)
|
|
4
|
-
|
|
5
|
-
if (b instanceof RegExp)
|
|
6
|
-
b = maybeMatch(b, str);
|
|
3
|
+
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
4
|
+
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
7
5
|
var r = range(a, b, str);
|
|
8
6
|
return r && {
|
|
9
7
|
start: r[0],
|
|
@@ -59,8 +59,7 @@ function gte(i, y) {
|
|
|
59
59
|
function expand(str, isTop) {
|
|
60
60
|
var expansions = [];
|
|
61
61
|
var m = balanced("{", "}", str);
|
|
62
|
-
if (!m)
|
|
63
|
-
return [str];
|
|
62
|
+
if (!m) return [str];
|
|
64
63
|
var pre = m.pre;
|
|
65
64
|
var post = m.post.length ? expand(m.post, false) : [""];
|
|
66
65
|
if (/\$$/.test(m.pre)) {
|
|
@@ -10,8 +10,7 @@ const append = (queue = "", stash = "", enclose = false) => {
|
|
|
10
10
|
let result = [];
|
|
11
11
|
queue = [].concat(queue);
|
|
12
12
|
stash = [].concat(stash);
|
|
13
|
-
if (!stash.length)
|
|
14
|
-
return queue;
|
|
13
|
+
if (!stash.length) return queue;
|
|
15
14
|
if (!queue.length) {
|
|
16
15
|
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
17
16
|
}
|
|
@@ -22,8 +21,7 @@ const append = (queue = "", stash = "", enclose = false) => {
|
|
|
22
21
|
}
|
|
23
22
|
} else {
|
|
24
23
|
for (let ele of stash) {
|
|
25
|
-
if (enclose === true && typeof ele === "string")
|
|
26
|
-
ele = `{${ele}}`;
|
|
24
|
+
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
27
25
|
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
28
26
|
}
|
|
29
27
|
}
|
|
@@ -71,8 +69,7 @@ const expand = (ast, options = {}) => {
|
|
|
71
69
|
for (let i = 0; i < node.nodes.length; i++) {
|
|
72
70
|
let child = node.nodes[i];
|
|
73
71
|
if (child.type === "comma" && node.type === "brace") {
|
|
74
|
-
if (i === 1)
|
|
75
|
-
queue.push("");
|
|
72
|
+
if (i === 1) queue.push("");
|
|
76
73
|
queue.push("");
|
|
77
74
|
continue;
|
|
78
75
|
}
|
|
@@ -130,8 +130,7 @@ const parse = (input, options = {}) => {
|
|
|
130
130
|
continue;
|
|
131
131
|
}
|
|
132
132
|
if (next === open) {
|
|
133
|
-
if (options.keepQuotes === true)
|
|
134
|
-
value += next;
|
|
133
|
+
if (options.keepQuotes === true) value += next;
|
|
135
134
|
break;
|
|
136
135
|
}
|
|
137
136
|
value += next;
|
|
@@ -218,12 +217,9 @@ const parse = (input, options = {}) => {
|
|
|
218
217
|
if (block.type !== "root") {
|
|
219
218
|
block.nodes.forEach((node) => {
|
|
220
219
|
if (!node.nodes) {
|
|
221
|
-
if (node.type === "open")
|
|
222
|
-
|
|
223
|
-
if (node.type
|
|
224
|
-
node.isClose = true;
|
|
225
|
-
if (!node.nodes)
|
|
226
|
-
node.type = "text";
|
|
220
|
+
if (node.type === "open") node.isOpen = true;
|
|
221
|
+
if (node.type === "close") node.isClose = true;
|
|
222
|
+
if (!node.nodes) node.type = "text";
|
|
227
223
|
node.invalid = true;
|
|
228
224
|
}
|
|
229
225
|
});
|
|
@@ -12,16 +12,13 @@ import { __exports as utils } from '../../../../../../_virtual/utils2.esnext';
|
|
|
12
12
|
};
|
|
13
13
|
exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
|
|
14
14
|
exports.exceedsLimit = (min, max, step = 1, limit) => {
|
|
15
|
-
if (limit === false)
|
|
16
|
-
|
|
17
|
-
if (!exports.isInteger(min) || !exports.isInteger(max))
|
|
18
|
-
return false;
|
|
15
|
+
if (limit === false) return false;
|
|
16
|
+
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
19
17
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
20
18
|
};
|
|
21
19
|
exports.escapeNode = (block, n = 0, type) => {
|
|
22
20
|
let node = block.nodes[n];
|
|
23
|
-
if (!node)
|
|
24
|
-
return;
|
|
21
|
+
if (!node) return;
|
|
25
22
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
26
23
|
if (node.escaped !== true) {
|
|
27
24
|
node.value = "\\" + node.value;
|
|
@@ -30,8 +27,7 @@ import { __exports as utils } from '../../../../../../_virtual/utils2.esnext';
|
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
29
|
exports.encloseBrace = (node) => {
|
|
33
|
-
if (node.type !== "brace")
|
|
34
|
-
return false;
|
|
30
|
+
if (node.type !== "brace") return false;
|
|
35
31
|
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
36
32
|
node.invalid = true;
|
|
37
33
|
return true;
|
|
@@ -39,10 +35,8 @@ import { __exports as utils } from '../../../../../../_virtual/utils2.esnext';
|
|
|
39
35
|
return false;
|
|
40
36
|
};
|
|
41
37
|
exports.isInvalidBrace = (block) => {
|
|
42
|
-
if (block.type !== "brace")
|
|
43
|
-
|
|
44
|
-
if (block.invalid === true || block.dollar)
|
|
45
|
-
return true;
|
|
38
|
+
if (block.type !== "brace") return false;
|
|
39
|
+
if (block.invalid === true || block.dollar) return true;
|
|
46
40
|
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
47
41
|
block.invalid = true;
|
|
48
42
|
return true;
|
|
@@ -60,10 +54,8 @@ import { __exports as utils } from '../../../../../../_virtual/utils2.esnext';
|
|
|
60
54
|
return node.open === true || node.close === true;
|
|
61
55
|
};
|
|
62
56
|
exports.reduce = (nodes) => nodes.reduce((acc, node) => {
|
|
63
|
-
if (node.type === "text")
|
|
64
|
-
|
|
65
|
-
if (node.type === "range")
|
|
66
|
-
node.type = "text";
|
|
57
|
+
if (node.type === "text") acc.push(node.value);
|
|
58
|
+
if (node.type === "range") node.type = "text";
|
|
67
59
|
return acc;
|
|
68
60
|
}, []);
|
|
69
61
|
exports.flatten = (...args) => {
|
|
@@ -4,16 +4,13 @@ var _createClass = /* @__PURE__ */ function() {
|
|
|
4
4
|
var descriptor = props[i];
|
|
5
5
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
6
6
|
descriptor.configurable = true;
|
|
7
|
-
if ("value" in descriptor)
|
|
8
|
-
descriptor.writable = true;
|
|
7
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
9
8
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
11
|
return function(Constructor, protoProps, staticProps) {
|
|
13
|
-
if (protoProps)
|
|
14
|
-
|
|
15
|
-
if (staticProps)
|
|
16
|
-
defineProperties(Constructor, staticProps);
|
|
12
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
13
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
17
14
|
return Constructor;
|
|
18
15
|
};
|
|
19
16
|
}();
|
package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext
CHANGED
|
@@ -14,12 +14,9 @@ const isNumber = (num) => Number.isInteger(+num);
|
|
|
14
14
|
const zeros = (input) => {
|
|
15
15
|
let value = `${input}`;
|
|
16
16
|
let index = -1;
|
|
17
|
-
if (value[0] === "-")
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return false;
|
|
21
|
-
while (value[++index] === "0")
|
|
22
|
-
;
|
|
17
|
+
if (value[0] === "-") value = value.slice(1);
|
|
18
|
+
if (value === "0") return false;
|
|
19
|
+
while (value[++index] === "0") ;
|
|
23
20
|
return index > 0;
|
|
24
21
|
};
|
|
25
22
|
const stringify = (start, end, options) => {
|
|
@@ -31,8 +28,7 @@ const stringify = (start, end, options) => {
|
|
|
31
28
|
const pad = (input, maxLength, toNumber) => {
|
|
32
29
|
if (maxLength > 0) {
|
|
33
30
|
let dash = input[0] === "-" ? "-" : "";
|
|
34
|
-
if (dash)
|
|
35
|
-
input = input.slice(1);
|
|
31
|
+
if (dash) input = input.slice(1);
|
|
36
32
|
input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
|
|
37
33
|
}
|
|
38
34
|
if (toNumber === false) {
|
|
@@ -46,8 +42,7 @@ const toMaxLen = (input, maxLength) => {
|
|
|
46
42
|
input = input.slice(1);
|
|
47
43
|
maxLength--;
|
|
48
44
|
}
|
|
49
|
-
while (input.length < maxLength)
|
|
50
|
-
input = "0" + input;
|
|
45
|
+
while (input.length < maxLength) input = "0" + input;
|
|
51
46
|
return negative ? "-" + input : input;
|
|
52
47
|
};
|
|
53
48
|
const toSequence = (parts, options) => {
|
|
@@ -78,8 +73,7 @@ const toRange = (a, b, isNumbers, options) => {
|
|
|
78
73
|
return toRegexRange(a, b, { wrap: false, ...options });
|
|
79
74
|
}
|
|
80
75
|
let start = String.fromCharCode(a);
|
|
81
|
-
if (a === b)
|
|
82
|
-
return start;
|
|
76
|
+
if (a === b) return start;
|
|
83
77
|
let stop = String.fromCharCode(b);
|
|
84
78
|
return `[${start}-${stop}]`;
|
|
85
79
|
};
|
|
@@ -95,8 +89,7 @@ const rangeError = (...args) => {
|
|
|
95
89
|
return new RangeError("Invalid range arguments: " + util.inspect(...args));
|
|
96
90
|
};
|
|
97
91
|
const invalidRange = (start, end, options) => {
|
|
98
|
-
if (options.strictRanges === true)
|
|
99
|
-
throw rangeError([start, end]);
|
|
92
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
100
93
|
return [];
|
|
101
94
|
};
|
|
102
95
|
const invalidStep = (step, options) => {
|
|
@@ -109,14 +102,11 @@ const fillNumbers = (start, end, step = 1, options = {}) => {
|
|
|
109
102
|
let a = Number(start);
|
|
110
103
|
let b = Number(end);
|
|
111
104
|
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
112
|
-
if (options.strictRanges === true)
|
|
113
|
-
throw rangeError([start, end]);
|
|
105
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
114
106
|
return [];
|
|
115
107
|
}
|
|
116
|
-
if (a === 0)
|
|
117
|
-
|
|
118
|
-
if (b === 0)
|
|
119
|
-
b = 0;
|
|
108
|
+
if (a === 0) a = 0;
|
|
109
|
+
if (b === 0) b = 0;
|
|
120
110
|
let descending = a > b;
|
|
121
111
|
let startString = String(start);
|
|
122
112
|
let endString = String(end);
|
|
@@ -186,12 +176,10 @@ const fill = (start, end, step, options = {}) => {
|
|
|
186
176
|
return fill(start, end, 0, step);
|
|
187
177
|
}
|
|
188
178
|
let opts = { ...options };
|
|
189
|
-
if (opts.capture === true)
|
|
190
|
-
opts.wrap = true;
|
|
179
|
+
if (opts.capture === true) opts.wrap = true;
|
|
191
180
|
step = step || opts.step || 1;
|
|
192
181
|
if (!isNumber(step)) {
|
|
193
|
-
if (step != null && !isObject(step))
|
|
194
|
-
return invalidStep(step, opts);
|
|
182
|
+
if (step != null && !isObject(step)) return invalidStep(step, opts);
|
|
195
183
|
return fill(start, end, 1, step);
|
|
196
184
|
}
|
|
197
185
|
if (isNumber(start) && isNumber(end)) {
|
package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext
CHANGED
|
@@ -25,13 +25,11 @@ const micromatch = (list, patterns, options) => {
|
|
|
25
25
|
for (let i = 0; i < patterns.length; i++) {
|
|
26
26
|
let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
|
|
27
27
|
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
28
|
-
if (negated)
|
|
29
|
-
negatives++;
|
|
28
|
+
if (negated) negatives++;
|
|
30
29
|
for (let item of list) {
|
|
31
30
|
let matched = isMatch(item, true);
|
|
32
31
|
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
33
|
-
if (!match)
|
|
34
|
-
continue;
|
|
32
|
+
if (!match) continue;
|
|
35
33
|
if (negated) {
|
|
36
34
|
omit.add(matched.output);
|
|
37
35
|
} else {
|
|
@@ -61,8 +59,7 @@ micromatch.not = (list, patterns, options = {}) => {
|
|
|
61
59
|
let result = /* @__PURE__ */ new Set();
|
|
62
60
|
let items = [];
|
|
63
61
|
let onResult = (state) => {
|
|
64
|
-
if (options.onResult)
|
|
65
|
-
options.onResult(state);
|
|
62
|
+
if (options.onResult) options.onResult(state);
|
|
66
63
|
items.push(state.output);
|
|
67
64
|
};
|
|
68
65
|
let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
|
|
@@ -96,8 +93,7 @@ micromatch.matchKeys = (obj, patterns, options) => {
|
|
|
96
93
|
}
|
|
97
94
|
let keys = micromatch(Object.keys(obj), patterns, options);
|
|
98
95
|
let res = {};
|
|
99
|
-
for (let key of keys)
|
|
100
|
-
res[key] = obj[key];
|
|
96
|
+
for (let key of keys) res[key] = obj[key];
|
|
101
97
|
return res;
|
|
102
98
|
};
|
|
103
99
|
micromatch.some = (list, patterns, options) => {
|
|
@@ -146,16 +142,14 @@ micromatch.parse = (patterns, options) => {
|
|
|
146
142
|
return res;
|
|
147
143
|
};
|
|
148
144
|
micromatch.braces = (pattern, options) => {
|
|
149
|
-
if (typeof pattern !== "string")
|
|
150
|
-
throw new TypeError("Expected a string");
|
|
145
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
151
146
|
if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) {
|
|
152
147
|
return [pattern];
|
|
153
148
|
}
|
|
154
149
|
return braces(pattern, options);
|
|
155
150
|
};
|
|
156
151
|
micromatch.braceExpand = (pattern, options) => {
|
|
157
|
-
if (typeof pattern !== "string")
|
|
158
|
-
throw new TypeError("Expected a string");
|
|
152
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
159
153
|
return micromatch.braces(pattern, { ...options, expand: true });
|
|
160
154
|
};
|
|
161
155
|
var micromatch_1 = micromatch;
|
package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext
CHANGED
|
@@ -91,8 +91,7 @@ const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
|
91
91
|
class Minimatch {
|
|
92
92
|
constructor(pattern, options) {
|
|
93
93
|
assertValidPattern(pattern);
|
|
94
|
-
if (!options)
|
|
95
|
-
options = {};
|
|
94
|
+
if (!options) options = {};
|
|
96
95
|
this.options = options;
|
|
97
96
|
this.set = [];
|
|
98
97
|
this.pattern = pattern;
|
|
@@ -122,8 +121,7 @@ class Minimatch {
|
|
|
122
121
|
}
|
|
123
122
|
this.parseNegate();
|
|
124
123
|
let set = this.globSet = this.braceExpand();
|
|
125
|
-
if (options.debug)
|
|
126
|
-
this.debug = (...args) => console.error(...args);
|
|
124
|
+
if (options.debug) this.debug = (...args) => console.error(...args);
|
|
127
125
|
this.debug(this.pattern, set);
|
|
128
126
|
set = this.globParts = set.map((s) => s.split(slashSplit));
|
|
129
127
|
this.debug(this.pattern, set);
|
|
@@ -134,8 +132,7 @@ class Minimatch {
|
|
|
134
132
|
this.set = set;
|
|
135
133
|
}
|
|
136
134
|
parseNegate() {
|
|
137
|
-
if (this.options.nonegate)
|
|
138
|
-
return;
|
|
135
|
+
if (this.options.nonegate) return;
|
|
139
136
|
const pattern = this.pattern;
|
|
140
137
|
let negate = false;
|
|
141
138
|
let negateOffset = 0;
|
|
@@ -143,8 +140,7 @@ class Minimatch {
|
|
|
143
140
|
negate = !negate;
|
|
144
141
|
negateOffset++;
|
|
145
142
|
}
|
|
146
|
-
if (negateOffset)
|
|
147
|
-
this.pattern = pattern.substr(negateOffset);
|
|
143
|
+
if (negateOffset) this.pattern = pattern.substr(negateOffset);
|
|
148
144
|
this.negate = negate;
|
|
149
145
|
}
|
|
150
146
|
// set partial to true to test if, for example,
|
|
@@ -164,8 +160,7 @@ class Minimatch {
|
|
|
164
160
|
var p = pattern[pi];
|
|
165
161
|
var f = file[fi];
|
|
166
162
|
this.debug(pattern, p, f);
|
|
167
|
-
if (p === false)
|
|
168
|
-
return false;
|
|
163
|
+
if (p === false) return false;
|
|
169
164
|
if (p === GLOBSTAR) {
|
|
170
165
|
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
171
166
|
var fr = fi;
|
|
@@ -173,8 +168,7 @@ class Minimatch {
|
|
|
173
168
|
if (pr === pl) {
|
|
174
169
|
this.debug("** at the end");
|
|
175
170
|
for (; fi < fl; fi++) {
|
|
176
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
177
|
-
return false;
|
|
171
|
+
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false;
|
|
178
172
|
}
|
|
179
173
|
return true;
|
|
180
174
|
}
|
|
@@ -195,8 +189,7 @@ class Minimatch {
|
|
|
195
189
|
}
|
|
196
190
|
if (partial) {
|
|
197
191
|
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
198
|
-
if (fr === fl)
|
|
199
|
-
return true;
|
|
192
|
+
if (fr === fl) return true;
|
|
200
193
|
}
|
|
201
194
|
return false;
|
|
202
195
|
}
|
|
@@ -208,8 +201,7 @@ class Minimatch {
|
|
|
208
201
|
hit = f.match(p);
|
|
209
202
|
this.debug("pattern match", p, f, hit);
|
|
210
203
|
}
|
|
211
|
-
if (!hit)
|
|
212
|
-
return false;
|
|
204
|
+
if (!hit) return false;
|
|
213
205
|
}
|
|
214
206
|
if (fi === fl && pi === pl) {
|
|
215
207
|
return true;
|
|
@@ -232,8 +224,7 @@ class Minimatch {
|
|
|
232
224
|
else
|
|
233
225
|
pattern = "*";
|
|
234
226
|
}
|
|
235
|
-
if (pattern === "")
|
|
236
|
-
return "";
|
|
227
|
+
if (pattern === "") return "";
|
|
237
228
|
let re = "";
|
|
238
229
|
let hasMagic = !!options.nocase;
|
|
239
230
|
let escaping = false;
|
|
@@ -295,16 +286,14 @@ class Minimatch {
|
|
|
295
286
|
this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c);
|
|
296
287
|
if (inClass) {
|
|
297
288
|
this.debug(" in class");
|
|
298
|
-
if (c === "!" && i === classStart + 1)
|
|
299
|
-
c = "^";
|
|
289
|
+
if (c === "!" && i === classStart + 1) c = "^";
|
|
300
290
|
re += c;
|
|
301
291
|
continue;
|
|
302
292
|
}
|
|
303
293
|
this.debug("call clearStateChar %j", stateChar);
|
|
304
294
|
clearStateChar();
|
|
305
295
|
stateChar = c;
|
|
306
|
-
if (options.noext)
|
|
307
|
-
clearStateChar();
|
|
296
|
+
if (options.noext) clearStateChar();
|
|
308
297
|
continue;
|
|
309
298
|
case "(":
|
|
310
299
|
if (inClass) {
|
|
@@ -451,8 +440,7 @@ class Minimatch {
|
|
|
451
440
|
}
|
|
452
441
|
}
|
|
453
442
|
makeRe() {
|
|
454
|
-
if (this.regexp || this.regexp === false)
|
|
455
|
-
return this.regexp;
|
|
443
|
+
if (this.regexp || this.regexp === false) return this.regexp;
|
|
456
444
|
const set = this.set;
|
|
457
445
|
if (!set.length) {
|
|
458
446
|
this.regexp = false;
|
|
@@ -490,8 +478,7 @@ class Minimatch {
|
|
|
490
478
|
return pattern.filter((p) => p !== GLOBSTAR).join("/");
|
|
491
479
|
}).join("|");
|
|
492
480
|
re = "^(?:" + re + ")$";
|
|
493
|
-
if (this.negate)
|
|
494
|
-
re = "^(?!" + re + ").*$";
|
|
481
|
+
if (this.negate) re = "^(?!" + re + ").*$";
|
|
495
482
|
try {
|
|
496
483
|
this.regexp = new RegExp(re, flags);
|
|
497
484
|
} catch (ex) {
|
|
@@ -501,12 +488,9 @@ class Minimatch {
|
|
|
501
488
|
}
|
|
502
489
|
match(f, partial = this.partial) {
|
|
503
490
|
this.debug("match", f, this.pattern);
|
|
504
|
-
if (this.comment)
|
|
505
|
-
|
|
506
|
-
if (
|
|
507
|
-
return f === "";
|
|
508
|
-
if (f === "/" && partial)
|
|
509
|
-
return true;
|
|
491
|
+
if (this.comment) return false;
|
|
492
|
+
if (this.empty) return f === "";
|
|
493
|
+
if (f === "/" && partial) return true;
|
|
510
494
|
const options = this.options;
|
|
511
495
|
if (path.sep !== "/") {
|
|
512
496
|
f = f.split(path.sep).join("/");
|
|
@@ -518,8 +502,7 @@ class Minimatch {
|
|
|
518
502
|
let filename;
|
|
519
503
|
for (let i = f.length - 1; i >= 0; i--) {
|
|
520
504
|
filename = f[i];
|
|
521
|
-
if (filename)
|
|
522
|
-
break;
|
|
505
|
+
if (filename) break;
|
|
523
506
|
}
|
|
524
507
|
for (let i = 0; i < set.length; i++) {
|
|
525
508
|
const pattern = set[i];
|
|
@@ -529,13 +512,11 @@ class Minimatch {
|
|
|
529
512
|
}
|
|
530
513
|
const hit = this.matchOne(file, pattern, partial);
|
|
531
514
|
if (hit) {
|
|
532
|
-
if (options.flipNegate)
|
|
533
|
-
return true;
|
|
515
|
+
if (options.flipNegate) return true;
|
|
534
516
|
return !this.negate;
|
|
535
517
|
}
|
|
536
518
|
}
|
|
537
|
-
if (options.flipNegate)
|
|
538
|
-
return false;
|
|
519
|
+
if (options.flipNegate) return false;
|
|
539
520
|
return this.negate;
|
|
540
521
|
}
|
|
541
522
|
static defaults(def) {
|
package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext
CHANGED
|
@@ -143,8 +143,7 @@ const parse = (input, options) => {
|
|
|
143
143
|
if (extglobs.length && tok.type !== "paren") {
|
|
144
144
|
extglobs[extglobs.length - 1].inner += tok.value;
|
|
145
145
|
}
|
|
146
|
-
if (tok.value || tok.output)
|
|
147
|
-
append(tok);
|
|
146
|
+
if (tok.value || tok.output) append(tok);
|
|
148
147
|
if (prev && prev.type === "text" && tok.type === "text") {
|
|
149
148
|
prev.value += tok.value;
|
|
150
149
|
prev.output = (prev.output || "") + tok.value;
|
|
@@ -459,8 +458,7 @@ const parse = (input, options) => {
|
|
|
459
458
|
}
|
|
460
459
|
if (value === ".") {
|
|
461
460
|
if (state.braces > 0 && prev.type === "dot") {
|
|
462
|
-
if (prev.value === ".")
|
|
463
|
-
prev.output = DOT_LITERAL;
|
|
461
|
+
if (prev.value === ".") prev.output = DOT_LITERAL;
|
|
464
462
|
const brace = braces[braces.length - 1];
|
|
465
463
|
prev.type = "dots";
|
|
466
464
|
prev.output += value;
|
|
@@ -675,20 +673,17 @@ const parse = (input, options) => {
|
|
|
675
673
|
push(token);
|
|
676
674
|
}
|
|
677
675
|
while (state.brackets > 0) {
|
|
678
|
-
if (opts.strictBrackets === true)
|
|
679
|
-
throw new SyntaxError(syntaxError("closing", "]"));
|
|
676
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
|
|
680
677
|
state.output = utils.escapeLast(state.output, "[");
|
|
681
678
|
decrement("brackets");
|
|
682
679
|
}
|
|
683
680
|
while (state.parens > 0) {
|
|
684
|
-
if (opts.strictBrackets === true)
|
|
685
|
-
throw new SyntaxError(syntaxError("closing", ")"));
|
|
681
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
|
|
686
682
|
state.output = utils.escapeLast(state.output, "(");
|
|
687
683
|
decrement("parens");
|
|
688
684
|
}
|
|
689
685
|
while (state.braces > 0) {
|
|
690
|
-
if (opts.strictBrackets === true)
|
|
691
|
-
throw new SyntaxError(syntaxError("closing", "}"));
|
|
686
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
|
|
692
687
|
state.output = utils.escapeLast(state.output, "{");
|
|
693
688
|
decrement("braces");
|
|
694
689
|
}
|
|
@@ -735,8 +730,7 @@ parse.fastpaths = (input, options) => {
|
|
|
735
730
|
star = `(${star})`;
|
|
736
731
|
}
|
|
737
732
|
const globstar = (opts2) => {
|
|
738
|
-
if (opts2.noglobstar === true)
|
|
739
|
-
return star;
|
|
733
|
+
if (opts2.noglobstar === true) return star;
|
|
740
734
|
return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
741
735
|
};
|
|
742
736
|
const create = (str) => {
|
|
@@ -759,11 +753,9 @@ parse.fastpaths = (input, options) => {
|
|
|
759
753
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
760
754
|
default: {
|
|
761
755
|
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
762
|
-
if (!match)
|
|
763
|
-
return;
|
|
756
|
+
if (!match) return;
|
|
764
757
|
const source2 = create(match[1]);
|
|
765
|
-
if (!source2)
|
|
766
|
-
return;
|
|
758
|
+
if (!source2) return;
|
|
767
759
|
return source2 + DOT_LITERAL + match[2];
|
|
768
760
|
}
|
|
769
761
|
}
|
package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext
CHANGED
|
@@ -17,8 +17,7 @@ const picomatch = (glob, options, returnState = false) => {
|
|
|
17
17
|
const arrayMatcher = (str) => {
|
|
18
18
|
for (const isMatch of fns) {
|
|
19
19
|
const state2 = isMatch(str);
|
|
20
|
-
if (state2)
|
|
21
|
-
return state2;
|
|
20
|
+
if (state2) return state2;
|
|
22
21
|
}
|
|
23
22
|
return false;
|
|
24
23
|
};
|
|
@@ -95,8 +94,7 @@ picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) =
|
|
|
95
94
|
};
|
|
96
95
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
97
96
|
picomatch.parse = (pattern, options) => {
|
|
98
|
-
if (Array.isArray(pattern))
|
|
99
|
-
return pattern.map((p) => picomatch.parse(p, options));
|
|
97
|
+
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
|
|
100
98
|
return parse(pattern, { ...options, fastpaths: false });
|
|
101
99
|
};
|
|
102
100
|
picomatch.scan = (input, options) => scan(input, options);
|
|
@@ -135,8 +133,7 @@ picomatch.toRegex = (source, options) => {
|
|
|
135
133
|
const opts = options || {};
|
|
136
134
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
137
135
|
} catch (err) {
|
|
138
|
-
if (options && options.debug === true)
|
|
139
|
-
throw err;
|
|
136
|
+
if (options && options.debug === true) throw err;
|
|
140
137
|
return /$^/;
|
|
141
138
|
}
|
|
142
139
|
};
|
package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext
CHANGED
|
@@ -134,8 +134,7 @@ const scan = (input, options) => {
|
|
|
134
134
|
slashes.push(index);
|
|
135
135
|
tokens.push(token);
|
|
136
136
|
token = { value: "", depth: 0, isGlob: false };
|
|
137
|
-
if (finished === true)
|
|
138
|
-
continue;
|
|
137
|
+
if (finished === true) continue;
|
|
139
138
|
if (prev === CHAR_DOT && index === start + 1) {
|
|
140
139
|
start += 2;
|
|
141
140
|
continue;
|
|
@@ -171,8 +170,7 @@ const scan = (input, options) => {
|
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
172
|
if (code === CHAR_ASTERISK) {
|
|
174
|
-
if (prev === CHAR_ASTERISK)
|
|
175
|
-
isGlobstar = token.isGlobstar = true;
|
|
173
|
+
if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
|
|
176
174
|
isGlob = token.isGlob = true;
|
|
177
175
|
finished = true;
|
|
178
176
|
if (scanToEnd === true) {
|
|
@@ -265,8 +263,7 @@ const scan = (input, options) => {
|
|
|
265
263
|
}
|
|
266
264
|
}
|
|
267
265
|
if (opts.unescape === true) {
|
|
268
|
-
if (glob)
|
|
269
|
-
glob = utils.removeBackslashes(glob);
|
|
266
|
+
if (glob) glob = utils.removeBackslashes(glob);
|
|
270
267
|
if (base && backslashes === true) {
|
|
271
268
|
base = utils.removeBackslashes(base);
|
|
272
269
|
}
|