@sap/ux-ui5-tooling 1.6.6 → 1.6.7
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 +4 -0
- package/README.md +1 -1
- package/dist/cli/index.js +1014 -445
- package/dist/middlewares/fiori-tools-appreload.js +56 -56
- package/dist/middlewares/fiori-tools-preview.js +450 -125
- package/dist/middlewares/fiori-tools-proxy.js +81992 -92260
- package/dist/middlewares/fiori-tools-servestatic.js +56 -56
- package/dist/tasks/cf-deploy/index.js +506 -181
- package/dist/tasks/deploy/index.js +1014 -445
- package/dist/templates/control-property-editor/app.css +1 -1
- package/dist/templates/control-property-editor/app.js +48 -48
- package/package.json +14 -14
|
@@ -32306,9 +32306,9 @@ var require_dist3 = __commonJS({
|
|
|
32306
32306
|
}
|
|
32307
32307
|
});
|
|
32308
32308
|
|
|
32309
|
-
// ../../node_modules/
|
|
32309
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-base.js
|
|
32310
32310
|
var require_tracker_base = __commonJS({
|
|
32311
|
-
"../../node_modules/
|
|
32311
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-base.js"(exports2, module2) {
|
|
32312
32312
|
"use strict";
|
|
32313
32313
|
var EventEmitter3 = require("events").EventEmitter;
|
|
32314
32314
|
var util = require("util");
|
|
@@ -32322,9 +32322,9 @@ var require_tracker_base = __commonJS({
|
|
|
32322
32322
|
}
|
|
32323
32323
|
});
|
|
32324
32324
|
|
|
32325
|
-
// ../../node_modules/
|
|
32325
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker.js
|
|
32326
32326
|
var require_tracker = __commonJS({
|
|
32327
|
-
"../../node_modules/
|
|
32327
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker.js"(exports2, module2) {
|
|
32328
32328
|
"use strict";
|
|
32329
32329
|
var util = require("util");
|
|
32330
32330
|
var TrackerBase = require_tracker_base();
|
|
@@ -34452,9 +34452,9 @@ var require_delegates = __commonJS({
|
|
|
34452
34452
|
}
|
|
34453
34453
|
});
|
|
34454
34454
|
|
|
34455
|
-
// ../../node_modules/
|
|
34455
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-stream.js
|
|
34456
34456
|
var require_tracker_stream = __commonJS({
|
|
34457
|
-
"../../node_modules/
|
|
34457
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-stream.js"(exports2, module2) {
|
|
34458
34458
|
"use strict";
|
|
34459
34459
|
var util = require("util");
|
|
34460
34460
|
var stream = require_readable();
|
|
@@ -34486,9 +34486,9 @@ var require_tracker_stream = __commonJS({
|
|
|
34486
34486
|
}
|
|
34487
34487
|
});
|
|
34488
34488
|
|
|
34489
|
-
// ../../node_modules/
|
|
34489
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-group.js
|
|
34490
34490
|
var require_tracker_group = __commonJS({
|
|
34491
|
-
"../../node_modules/
|
|
34491
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-group.js"(exports2, module2) {
|
|
34492
34492
|
"use strict";
|
|
34493
34493
|
var util = require("util");
|
|
34494
34494
|
var TrackerBase = require_tracker_base();
|
|
@@ -34590,9 +34590,9 @@ var require_tracker_group = __commonJS({
|
|
|
34590
34590
|
}
|
|
34591
34591
|
});
|
|
34592
34592
|
|
|
34593
|
-
// ../../node_modules/
|
|
34593
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/index.js
|
|
34594
34594
|
var require_are_we_there_yet = __commonJS({
|
|
34595
|
-
"../../node_modules/
|
|
34595
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/index.js"(exports2) {
|
|
34596
34596
|
"use strict";
|
|
34597
34597
|
exports2.TrackerGroup = require_tracker_group();
|
|
34598
34598
|
exports2.Tracker = require_tracker();
|
|
@@ -34722,18 +34722,18 @@ var require_ansi_regex = __commonJS({
|
|
|
34722
34722
|
}
|
|
34723
34723
|
});
|
|
34724
34724
|
|
|
34725
|
-
// ../../node_modules/
|
|
34725
|
+
// ../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/strip-ansi/index.js
|
|
34726
34726
|
var require_strip_ansi = __commonJS({
|
|
34727
|
-
"../../node_modules/
|
|
34727
|
+
"../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
34728
34728
|
"use strict";
|
|
34729
34729
|
var ansiRegex = require_ansi_regex();
|
|
34730
34730
|
module2.exports = (input) => typeof input === "string" ? input.replace(ansiRegex(), "") : input;
|
|
34731
34731
|
}
|
|
34732
34732
|
});
|
|
34733
34733
|
|
|
34734
|
-
// ../../node_modules/
|
|
34734
|
+
// ../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js
|
|
34735
34735
|
var require_is_fullwidth_code_point = __commonJS({
|
|
34736
|
-
"../../node_modules/
|
|
34736
|
+
"../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
|
|
34737
34737
|
"use strict";
|
|
34738
34738
|
module2.exports = (x) => {
|
|
34739
34739
|
if (Number.isNaN(x)) {
|
|
@@ -34747,9 +34747,9 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
34747
34747
|
}
|
|
34748
34748
|
});
|
|
34749
34749
|
|
|
34750
|
-
// ../../node_modules/
|
|
34750
|
+
// ../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/string-width/index.js
|
|
34751
34751
|
var require_string_width = __commonJS({
|
|
34752
|
-
"../../node_modules/
|
|
34752
|
+
"../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/string-width/index.js"(exports2, module2) {
|
|
34753
34753
|
"use strict";
|
|
34754
34754
|
var stripAnsi = require_strip_ansi();
|
|
34755
34755
|
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
@@ -34777,9 +34777,9 @@ var require_string_width = __commonJS({
|
|
|
34777
34777
|
}
|
|
34778
34778
|
});
|
|
34779
34779
|
|
|
34780
|
-
// ../../node_modules/
|
|
34780
|
+
// ../../node_modules/@ui5/logger/node_modules/wide-align/align.js
|
|
34781
34781
|
var require_align = __commonJS({
|
|
34782
|
-
"../../node_modules/
|
|
34782
|
+
"../../node_modules/@ui5/logger/node_modules/wide-align/align.js"(exports2) {
|
|
34783
34783
|
"use strict";
|
|
34784
34784
|
var stringWidth = require_string_width();
|
|
34785
34785
|
exports2.center = alignCenter;
|
|
@@ -35035,9 +35035,9 @@ var require_object_assign = __commonJS({
|
|
|
35035
35035
|
}
|
|
35036
35036
|
});
|
|
35037
35037
|
|
|
35038
|
-
// ../../node_modules/
|
|
35038
|
+
// ../../node_modules/@ui5/logger/node_modules/strip-ansi/index.js
|
|
35039
35039
|
var require_strip_ansi2 = __commonJS({
|
|
35040
|
-
"../../node_modules/
|
|
35040
|
+
"../../node_modules/@ui5/logger/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
35041
35041
|
"use strict";
|
|
35042
35042
|
var ansiRegex = require_ansi_regex()();
|
|
35043
35043
|
module2.exports = function(str) {
|
|
@@ -35085,9 +35085,9 @@ var require_number_is_nan = __commonJS({
|
|
|
35085
35085
|
}
|
|
35086
35086
|
});
|
|
35087
35087
|
|
|
35088
|
-
// ../../node_modules/
|
|
35088
|
+
// ../../node_modules/@ui5/logger/node_modules/is-fullwidth-code-point/index.js
|
|
35089
35089
|
var require_is_fullwidth_code_point2 = __commonJS({
|
|
35090
|
-
"../../node_modules/
|
|
35090
|
+
"../../node_modules/@ui5/logger/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
|
|
35091
35091
|
"use strict";
|
|
35092
35092
|
var numberIsNan = require_number_is_nan();
|
|
35093
35093
|
module2.exports = function(x) {
|
|
@@ -35102,9 +35102,9 @@ var require_is_fullwidth_code_point2 = __commonJS({
|
|
|
35102
35102
|
}
|
|
35103
35103
|
});
|
|
35104
35104
|
|
|
35105
|
-
// ../../node_modules/
|
|
35105
|
+
// ../../node_modules/@ui5/logger/node_modules/string-width/index.js
|
|
35106
35106
|
var require_string_width2 = __commonJS({
|
|
35107
|
-
"../../node_modules/
|
|
35107
|
+
"../../node_modules/@ui5/logger/node_modules/string-width/index.js"(exports2, module2) {
|
|
35108
35108
|
"use strict";
|
|
35109
35109
|
var stripAnsi = require_strip_ansi2();
|
|
35110
35110
|
var codePointAt = require_code_point_at();
|
|
@@ -35134,9 +35134,9 @@ var require_string_width2 = __commonJS({
|
|
|
35134
35134
|
}
|
|
35135
35135
|
});
|
|
35136
35136
|
|
|
35137
|
-
// ../../node_modules/gauge/wide-truncate.js
|
|
35137
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/wide-truncate.js
|
|
35138
35138
|
var require_wide_truncate = __commonJS({
|
|
35139
|
-
"../../node_modules/gauge/wide-truncate.js"(exports2, module2) {
|
|
35139
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/wide-truncate.js"(exports2, module2) {
|
|
35140
35140
|
"use strict";
|
|
35141
35141
|
var stringWidth = require_string_width2();
|
|
35142
35142
|
var stripAnsi = require_strip_ansi2();
|
|
@@ -35159,9 +35159,9 @@ var require_wide_truncate = __commonJS({
|
|
|
35159
35159
|
}
|
|
35160
35160
|
});
|
|
35161
35161
|
|
|
35162
|
-
// ../../node_modules/gauge/error.js
|
|
35162
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/error.js
|
|
35163
35163
|
var require_error3 = __commonJS({
|
|
35164
|
-
"../../node_modules/gauge/error.js"(exports2) {
|
|
35164
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/error.js"(exports2) {
|
|
35165
35165
|
"use strict";
|
|
35166
35166
|
var util = require("util");
|
|
35167
35167
|
var User = exports2.User = function User2(msg) {
|
|
@@ -35186,9 +35186,9 @@ var require_error3 = __commonJS({
|
|
|
35186
35186
|
}
|
|
35187
35187
|
});
|
|
35188
35188
|
|
|
35189
|
-
// ../../node_modules/gauge/template-item.js
|
|
35189
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/template-item.js
|
|
35190
35190
|
var require_template_item = __commonJS({
|
|
35191
|
-
"../../node_modules/gauge/template-item.js"(exports2, module2) {
|
|
35191
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/template-item.js"(exports2, module2) {
|
|
35192
35192
|
"use strict";
|
|
35193
35193
|
var stringWidth = require_string_width2();
|
|
35194
35194
|
module2.exports = TemplateItem;
|
|
@@ -35259,9 +35259,9 @@ var require_template_item = __commonJS({
|
|
|
35259
35259
|
}
|
|
35260
35260
|
});
|
|
35261
35261
|
|
|
35262
|
-
// ../../node_modules/gauge/render-template.js
|
|
35262
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/render-template.js
|
|
35263
35263
|
var require_render_template = __commonJS({
|
|
35264
|
-
"../../node_modules/gauge/render-template.js"(exports2, module2) {
|
|
35264
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/render-template.js"(exports2, module2) {
|
|
35265
35265
|
"use strict";
|
|
35266
35266
|
var align = require_align();
|
|
35267
35267
|
var validate = require_aproba();
|
|
@@ -35449,9 +35449,9 @@ var require_render_template = __commonJS({
|
|
|
35449
35449
|
}
|
|
35450
35450
|
});
|
|
35451
35451
|
|
|
35452
|
-
// ../../node_modules/gauge/plumbing.js
|
|
35452
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/plumbing.js
|
|
35453
35453
|
var require_plumbing = __commonJS({
|
|
35454
|
-
"../../node_modules/gauge/plumbing.js"(exports2, module2) {
|
|
35454
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/plumbing.js"(exports2, module2) {
|
|
35455
35455
|
"use strict";
|
|
35456
35456
|
var consoleControl = require_console_control_strings();
|
|
35457
35457
|
var renderTemplate = require_render_template();
|
|
@@ -35509,9 +35509,9 @@ var require_has_unicode = __commonJS({
|
|
|
35509
35509
|
}
|
|
35510
35510
|
});
|
|
35511
35511
|
|
|
35512
|
-
// ../../node_modules/gauge/has-color.js
|
|
35512
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/has-color.js
|
|
35513
35513
|
var require_has_color = __commonJS({
|
|
35514
|
-
"../../node_modules/gauge/has-color.js"(exports2, module2) {
|
|
35514
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/has-color.js"(exports2, module2) {
|
|
35515
35515
|
"use strict";
|
|
35516
35516
|
module2.exports = isWin32() || isColorTerm();
|
|
35517
35517
|
function isWin32() {
|
|
@@ -35667,9 +35667,9 @@ var require_signal_exit = __commonJS({
|
|
|
35667
35667
|
}
|
|
35668
35668
|
});
|
|
35669
35669
|
|
|
35670
|
-
// ../../node_modules/gauge/spin.js
|
|
35670
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/spin.js
|
|
35671
35671
|
var require_spin = __commonJS({
|
|
35672
|
-
"../../node_modules/gauge/spin.js"(exports2, module2) {
|
|
35672
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/spin.js"(exports2, module2) {
|
|
35673
35673
|
"use strict";
|
|
35674
35674
|
module2.exports = function spin(spinstr, spun) {
|
|
35675
35675
|
return spinstr[spun % spinstr.length];
|
|
@@ -35677,9 +35677,9 @@ var require_spin = __commonJS({
|
|
|
35677
35677
|
}
|
|
35678
35678
|
});
|
|
35679
35679
|
|
|
35680
|
-
// ../../node_modules/gauge/progress-bar.js
|
|
35680
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/progress-bar.js
|
|
35681
35681
|
var require_progress_bar = __commonJS({
|
|
35682
|
-
"../../node_modules/gauge/progress-bar.js"(exports2, module2) {
|
|
35682
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/progress-bar.js"(exports2, module2) {
|
|
35683
35683
|
"use strict";
|
|
35684
35684
|
var validate = require_aproba();
|
|
35685
35685
|
var renderTemplate = require_render_template();
|
|
@@ -35716,9 +35716,9 @@ var require_progress_bar = __commonJS({
|
|
|
35716
35716
|
}
|
|
35717
35717
|
});
|
|
35718
35718
|
|
|
35719
|
-
// ../../node_modules/gauge/base-theme.js
|
|
35719
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/base-theme.js
|
|
35720
35720
|
var require_base_theme = __commonJS({
|
|
35721
|
-
"../../node_modules/gauge/base-theme.js"(exports2, module2) {
|
|
35721
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/base-theme.js"(exports2, module2) {
|
|
35722
35722
|
"use strict";
|
|
35723
35723
|
var spin = require_spin();
|
|
35724
35724
|
var progressBar = require_progress_bar();
|
|
@@ -35737,9 +35737,9 @@ var require_base_theme = __commonJS({
|
|
|
35737
35737
|
}
|
|
35738
35738
|
});
|
|
35739
35739
|
|
|
35740
|
-
// ../../node_modules/gauge/theme-set.js
|
|
35740
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/theme-set.js
|
|
35741
35741
|
var require_theme_set = __commonJS({
|
|
35742
|
-
"../../node_modules/gauge/theme-set.js"(exports2, module2) {
|
|
35742
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/theme-set.js"(exports2, module2) {
|
|
35743
35743
|
"use strict";
|
|
35744
35744
|
var objectAssign = require_object_assign();
|
|
35745
35745
|
module2.exports = function() {
|
|
@@ -35844,9 +35844,9 @@ var require_theme_set = __commonJS({
|
|
|
35844
35844
|
}
|
|
35845
35845
|
});
|
|
35846
35846
|
|
|
35847
|
-
// ../../node_modules/gauge/themes.js
|
|
35847
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/themes.js
|
|
35848
35848
|
var require_themes = __commonJS({
|
|
35849
|
-
"../../node_modules/gauge/themes.js"(exports2, module2) {
|
|
35849
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/themes.js"(exports2, module2) {
|
|
35850
35850
|
"use strict";
|
|
35851
35851
|
var consoleControl = require_console_control_strings();
|
|
35852
35852
|
var ThemeSet = require_theme_set();
|
|
@@ -35898,25 +35898,25 @@ var require_themes = __commonJS({
|
|
|
35898
35898
|
}
|
|
35899
35899
|
});
|
|
35900
35900
|
|
|
35901
|
-
// ../../node_modules/gauge/set-interval.js
|
|
35901
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/set-interval.js
|
|
35902
35902
|
var require_set_interval = __commonJS({
|
|
35903
|
-
"../../node_modules/gauge/set-interval.js"(exports2, module2) {
|
|
35903
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/set-interval.js"(exports2, module2) {
|
|
35904
35904
|
"use strict";
|
|
35905
35905
|
module2.exports = setInterval;
|
|
35906
35906
|
}
|
|
35907
35907
|
});
|
|
35908
35908
|
|
|
35909
|
-
// ../../node_modules/gauge/process.js
|
|
35909
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/process.js
|
|
35910
35910
|
var require_process = __commonJS({
|
|
35911
|
-
"../../node_modules/gauge/process.js"(exports2, module2) {
|
|
35911
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/process.js"(exports2, module2) {
|
|
35912
35912
|
"use strict";
|
|
35913
35913
|
module2.exports = process;
|
|
35914
35914
|
}
|
|
35915
35915
|
});
|
|
35916
35916
|
|
|
35917
|
-
// ../../node_modules/gauge/set-immediate.js
|
|
35917
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/set-immediate.js
|
|
35918
35918
|
var require_set_immediate = __commonJS({
|
|
35919
|
-
"../../node_modules/gauge/set-immediate.js"(exports2, module2) {
|
|
35919
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/set-immediate.js"(exports2, module2) {
|
|
35920
35920
|
"use strict";
|
|
35921
35921
|
var process2 = require_process();
|
|
35922
35922
|
try {
|
|
@@ -35927,9 +35927,9 @@ var require_set_immediate = __commonJS({
|
|
|
35927
35927
|
}
|
|
35928
35928
|
});
|
|
35929
35929
|
|
|
35930
|
-
// ../../node_modules/gauge/index.js
|
|
35930
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/index.js
|
|
35931
35931
|
var require_gauge = __commonJS({
|
|
35932
|
-
"../../node_modules/gauge/index.js"(exports2, module2) {
|
|
35932
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/index.js"(exports2, module2) {
|
|
35933
35933
|
"use strict";
|
|
35934
35934
|
var Plumbing = require_plumbing();
|
|
35935
35935
|
var hasUnicode = require_has_unicode();
|
|
@@ -36174,9 +36174,9 @@ var require_set_blocking = __commonJS({
|
|
|
36174
36174
|
}
|
|
36175
36175
|
});
|
|
36176
36176
|
|
|
36177
|
-
// ../../node_modules/npmlog/log.js
|
|
36177
|
+
// ../../node_modules/@ui5/logger/node_modules/npmlog/log.js
|
|
36178
36178
|
var require_log = __commonJS({
|
|
36179
|
-
"../../node_modules/npmlog/log.js"(exports2, module2) {
|
|
36179
|
+
"../../node_modules/@ui5/logger/node_modules/npmlog/log.js"(exports2, module2) {
|
|
36180
36180
|
"use strict";
|
|
36181
36181
|
var Progress = require_are_we_there_yet();
|
|
36182
36182
|
var Gauge = require_gauge();
|
|
@@ -36707,12 +36707,12 @@ var require_kleur = __commonJS({
|
|
|
36707
36707
|
}
|
|
36708
36708
|
});
|
|
36709
36709
|
|
|
36710
|
-
// node_modules/prompts/dist/util/action.js
|
|
36710
|
+
// ../../node_modules/prompts/dist/util/action.js
|
|
36711
36711
|
var require_action = __commonJS({
|
|
36712
|
-
"node_modules/prompts/dist/util/action.js"(exports2, module2) {
|
|
36712
|
+
"../../node_modules/prompts/dist/util/action.js"(exports2, module2) {
|
|
36713
36713
|
"use strict";
|
|
36714
36714
|
module2.exports = (key, isSelect) => {
|
|
36715
|
-
if (key.meta)
|
|
36715
|
+
if (key.meta && key.name !== "escape")
|
|
36716
36716
|
return;
|
|
36717
36717
|
if (key.ctrl) {
|
|
36718
36718
|
if (key.name === "a")
|
|
@@ -36743,13 +36743,17 @@ var require_action = __commonJS({
|
|
|
36743
36743
|
if (key.name === "abort")
|
|
36744
36744
|
return "abort";
|
|
36745
36745
|
if (key.name === "escape")
|
|
36746
|
-
return "
|
|
36746
|
+
return "exit";
|
|
36747
36747
|
if (key.name === "tab")
|
|
36748
36748
|
return "next";
|
|
36749
36749
|
if (key.name === "pagedown")
|
|
36750
36750
|
return "nextPage";
|
|
36751
36751
|
if (key.name === "pageup")
|
|
36752
36752
|
return "prevPage";
|
|
36753
|
+
if (key.name === "home")
|
|
36754
|
+
return "home";
|
|
36755
|
+
if (key.name === "end")
|
|
36756
|
+
return "end";
|
|
36753
36757
|
if (key.name === "up")
|
|
36754
36758
|
return "up";
|
|
36755
36759
|
if (key.name === "down")
|
|
@@ -36763,12 +36767,12 @@ var require_action = __commonJS({
|
|
|
36763
36767
|
}
|
|
36764
36768
|
});
|
|
36765
36769
|
|
|
36766
|
-
// node_modules/prompts/dist/util/strip.js
|
|
36770
|
+
// ../../node_modules/prompts/dist/util/strip.js
|
|
36767
36771
|
var require_strip = __commonJS({
|
|
36768
|
-
"node_modules/prompts/dist/util/strip.js"(exports2, module2) {
|
|
36772
|
+
"../../node_modules/prompts/dist/util/strip.js"(exports2, module2) {
|
|
36769
36773
|
"use strict";
|
|
36770
36774
|
module2.exports = (str) => {
|
|
36771
|
-
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]
|
|
36775
|
+
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("|");
|
|
36772
36776
|
const RGX = new RegExp(pattern, "g");
|
|
36773
36777
|
return typeof str === "string" ? str.replace(RGX, "") : str;
|
|
36774
36778
|
};
|
|
@@ -36836,50 +36840,98 @@ var require_src6 = __commonJS({
|
|
|
36836
36840
|
}
|
|
36837
36841
|
});
|
|
36838
36842
|
|
|
36839
|
-
// node_modules/prompts/dist/util/clear.js
|
|
36843
|
+
// ../../node_modules/prompts/dist/util/clear.js
|
|
36840
36844
|
var require_clear = __commonJS({
|
|
36841
|
-
"node_modules/prompts/dist/util/clear.js"(exports2, module2) {
|
|
36845
|
+
"../../node_modules/prompts/dist/util/clear.js"(exports2, module2) {
|
|
36842
36846
|
"use strict";
|
|
36847
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
36848
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
36849
|
+
if (!it) {
|
|
36850
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray2(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
36851
|
+
if (it)
|
|
36852
|
+
o = it;
|
|
36853
|
+
var i = 0;
|
|
36854
|
+
var F = function F2() {
|
|
36855
|
+
};
|
|
36856
|
+
return { s: F, n: function n() {
|
|
36857
|
+
if (i >= o.length)
|
|
36858
|
+
return { done: true };
|
|
36859
|
+
return { done: false, value: o[i++] };
|
|
36860
|
+
}, e: function e(_e) {
|
|
36861
|
+
throw _e;
|
|
36862
|
+
}, f: F };
|
|
36863
|
+
}
|
|
36864
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
36865
|
+
}
|
|
36866
|
+
var normalCompletion = true, didErr = false, err;
|
|
36867
|
+
return { s: function s() {
|
|
36868
|
+
it = it.call(o);
|
|
36869
|
+
}, n: function n() {
|
|
36870
|
+
var step = it.next();
|
|
36871
|
+
normalCompletion = step.done;
|
|
36872
|
+
return step;
|
|
36873
|
+
}, e: function e(_e2) {
|
|
36874
|
+
didErr = true;
|
|
36875
|
+
err = _e2;
|
|
36876
|
+
}, f: function f() {
|
|
36877
|
+
try {
|
|
36878
|
+
if (!normalCompletion && it.return != null)
|
|
36879
|
+
it.return();
|
|
36880
|
+
} finally {
|
|
36881
|
+
if (didErr)
|
|
36882
|
+
throw err;
|
|
36883
|
+
}
|
|
36884
|
+
} };
|
|
36885
|
+
}
|
|
36886
|
+
function _unsupportedIterableToArray2(o, minLen) {
|
|
36887
|
+
if (!o)
|
|
36888
|
+
return;
|
|
36889
|
+
if (typeof o === "string")
|
|
36890
|
+
return _arrayLikeToArray2(o, minLen);
|
|
36891
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
36892
|
+
if (n === "Object" && o.constructor)
|
|
36893
|
+
n = o.constructor.name;
|
|
36894
|
+
if (n === "Map" || n === "Set")
|
|
36895
|
+
return Array.from(o);
|
|
36896
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
36897
|
+
return _arrayLikeToArray2(o, minLen);
|
|
36898
|
+
}
|
|
36899
|
+
function _arrayLikeToArray2(arr, len) {
|
|
36900
|
+
if (len == null || len > arr.length)
|
|
36901
|
+
len = arr.length;
|
|
36902
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
36903
|
+
arr2[i] = arr[i];
|
|
36904
|
+
return arr2;
|
|
36905
|
+
}
|
|
36843
36906
|
var strip = require_strip();
|
|
36844
36907
|
var _require = require_src6();
|
|
36845
36908
|
var erase = _require.erase;
|
|
36846
36909
|
var cursor = _require.cursor;
|
|
36847
36910
|
var width = (str) => [...strip(str)].length;
|
|
36848
|
-
module2.exports = function(prompt, perLine
|
|
36911
|
+
module2.exports = function(prompt, perLine) {
|
|
36849
36912
|
if (!perLine)
|
|
36850
36913
|
return erase.line + cursor.to(0);
|
|
36851
36914
|
let rows = 0;
|
|
36852
36915
|
const lines = prompt.split(/\r?\n/);
|
|
36853
|
-
var
|
|
36854
|
-
var _didIteratorError = false;
|
|
36855
|
-
var _iteratorError = void 0;
|
|
36916
|
+
var _iterator = _createForOfIteratorHelper(lines), _step;
|
|
36856
36917
|
try {
|
|
36857
|
-
for (
|
|
36918
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
36858
36919
|
let line = _step.value;
|
|
36859
36920
|
rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);
|
|
36860
36921
|
}
|
|
36861
36922
|
} catch (err) {
|
|
36862
|
-
|
|
36863
|
-
_iteratorError = err;
|
|
36923
|
+
_iterator.e(err);
|
|
36864
36924
|
} finally {
|
|
36865
|
-
|
|
36866
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
36867
|
-
_iterator.return();
|
|
36868
|
-
}
|
|
36869
|
-
} finally {
|
|
36870
|
-
if (_didIteratorError) {
|
|
36871
|
-
throw _iteratorError;
|
|
36872
|
-
}
|
|
36873
|
-
}
|
|
36925
|
+
_iterator.f();
|
|
36874
36926
|
}
|
|
36875
|
-
return
|
|
36927
|
+
return erase.lines(rows);
|
|
36876
36928
|
};
|
|
36877
36929
|
}
|
|
36878
36930
|
});
|
|
36879
36931
|
|
|
36880
|
-
// node_modules/prompts/dist/util/figures.js
|
|
36932
|
+
// ../../node_modules/prompts/dist/util/figures.js
|
|
36881
36933
|
var require_figures = __commonJS({
|
|
36882
|
-
"node_modules/prompts/dist/util/figures.js"(exports2, module2) {
|
|
36934
|
+
"../../node_modules/prompts/dist/util/figures.js"(exports2, module2) {
|
|
36883
36935
|
"use strict";
|
|
36884
36936
|
var main = {
|
|
36885
36937
|
arrowUp: "\u2191",
|
|
@@ -36914,9 +36966,9 @@ var require_figures = __commonJS({
|
|
|
36914
36966
|
}
|
|
36915
36967
|
});
|
|
36916
36968
|
|
|
36917
|
-
// node_modules/prompts/dist/util/style.js
|
|
36969
|
+
// ../../node_modules/prompts/dist/util/style.js
|
|
36918
36970
|
var require_style = __commonJS({
|
|
36919
|
-
"node_modules/prompts/dist/util/style.js"(exports2, module2) {
|
|
36971
|
+
"../../node_modules/prompts/dist/util/style.js"(exports2, module2) {
|
|
36920
36972
|
"use strict";
|
|
36921
36973
|
var c = require_kleur();
|
|
36922
36974
|
var figures = require_figures();
|
|
@@ -36942,9 +36994,10 @@ var require_style = __commonJS({
|
|
|
36942
36994
|
var symbols = Object.freeze({
|
|
36943
36995
|
aborted: c.red(figures.cross),
|
|
36944
36996
|
done: c.green(figures.tick),
|
|
36997
|
+
exited: c.yellow(figures.cross),
|
|
36945
36998
|
default: c.cyan("?")
|
|
36946
36999
|
});
|
|
36947
|
-
var symbol = (done, aborted) => aborted ? symbols.aborted : done ? symbols.done : symbols.default;
|
|
37000
|
+
var symbol = (done, aborted, exited) => aborted ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
36948
37001
|
var delimiter = (completing) => c.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
36949
37002
|
var item = (expandable, expanded) => c.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
36950
37003
|
module2.exports = {
|
|
@@ -36958,12 +37011,12 @@ var require_style = __commonJS({
|
|
|
36958
37011
|
}
|
|
36959
37012
|
});
|
|
36960
37013
|
|
|
36961
|
-
// node_modules/prompts/dist/util/lines.js
|
|
37014
|
+
// ../../node_modules/prompts/dist/util/lines.js
|
|
36962
37015
|
var require_lines = __commonJS({
|
|
36963
|
-
"node_modules/prompts/dist/util/lines.js"(exports2, module2) {
|
|
37016
|
+
"../../node_modules/prompts/dist/util/lines.js"(exports2, module2) {
|
|
36964
37017
|
"use strict";
|
|
36965
37018
|
var strip = require_strip();
|
|
36966
|
-
module2.exports = function(msg, perLine
|
|
37019
|
+
module2.exports = function(msg, perLine) {
|
|
36967
37020
|
let lines = String(strip(msg) || "").split(/\r?\n/);
|
|
36968
37021
|
if (!perLine)
|
|
36969
37022
|
return lines.length;
|
|
@@ -36972,13 +37025,13 @@ var require_lines = __commonJS({
|
|
|
36972
37025
|
}
|
|
36973
37026
|
});
|
|
36974
37027
|
|
|
36975
|
-
// node_modules/prompts/dist/util/wrap.js
|
|
37028
|
+
// ../../node_modules/prompts/dist/util/wrap.js
|
|
36976
37029
|
var require_wrap = __commonJS({
|
|
36977
|
-
"node_modules/prompts/dist/util/wrap.js"(exports2, module2) {
|
|
37030
|
+
"../../node_modules/prompts/dist/util/wrap.js"(exports2, module2) {
|
|
36978
37031
|
"use strict";
|
|
36979
37032
|
module2.exports = (msg, opts = {}) => {
|
|
36980
37033
|
const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
|
|
36981
|
-
const width = opts.width
|
|
37034
|
+
const width = opts.width;
|
|
36982
37035
|
return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w) => {
|
|
36983
37036
|
if (w.length + tab.length >= width || arr[arr.length - 1].length + w.length + 1 < width)
|
|
36984
37037
|
arr[arr.length - 1] += ` ${w}`;
|
|
@@ -36990,9 +37043,9 @@ var require_wrap = __commonJS({
|
|
|
36990
37043
|
}
|
|
36991
37044
|
});
|
|
36992
37045
|
|
|
36993
|
-
// node_modules/prompts/dist/util/entriesToDisplay.js
|
|
37046
|
+
// ../../node_modules/prompts/dist/util/entriesToDisplay.js
|
|
36994
37047
|
var require_entriesToDisplay = __commonJS({
|
|
36995
|
-
"node_modules/prompts/dist/util/entriesToDisplay.js"(exports2, module2) {
|
|
37048
|
+
"../../node_modules/prompts/dist/util/entriesToDisplay.js"(exports2, module2) {
|
|
36996
37049
|
"use strict";
|
|
36997
37050
|
module2.exports = (cursor, total, maxVisible) => {
|
|
36998
37051
|
maxVisible = maxVisible || total;
|
|
@@ -37008,9 +37061,9 @@ var require_entriesToDisplay = __commonJS({
|
|
|
37008
37061
|
}
|
|
37009
37062
|
});
|
|
37010
37063
|
|
|
37011
|
-
// node_modules/prompts/dist/util/index.js
|
|
37064
|
+
// ../../node_modules/prompts/dist/util/index.js
|
|
37012
37065
|
var require_util4 = __commonJS({
|
|
37013
|
-
"node_modules/prompts/dist/util/index.js"(exports2, module2) {
|
|
37066
|
+
"../../node_modules/prompts/dist/util/index.js"(exports2, module2) {
|
|
37014
37067
|
"use strict";
|
|
37015
37068
|
module2.exports = {
|
|
37016
37069
|
action: require_action(),
|
|
@@ -37025,9 +37078,9 @@ var require_util4 = __commonJS({
|
|
|
37025
37078
|
}
|
|
37026
37079
|
});
|
|
37027
37080
|
|
|
37028
|
-
// node_modules/prompts/dist/elements/prompt.js
|
|
37081
|
+
// ../../node_modules/prompts/dist/elements/prompt.js
|
|
37029
37082
|
var require_prompt = __commonJS({
|
|
37030
|
-
"node_modules/prompts/dist/elements/prompt.js"(exports2, module2) {
|
|
37083
|
+
"../../node_modules/prompts/dist/elements/prompt.js"(exports2, module2) {
|
|
37031
37084
|
"use strict";
|
|
37032
37085
|
var readline = require("readline");
|
|
37033
37086
|
var _require = require_util4();
|
|
@@ -37044,7 +37097,10 @@ var require_prompt = __commonJS({
|
|
|
37044
37097
|
this.in = opts.stdin || process.stdin;
|
|
37045
37098
|
this.out = opts.stdout || process.stdout;
|
|
37046
37099
|
this.onRender = (opts.onRender || (() => void 0)).bind(this);
|
|
37047
|
-
const rl = readline.createInterface(
|
|
37100
|
+
const rl = readline.createInterface({
|
|
37101
|
+
input: this.in,
|
|
37102
|
+
escapeCodeTimeout: 50
|
|
37103
|
+
});
|
|
37048
37104
|
readline.emitKeypressEvents(this.in, rl);
|
|
37049
37105
|
if (this.in.isTTY)
|
|
37050
37106
|
this.in.setRawMode(true);
|
|
@@ -37065,7 +37121,7 @@ var require_prompt = __commonJS({
|
|
|
37065
37121
|
if (this.in.isTTY)
|
|
37066
37122
|
this.in.setRawMode(false);
|
|
37067
37123
|
rl.close();
|
|
37068
|
-
this.emit(this.aborted ? "abort" : "submit", this.value);
|
|
37124
|
+
this.emit(this.aborted ? "abort" : this.exited ? "exit" : "submit", this.value);
|
|
37069
37125
|
this.closed = true;
|
|
37070
37126
|
};
|
|
37071
37127
|
this.in.on("keypress", keypress);
|
|
@@ -37073,7 +37129,8 @@ var require_prompt = __commonJS({
|
|
|
37073
37129
|
fire() {
|
|
37074
37130
|
this.emit("state", {
|
|
37075
37131
|
value: this.value,
|
|
37076
|
-
aborted: !!this.aborted
|
|
37132
|
+
aborted: !!this.aborted,
|
|
37133
|
+
exited: !!this.exited
|
|
37077
37134
|
});
|
|
37078
37135
|
}
|
|
37079
37136
|
bell() {
|
|
@@ -37089,9 +37146,9 @@ var require_prompt = __commonJS({
|
|
|
37089
37146
|
}
|
|
37090
37147
|
});
|
|
37091
37148
|
|
|
37092
|
-
// node_modules/prompts/dist/elements/text.js
|
|
37149
|
+
// ../../node_modules/prompts/dist/elements/text.js
|
|
37093
37150
|
var require_text = __commonJS({
|
|
37094
|
-
"node_modules/prompts/dist/elements/text.js"(exports2, module2) {
|
|
37151
|
+
"../../node_modules/prompts/dist/elements/text.js"(exports2, module2) {
|
|
37095
37152
|
"use strict";
|
|
37096
37153
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
37097
37154
|
try {
|
|
@@ -37143,7 +37200,8 @@ var require_text = __commonJS({
|
|
|
37143
37200
|
this.value = ``;
|
|
37144
37201
|
this.errorMsg = opts.error || `Please Enter A Valid Value`;
|
|
37145
37202
|
this.cursor = Number(!!this.initial);
|
|
37146
|
-
this.
|
|
37203
|
+
this.cursorOffset = 0;
|
|
37204
|
+
this.clear = clear(``, this.out.columns);
|
|
37147
37205
|
this.render();
|
|
37148
37206
|
}
|
|
37149
37207
|
set value(v) {
|
|
@@ -37163,9 +37221,13 @@ var require_text = __commonJS({
|
|
|
37163
37221
|
reset() {
|
|
37164
37222
|
this.value = ``;
|
|
37165
37223
|
this.cursor = Number(!!this.initial);
|
|
37224
|
+
this.cursorOffset = 0;
|
|
37166
37225
|
this.fire();
|
|
37167
37226
|
this.render();
|
|
37168
37227
|
}
|
|
37228
|
+
exit() {
|
|
37229
|
+
this.abort();
|
|
37230
|
+
}
|
|
37169
37231
|
abort() {
|
|
37170
37232
|
this.value = this.value || this.initial;
|
|
37171
37233
|
this.done = this.aborted = true;
|
|
@@ -37191,6 +37253,8 @@ var require_text = __commonJS({
|
|
|
37191
37253
|
var _this2 = this;
|
|
37192
37254
|
return _asyncToGenerator(function* () {
|
|
37193
37255
|
_this2.value = _this2.value || _this2.initial;
|
|
37256
|
+
_this2.cursorOffset = 0;
|
|
37257
|
+
_this2.cursor = _this2.rendered.length;
|
|
37194
37258
|
yield _this2.validate();
|
|
37195
37259
|
if (_this2.error) {
|
|
37196
37260
|
_this2.red = true;
|
|
@@ -37218,6 +37282,7 @@ var require_text = __commonJS({
|
|
|
37218
37282
|
if (this.placeholder)
|
|
37219
37283
|
return;
|
|
37220
37284
|
this.cursor = this.cursor + n;
|
|
37285
|
+
this.cursorOffset += n;
|
|
37221
37286
|
}
|
|
37222
37287
|
_(c, key) {
|
|
37223
37288
|
let s1 = this.value.slice(0, this.cursor);
|
|
@@ -37228,13 +37293,18 @@ var require_text = __commonJS({
|
|
|
37228
37293
|
this.render();
|
|
37229
37294
|
}
|
|
37230
37295
|
delete() {
|
|
37231
|
-
if (this.
|
|
37296
|
+
if (this.isCursorAtStart())
|
|
37232
37297
|
return this.bell();
|
|
37233
37298
|
let s1 = this.value.slice(0, this.cursor - 1);
|
|
37234
37299
|
let s2 = this.value.slice(this.cursor);
|
|
37235
37300
|
this.value = `${s1}${s2}`;
|
|
37236
37301
|
this.red = false;
|
|
37237
|
-
this.
|
|
37302
|
+
if (this.isCursorAtStart()) {
|
|
37303
|
+
this.cursorOffset = 0;
|
|
37304
|
+
} else {
|
|
37305
|
+
this.cursorOffset++;
|
|
37306
|
+
this.moveCursor(-1);
|
|
37307
|
+
}
|
|
37238
37308
|
this.render();
|
|
37239
37309
|
}
|
|
37240
37310
|
deleteForward() {
|
|
@@ -37244,6 +37314,11 @@ var require_text = __commonJS({
|
|
|
37244
37314
|
let s2 = this.value.slice(this.cursor + 1);
|
|
37245
37315
|
this.value = `${s1}${s2}`;
|
|
37246
37316
|
this.red = false;
|
|
37317
|
+
if (this.isCursorAtEnd()) {
|
|
37318
|
+
this.cursorOffset = 0;
|
|
37319
|
+
} else {
|
|
37320
|
+
this.cursorOffset++;
|
|
37321
|
+
}
|
|
37247
37322
|
this.render();
|
|
37248
37323
|
}
|
|
37249
37324
|
first() {
|
|
@@ -37266,13 +37341,19 @@ var require_text = __commonJS({
|
|
|
37266
37341
|
this.moveCursor(1);
|
|
37267
37342
|
this.render();
|
|
37268
37343
|
}
|
|
37344
|
+
isCursorAtStart() {
|
|
37345
|
+
return this.cursor === 0 || this.placeholder && this.cursor === 1;
|
|
37346
|
+
}
|
|
37347
|
+
isCursorAtEnd() {
|
|
37348
|
+
return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1;
|
|
37349
|
+
}
|
|
37269
37350
|
render() {
|
|
37270
37351
|
if (this.closed)
|
|
37271
37352
|
return;
|
|
37272
37353
|
if (!this.firstRender) {
|
|
37273
37354
|
if (this.outputError)
|
|
37274
|
-
this.out.write(cursor.down(lines(this.outputError) - 1) + clear(this.outputError));
|
|
37275
|
-
this.out.write(clear(this.outputText));
|
|
37355
|
+
this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
|
|
37356
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
37276
37357
|
}
|
|
37277
37358
|
super.render();
|
|
37278
37359
|
this.outputError = "";
|
|
@@ -37282,16 +37363,16 @@ var require_text = __commonJS({
|
|
|
37282
37363
|
`).reduce((a, l, i) => a + `
|
|
37283
37364
|
${i ? " " : figures.pointerSmall} ${color.red().italic(l)}`, ``);
|
|
37284
37365
|
}
|
|
37285
|
-
this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore);
|
|
37366
|
+
this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore + cursor.move(this.cursorOffset, 0));
|
|
37286
37367
|
}
|
|
37287
37368
|
};
|
|
37288
37369
|
module2.exports = TextPrompt;
|
|
37289
37370
|
}
|
|
37290
37371
|
});
|
|
37291
37372
|
|
|
37292
|
-
// node_modules/prompts/dist/elements/select.js
|
|
37373
|
+
// ../../node_modules/prompts/dist/elements/select.js
|
|
37293
37374
|
var require_select = __commonJS({
|
|
37294
|
-
"node_modules/prompts/dist/elements/select.js"(exports2, module2) {
|
|
37375
|
+
"../../node_modules/prompts/dist/elements/select.js"(exports2, module2) {
|
|
37295
37376
|
"use strict";
|
|
37296
37377
|
var color = require_kleur();
|
|
37297
37378
|
var Prompt = require_prompt();
|
|
@@ -37326,7 +37407,7 @@ var require_select = __commonJS({
|
|
|
37326
37407
|
});
|
|
37327
37408
|
this.optionsPerPage = opts.optionsPerPage || 10;
|
|
37328
37409
|
this.value = (this.choices[this.cursor] || {}).value;
|
|
37329
|
-
this.clear = clear("");
|
|
37410
|
+
this.clear = clear("", this.out.columns);
|
|
37330
37411
|
this.render();
|
|
37331
37412
|
}
|
|
37332
37413
|
moveCursor(n) {
|
|
@@ -37339,6 +37420,9 @@ var require_select = __commonJS({
|
|
|
37339
37420
|
this.fire();
|
|
37340
37421
|
this.render();
|
|
37341
37422
|
}
|
|
37423
|
+
exit() {
|
|
37424
|
+
this.abort();
|
|
37425
|
+
}
|
|
37342
37426
|
abort() {
|
|
37343
37427
|
this.done = this.aborted = true;
|
|
37344
37428
|
this.fire();
|
|
@@ -37366,15 +37450,19 @@ var require_select = __commonJS({
|
|
|
37366
37450
|
this.render();
|
|
37367
37451
|
}
|
|
37368
37452
|
up() {
|
|
37369
|
-
if (this.cursor === 0)
|
|
37370
|
-
|
|
37371
|
-
|
|
37453
|
+
if (this.cursor === 0) {
|
|
37454
|
+
this.moveCursor(this.choices.length - 1);
|
|
37455
|
+
} else {
|
|
37456
|
+
this.moveCursor(this.cursor - 1);
|
|
37457
|
+
}
|
|
37372
37458
|
this.render();
|
|
37373
37459
|
}
|
|
37374
37460
|
down() {
|
|
37375
|
-
if (this.cursor === this.choices.length - 1)
|
|
37376
|
-
|
|
37377
|
-
|
|
37461
|
+
if (this.cursor === this.choices.length - 1) {
|
|
37462
|
+
this.moveCursor(0);
|
|
37463
|
+
} else {
|
|
37464
|
+
this.moveCursor(this.cursor + 1);
|
|
37465
|
+
}
|
|
37378
37466
|
this.render();
|
|
37379
37467
|
}
|
|
37380
37468
|
next() {
|
|
@@ -37394,7 +37482,7 @@ var require_select = __commonJS({
|
|
|
37394
37482
|
if (this.firstRender)
|
|
37395
37483
|
this.out.write(cursor.hide);
|
|
37396
37484
|
else
|
|
37397
|
-
this.out.write(clear(this.outputText));
|
|
37485
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
37398
37486
|
super.render();
|
|
37399
37487
|
let _entriesToDisplay = entriesToDisplay(this.cursor, this.choices.length, this.optionsPerPage), startIndex = _entriesToDisplay.startIndex, endIndex = _entriesToDisplay.endIndex;
|
|
37400
37488
|
this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.done ? this.selection.title : this.selection.disabled ? color.yellow(this.warn) : color.gray(this.hint)].join(" ");
|
|
@@ -37436,9 +37524,9 @@ var require_select = __commonJS({
|
|
|
37436
37524
|
}
|
|
37437
37525
|
});
|
|
37438
37526
|
|
|
37439
|
-
// node_modules/prompts/dist/elements/toggle.js
|
|
37527
|
+
// ../../node_modules/prompts/dist/elements/toggle.js
|
|
37440
37528
|
var require_toggle = __commonJS({
|
|
37441
|
-
"node_modules/prompts/dist/elements/toggle.js"(exports2, module2) {
|
|
37529
|
+
"../../node_modules/prompts/dist/elements/toggle.js"(exports2, module2) {
|
|
37442
37530
|
"use strict";
|
|
37443
37531
|
var color = require_kleur();
|
|
37444
37532
|
var Prompt = require_prompt();
|
|
@@ -37463,6 +37551,9 @@ var require_toggle = __commonJS({
|
|
|
37463
37551
|
this.fire();
|
|
37464
37552
|
this.render();
|
|
37465
37553
|
}
|
|
37554
|
+
exit() {
|
|
37555
|
+
this.abort();
|
|
37556
|
+
}
|
|
37466
37557
|
abort() {
|
|
37467
37558
|
this.done = this.aborted = true;
|
|
37468
37559
|
this.fire();
|
|
@@ -37527,7 +37618,7 @@ var require_toggle = __commonJS({
|
|
|
37527
37618
|
if (this.firstRender)
|
|
37528
37619
|
this.out.write(cursor.hide);
|
|
37529
37620
|
else
|
|
37530
|
-
this.out.write(clear(this.outputText));
|
|
37621
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
37531
37622
|
super.render();
|
|
37532
37623
|
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(" ");
|
|
37533
37624
|
this.out.write(erase.line + cursor.to(0) + this.outputText);
|
|
@@ -37537,9 +37628,9 @@ var require_toggle = __commonJS({
|
|
|
37537
37628
|
}
|
|
37538
37629
|
});
|
|
37539
37630
|
|
|
37540
|
-
// node_modules/prompts/dist/dateparts/datepart.js
|
|
37631
|
+
// ../../node_modules/prompts/dist/dateparts/datepart.js
|
|
37541
37632
|
var require_datepart = __commonJS({
|
|
37542
|
-
"node_modules/prompts/dist/dateparts/datepart.js"(exports2, module2) {
|
|
37633
|
+
"../../node_modules/prompts/dist/dateparts/datepart.js"(exports2, module2) {
|
|
37543
37634
|
"use strict";
|
|
37544
37635
|
var DatePart = class {
|
|
37545
37636
|
constructor({
|
|
@@ -37576,9 +37667,9 @@ var require_datepart = __commonJS({
|
|
|
37576
37667
|
}
|
|
37577
37668
|
});
|
|
37578
37669
|
|
|
37579
|
-
// node_modules/prompts/dist/dateparts/meridiem.js
|
|
37670
|
+
// ../../node_modules/prompts/dist/dateparts/meridiem.js
|
|
37580
37671
|
var require_meridiem = __commonJS({
|
|
37581
|
-
"node_modules/prompts/dist/dateparts/meridiem.js"(exports2, module2) {
|
|
37672
|
+
"../../node_modules/prompts/dist/dateparts/meridiem.js"(exports2, module2) {
|
|
37582
37673
|
"use strict";
|
|
37583
37674
|
var DatePart = require_datepart();
|
|
37584
37675
|
var Meridiem = class extends DatePart {
|
|
@@ -37600,9 +37691,9 @@ var require_meridiem = __commonJS({
|
|
|
37600
37691
|
}
|
|
37601
37692
|
});
|
|
37602
37693
|
|
|
37603
|
-
// node_modules/prompts/dist/dateparts/day.js
|
|
37694
|
+
// ../../node_modules/prompts/dist/dateparts/day.js
|
|
37604
37695
|
var require_day = __commonJS({
|
|
37605
|
-
"node_modules/prompts/dist/dateparts/day.js"(exports2, module2) {
|
|
37696
|
+
"../../node_modules/prompts/dist/dateparts/day.js"(exports2, module2) {
|
|
37606
37697
|
"use strict";
|
|
37607
37698
|
var DatePart = require_datepart();
|
|
37608
37699
|
var pos = (n) => {
|
|
@@ -37632,9 +37723,9 @@ var require_day = __commonJS({
|
|
|
37632
37723
|
}
|
|
37633
37724
|
});
|
|
37634
37725
|
|
|
37635
|
-
// node_modules/prompts/dist/dateparts/hours.js
|
|
37726
|
+
// ../../node_modules/prompts/dist/dateparts/hours.js
|
|
37636
37727
|
var require_hours = __commonJS({
|
|
37637
|
-
"node_modules/prompts/dist/dateparts/hours.js"(exports2, module2) {
|
|
37728
|
+
"../../node_modules/prompts/dist/dateparts/hours.js"(exports2, module2) {
|
|
37638
37729
|
"use strict";
|
|
37639
37730
|
var DatePart = require_datepart();
|
|
37640
37731
|
var Hours = class extends DatePart {
|
|
@@ -37661,9 +37752,9 @@ var require_hours = __commonJS({
|
|
|
37661
37752
|
}
|
|
37662
37753
|
});
|
|
37663
37754
|
|
|
37664
|
-
// node_modules/prompts/dist/dateparts/milliseconds.js
|
|
37755
|
+
// ../../node_modules/prompts/dist/dateparts/milliseconds.js
|
|
37665
37756
|
var require_milliseconds = __commonJS({
|
|
37666
|
-
"node_modules/prompts/dist/dateparts/milliseconds.js"(exports2, module2) {
|
|
37757
|
+
"../../node_modules/prompts/dist/dateparts/milliseconds.js"(exports2, module2) {
|
|
37667
37758
|
"use strict";
|
|
37668
37759
|
var DatePart = require_datepart();
|
|
37669
37760
|
var Milliseconds = class extends DatePart {
|
|
@@ -37687,9 +37778,9 @@ var require_milliseconds = __commonJS({
|
|
|
37687
37778
|
}
|
|
37688
37779
|
});
|
|
37689
37780
|
|
|
37690
|
-
// node_modules/prompts/dist/dateparts/minutes.js
|
|
37781
|
+
// ../../node_modules/prompts/dist/dateparts/minutes.js
|
|
37691
37782
|
var require_minutes = __commonJS({
|
|
37692
|
-
"node_modules/prompts/dist/dateparts/minutes.js"(exports2, module2) {
|
|
37783
|
+
"../../node_modules/prompts/dist/dateparts/minutes.js"(exports2, module2) {
|
|
37693
37784
|
"use strict";
|
|
37694
37785
|
var DatePart = require_datepart();
|
|
37695
37786
|
var Minutes = class extends DatePart {
|
|
@@ -37714,9 +37805,9 @@ var require_minutes = __commonJS({
|
|
|
37714
37805
|
}
|
|
37715
37806
|
});
|
|
37716
37807
|
|
|
37717
|
-
// node_modules/prompts/dist/dateparts/month.js
|
|
37808
|
+
// ../../node_modules/prompts/dist/dateparts/month.js
|
|
37718
37809
|
var require_month = __commonJS({
|
|
37719
|
-
"node_modules/prompts/dist/dateparts/month.js"(exports2, module2) {
|
|
37810
|
+
"../../node_modules/prompts/dist/dateparts/month.js"(exports2, module2) {
|
|
37720
37811
|
"use strict";
|
|
37721
37812
|
var DatePart = require_datepart();
|
|
37722
37813
|
var Month = class extends DatePart {
|
|
@@ -37743,9 +37834,9 @@ var require_month = __commonJS({
|
|
|
37743
37834
|
}
|
|
37744
37835
|
});
|
|
37745
37836
|
|
|
37746
|
-
// node_modules/prompts/dist/dateparts/seconds.js
|
|
37837
|
+
// ../../node_modules/prompts/dist/dateparts/seconds.js
|
|
37747
37838
|
var require_seconds = __commonJS({
|
|
37748
|
-
"node_modules/prompts/dist/dateparts/seconds.js"(exports2, module2) {
|
|
37839
|
+
"../../node_modules/prompts/dist/dateparts/seconds.js"(exports2, module2) {
|
|
37749
37840
|
"use strict";
|
|
37750
37841
|
var DatePart = require_datepart();
|
|
37751
37842
|
var Seconds = class extends DatePart {
|
|
@@ -37770,9 +37861,9 @@ var require_seconds = __commonJS({
|
|
|
37770
37861
|
}
|
|
37771
37862
|
});
|
|
37772
37863
|
|
|
37773
|
-
// node_modules/prompts/dist/dateparts/year.js
|
|
37864
|
+
// ../../node_modules/prompts/dist/dateparts/year.js
|
|
37774
37865
|
var require_year = __commonJS({
|
|
37775
|
-
"node_modules/prompts/dist/dateparts/year.js"(exports2, module2) {
|
|
37866
|
+
"../../node_modules/prompts/dist/dateparts/year.js"(exports2, module2) {
|
|
37776
37867
|
"use strict";
|
|
37777
37868
|
var DatePart = require_datepart();
|
|
37778
37869
|
var Year = class extends DatePart {
|
|
@@ -37797,9 +37888,9 @@ var require_year = __commonJS({
|
|
|
37797
37888
|
}
|
|
37798
37889
|
});
|
|
37799
37890
|
|
|
37800
|
-
// node_modules/prompts/dist/dateparts/index.js
|
|
37891
|
+
// ../../node_modules/prompts/dist/dateparts/index.js
|
|
37801
37892
|
var require_dateparts = __commonJS({
|
|
37802
|
-
"node_modules/prompts/dist/dateparts/index.js"(exports2, module2) {
|
|
37893
|
+
"../../node_modules/prompts/dist/dateparts/index.js"(exports2, module2) {
|
|
37803
37894
|
"use strict";
|
|
37804
37895
|
module2.exports = {
|
|
37805
37896
|
DatePart: require_datepart(),
|
|
@@ -37815,9 +37906,9 @@ var require_dateparts = __commonJS({
|
|
|
37815
37906
|
}
|
|
37816
37907
|
});
|
|
37817
37908
|
|
|
37818
|
-
// node_modules/prompts/dist/elements/date.js
|
|
37909
|
+
// ../../node_modules/prompts/dist/elements/date.js
|
|
37819
37910
|
var require_date = __commonJS({
|
|
37820
|
-
"node_modules/prompts/dist/elements/date.js"(exports2, module2) {
|
|
37911
|
+
"../../node_modules/prompts/dist/elements/date.js"(exports2, module2) {
|
|
37821
37912
|
"use strict";
|
|
37822
37913
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
37823
37914
|
try {
|
|
@@ -37898,7 +37989,7 @@ var require_date = __commonJS({
|
|
|
37898
37989
|
this.errorMsg = opts.error || "Please Enter A Valid Value";
|
|
37899
37990
|
this.validator = opts.validate || (() => true);
|
|
37900
37991
|
this.mask = opts.mask || "YYYY-MM-DD HH:mm:ss";
|
|
37901
|
-
this.clear = clear("");
|
|
37992
|
+
this.clear = clear("", this.out.columns);
|
|
37902
37993
|
this.render();
|
|
37903
37994
|
}
|
|
37904
37995
|
get value() {
|
|
@@ -37945,6 +38036,9 @@ var require_date = __commonJS({
|
|
|
37945
38036
|
this.fire();
|
|
37946
38037
|
this.render();
|
|
37947
38038
|
}
|
|
38039
|
+
exit() {
|
|
38040
|
+
this.abort();
|
|
38041
|
+
}
|
|
37948
38042
|
abort() {
|
|
37949
38043
|
this.done = this.aborted = true;
|
|
37950
38044
|
this.error = false;
|
|
@@ -38024,7 +38118,7 @@ var require_date = __commonJS({
|
|
|
38024
38118
|
if (this.firstRender)
|
|
38025
38119
|
this.out.write(cursor.hide);
|
|
38026
38120
|
else
|
|
38027
|
-
this.out.write(clear(this.outputText));
|
|
38121
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
38028
38122
|
super.render();
|
|
38029
38123
|
this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.parts.reduce((arr, p, idx) => arr.concat(idx === this.cursor && !this.done ? color.cyan().underline(p.toString()) : p), []).join("")].join(" ");
|
|
38030
38124
|
if (this.error) {
|
|
@@ -38038,9 +38132,9 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
|
|
|
38038
38132
|
}
|
|
38039
38133
|
});
|
|
38040
38134
|
|
|
38041
|
-
// node_modules/prompts/dist/elements/number.js
|
|
38135
|
+
// ../../node_modules/prompts/dist/elements/number.js
|
|
38042
38136
|
var require_number = __commonJS({
|
|
38043
|
-
"node_modules/prompts/dist/elements/number.js"(exports2, module2) {
|
|
38137
|
+
"../../node_modules/prompts/dist/elements/number.js"(exports2, module2) {
|
|
38044
38138
|
"use strict";
|
|
38045
38139
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
38046
38140
|
try {
|
|
@@ -38133,6 +38227,9 @@ var require_number = __commonJS({
|
|
|
38133
38227
|
this.fire();
|
|
38134
38228
|
this.render();
|
|
38135
38229
|
}
|
|
38230
|
+
exit() {
|
|
38231
|
+
this.abort();
|
|
38232
|
+
}
|
|
38136
38233
|
abort() {
|
|
38137
38234
|
let x = this.value;
|
|
38138
38235
|
this.value = x !== `` ? x : this.initial;
|
|
@@ -38242,8 +38339,8 @@ var require_number = __commonJS({
|
|
|
38242
38339
|
return;
|
|
38243
38340
|
if (!this.firstRender) {
|
|
38244
38341
|
if (this.outputError)
|
|
38245
|
-
this.out.write(cursor.down(lines(this.outputError) - 1) + clear(this.outputError));
|
|
38246
|
-
this.out.write(clear(this.outputText));
|
|
38342
|
+
this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
|
|
38343
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
38247
38344
|
}
|
|
38248
38345
|
super.render();
|
|
38249
38346
|
this.outputError = "";
|
|
@@ -38260,9 +38357,9 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
|
|
|
38260
38357
|
}
|
|
38261
38358
|
});
|
|
38262
38359
|
|
|
38263
|
-
// node_modules/prompts/dist/elements/multiselect.js
|
|
38360
|
+
// ../../node_modules/prompts/dist/elements/multiselect.js
|
|
38264
38361
|
var require_multiselect = __commonJS({
|
|
38265
|
-
"node_modules/prompts/dist/elements/multiselect.js"(exports2, module2) {
|
|
38362
|
+
"../../node_modules/prompts/dist/elements/multiselect.js"(exports2, module2) {
|
|
38266
38363
|
"use strict";
|
|
38267
38364
|
var color = require_kleur();
|
|
38268
38365
|
var _require = require_src6();
|
|
@@ -38301,7 +38398,7 @@ var require_multiselect = __commonJS({
|
|
|
38301
38398
|
disabled: ch && ch.disabled
|
|
38302
38399
|
};
|
|
38303
38400
|
});
|
|
38304
|
-
this.clear = clear("");
|
|
38401
|
+
this.clear = clear("", this.out.columns);
|
|
38305
38402
|
if (!opts.overrideRender) {
|
|
38306
38403
|
this.render();
|
|
38307
38404
|
}
|
|
@@ -38315,6 +38412,9 @@ var require_multiselect = __commonJS({
|
|
|
38315
38412
|
selected() {
|
|
38316
38413
|
return this.value.filter((v) => v.selected);
|
|
38317
38414
|
}
|
|
38415
|
+
exit() {
|
|
38416
|
+
this.abort();
|
|
38417
|
+
}
|
|
38318
38418
|
abort() {
|
|
38319
38419
|
this.done = this.aborted = true;
|
|
38320
38420
|
this.fire();
|
|
@@ -38483,16 +38583,16 @@ Instructions:
|
|
|
38483
38583
|
}
|
|
38484
38584
|
prompt += this.renderOptions(this.value);
|
|
38485
38585
|
this.out.write(this.clear + prompt);
|
|
38486
|
-
this.clear = clear(prompt);
|
|
38586
|
+
this.clear = clear(prompt, this.out.columns);
|
|
38487
38587
|
}
|
|
38488
38588
|
};
|
|
38489
38589
|
module2.exports = MultiselectPrompt;
|
|
38490
38590
|
}
|
|
38491
38591
|
});
|
|
38492
38592
|
|
|
38493
|
-
// node_modules/prompts/dist/elements/autocomplete.js
|
|
38593
|
+
// ../../node_modules/prompts/dist/elements/autocomplete.js
|
|
38494
38594
|
var require_autocomplete = __commonJS({
|
|
38495
|
-
"node_modules/prompts/dist/elements/autocomplete.js"(exports2, module2) {
|
|
38595
|
+
"../../node_modules/prompts/dist/elements/autocomplete.js"(exports2, module2) {
|
|
38496
38596
|
"use strict";
|
|
38497
38597
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
38498
38598
|
try {
|
|
@@ -38552,6 +38652,7 @@ var require_autocomplete = __commonJS({
|
|
|
38552
38652
|
noMatches: opts.noMatches || "no matches found"
|
|
38553
38653
|
};
|
|
38554
38654
|
this.fallback = opts.fallback || this.initial;
|
|
38655
|
+
this.clearFirst = opts.clearFirst || false;
|
|
38555
38656
|
this.suggestions = [];
|
|
38556
38657
|
this.input = "";
|
|
38557
38658
|
this.limit = opts.limit || 10;
|
|
@@ -38560,7 +38661,7 @@ var require_autocomplete = __commonJS({
|
|
|
38560
38661
|
this.scale = this.transform.scale;
|
|
38561
38662
|
this.render = this.render.bind(this);
|
|
38562
38663
|
this.complete = this.complete.bind(this);
|
|
38563
|
-
this.clear = clear("");
|
|
38664
|
+
this.clear = clear("", this.out.columns);
|
|
38564
38665
|
this.complete(this.render);
|
|
38565
38666
|
this.render();
|
|
38566
38667
|
}
|
|
@@ -38613,8 +38714,21 @@ var require_autocomplete = __commonJS({
|
|
|
38613
38714
|
});
|
|
38614
38715
|
this.render();
|
|
38615
38716
|
}
|
|
38717
|
+
exit() {
|
|
38718
|
+
if (this.clearFirst && this.input.length > 0) {
|
|
38719
|
+
this.reset();
|
|
38720
|
+
} else {
|
|
38721
|
+
this.done = this.exited = true;
|
|
38722
|
+
this.aborted = false;
|
|
38723
|
+
this.fire();
|
|
38724
|
+
this.render();
|
|
38725
|
+
this.out.write("\n");
|
|
38726
|
+
this.close();
|
|
38727
|
+
}
|
|
38728
|
+
}
|
|
38616
38729
|
abort() {
|
|
38617
38730
|
this.done = this.aborted = true;
|
|
38731
|
+
this.exited = false;
|
|
38618
38732
|
this.fire();
|
|
38619
38733
|
this.render();
|
|
38620
38734
|
this.out.write("\n");
|
|
@@ -38622,7 +38736,7 @@ var require_autocomplete = __commonJS({
|
|
|
38622
38736
|
}
|
|
38623
38737
|
submit() {
|
|
38624
38738
|
this.done = true;
|
|
38625
|
-
this.aborted = false;
|
|
38739
|
+
this.aborted = this.exited = false;
|
|
38626
38740
|
this.fire();
|
|
38627
38741
|
this.render();
|
|
38628
38742
|
this.out.write("\n");
|
|
@@ -38664,15 +38778,19 @@ var require_autocomplete = __commonJS({
|
|
|
38664
38778
|
this.render();
|
|
38665
38779
|
}
|
|
38666
38780
|
up() {
|
|
38667
|
-
if (this.select
|
|
38668
|
-
|
|
38669
|
-
|
|
38781
|
+
if (this.select === 0) {
|
|
38782
|
+
this.moveSelect(this.suggestions.length - 1);
|
|
38783
|
+
} else {
|
|
38784
|
+
this.moveSelect(this.select - 1);
|
|
38785
|
+
}
|
|
38670
38786
|
this.render();
|
|
38671
38787
|
}
|
|
38672
38788
|
down() {
|
|
38673
|
-
if (this.select
|
|
38674
|
-
|
|
38675
|
-
|
|
38789
|
+
if (this.select === this.suggestions.length - 1) {
|
|
38790
|
+
this.moveSelect(0);
|
|
38791
|
+
} else {
|
|
38792
|
+
this.moveSelect(this.select + 1);
|
|
38793
|
+
}
|
|
38676
38794
|
this.render();
|
|
38677
38795
|
}
|
|
38678
38796
|
next() {
|
|
@@ -38724,10 +38842,10 @@ var require_autocomplete = __commonJS({
|
|
|
38724
38842
|
if (this.firstRender)
|
|
38725
38843
|
this.out.write(cursor.hide);
|
|
38726
38844
|
else
|
|
38727
|
-
this.out.write(clear(this.outputText));
|
|
38845
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
38728
38846
|
super.render();
|
|
38729
38847
|
let _entriesToDisplay = entriesToDisplay(this.select, this.choices.length, this.limit), startIndex = _entriesToDisplay.startIndex, endIndex = _entriesToDisplay.endIndex;
|
|
38730
|
-
this.outputText = [
|
|
38848
|
+
this.outputText = [style.symbol(this.done, this.aborted, this.exited), color.bold(this.msg), style.delimiter(this.completing), this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input)].join(" ");
|
|
38731
38849
|
if (!this.done) {
|
|
38732
38850
|
const suggestions = this.suggestions.slice(startIndex, endIndex).map((item, i) => this.renderOption(item, this.select === i + startIndex, i === 0 && startIndex > 0, i + startIndex === endIndex - 1 && endIndex < this.choices.length)).join("\n");
|
|
38733
38851
|
this.outputText += `
|
|
@@ -38740,9 +38858,9 @@ var require_autocomplete = __commonJS({
|
|
|
38740
38858
|
}
|
|
38741
38859
|
});
|
|
38742
38860
|
|
|
38743
|
-
// node_modules/prompts/dist/elements/autocompleteMultiselect.js
|
|
38861
|
+
// ../../node_modules/prompts/dist/elements/autocompleteMultiselect.js
|
|
38744
38862
|
var require_autocompleteMultiselect = __commonJS({
|
|
38745
|
-
"node_modules/prompts/dist/elements/autocompleteMultiselect.js"(exports2, module2) {
|
|
38863
|
+
"../../node_modules/prompts/dist/elements/autocompleteMultiselect.js"(exports2, module2) {
|
|
38746
38864
|
"use strict";
|
|
38747
38865
|
var color = require_kleur();
|
|
38748
38866
|
var _require = require_src6();
|
|
@@ -38757,7 +38875,7 @@ var require_autocompleteMultiselect = __commonJS({
|
|
|
38757
38875
|
opts.overrideRender = true;
|
|
38758
38876
|
super(opts);
|
|
38759
38877
|
this.inputValue = "";
|
|
38760
|
-
this.clear = clear("");
|
|
38878
|
+
this.clear = clear("", this.out.columns);
|
|
38761
38879
|
this.filteredOptions = this.value;
|
|
38762
38880
|
this.render();
|
|
38763
38881
|
}
|
|
@@ -38897,16 +39015,16 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
|
|
|
38897
39015
|
}
|
|
38898
39016
|
prompt += this.renderOptions(this.filteredOptions);
|
|
38899
39017
|
this.out.write(this.clear + prompt);
|
|
38900
|
-
this.clear = clear(prompt);
|
|
39018
|
+
this.clear = clear(prompt, this.out.columns);
|
|
38901
39019
|
}
|
|
38902
39020
|
};
|
|
38903
39021
|
module2.exports = AutocompleteMultiselectPrompt;
|
|
38904
39022
|
}
|
|
38905
39023
|
});
|
|
38906
39024
|
|
|
38907
|
-
// node_modules/prompts/dist/elements/confirm.js
|
|
39025
|
+
// ../../node_modules/prompts/dist/elements/confirm.js
|
|
38908
39026
|
var require_confirm = __commonJS({
|
|
38909
|
-
"node_modules/prompts/dist/elements/confirm.js"(exports2, module2) {
|
|
39027
|
+
"../../node_modules/prompts/dist/elements/confirm.js"(exports2, module2) {
|
|
38910
39028
|
"use strict";
|
|
38911
39029
|
var color = require_kleur();
|
|
38912
39030
|
var Prompt = require_prompt();
|
|
@@ -38933,6 +39051,9 @@ var require_confirm = __commonJS({
|
|
|
38933
39051
|
this.fire();
|
|
38934
39052
|
this.render();
|
|
38935
39053
|
}
|
|
39054
|
+
exit() {
|
|
39055
|
+
this.abort();
|
|
39056
|
+
}
|
|
38936
39057
|
abort() {
|
|
38937
39058
|
this.done = this.aborted = true;
|
|
38938
39059
|
this.fire();
|
|
@@ -38966,7 +39087,7 @@ var require_confirm = __commonJS({
|
|
|
38966
39087
|
if (this.firstRender)
|
|
38967
39088
|
this.out.write(cursor.hide);
|
|
38968
39089
|
else
|
|
38969
|
-
this.out.write(clear(this.outputText));
|
|
39090
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
38970
39091
|
super.render();
|
|
38971
39092
|
this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.done ? this.value ? this.yesMsg : this.noMsg : color.gray(this.initialValue ? this.yesOption : this.noOption)].join(" ");
|
|
38972
39093
|
this.out.write(erase.line + cursor.to(0) + this.outputText);
|
|
@@ -38976,9 +39097,9 @@ var require_confirm = __commonJS({
|
|
|
38976
39097
|
}
|
|
38977
39098
|
});
|
|
38978
39099
|
|
|
38979
|
-
// node_modules/prompts/dist/elements/index.js
|
|
39100
|
+
// ../../node_modules/prompts/dist/elements/index.js
|
|
38980
39101
|
var require_elements = __commonJS({
|
|
38981
|
-
"node_modules/prompts/dist/elements/index.js"(exports2, module2) {
|
|
39102
|
+
"../../node_modules/prompts/dist/elements/index.js"(exports2, module2) {
|
|
38982
39103
|
"use strict";
|
|
38983
39104
|
module2.exports = {
|
|
38984
39105
|
TextPrompt: require_text(),
|
|
@@ -38994,9 +39115,9 @@ var require_elements = __commonJS({
|
|
|
38994
39115
|
}
|
|
38995
39116
|
});
|
|
38996
39117
|
|
|
38997
|
-
// node_modules/prompts/dist/prompts.js
|
|
39118
|
+
// ../../node_modules/prompts/dist/prompts.js
|
|
38998
39119
|
var require_prompts = __commonJS({
|
|
38999
|
-
"node_modules/prompts/dist/prompts.js"(exports2) {
|
|
39120
|
+
"../../node_modules/prompts/dist/prompts.js"(exports2) {
|
|
39000
39121
|
"use strict";
|
|
39001
39122
|
var $ = exports2;
|
|
39002
39123
|
var el = require_elements();
|
|
@@ -39006,8 +39127,10 @@ var require_prompts = __commonJS({
|
|
|
39006
39127
|
const p = new el[type](args);
|
|
39007
39128
|
const onAbort = opts.onAbort || noop3;
|
|
39008
39129
|
const onSubmit = opts.onSubmit || noop3;
|
|
39130
|
+
const onExit = opts.onExit || noop3;
|
|
39009
39131
|
p.on("state", args.onState || noop3);
|
|
39010
39132
|
p.on("submit", (x) => res(onSubmit(x)));
|
|
39133
|
+
p.on("exit", (x) => res(onExit(x)));
|
|
39011
39134
|
p.on("abort", (x) => rej(onAbort(x)));
|
|
39012
39135
|
});
|
|
39013
39136
|
}
|
|
@@ -39056,18 +39179,19 @@ var require_prompts = __commonJS({
|
|
|
39056
39179
|
}
|
|
39057
39180
|
});
|
|
39058
39181
|
|
|
39059
|
-
// node_modules/prompts/dist/index.js
|
|
39182
|
+
// ../../node_modules/prompts/dist/index.js
|
|
39060
39183
|
var require_dist4 = __commonJS({
|
|
39061
|
-
"node_modules/prompts/dist/index.js"(exports2, module2) {
|
|
39184
|
+
"../../node_modules/prompts/dist/index.js"(exports2, module2) {
|
|
39062
39185
|
"use strict";
|
|
39063
39186
|
function ownKeys(object, enumerableOnly) {
|
|
39064
39187
|
var keys = Object.keys(object);
|
|
39065
39188
|
if (Object.getOwnPropertySymbols) {
|
|
39066
39189
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
39067
|
-
if (enumerableOnly)
|
|
39190
|
+
if (enumerableOnly) {
|
|
39068
39191
|
symbols = symbols.filter(function(sym) {
|
|
39069
39192
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
39070
39193
|
});
|
|
39194
|
+
}
|
|
39071
39195
|
keys.push.apply(keys, symbols);
|
|
39072
39196
|
}
|
|
39073
39197
|
return keys;
|
|
@@ -39076,13 +39200,13 @@ var require_dist4 = __commonJS({
|
|
|
39076
39200
|
for (var i = 1; i < arguments.length; i++) {
|
|
39077
39201
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
39078
39202
|
if (i % 2) {
|
|
39079
|
-
ownKeys(source, true).forEach(function(key) {
|
|
39203
|
+
ownKeys(Object(source), true).forEach(function(key) {
|
|
39080
39204
|
_defineProperty2(target, key, source[key]);
|
|
39081
39205
|
});
|
|
39082
39206
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
39083
39207
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
39084
39208
|
} else {
|
|
39085
|
-
ownKeys(source).forEach(function(key) {
|
|
39209
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
39086
39210
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
39087
39211
|
});
|
|
39088
39212
|
}
|
|
@@ -39097,6 +39221,65 @@ var require_dist4 = __commonJS({
|
|
|
39097
39221
|
}
|
|
39098
39222
|
return obj;
|
|
39099
39223
|
}
|
|
39224
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
39225
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
39226
|
+
if (!it) {
|
|
39227
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray2(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
39228
|
+
if (it)
|
|
39229
|
+
o = it;
|
|
39230
|
+
var i = 0;
|
|
39231
|
+
var F = function F2() {
|
|
39232
|
+
};
|
|
39233
|
+
return { s: F, n: function n() {
|
|
39234
|
+
if (i >= o.length)
|
|
39235
|
+
return { done: true };
|
|
39236
|
+
return { done: false, value: o[i++] };
|
|
39237
|
+
}, e: function e(_e) {
|
|
39238
|
+
throw _e;
|
|
39239
|
+
}, f: F };
|
|
39240
|
+
}
|
|
39241
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
39242
|
+
}
|
|
39243
|
+
var normalCompletion = true, didErr = false, err;
|
|
39244
|
+
return { s: function s() {
|
|
39245
|
+
it = it.call(o);
|
|
39246
|
+
}, n: function n() {
|
|
39247
|
+
var step = it.next();
|
|
39248
|
+
normalCompletion = step.done;
|
|
39249
|
+
return step;
|
|
39250
|
+
}, e: function e(_e2) {
|
|
39251
|
+
didErr = true;
|
|
39252
|
+
err = _e2;
|
|
39253
|
+
}, f: function f() {
|
|
39254
|
+
try {
|
|
39255
|
+
if (!normalCompletion && it.return != null)
|
|
39256
|
+
it.return();
|
|
39257
|
+
} finally {
|
|
39258
|
+
if (didErr)
|
|
39259
|
+
throw err;
|
|
39260
|
+
}
|
|
39261
|
+
} };
|
|
39262
|
+
}
|
|
39263
|
+
function _unsupportedIterableToArray2(o, minLen) {
|
|
39264
|
+
if (!o)
|
|
39265
|
+
return;
|
|
39266
|
+
if (typeof o === "string")
|
|
39267
|
+
return _arrayLikeToArray2(o, minLen);
|
|
39268
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
39269
|
+
if (n === "Object" && o.constructor)
|
|
39270
|
+
n = o.constructor.name;
|
|
39271
|
+
if (n === "Map" || n === "Set")
|
|
39272
|
+
return Array.from(o);
|
|
39273
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
39274
|
+
return _arrayLikeToArray2(o, minLen);
|
|
39275
|
+
}
|
|
39276
|
+
function _arrayLikeToArray2(arr, len) {
|
|
39277
|
+
if (len == null || len > arr.length)
|
|
39278
|
+
len = arr.length;
|
|
39279
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
39280
|
+
arr2[i] = arr[i];
|
|
39281
|
+
return arr2;
|
|
39282
|
+
}
|
|
39100
39283
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
39101
39284
|
try {
|
|
39102
39285
|
var info = gen[key](arg);
|
|
@@ -39153,11 +39336,9 @@ var require_dist4 = __commonJS({
|
|
|
39153
39336
|
return _ref.apply(this, arguments);
|
|
39154
39337
|
};
|
|
39155
39338
|
}();
|
|
39156
|
-
var
|
|
39157
|
-
var _didIteratorError = false;
|
|
39158
|
-
var _iteratorError = void 0;
|
|
39339
|
+
var _iterator = _createForOfIteratorHelper(questions), _step;
|
|
39159
39340
|
try {
|
|
39160
|
-
for (
|
|
39341
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
39161
39342
|
question = _step.value;
|
|
39162
39343
|
var _question = question;
|
|
39163
39344
|
name = _question.name;
|
|
@@ -39192,7 +39373,7 @@ var require_dist4 = __commonJS({
|
|
|
39192
39373
|
}
|
|
39193
39374
|
}
|
|
39194
39375
|
try {
|
|
39195
|
-
answer = prompt._injected ? getInjectedAnswer(prompt._injected) : yield prompts3[type](question);
|
|
39376
|
+
answer = prompt._injected ? getInjectedAnswer(prompt._injected, question.initial) : yield prompts3[type](question);
|
|
39196
39377
|
answers[name] = answer = yield getFormattedAnswer(question, answer, true);
|
|
39197
39378
|
quit = yield onSubmit(question, answer, answers);
|
|
39198
39379
|
} catch (err) {
|
|
@@ -39202,29 +39383,20 @@ var require_dist4 = __commonJS({
|
|
|
39202
39383
|
return answers;
|
|
39203
39384
|
}
|
|
39204
39385
|
} catch (err) {
|
|
39205
|
-
|
|
39206
|
-
_iteratorError = err;
|
|
39386
|
+
_iterator.e(err);
|
|
39207
39387
|
} finally {
|
|
39208
|
-
|
|
39209
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
39210
|
-
_iterator.return();
|
|
39211
|
-
}
|
|
39212
|
-
} finally {
|
|
39213
|
-
if (_didIteratorError) {
|
|
39214
|
-
throw _iteratorError;
|
|
39215
|
-
}
|
|
39216
|
-
}
|
|
39388
|
+
_iterator.f();
|
|
39217
39389
|
}
|
|
39218
39390
|
return answers;
|
|
39219
39391
|
});
|
|
39220
39392
|
return _prompt.apply(this, arguments);
|
|
39221
39393
|
}
|
|
39222
|
-
function getInjectedAnswer(injected) {
|
|
39394
|
+
function getInjectedAnswer(injected, deafultValue) {
|
|
39223
39395
|
const answer = injected.shift();
|
|
39224
39396
|
if (answer instanceof Error) {
|
|
39225
39397
|
throw answer;
|
|
39226
39398
|
}
|
|
39227
|
-
return answer;
|
|
39399
|
+
return answer === void 0 ? deafultValue : answer;
|
|
39228
39400
|
}
|
|
39229
39401
|
function inject(answers) {
|
|
39230
39402
|
prompt._injected = (prompt._injected || []).concat(answers);
|
|
@@ -39241,12 +39413,12 @@ var require_dist4 = __commonJS({
|
|
|
39241
39413
|
}
|
|
39242
39414
|
});
|
|
39243
39415
|
|
|
39244
|
-
// node_modules/prompts/lib/util/action.js
|
|
39416
|
+
// ../../node_modules/prompts/lib/util/action.js
|
|
39245
39417
|
var require_action2 = __commonJS({
|
|
39246
|
-
"node_modules/prompts/lib/util/action.js"(exports2, module2) {
|
|
39418
|
+
"../../node_modules/prompts/lib/util/action.js"(exports2, module2) {
|
|
39247
39419
|
"use strict";
|
|
39248
39420
|
module2.exports = (key, isSelect) => {
|
|
39249
|
-
if (key.meta)
|
|
39421
|
+
if (key.meta && key.name !== "escape")
|
|
39250
39422
|
return;
|
|
39251
39423
|
if (key.ctrl) {
|
|
39252
39424
|
if (key.name === "a")
|
|
@@ -39277,13 +39449,17 @@ var require_action2 = __commonJS({
|
|
|
39277
39449
|
if (key.name === "abort")
|
|
39278
39450
|
return "abort";
|
|
39279
39451
|
if (key.name === "escape")
|
|
39280
|
-
return "
|
|
39452
|
+
return "exit";
|
|
39281
39453
|
if (key.name === "tab")
|
|
39282
39454
|
return "next";
|
|
39283
39455
|
if (key.name === "pagedown")
|
|
39284
39456
|
return "nextPage";
|
|
39285
39457
|
if (key.name === "pageup")
|
|
39286
39458
|
return "prevPage";
|
|
39459
|
+
if (key.name === "home")
|
|
39460
|
+
return "home";
|
|
39461
|
+
if (key.name === "end")
|
|
39462
|
+
return "end";
|
|
39287
39463
|
if (key.name === "up")
|
|
39288
39464
|
return "up";
|
|
39289
39465
|
if (key.name === "down")
|
|
@@ -39297,13 +39473,13 @@ var require_action2 = __commonJS({
|
|
|
39297
39473
|
}
|
|
39298
39474
|
});
|
|
39299
39475
|
|
|
39300
|
-
// node_modules/prompts/lib/util/strip.js
|
|
39476
|
+
// ../../node_modules/prompts/lib/util/strip.js
|
|
39301
39477
|
var require_strip2 = __commonJS({
|
|
39302
|
-
"node_modules/prompts/lib/util/strip.js"(exports2, module2) {
|
|
39478
|
+
"../../node_modules/prompts/lib/util/strip.js"(exports2, module2) {
|
|
39303
39479
|
"use strict";
|
|
39304
39480
|
module2.exports = (str) => {
|
|
39305
39481
|
const pattern = [
|
|
39306
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]
|
|
39482
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
39307
39483
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"
|
|
39308
39484
|
].join("|");
|
|
39309
39485
|
const RGX = new RegExp(pattern, "g");
|
|
@@ -39312,14 +39488,14 @@ var require_strip2 = __commonJS({
|
|
|
39312
39488
|
}
|
|
39313
39489
|
});
|
|
39314
39490
|
|
|
39315
|
-
// node_modules/prompts/lib/util/clear.js
|
|
39491
|
+
// ../../node_modules/prompts/lib/util/clear.js
|
|
39316
39492
|
var require_clear2 = __commonJS({
|
|
39317
|
-
"node_modules/prompts/lib/util/clear.js"(exports2, module2) {
|
|
39493
|
+
"../../node_modules/prompts/lib/util/clear.js"(exports2, module2) {
|
|
39318
39494
|
"use strict";
|
|
39319
39495
|
var strip = require_strip2();
|
|
39320
39496
|
var { erase, cursor } = require_src6();
|
|
39321
39497
|
var width = (str) => [...strip(str)].length;
|
|
39322
|
-
module2.exports = function(prompt, perLine
|
|
39498
|
+
module2.exports = function(prompt, perLine) {
|
|
39323
39499
|
if (!perLine)
|
|
39324
39500
|
return erase.line + cursor.to(0);
|
|
39325
39501
|
let rows = 0;
|
|
@@ -39327,14 +39503,14 @@ var require_clear2 = __commonJS({
|
|
|
39327
39503
|
for (let line of lines) {
|
|
39328
39504
|
rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);
|
|
39329
39505
|
}
|
|
39330
|
-
return
|
|
39506
|
+
return erase.lines(rows);
|
|
39331
39507
|
};
|
|
39332
39508
|
}
|
|
39333
39509
|
});
|
|
39334
39510
|
|
|
39335
|
-
// node_modules/prompts/lib/util/figures.js
|
|
39511
|
+
// ../../node_modules/prompts/lib/util/figures.js
|
|
39336
39512
|
var require_figures2 = __commonJS({
|
|
39337
|
-
"node_modules/prompts/lib/util/figures.js"(exports2, module2) {
|
|
39513
|
+
"../../node_modules/prompts/lib/util/figures.js"(exports2, module2) {
|
|
39338
39514
|
"use strict";
|
|
39339
39515
|
var main = {
|
|
39340
39516
|
arrowUp: "\u2191",
|
|
@@ -39369,9 +39545,9 @@ var require_figures2 = __commonJS({
|
|
|
39369
39545
|
}
|
|
39370
39546
|
});
|
|
39371
39547
|
|
|
39372
|
-
// node_modules/prompts/lib/util/style.js
|
|
39548
|
+
// ../../node_modules/prompts/lib/util/style.js
|
|
39373
39549
|
var require_style2 = __commonJS({
|
|
39374
|
-
"node_modules/prompts/lib/util/style.js"(exports2, module2) {
|
|
39550
|
+
"../../node_modules/prompts/lib/util/style.js"(exports2, module2) {
|
|
39375
39551
|
"use strict";
|
|
39376
39552
|
var c = require_kleur();
|
|
39377
39553
|
var figures = require_figures2();
|
|
@@ -39385,9 +39561,10 @@ var require_style2 = __commonJS({
|
|
|
39385
39561
|
var symbols = Object.freeze({
|
|
39386
39562
|
aborted: c.red(figures.cross),
|
|
39387
39563
|
done: c.green(figures.tick),
|
|
39564
|
+
exited: c.yellow(figures.cross),
|
|
39388
39565
|
default: c.cyan("?")
|
|
39389
39566
|
});
|
|
39390
|
-
var symbol = (done, aborted) => aborted ? symbols.aborted : done ? symbols.done : symbols.default;
|
|
39567
|
+
var symbol = (done, aborted, exited) => aborted ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
|
|
39391
39568
|
var delimiter = (completing) => c.gray(completing ? figures.ellipsis : figures.pointerSmall);
|
|
39392
39569
|
var item = (expandable, expanded) => c.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
|
|
39393
39570
|
module2.exports = {
|
|
@@ -39401,12 +39578,12 @@ var require_style2 = __commonJS({
|
|
|
39401
39578
|
}
|
|
39402
39579
|
});
|
|
39403
39580
|
|
|
39404
|
-
// node_modules/prompts/lib/util/lines.js
|
|
39581
|
+
// ../../node_modules/prompts/lib/util/lines.js
|
|
39405
39582
|
var require_lines2 = __commonJS({
|
|
39406
|
-
"node_modules/prompts/lib/util/lines.js"(exports2, module2) {
|
|
39583
|
+
"../../node_modules/prompts/lib/util/lines.js"(exports2, module2) {
|
|
39407
39584
|
"use strict";
|
|
39408
39585
|
var strip = require_strip2();
|
|
39409
|
-
module2.exports = function(msg, perLine
|
|
39586
|
+
module2.exports = function(msg, perLine) {
|
|
39410
39587
|
let lines = String(strip(msg) || "").split(/\r?\n/);
|
|
39411
39588
|
if (!perLine)
|
|
39412
39589
|
return lines.length;
|
|
@@ -39415,13 +39592,13 @@ var require_lines2 = __commonJS({
|
|
|
39415
39592
|
}
|
|
39416
39593
|
});
|
|
39417
39594
|
|
|
39418
|
-
// node_modules/prompts/lib/util/wrap.js
|
|
39595
|
+
// ../../node_modules/prompts/lib/util/wrap.js
|
|
39419
39596
|
var require_wrap2 = __commonJS({
|
|
39420
|
-
"node_modules/prompts/lib/util/wrap.js"(exports2, module2) {
|
|
39597
|
+
"../../node_modules/prompts/lib/util/wrap.js"(exports2, module2) {
|
|
39421
39598
|
"use strict";
|
|
39422
39599
|
module2.exports = (msg, opts = {}) => {
|
|
39423
39600
|
const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
|
|
39424
|
-
const width = opts.width
|
|
39601
|
+
const width = opts.width;
|
|
39425
39602
|
return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w) => {
|
|
39426
39603
|
if (w.length + tab.length >= width || arr[arr.length - 1].length + w.length + 1 < width)
|
|
39427
39604
|
arr[arr.length - 1] += ` ${w}`;
|
|
@@ -39433,9 +39610,9 @@ var require_wrap2 = __commonJS({
|
|
|
39433
39610
|
}
|
|
39434
39611
|
});
|
|
39435
39612
|
|
|
39436
|
-
// node_modules/prompts/lib/util/entriesToDisplay.js
|
|
39613
|
+
// ../../node_modules/prompts/lib/util/entriesToDisplay.js
|
|
39437
39614
|
var require_entriesToDisplay2 = __commonJS({
|
|
39438
|
-
"node_modules/prompts/lib/util/entriesToDisplay.js"(exports2, module2) {
|
|
39615
|
+
"../../node_modules/prompts/lib/util/entriesToDisplay.js"(exports2, module2) {
|
|
39439
39616
|
"use strict";
|
|
39440
39617
|
module2.exports = (cursor, total, maxVisible) => {
|
|
39441
39618
|
maxVisible = maxVisible || total;
|
|
@@ -39448,9 +39625,9 @@ var require_entriesToDisplay2 = __commonJS({
|
|
|
39448
39625
|
}
|
|
39449
39626
|
});
|
|
39450
39627
|
|
|
39451
|
-
// node_modules/prompts/lib/util/index.js
|
|
39628
|
+
// ../../node_modules/prompts/lib/util/index.js
|
|
39452
39629
|
var require_util5 = __commonJS({
|
|
39453
|
-
"node_modules/prompts/lib/util/index.js"(exports2, module2) {
|
|
39630
|
+
"../../node_modules/prompts/lib/util/index.js"(exports2, module2) {
|
|
39454
39631
|
"use strict";
|
|
39455
39632
|
module2.exports = {
|
|
39456
39633
|
action: require_action2(),
|
|
@@ -39465,9 +39642,9 @@ var require_util5 = __commonJS({
|
|
|
39465
39642
|
}
|
|
39466
39643
|
});
|
|
39467
39644
|
|
|
39468
|
-
// node_modules/prompts/lib/elements/prompt.js
|
|
39645
|
+
// ../../node_modules/prompts/lib/elements/prompt.js
|
|
39469
39646
|
var require_prompt2 = __commonJS({
|
|
39470
|
-
"node_modules/prompts/lib/elements/prompt.js"(exports2, module2) {
|
|
39647
|
+
"../../node_modules/prompts/lib/elements/prompt.js"(exports2, module2) {
|
|
39471
39648
|
"use strict";
|
|
39472
39649
|
var readline = require("readline");
|
|
39473
39650
|
var { action } = require_util5();
|
|
@@ -39481,7 +39658,7 @@ var require_prompt2 = __commonJS({
|
|
|
39481
39658
|
this.in = opts.stdin || process.stdin;
|
|
39482
39659
|
this.out = opts.stdout || process.stdout;
|
|
39483
39660
|
this.onRender = (opts.onRender || (() => void 0)).bind(this);
|
|
39484
|
-
const rl = readline.createInterface(this.in);
|
|
39661
|
+
const rl = readline.createInterface({ input: this.in, escapeCodeTimeout: 50 });
|
|
39485
39662
|
readline.emitKeypressEvents(this.in, rl);
|
|
39486
39663
|
if (this.in.isTTY)
|
|
39487
39664
|
this.in.setRawMode(true);
|
|
@@ -39502,7 +39679,7 @@ var require_prompt2 = __commonJS({
|
|
|
39502
39679
|
if (this.in.isTTY)
|
|
39503
39680
|
this.in.setRawMode(false);
|
|
39504
39681
|
rl.close();
|
|
39505
|
-
this.emit(this.aborted ? "abort" : "submit", this.value);
|
|
39682
|
+
this.emit(this.aborted ? "abort" : this.exited ? "exit" : "submit", this.value);
|
|
39506
39683
|
this.closed = true;
|
|
39507
39684
|
};
|
|
39508
39685
|
this.in.on("keypress", keypress);
|
|
@@ -39510,7 +39687,8 @@ var require_prompt2 = __commonJS({
|
|
|
39510
39687
|
fire() {
|
|
39511
39688
|
this.emit("state", {
|
|
39512
39689
|
value: this.value,
|
|
39513
|
-
aborted: !!this.aborted
|
|
39690
|
+
aborted: !!this.aborted,
|
|
39691
|
+
exited: !!this.exited
|
|
39514
39692
|
});
|
|
39515
39693
|
}
|
|
39516
39694
|
bell() {
|
|
@@ -39526,9 +39704,9 @@ var require_prompt2 = __commonJS({
|
|
|
39526
39704
|
}
|
|
39527
39705
|
});
|
|
39528
39706
|
|
|
39529
|
-
// node_modules/prompts/lib/elements/text.js
|
|
39707
|
+
// ../../node_modules/prompts/lib/elements/text.js
|
|
39530
39708
|
var require_text2 = __commonJS({
|
|
39531
|
-
"node_modules/prompts/lib/elements/text.js"(exports2, module2) {
|
|
39709
|
+
"../../node_modules/prompts/lib/elements/text.js"(exports2, module2) {
|
|
39532
39710
|
var color = require_kleur();
|
|
39533
39711
|
var Prompt = require_prompt2();
|
|
39534
39712
|
var { erase, cursor } = require_src6();
|
|
@@ -39544,7 +39722,8 @@ var require_text2 = __commonJS({
|
|
|
39544
39722
|
this.value = ``;
|
|
39545
39723
|
this.errorMsg = opts.error || `Please Enter A Valid Value`;
|
|
39546
39724
|
this.cursor = Number(!!this.initial);
|
|
39547
|
-
this.
|
|
39725
|
+
this.cursorOffset = 0;
|
|
39726
|
+
this.clear = clear(``, this.out.columns);
|
|
39548
39727
|
this.render();
|
|
39549
39728
|
}
|
|
39550
39729
|
set value(v) {
|
|
@@ -39564,9 +39743,13 @@ var require_text2 = __commonJS({
|
|
|
39564
39743
|
reset() {
|
|
39565
39744
|
this.value = ``;
|
|
39566
39745
|
this.cursor = Number(!!this.initial);
|
|
39746
|
+
this.cursorOffset = 0;
|
|
39567
39747
|
this.fire();
|
|
39568
39748
|
this.render();
|
|
39569
39749
|
}
|
|
39750
|
+
exit() {
|
|
39751
|
+
this.abort();
|
|
39752
|
+
}
|
|
39570
39753
|
abort() {
|
|
39571
39754
|
this.value = this.value || this.initial;
|
|
39572
39755
|
this.done = this.aborted = true;
|
|
@@ -39587,6 +39770,8 @@ var require_text2 = __commonJS({
|
|
|
39587
39770
|
}
|
|
39588
39771
|
async submit() {
|
|
39589
39772
|
this.value = this.value || this.initial;
|
|
39773
|
+
this.cursorOffset = 0;
|
|
39774
|
+
this.cursor = this.rendered.length;
|
|
39590
39775
|
await this.validate();
|
|
39591
39776
|
if (this.error) {
|
|
39592
39777
|
this.red = true;
|
|
@@ -39613,6 +39798,7 @@ var require_text2 = __commonJS({
|
|
|
39613
39798
|
if (this.placeholder)
|
|
39614
39799
|
return;
|
|
39615
39800
|
this.cursor = this.cursor + n;
|
|
39801
|
+
this.cursorOffset += n;
|
|
39616
39802
|
}
|
|
39617
39803
|
_(c, key) {
|
|
39618
39804
|
let s1 = this.value.slice(0, this.cursor);
|
|
@@ -39623,13 +39809,18 @@ var require_text2 = __commonJS({
|
|
|
39623
39809
|
this.render();
|
|
39624
39810
|
}
|
|
39625
39811
|
delete() {
|
|
39626
|
-
if (this.
|
|
39812
|
+
if (this.isCursorAtStart())
|
|
39627
39813
|
return this.bell();
|
|
39628
39814
|
let s1 = this.value.slice(0, this.cursor - 1);
|
|
39629
39815
|
let s2 = this.value.slice(this.cursor);
|
|
39630
39816
|
this.value = `${s1}${s2}`;
|
|
39631
39817
|
this.red = false;
|
|
39632
|
-
this.
|
|
39818
|
+
if (this.isCursorAtStart()) {
|
|
39819
|
+
this.cursorOffset = 0;
|
|
39820
|
+
} else {
|
|
39821
|
+
this.cursorOffset++;
|
|
39822
|
+
this.moveCursor(-1);
|
|
39823
|
+
}
|
|
39633
39824
|
this.render();
|
|
39634
39825
|
}
|
|
39635
39826
|
deleteForward() {
|
|
@@ -39639,6 +39830,11 @@ var require_text2 = __commonJS({
|
|
|
39639
39830
|
let s2 = this.value.slice(this.cursor + 1);
|
|
39640
39831
|
this.value = `${s1}${s2}`;
|
|
39641
39832
|
this.red = false;
|
|
39833
|
+
if (this.isCursorAtEnd()) {
|
|
39834
|
+
this.cursorOffset = 0;
|
|
39835
|
+
} else {
|
|
39836
|
+
this.cursorOffset++;
|
|
39837
|
+
}
|
|
39642
39838
|
this.render();
|
|
39643
39839
|
}
|
|
39644
39840
|
first() {
|
|
@@ -39661,13 +39857,19 @@ var require_text2 = __commonJS({
|
|
|
39661
39857
|
this.moveCursor(1);
|
|
39662
39858
|
this.render();
|
|
39663
39859
|
}
|
|
39860
|
+
isCursorAtStart() {
|
|
39861
|
+
return this.cursor === 0 || this.placeholder && this.cursor === 1;
|
|
39862
|
+
}
|
|
39863
|
+
isCursorAtEnd() {
|
|
39864
|
+
return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1;
|
|
39865
|
+
}
|
|
39664
39866
|
render() {
|
|
39665
39867
|
if (this.closed)
|
|
39666
39868
|
return;
|
|
39667
39869
|
if (!this.firstRender) {
|
|
39668
39870
|
if (this.outputError)
|
|
39669
|
-
this.out.write(cursor.down(lines(this.outputError) - 1) + clear(this.outputError));
|
|
39670
|
-
this.out.write(clear(this.outputText));
|
|
39871
|
+
this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
|
|
39872
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
39671
39873
|
}
|
|
39672
39874
|
super.render();
|
|
39673
39875
|
this.outputError = "";
|
|
@@ -39682,16 +39884,16 @@ var require_text2 = __commonJS({
|
|
|
39682
39884
|
`).reduce((a, l, i) => a + `
|
|
39683
39885
|
${i ? " " : figures.pointerSmall} ${color.red().italic(l)}`, ``);
|
|
39684
39886
|
}
|
|
39685
|
-
this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore);
|
|
39887
|
+
this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore + cursor.move(this.cursorOffset, 0));
|
|
39686
39888
|
}
|
|
39687
39889
|
};
|
|
39688
39890
|
module2.exports = TextPrompt;
|
|
39689
39891
|
}
|
|
39690
39892
|
});
|
|
39691
39893
|
|
|
39692
|
-
// node_modules/prompts/lib/elements/select.js
|
|
39894
|
+
// ../../node_modules/prompts/lib/elements/select.js
|
|
39693
39895
|
var require_select2 = __commonJS({
|
|
39694
|
-
"node_modules/prompts/lib/elements/select.js"(exports2, module2) {
|
|
39896
|
+
"../../node_modules/prompts/lib/elements/select.js"(exports2, module2) {
|
|
39695
39897
|
"use strict";
|
|
39696
39898
|
var color = require_kleur();
|
|
39697
39899
|
var Prompt = require_prompt2();
|
|
@@ -39717,7 +39919,7 @@ var require_select2 = __commonJS({
|
|
|
39717
39919
|
});
|
|
39718
39920
|
this.optionsPerPage = opts.optionsPerPage || 10;
|
|
39719
39921
|
this.value = (this.choices[this.cursor] || {}).value;
|
|
39720
|
-
this.clear = clear("");
|
|
39922
|
+
this.clear = clear("", this.out.columns);
|
|
39721
39923
|
this.render();
|
|
39722
39924
|
}
|
|
39723
39925
|
moveCursor(n) {
|
|
@@ -39730,6 +39932,9 @@ var require_select2 = __commonJS({
|
|
|
39730
39932
|
this.fire();
|
|
39731
39933
|
this.render();
|
|
39732
39934
|
}
|
|
39935
|
+
exit() {
|
|
39936
|
+
this.abort();
|
|
39937
|
+
}
|
|
39733
39938
|
abort() {
|
|
39734
39939
|
this.done = this.aborted = true;
|
|
39735
39940
|
this.fire();
|
|
@@ -39757,15 +39962,19 @@ var require_select2 = __commonJS({
|
|
|
39757
39962
|
this.render();
|
|
39758
39963
|
}
|
|
39759
39964
|
up() {
|
|
39760
|
-
if (this.cursor === 0)
|
|
39761
|
-
|
|
39762
|
-
|
|
39965
|
+
if (this.cursor === 0) {
|
|
39966
|
+
this.moveCursor(this.choices.length - 1);
|
|
39967
|
+
} else {
|
|
39968
|
+
this.moveCursor(this.cursor - 1);
|
|
39969
|
+
}
|
|
39763
39970
|
this.render();
|
|
39764
39971
|
}
|
|
39765
39972
|
down() {
|
|
39766
|
-
if (this.cursor === this.choices.length - 1)
|
|
39767
|
-
|
|
39768
|
-
|
|
39973
|
+
if (this.cursor === this.choices.length - 1) {
|
|
39974
|
+
this.moveCursor(0);
|
|
39975
|
+
} else {
|
|
39976
|
+
this.moveCursor(this.cursor + 1);
|
|
39977
|
+
}
|
|
39769
39978
|
this.render();
|
|
39770
39979
|
}
|
|
39771
39980
|
next() {
|
|
@@ -39785,7 +39994,7 @@ var require_select2 = __commonJS({
|
|
|
39785
39994
|
if (this.firstRender)
|
|
39786
39995
|
this.out.write(cursor.hide);
|
|
39787
39996
|
else
|
|
39788
|
-
this.out.write(clear(this.outputText));
|
|
39997
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
39789
39998
|
super.render();
|
|
39790
39999
|
let { startIndex, endIndex } = entriesToDisplay(this.cursor, this.choices.length, this.optionsPerPage);
|
|
39791
40000
|
this.outputText = [
|
|
@@ -39829,9 +40038,9 @@ var require_select2 = __commonJS({
|
|
|
39829
40038
|
}
|
|
39830
40039
|
});
|
|
39831
40040
|
|
|
39832
|
-
// node_modules/prompts/lib/elements/toggle.js
|
|
40041
|
+
// ../../node_modules/prompts/lib/elements/toggle.js
|
|
39833
40042
|
var require_toggle2 = __commonJS({
|
|
39834
|
-
"node_modules/prompts/lib/elements/toggle.js"(exports2, module2) {
|
|
40043
|
+
"../../node_modules/prompts/lib/elements/toggle.js"(exports2, module2) {
|
|
39835
40044
|
var color = require_kleur();
|
|
39836
40045
|
var Prompt = require_prompt2();
|
|
39837
40046
|
var { style, clear } = require_util5();
|
|
@@ -39851,6 +40060,9 @@ var require_toggle2 = __commonJS({
|
|
|
39851
40060
|
this.fire();
|
|
39852
40061
|
this.render();
|
|
39853
40062
|
}
|
|
40063
|
+
exit() {
|
|
40064
|
+
this.abort();
|
|
40065
|
+
}
|
|
39854
40066
|
abort() {
|
|
39855
40067
|
this.done = this.aborted = true;
|
|
39856
40068
|
this.fire();
|
|
@@ -39915,7 +40127,7 @@ var require_toggle2 = __commonJS({
|
|
|
39915
40127
|
if (this.firstRender)
|
|
39916
40128
|
this.out.write(cursor.hide);
|
|
39917
40129
|
else
|
|
39918
|
-
this.out.write(clear(this.outputText));
|
|
40130
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
39919
40131
|
super.render();
|
|
39920
40132
|
this.outputText = [
|
|
39921
40133
|
style.symbol(this.done, this.aborted),
|
|
@@ -39932,9 +40144,9 @@ var require_toggle2 = __commonJS({
|
|
|
39932
40144
|
}
|
|
39933
40145
|
});
|
|
39934
40146
|
|
|
39935
|
-
// node_modules/prompts/lib/dateparts/datepart.js
|
|
40147
|
+
// ../../node_modules/prompts/lib/dateparts/datepart.js
|
|
39936
40148
|
var require_datepart2 = __commonJS({
|
|
39937
|
-
"node_modules/prompts/lib/dateparts/datepart.js"(exports2, module2) {
|
|
40149
|
+
"../../node_modules/prompts/lib/dateparts/datepart.js"(exports2, module2) {
|
|
39938
40150
|
"use strict";
|
|
39939
40151
|
var DatePart = class {
|
|
39940
40152
|
constructor({ token: token2, date, parts, locales }) {
|
|
@@ -39966,9 +40178,9 @@ var require_datepart2 = __commonJS({
|
|
|
39966
40178
|
}
|
|
39967
40179
|
});
|
|
39968
40180
|
|
|
39969
|
-
// node_modules/prompts/lib/dateparts/meridiem.js
|
|
40181
|
+
// ../../node_modules/prompts/lib/dateparts/meridiem.js
|
|
39970
40182
|
var require_meridiem2 = __commonJS({
|
|
39971
|
-
"node_modules/prompts/lib/dateparts/meridiem.js"(exports2, module2) {
|
|
40183
|
+
"../../node_modules/prompts/lib/dateparts/meridiem.js"(exports2, module2) {
|
|
39972
40184
|
"use strict";
|
|
39973
40185
|
var DatePart = require_datepart2();
|
|
39974
40186
|
var Meridiem = class extends DatePart {
|
|
@@ -39990,9 +40202,9 @@ var require_meridiem2 = __commonJS({
|
|
|
39990
40202
|
}
|
|
39991
40203
|
});
|
|
39992
40204
|
|
|
39993
|
-
// node_modules/prompts/lib/dateparts/day.js
|
|
40205
|
+
// ../../node_modules/prompts/lib/dateparts/day.js
|
|
39994
40206
|
var require_day2 = __commonJS({
|
|
39995
|
-
"node_modules/prompts/lib/dateparts/day.js"(exports2, module2) {
|
|
40207
|
+
"../../node_modules/prompts/lib/dateparts/day.js"(exports2, module2) {
|
|
39996
40208
|
"use strict";
|
|
39997
40209
|
var DatePart = require_datepart2();
|
|
39998
40210
|
var pos = (n) => {
|
|
@@ -40022,9 +40234,9 @@ var require_day2 = __commonJS({
|
|
|
40022
40234
|
}
|
|
40023
40235
|
});
|
|
40024
40236
|
|
|
40025
|
-
// node_modules/prompts/lib/dateparts/hours.js
|
|
40237
|
+
// ../../node_modules/prompts/lib/dateparts/hours.js
|
|
40026
40238
|
var require_hours2 = __commonJS({
|
|
40027
|
-
"node_modules/prompts/lib/dateparts/hours.js"(exports2, module2) {
|
|
40239
|
+
"../../node_modules/prompts/lib/dateparts/hours.js"(exports2, module2) {
|
|
40028
40240
|
"use strict";
|
|
40029
40241
|
var DatePart = require_datepart2();
|
|
40030
40242
|
var Hours = class extends DatePart {
|
|
@@ -40051,9 +40263,9 @@ var require_hours2 = __commonJS({
|
|
|
40051
40263
|
}
|
|
40052
40264
|
});
|
|
40053
40265
|
|
|
40054
|
-
// node_modules/prompts/lib/dateparts/milliseconds.js
|
|
40266
|
+
// ../../node_modules/prompts/lib/dateparts/milliseconds.js
|
|
40055
40267
|
var require_milliseconds2 = __commonJS({
|
|
40056
|
-
"node_modules/prompts/lib/dateparts/milliseconds.js"(exports2, module2) {
|
|
40268
|
+
"../../node_modules/prompts/lib/dateparts/milliseconds.js"(exports2, module2) {
|
|
40057
40269
|
"use strict";
|
|
40058
40270
|
var DatePart = require_datepart2();
|
|
40059
40271
|
var Milliseconds = class extends DatePart {
|
|
@@ -40077,9 +40289,9 @@ var require_milliseconds2 = __commonJS({
|
|
|
40077
40289
|
}
|
|
40078
40290
|
});
|
|
40079
40291
|
|
|
40080
|
-
// node_modules/prompts/lib/dateparts/minutes.js
|
|
40292
|
+
// ../../node_modules/prompts/lib/dateparts/minutes.js
|
|
40081
40293
|
var require_minutes2 = __commonJS({
|
|
40082
|
-
"node_modules/prompts/lib/dateparts/minutes.js"(exports2, module2) {
|
|
40294
|
+
"../../node_modules/prompts/lib/dateparts/minutes.js"(exports2, module2) {
|
|
40083
40295
|
"use strict";
|
|
40084
40296
|
var DatePart = require_datepart2();
|
|
40085
40297
|
var Minutes = class extends DatePart {
|
|
@@ -40104,9 +40316,9 @@ var require_minutes2 = __commonJS({
|
|
|
40104
40316
|
}
|
|
40105
40317
|
});
|
|
40106
40318
|
|
|
40107
|
-
// node_modules/prompts/lib/dateparts/month.js
|
|
40319
|
+
// ../../node_modules/prompts/lib/dateparts/month.js
|
|
40108
40320
|
var require_month2 = __commonJS({
|
|
40109
|
-
"node_modules/prompts/lib/dateparts/month.js"(exports2, module2) {
|
|
40321
|
+
"../../node_modules/prompts/lib/dateparts/month.js"(exports2, module2) {
|
|
40110
40322
|
"use strict";
|
|
40111
40323
|
var DatePart = require_datepart2();
|
|
40112
40324
|
var Month = class extends DatePart {
|
|
@@ -40133,9 +40345,9 @@ var require_month2 = __commonJS({
|
|
|
40133
40345
|
}
|
|
40134
40346
|
});
|
|
40135
40347
|
|
|
40136
|
-
// node_modules/prompts/lib/dateparts/seconds.js
|
|
40348
|
+
// ../../node_modules/prompts/lib/dateparts/seconds.js
|
|
40137
40349
|
var require_seconds2 = __commonJS({
|
|
40138
|
-
"node_modules/prompts/lib/dateparts/seconds.js"(exports2, module2) {
|
|
40350
|
+
"../../node_modules/prompts/lib/dateparts/seconds.js"(exports2, module2) {
|
|
40139
40351
|
"use strict";
|
|
40140
40352
|
var DatePart = require_datepart2();
|
|
40141
40353
|
var Seconds = class extends DatePart {
|
|
@@ -40160,9 +40372,9 @@ var require_seconds2 = __commonJS({
|
|
|
40160
40372
|
}
|
|
40161
40373
|
});
|
|
40162
40374
|
|
|
40163
|
-
// node_modules/prompts/lib/dateparts/year.js
|
|
40375
|
+
// ../../node_modules/prompts/lib/dateparts/year.js
|
|
40164
40376
|
var require_year2 = __commonJS({
|
|
40165
|
-
"node_modules/prompts/lib/dateparts/year.js"(exports2, module2) {
|
|
40377
|
+
"../../node_modules/prompts/lib/dateparts/year.js"(exports2, module2) {
|
|
40166
40378
|
"use strict";
|
|
40167
40379
|
var DatePart = require_datepart2();
|
|
40168
40380
|
var Year = class extends DatePart {
|
|
@@ -40187,9 +40399,9 @@ var require_year2 = __commonJS({
|
|
|
40187
40399
|
}
|
|
40188
40400
|
});
|
|
40189
40401
|
|
|
40190
|
-
// node_modules/prompts/lib/dateparts/index.js
|
|
40402
|
+
// ../../node_modules/prompts/lib/dateparts/index.js
|
|
40191
40403
|
var require_dateparts2 = __commonJS({
|
|
40192
|
-
"node_modules/prompts/lib/dateparts/index.js"(exports2, module2) {
|
|
40404
|
+
"../../node_modules/prompts/lib/dateparts/index.js"(exports2, module2) {
|
|
40193
40405
|
"use strict";
|
|
40194
40406
|
module2.exports = {
|
|
40195
40407
|
DatePart: require_datepart2(),
|
|
@@ -40205,9 +40417,9 @@ var require_dateparts2 = __commonJS({
|
|
|
40205
40417
|
}
|
|
40206
40418
|
});
|
|
40207
40419
|
|
|
40208
|
-
// node_modules/prompts/lib/elements/date.js
|
|
40420
|
+
// ../../node_modules/prompts/lib/elements/date.js
|
|
40209
40421
|
var require_date2 = __commonJS({
|
|
40210
|
-
"node_modules/prompts/lib/elements/date.js"(exports2, module2) {
|
|
40422
|
+
"../../node_modules/prompts/lib/elements/date.js"(exports2, module2) {
|
|
40211
40423
|
"use strict";
|
|
40212
40424
|
var color = require_kleur();
|
|
40213
40425
|
var Prompt = require_prompt2();
|
|
@@ -40243,7 +40455,7 @@ var require_date2 = __commonJS({
|
|
|
40243
40455
|
this.errorMsg = opts.error || "Please Enter A Valid Value";
|
|
40244
40456
|
this.validator = opts.validate || (() => true);
|
|
40245
40457
|
this.mask = opts.mask || "YYYY-MM-DD HH:mm:ss";
|
|
40246
|
-
this.clear = clear("");
|
|
40458
|
+
this.clear = clear("", this.out.columns);
|
|
40247
40459
|
this.render();
|
|
40248
40460
|
}
|
|
40249
40461
|
get value() {
|
|
@@ -40285,6 +40497,9 @@ var require_date2 = __commonJS({
|
|
|
40285
40497
|
this.fire();
|
|
40286
40498
|
this.render();
|
|
40287
40499
|
}
|
|
40500
|
+
exit() {
|
|
40501
|
+
this.abort();
|
|
40502
|
+
}
|
|
40288
40503
|
abort() {
|
|
40289
40504
|
this.done = this.aborted = true;
|
|
40290
40505
|
this.error = false;
|
|
@@ -40358,7 +40573,7 @@ var require_date2 = __commonJS({
|
|
|
40358
40573
|
if (this.firstRender)
|
|
40359
40574
|
this.out.write(cursor.hide);
|
|
40360
40575
|
else
|
|
40361
|
-
this.out.write(clear(this.outputText));
|
|
40576
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
40362
40577
|
super.render();
|
|
40363
40578
|
this.outputText = [
|
|
40364
40579
|
style.symbol(this.done, this.aborted),
|
|
@@ -40377,9 +40592,9 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
|
|
|
40377
40592
|
}
|
|
40378
40593
|
});
|
|
40379
40594
|
|
|
40380
|
-
// node_modules/prompts/lib/elements/number.js
|
|
40595
|
+
// ../../node_modules/prompts/lib/elements/number.js
|
|
40381
40596
|
var require_number2 = __commonJS({
|
|
40382
|
-
"node_modules/prompts/lib/elements/number.js"(exports2, module2) {
|
|
40597
|
+
"../../node_modules/prompts/lib/elements/number.js"(exports2, module2) {
|
|
40383
40598
|
var color = require_kleur();
|
|
40384
40599
|
var Prompt = require_prompt2();
|
|
40385
40600
|
var { cursor, erase } = require_src6();
|
|
@@ -40436,6 +40651,9 @@ var require_number2 = __commonJS({
|
|
|
40436
40651
|
this.fire();
|
|
40437
40652
|
this.render();
|
|
40438
40653
|
}
|
|
40654
|
+
exit() {
|
|
40655
|
+
this.abort();
|
|
40656
|
+
}
|
|
40439
40657
|
abort() {
|
|
40440
40658
|
let x = this.value;
|
|
40441
40659
|
this.value = x !== `` ? x : this.initial;
|
|
@@ -40539,8 +40757,8 @@ var require_number2 = __commonJS({
|
|
|
40539
40757
|
return;
|
|
40540
40758
|
if (!this.firstRender) {
|
|
40541
40759
|
if (this.outputError)
|
|
40542
|
-
this.out.write(cursor.down(lines(this.outputError) - 1) + clear(this.outputError));
|
|
40543
|
-
this.out.write(clear(this.outputText));
|
|
40760
|
+
this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
|
|
40761
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
40544
40762
|
}
|
|
40545
40763
|
super.render();
|
|
40546
40764
|
this.outputError = "";
|
|
@@ -40562,9 +40780,9 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
|
|
|
40562
40780
|
}
|
|
40563
40781
|
});
|
|
40564
40782
|
|
|
40565
|
-
// node_modules/prompts/lib/elements/multiselect.js
|
|
40783
|
+
// ../../node_modules/prompts/lib/elements/multiselect.js
|
|
40566
40784
|
var require_multiselect2 = __commonJS({
|
|
40567
|
-
"node_modules/prompts/lib/elements/multiselect.js"(exports2, module2) {
|
|
40785
|
+
"../../node_modules/prompts/lib/elements/multiselect.js"(exports2, module2) {
|
|
40568
40786
|
"use strict";
|
|
40569
40787
|
var color = require_kleur();
|
|
40570
40788
|
var { cursor } = require_src6();
|
|
@@ -40594,7 +40812,7 @@ var require_multiselect2 = __commonJS({
|
|
|
40594
40812
|
disabled: ch && ch.disabled
|
|
40595
40813
|
};
|
|
40596
40814
|
});
|
|
40597
|
-
this.clear = clear("");
|
|
40815
|
+
this.clear = clear("", this.out.columns);
|
|
40598
40816
|
if (!opts.overrideRender) {
|
|
40599
40817
|
this.render();
|
|
40600
40818
|
}
|
|
@@ -40608,6 +40826,9 @@ var require_multiselect2 = __commonJS({
|
|
|
40608
40826
|
selected() {
|
|
40609
40827
|
return this.value.filter((v) => v.selected);
|
|
40610
40828
|
}
|
|
40829
|
+
exit() {
|
|
40830
|
+
this.abort();
|
|
40831
|
+
}
|
|
40611
40832
|
abort() {
|
|
40612
40833
|
this.done = this.aborted = true;
|
|
40613
40834
|
this.fire();
|
|
@@ -40778,16 +40999,16 @@ Instructions:
|
|
|
40778
40999
|
}
|
|
40779
41000
|
prompt += this.renderOptions(this.value);
|
|
40780
41001
|
this.out.write(this.clear + prompt);
|
|
40781
|
-
this.clear = clear(prompt);
|
|
41002
|
+
this.clear = clear(prompt, this.out.columns);
|
|
40782
41003
|
}
|
|
40783
41004
|
};
|
|
40784
41005
|
module2.exports = MultiselectPrompt;
|
|
40785
41006
|
}
|
|
40786
41007
|
});
|
|
40787
41008
|
|
|
40788
|
-
// node_modules/prompts/lib/elements/autocomplete.js
|
|
41009
|
+
// ../../node_modules/prompts/lib/elements/autocomplete.js
|
|
40789
41010
|
var require_autocomplete2 = __commonJS({
|
|
40790
|
-
"node_modules/prompts/lib/elements/autocomplete.js"(exports2, module2) {
|
|
41011
|
+
"../../node_modules/prompts/lib/elements/autocomplete.js"(exports2, module2) {
|
|
40791
41012
|
"use strict";
|
|
40792
41013
|
var color = require_kleur();
|
|
40793
41014
|
var Prompt = require_prompt2();
|
|
@@ -40809,6 +41030,7 @@ var require_autocomplete2 = __commonJS({
|
|
|
40809
41030
|
this.select = this.initial || opts.cursor || 0;
|
|
40810
41031
|
this.i18n = { noMatches: opts.noMatches || "no matches found" };
|
|
40811
41032
|
this.fallback = opts.fallback || this.initial;
|
|
41033
|
+
this.clearFirst = opts.clearFirst || false;
|
|
40812
41034
|
this.suggestions = [];
|
|
40813
41035
|
this.input = "";
|
|
40814
41036
|
this.limit = opts.limit || 10;
|
|
@@ -40817,7 +41039,7 @@ var require_autocomplete2 = __commonJS({
|
|
|
40817
41039
|
this.scale = this.transform.scale;
|
|
40818
41040
|
this.render = this.render.bind(this);
|
|
40819
41041
|
this.complete = this.complete.bind(this);
|
|
40820
|
-
this.clear = clear("");
|
|
41042
|
+
this.clear = clear("", this.out.columns);
|
|
40821
41043
|
this.complete(this.render);
|
|
40822
41044
|
this.render();
|
|
40823
41045
|
}
|
|
@@ -40859,8 +41081,21 @@ var require_autocomplete2 = __commonJS({
|
|
|
40859
41081
|
});
|
|
40860
41082
|
this.render();
|
|
40861
41083
|
}
|
|
41084
|
+
exit() {
|
|
41085
|
+
if (this.clearFirst && this.input.length > 0) {
|
|
41086
|
+
this.reset();
|
|
41087
|
+
} else {
|
|
41088
|
+
this.done = this.exited = true;
|
|
41089
|
+
this.aborted = false;
|
|
41090
|
+
this.fire();
|
|
41091
|
+
this.render();
|
|
41092
|
+
this.out.write("\n");
|
|
41093
|
+
this.close();
|
|
41094
|
+
}
|
|
41095
|
+
}
|
|
40862
41096
|
abort() {
|
|
40863
41097
|
this.done = this.aborted = true;
|
|
41098
|
+
this.exited = false;
|
|
40864
41099
|
this.fire();
|
|
40865
41100
|
this.render();
|
|
40866
41101
|
this.out.write("\n");
|
|
@@ -40868,7 +41103,7 @@ var require_autocomplete2 = __commonJS({
|
|
|
40868
41103
|
}
|
|
40869
41104
|
submit() {
|
|
40870
41105
|
this.done = true;
|
|
40871
|
-
this.aborted = false;
|
|
41106
|
+
this.aborted = this.exited = false;
|
|
40872
41107
|
this.fire();
|
|
40873
41108
|
this.render();
|
|
40874
41109
|
this.out.write("\n");
|
|
@@ -40910,15 +41145,19 @@ var require_autocomplete2 = __commonJS({
|
|
|
40910
41145
|
this.render();
|
|
40911
41146
|
}
|
|
40912
41147
|
up() {
|
|
40913
|
-
if (this.select
|
|
40914
|
-
|
|
40915
|
-
|
|
41148
|
+
if (this.select === 0) {
|
|
41149
|
+
this.moveSelect(this.suggestions.length - 1);
|
|
41150
|
+
} else {
|
|
41151
|
+
this.moveSelect(this.select - 1);
|
|
41152
|
+
}
|
|
40916
41153
|
this.render();
|
|
40917
41154
|
}
|
|
40918
41155
|
down() {
|
|
40919
|
-
if (this.select
|
|
40920
|
-
|
|
40921
|
-
|
|
41156
|
+
if (this.select === this.suggestions.length - 1) {
|
|
41157
|
+
this.moveSelect(0);
|
|
41158
|
+
} else {
|
|
41159
|
+
this.moveSelect(this.select + 1);
|
|
41160
|
+
}
|
|
40922
41161
|
this.render();
|
|
40923
41162
|
}
|
|
40924
41163
|
next() {
|
|
@@ -40967,11 +41206,11 @@ var require_autocomplete2 = __commonJS({
|
|
|
40967
41206
|
if (this.firstRender)
|
|
40968
41207
|
this.out.write(cursor.hide);
|
|
40969
41208
|
else
|
|
40970
|
-
this.out.write(clear(this.outputText));
|
|
41209
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
40971
41210
|
super.render();
|
|
40972
41211
|
let { startIndex, endIndex } = entriesToDisplay(this.select, this.choices.length, this.limit);
|
|
40973
41212
|
this.outputText = [
|
|
40974
|
-
|
|
41213
|
+
style.symbol(this.done, this.aborted, this.exited),
|
|
40975
41214
|
color.bold(this.msg),
|
|
40976
41215
|
style.delimiter(this.completing),
|
|
40977
41216
|
this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input)
|
|
@@ -40988,9 +41227,9 @@ var require_autocomplete2 = __commonJS({
|
|
|
40988
41227
|
}
|
|
40989
41228
|
});
|
|
40990
41229
|
|
|
40991
|
-
// node_modules/prompts/lib/elements/autocompleteMultiselect.js
|
|
41230
|
+
// ../../node_modules/prompts/lib/elements/autocompleteMultiselect.js
|
|
40992
41231
|
var require_autocompleteMultiselect2 = __commonJS({
|
|
40993
|
-
"node_modules/prompts/lib/elements/autocompleteMultiselect.js"(exports2, module2) {
|
|
41232
|
+
"../../node_modules/prompts/lib/elements/autocompleteMultiselect.js"(exports2, module2) {
|
|
40994
41233
|
"use strict";
|
|
40995
41234
|
var color = require_kleur();
|
|
40996
41235
|
var { cursor } = require_src6();
|
|
@@ -41001,7 +41240,7 @@ var require_autocompleteMultiselect2 = __commonJS({
|
|
|
41001
41240
|
opts.overrideRender = true;
|
|
41002
41241
|
super(opts);
|
|
41003
41242
|
this.inputValue = "";
|
|
41004
|
-
this.clear = clear("");
|
|
41243
|
+
this.clear = clear("", this.out.columns);
|
|
41005
41244
|
this.filteredOptions = this.value;
|
|
41006
41245
|
this.render();
|
|
41007
41246
|
}
|
|
@@ -41146,16 +41385,16 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
|
|
|
41146
41385
|
}
|
|
41147
41386
|
prompt += this.renderOptions(this.filteredOptions);
|
|
41148
41387
|
this.out.write(this.clear + prompt);
|
|
41149
|
-
this.clear = clear(prompt);
|
|
41388
|
+
this.clear = clear(prompt, this.out.columns);
|
|
41150
41389
|
}
|
|
41151
41390
|
};
|
|
41152
41391
|
module2.exports = AutocompleteMultiselectPrompt;
|
|
41153
41392
|
}
|
|
41154
41393
|
});
|
|
41155
41394
|
|
|
41156
|
-
// node_modules/prompts/lib/elements/confirm.js
|
|
41395
|
+
// ../../node_modules/prompts/lib/elements/confirm.js
|
|
41157
41396
|
var require_confirm2 = __commonJS({
|
|
41158
|
-
"node_modules/prompts/lib/elements/confirm.js"(exports2, module2) {
|
|
41397
|
+
"../../node_modules/prompts/lib/elements/confirm.js"(exports2, module2) {
|
|
41159
41398
|
var color = require_kleur();
|
|
41160
41399
|
var Prompt = require_prompt2();
|
|
41161
41400
|
var { style, clear } = require_util5();
|
|
@@ -41177,6 +41416,9 @@ var require_confirm2 = __commonJS({
|
|
|
41177
41416
|
this.fire();
|
|
41178
41417
|
this.render();
|
|
41179
41418
|
}
|
|
41419
|
+
exit() {
|
|
41420
|
+
this.abort();
|
|
41421
|
+
}
|
|
41180
41422
|
abort() {
|
|
41181
41423
|
this.done = this.aborted = true;
|
|
41182
41424
|
this.fire();
|
|
@@ -41210,7 +41452,7 @@ var require_confirm2 = __commonJS({
|
|
|
41210
41452
|
if (this.firstRender)
|
|
41211
41453
|
this.out.write(cursor.hide);
|
|
41212
41454
|
else
|
|
41213
|
-
this.out.write(clear(this.outputText));
|
|
41455
|
+
this.out.write(clear(this.outputText, this.out.columns));
|
|
41214
41456
|
super.render();
|
|
41215
41457
|
this.outputText = [
|
|
41216
41458
|
style.symbol(this.done, this.aborted),
|
|
@@ -41225,9 +41467,9 @@ var require_confirm2 = __commonJS({
|
|
|
41225
41467
|
}
|
|
41226
41468
|
});
|
|
41227
41469
|
|
|
41228
|
-
// node_modules/prompts/lib/elements/index.js
|
|
41470
|
+
// ../../node_modules/prompts/lib/elements/index.js
|
|
41229
41471
|
var require_elements2 = __commonJS({
|
|
41230
|
-
"node_modules/prompts/lib/elements/index.js"(exports2, module2) {
|
|
41472
|
+
"../../node_modules/prompts/lib/elements/index.js"(exports2, module2) {
|
|
41231
41473
|
"use strict";
|
|
41232
41474
|
module2.exports = {
|
|
41233
41475
|
TextPrompt: require_text2(),
|
|
@@ -41243,9 +41485,9 @@ var require_elements2 = __commonJS({
|
|
|
41243
41485
|
}
|
|
41244
41486
|
});
|
|
41245
41487
|
|
|
41246
|
-
// node_modules/prompts/lib/prompts.js
|
|
41488
|
+
// ../../node_modules/prompts/lib/prompts.js
|
|
41247
41489
|
var require_prompts2 = __commonJS({
|
|
41248
|
-
"node_modules/prompts/lib/prompts.js"(exports2) {
|
|
41490
|
+
"../../node_modules/prompts/lib/prompts.js"(exports2) {
|
|
41249
41491
|
"use strict";
|
|
41250
41492
|
var $ = exports2;
|
|
41251
41493
|
var el = require_elements2();
|
|
@@ -41255,8 +41497,10 @@ var require_prompts2 = __commonJS({
|
|
|
41255
41497
|
const p = new el[type](args);
|
|
41256
41498
|
const onAbort = opts.onAbort || noop3;
|
|
41257
41499
|
const onSubmit = opts.onSubmit || noop3;
|
|
41500
|
+
const onExit = opts.onExit || noop3;
|
|
41258
41501
|
p.on("state", args.onState || noop3);
|
|
41259
41502
|
p.on("submit", (x) => res(onSubmit(x)));
|
|
41503
|
+
p.on("exit", (x) => res(onExit(x)));
|
|
41260
41504
|
p.on("abort", (x) => rej(onAbort(x)));
|
|
41261
41505
|
});
|
|
41262
41506
|
}
|
|
@@ -41305,9 +41549,9 @@ var require_prompts2 = __commonJS({
|
|
|
41305
41549
|
}
|
|
41306
41550
|
});
|
|
41307
41551
|
|
|
41308
|
-
// node_modules/prompts/lib/index.js
|
|
41552
|
+
// ../../node_modules/prompts/lib/index.js
|
|
41309
41553
|
var require_lib3 = __commonJS({
|
|
41310
|
-
"node_modules/prompts/lib/index.js"(exports2, module2) {
|
|
41554
|
+
"../../node_modules/prompts/lib/index.js"(exports2, module2) {
|
|
41311
41555
|
"use strict";
|
|
41312
41556
|
var prompts3 = require_prompts2();
|
|
41313
41557
|
var passOn = ["suggest", "format", "onState", "validate", "onRender", "type"];
|
|
@@ -41354,7 +41598,7 @@ var require_lib3 = __commonJS({
|
|
|
41354
41598
|
}
|
|
41355
41599
|
}
|
|
41356
41600
|
try {
|
|
41357
|
-
answer = prompt._injected ? getInjectedAnswer(prompt._injected) : await prompts3[type](question);
|
|
41601
|
+
answer = prompt._injected ? getInjectedAnswer(prompt._injected, question.initial) : await prompts3[type](question);
|
|
41358
41602
|
answers[name] = answer = await getFormattedAnswer(question, answer, true);
|
|
41359
41603
|
quit = await onSubmit(question, answer, answers);
|
|
41360
41604
|
} catch (err) {
|
|
@@ -41365,12 +41609,12 @@ var require_lib3 = __commonJS({
|
|
|
41365
41609
|
}
|
|
41366
41610
|
return answers;
|
|
41367
41611
|
}
|
|
41368
|
-
function getInjectedAnswer(injected) {
|
|
41612
|
+
function getInjectedAnswer(injected, deafultValue) {
|
|
41369
41613
|
const answer = injected.shift();
|
|
41370
41614
|
if (answer instanceof Error) {
|
|
41371
41615
|
throw answer;
|
|
41372
41616
|
}
|
|
41373
|
-
return answer;
|
|
41617
|
+
return answer === void 0 ? deafultValue : answer;
|
|
41374
41618
|
}
|
|
41375
41619
|
function inject(answers) {
|
|
41376
41620
|
prompt._injected = (prompt._injected || []).concat(answers);
|
|
@@ -41382,9 +41626,9 @@ var require_lib3 = __commonJS({
|
|
|
41382
41626
|
}
|
|
41383
41627
|
});
|
|
41384
41628
|
|
|
41385
|
-
// node_modules/prompts/index.js
|
|
41629
|
+
// ../../node_modules/prompts/index.js
|
|
41386
41630
|
var require_prompts3 = __commonJS({
|
|
41387
|
-
"node_modules/prompts/index.js"(exports2, module2) {
|
|
41631
|
+
"../../node_modules/prompts/index.js"(exports2, module2) {
|
|
41388
41632
|
function isNodeLT(tar) {
|
|
41389
41633
|
tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
|
|
41390
41634
|
let i = 0, src = process.versions.node.split(".").map(Number);
|
|
@@ -61100,7 +61344,7 @@ var require_package5 = __commonJS({
|
|
|
61100
61344
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
61101
61345
|
module2.exports = {
|
|
61102
61346
|
name: "@sap/ux-telemetry",
|
|
61103
|
-
version: "1.6.
|
|
61347
|
+
version: "1.6.7",
|
|
61104
61348
|
description: "SAP Fiori tools telemetry library",
|
|
61105
61349
|
main: "dist/src/index.js",
|
|
61106
61350
|
author: "SAP SE",
|
|
@@ -61124,11 +61368,11 @@ var require_package5 = __commonJS({
|
|
|
61124
61368
|
madge: "madge --warning --circular --extensions ts ./"
|
|
61125
61369
|
},
|
|
61126
61370
|
dependencies: {
|
|
61127
|
-
"@sap-ux/store": "0.
|
|
61128
|
-
"@sap/ux-cds": "1.6.
|
|
61129
|
-
"@sap/ux-common-utils": "1.6.
|
|
61130
|
-
"@sap/ux-feature-toggle": "1.6.
|
|
61131
|
-
"@sap/ux-project-access": "1.6.
|
|
61371
|
+
"@sap-ux/store": "0.3.0",
|
|
61372
|
+
"@sap/ux-cds": "1.6.7",
|
|
61373
|
+
"@sap/ux-common-utils": "1.6.7",
|
|
61374
|
+
"@sap/ux-feature-toggle": "1.6.7",
|
|
61375
|
+
"@sap/ux-project-access": "1.6.7",
|
|
61132
61376
|
applicationinsights: "1.4.1",
|
|
61133
61377
|
"performance-now": "2.1.0",
|
|
61134
61378
|
yaml: "2.0.0-10"
|
|
@@ -61754,9 +61998,9 @@ var require_p_try = __commonJS({
|
|
|
61754
61998
|
}
|
|
61755
61999
|
});
|
|
61756
62000
|
|
|
61757
|
-
// ../../node_modules/p-
|
|
62001
|
+
// ../../node_modules/p-limit/index.js
|
|
61758
62002
|
var require_p_limit = __commonJS({
|
|
61759
|
-
"../../node_modules/p-
|
|
62003
|
+
"../../node_modules/p-limit/index.js"(exports2, module2) {
|
|
61760
62004
|
"use strict";
|
|
61761
62005
|
var pTry = require_p_try();
|
|
61762
62006
|
var pLimit = (concurrency) => {
|
|
@@ -68623,9 +68867,9 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
68623
68867
|
}
|
|
68624
68868
|
});
|
|
68625
68869
|
|
|
68626
|
-
// ../../node_modules/@sap-ux/store/dist/
|
|
68627
|
-
var
|
|
68628
|
-
"../../node_modules/@sap-ux/store/dist/
|
|
68870
|
+
// ../../node_modules/@sap-ux/store/dist/constants.js
|
|
68871
|
+
var require_constants5 = __commonJS({
|
|
68872
|
+
"../../node_modules/@sap-ux/store/dist/constants.js"(exports2) {
|
|
68629
68873
|
"use strict";
|
|
68630
68874
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
68631
68875
|
exports2.Entity = void 0;
|
|
@@ -70942,13 +71186,12 @@ var require_utils10 = __commonJS({
|
|
|
70942
71186
|
exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.errorString = exports2.errorInstance = exports2.pick = void 0;
|
|
70943
71187
|
var os_1 = require("os");
|
|
70944
71188
|
var path_1 = __importDefault(require("path"));
|
|
70945
|
-
|
|
71189
|
+
exports2.pick = (target, ...props) => {
|
|
70946
71190
|
return target && (props === null || props === void 0 ? void 0 : props.length) > 0 && props.reduce((o, k) => {
|
|
70947
71191
|
o[k] = target[k];
|
|
70948
71192
|
return o;
|
|
70949
71193
|
}, {}) || void 0;
|
|
70950
71194
|
};
|
|
70951
|
-
exports2.pick = pick;
|
|
70952
71195
|
function errorInstance(e) {
|
|
70953
71196
|
if (e instanceof Error) {
|
|
70954
71197
|
return e;
|
|
@@ -70965,10 +71208,9 @@ var require_utils10 = __commonJS({
|
|
|
70965
71208
|
(function(FioriToolsSettings2) {
|
|
70966
71209
|
FioriToolsSettings2["dir"] = ".fioritools";
|
|
70967
71210
|
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
70968
|
-
|
|
70969
|
-
return path_1.default.join(
|
|
71211
|
+
exports2.getFioriToolsDirectory = () => {
|
|
71212
|
+
return path_1.default.join(os_1.homedir(), FioriToolsSettings.dir);
|
|
70970
71213
|
};
|
|
70971
|
-
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
70972
71214
|
__exportStar(require_app_studio(), exports2);
|
|
70973
71215
|
}
|
|
70974
71216
|
});
|
|
@@ -71036,26 +71278,25 @@ var require_filesystem2 = __commonJS({
|
|
|
71036
71278
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
71037
71279
|
};
|
|
71038
71280
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
71039
|
-
exports2.
|
|
71281
|
+
exports2.getFilesystemStore = exports2.getFilesystemWatcherFor = exports2.basedir = void 0;
|
|
71040
71282
|
var path_1 = __importDefault(require("path"));
|
|
71041
71283
|
var fs_1 = __importStar(require("fs"));
|
|
71042
71284
|
var pluralize_1 = require_pluralize();
|
|
71043
71285
|
var utils_1 = require_utils10();
|
|
71044
71286
|
var os_1 = __importDefault(require("os"));
|
|
71045
|
-
|
|
71287
|
+
exports2.basedir = ({ baseDirectory } = {}) => {
|
|
71046
71288
|
if (!baseDirectory) {
|
|
71047
|
-
return
|
|
71289
|
+
return utils_1.getFioriToolsDirectory();
|
|
71048
71290
|
} else if (path_1.default.isAbsolute(baseDirectory)) {
|
|
71049
71291
|
return baseDirectory;
|
|
71050
71292
|
} else {
|
|
71051
71293
|
return path_1.default.join(os_1.default.homedir(), baseDirectory);
|
|
71052
71294
|
}
|
|
71053
71295
|
};
|
|
71054
|
-
exports2.basedir = basedir;
|
|
71055
71296
|
var FilesystemStore = class {
|
|
71056
71297
|
constructor(logger, options2 = {}) {
|
|
71057
71298
|
this.logger = logger;
|
|
71058
|
-
this.storeDirectory =
|
|
71299
|
+
this.storeDirectory = exports2.basedir(options2);
|
|
71059
71300
|
}
|
|
71060
71301
|
read({ entityName, id }) {
|
|
71061
71302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -71165,12 +71406,17 @@ var require_filesystem2 = __commonJS({
|
|
|
71165
71406
|
});
|
|
71166
71407
|
}
|
|
71167
71408
|
_readAll(entityName) {
|
|
71168
|
-
var _a2
|
|
71409
|
+
var _a2;
|
|
71169
71410
|
let rawContents;
|
|
71170
71411
|
try {
|
|
71171
|
-
|
|
71412
|
+
const configPath = path_1.default.join(this.storeDirectory, `${entityName}.json`);
|
|
71413
|
+
if (fs_1.existsSync(configPath)) {
|
|
71414
|
+
rawContents = fs_1.readFileSync(configPath).toString().trim();
|
|
71415
|
+
} else {
|
|
71416
|
+
rawContents = "";
|
|
71417
|
+
}
|
|
71172
71418
|
} catch (e) {
|
|
71173
|
-
const err =
|
|
71419
|
+
const err = utils_1.errorInstance(e);
|
|
71174
71420
|
this.logger.debug(err.message);
|
|
71175
71421
|
return { error: err };
|
|
71176
71422
|
}
|
|
@@ -71179,9 +71425,9 @@ var require_filesystem2 = __commonJS({
|
|
|
71179
71425
|
}
|
|
71180
71426
|
let entities;
|
|
71181
71427
|
try {
|
|
71182
|
-
entities = (
|
|
71428
|
+
entities = (_a2 = JSON.parse(rawContents)) === null || _a2 === void 0 ? void 0 : _a2[entityName];
|
|
71183
71429
|
} catch (e) {
|
|
71184
|
-
return { error:
|
|
71430
|
+
return { error: utils_1.errorInstance(e) };
|
|
71185
71431
|
}
|
|
71186
71432
|
return { entities };
|
|
71187
71433
|
}
|
|
@@ -71189,30 +71435,29 @@ var require_filesystem2 = __commonJS({
|
|
|
71189
71435
|
const data2 = JSON.stringify({ [entityName]: entities }, null, 2);
|
|
71190
71436
|
const filename = getEntityFileName(entityName);
|
|
71191
71437
|
try {
|
|
71192
|
-
|
|
71438
|
+
fs_1.writeFileSync(path_1.default.join(this.storeDirectory, filename), data2);
|
|
71193
71439
|
} catch (e) {
|
|
71194
|
-
const err =
|
|
71440
|
+
const err = utils_1.errorInstance(e);
|
|
71195
71441
|
if ((err === null || err === void 0 ? void 0 : err.code) === "ENOENT") {
|
|
71196
71442
|
this.logger.debug(`Base directory [${this.storeDirectory}] does not exist, trying to create it`);
|
|
71197
|
-
|
|
71198
|
-
|
|
71443
|
+
fs_1.mkdirSync(this.storeDirectory, { recursive: true });
|
|
71444
|
+
fs_1.writeFileSync(path_1.default.join(this.storeDirectory, filename), data2);
|
|
71199
71445
|
} else {
|
|
71200
71446
|
throw e;
|
|
71201
71447
|
}
|
|
71202
71448
|
}
|
|
71203
71449
|
}
|
|
71204
71450
|
};
|
|
71205
|
-
exports2.FilesystemStore = FilesystemStore;
|
|
71206
71451
|
function toPersistenceName(s) {
|
|
71207
71452
|
const t = s === null || s === void 0 ? void 0 : s.trim().toLowerCase();
|
|
71208
|
-
return t &&
|
|
71453
|
+
return t && pluralize_1.plural(t);
|
|
71209
71454
|
}
|
|
71210
71455
|
function getEntityFileName(entityName) {
|
|
71211
71456
|
return toPersistenceName(entityName) + ".json";
|
|
71212
71457
|
}
|
|
71213
71458
|
function getFilesystemWatcherFor(entityName, callback, options2 = {}) {
|
|
71214
|
-
const watchPath = path_1.default.join(
|
|
71215
|
-
if (
|
|
71459
|
+
const watchPath = path_1.default.join(exports2.basedir(options2), getEntityFileName(entityName));
|
|
71460
|
+
if (fs_1.existsSync(watchPath)) {
|
|
71216
71461
|
return fs_1.default.watch(watchPath, void 0, () => {
|
|
71217
71462
|
callback(entityName);
|
|
71218
71463
|
});
|
|
@@ -71222,6 +71467,10 @@ var require_filesystem2 = __commonJS({
|
|
|
71222
71467
|
}
|
|
71223
71468
|
}
|
|
71224
71469
|
exports2.getFilesystemWatcherFor = getFilesystemWatcherFor;
|
|
71470
|
+
function getFilesystemStore(logger, options2) {
|
|
71471
|
+
return new FilesystemStore(logger, options2);
|
|
71472
|
+
}
|
|
71473
|
+
exports2.getFilesystemStore = getFilesystemStore;
|
|
71225
71474
|
}
|
|
71226
71475
|
});
|
|
71227
71476
|
|
|
@@ -71338,7 +71587,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
71338
71587
|
return true;
|
|
71339
71588
|
} catch (e) {
|
|
71340
71589
|
this.log.error(`Error saving to secure store. Service: [${service}], key: [${key}]`);
|
|
71341
|
-
this.log.error(
|
|
71590
|
+
this.log.error(utils_1.errorString(e));
|
|
71342
71591
|
return false;
|
|
71343
71592
|
}
|
|
71344
71593
|
});
|
|
@@ -71350,7 +71599,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
71350
71599
|
return serializedValue && JSON.parse(serializedValue);
|
|
71351
71600
|
} catch (e) {
|
|
71352
71601
|
this.log.error(`Error retrieving from secure store. Service: [${service}], key: [${key}]`);
|
|
71353
|
-
this.log.error(
|
|
71602
|
+
this.log.error(utils_1.errorString(e));
|
|
71354
71603
|
return void 0;
|
|
71355
71604
|
}
|
|
71356
71605
|
});
|
|
@@ -71361,7 +71610,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
71361
71610
|
return yield this.keytar.deletePassword(service, key);
|
|
71362
71611
|
} catch (e) {
|
|
71363
71612
|
this.log.error(`Error deleting from secure store. Service: [${service}], key: [${key}]`);
|
|
71364
|
-
this.log.error(
|
|
71613
|
+
this.log.error(utils_1.errorString(e));
|
|
71365
71614
|
return false;
|
|
71366
71615
|
}
|
|
71367
71616
|
});
|
|
@@ -71379,7 +71628,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
71379
71628
|
}, {});
|
|
71380
71629
|
} catch (e) {
|
|
71381
71630
|
this.log.error(`Error getting values for service: [${service}]`);
|
|
71382
|
-
this.log.error(
|
|
71631
|
+
this.log.error(utils_1.errorString(e));
|
|
71383
71632
|
return {};
|
|
71384
71633
|
}
|
|
71385
71634
|
});
|
|
@@ -71427,40 +71676,39 @@ var require_secure_store2 = __commonJS({
|
|
|
71427
71676
|
try {
|
|
71428
71677
|
return require("keytar");
|
|
71429
71678
|
} catch (err) {
|
|
71430
|
-
log3.warn(
|
|
71679
|
+
log3.warn(utils_1.errorString(err));
|
|
71431
71680
|
log3.warn(`Could not "require('keytar')". Trying VSCode's copy`);
|
|
71432
71681
|
let vscode;
|
|
71433
71682
|
try {
|
|
71434
71683
|
vscode = require("vscode");
|
|
71435
71684
|
} catch (e) {
|
|
71436
|
-
log3.warn(
|
|
71685
|
+
log3.warn(utils_1.errorString(e));
|
|
71437
71686
|
log3.warn("Could not get hold of vscode");
|
|
71438
71687
|
return void 0;
|
|
71439
71688
|
}
|
|
71440
71689
|
try {
|
|
71441
71690
|
return require(`${(_a2 = vscode === null || vscode === void 0 ? void 0 : vscode.env) === null || _a2 === void 0 ? void 0 : _a2.appRoot}/node_modules.asar/keytar`);
|
|
71442
71691
|
} catch (e) {
|
|
71443
|
-
log3.warn(
|
|
71692
|
+
log3.warn(utils_1.errorString(e));
|
|
71444
71693
|
log3.warn("Could not get keytar from vscode node_modules.asar");
|
|
71445
71694
|
}
|
|
71446
71695
|
try {
|
|
71447
71696
|
return require(`${(_b = vscode === null || vscode === void 0 ? void 0 : vscode.env) === null || _b === void 0 ? void 0 : _b.appRoot}/node_modules/keytar`);
|
|
71448
71697
|
} catch (e) {
|
|
71449
|
-
log3.warn(
|
|
71698
|
+
log3.warn(utils_1.errorString(e));
|
|
71450
71699
|
log3.warn("Could not get keytar from vscode node_modules");
|
|
71451
71700
|
}
|
|
71452
71701
|
return void 0;
|
|
71453
71702
|
}
|
|
71454
71703
|
}
|
|
71455
|
-
|
|
71456
|
-
if (
|
|
71704
|
+
exports2.getSecureStore = (log3) => {
|
|
71705
|
+
if (utils_1.isAppStudio()) {
|
|
71457
71706
|
return new dummy_store_1.DummyStore(log3);
|
|
71458
71707
|
} else {
|
|
71459
71708
|
const keytar = getKeytar(log3);
|
|
71460
71709
|
return keytar ? new keytar_store_1.KeytarStore(log3, keytar) : new dummy_store_1.DummyStore(log3);
|
|
71461
71710
|
}
|
|
71462
71711
|
};
|
|
71463
|
-
exports2.getSecureStore = getSecureStore;
|
|
71464
71712
|
__exportStar(require_types5(), exports2);
|
|
71465
71713
|
}
|
|
71466
71714
|
});
|
|
@@ -71529,7 +71777,7 @@ var require_hybrid2 = __commonJS({
|
|
|
71529
71777
|
});
|
|
71530
71778
|
};
|
|
71531
71779
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
71532
|
-
exports2.
|
|
71780
|
+
exports2.getHybridStore = void 0;
|
|
71533
71781
|
var filesystem_1 = require_filesystem2();
|
|
71534
71782
|
var utils_1 = require_utils10();
|
|
71535
71783
|
var secure_store_1 = require_secure_store2();
|
|
@@ -71541,8 +71789,8 @@ var require_hybrid2 = __commonJS({
|
|
|
71541
71789
|
var HybridStore = class {
|
|
71542
71790
|
constructor(logger, options2 = {}) {
|
|
71543
71791
|
this.logger = logger;
|
|
71544
|
-
this.filesystem =
|
|
71545
|
-
this.secureStore =
|
|
71792
|
+
this.filesystem = filesystem_1.getFilesystemStore(this.logger, options2);
|
|
71793
|
+
this.secureStore = secure_store_1.getSecureStore(this.logger);
|
|
71546
71794
|
}
|
|
71547
71795
|
read({ entityName, id }) {
|
|
71548
71796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -71550,7 +71798,7 @@ var require_hybrid2 = __commonJS({
|
|
|
71550
71798
|
if (!serialized) {
|
|
71551
71799
|
this.logger.debug(`hybrid/read - id: [${id}], nothing on the filesystem`);
|
|
71552
71800
|
} else {
|
|
71553
|
-
this.logger.debug(`hybrid/read - id: [${id}], filesystem: ${
|
|
71801
|
+
this.logger.debug(`hybrid/read - id: [${id}], filesystem: ${util_1.inspect(serialized)}`);
|
|
71554
71802
|
}
|
|
71555
71803
|
const sensitiveData = yield this.secureStore.retrieve(getFullyQualifiedServiceName(entityName), id);
|
|
71556
71804
|
if (!sensitiveData) {
|
|
@@ -71584,8 +71832,8 @@ var require_hybrid2 = __commonJS({
|
|
|
71584
71832
|
}
|
|
71585
71833
|
write({ entityName, id, entity }) {
|
|
71586
71834
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71587
|
-
const serializableProps =
|
|
71588
|
-
const sensitiveProps =
|
|
71835
|
+
const serializableProps = decorators_1.getSerializableProperties(entity);
|
|
71836
|
+
const sensitiveProps = decorators_1.getSensitiveDataProperties(entity);
|
|
71589
71837
|
if (serializableProps.length > 0 && sensitiveProps.length > 0) {
|
|
71590
71838
|
for (let i = 0; i < serializableProps.length; i = i + 1) {
|
|
71591
71839
|
if (sensitiveProps.indexOf(serializableProps[i]) !== -1) {
|
|
@@ -71594,19 +71842,19 @@ var require_hybrid2 = __commonJS({
|
|
|
71594
71842
|
}
|
|
71595
71843
|
}
|
|
71596
71844
|
}
|
|
71597
|
-
const serializable =
|
|
71845
|
+
const serializable = utils_1.pick(entity, ...serializableProps);
|
|
71598
71846
|
if (serializable) {
|
|
71599
|
-
this.logger.debug(`hybrid/write - writing serializable properties: ${
|
|
71847
|
+
this.logger.debug(`hybrid/write - writing serializable properties: ${util_1.inspect(serializable)}`);
|
|
71600
71848
|
yield this.filesystem.write({ entityName, id, entity: serializable });
|
|
71601
71849
|
} else {
|
|
71602
|
-
this.logger.debug(`hybrid/write - no serializable properties found in ${
|
|
71850
|
+
this.logger.debug(`hybrid/write - no serializable properties found in ${util_1.inspect(serializable)}`);
|
|
71603
71851
|
}
|
|
71604
|
-
const sensitiveData =
|
|
71852
|
+
const sensitiveData = utils_1.pick(entity, ...sensitiveProps);
|
|
71605
71853
|
if (sensitiveData) {
|
|
71606
71854
|
this.logger.debug(`hybrid/write - writing sensitive properties to secure store. ID: [${id}]`);
|
|
71607
71855
|
yield this.secureStore.save(getFullyQualifiedServiceName(entityName), id, sensitiveData);
|
|
71608
71856
|
} else {
|
|
71609
|
-
this.logger.debug(`hybrid/write - no sensitive properties found in ${
|
|
71857
|
+
this.logger.debug(`hybrid/write - no sensitive properties found in ${util_1.inspect(entity)}`);
|
|
71610
71858
|
}
|
|
71611
71859
|
return entity;
|
|
71612
71860
|
});
|
|
@@ -71621,7 +71869,10 @@ var require_hybrid2 = __commonJS({
|
|
|
71621
71869
|
});
|
|
71622
71870
|
}
|
|
71623
71871
|
};
|
|
71624
|
-
|
|
71872
|
+
function getHybridStore(logger, options2) {
|
|
71873
|
+
return new HybridStore(logger, options2);
|
|
71874
|
+
}
|
|
71875
|
+
exports2.getHybridStore = getHybridStore;
|
|
71625
71876
|
}
|
|
71626
71877
|
});
|
|
71627
71878
|
|
|
@@ -71720,7 +71971,7 @@ var require_backend_system4 = __commonJS({
|
|
|
71720
71971
|
});
|
|
71721
71972
|
|
|
71722
71973
|
// ../../node_modules/@sap-ux/store/dist/data-provider/constants.js
|
|
71723
|
-
var
|
|
71974
|
+
var require_constants6 = __commonJS({
|
|
71724
71975
|
"../../node_modules/@sap-ux/store/dist/data-provider/constants.js"(exports2) {
|
|
71725
71976
|
"use strict";
|
|
71726
71977
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -71730,6 +71981,7 @@ var require_constants5 = __commonJS({
|
|
|
71730
71981
|
Entities2["BackendSystem"] = "system";
|
|
71731
71982
|
Entities2["SystemMigrationStatus"] = "systemMigrationStatus";
|
|
71732
71983
|
Entities2["TelemetrySetting"] = "telemetrySetting";
|
|
71984
|
+
Entities2["ApiHub"] = "apiHub";
|
|
71733
71985
|
})(Entities = exports2.Entities || (exports2.Entities = {}));
|
|
71734
71986
|
}
|
|
71735
71987
|
});
|
|
@@ -71769,12 +72021,12 @@ var require_backend_system5 = __commonJS({
|
|
|
71769
72021
|
exports2.SystemDataProvider = void 0;
|
|
71770
72022
|
var hybrid_1 = require_hybrid2();
|
|
71771
72023
|
var backend_system_1 = require_backend_system4();
|
|
71772
|
-
var constants_1 =
|
|
71773
|
-
|
|
72024
|
+
var constants_1 = require_constants6();
|
|
72025
|
+
exports2.SystemDataProvider = class {
|
|
71774
72026
|
constructor(logger, options2 = {}) {
|
|
71775
72027
|
this.entityName = constants_1.Entities.BackendSystem;
|
|
71776
72028
|
this.logger = logger;
|
|
71777
|
-
this.dataAccessor =
|
|
72029
|
+
this.dataAccessor = hybrid_1.getHybridStore(this.logger, options2);
|
|
71778
72030
|
}
|
|
71779
72031
|
read(key) {
|
|
71780
72032
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -71819,7 +72071,6 @@ var require_backend_system5 = __commonJS({
|
|
|
71819
72071
|
});
|
|
71820
72072
|
}
|
|
71821
72073
|
};
|
|
71822
|
-
exports2.SystemDataProvider = SystemDataProvider;
|
|
71823
72074
|
}
|
|
71824
72075
|
});
|
|
71825
72076
|
|
|
@@ -71883,14 +72134,14 @@ var require_backend_system6 = __commonJS({
|
|
|
71883
72134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71884
72135
|
const existingSystem = yield this.read(key);
|
|
71885
72136
|
if (!existingSystem) {
|
|
71886
|
-
throw new Error(
|
|
72137
|
+
throw new Error(i18n_1.text("error.systemDoesNotExist", { system: key }));
|
|
71887
72138
|
}
|
|
71888
72139
|
return existingSystem;
|
|
71889
72140
|
});
|
|
71890
72141
|
}
|
|
71891
72142
|
validatePartialUpdateInput(entity) {
|
|
71892
72143
|
if (!entity || !Object.keys(entity).length) {
|
|
71893
|
-
throw new Error(
|
|
72144
|
+
throw new Error(i18n_1.text("error.noPropertiesSpecified"));
|
|
71894
72145
|
}
|
|
71895
72146
|
}
|
|
71896
72147
|
read(key) {
|
|
@@ -71970,12 +72221,12 @@ var require_telemetry_setting2 = __commonJS({
|
|
|
71970
72221
|
exports2.TelemetryDataProvider = void 0;
|
|
71971
72222
|
var filesystem_1 = require_filesystem2();
|
|
71972
72223
|
var telemetry_setting_1 = require_telemetry_setting();
|
|
71973
|
-
var constants_1 =
|
|
71974
|
-
|
|
72224
|
+
var constants_1 = require_constants6();
|
|
72225
|
+
exports2.TelemetryDataProvider = class {
|
|
71975
72226
|
constructor(logger) {
|
|
71976
72227
|
this.entityName = constants_1.Entities.TelemetrySetting;
|
|
71977
72228
|
this.logger = logger;
|
|
71978
|
-
this.dataAccessor =
|
|
72229
|
+
this.dataAccessor = filesystem_1.getFilesystemStore(this.logger);
|
|
71979
72230
|
}
|
|
71980
72231
|
read(key) {
|
|
71981
72232
|
return this.dataAccessor.read({ entityName: this.entityName, id: key.getId() });
|
|
@@ -71997,7 +72248,6 @@ var require_telemetry_setting2 = __commonJS({
|
|
|
71997
72248
|
return this.dataAccessor.getAll({ entityName: this.entityName });
|
|
71998
72249
|
}
|
|
71999
72250
|
};
|
|
72000
|
-
exports2.TelemetryDataProvider = TelemetryDataProvider;
|
|
72001
72251
|
}
|
|
72002
72252
|
});
|
|
72003
72253
|
|
|
@@ -72074,6 +72324,270 @@ var require_telemetry_setting3 = __commonJS({
|
|
|
72074
72324
|
}
|
|
72075
72325
|
});
|
|
72076
72326
|
|
|
72327
|
+
// ../../node_modules/@sap-ux/store/dist/entities/api-hub.js
|
|
72328
|
+
var require_api_hub2 = __commonJS({
|
|
72329
|
+
"../../node_modules/@sap-ux/store/dist/entities/api-hub.js"(exports2) {
|
|
72330
|
+
"use strict";
|
|
72331
|
+
var __decorate = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
72332
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
72333
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
72334
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
72335
|
+
else
|
|
72336
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
72337
|
+
if (d = decorators[i])
|
|
72338
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
72339
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
72340
|
+
};
|
|
72341
|
+
var __metadata = exports2 && exports2.__metadata || function(k, v) {
|
|
72342
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
72343
|
+
return Reflect.metadata(k, v);
|
|
72344
|
+
};
|
|
72345
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72346
|
+
exports2.ApiHubSettingsKey = exports2.ApiHubSettings = void 0;
|
|
72347
|
+
var decorators_1 = require_decorators2();
|
|
72348
|
+
var ApiHubSettings = class {
|
|
72349
|
+
constructor({ apiKey }) {
|
|
72350
|
+
this.apiKey = apiKey;
|
|
72351
|
+
}
|
|
72352
|
+
};
|
|
72353
|
+
__decorate([
|
|
72354
|
+
decorators_1.sensitiveData,
|
|
72355
|
+
__metadata("design:type", String)
|
|
72356
|
+
], ApiHubSettings.prototype, "apiKey", void 0);
|
|
72357
|
+
exports2.ApiHubSettings = ApiHubSettings;
|
|
72358
|
+
var ApiHubSettingsKey = class {
|
|
72359
|
+
getId() {
|
|
72360
|
+
return ApiHubSettingsKey.SINGLETON;
|
|
72361
|
+
}
|
|
72362
|
+
};
|
|
72363
|
+
exports2.ApiHubSettingsKey = ApiHubSettingsKey;
|
|
72364
|
+
ApiHubSettingsKey.SINGLETON = "API_HUB_API_KEY";
|
|
72365
|
+
}
|
|
72366
|
+
});
|
|
72367
|
+
|
|
72368
|
+
// ../../node_modules/@sap-ux/store/dist/data-provider/api-hub.js
|
|
72369
|
+
var require_api_hub3 = __commonJS({
|
|
72370
|
+
"../../node_modules/@sap-ux/store/dist/data-provider/api-hub.js"(exports2) {
|
|
72371
|
+
"use strict";
|
|
72372
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72373
|
+
exports2.ApiHubSettingsProvider = void 0;
|
|
72374
|
+
var hybrid_1 = require_hybrid2();
|
|
72375
|
+
var constants_1 = require_constants6();
|
|
72376
|
+
var api_hub_1 = require_api_hub2();
|
|
72377
|
+
exports2.ApiHubSettingsProvider = class {
|
|
72378
|
+
constructor(logger, options2 = {}) {
|
|
72379
|
+
this.entityName = constants_1.Entities.ApiHub;
|
|
72380
|
+
this.logger = logger;
|
|
72381
|
+
this.dataAccessor = hybrid_1.getHybridStore(this.logger, options2);
|
|
72382
|
+
}
|
|
72383
|
+
read(key) {
|
|
72384
|
+
return this.dataAccessor.read({ entityName: this.entityName, id: key.getId() });
|
|
72385
|
+
}
|
|
72386
|
+
write(entity) {
|
|
72387
|
+
return this.dataAccessor.write({
|
|
72388
|
+
entityName: this.entityName,
|
|
72389
|
+
id: api_hub_1.ApiHubSettingsKey.SINGLETON,
|
|
72390
|
+
entity
|
|
72391
|
+
});
|
|
72392
|
+
}
|
|
72393
|
+
delete(_entity) {
|
|
72394
|
+
return this.dataAccessor.del({
|
|
72395
|
+
entityName: this.entityName,
|
|
72396
|
+
id: api_hub_1.ApiHubSettingsKey.SINGLETON
|
|
72397
|
+
});
|
|
72398
|
+
}
|
|
72399
|
+
getAll() {
|
|
72400
|
+
return this.dataAccessor.getAll({ entityName: this.entityName });
|
|
72401
|
+
}
|
|
72402
|
+
};
|
|
72403
|
+
}
|
|
72404
|
+
});
|
|
72405
|
+
|
|
72406
|
+
// ../../node_modules/@sap-ux/store/dist/services/api-hub/migration.js
|
|
72407
|
+
var require_migration = __commonJS({
|
|
72408
|
+
"../../node_modules/@sap-ux/store/dist/services/api-hub/migration.js"(exports2) {
|
|
72409
|
+
"use strict";
|
|
72410
|
+
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
72411
|
+
function adopt(value) {
|
|
72412
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
72413
|
+
resolve(value);
|
|
72414
|
+
});
|
|
72415
|
+
}
|
|
72416
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
72417
|
+
function fulfilled(value) {
|
|
72418
|
+
try {
|
|
72419
|
+
step(generator.next(value));
|
|
72420
|
+
} catch (e) {
|
|
72421
|
+
reject(e);
|
|
72422
|
+
}
|
|
72423
|
+
}
|
|
72424
|
+
function rejected(value) {
|
|
72425
|
+
try {
|
|
72426
|
+
step(generator["throw"](value));
|
|
72427
|
+
} catch (e) {
|
|
72428
|
+
reject(e);
|
|
72429
|
+
}
|
|
72430
|
+
}
|
|
72431
|
+
function step(result2) {
|
|
72432
|
+
result2.done ? resolve(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
72433
|
+
}
|
|
72434
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
72435
|
+
});
|
|
72436
|
+
};
|
|
72437
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72438
|
+
exports2.migrateToLatestVersion = exports2.LEGACY_API_HUB_API_KEY = exports2.LEGACY_API_HUB_API_SERVICE = void 0;
|
|
72439
|
+
var i18n_1 = require_i18n4();
|
|
72440
|
+
var api_hub_1 = require_api_hub2();
|
|
72441
|
+
exports2.LEGACY_API_HUB_API_SERVICE = "fiori/system/apiHub";
|
|
72442
|
+
exports2.LEGACY_API_HUB_API_KEY = "API_HUB_API_KEY";
|
|
72443
|
+
function migrateToLatestVersion({ dataProvider, secureStore, logger }) {
|
|
72444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72445
|
+
const apiKey = yield secureStore.retrieve(exports2.LEGACY_API_HUB_API_SERVICE, exports2.LEGACY_API_HUB_API_KEY);
|
|
72446
|
+
if (!apiKey) {
|
|
72447
|
+
logger.debug(i18n_1.text("info.noLegacyApiHubKeyFound"));
|
|
72448
|
+
return;
|
|
72449
|
+
} else {
|
|
72450
|
+
logger.info(i18n_1.text("info.legacyApiHubKeyFound"));
|
|
72451
|
+
}
|
|
72452
|
+
const apiKeysNewFormat = yield dataProvider.read(new api_hub_1.ApiHubSettingsKey());
|
|
72453
|
+
if (!apiKeysNewFormat) {
|
|
72454
|
+
yield dataProvider.write(new api_hub_1.ApiHubSettings({ apiKey }));
|
|
72455
|
+
logger.info(i18n_1.text("info.legacyApiHubKeyMigrated"));
|
|
72456
|
+
} else {
|
|
72457
|
+
logger.info(i18n_1.text("info.legacyApiHubKeyNotMigrated"));
|
|
72458
|
+
}
|
|
72459
|
+
yield secureStore.delete(exports2.LEGACY_API_HUB_API_SERVICE, exports2.LEGACY_API_HUB_API_KEY);
|
|
72460
|
+
logger.info(i18n_1.text("info.legacyApiHubKeyDeleted"));
|
|
72461
|
+
});
|
|
72462
|
+
}
|
|
72463
|
+
exports2.migrateToLatestVersion = migrateToLatestVersion;
|
|
72464
|
+
}
|
|
72465
|
+
});
|
|
72466
|
+
|
|
72467
|
+
// ../../node_modules/@sap-ux/store/dist/services/api-hub/service.js
|
|
72468
|
+
var require_service = __commonJS({
|
|
72469
|
+
"../../node_modules/@sap-ux/store/dist/services/api-hub/service.js"(exports2) {
|
|
72470
|
+
"use strict";
|
|
72471
|
+
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
72472
|
+
function adopt(value) {
|
|
72473
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
72474
|
+
resolve(value);
|
|
72475
|
+
});
|
|
72476
|
+
}
|
|
72477
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
72478
|
+
function fulfilled(value) {
|
|
72479
|
+
try {
|
|
72480
|
+
step(generator.next(value));
|
|
72481
|
+
} catch (e) {
|
|
72482
|
+
reject(e);
|
|
72483
|
+
}
|
|
72484
|
+
}
|
|
72485
|
+
function rejected(value) {
|
|
72486
|
+
try {
|
|
72487
|
+
step(generator["throw"](value));
|
|
72488
|
+
} catch (e) {
|
|
72489
|
+
reject(e);
|
|
72490
|
+
}
|
|
72491
|
+
}
|
|
72492
|
+
function step(result2) {
|
|
72493
|
+
result2.done ? resolve(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
72494
|
+
}
|
|
72495
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
72496
|
+
});
|
|
72497
|
+
};
|
|
72498
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72499
|
+
exports2.getInstance = exports2.ApiHubSettingsService = void 0;
|
|
72500
|
+
var secure_store_1 = require_secure_store2();
|
|
72501
|
+
var api_hub_1 = require_api_hub3();
|
|
72502
|
+
var api_hub_2 = require_api_hub2();
|
|
72503
|
+
var migration_1 = require_migration();
|
|
72504
|
+
var ApiHubSettingsService = class {
|
|
72505
|
+
constructor(logger) {
|
|
72506
|
+
this.migrationDone = false;
|
|
72507
|
+
this.key = new api_hub_2.ApiHubSettingsKey();
|
|
72508
|
+
this.logger = logger;
|
|
72509
|
+
this.dataProvider = new api_hub_1.ApiHubSettingsProvider(this.logger);
|
|
72510
|
+
}
|
|
72511
|
+
migrate() {
|
|
72512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72513
|
+
if (this.migrationDone) {
|
|
72514
|
+
return;
|
|
72515
|
+
}
|
|
72516
|
+
if (!this.secureStore) {
|
|
72517
|
+
this.secureStore = secure_store_1.getSecureStore(this.logger);
|
|
72518
|
+
}
|
|
72519
|
+
yield migration_1.migrateToLatestVersion({
|
|
72520
|
+
logger: this.logger,
|
|
72521
|
+
secureStore: this.secureStore,
|
|
72522
|
+
dataProvider: this.dataProvider
|
|
72523
|
+
});
|
|
72524
|
+
this.migrationDone = true;
|
|
72525
|
+
});
|
|
72526
|
+
}
|
|
72527
|
+
partialUpdate() {
|
|
72528
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72529
|
+
yield this.migrate();
|
|
72530
|
+
throw new Error("NOT IMPLEMENTED");
|
|
72531
|
+
});
|
|
72532
|
+
}
|
|
72533
|
+
read() {
|
|
72534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72535
|
+
yield this.migrate();
|
|
72536
|
+
return this.dataProvider.read(this.key);
|
|
72537
|
+
});
|
|
72538
|
+
}
|
|
72539
|
+
write(entity) {
|
|
72540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72541
|
+
yield this.migrate();
|
|
72542
|
+
return this.dataProvider.write(entity);
|
|
72543
|
+
});
|
|
72544
|
+
}
|
|
72545
|
+
delete(entity) {
|
|
72546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72547
|
+
yield this.migrate();
|
|
72548
|
+
return this.dataProvider.delete(entity);
|
|
72549
|
+
});
|
|
72550
|
+
}
|
|
72551
|
+
getAll() {
|
|
72552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72553
|
+
yield this.migrate();
|
|
72554
|
+
return this.dataProvider.getAll();
|
|
72555
|
+
});
|
|
72556
|
+
}
|
|
72557
|
+
};
|
|
72558
|
+
exports2.ApiHubSettingsService = ApiHubSettingsService;
|
|
72559
|
+
function getInstance(logger) {
|
|
72560
|
+
return new ApiHubSettingsService(logger);
|
|
72561
|
+
}
|
|
72562
|
+
exports2.getInstance = getInstance;
|
|
72563
|
+
}
|
|
72564
|
+
});
|
|
72565
|
+
|
|
72566
|
+
// ../../node_modules/@sap-ux/store/dist/services/api-hub/index.js
|
|
72567
|
+
var require_api_hub4 = __commonJS({
|
|
72568
|
+
"../../node_modules/@sap-ux/store/dist/services/api-hub/index.js"(exports2) {
|
|
72569
|
+
"use strict";
|
|
72570
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
72571
|
+
if (k2 === void 0)
|
|
72572
|
+
k2 = k;
|
|
72573
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
72574
|
+
return m[k];
|
|
72575
|
+
} });
|
|
72576
|
+
} : function(o, m, k, k2) {
|
|
72577
|
+
if (k2 === void 0)
|
|
72578
|
+
k2 = k;
|
|
72579
|
+
o[k2] = m[k];
|
|
72580
|
+
});
|
|
72581
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
72582
|
+
for (var p in m)
|
|
72583
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
72584
|
+
__createBinding(exports3, m, p);
|
|
72585
|
+
};
|
|
72586
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72587
|
+
__exportStar(require_service(), exports2);
|
|
72588
|
+
}
|
|
72589
|
+
});
|
|
72590
|
+
|
|
72077
72591
|
// ../../node_modules/lodash/_listCacheClear.js
|
|
72078
72592
|
var require_listCacheClear = __commonJS({
|
|
72079
72593
|
"../../node_modules/lodash/_listCacheClear.js"(exports2, module2) {
|
|
@@ -73864,9 +74378,9 @@ var require_cloneDeep = __commonJS({
|
|
|
73864
74378
|
}
|
|
73865
74379
|
});
|
|
73866
74380
|
|
|
73867
|
-
// ../../node_modules/@sap-ux/logger/dist/types.js
|
|
74381
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js
|
|
73868
74382
|
var require_types6 = __commonJS({
|
|
73869
|
-
"../../node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
74383
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
73870
74384
|
"use strict";
|
|
73871
74385
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
73872
74386
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -73885,16 +74399,16 @@ var require_types6 = __commonJS({
|
|
|
73885
74399
|
})(LogLevel = exports2.LogLevel || (exports2.LogLevel = {}));
|
|
73886
74400
|
var Transport = class {
|
|
73887
74401
|
copy(obj) {
|
|
73888
|
-
return Object.freeze(
|
|
74402
|
+
return Object.freeze(cloneDeep_1.default(obj));
|
|
73889
74403
|
}
|
|
73890
74404
|
};
|
|
73891
74405
|
exports2.Transport = Transport;
|
|
73892
74406
|
}
|
|
73893
74407
|
});
|
|
73894
74408
|
|
|
73895
|
-
// ../../node_modules/@sap-ux/logger/dist/transports/transport.js
|
|
74409
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js
|
|
73896
74410
|
var require_transport = __commonJS({
|
|
73897
|
-
"../../node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
|
|
74411
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
|
|
73898
74412
|
"use strict";
|
|
73899
74413
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
73900
74414
|
exports2.VSCodeTransport = exports2.StringArrayTransport = exports2.FileTransport = exports2.NullTransport = exports2.UI5ToolingTransport = exports2.ConsoleTransport = void 0;
|
|
@@ -73963,9 +74477,9 @@ var require_transport = __commonJS({
|
|
|
73963
74477
|
}
|
|
73964
74478
|
});
|
|
73965
74479
|
|
|
73966
|
-
// ../../node_modules/@sap-ux/logger/dist/transports/index.js
|
|
74480
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js
|
|
73967
74481
|
var require_transports = __commonJS({
|
|
73968
|
-
"../../node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
|
|
74482
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
|
|
73969
74483
|
"use strict";
|
|
73970
74484
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
73971
74485
|
if (k2 === void 0)
|
|
@@ -88439,9 +88953,9 @@ var require_winston_transport2 = __commonJS({
|
|
|
88439
88953
|
}
|
|
88440
88954
|
});
|
|
88441
88955
|
|
|
88442
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
|
|
88956
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
|
|
88443
88957
|
var require_null_transport = __commonJS({
|
|
88444
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
|
|
88958
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
|
|
88445
88959
|
"use strict";
|
|
88446
88960
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
88447
88961
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -88458,9 +88972,9 @@ var require_null_transport = __commonJS({
|
|
|
88458
88972
|
}
|
|
88459
88973
|
});
|
|
88460
88974
|
|
|
88461
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
|
|
88975
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
|
|
88462
88976
|
var require_vscode_output_channel_transport = __commonJS({
|
|
88463
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
|
|
88977
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
|
|
88464
88978
|
"use strict";
|
|
88465
88979
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
88466
88980
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -88487,9 +89001,9 @@ var require_vscode_output_channel_transport = __commonJS({
|
|
|
88487
89001
|
}
|
|
88488
89002
|
});
|
|
88489
89003
|
|
|
88490
|
-
// ../../node_modules/@sap-ux/
|
|
89004
|
+
// ../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js
|
|
88491
89005
|
var require_util6 = __commonJS({
|
|
88492
|
-
"../../node_modules/@sap-ux/
|
|
89006
|
+
"../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js"(exports2, module2) {
|
|
88493
89007
|
"use strict";
|
|
88494
89008
|
var stringReplaceAll = (string, substring, replacer) => {
|
|
88495
89009
|
let index = string.indexOf(substring);
|
|
@@ -88526,9 +89040,9 @@ var require_util6 = __commonJS({
|
|
|
88526
89040
|
}
|
|
88527
89041
|
});
|
|
88528
89042
|
|
|
88529
|
-
// ../../node_modules/@sap-ux/
|
|
89043
|
+
// ../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js
|
|
88530
89044
|
var require_templates2 = __commonJS({
|
|
88531
|
-
"../../node_modules/@sap-ux/
|
|
89045
|
+
"../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js"(exports2, module2) {
|
|
88532
89046
|
"use strict";
|
|
88533
89047
|
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
88534
89048
|
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
@@ -88640,9 +89154,9 @@ var require_templates2 = __commonJS({
|
|
|
88640
89154
|
}
|
|
88641
89155
|
});
|
|
88642
89156
|
|
|
88643
|
-
// ../../node_modules/@sap-ux/
|
|
89157
|
+
// ../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js
|
|
88644
89158
|
var require_source2 = __commonJS({
|
|
88645
|
-
"../../node_modules/@sap-ux/
|
|
89159
|
+
"../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js"(exports2, module2) {
|
|
88646
89160
|
"use strict";
|
|
88647
89161
|
var ansiStyles = require_ansi_styles();
|
|
88648
89162
|
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color2();
|
|
@@ -88814,10 +89328,38 @@ var require_source2 = __commonJS({
|
|
|
88814
89328
|
}
|
|
88815
89329
|
});
|
|
88816
89330
|
|
|
88817
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
|
|
89331
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
|
|
88818
89332
|
var require_adapter = __commonJS({
|
|
88819
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
|
|
89333
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
|
|
88820
89334
|
"use strict";
|
|
89335
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
89336
|
+
if (k2 === void 0)
|
|
89337
|
+
k2 = k;
|
|
89338
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
89339
|
+
return m[k];
|
|
89340
|
+
} });
|
|
89341
|
+
} : function(o, m, k, k2) {
|
|
89342
|
+
if (k2 === void 0)
|
|
89343
|
+
k2 = k;
|
|
89344
|
+
o[k2] = m[k];
|
|
89345
|
+
});
|
|
89346
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
89347
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
89348
|
+
} : function(o, v) {
|
|
89349
|
+
o["default"] = v;
|
|
89350
|
+
});
|
|
89351
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
89352
|
+
if (mod && mod.__esModule)
|
|
89353
|
+
return mod;
|
|
89354
|
+
var result2 = {};
|
|
89355
|
+
if (mod != null) {
|
|
89356
|
+
for (var k in mod)
|
|
89357
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
89358
|
+
__createBinding(result2, mod, k);
|
|
89359
|
+
}
|
|
89360
|
+
__setModuleDefault(result2, mod);
|
|
89361
|
+
return result2;
|
|
89362
|
+
};
|
|
88821
89363
|
var __rest = exports2 && exports2.__rest || function(s, e) {
|
|
88822
89364
|
var t = {};
|
|
88823
89365
|
for (var p in s)
|
|
@@ -88836,11 +89378,10 @@ var require_adapter = __commonJS({
|
|
|
88836
89378
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
88837
89379
|
exports2.toWinstonTransport = exports2.toWinstonLogLevel = void 0;
|
|
88838
89380
|
var types_1 = require_types6();
|
|
88839
|
-
var winston_1 =
|
|
89381
|
+
var winston_1 = __importStar(require_winston());
|
|
88840
89382
|
var transports_1 = require_transports();
|
|
88841
89383
|
var null_transport_1 = require_null_transport();
|
|
88842
89384
|
var vscode_output_channel_transport_1 = require_vscode_output_channel_transport();
|
|
88843
|
-
var logform_1 = require_logform();
|
|
88844
89385
|
var util_1 = require("util");
|
|
88845
89386
|
var chalk_1 = __importDefault(require_source2());
|
|
88846
89387
|
function toWinstonLogLevel(logLevel) {
|
|
@@ -88867,8 +89408,8 @@ var require_adapter = __commonJS({
|
|
|
88867
89408
|
return void 0;
|
|
88868
89409
|
}
|
|
88869
89410
|
};
|
|
88870
|
-
var ui5ToolingFormat = (moduleName) =>
|
|
88871
|
-
let msg = typeof message === "string" ? message :
|
|
89411
|
+
var ui5ToolingFormat = (moduleName) => winston_1.format.combine(winston_1.format.colorize(), winston_1.format.label({ label: moduleName }), winston_1.format.printf(({ level, message, label }) => {
|
|
89412
|
+
let msg = typeof message === "string" ? message : util_1.inspect(message);
|
|
88872
89413
|
msg = msg.split(/\r?\n/).join(`
|
|
88873
89414
|
${level} ${chalk_1.default.magenta(label)} `);
|
|
88874
89415
|
return `${level} ${chalk_1.default.magenta(label)} ${msg}`;
|
|
@@ -88893,11 +89434,11 @@ ${level} ${chalk_1.default.magenta(label)} `);
|
|
|
88893
89434
|
}
|
|
88894
89435
|
return l;
|
|
88895
89436
|
};
|
|
88896
|
-
var consoleFormat =
|
|
89437
|
+
var consoleFormat = winston_1.format.combine(winston_1.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston_1.format.printf((_a2) => {
|
|
88897
89438
|
var { timestamp, level, message, label, labelColor } = _a2, meta = __rest(_a2, ["timestamp", "level", "message", "label", "labelColor"]);
|
|
88898
|
-
const msg = typeof message === "string" ? message :
|
|
89439
|
+
const msg = typeof message === "string" ? message : util_1.inspect(message);
|
|
88899
89440
|
const lvl = decorateLevel(level);
|
|
88900
|
-
return `${timestamp} ${lvl} ${decorateLabel(label, labelColor)}: ${msg} ${Object.keys(meta).length ?
|
|
89441
|
+
return `${timestamp} ${lvl} ${decorateLabel(label, labelColor)}: ${msg} ${Object.keys(meta).length ? util_1.inspect(meta) : ""}`;
|
|
88901
89442
|
}));
|
|
88902
89443
|
function toWinstonTransport(transport) {
|
|
88903
89444
|
if (transport instanceof transports_1.NullTransport) {
|
|
@@ -88918,9 +89459,9 @@ ${level} ${chalk_1.default.magenta(label)} `);
|
|
|
88918
89459
|
}
|
|
88919
89460
|
});
|
|
88920
89461
|
|
|
88921
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js
|
|
89462
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/utils.js
|
|
88922
89463
|
var require_utils11 = __commonJS({
|
|
88923
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
|
|
89464
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
|
|
88924
89465
|
"use strict";
|
|
88925
89466
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
88926
89467
|
exports2.nextColor = void 0;
|
|
@@ -88935,25 +89476,48 @@ var require_utils11 = __commonJS({
|
|
|
88935
89476
|
}
|
|
88936
89477
|
}
|
|
88937
89478
|
var colorGenerator = color();
|
|
88938
|
-
|
|
88939
|
-
exports2.nextColor = nextColor;
|
|
89479
|
+
exports2.nextColor = () => colorGenerator.next().value;
|
|
88940
89480
|
}
|
|
88941
89481
|
});
|
|
88942
89482
|
|
|
88943
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js
|
|
89483
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/logger.js
|
|
88944
89484
|
var require_logger4 = __commonJS({
|
|
88945
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
|
|
89485
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
|
|
88946
89486
|
"use strict";
|
|
88947
|
-
var
|
|
88948
|
-
|
|
89487
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
89488
|
+
if (k2 === void 0)
|
|
89489
|
+
k2 = k;
|
|
89490
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
89491
|
+
return m[k];
|
|
89492
|
+
} });
|
|
89493
|
+
} : function(o, m, k, k2) {
|
|
89494
|
+
if (k2 === void 0)
|
|
89495
|
+
k2 = k;
|
|
89496
|
+
o[k2] = m[k];
|
|
89497
|
+
});
|
|
89498
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
89499
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
89500
|
+
} : function(o, v) {
|
|
89501
|
+
o["default"] = v;
|
|
89502
|
+
});
|
|
89503
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
89504
|
+
if (mod && mod.__esModule)
|
|
89505
|
+
return mod;
|
|
89506
|
+
var result2 = {};
|
|
89507
|
+
if (mod != null) {
|
|
89508
|
+
for (var k in mod)
|
|
89509
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
89510
|
+
__createBinding(result2, mod, k);
|
|
89511
|
+
}
|
|
89512
|
+
__setModuleDefault(result2, mod);
|
|
89513
|
+
return result2;
|
|
88949
89514
|
};
|
|
88950
89515
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
88951
89516
|
exports2.WinstonLogger = void 0;
|
|
88952
89517
|
var transports_1 = require_transports();
|
|
88953
89518
|
var types_1 = require_types6();
|
|
88954
|
-
var winston_1 =
|
|
89519
|
+
var winston_1 = __importStar(require_winston());
|
|
88955
89520
|
var adapter_1 = require_adapter();
|
|
88956
|
-
var logform_1 = require_logform();
|
|
88957
89521
|
var utils_1 = require_utils11();
|
|
88958
89522
|
var util_1 = require("util");
|
|
88959
89523
|
var defaultLoggerOptions = {
|
|
@@ -88987,16 +89551,16 @@ var require_logger4 = __commonJS({
|
|
|
88987
89551
|
if (typeof data2 === "string") {
|
|
88988
89552
|
this.winstonLog({ level: this.winstonLevel, message: data2, metadata: this.metadataOverride });
|
|
88989
89553
|
} else {
|
|
88990
|
-
const level = (_a2 =
|
|
89554
|
+
const level = (_a2 = adapter_1.toWinstonLogLevel(data2.level)) !== null && _a2 !== void 0 ? _a2 : this._logger.level;
|
|
88991
89555
|
this.winstonLog({ level, message: data2.message, metadata: this.metadataOverride });
|
|
88992
89556
|
}
|
|
88993
89557
|
}
|
|
88994
89558
|
winstonLog({ level, message, metadata }) {
|
|
88995
|
-
const msg = typeof message === "string" ? message :
|
|
89559
|
+
const msg = typeof message === "string" ? message : util_1.inspect(message);
|
|
88996
89560
|
this._logger.log(level, msg, metadata);
|
|
88997
89561
|
}
|
|
88998
89562
|
addToMap(transportMap, transport) {
|
|
88999
|
-
const winstonTransport =
|
|
89563
|
+
const winstonTransport = adapter_1.toWinstonTransport(transport);
|
|
89000
89564
|
if (!transportMap.has(transport)) {
|
|
89001
89565
|
transportMap.set(transport, winstonTransport);
|
|
89002
89566
|
return winstonTransport;
|
|
@@ -89025,7 +89589,7 @@ var require_logger4 = __commonJS({
|
|
|
89025
89589
|
}
|
|
89026
89590
|
child({ logPrefix }) {
|
|
89027
89591
|
const childLogPrefix = `${this.logPrefix}.${logPrefix}`;
|
|
89028
|
-
const metadataOverride = { label: childLogPrefix, labelColor:
|
|
89592
|
+
const metadataOverride = { label: childLogPrefix, labelColor: utils_1.nextColor() };
|
|
89029
89593
|
const childWinstonLogger = this._logger.child(metadataOverride);
|
|
89030
89594
|
const childLogger = new BaseWinstonLogger();
|
|
89031
89595
|
childLogger.initialize({
|
|
@@ -89043,12 +89607,12 @@ var require_logger4 = __commonJS({
|
|
|
89043
89607
|
super();
|
|
89044
89608
|
const transportMap = /* @__PURE__ */ new Map();
|
|
89045
89609
|
transports.forEach((t) => this.addToMap(transportMap, t));
|
|
89046
|
-
const level =
|
|
89610
|
+
const level = adapter_1.toWinstonLogLevel(logLevel);
|
|
89047
89611
|
const logger = winston_1.default.createLogger({
|
|
89048
89612
|
level,
|
|
89049
89613
|
transports: Array.from(transportMap.values()),
|
|
89050
|
-
format:
|
|
89051
|
-
defaultMeta: { label: logPrefix, labelColor:
|
|
89614
|
+
format: winston_1.format.combine(winston_1.format.timestamp(), winston_1.format.json()),
|
|
89615
|
+
defaultMeta: { label: logPrefix, labelColor: utils_1.nextColor() }
|
|
89052
89616
|
});
|
|
89053
89617
|
const winstonLevel = level !== null && level !== void 0 ? level : logger.level;
|
|
89054
89618
|
this.initialize({ logger, transportMap, winstonLevel, logPrefix });
|
|
@@ -89058,9 +89622,9 @@ var require_logger4 = __commonJS({
|
|
|
89058
89622
|
}
|
|
89059
89623
|
});
|
|
89060
89624
|
|
|
89061
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/index.js
|
|
89625
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/index.js
|
|
89062
89626
|
var require_winston_logger = __commonJS({
|
|
89063
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
|
|
89627
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
|
|
89064
89628
|
"use strict";
|
|
89065
89629
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89066
89630
|
exports2.WinstonLogger = void 0;
|
|
@@ -89071,9 +89635,9 @@ var require_winston_logger = __commonJS({
|
|
|
89071
89635
|
}
|
|
89072
89636
|
});
|
|
89073
89637
|
|
|
89074
|
-
// ../../node_modules/@sap-ux/logger/dist/index.js
|
|
89638
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js
|
|
89075
89639
|
var require_dist9 = __commonJS({
|
|
89076
|
-
"../../node_modules/@sap-ux/logger/dist/index.js"(exports2) {
|
|
89640
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js"(exports2) {
|
|
89077
89641
|
"use strict";
|
|
89078
89642
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
89079
89643
|
if (k2 === void 0)
|
|
@@ -89109,8 +89673,7 @@ var require_defaults2 = __commonJS({
|
|
|
89109
89673
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89110
89674
|
exports2.getDefaultLogger = void 0;
|
|
89111
89675
|
var logger_1 = require_dist9();
|
|
89112
|
-
|
|
89113
|
-
exports2.getDefaultLogger = getDefaultLogger;
|
|
89676
|
+
exports2.getDefaultLogger = () => new logger_1.ToolsLogger({ transports: [new logger_1.ConsoleTransport()] });
|
|
89114
89677
|
}
|
|
89115
89678
|
});
|
|
89116
89679
|
|
|
@@ -89119,11 +89682,15 @@ var require_services2 = __commonJS({
|
|
|
89119
89682
|
"../../node_modules/@sap-ux/store/dist/services/index.js"(exports2) {
|
|
89120
89683
|
"use strict";
|
|
89121
89684
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89122
|
-
exports2.SystemService = void 0;
|
|
89685
|
+
exports2.ApiHubSettingsService = exports2.SystemService = void 0;
|
|
89123
89686
|
var backend_system_1 = require_backend_system6();
|
|
89124
89687
|
Object.defineProperty(exports2, "SystemService", { enumerable: true, get: function() {
|
|
89125
89688
|
return backend_system_1.SystemService;
|
|
89126
89689
|
} });
|
|
89690
|
+
var api_hub_1 = require_api_hub4();
|
|
89691
|
+
Object.defineProperty(exports2, "ApiHubSettingsService", { enumerable: true, get: function() {
|
|
89692
|
+
return api_hub_1.ApiHubSettingsService;
|
|
89693
|
+
} });
|
|
89127
89694
|
}
|
|
89128
89695
|
});
|
|
89129
89696
|
|
|
@@ -89189,34 +89756,36 @@ var require_dist10 = __commonJS({
|
|
|
89189
89756
|
};
|
|
89190
89757
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89191
89758
|
exports2.Entity = exports2.getFilesystemWatcherFor = exports2.getService = void 0;
|
|
89192
|
-
var
|
|
89759
|
+
var constants_1 = require_constants5();
|
|
89193
89760
|
Object.defineProperty(exports2, "Entity", { enumerable: true, get: function() {
|
|
89194
|
-
return
|
|
89761
|
+
return constants_1.Entity;
|
|
89195
89762
|
} });
|
|
89196
89763
|
var i18n_1 = require_i18n4();
|
|
89197
89764
|
var backend_system_1 = require_backend_system6();
|
|
89198
89765
|
var telemetry_setting_1 = require_telemetry_setting3();
|
|
89766
|
+
var api_hub_1 = require_api_hub4();
|
|
89199
89767
|
var defaults_1 = require_defaults2();
|
|
89200
89768
|
var services = {
|
|
89201
89769
|
system: backend_system_1.getInstance,
|
|
89202
|
-
telemetrySetting: telemetry_setting_1.getInstance
|
|
89770
|
+
telemetrySetting: telemetry_setting_1.getInstance,
|
|
89771
|
+
"api-hub": api_hub_1.getInstance
|
|
89203
89772
|
};
|
|
89204
|
-
function getService({ logger =
|
|
89773
|
+
function getService({ logger = defaults_1.getDefaultLogger(), entityName, options: options2 = {} }) {
|
|
89205
89774
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89206
|
-
yield
|
|
89775
|
+
yield i18n_1.initI18n();
|
|
89207
89776
|
const factory = services[entityName];
|
|
89208
89777
|
if (factory) {
|
|
89209
89778
|
return factory(logger, options2);
|
|
89210
89779
|
} else {
|
|
89211
|
-
throw new Error(
|
|
89780
|
+
throw new Error(i18n_1.text("error.unsupportedEntity", { entityName }));
|
|
89212
89781
|
}
|
|
89213
89782
|
});
|
|
89214
89783
|
}
|
|
89215
89784
|
exports2.getService = getService;
|
|
89216
89785
|
__exportStar(require_services2(), exports2);
|
|
89217
|
-
__exportStar(require_secure_store2(), exports2);
|
|
89218
89786
|
__exportStar(require_backend_system4(), exports2);
|
|
89219
89787
|
__exportStar(require_telemetry_setting(), exports2);
|
|
89788
|
+
__exportStar(require_api_hub2(), exports2);
|
|
89220
89789
|
var data_access_1 = require_data_access2();
|
|
89221
89790
|
Object.defineProperty(exports2, "getFilesystemWatcherFor", { enumerable: true, get: function() {
|
|
89222
89791
|
return data_access_1.getFilesystemWatcherFor;
|
|
@@ -89830,7 +90399,7 @@ var require_src8 = __commonJS({
|
|
|
89830
90399
|
});
|
|
89831
90400
|
|
|
89832
90401
|
// node_modules/semver/internal/constants.js
|
|
89833
|
-
var
|
|
90402
|
+
var require_constants7 = __commonJS({
|
|
89834
90403
|
"node_modules/semver/internal/constants.js"(exports2, module2) {
|
|
89835
90404
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
89836
90405
|
var MAX_LENGTH = 256;
|
|
@@ -89857,7 +90426,7 @@ var require_debug3 = __commonJS({
|
|
|
89857
90426
|
// node_modules/semver/internal/re.js
|
|
89858
90427
|
var require_re2 = __commonJS({
|
|
89859
90428
|
"node_modules/semver/internal/re.js"(exports2, module2) {
|
|
89860
|
-
var { MAX_SAFE_COMPONENT_LENGTH } =
|
|
90429
|
+
var { MAX_SAFE_COMPONENT_LENGTH } = require_constants7();
|
|
89861
90430
|
var debug = require_debug3();
|
|
89862
90431
|
exports2 = module2.exports = {};
|
|
89863
90432
|
var re = exports2.re = [];
|
|
@@ -89954,7 +90523,7 @@ var require_identifiers2 = __commonJS({
|
|
|
89954
90523
|
var require_semver6 = __commonJS({
|
|
89955
90524
|
"node_modules/semver/classes/semver.js"(exports2, module2) {
|
|
89956
90525
|
var debug = require_debug3();
|
|
89957
|
-
var { MAX_LENGTH, MAX_SAFE_INTEGER } =
|
|
90526
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants7();
|
|
89958
90527
|
var { re, t } = require_re2();
|
|
89959
90528
|
var parseOptions = require_parse_options2();
|
|
89960
90529
|
var { compareIdentifiers } = require_identifiers2();
|
|
@@ -90177,7 +90746,7 @@ var require_semver6 = __commonJS({
|
|
|
90177
90746
|
// node_modules/semver/functions/parse.js
|
|
90178
90747
|
var require_parse4 = __commonJS({
|
|
90179
90748
|
"node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
90180
|
-
var { MAX_LENGTH } =
|
|
90749
|
+
var { MAX_LENGTH } = require_constants7();
|
|
90181
90750
|
var { re, t } = require_re2();
|
|
90182
90751
|
var SemVer = require_semver6();
|
|
90183
90752
|
var parseOptions = require_parse_options2();
|
|
@@ -91403,7 +91972,7 @@ var require_semver7 = __commonJS({
|
|
|
91403
91972
|
re: internalRe.re,
|
|
91404
91973
|
src: internalRe.src,
|
|
91405
91974
|
tokens: internalRe.t,
|
|
91406
|
-
SEMVER_SPEC_VERSION:
|
|
91975
|
+
SEMVER_SPEC_VERSION: require_constants7().SEMVER_SPEC_VERSION,
|
|
91407
91976
|
SemVer: require_semver6(),
|
|
91408
91977
|
compareIdentifiers: require_identifiers2().compareIdentifiers,
|
|
91409
91978
|
rcompareIdentifiers: require_identifiers2().rcompareIdentifiers,
|