@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/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/text.esnext
CHANGED
|
@@ -6,8 +6,7 @@ import { __require as requireUtil } from '../util/index.esnext';
|
|
|
6
6
|
var text;
|
|
7
7
|
var hasRequiredText;
|
|
8
8
|
function requireText() {
|
|
9
|
-
if (hasRequiredText)
|
|
10
|
-
return text;
|
|
9
|
+
if (hasRequiredText) return text;
|
|
11
10
|
hasRequiredText = 1;
|
|
12
11
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13
12
|
try {
|
|
@@ -124,16 +123,14 @@ function requireText() {
|
|
|
124
123
|
})();
|
|
125
124
|
}
|
|
126
125
|
next() {
|
|
127
|
-
if (!this.placeholder)
|
|
128
|
-
return this.bell();
|
|
126
|
+
if (!this.placeholder) return this.bell();
|
|
129
127
|
this.value = this.initial;
|
|
130
128
|
this.cursor = this.rendered.length;
|
|
131
129
|
this.fire();
|
|
132
130
|
this.render();
|
|
133
131
|
}
|
|
134
132
|
moveCursor(n) {
|
|
135
|
-
if (this.placeholder)
|
|
136
|
-
return;
|
|
133
|
+
if (this.placeholder) return;
|
|
137
134
|
this.cursor = this.cursor + n;
|
|
138
135
|
this.cursorOffset += n;
|
|
139
136
|
}
|
|
@@ -146,8 +143,7 @@ function requireText() {
|
|
|
146
143
|
this.render();
|
|
147
144
|
}
|
|
148
145
|
delete() {
|
|
149
|
-
if (this.isCursorAtStart())
|
|
150
|
-
return this.bell();
|
|
146
|
+
if (this.isCursorAtStart()) return this.bell();
|
|
151
147
|
let s1 = this.value.slice(0, this.cursor - 1);
|
|
152
148
|
let s2 = this.value.slice(this.cursor);
|
|
153
149
|
this.value = `${s1}${s2}`;
|
|
@@ -161,8 +157,7 @@ function requireText() {
|
|
|
161
157
|
this.render();
|
|
162
158
|
}
|
|
163
159
|
deleteForward() {
|
|
164
|
-
if (this.cursor * this.scale >= this.rendered.length || this.placeholder)
|
|
165
|
-
return this.bell();
|
|
160
|
+
if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
|
|
166
161
|
let s1 = this.value.slice(0, this.cursor);
|
|
167
162
|
let s2 = this.value.slice(this.cursor + 1);
|
|
168
163
|
this.value = `${s1}${s2}`;
|
|
@@ -183,14 +178,12 @@ function requireText() {
|
|
|
183
178
|
this.render();
|
|
184
179
|
}
|
|
185
180
|
left() {
|
|
186
|
-
if (this.cursor <= 0 || this.placeholder)
|
|
187
|
-
return this.bell();
|
|
181
|
+
if (this.cursor <= 0 || this.placeholder) return this.bell();
|
|
188
182
|
this.moveCursor(-1);
|
|
189
183
|
this.render();
|
|
190
184
|
}
|
|
191
185
|
right() {
|
|
192
|
-
if (this.cursor * this.scale >= this.rendered.length || this.placeholder)
|
|
193
|
-
return this.bell();
|
|
186
|
+
if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();
|
|
194
187
|
this.moveCursor(1);
|
|
195
188
|
this.render();
|
|
196
189
|
}
|
|
@@ -201,11 +194,9 @@ function requireText() {
|
|
|
201
194
|
return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1;
|
|
202
195
|
}
|
|
203
196
|
render() {
|
|
204
|
-
if (this.closed)
|
|
205
|
-
return;
|
|
197
|
+
if (this.closed) return;
|
|
206
198
|
if (!this.firstRender) {
|
|
207
|
-
if (this.outputError)
|
|
208
|
-
this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
|
|
199
|
+
if (this.outputError) this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
|
|
209
200
|
this.out.write(clear(this.outputText, this.out.columns));
|
|
210
201
|
}
|
|
211
202
|
super.render();
|
|
@@ -6,8 +6,7 @@ import { __require as requireSrc } from '../../../../../sisteransi@1.0.5/node_mo
|
|
|
6
6
|
var toggle;
|
|
7
7
|
var hasRequiredToggle;
|
|
8
8
|
function requireToggle() {
|
|
9
|
-
if (hasRequiredToggle)
|
|
10
|
-
return toggle;
|
|
9
|
+
if (hasRequiredToggle) return toggle;
|
|
11
10
|
hasRequiredToggle = 1;
|
|
12
11
|
const color = requireKleur();
|
|
13
12
|
const Prompt = requirePrompt();
|
|
@@ -47,14 +46,12 @@ function requireToggle() {
|
|
|
47
46
|
this.close();
|
|
48
47
|
}
|
|
49
48
|
deactivate() {
|
|
50
|
-
if (this.value === false)
|
|
51
|
-
return this.bell();
|
|
49
|
+
if (this.value === false) return this.bell();
|
|
52
50
|
this.value = false;
|
|
53
51
|
this.render();
|
|
54
52
|
}
|
|
55
53
|
activate() {
|
|
56
|
-
if (this.value === true)
|
|
57
|
-
return this.bell();
|
|
54
|
+
if (this.value === true) return this.bell();
|
|
58
55
|
this.value = true;
|
|
59
56
|
this.render();
|
|
60
57
|
}
|
|
@@ -85,17 +82,13 @@ function requireToggle() {
|
|
|
85
82
|
this.value = true;
|
|
86
83
|
} else if (c === "0") {
|
|
87
84
|
this.value = false;
|
|
88
|
-
} else
|
|
89
|
-
return this.bell();
|
|
85
|
+
} else return this.bell();
|
|
90
86
|
this.render();
|
|
91
87
|
}
|
|
92
88
|
render() {
|
|
93
|
-
if (this.closed)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
this.out.write(cursor.hide);
|
|
97
|
-
else
|
|
98
|
-
this.out.write(clear(this.outputText, this.out.columns));
|
|
89
|
+
if (this.closed) return;
|
|
90
|
+
if (this.firstRender) this.out.write(cursor.hide);
|
|
91
|
+
else this.out.write(clear(this.outputText, this.out.columns));
|
|
99
92
|
super.render();
|
|
100
93
|
this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.value ? this.inactive : color.cyan().underline(this.inactive), color.gray("/"), this.value ? color.cyan().underline(this.active) : this.active].join(" ");
|
|
101
94
|
this.out.write(erase.line + cursor.to(0) + this.outputText);
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext
CHANGED
|
@@ -3,8 +3,7 @@ import { __require as requirePrompts } from './prompts.esnext';
|
|
|
3
3
|
var dist;
|
|
4
4
|
var hasRequiredDist;
|
|
5
5
|
function requireDist() {
|
|
6
|
-
if (hasRequiredDist)
|
|
7
|
-
return dist;
|
|
6
|
+
if (hasRequiredDist) return dist;
|
|
8
7
|
hasRequiredDist = 1;
|
|
9
8
|
function ownKeys(object, enumerableOnly) {
|
|
10
9
|
var keys = Object.keys(object);
|
|
@@ -48,14 +47,12 @@ function requireDist() {
|
|
|
48
47
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
49
48
|
if (!it) {
|
|
50
49
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
51
|
-
if (it)
|
|
52
|
-
o = it;
|
|
50
|
+
if (it) o = it;
|
|
53
51
|
var i = 0;
|
|
54
52
|
var F = function F2() {
|
|
55
53
|
};
|
|
56
54
|
return { s: F, n: function n() {
|
|
57
|
-
if (i >= o.length)
|
|
58
|
-
return { done: true };
|
|
55
|
+
if (i >= o.length) return { done: true };
|
|
59
56
|
return { done: false, value: o[i++] };
|
|
60
57
|
}, e: function e(_e) {
|
|
61
58
|
throw _e;
|
|
@@ -75,32 +72,23 @@ function requireDist() {
|
|
|
75
72
|
err = _e2;
|
|
76
73
|
}, f: function f() {
|
|
77
74
|
try {
|
|
78
|
-
if (!normalCompletion && it.return != null)
|
|
79
|
-
it.return();
|
|
75
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
80
76
|
} finally {
|
|
81
|
-
if (didErr)
|
|
82
|
-
throw err;
|
|
77
|
+
if (didErr) throw err;
|
|
83
78
|
}
|
|
84
79
|
} };
|
|
85
80
|
}
|
|
86
81
|
function _unsupportedIterableToArray(o, minLen) {
|
|
87
|
-
if (!o)
|
|
88
|
-
|
|
89
|
-
if (typeof o === "string")
|
|
90
|
-
return _arrayLikeToArray(o, minLen);
|
|
82
|
+
if (!o) return;
|
|
83
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
91
84
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
92
|
-
if (n === "Object" && o.constructor)
|
|
93
|
-
|
|
94
|
-
if (n === "
|
|
95
|
-
return Array.from(o);
|
|
96
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
97
|
-
return _arrayLikeToArray(o, minLen);
|
|
85
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
86
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
87
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
98
88
|
}
|
|
99
89
|
function _arrayLikeToArray(arr, len) {
|
|
100
|
-
if (len == null || len > arr.length)
|
|
101
|
-
|
|
102
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
103
|
-
arr2[i] = arr[i];
|
|
90
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
91
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
104
92
|
return arr2;
|
|
105
93
|
}
|
|
106
94
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -170,11 +158,9 @@ function requireDist() {
|
|
|
170
158
|
type = yield type(answer, _objectSpread({}, answers), question);
|
|
171
159
|
question["type"] = type;
|
|
172
160
|
}
|
|
173
|
-
if (!type)
|
|
174
|
-
continue;
|
|
161
|
+
if (!type) continue;
|
|
175
162
|
for (let key in question) {
|
|
176
|
-
if (passOn.includes(key))
|
|
177
|
-
continue;
|
|
163
|
+
if (passOn.includes(key)) continue;
|
|
178
164
|
let value = question[key];
|
|
179
165
|
question[key] = typeof value === "function" ? yield value(answer, _objectSpread({}, answers), lastPrompt) : value;
|
|
180
166
|
}
|
|
@@ -202,8 +188,7 @@ function requireDist() {
|
|
|
202
188
|
} catch (err) {
|
|
203
189
|
quit = !(yield onCancel(question, answers));
|
|
204
190
|
}
|
|
205
|
-
if (quit)
|
|
206
|
-
return answers;
|
|
191
|
+
if (quit) return answers;
|
|
207
192
|
}
|
|
208
193
|
} catch (err) {
|
|
209
194
|
_iterator.e(err);
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.esnext
CHANGED
|
@@ -3,8 +3,7 @@ import { __require as requireElements } from './elements/index.esnext';
|
|
|
3
3
|
|
|
4
4
|
var hasRequiredPrompts;
|
|
5
5
|
function requirePrompts() {
|
|
6
|
-
if (hasRequiredPrompts)
|
|
7
|
-
return prompts;
|
|
6
|
+
if (hasRequiredPrompts) return prompts;
|
|
8
7
|
hasRequiredPrompts = 1;
|
|
9
8
|
(function(exports) {
|
|
10
9
|
const $ = exports;
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/action.esnext
CHANGED
|
@@ -1,60 +1,36 @@
|
|
|
1
1
|
var action;
|
|
2
2
|
var hasRequiredAction;
|
|
3
3
|
function requireAction() {
|
|
4
|
-
if (hasRequiredAction)
|
|
5
|
-
return action;
|
|
4
|
+
if (hasRequiredAction) return action;
|
|
6
5
|
hasRequiredAction = 1;
|
|
7
6
|
action = (key, isSelect) => {
|
|
8
|
-
if (key.meta && key.name !== "escape")
|
|
9
|
-
return;
|
|
7
|
+
if (key.meta && key.name !== "escape") return;
|
|
10
8
|
if (key.ctrl) {
|
|
11
|
-
if (key.name === "a")
|
|
12
|
-
|
|
13
|
-
if (key.name === "
|
|
14
|
-
|
|
15
|
-
if (key.name === "
|
|
16
|
-
return "abort";
|
|
17
|
-
if (key.name === "e")
|
|
18
|
-
return "last";
|
|
19
|
-
if (key.name === "g")
|
|
20
|
-
return "reset";
|
|
9
|
+
if (key.name === "a") return "first";
|
|
10
|
+
if (key.name === "c") return "abort";
|
|
11
|
+
if (key.name === "d") return "abort";
|
|
12
|
+
if (key.name === "e") return "last";
|
|
13
|
+
if (key.name === "g") return "reset";
|
|
21
14
|
}
|
|
22
15
|
if (isSelect) {
|
|
23
|
-
if (key.name === "j")
|
|
24
|
-
|
|
25
|
-
if (key.name === "k")
|
|
26
|
-
return "up";
|
|
16
|
+
if (key.name === "j") return "down";
|
|
17
|
+
if (key.name === "k") return "up";
|
|
27
18
|
}
|
|
28
|
-
if (key.name === "return")
|
|
29
|
-
|
|
30
|
-
if (key.name === "
|
|
31
|
-
|
|
32
|
-
if (key.name === "
|
|
33
|
-
|
|
34
|
-
if (key.name === "
|
|
35
|
-
|
|
36
|
-
if (key.name === "
|
|
37
|
-
|
|
38
|
-
if (key.name === "
|
|
39
|
-
|
|
40
|
-
if (key.name === "
|
|
41
|
-
|
|
42
|
-
if (key.name === "
|
|
43
|
-
return "nextPage";
|
|
44
|
-
if (key.name === "pageup")
|
|
45
|
-
return "prevPage";
|
|
46
|
-
if (key.name === "home")
|
|
47
|
-
return "home";
|
|
48
|
-
if (key.name === "end")
|
|
49
|
-
return "end";
|
|
50
|
-
if (key.name === "up")
|
|
51
|
-
return "up";
|
|
52
|
-
if (key.name === "down")
|
|
53
|
-
return "down";
|
|
54
|
-
if (key.name === "right")
|
|
55
|
-
return "right";
|
|
56
|
-
if (key.name === "left")
|
|
57
|
-
return "left";
|
|
19
|
+
if (key.name === "return") return "submit";
|
|
20
|
+
if (key.name === "enter") return "submit";
|
|
21
|
+
if (key.name === "backspace") return "delete";
|
|
22
|
+
if (key.name === "delete") return "deleteForward";
|
|
23
|
+
if (key.name === "abort") return "abort";
|
|
24
|
+
if (key.name === "escape") return "exit";
|
|
25
|
+
if (key.name === "tab") return "next";
|
|
26
|
+
if (key.name === "pagedown") return "nextPage";
|
|
27
|
+
if (key.name === "pageup") return "prevPage";
|
|
28
|
+
if (key.name === "home") return "home";
|
|
29
|
+
if (key.name === "end") return "end";
|
|
30
|
+
if (key.name === "up") return "up";
|
|
31
|
+
if (key.name === "down") return "down";
|
|
32
|
+
if (key.name === "right") return "right";
|
|
33
|
+
if (key.name === "left") return "left";
|
|
58
34
|
return false;
|
|
59
35
|
};
|
|
60
36
|
return action;
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext
CHANGED
|
@@ -4,21 +4,18 @@ import { __require as requireSrc } from '../../../../../sisteransi@1.0.5/node_mo
|
|
|
4
4
|
var clear;
|
|
5
5
|
var hasRequiredClear;
|
|
6
6
|
function requireClear() {
|
|
7
|
-
if (hasRequiredClear)
|
|
8
|
-
return clear;
|
|
7
|
+
if (hasRequiredClear) return clear;
|
|
9
8
|
hasRequiredClear = 1;
|
|
10
9
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
11
10
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
12
11
|
if (!it) {
|
|
13
12
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
14
|
-
if (it)
|
|
15
|
-
o = it;
|
|
13
|
+
if (it) o = it;
|
|
16
14
|
var i = 0;
|
|
17
15
|
var F = function F2() {
|
|
18
16
|
};
|
|
19
17
|
return { s: F, n: function n() {
|
|
20
|
-
if (i >= o.length)
|
|
21
|
-
return { done: true };
|
|
18
|
+
if (i >= o.length) return { done: true };
|
|
22
19
|
return { done: false, value: o[i++] };
|
|
23
20
|
}, e: function e(_e) {
|
|
24
21
|
throw _e;
|
|
@@ -38,40 +35,30 @@ function requireClear() {
|
|
|
38
35
|
err = _e2;
|
|
39
36
|
}, f: function f() {
|
|
40
37
|
try {
|
|
41
|
-
if (!normalCompletion && it.return != null)
|
|
42
|
-
it.return();
|
|
38
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
43
39
|
} finally {
|
|
44
|
-
if (didErr)
|
|
45
|
-
throw err;
|
|
40
|
+
if (didErr) throw err;
|
|
46
41
|
}
|
|
47
42
|
} };
|
|
48
43
|
}
|
|
49
44
|
function _unsupportedIterableToArray(o, minLen) {
|
|
50
|
-
if (!o)
|
|
51
|
-
|
|
52
|
-
if (typeof o === "string")
|
|
53
|
-
return _arrayLikeToArray(o, minLen);
|
|
45
|
+
if (!o) return;
|
|
46
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
54
47
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
55
|
-
if (n === "Object" && o.constructor)
|
|
56
|
-
|
|
57
|
-
if (n === "
|
|
58
|
-
return Array.from(o);
|
|
59
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
60
|
-
return _arrayLikeToArray(o, minLen);
|
|
48
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
49
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
50
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
61
51
|
}
|
|
62
52
|
function _arrayLikeToArray(arr, len) {
|
|
63
|
-
if (len == null || len > arr.length)
|
|
64
|
-
|
|
65
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
66
|
-
arr2[i] = arr[i];
|
|
53
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
54
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
67
55
|
return arr2;
|
|
68
56
|
}
|
|
69
57
|
const strip = requireStrip();
|
|
70
58
|
const _require = requireSrc(), erase = _require.erase, cursor = _require.cursor;
|
|
71
59
|
const width = (str) => [...strip(str)].length;
|
|
72
60
|
clear = function(prompt, perLine) {
|
|
73
|
-
if (!perLine)
|
|
74
|
-
return erase.line + cursor.to(0);
|
|
61
|
+
if (!perLine) return erase.line + cursor.to(0);
|
|
75
62
|
let rows = 0;
|
|
76
63
|
const lines = prompt.split(/\r?\n/);
|
|
77
64
|
var _iterator = _createForOfIteratorHelper(lines), _step;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
var entriesToDisplay;
|
|
2
2
|
var hasRequiredEntriesToDisplay;
|
|
3
3
|
function requireEntriesToDisplay() {
|
|
4
|
-
if (hasRequiredEntriesToDisplay)
|
|
5
|
-
return entriesToDisplay;
|
|
4
|
+
if (hasRequiredEntriesToDisplay) return entriesToDisplay;
|
|
6
5
|
hasRequiredEntriesToDisplay = 1;
|
|
7
6
|
entriesToDisplay = (cursor, total, maxVisible) => {
|
|
8
7
|
maxVisible = maxVisible || total;
|
|
9
8
|
let startIndex = Math.min(total - maxVisible, cursor - Math.floor(maxVisible / 2));
|
|
10
|
-
if (startIndex < 0)
|
|
11
|
-
startIndex = 0;
|
|
9
|
+
if (startIndex < 0) startIndex = 0;
|
|
12
10
|
let endIndex = Math.min(startIndex + maxVisible, total);
|
|
13
11
|
return {
|
|
14
12
|
startIndex,
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/index.esnext
CHANGED
|
@@ -10,8 +10,7 @@ import { __require as requireEntriesToDisplay } from './entriesToDisplay.esnext'
|
|
|
10
10
|
var util;
|
|
11
11
|
var hasRequiredUtil;
|
|
12
12
|
function requireUtil() {
|
|
13
|
-
if (hasRequiredUtil)
|
|
14
|
-
return util;
|
|
13
|
+
if (hasRequiredUtil) return util;
|
|
15
14
|
hasRequiredUtil = 1;
|
|
16
15
|
util = {
|
|
17
16
|
action: requireAction(),
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/lines.esnext
CHANGED
|
@@ -3,14 +3,12 @@ import { __require as requireStrip } from './strip.esnext';
|
|
|
3
3
|
var lines;
|
|
4
4
|
var hasRequiredLines;
|
|
5
5
|
function requireLines() {
|
|
6
|
-
if (hasRequiredLines)
|
|
7
|
-
return lines;
|
|
6
|
+
if (hasRequiredLines) return lines;
|
|
8
7
|
hasRequiredLines = 1;
|
|
9
8
|
const strip = requireStrip();
|
|
10
9
|
lines = function(msg, perLine) {
|
|
11
10
|
let lines2 = String(strip(msg) || "").split(/\r?\n/);
|
|
12
|
-
if (!perLine)
|
|
13
|
-
return lines2.length;
|
|
11
|
+
if (!perLine) return lines2.length;
|
|
14
12
|
return lines2.map((l) => Math.ceil(l.length / perLine)).reduce((a, b) => a + b);
|
|
15
13
|
};
|
|
16
14
|
return lines;
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/strip.esnext
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
var strip;
|
|
2
2
|
var hasRequiredStrip;
|
|
3
3
|
function requireStrip() {
|
|
4
|
-
if (hasRequiredStrip)
|
|
5
|
-
return strip;
|
|
4
|
+
if (hasRequiredStrip) return strip;
|
|
6
5
|
hasRequiredStrip = 1;
|
|
7
6
|
strip = (str) => {
|
|
8
7
|
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.esnext
CHANGED
|
@@ -4,8 +4,7 @@ import { __require as requireFigures } from './figures.esnext';
|
|
|
4
4
|
var style;
|
|
5
5
|
var hasRequiredStyle;
|
|
6
6
|
function requireStyle() {
|
|
7
|
-
if (hasRequiredStyle)
|
|
8
|
-
return style;
|
|
7
|
+
if (hasRequiredStyle) return style;
|
|
9
8
|
hasRequiredStyle = 1;
|
|
10
9
|
const c = requireKleur();
|
|
11
10
|
const figures = requireFigures();
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/wrap.esnext
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
var wrap;
|
|
2
2
|
var hasRequiredWrap;
|
|
3
3
|
function requireWrap() {
|
|
4
|
-
if (hasRequiredWrap)
|
|
5
|
-
return wrap;
|
|
4
|
+
if (hasRequiredWrap) return wrap;
|
|
6
5
|
hasRequiredWrap = 1;
|
|
7
6
|
wrap = (msg, opts = {}) => {
|
|
8
7
|
const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
|
|
9
8
|
const width = opts.width;
|
|
10
9
|
return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w) => {
|
|
11
|
-
if (w.length + tab.length >= width || arr[arr.length - 1].length + w.length + 1 < width)
|
|
12
|
-
|
|
13
|
-
else
|
|
14
|
-
arr.push(`${tab}${w}`);
|
|
10
|
+
if (w.length + tab.length >= width || arr[arr.length - 1].length + w.length + 1 < width) arr[arr.length - 1] += ` ${w}`;
|
|
11
|
+
else arr.push(`${tab}${w}`);
|
|
15
12
|
return arr;
|
|
16
13
|
}, [tab]).join("\n")).join("\n");
|
|
17
14
|
};
|
|
@@ -6,10 +6,8 @@ function isNodeLT(tar) {
|
|
|
6
6
|
tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
|
|
7
7
|
let i = 0, src = process.versions.node.split(".").map(Number);
|
|
8
8
|
for (; i < tar.length; i++) {
|
|
9
|
-
if (src[i] > tar[i])
|
|
10
|
-
|
|
11
|
-
if (tar[i] > src[i])
|
|
12
|
-
return true;
|
|
9
|
+
if (src[i] > tar[i]) return false;
|
|
10
|
+
if (tar[i] > src[i]) return true;
|
|
13
11
|
}
|
|
14
12
|
return false;
|
|
15
13
|
}
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.esnext
CHANGED
|
@@ -3,8 +3,7 @@ import { __require as requireDatepart } from './datepart.esnext';
|
|
|
3
3
|
var day;
|
|
4
4
|
var hasRequiredDay;
|
|
5
5
|
function requireDay() {
|
|
6
|
-
if (hasRequiredDay)
|
|
7
|
-
return day;
|
|
6
|
+
if (hasRequiredDay) return day;
|
|
8
7
|
hasRequiredDay = 1;
|
|
9
8
|
const DatePart = requireDatepart();
|
|
10
9
|
const pos = (n) => {
|
|
@@ -3,8 +3,7 @@ import { __require as requireDatepart } from './datepart.esnext';
|
|
|
3
3
|
var hours;
|
|
4
4
|
var hasRequiredHours;
|
|
5
5
|
function requireHours() {
|
|
6
|
-
if (hasRequiredHours)
|
|
7
|
-
return hours;
|
|
6
|
+
if (hasRequiredHours) return hours;
|
|
8
7
|
hasRequiredHours = 1;
|
|
9
8
|
const DatePart = requireDatepart();
|
|
10
9
|
class Hours extends DatePart {
|
|
@@ -11,8 +11,7 @@ import { __require as requireYear } from './year.esnext';
|
|
|
11
11
|
var dateparts;
|
|
12
12
|
var hasRequiredDateparts;
|
|
13
13
|
function requireDateparts() {
|
|
14
|
-
if (hasRequiredDateparts)
|
|
15
|
-
return dateparts;
|
|
14
|
+
if (hasRequiredDateparts) return dateparts;
|
|
16
15
|
hasRequiredDateparts = 1;
|
|
17
16
|
dateparts = {
|
|
18
17
|
DatePart: requireDatepart(),
|
|
@@ -3,8 +3,7 @@ import { __require as requireDatepart } from './datepart.esnext';
|
|
|
3
3
|
var meridiem;
|
|
4
4
|
var hasRequiredMeridiem;
|
|
5
5
|
function requireMeridiem() {
|
|
6
|
-
if (hasRequiredMeridiem)
|
|
7
|
-
return meridiem;
|
|
6
|
+
if (hasRequiredMeridiem) return meridiem;
|
|
8
7
|
hasRequiredMeridiem = 1;
|
|
9
8
|
const DatePart = requireDatepart();
|
|
10
9
|
class Meridiem extends DatePart {
|
|
@@ -3,8 +3,7 @@ import { __require as requireDatepart } from './datepart.esnext';
|
|
|
3
3
|
var milliseconds;
|
|
4
4
|
var hasRequiredMilliseconds;
|
|
5
5
|
function requireMilliseconds() {
|
|
6
|
-
if (hasRequiredMilliseconds)
|
|
7
|
-
return milliseconds;
|
|
6
|
+
if (hasRequiredMilliseconds) return milliseconds;
|
|
8
7
|
hasRequiredMilliseconds = 1;
|
|
9
8
|
const DatePart = requireDatepart();
|
|
10
9
|
class Milliseconds extends DatePart {
|
|
@@ -3,8 +3,7 @@ import { __require as requireDatepart } from './datepart.esnext';
|
|
|
3
3
|
var minutes;
|
|
4
4
|
var hasRequiredMinutes;
|
|
5
5
|
function requireMinutes() {
|
|
6
|
-
if (hasRequiredMinutes)
|
|
7
|
-
return minutes;
|
|
6
|
+
if (hasRequiredMinutes) return minutes;
|
|
8
7
|
hasRequiredMinutes = 1;
|
|
9
8
|
const DatePart = requireDatepart();
|
|
10
9
|
class Minutes extends DatePart {
|
|
@@ -3,8 +3,7 @@ import { __require as requireDatepart } from './datepart.esnext';
|
|
|
3
3
|
var month;
|
|
4
4
|
var hasRequiredMonth;
|
|
5
5
|
function requireMonth() {
|
|
6
|
-
if (hasRequiredMonth)
|
|
7
|
-
return month;
|
|
6
|
+
if (hasRequiredMonth) return month;
|
|
8
7
|
hasRequiredMonth = 1;
|
|
9
8
|
const DatePart = requireDatepart();
|
|
10
9
|
class Month extends DatePart {
|
|
@@ -3,8 +3,7 @@ import { __require as requireDatepart } from './datepart.esnext';
|
|
|
3
3
|
var seconds;
|
|
4
4
|
var hasRequiredSeconds;
|
|
5
5
|
function requireSeconds() {
|
|
6
|
-
if (hasRequiredSeconds)
|
|
7
|
-
return seconds;
|
|
6
|
+
if (hasRequiredSeconds) return seconds;
|
|
8
7
|
hasRequiredSeconds = 1;
|
|
9
8
|
const DatePart = requireDatepart();
|
|
10
9
|
class Seconds extends DatePart {
|
package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.esnext
CHANGED
|
@@ -3,8 +3,7 @@ import { __require as requireDatepart } from './datepart.esnext';
|
|
|
3
3
|
var year;
|
|
4
4
|
var hasRequiredYear;
|
|
5
5
|
function requireYear() {
|
|
6
|
-
if (hasRequiredYear)
|
|
7
|
-
return year;
|
|
6
|
+
if (hasRequiredYear) return year;
|
|
8
7
|
hasRequiredYear = 1;
|
|
9
8
|
const DatePart = requireDatepart();
|
|
10
9
|
class Year extends DatePart {
|