appwrite-cli 17.3.0 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/bundle-win-arm64.mjs +1558 -456
- package/dist/cli.cjs +1558 -456
- package/dist/index.cjs +1328 -303
- package/dist/index.js +1328 -303
- package/dist/lib/commands/init.d.ts.map +1 -1
- package/dist/lib/commands/pull.d.ts.map +1 -1
- package/dist/lib/commands/push.d.ts +2 -0
- package/dist/lib/commands/push.d.ts.map +1 -1
- package/dist/lib/commands/utils/deployment.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/parser.d.ts +6 -2
- package/dist/lib/parser.d.ts.map +1 -1
- package/dist/lib/questions.d.ts +1 -0
- package/dist/lib/questions.d.ts.map +1 -1
- package/dist/lib/response-config.d.ts +7 -0
- package/dist/lib/response-config.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -1709,14 +1709,14 @@ var require_templates = __commonJS({
|
|
|
1709
1709
|
}
|
|
1710
1710
|
return results;
|
|
1711
1711
|
}
|
|
1712
|
-
function buildStyle(
|
|
1712
|
+
function buildStyle(chalk10, styles) {
|
|
1713
1713
|
const enabled = {};
|
|
1714
1714
|
for (const layer of styles) {
|
|
1715
1715
|
for (const style of layer.styles) {
|
|
1716
1716
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
|
-
let current =
|
|
1719
|
+
let current = chalk10;
|
|
1720
1720
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
|
1721
1721
|
if (!Array.isArray(styles2)) {
|
|
1722
1722
|
continue;
|
|
@@ -1728,7 +1728,7 @@ var require_templates = __commonJS({
|
|
|
1728
1728
|
}
|
|
1729
1729
|
return current;
|
|
1730
1730
|
}
|
|
1731
|
-
module.exports = (
|
|
1731
|
+
module.exports = (chalk10, temporary) => {
|
|
1732
1732
|
const styles = [];
|
|
1733
1733
|
const chunks = [];
|
|
1734
1734
|
let chunk = [];
|
|
@@ -1738,13 +1738,13 @@ var require_templates = __commonJS({
|
|
|
1738
1738
|
} else if (style) {
|
|
1739
1739
|
const string4 = chunk.join("");
|
|
1740
1740
|
chunk = [];
|
|
1741
|
-
chunks.push(styles.length === 0 ? string4 : buildStyle(
|
|
1741
|
+
chunks.push(styles.length === 0 ? string4 : buildStyle(chalk10, styles)(string4));
|
|
1742
1742
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
1743
1743
|
} else if (close) {
|
|
1744
1744
|
if (styles.length === 0) {
|
|
1745
1745
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
1746
1746
|
}
|
|
1747
|
-
chunks.push(buildStyle(
|
|
1747
|
+
chunks.push(buildStyle(chalk10, styles)(chunk.join("")));
|
|
1748
1748
|
chunk = [];
|
|
1749
1749
|
styles.pop();
|
|
1750
1750
|
} else {
|
|
@@ -1792,16 +1792,16 @@ var require_source = __commonJS({
|
|
|
1792
1792
|
}
|
|
1793
1793
|
};
|
|
1794
1794
|
var chalkFactory = (options) => {
|
|
1795
|
-
const
|
|
1796
|
-
applyOptions(
|
|
1797
|
-
|
|
1798
|
-
Object.setPrototypeOf(
|
|
1799
|
-
Object.setPrototypeOf(
|
|
1800
|
-
|
|
1795
|
+
const chalk11 = {};
|
|
1796
|
+
applyOptions(chalk11, options);
|
|
1797
|
+
chalk11.template = (...arguments_) => chalkTag(chalk11.template, ...arguments_);
|
|
1798
|
+
Object.setPrototypeOf(chalk11, Chalk.prototype);
|
|
1799
|
+
Object.setPrototypeOf(chalk11.template, chalk11);
|
|
1800
|
+
chalk11.template.constructor = () => {
|
|
1801
1801
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
1802
1802
|
};
|
|
1803
|
-
|
|
1804
|
-
return
|
|
1803
|
+
chalk11.template.Instance = ChalkClass;
|
|
1804
|
+
return chalk11.template;
|
|
1805
1805
|
};
|
|
1806
1806
|
function Chalk(options) {
|
|
1807
1807
|
return chalkFactory(options);
|
|
@@ -1912,7 +1912,7 @@ var require_source = __commonJS({
|
|
|
1912
1912
|
return openAll + string4 + closeAll;
|
|
1913
1913
|
};
|
|
1914
1914
|
var template;
|
|
1915
|
-
var chalkTag = (
|
|
1915
|
+
var chalkTag = (chalk11, ...strings) => {
|
|
1916
1916
|
const [firstString] = strings;
|
|
1917
1917
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
1918
1918
|
return strings.join(" ");
|
|
@@ -1928,14 +1928,14 @@ var require_source = __commonJS({
|
|
|
1928
1928
|
if (template === void 0) {
|
|
1929
1929
|
template = require_templates();
|
|
1930
1930
|
}
|
|
1931
|
-
return template(
|
|
1931
|
+
return template(chalk11, parts.join(""));
|
|
1932
1932
|
};
|
|
1933
1933
|
Object.defineProperties(Chalk.prototype, styles);
|
|
1934
|
-
var
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
module.exports =
|
|
1934
|
+
var chalk10 = Chalk();
|
|
1935
|
+
chalk10.supportsColor = stdoutColor;
|
|
1936
|
+
chalk10.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1937
|
+
chalk10.stderr.supportsColor = stderrColor;
|
|
1938
|
+
module.exports = chalk10;
|
|
1939
1939
|
}
|
|
1940
1940
|
});
|
|
1941
1941
|
|
|
@@ -2103,12 +2103,12 @@ var require_figures = __commonJS({
|
|
|
2103
2103
|
var require_separator = __commonJS({
|
|
2104
2104
|
"node_modules/inquirer/lib/objects/separator.js"(exports, module) {
|
|
2105
2105
|
"use strict";
|
|
2106
|
-
var
|
|
2106
|
+
var chalk10 = require_source();
|
|
2107
2107
|
var figures = require_figures();
|
|
2108
2108
|
var Separator = class {
|
|
2109
2109
|
constructor(line) {
|
|
2110
2110
|
this.type = "separator";
|
|
2111
|
-
this.line =
|
|
2111
|
+
this.line = chalk10.dim(line || new Array(15).join(figures.line));
|
|
2112
2112
|
}
|
|
2113
2113
|
/**
|
|
2114
2114
|
* Stringify separator
|
|
@@ -16250,8 +16250,8 @@ var require_ansi_regex = __commonJS({
|
|
|
16250
16250
|
var require_strip_ansi = __commonJS({
|
|
16251
16251
|
"node_modules/strip-ansi/index.js"(exports, module) {
|
|
16252
16252
|
"use strict";
|
|
16253
|
-
var
|
|
16254
|
-
module.exports = (string4) => typeof string4 === "string" ? string4.replace(
|
|
16253
|
+
var ansiRegex2 = require_ansi_regex();
|
|
16254
|
+
module.exports = (string4) => typeof string4 === "string" ? string4.replace(ansiRegex2(), "") : string4;
|
|
16255
16255
|
}
|
|
16256
16256
|
});
|
|
16257
16257
|
|
|
@@ -16288,9 +16288,9 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
16288
16288
|
}
|
|
16289
16289
|
});
|
|
16290
16290
|
|
|
16291
|
-
// node_modules/emoji-regex/index.js
|
|
16291
|
+
// node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
16292
16292
|
var require_emoji_regex = __commonJS({
|
|
16293
|
-
"node_modules/emoji-regex/index.js"(exports, module) {
|
|
16293
|
+
"node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
|
|
16294
16294
|
"use strict";
|
|
16295
16295
|
module.exports = function() {
|
|
16296
16296
|
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
@@ -16298,22 +16298,22 @@ var require_emoji_regex = __commonJS({
|
|
|
16298
16298
|
}
|
|
16299
16299
|
});
|
|
16300
16300
|
|
|
16301
|
-
// node_modules/string-width/index.js
|
|
16301
|
+
// node_modules/wrap-ansi/node_modules/string-width/index.js
|
|
16302
16302
|
var require_string_width = __commonJS({
|
|
16303
|
-
"node_modules/string-width/index.js"(exports, module) {
|
|
16303
|
+
"node_modules/wrap-ansi/node_modules/string-width/index.js"(exports, module) {
|
|
16304
16304
|
"use strict";
|
|
16305
|
-
var
|
|
16305
|
+
var stripAnsi2 = require_strip_ansi();
|
|
16306
16306
|
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
16307
|
-
var
|
|
16308
|
-
var
|
|
16307
|
+
var emojiRegex2 = require_emoji_regex();
|
|
16308
|
+
var stringWidth2 = (string4) => {
|
|
16309
16309
|
if (typeof string4 !== "string" || string4.length === 0) {
|
|
16310
16310
|
return 0;
|
|
16311
16311
|
}
|
|
16312
|
-
string4 =
|
|
16312
|
+
string4 = stripAnsi2(string4);
|
|
16313
16313
|
if (string4.length === 0) {
|
|
16314
16314
|
return 0;
|
|
16315
16315
|
}
|
|
16316
|
-
string4 = string4.replace(
|
|
16316
|
+
string4 = string4.replace(emojiRegex2(), " ");
|
|
16317
16317
|
let width = 0;
|
|
16318
16318
|
for (let i = 0; i < string4.length; i++) {
|
|
16319
16319
|
const code = string4.codePointAt(i);
|
|
@@ -16330,8 +16330,8 @@ var require_string_width = __commonJS({
|
|
|
16330
16330
|
}
|
|
16331
16331
|
return width;
|
|
16332
16332
|
};
|
|
16333
|
-
module.exports =
|
|
16334
|
-
module.exports.default =
|
|
16333
|
+
module.exports = stringWidth2;
|
|
16334
|
+
module.exports.default = stringWidth2;
|
|
16335
16335
|
}
|
|
16336
16336
|
});
|
|
16337
16337
|
|
|
@@ -16339,8 +16339,8 @@ var require_string_width = __commonJS({
|
|
|
16339
16339
|
var require_wrap_ansi = __commonJS({
|
|
16340
16340
|
"node_modules/wrap-ansi/index.js"(exports, module) {
|
|
16341
16341
|
"use strict";
|
|
16342
|
-
var
|
|
16343
|
-
var
|
|
16342
|
+
var stringWidth2 = require_string_width();
|
|
16343
|
+
var stripAnsi2 = require_strip_ansi();
|
|
16344
16344
|
var ansiStyles = require_ansi_styles();
|
|
16345
16345
|
var ESCAPES = /* @__PURE__ */ new Set([
|
|
16346
16346
|
"\x1B",
|
|
@@ -16348,13 +16348,13 @@ var require_wrap_ansi = __commonJS({
|
|
|
16348
16348
|
]);
|
|
16349
16349
|
var END_CODE = 39;
|
|
16350
16350
|
var wrapAnsi = (code) => `${ESCAPES.values().next().value}[${code}m`;
|
|
16351
|
-
var wordLengths = (string4) => string4.split(" ").map((character) =>
|
|
16351
|
+
var wordLengths = (string4) => string4.split(" ").map((character) => stringWidth2(character));
|
|
16352
16352
|
var wrapWord = (rows, word, columns) => {
|
|
16353
16353
|
const characters = [...word];
|
|
16354
16354
|
let isInsideEscape = false;
|
|
16355
|
-
let visible =
|
|
16355
|
+
let visible = stringWidth2(stripAnsi2(rows[rows.length - 1]));
|
|
16356
16356
|
for (const [index, character] of characters.entries()) {
|
|
16357
|
-
const characterLength =
|
|
16357
|
+
const characterLength = stringWidth2(character);
|
|
16358
16358
|
if (visible + characterLength <= columns) {
|
|
16359
16359
|
rows[rows.length - 1] += character;
|
|
16360
16360
|
} else {
|
|
@@ -16384,7 +16384,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
16384
16384
|
const words = str.split(" ");
|
|
16385
16385
|
let last = words.length;
|
|
16386
16386
|
while (last > 0) {
|
|
16387
|
-
if (
|
|
16387
|
+
if (stringWidth2(words[last - 1]) > 0) {
|
|
16388
16388
|
break;
|
|
16389
16389
|
}
|
|
16390
16390
|
last--;
|
|
@@ -16407,7 +16407,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
16407
16407
|
if (options.trim !== false) {
|
|
16408
16408
|
rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
|
|
16409
16409
|
}
|
|
16410
|
-
let rowLength =
|
|
16410
|
+
let rowLength = stringWidth2(rows[rows.length - 1]);
|
|
16411
16411
|
if (index !== 0) {
|
|
16412
16412
|
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
16413
16413
|
rows.push("");
|
|
@@ -16468,6 +16468,53 @@ var require_wrap_ansi = __commonJS({
|
|
|
16468
16468
|
}
|
|
16469
16469
|
});
|
|
16470
16470
|
|
|
16471
|
+
// node_modules/inquirer/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
16472
|
+
var require_emoji_regex2 = __commonJS({
|
|
16473
|
+
"node_modules/inquirer/node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
|
|
16474
|
+
"use strict";
|
|
16475
|
+
module.exports = function() {
|
|
16476
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
16477
|
+
};
|
|
16478
|
+
}
|
|
16479
|
+
});
|
|
16480
|
+
|
|
16481
|
+
// node_modules/inquirer/node_modules/string-width/index.js
|
|
16482
|
+
var require_string_width2 = __commonJS({
|
|
16483
|
+
"node_modules/inquirer/node_modules/string-width/index.js"(exports, module) {
|
|
16484
|
+
"use strict";
|
|
16485
|
+
var stripAnsi2 = require_strip_ansi();
|
|
16486
|
+
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
16487
|
+
var emojiRegex2 = require_emoji_regex2();
|
|
16488
|
+
var stringWidth2 = (string4) => {
|
|
16489
|
+
if (typeof string4 !== "string" || string4.length === 0) {
|
|
16490
|
+
return 0;
|
|
16491
|
+
}
|
|
16492
|
+
string4 = stripAnsi2(string4);
|
|
16493
|
+
if (string4.length === 0) {
|
|
16494
|
+
return 0;
|
|
16495
|
+
}
|
|
16496
|
+
string4 = string4.replace(emojiRegex2(), " ");
|
|
16497
|
+
let width = 0;
|
|
16498
|
+
for (let i = 0; i < string4.length; i++) {
|
|
16499
|
+
const code = string4.codePointAt(i);
|
|
16500
|
+
if (code <= 31 || code >= 127 && code <= 159) {
|
|
16501
|
+
continue;
|
|
16502
|
+
}
|
|
16503
|
+
if (code >= 768 && code <= 879) {
|
|
16504
|
+
continue;
|
|
16505
|
+
}
|
|
16506
|
+
if (code > 65535) {
|
|
16507
|
+
i++;
|
|
16508
|
+
}
|
|
16509
|
+
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
16510
|
+
}
|
|
16511
|
+
return width;
|
|
16512
|
+
};
|
|
16513
|
+
module.exports = stringWidth2;
|
|
16514
|
+
module.exports.default = stringWidth2;
|
|
16515
|
+
}
|
|
16516
|
+
});
|
|
16517
|
+
|
|
16471
16518
|
// node_modules/cli-spinners/spinners.json
|
|
16472
16519
|
var require_spinners = __commonJS({
|
|
16473
16520
|
"node_modules/cli-spinners/spinners.json"(exports, module) {
|
|
@@ -18131,19 +18178,19 @@ var require_is_unicode_supported = __commonJS({
|
|
|
18131
18178
|
var require_log_symbols = __commonJS({
|
|
18132
18179
|
"node_modules/log-symbols/index.js"(exports, module) {
|
|
18133
18180
|
"use strict";
|
|
18134
|
-
var
|
|
18181
|
+
var chalk10 = require_source();
|
|
18135
18182
|
var isUnicodeSupported = require_is_unicode_supported();
|
|
18136
18183
|
var main = {
|
|
18137
|
-
info:
|
|
18138
|
-
success:
|
|
18139
|
-
warning:
|
|
18140
|
-
error:
|
|
18184
|
+
info: chalk10.blue("\u2139"),
|
|
18185
|
+
success: chalk10.green("\u2714"),
|
|
18186
|
+
warning: chalk10.yellow("\u26A0"),
|
|
18187
|
+
error: chalk10.red("\u2716")
|
|
18141
18188
|
};
|
|
18142
18189
|
var fallback = {
|
|
18143
|
-
info:
|
|
18144
|
-
success:
|
|
18145
|
-
warning:
|
|
18146
|
-
error:
|
|
18190
|
+
info: chalk10.blue("i"),
|
|
18191
|
+
success: chalk10.green("\u221A"),
|
|
18192
|
+
warning: chalk10.yellow("\u203C"),
|
|
18193
|
+
error: chalk10.red("\xD7")
|
|
18147
18194
|
};
|
|
18148
18195
|
module.exports = isUnicodeSupported() ? main : fallback;
|
|
18149
18196
|
}
|
|
@@ -21611,11 +21658,11 @@ var require_ora = __commonJS({
|
|
|
21611
21658
|
"node_modules/ora/index.js"(exports, module) {
|
|
21612
21659
|
"use strict";
|
|
21613
21660
|
var readline = __require("readline");
|
|
21614
|
-
var
|
|
21661
|
+
var chalk10 = require_source();
|
|
21615
21662
|
var cliCursor = require_cli_cursor();
|
|
21616
21663
|
var cliSpinners = require_cli_spinners();
|
|
21617
21664
|
var logSymbols = require_log_symbols();
|
|
21618
|
-
var
|
|
21665
|
+
var stripAnsi2 = require_strip_ansi();
|
|
21619
21666
|
var wcwidth = require_wcwidth();
|
|
21620
21667
|
var isInteractive = require_is_interactive();
|
|
21621
21668
|
var isUnicodeSupported = require_is_unicode_supported();
|
|
@@ -21782,7 +21829,7 @@ var require_ora = __commonJS({
|
|
|
21782
21829
|
const columns = this.stream.columns || 80;
|
|
21783
21830
|
const fullPrefixText = this.getFullPrefixText(this.prefixText, "-");
|
|
21784
21831
|
this.lineCount = 0;
|
|
21785
|
-
for (const line of
|
|
21832
|
+
for (const line of stripAnsi2(fullPrefixText + "--" + this[TEXT]).split("\n")) {
|
|
21786
21833
|
this.lineCount += Math.max(1, Math.ceil(wcwidth(line) / columns));
|
|
21787
21834
|
}
|
|
21788
21835
|
}
|
|
@@ -21808,7 +21855,7 @@ var require_ora = __commonJS({
|
|
|
21808
21855
|
const { frames } = this.spinner;
|
|
21809
21856
|
let frame = frames[this.frameIndex];
|
|
21810
21857
|
if (this.color) {
|
|
21811
|
-
frame =
|
|
21858
|
+
frame = chalk10[this.color](frame);
|
|
21812
21859
|
}
|
|
21813
21860
|
this.frameIndex = ++this.frameIndex % frames.length;
|
|
21814
21861
|
const fullPrefixText = typeof this.prefixText === "string" && this.prefixText !== "" ? this.prefixText + " " : "";
|
|
@@ -21938,8 +21985,8 @@ var require_screen_manager = __commonJS({
|
|
|
21938
21985
|
var util = require_readline();
|
|
21939
21986
|
var cliWidth = require_cli_width();
|
|
21940
21987
|
var wrapAnsi = require_wrap_ansi();
|
|
21941
|
-
var
|
|
21942
|
-
var
|
|
21988
|
+
var stripAnsi2 = require_strip_ansi();
|
|
21989
|
+
var stringWidth2 = require_string_width2();
|
|
21943
21990
|
var ora = require_ora();
|
|
21944
21991
|
function height(content) {
|
|
21945
21992
|
return content.split("\n").length;
|
|
@@ -21981,7 +22028,7 @@ var require_screen_manager = __commonJS({
|
|
|
21981
22028
|
this.rl.output.unmute();
|
|
21982
22029
|
this.clean(this.extraLinesUnderPrompt);
|
|
21983
22030
|
const promptLine = lastLine(content);
|
|
21984
|
-
const rawPromptLine =
|
|
22031
|
+
const rawPromptLine = stripAnsi2(promptLine);
|
|
21985
22032
|
let prompt = rawPromptLine;
|
|
21986
22033
|
if (this.rl.line.length) {
|
|
21987
22034
|
prompt = prompt.slice(0, -this.rl.line.length);
|
|
@@ -22003,7 +22050,7 @@ var require_screen_manager = __commonJS({
|
|
|
22003
22050
|
if (bottomContentHeight > 0) {
|
|
22004
22051
|
util.up(this.rl, bottomContentHeight);
|
|
22005
22052
|
}
|
|
22006
|
-
util.left(this.rl,
|
|
22053
|
+
util.left(this.rl, stringWidth2(lastLine(fullContent)));
|
|
22007
22054
|
if (cursorPos.cols > 0) {
|
|
22008
22055
|
util.right(this.rl, cursorPos.cols);
|
|
22009
22056
|
}
|
|
@@ -22061,7 +22108,7 @@ var require_base = __commonJS({
|
|
|
22061
22108
|
defaults: require_defaults(),
|
|
22062
22109
|
clone: require_clone()
|
|
22063
22110
|
};
|
|
22064
|
-
var
|
|
22111
|
+
var chalk10 = require_source();
|
|
22065
22112
|
var runAsync = require_run_async();
|
|
22066
22113
|
var { filter, flatMap, share, take, takeUntil } = require_operators();
|
|
22067
22114
|
var Choices = require_choices();
|
|
@@ -22079,7 +22126,7 @@ var require_base = __commonJS({
|
|
|
22079
22126
|
filteringText: "",
|
|
22080
22127
|
when: () => true,
|
|
22081
22128
|
suffix: "",
|
|
22082
|
-
prefix:
|
|
22129
|
+
prefix: chalk10.green("?")
|
|
22083
22130
|
});
|
|
22084
22131
|
if (!this.opt.name) {
|
|
22085
22132
|
this.throwParamError("name");
|
|
@@ -22130,7 +22177,7 @@ var require_base = __commonJS({
|
|
|
22130
22177
|
*/
|
|
22131
22178
|
handleSubmitEvents(submit) {
|
|
22132
22179
|
const self2 = this;
|
|
22133
|
-
const
|
|
22180
|
+
const validate2 = runAsync(this.opt.validate);
|
|
22134
22181
|
const asyncFilter = runAsync(this.opt.filter);
|
|
22135
22182
|
const validation = submit.pipe(
|
|
22136
22183
|
flatMap((value) => {
|
|
@@ -22138,7 +22185,7 @@ var require_base = __commonJS({
|
|
|
22138
22185
|
return asyncFilter(value, self2.answers).then(
|
|
22139
22186
|
(filteredValue) => {
|
|
22140
22187
|
this.startSpinner(filteredValue, this.opt.validatingText);
|
|
22141
|
-
return
|
|
22188
|
+
return validate2(filteredValue, self2.answers).then(
|
|
22142
22189
|
(isValid) => ({ isValid, value: filteredValue }),
|
|
22143
22190
|
(err) => ({ isValid: err, value: filteredValue })
|
|
22144
22191
|
);
|
|
@@ -22180,12 +22227,12 @@ var require_base = __commonJS({
|
|
|
22180
22227
|
* @return {String} prompt question string
|
|
22181
22228
|
*/
|
|
22182
22229
|
getQuestion() {
|
|
22183
|
-
let message = (this.opt.prefix ? this.opt.prefix + " " : "") +
|
|
22230
|
+
let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk10.bold(this.opt.message) + this.opt.suffix + chalk10.reset(" ");
|
|
22184
22231
|
if (this.opt.default != null && this.status !== "touched" && this.status !== "answered") {
|
|
22185
22232
|
if (this.opt.type === "password") {
|
|
22186
|
-
message +=
|
|
22233
|
+
message += chalk10.italic.dim("[hidden] ");
|
|
22187
22234
|
} else {
|
|
22188
|
-
message +=
|
|
22235
|
+
message += chalk10.dim("(" + this.opt.default + ") ");
|
|
22189
22236
|
}
|
|
22190
22237
|
}
|
|
22191
22238
|
return message;
|
|
@@ -22247,7 +22294,7 @@ var require_events = __commonJS({
|
|
|
22247
22294
|
var require_paginator = __commonJS({
|
|
22248
22295
|
"node_modules/inquirer/lib/utils/paginator.js"(exports, module) {
|
|
22249
22296
|
"use strict";
|
|
22250
|
-
var
|
|
22297
|
+
var chalk10 = require_source();
|
|
22251
22298
|
var Paginator = class {
|
|
22252
22299
|
/**
|
|
22253
22300
|
* @param {import("./screen-manager")} [screen]
|
|
@@ -22272,7 +22319,7 @@ var require_paginator = __commonJS({
|
|
|
22272
22319
|
}
|
|
22273
22320
|
const visibleLines = this.isInfinite ? this.getInfiniteLines(lines, active, pageSize) : this.getFiniteLines(lines, active, pageSize);
|
|
22274
22321
|
this.lastIndex = active;
|
|
22275
|
-
return visibleLines.join("\n") + "\n" +
|
|
22322
|
+
return visibleLines.join("\n") + "\n" + chalk10.dim("(Move up and down to reveal more choices)");
|
|
22276
22323
|
}
|
|
22277
22324
|
getInfiniteLines(lines, active, pageSize) {
|
|
22278
22325
|
if (this.pointer === void 0) {
|
|
@@ -22328,7 +22375,7 @@ var require_incrementListIndex = __commonJS({
|
|
|
22328
22375
|
var require_list = __commonJS({
|
|
22329
22376
|
"node_modules/inquirer/lib/prompts/list.js"(exports, module) {
|
|
22330
22377
|
"use strict";
|
|
22331
|
-
var
|
|
22378
|
+
var chalk10 = require_source();
|
|
22332
22379
|
var figures = require_figures();
|
|
22333
22380
|
var cliCursor = require_cli_cursor();
|
|
22334
22381
|
var runAsync = require_run_async();
|
|
@@ -22386,10 +22433,10 @@ var require_list = __commonJS({
|
|
|
22386
22433
|
render() {
|
|
22387
22434
|
let message = this.getQuestion();
|
|
22388
22435
|
if (this.firstRender) {
|
|
22389
|
-
message +=
|
|
22436
|
+
message += chalk10.dim("(Use arrow keys)");
|
|
22390
22437
|
}
|
|
22391
22438
|
if (this.status === "answered") {
|
|
22392
|
-
message +=
|
|
22439
|
+
message += chalk10.cyan(this.opt.choices.getChoice(this.selected).short);
|
|
22393
22440
|
} else {
|
|
22394
22441
|
const choicesStr = listRender(this.opt.choices, this.selected);
|
|
22395
22442
|
const indexPosition = this.opt.choices.indexOf(
|
|
@@ -22464,7 +22511,7 @@ var require_list = __commonJS({
|
|
|
22464
22511
|
const isSelected = i - separatorOffset === pointer;
|
|
22465
22512
|
let line = (isSelected ? figures.pointer + " " : " ") + choice.name;
|
|
22466
22513
|
if (isSelected) {
|
|
22467
|
-
line =
|
|
22514
|
+
line = chalk10.cyan(line);
|
|
22468
22515
|
}
|
|
22469
22516
|
output += line + " \n";
|
|
22470
22517
|
});
|
|
@@ -22478,7 +22525,7 @@ var require_list = __commonJS({
|
|
|
22478
22525
|
var require_input = __commonJS({
|
|
22479
22526
|
"node_modules/inquirer/lib/prompts/input.js"(exports, module) {
|
|
22480
22527
|
"use strict";
|
|
22481
|
-
var
|
|
22528
|
+
var chalk10 = require_source();
|
|
22482
22529
|
var { map: map2, takeUntil } = require_operators();
|
|
22483
22530
|
var Base = require_base();
|
|
22484
22531
|
var observe = require_events();
|
|
@@ -22517,10 +22564,10 @@ var require_input = __commonJS({
|
|
|
22517
22564
|
if (transformer) {
|
|
22518
22565
|
message += transformer(appendContent, this.answers, { isFinal });
|
|
22519
22566
|
} else {
|
|
22520
|
-
message += isFinal ?
|
|
22567
|
+
message += isFinal ? chalk10.cyan(appendContent) : appendContent;
|
|
22521
22568
|
}
|
|
22522
22569
|
if (error49) {
|
|
22523
|
-
bottomContent =
|
|
22570
|
+
bottomContent = chalk10.red(">> ") + error49;
|
|
22524
22571
|
}
|
|
22525
22572
|
this.screen.render(message, bottomContent);
|
|
22526
22573
|
}
|
|
@@ -22582,7 +22629,7 @@ var require_number = __commonJS({
|
|
|
22582
22629
|
var require_confirm = __commonJS({
|
|
22583
22630
|
"node_modules/inquirer/lib/prompts/confirm.js"(exports, module) {
|
|
22584
22631
|
"use strict";
|
|
22585
|
-
var
|
|
22632
|
+
var chalk10 = require_source();
|
|
22586
22633
|
var { take, takeUntil } = require_operators();
|
|
22587
22634
|
var Base = require_base();
|
|
22588
22635
|
var observe = require_events();
|
|
@@ -22624,7 +22671,7 @@ var require_confirm = __commonJS({
|
|
|
22624
22671
|
render(answer) {
|
|
22625
22672
|
let message = this.getQuestion();
|
|
22626
22673
|
if (typeof answer === "boolean") {
|
|
22627
|
-
message +=
|
|
22674
|
+
message += chalk10.cyan(answer ? "Yes" : "No");
|
|
22628
22675
|
} else {
|
|
22629
22676
|
message += this.rl.line;
|
|
22630
22677
|
}
|
|
@@ -22656,7 +22703,7 @@ var require_confirm = __commonJS({
|
|
|
22656
22703
|
var require_rawlist = __commonJS({
|
|
22657
22704
|
"node_modules/inquirer/lib/prompts/rawlist.js"(exports, module) {
|
|
22658
22705
|
"use strict";
|
|
22659
|
-
var
|
|
22706
|
+
var chalk10 = require_source();
|
|
22660
22707
|
var { map: map2, takeUntil } = require_operators();
|
|
22661
22708
|
var Base = require_base();
|
|
22662
22709
|
var Separator = require_separator();
|
|
@@ -22719,7 +22766,7 @@ var require_rawlist = __commonJS({
|
|
|
22719
22766
|
let message = this.getQuestion();
|
|
22720
22767
|
let bottomContent = "";
|
|
22721
22768
|
if (this.status === "answered") {
|
|
22722
|
-
message +=
|
|
22769
|
+
message += chalk10.cyan(this.opt.choices.getChoice(this.selected).short);
|
|
22723
22770
|
} else {
|
|
22724
22771
|
const choicesStr = renderChoices(this.opt.choices, this.selected);
|
|
22725
22772
|
message += "\n" + this.paginator.paginate(choicesStr, this.selected, this.opt.pageSize);
|
|
@@ -22727,7 +22774,7 @@ var require_rawlist = __commonJS({
|
|
|
22727
22774
|
}
|
|
22728
22775
|
message += this.rl.line;
|
|
22729
22776
|
if (error49) {
|
|
22730
|
-
bottomContent = "\n" +
|
|
22777
|
+
bottomContent = "\n" + chalk10.red(">> ") + error49;
|
|
22731
22778
|
}
|
|
22732
22779
|
this.screen.render(message, bottomContent);
|
|
22733
22780
|
}
|
|
@@ -22810,7 +22857,7 @@ var require_rawlist = __commonJS({
|
|
|
22810
22857
|
const index = i - separatorOffset;
|
|
22811
22858
|
let display = index + 1 + ") " + choice.name;
|
|
22812
22859
|
if (index === pointer) {
|
|
22813
|
-
display =
|
|
22860
|
+
display = chalk10.cyan(display);
|
|
22814
22861
|
}
|
|
22815
22862
|
output += display;
|
|
22816
22863
|
});
|
|
@@ -22824,7 +22871,7 @@ var require_rawlist = __commonJS({
|
|
|
22824
22871
|
var require_expand2 = __commonJS({
|
|
22825
22872
|
"node_modules/inquirer/lib/prompts/expand.js"(exports, module) {
|
|
22826
22873
|
"use strict";
|
|
22827
|
-
var
|
|
22874
|
+
var chalk10 = require_source();
|
|
22828
22875
|
var { map: map2, takeUntil } = require_operators();
|
|
22829
22876
|
var Base = require_base();
|
|
22830
22877
|
var Separator = require_separator();
|
|
@@ -22876,7 +22923,7 @@ var require_expand2 = __commonJS({
|
|
|
22876
22923
|
let message = this.getQuestion();
|
|
22877
22924
|
let bottomContent = "";
|
|
22878
22925
|
if (this.status === "answered") {
|
|
22879
|
-
message +=
|
|
22926
|
+
message += chalk10.cyan(this.answer);
|
|
22880
22927
|
} else if (this.status === "expanded") {
|
|
22881
22928
|
const choicesStr = renderChoices(this.opt.choices, this.selectedKey);
|
|
22882
22929
|
message += this.paginator.paginate(choicesStr, this.selectedKey, this.opt.pageSize);
|
|
@@ -22884,10 +22931,10 @@ var require_expand2 = __commonJS({
|
|
|
22884
22931
|
}
|
|
22885
22932
|
message += this.rl.line;
|
|
22886
22933
|
if (error49) {
|
|
22887
|
-
bottomContent =
|
|
22934
|
+
bottomContent = chalk10.red(">> ") + error49;
|
|
22888
22935
|
}
|
|
22889
22936
|
if (hint2) {
|
|
22890
|
-
bottomContent =
|
|
22937
|
+
bottomContent = chalk10.cyan(">> ") + hint2;
|
|
22891
22938
|
}
|
|
22892
22939
|
this.screen.render(message, bottomContent);
|
|
22893
22940
|
}
|
|
@@ -22915,7 +22962,7 @@ var require_expand2 = __commonJS({
|
|
|
22915
22962
|
}
|
|
22916
22963
|
let choiceStr = choice.key + ") " + choice.name;
|
|
22917
22964
|
if (this.selectedKey === choice.key) {
|
|
22918
|
-
choiceStr =
|
|
22965
|
+
choiceStr = chalk10.cyan(choiceStr);
|
|
22919
22966
|
}
|
|
22920
22967
|
output += choiceStr;
|
|
22921
22968
|
});
|
|
@@ -23017,7 +23064,7 @@ var require_expand2 = __commonJS({
|
|
|
23017
23064
|
}
|
|
23018
23065
|
let choiceStr = choice.key + ") " + choice.name;
|
|
23019
23066
|
if (pointer === choice.key) {
|
|
23020
|
-
choiceStr =
|
|
23067
|
+
choiceStr = chalk10.cyan(choiceStr);
|
|
23021
23068
|
}
|
|
23022
23069
|
output += choiceStr;
|
|
23023
23070
|
});
|
|
@@ -23031,7 +23078,7 @@ var require_expand2 = __commonJS({
|
|
|
23031
23078
|
var require_checkbox = __commonJS({
|
|
23032
23079
|
"node_modules/inquirer/lib/prompts/checkbox.js"(exports, module) {
|
|
23033
23080
|
"use strict";
|
|
23034
|
-
var
|
|
23081
|
+
var chalk10 = require_source();
|
|
23035
23082
|
var cliCursor = require_cli_cursor();
|
|
23036
23083
|
var figures = require_figures();
|
|
23037
23084
|
var { map: map2, takeUntil } = require_operators();
|
|
@@ -23089,10 +23136,10 @@ var require_checkbox = __commonJS({
|
|
|
23089
23136
|
let message = this.getQuestion();
|
|
23090
23137
|
let bottomContent = "";
|
|
23091
23138
|
if (!this.dontShowHints) {
|
|
23092
|
-
message += "(Press " +
|
|
23139
|
+
message += "(Press " + chalk10.cyan.bold("<space>") + " to select, " + chalk10.cyan.bold("<a>") + " to toggle all, " + chalk10.cyan.bold("<i>") + " to invert selection, and " + chalk10.cyan.bold("<enter>") + " to proceed)";
|
|
23093
23140
|
}
|
|
23094
23141
|
if (this.status === "answered") {
|
|
23095
|
-
message +=
|
|
23142
|
+
message += chalk10.cyan(this.selection.join(", "));
|
|
23096
23143
|
} else {
|
|
23097
23144
|
const choicesStr = renderChoices(this.opt.choices, this.pointer);
|
|
23098
23145
|
const indexPosition = this.opt.choices.indexOf(
|
|
@@ -23115,7 +23162,7 @@ var require_checkbox = __commonJS({
|
|
|
23115
23162
|
message += "\n" + this.paginator.paginate(choicesStr, realIndexPosition, this.opt.pageSize);
|
|
23116
23163
|
}
|
|
23117
23164
|
if (error49) {
|
|
23118
|
-
bottomContent =
|
|
23165
|
+
bottomContent = chalk10.red(">> ") + error49;
|
|
23119
23166
|
}
|
|
23120
23167
|
this.screen.render(message, bottomContent);
|
|
23121
23168
|
}
|
|
@@ -23201,7 +23248,7 @@ var require_checkbox = __commonJS({
|
|
|
23201
23248
|
} else {
|
|
23202
23249
|
const line = getCheckbox(choice.checked) + " " + choice.name;
|
|
23203
23250
|
if (i - separatorOffset === pointer) {
|
|
23204
|
-
output +=
|
|
23251
|
+
output += chalk10.cyan(figures.pointer + line);
|
|
23205
23252
|
} else {
|
|
23206
23253
|
output += " " + line;
|
|
23207
23254
|
}
|
|
@@ -23211,7 +23258,7 @@ var require_checkbox = __commonJS({
|
|
|
23211
23258
|
return output.replace(/\n$/, "");
|
|
23212
23259
|
}
|
|
23213
23260
|
function getCheckbox(checked) {
|
|
23214
|
-
return checked ?
|
|
23261
|
+
return checked ? chalk10.green(figures.radioOn) : figures.radioOff;
|
|
23215
23262
|
}
|
|
23216
23263
|
module.exports = CheckboxPrompt;
|
|
23217
23264
|
}
|
|
@@ -23221,7 +23268,7 @@ var require_checkbox = __commonJS({
|
|
|
23221
23268
|
var require_password = __commonJS({
|
|
23222
23269
|
"node_modules/inquirer/lib/prompts/password.js"(exports, module) {
|
|
23223
23270
|
"use strict";
|
|
23224
|
-
var
|
|
23271
|
+
var chalk10 = require_source();
|
|
23225
23272
|
var { map: map2, takeUntil } = require_operators();
|
|
23226
23273
|
var Base = require_base();
|
|
23227
23274
|
var observe = require_events();
|
|
@@ -23263,15 +23310,15 @@ var require_password = __commonJS({
|
|
|
23263
23310
|
message += this.getMaskedValue(this.rl.line || "");
|
|
23264
23311
|
}
|
|
23265
23312
|
if (error49) {
|
|
23266
|
-
bottomContent = "\n" +
|
|
23313
|
+
bottomContent = "\n" + chalk10.red(">> ") + error49;
|
|
23267
23314
|
}
|
|
23268
23315
|
this.screen.render(message, bottomContent);
|
|
23269
23316
|
}
|
|
23270
23317
|
getMaskedValue(value) {
|
|
23271
23318
|
if (this.status === "answered") {
|
|
23272
|
-
return this.opt.mask ?
|
|
23319
|
+
return this.opt.mask ? chalk10.cyan(mask(value, this.opt.mask)) : chalk10.italic.dim("[hidden]");
|
|
23273
23320
|
}
|
|
23274
|
-
return this.opt.mask ? mask(value, this.opt.mask) :
|
|
23321
|
+
return this.opt.mask ? mask(value, this.opt.mask) : chalk10.italic.dim("[input is hidden] ");
|
|
23275
23322
|
}
|
|
23276
23323
|
/**
|
|
23277
23324
|
* Mask value during async filter/validation.
|
|
@@ -32993,7 +33040,7 @@ var require_commonjs = __commonJS({
|
|
|
32993
33040
|
var require_editor = __commonJS({
|
|
32994
33041
|
"node_modules/inquirer/lib/prompts/editor.js"(exports, module) {
|
|
32995
33042
|
"use strict";
|
|
32996
|
-
var
|
|
33043
|
+
var chalk10 = require_source();
|
|
32997
33044
|
var { editAsync } = require_commonjs();
|
|
32998
33045
|
var Base = require_base();
|
|
32999
33046
|
var observe = require_events();
|
|
@@ -33025,12 +33072,12 @@ var require_editor = __commonJS({
|
|
|
33025
33072
|
let bottomContent = "";
|
|
33026
33073
|
let message = this.getQuestion();
|
|
33027
33074
|
if (this.status === "answered") {
|
|
33028
|
-
message +=
|
|
33075
|
+
message += chalk10.dim("Received");
|
|
33029
33076
|
} else {
|
|
33030
|
-
message +=
|
|
33077
|
+
message += chalk10.dim("Press <enter> to launch your preferred editor.");
|
|
33031
33078
|
}
|
|
33032
33079
|
if (error49) {
|
|
33033
|
-
bottomContent =
|
|
33080
|
+
bottomContent = chalk10.red(">> ") + error49;
|
|
33034
33081
|
}
|
|
33035
33082
|
this.screen.render(message, bottomContent);
|
|
33036
33083
|
}
|
|
@@ -33641,8 +33688,8 @@ var require_help = __commonJS({
|
|
|
33641
33688
|
const leadingStr = str.slice(0, indent);
|
|
33642
33689
|
const columnText = str.slice(indent);
|
|
33643
33690
|
const indentString = " ".repeat(indent);
|
|
33644
|
-
const
|
|
33645
|
-
const lines = columnText.match(
|
|
33691
|
+
const regex2 = new RegExp(".{1," + (columnWidth - 1) + "}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)", "g");
|
|
33692
|
+
const lines = columnText.match(regex2) || [];
|
|
33646
33693
|
return leadingStr + lines.map((line, i) => {
|
|
33647
33694
|
if (line.slice(-1) === "\n") {
|
|
33648
33695
|
line = line.slice(0, line.length - 1);
|
|
@@ -34519,9 +34566,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
34519
34566
|
if (typeof fn2 === "function") {
|
|
34520
34567
|
option.default(defaultValue).argParser(fn2);
|
|
34521
34568
|
} else if (fn2 instanceof RegExp) {
|
|
34522
|
-
const
|
|
34569
|
+
const regex2 = fn2;
|
|
34523
34570
|
fn2 = (val, def) => {
|
|
34524
|
-
const m2 =
|
|
34571
|
+
const m2 = regex2.exec(val);
|
|
34525
34572
|
return m2 ? m2[0] : def;
|
|
34526
34573
|
};
|
|
34527
34574
|
option.default(defaultValue).argParser(fn2);
|
|
@@ -37777,6 +37824,53 @@ var require_terminal = __commonJS({
|
|
|
37777
37824
|
}
|
|
37778
37825
|
});
|
|
37779
37826
|
|
|
37827
|
+
// node_modules/cli-progress/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
37828
|
+
var require_emoji_regex3 = __commonJS({
|
|
37829
|
+
"node_modules/cli-progress/node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
|
|
37830
|
+
"use strict";
|
|
37831
|
+
module.exports = function() {
|
|
37832
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
37833
|
+
};
|
|
37834
|
+
}
|
|
37835
|
+
});
|
|
37836
|
+
|
|
37837
|
+
// node_modules/cli-progress/node_modules/string-width/index.js
|
|
37838
|
+
var require_string_width3 = __commonJS({
|
|
37839
|
+
"node_modules/cli-progress/node_modules/string-width/index.js"(exports, module) {
|
|
37840
|
+
"use strict";
|
|
37841
|
+
var stripAnsi2 = require_strip_ansi();
|
|
37842
|
+
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
37843
|
+
var emojiRegex2 = require_emoji_regex3();
|
|
37844
|
+
var stringWidth2 = (string4) => {
|
|
37845
|
+
if (typeof string4 !== "string" || string4.length === 0) {
|
|
37846
|
+
return 0;
|
|
37847
|
+
}
|
|
37848
|
+
string4 = stripAnsi2(string4);
|
|
37849
|
+
if (string4.length === 0) {
|
|
37850
|
+
return 0;
|
|
37851
|
+
}
|
|
37852
|
+
string4 = string4.replace(emojiRegex2(), " ");
|
|
37853
|
+
let width = 0;
|
|
37854
|
+
for (let i = 0; i < string4.length; i++) {
|
|
37855
|
+
const code = string4.codePointAt(i);
|
|
37856
|
+
if (code <= 31 || code >= 127 && code <= 159) {
|
|
37857
|
+
continue;
|
|
37858
|
+
}
|
|
37859
|
+
if (code >= 768 && code <= 879) {
|
|
37860
|
+
continue;
|
|
37861
|
+
}
|
|
37862
|
+
if (code > 65535) {
|
|
37863
|
+
i++;
|
|
37864
|
+
}
|
|
37865
|
+
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
37866
|
+
}
|
|
37867
|
+
return width;
|
|
37868
|
+
};
|
|
37869
|
+
module.exports = stringWidth2;
|
|
37870
|
+
module.exports.default = stringWidth2;
|
|
37871
|
+
}
|
|
37872
|
+
});
|
|
37873
|
+
|
|
37780
37874
|
// node_modules/cli-progress/lib/format-value.js
|
|
37781
37875
|
var require_format_value = __commonJS({
|
|
37782
37876
|
"node_modules/cli-progress/lib/format-value.js"(exports, module) {
|
|
@@ -37838,7 +37932,7 @@ var require_format_time = __commonJS({
|
|
|
37838
37932
|
// node_modules/cli-progress/lib/formatter.js
|
|
37839
37933
|
var require_formatter = __commonJS({
|
|
37840
37934
|
"node_modules/cli-progress/lib/formatter.js"(exports, module) {
|
|
37841
|
-
var _stringWidth =
|
|
37935
|
+
var _stringWidth = require_string_width3();
|
|
37842
37936
|
var _defaultFormatValue = require_format_value();
|
|
37843
37937
|
var _defaultFormatBar = require_format_bar();
|
|
37844
37938
|
var _defaultFormatTime = require_format_time();
|
|
@@ -38614,8 +38708,8 @@ var require_ignore = __commonJS({
|
|
|
38614
38708
|
// It does not need to bind pattern
|
|
38615
38709
|
TRAILING_WILD_CARD_REPLACERS[mode]
|
|
38616
38710
|
);
|
|
38617
|
-
const
|
|
38618
|
-
return define2(this, key,
|
|
38711
|
+
const regex2 = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
|
|
38712
|
+
return define2(this, key, regex2);
|
|
38619
38713
|
}
|
|
38620
38714
|
};
|
|
38621
38715
|
var createRule = ({
|
|
@@ -38863,10 +38957,57 @@ var require_debug = __commonJS({
|
|
|
38863
38957
|
}
|
|
38864
38958
|
});
|
|
38865
38959
|
|
|
38960
|
+
// node_modules/cli-table3/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
38961
|
+
var require_emoji_regex4 = __commonJS({
|
|
38962
|
+
"node_modules/cli-table3/node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
|
|
38963
|
+
"use strict";
|
|
38964
|
+
module.exports = function() {
|
|
38965
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
38966
|
+
};
|
|
38967
|
+
}
|
|
38968
|
+
});
|
|
38969
|
+
|
|
38970
|
+
// node_modules/cli-table3/node_modules/string-width/index.js
|
|
38971
|
+
var require_string_width4 = __commonJS({
|
|
38972
|
+
"node_modules/cli-table3/node_modules/string-width/index.js"(exports, module) {
|
|
38973
|
+
"use strict";
|
|
38974
|
+
var stripAnsi2 = require_strip_ansi();
|
|
38975
|
+
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
38976
|
+
var emojiRegex2 = require_emoji_regex4();
|
|
38977
|
+
var stringWidth2 = (string4) => {
|
|
38978
|
+
if (typeof string4 !== "string" || string4.length === 0) {
|
|
38979
|
+
return 0;
|
|
38980
|
+
}
|
|
38981
|
+
string4 = stripAnsi2(string4);
|
|
38982
|
+
if (string4.length === 0) {
|
|
38983
|
+
return 0;
|
|
38984
|
+
}
|
|
38985
|
+
string4 = string4.replace(emojiRegex2(), " ");
|
|
38986
|
+
let width = 0;
|
|
38987
|
+
for (let i = 0; i < string4.length; i++) {
|
|
38988
|
+
const code = string4.codePointAt(i);
|
|
38989
|
+
if (code <= 31 || code >= 127 && code <= 159) {
|
|
38990
|
+
continue;
|
|
38991
|
+
}
|
|
38992
|
+
if (code >= 768 && code <= 879) {
|
|
38993
|
+
continue;
|
|
38994
|
+
}
|
|
38995
|
+
if (code > 65535) {
|
|
38996
|
+
i++;
|
|
38997
|
+
}
|
|
38998
|
+
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
38999
|
+
}
|
|
39000
|
+
return width;
|
|
39001
|
+
};
|
|
39002
|
+
module.exports = stringWidth2;
|
|
39003
|
+
module.exports.default = stringWidth2;
|
|
39004
|
+
}
|
|
39005
|
+
});
|
|
39006
|
+
|
|
38866
39007
|
// node_modules/cli-table3/src/utils.js
|
|
38867
39008
|
var require_utils3 = __commonJS({
|
|
38868
39009
|
"node_modules/cli-table3/src/utils.js"(exports, module) {
|
|
38869
|
-
var
|
|
39010
|
+
var stringWidth2 = require_string_width4();
|
|
38870
39011
|
function codeRegex(capture) {
|
|
38871
39012
|
return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
|
|
38872
39013
|
}
|
|
@@ -38875,7 +39016,7 @@ var require_utils3 = __commonJS({
|
|
|
38875
39016
|
let stripped = ("" + str).replace(code, "");
|
|
38876
39017
|
let split = stripped.split("\n");
|
|
38877
39018
|
return split.reduce(function(memo, s3) {
|
|
38878
|
-
return
|
|
39019
|
+
return stringWidth2(s3) > memo ? stringWidth2(s3) : memo;
|
|
38879
39020
|
}, 0);
|
|
38880
39021
|
}
|
|
38881
39022
|
function repeat(str, times) {
|
|
@@ -40538,6 +40679,15 @@ var require_cli_table3 = __commonJS({
|
|
|
40538
40679
|
}
|
|
40539
40680
|
});
|
|
40540
40681
|
|
|
40682
|
+
// node_modules/emoji-regex/index.js
|
|
40683
|
+
var require_emoji_regex5 = __commonJS({
|
|
40684
|
+
"node_modules/emoji-regex/index.js"(exports, module) {
|
|
40685
|
+
module.exports = () => {
|
|
40686
|
+
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
40687
|
+
};
|
|
40688
|
+
}
|
|
40689
|
+
});
|
|
40690
|
+
|
|
40541
40691
|
// node_modules/handlebars/dist/cjs/handlebars/utils.js
|
|
40542
40692
|
var require_utils4 = __commonJS({
|
|
40543
40693
|
"node_modules/handlebars/dist/cjs/handlebars/utils.js"(exports) {
|
|
@@ -46419,7 +46569,7 @@ var require_lib3 = __commonJS({
|
|
|
46419
46569
|
|
|
46420
46570
|
// lib/commands/push.ts
|
|
46421
46571
|
var import_dotenv = __toESM(require_main(), 1);
|
|
46422
|
-
var
|
|
46572
|
+
var import_chalk8 = __toESM(require_source(), 1);
|
|
46423
46573
|
var import_inquirer3 = __toESM(require_inquirer(), 1);
|
|
46424
46574
|
import fs4 from "fs";
|
|
46425
46575
|
import path2 from "path";
|
|
@@ -46470,7 +46620,7 @@ var id_default = ID;
|
|
|
46470
46620
|
// lib/constants.ts
|
|
46471
46621
|
var SDK_TITLE = "Appwrite";
|
|
46472
46622
|
var SDK_TITLE_LOWER = "appwrite";
|
|
46473
|
-
var SDK_VERSION = "17.
|
|
46623
|
+
var SDK_VERSION = "17.4.0";
|
|
46474
46624
|
var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
|
|
46475
46625
|
var EXECUTABLE_NAME = "appwrite";
|
|
46476
46626
|
var UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -48104,8 +48254,8 @@ var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][
|
|
|
48104
48254
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
48105
48255
|
function timeSource(args) {
|
|
48106
48256
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
48107
|
-
const
|
|
48108
|
-
return
|
|
48257
|
+
const regex2 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
48258
|
+
return regex2;
|
|
48109
48259
|
}
|
|
48110
48260
|
function time(args) {
|
|
48111
48261
|
return new RegExp(`^${timeSource(args)}$`);
|
|
@@ -48121,8 +48271,8 @@ function datetime(args) {
|
|
|
48121
48271
|
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
48122
48272
|
}
|
|
48123
48273
|
var string = (params) => {
|
|
48124
|
-
const
|
|
48125
|
-
return new RegExp(`^${
|
|
48274
|
+
const regex2 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
48275
|
+
return new RegExp(`^${regex2}$`);
|
|
48126
48276
|
};
|
|
48127
48277
|
var bigint = /^-?\d+n?$/;
|
|
48128
48278
|
var integer = /^-?\d+$/;
|
|
@@ -57768,9 +57918,9 @@ var stringProcessor = (schema, ctx, _json, _params) => {
|
|
|
57768
57918
|
json2.pattern = regexes[0].source;
|
|
57769
57919
|
else if (regexes.length > 1) {
|
|
57770
57920
|
json2.allOf = [
|
|
57771
|
-
...regexes.map((
|
|
57921
|
+
...regexes.map((regex2) => ({
|
|
57772
57922
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
57773
|
-
pattern:
|
|
57923
|
+
pattern: regex2.source
|
|
57774
57924
|
}))
|
|
57775
57925
|
];
|
|
57776
57926
|
}
|
|
@@ -58980,10 +59130,10 @@ function hex2(_params) {
|
|
|
58980
59130
|
function hash(alg, params) {
|
|
58981
59131
|
const enc = params?.enc ?? "hex";
|
|
58982
59132
|
const format = `${alg}_${enc}`;
|
|
58983
|
-
const
|
|
58984
|
-
if (!
|
|
59133
|
+
const regex2 = regexes_exports[format];
|
|
59134
|
+
if (!regex2)
|
|
58985
59135
|
throw new Error(`Unrecognized hash format: ${format}`);
|
|
58986
|
-
return _stringFormat(ZodCustomStringFormat, format,
|
|
59136
|
+
return _stringFormat(ZodCustomStringFormat, format, regex2, params);
|
|
58987
59137
|
}
|
|
58988
59138
|
var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
58989
59139
|
$ZodNumber.init(inst, def);
|
|
@@ -60720,6 +60870,34 @@ var createSettingsObject = (project) => {
|
|
|
60720
60870
|
}
|
|
60721
60871
|
};
|
|
60722
60872
|
};
|
|
60873
|
+
var getSafeDirectoryName = (value, fallback) => {
|
|
60874
|
+
const normalized = value.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
60875
|
+
return normalized || fallback;
|
|
60876
|
+
};
|
|
60877
|
+
var getConsoleBaseUrl = (endpoint) => {
|
|
60878
|
+
return endpoint.replace(/\/v1\/?$/, "");
|
|
60879
|
+
};
|
|
60880
|
+
var getConsoleProjectSlug = (endpoint, projectId) => {
|
|
60881
|
+
try {
|
|
60882
|
+
const hostname3 = new URL(endpoint).hostname;
|
|
60883
|
+
const isCloudHostname = hostname3 === "cloud.appwrite.io" || hostname3.endsWith(".cloud.appwrite.io");
|
|
60884
|
+
if (!isCloudHostname) {
|
|
60885
|
+
return `project-${projectId}`;
|
|
60886
|
+
}
|
|
60887
|
+
const firstSubdomain = hostname3.split(".")[0];
|
|
60888
|
+
return firstSubdomain.length === 3 ? `project-${firstSubdomain}-${projectId}` : `project-${projectId}`;
|
|
60889
|
+
} catch {
|
|
60890
|
+
return `project-${projectId}`;
|
|
60891
|
+
}
|
|
60892
|
+
};
|
|
60893
|
+
var getFunctionDeploymentConsoleUrl = (endpoint, projectId, functionId, deploymentId) => {
|
|
60894
|
+
const projectSlug = getConsoleProjectSlug(endpoint, projectId);
|
|
60895
|
+
return `${getConsoleBaseUrl(endpoint)}/console/${projectSlug}/functions/function-${functionId}/deployment-${deploymentId}`;
|
|
60896
|
+
};
|
|
60897
|
+
var getSiteDeploymentConsoleUrl = (endpoint, projectId, siteId, deploymentId) => {
|
|
60898
|
+
const projectSlug = getConsoleProjectSlug(endpoint, projectId);
|
|
60899
|
+
return `${getConsoleBaseUrl(endpoint)}/console/${projectSlug}/sites/site-${siteId}/deployments/deployment-${deploymentId}`;
|
|
60900
|
+
};
|
|
60723
60901
|
var checkDeployConditions = (localConfig2) => {
|
|
60724
60902
|
if (localConfig2.keys().length === 0) {
|
|
60725
60903
|
throw new Error(
|
|
@@ -65003,7 +65181,7 @@ var Client = class _Client {
|
|
|
65003
65181
|
"x-sdk-name": "Console",
|
|
65004
65182
|
"x-sdk-platform": "console",
|
|
65005
65183
|
"x-sdk-language": "web",
|
|
65006
|
-
"x-sdk-version": "8.
|
|
65184
|
+
"x-sdk-version": "8.3.0",
|
|
65007
65185
|
"X-Appwrite-Response-Format": "1.9.0"
|
|
65008
65186
|
};
|
|
65009
65187
|
this.realtime = {
|
|
@@ -73197,6 +73375,146 @@ var Organizations = class {
|
|
|
73197
73375
|
};
|
|
73198
73376
|
return this.client.call("delete", uri, apiHeaders, payload);
|
|
73199
73377
|
}
|
|
73378
|
+
listAddons(paramsOrFirst) {
|
|
73379
|
+
let params;
|
|
73380
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73381
|
+
params = paramsOrFirst || {};
|
|
73382
|
+
} else {
|
|
73383
|
+
params = {
|
|
73384
|
+
organizationId: paramsOrFirst
|
|
73385
|
+
};
|
|
73386
|
+
}
|
|
73387
|
+
const organizationId = params.organizationId;
|
|
73388
|
+
if (typeof organizationId === "undefined") {
|
|
73389
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73390
|
+
}
|
|
73391
|
+
const apiPath = "/organizations/{organizationId}/addons".replace("{organizationId}", organizationId);
|
|
73392
|
+
const payload = {};
|
|
73393
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73394
|
+
const apiHeaders = {};
|
|
73395
|
+
return this.client.call("get", uri, apiHeaders, payload);
|
|
73396
|
+
}
|
|
73397
|
+
createBaaAddon(paramsOrFirst) {
|
|
73398
|
+
let params;
|
|
73399
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73400
|
+
params = paramsOrFirst || {};
|
|
73401
|
+
} else {
|
|
73402
|
+
params = {
|
|
73403
|
+
organizationId: paramsOrFirst
|
|
73404
|
+
};
|
|
73405
|
+
}
|
|
73406
|
+
const organizationId = params.organizationId;
|
|
73407
|
+
if (typeof organizationId === "undefined") {
|
|
73408
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73409
|
+
}
|
|
73410
|
+
const apiPath = "/organizations/{organizationId}/addons/baa".replace("{organizationId}", organizationId);
|
|
73411
|
+
const payload = {};
|
|
73412
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73413
|
+
const apiHeaders = {
|
|
73414
|
+
"content-type": "application/json"
|
|
73415
|
+
};
|
|
73416
|
+
return this.client.call("post", uri, apiHeaders, payload);
|
|
73417
|
+
}
|
|
73418
|
+
getAddon(paramsOrFirst, ...rest) {
|
|
73419
|
+
let params;
|
|
73420
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73421
|
+
params = paramsOrFirst || {};
|
|
73422
|
+
} else {
|
|
73423
|
+
params = {
|
|
73424
|
+
organizationId: paramsOrFirst,
|
|
73425
|
+
addonId: rest[0]
|
|
73426
|
+
};
|
|
73427
|
+
}
|
|
73428
|
+
const organizationId = params.organizationId;
|
|
73429
|
+
const addonId = params.addonId;
|
|
73430
|
+
if (typeof organizationId === "undefined") {
|
|
73431
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73432
|
+
}
|
|
73433
|
+
if (typeof addonId === "undefined") {
|
|
73434
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
73435
|
+
}
|
|
73436
|
+
const apiPath = "/organizations/{organizationId}/addons/{addonId}".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
|
|
73437
|
+
const payload = {};
|
|
73438
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73439
|
+
const apiHeaders = {};
|
|
73440
|
+
return this.client.call("get", uri, apiHeaders, payload);
|
|
73441
|
+
}
|
|
73442
|
+
deleteAddon(paramsOrFirst, ...rest) {
|
|
73443
|
+
let params;
|
|
73444
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73445
|
+
params = paramsOrFirst || {};
|
|
73446
|
+
} else {
|
|
73447
|
+
params = {
|
|
73448
|
+
organizationId: paramsOrFirst,
|
|
73449
|
+
addonId: rest[0]
|
|
73450
|
+
};
|
|
73451
|
+
}
|
|
73452
|
+
const organizationId = params.organizationId;
|
|
73453
|
+
const addonId = params.addonId;
|
|
73454
|
+
if (typeof organizationId === "undefined") {
|
|
73455
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73456
|
+
}
|
|
73457
|
+
if (typeof addonId === "undefined") {
|
|
73458
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
73459
|
+
}
|
|
73460
|
+
const apiPath = "/organizations/{organizationId}/addons/{addonId}".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
|
|
73461
|
+
const payload = {};
|
|
73462
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73463
|
+
const apiHeaders = {
|
|
73464
|
+
"content-type": "application/json"
|
|
73465
|
+
};
|
|
73466
|
+
return this.client.call("delete", uri, apiHeaders, payload);
|
|
73467
|
+
}
|
|
73468
|
+
confirmAddonPayment(paramsOrFirst, ...rest) {
|
|
73469
|
+
let params;
|
|
73470
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73471
|
+
params = paramsOrFirst || {};
|
|
73472
|
+
} else {
|
|
73473
|
+
params = {
|
|
73474
|
+
organizationId: paramsOrFirst,
|
|
73475
|
+
addonId: rest[0]
|
|
73476
|
+
};
|
|
73477
|
+
}
|
|
73478
|
+
const organizationId = params.organizationId;
|
|
73479
|
+
const addonId = params.addonId;
|
|
73480
|
+
if (typeof organizationId === "undefined") {
|
|
73481
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73482
|
+
}
|
|
73483
|
+
if (typeof addonId === "undefined") {
|
|
73484
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
73485
|
+
}
|
|
73486
|
+
const apiPath = "/organizations/{organizationId}/addons/{addonId}/confirmations".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
|
|
73487
|
+
const payload = {};
|
|
73488
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73489
|
+
const apiHeaders = {
|
|
73490
|
+
"content-type": "application/json"
|
|
73491
|
+
};
|
|
73492
|
+
return this.client.call("post", uri, apiHeaders, payload);
|
|
73493
|
+
}
|
|
73494
|
+
getAddonPrice(paramsOrFirst, ...rest) {
|
|
73495
|
+
let params;
|
|
73496
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73497
|
+
params = paramsOrFirst || {};
|
|
73498
|
+
} else {
|
|
73499
|
+
params = {
|
|
73500
|
+
organizationId: paramsOrFirst,
|
|
73501
|
+
addon: rest[0]
|
|
73502
|
+
};
|
|
73503
|
+
}
|
|
73504
|
+
const organizationId = params.organizationId;
|
|
73505
|
+
const addon = params.addon;
|
|
73506
|
+
if (typeof organizationId === "undefined") {
|
|
73507
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73508
|
+
}
|
|
73509
|
+
if (typeof addon === "undefined") {
|
|
73510
|
+
throw new AppwriteException('Missing required parameter: "addon"');
|
|
73511
|
+
}
|
|
73512
|
+
const apiPath = "/organizations/{organizationId}/addons/{addon}/price".replace("{organizationId}", organizationId).replace("{addon}", addon);
|
|
73513
|
+
const payload = {};
|
|
73514
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73515
|
+
const apiHeaders = {};
|
|
73516
|
+
return this.client.call("get", uri, apiHeaders, payload);
|
|
73517
|
+
}
|
|
73200
73518
|
listAggregations(paramsOrFirst, ...rest) {
|
|
73201
73519
|
let params;
|
|
73202
73520
|
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
@@ -83400,6 +83718,10 @@ var SupabaseMigrationResource;
|
|
|
83400
83718
|
SupabaseMigrationResource2["Bucket"] = "bucket";
|
|
83401
83719
|
SupabaseMigrationResource2["File"] = "file";
|
|
83402
83720
|
})(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
|
|
83721
|
+
var Addon;
|
|
83722
|
+
(function(Addon2) {
|
|
83723
|
+
Addon2["Baa"] = "baa";
|
|
83724
|
+
})(Addon || (Addon = {}));
|
|
83403
83725
|
var ProjectUsageRange;
|
|
83404
83726
|
(function(ProjectUsageRange2) {
|
|
83405
83727
|
ProjectUsageRange2["OneHour"] = "1h";
|
|
@@ -84070,7 +84392,7 @@ var DomainPurchaseStatus;
|
|
|
84070
84392
|
})(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
|
|
84071
84393
|
|
|
84072
84394
|
// lib/parser.ts
|
|
84073
|
-
var
|
|
84395
|
+
var import_chalk3 = __toESM(require_source(), 1);
|
|
84074
84396
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
84075
84397
|
|
|
84076
84398
|
// package.json
|
|
@@ -84079,7 +84401,7 @@ var package_default = {
|
|
|
84079
84401
|
type: "module",
|
|
84080
84402
|
homepage: "https://appwrite.io/support",
|
|
84081
84403
|
description: "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
84082
|
-
version: "17.
|
|
84404
|
+
version: "17.4.0",
|
|
84083
84405
|
license: "BSD-3-Clause",
|
|
84084
84406
|
main: "dist/index.cjs",
|
|
84085
84407
|
module: "dist/index.js",
|
|
@@ -84109,7 +84431,8 @@ var package_default = {
|
|
|
84109
84431
|
scripts: {
|
|
84110
84432
|
build: "npm run build:types && npm run build:runtime",
|
|
84111
84433
|
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
84112
|
-
"build:runtime": "npm run build:lib:
|
|
84434
|
+
"build:runtime": "npm run build:lib:runtime && npm run build:cli",
|
|
84435
|
+
"build:lib:runtime": "npm run build:lib:esm && npm run build:lib:cjs",
|
|
84113
84436
|
"build:lib:esm": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --loader:.hbs=text --outfile=dist/index.js",
|
|
84114
84437
|
"build:lib:cjs": "esbuild index.ts --bundle --platform=node --target=node18 --format=cjs --loader:.hbs=text --outfile=dist/index.cjs",
|
|
84115
84438
|
"build:cli": "esbuild cli.ts --bundle --platform=node --target=node18 --format=cjs --loader:.hbs=text --external:fsevents --outfile=dist/cli.cjs",
|
|
@@ -84126,7 +84449,7 @@ var package_default = {
|
|
|
84126
84449
|
"windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe"
|
|
84127
84450
|
},
|
|
84128
84451
|
dependencies: {
|
|
84129
|
-
"@appwrite.io/console": "~8.
|
|
84452
|
+
"@appwrite.io/console": "~8.3.0",
|
|
84130
84453
|
chalk: "4.1.2",
|
|
84131
84454
|
chokidar: "^3.6.0",
|
|
84132
84455
|
"cli-progress": "^3.12.0",
|
|
@@ -84139,6 +84462,7 @@ var package_default = {
|
|
|
84139
84462
|
inquirer: "^8.2.4",
|
|
84140
84463
|
"inquirer-search-list": "^1.2.6",
|
|
84141
84464
|
"json-bigint": "^1.0.0",
|
|
84465
|
+
"string-width": "^7.2.0",
|
|
84142
84466
|
tail: "^2.2.6",
|
|
84143
84467
|
tar: "^7.4.3",
|
|
84144
84468
|
undici: "^5.28.2",
|
|
@@ -84172,6 +84496,530 @@ var package_default = {
|
|
|
84172
84496
|
|
|
84173
84497
|
// lib/parser.ts
|
|
84174
84498
|
import os3 from "os";
|
|
84499
|
+
|
|
84500
|
+
// lib/response-config.ts
|
|
84501
|
+
var import_chalk2 = __toESM(require_source(), 1);
|
|
84502
|
+
|
|
84503
|
+
// node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
84504
|
+
function ansiRegex({ onlyFirst = false } = {}) {
|
|
84505
|
+
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
84506
|
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
84507
|
+
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
84508
|
+
const pattern = `${osc}|${csi}`;
|
|
84509
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
84510
|
+
}
|
|
84511
|
+
|
|
84512
|
+
// node_modules/string-width/node_modules/strip-ansi/index.js
|
|
84513
|
+
var regex = ansiRegex();
|
|
84514
|
+
function stripAnsi(string4) {
|
|
84515
|
+
if (typeof string4 !== "string") {
|
|
84516
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string4}\``);
|
|
84517
|
+
}
|
|
84518
|
+
if (!string4.includes("\x1B") && !string4.includes("\x9B")) {
|
|
84519
|
+
return string4;
|
|
84520
|
+
}
|
|
84521
|
+
return string4.replace(regex, "");
|
|
84522
|
+
}
|
|
84523
|
+
|
|
84524
|
+
// node_modules/get-east-asian-width/lookup-data.js
|
|
84525
|
+
var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
84526
|
+
var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
84527
|
+
var halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
84528
|
+
var narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
84529
|
+
var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
84530
|
+
|
|
84531
|
+
// node_modules/get-east-asian-width/utilities.js
|
|
84532
|
+
var isInRange = (ranges, codePoint) => {
|
|
84533
|
+
let low = 0;
|
|
84534
|
+
let high = Math.floor(ranges.length / 2) - 1;
|
|
84535
|
+
while (low <= high) {
|
|
84536
|
+
const mid = Math.floor((low + high) / 2);
|
|
84537
|
+
const i = mid * 2;
|
|
84538
|
+
if (codePoint < ranges[i]) {
|
|
84539
|
+
high = mid - 1;
|
|
84540
|
+
} else if (codePoint > ranges[i + 1]) {
|
|
84541
|
+
low = mid + 1;
|
|
84542
|
+
} else {
|
|
84543
|
+
return true;
|
|
84544
|
+
}
|
|
84545
|
+
}
|
|
84546
|
+
return false;
|
|
84547
|
+
};
|
|
84548
|
+
|
|
84549
|
+
// node_modules/get-east-asian-width/lookup.js
|
|
84550
|
+
var minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
84551
|
+
var maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
84552
|
+
var minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
84553
|
+
var maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
84554
|
+
var minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
84555
|
+
var maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
84556
|
+
var minimumNarrowCodePoint = narrowRanges[0];
|
|
84557
|
+
var maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
84558
|
+
var minimumWideCodePoint = wideRanges[0];
|
|
84559
|
+
var maximumWideCodePoint = wideRanges.at(-1);
|
|
84560
|
+
var commonCjkCodePoint = 19968;
|
|
84561
|
+
var [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
84562
|
+
function findWideFastPathRange(ranges) {
|
|
84563
|
+
let fastPathStart = ranges[0];
|
|
84564
|
+
let fastPathEnd = ranges[1];
|
|
84565
|
+
for (let index = 0; index < ranges.length; index += 2) {
|
|
84566
|
+
const start = ranges[index];
|
|
84567
|
+
const end = ranges[index + 1];
|
|
84568
|
+
if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
|
|
84569
|
+
return [start, end];
|
|
84570
|
+
}
|
|
84571
|
+
if (end - start > fastPathEnd - fastPathStart) {
|
|
84572
|
+
fastPathStart = start;
|
|
84573
|
+
fastPathEnd = end;
|
|
84574
|
+
}
|
|
84575
|
+
}
|
|
84576
|
+
return [fastPathStart, fastPathEnd];
|
|
84577
|
+
}
|
|
84578
|
+
var isAmbiguous = (codePoint) => {
|
|
84579
|
+
if (codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint) {
|
|
84580
|
+
return false;
|
|
84581
|
+
}
|
|
84582
|
+
return isInRange(ambiguousRanges, codePoint);
|
|
84583
|
+
};
|
|
84584
|
+
var isFullWidth = (codePoint) => {
|
|
84585
|
+
if (codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint) {
|
|
84586
|
+
return false;
|
|
84587
|
+
}
|
|
84588
|
+
return isInRange(fullwidthRanges, codePoint);
|
|
84589
|
+
};
|
|
84590
|
+
var isWide = (codePoint) => {
|
|
84591
|
+
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
84592
|
+
return true;
|
|
84593
|
+
}
|
|
84594
|
+
if (codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint) {
|
|
84595
|
+
return false;
|
|
84596
|
+
}
|
|
84597
|
+
return isInRange(wideRanges, codePoint);
|
|
84598
|
+
};
|
|
84599
|
+
|
|
84600
|
+
// node_modules/get-east-asian-width/index.js
|
|
84601
|
+
function validate(codePoint) {
|
|
84602
|
+
if (!Number.isSafeInteger(codePoint)) {
|
|
84603
|
+
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
84604
|
+
}
|
|
84605
|
+
}
|
|
84606
|
+
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
84607
|
+
validate(codePoint);
|
|
84608
|
+
if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
84609
|
+
return 2;
|
|
84610
|
+
}
|
|
84611
|
+
return 1;
|
|
84612
|
+
}
|
|
84613
|
+
|
|
84614
|
+
// node_modules/string-width/index.js
|
|
84615
|
+
var import_emoji_regex = __toESM(require_emoji_regex5(), 1);
|
|
84616
|
+
var segmenter = new Intl.Segmenter();
|
|
84617
|
+
var defaultIgnorableCodePointRegex = new RegExp("^\\p{Default_Ignorable_Code_Point}$", "u");
|
|
84618
|
+
function stringWidth(string4, options = {}) {
|
|
84619
|
+
if (typeof string4 !== "string" || string4.length === 0) {
|
|
84620
|
+
return 0;
|
|
84621
|
+
}
|
|
84622
|
+
const {
|
|
84623
|
+
ambiguousIsNarrow = true,
|
|
84624
|
+
countAnsiEscapeCodes = false
|
|
84625
|
+
} = options;
|
|
84626
|
+
if (!countAnsiEscapeCodes) {
|
|
84627
|
+
string4 = stripAnsi(string4);
|
|
84628
|
+
}
|
|
84629
|
+
if (string4.length === 0) {
|
|
84630
|
+
return 0;
|
|
84631
|
+
}
|
|
84632
|
+
let width = 0;
|
|
84633
|
+
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
84634
|
+
for (const { segment: character } of segmenter.segment(string4)) {
|
|
84635
|
+
const codePoint = character.codePointAt(0);
|
|
84636
|
+
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
|
84637
|
+
continue;
|
|
84638
|
+
}
|
|
84639
|
+
if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
|
|
84640
|
+
continue;
|
|
84641
|
+
}
|
|
84642
|
+
if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
|
|
84643
|
+
continue;
|
|
84644
|
+
}
|
|
84645
|
+
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
84646
|
+
continue;
|
|
84647
|
+
}
|
|
84648
|
+
if (codePoint >= 65024 && codePoint <= 65039) {
|
|
84649
|
+
continue;
|
|
84650
|
+
}
|
|
84651
|
+
if (defaultIgnorableCodePointRegex.test(character)) {
|
|
84652
|
+
continue;
|
|
84653
|
+
}
|
|
84654
|
+
if ((0, import_emoji_regex.default)().test(character)) {
|
|
84655
|
+
width += 2;
|
|
84656
|
+
continue;
|
|
84657
|
+
}
|
|
84658
|
+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
84659
|
+
}
|
|
84660
|
+
return width;
|
|
84661
|
+
}
|
|
84662
|
+
|
|
84663
|
+
// lib/response-config.ts
|
|
84664
|
+
var splitWords = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_-]+/).filter(Boolean);
|
|
84665
|
+
var toTitleCase = (value) => splitWords(value).map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()).join(" ");
|
|
84666
|
+
var padColumn = (value, width) => {
|
|
84667
|
+
const valueWidth = stringWidth(value);
|
|
84668
|
+
if (valueWidth >= width) return value;
|
|
84669
|
+
return value + " ".repeat(width - valueWidth);
|
|
84670
|
+
};
|
|
84671
|
+
var renderAlignedColumns = (columns, options = {}, headers) => {
|
|
84672
|
+
const indent = options.indent ?? "";
|
|
84673
|
+
const widths = columns.map((column, columnIndex) => {
|
|
84674
|
+
const dataWidth = column.reduce(
|
|
84675
|
+
(max, value) => Math.max(max, stringWidth(value)),
|
|
84676
|
+
0
|
|
84677
|
+
);
|
|
84678
|
+
const headerWidth = stringWidth(headers?.[columnIndex] ?? "");
|
|
84679
|
+
return Math.max(dataWidth, headerWidth);
|
|
84680
|
+
});
|
|
84681
|
+
if (headers && headers.length === columns.length) {
|
|
84682
|
+
const headerParts = headers.map((header, columnIndex) => {
|
|
84683
|
+
const value = import_chalk2.default.cyan.bold(header);
|
|
84684
|
+
if (columnIndex === columns.length - 1) {
|
|
84685
|
+
return value;
|
|
84686
|
+
}
|
|
84687
|
+
return padColumn(value, widths[columnIndex]);
|
|
84688
|
+
});
|
|
84689
|
+
console.log(`${indent}${headerParts.join(" ")}`.trimEnd());
|
|
84690
|
+
}
|
|
84691
|
+
for (let idx = 0; idx < columns[0].length; idx++) {
|
|
84692
|
+
const parts = columns.map((column, columnIndex) => {
|
|
84693
|
+
const value = column[idx] ?? "";
|
|
84694
|
+
if (columnIndex === columns.length - 1) {
|
|
84695
|
+
return value;
|
|
84696
|
+
}
|
|
84697
|
+
return padColumn(value, widths[columnIndex]);
|
|
84698
|
+
});
|
|
84699
|
+
console.log(`${indent}${parts.join(" ")}`.trimEnd());
|
|
84700
|
+
}
|
|
84701
|
+
};
|
|
84702
|
+
var compactDate = (value) => {
|
|
84703
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
84704
|
+
return "\u2014";
|
|
84705
|
+
}
|
|
84706
|
+
return value.replace("T", " ").replace("+00:00", "Z");
|
|
84707
|
+
};
|
|
84708
|
+
var compactText = (value, fallback = "\u2014") => {
|
|
84709
|
+
if (typeof value !== "string") {
|
|
84710
|
+
return fallback;
|
|
84711
|
+
}
|
|
84712
|
+
const trimmed = value.trim();
|
|
84713
|
+
return trimmed === "" ? fallback : trimmed;
|
|
84714
|
+
};
|
|
84715
|
+
var compactAmount = (value) => {
|
|
84716
|
+
if (typeof value === "number" || typeof value === "string") {
|
|
84717
|
+
return String(value);
|
|
84718
|
+
}
|
|
84719
|
+
return "\u2014";
|
|
84720
|
+
};
|
|
84721
|
+
var isPresent = (value) => {
|
|
84722
|
+
if (value == null) return false;
|
|
84723
|
+
if (typeof value === "string") return value.trim() !== "";
|
|
84724
|
+
return true;
|
|
84725
|
+
};
|
|
84726
|
+
var valueFrom = (row, key) => row[key];
|
|
84727
|
+
var indexedLabel = (label, context) => `[${context.index + 1}] ${label}`;
|
|
84728
|
+
var createSummarySchema = (shape, requiredKeys, message) => external_exports.object(shape).passthrough().refine((row) => requiredKeys.some((key) => isPresent(row[key])), {
|
|
84729
|
+
message
|
|
84730
|
+
});
|
|
84731
|
+
var createColumnRenderer = (itemSchema, columns) => ({
|
|
84732
|
+
itemSchema,
|
|
84733
|
+
columns
|
|
84734
|
+
});
|
|
84735
|
+
var PaymentMethodSummarySchema = createSummarySchema(
|
|
84736
|
+
{
|
|
84737
|
+
providerUserId: external_exports.string().nullable().optional(),
|
|
84738
|
+
providerMethodId: external_exports.string().nullable().optional(),
|
|
84739
|
+
mandateId: external_exports.string().nullable().optional(),
|
|
84740
|
+
mandateStatus: external_exports.string().nullable().optional(),
|
|
84741
|
+
last4: external_exports.string().nullable().optional(),
|
|
84742
|
+
brand: external_exports.string().nullable().optional(),
|
|
84743
|
+
country: external_exports.string().nullable().optional(),
|
|
84744
|
+
expiryMonth: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84745
|
+
expiryYear: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84746
|
+
default: external_exports.boolean().optional(),
|
|
84747
|
+
expired: external_exports.boolean().optional(),
|
|
84748
|
+
failed: external_exports.boolean().optional()
|
|
84749
|
+
},
|
|
84750
|
+
["providerUserId", "providerMethodId", "mandateId", "last4"],
|
|
84751
|
+
"Expected a payment method summary row"
|
|
84752
|
+
);
|
|
84753
|
+
var IdentitySummarySchema = createSummarySchema(
|
|
84754
|
+
{
|
|
84755
|
+
provider: external_exports.string().nullable().optional(),
|
|
84756
|
+
providerUid: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84757
|
+
providerEmail: external_exports.string().nullable().optional(),
|
|
84758
|
+
providerAccessTokenExpiry: external_exports.string().nullable().optional()
|
|
84759
|
+
},
|
|
84760
|
+
["provider", "providerUid", "providerEmail"],
|
|
84761
|
+
"Expected an identity summary row"
|
|
84762
|
+
);
|
|
84763
|
+
var SessionSummarySchema = createSummarySchema(
|
|
84764
|
+
{
|
|
84765
|
+
provider: external_exports.string().nullable().optional(),
|
|
84766
|
+
current: external_exports.boolean().optional(),
|
|
84767
|
+
expire: external_exports.string().nullable().optional(),
|
|
84768
|
+
clientName: external_exports.string().nullable().optional(),
|
|
84769
|
+
clientType: external_exports.string().nullable().optional(),
|
|
84770
|
+
osName: external_exports.string().nullable().optional(),
|
|
84771
|
+
deviceName: external_exports.string().nullable().optional(),
|
|
84772
|
+
countryName: external_exports.string().nullable().optional(),
|
|
84773
|
+
countryCode: external_exports.string().nullable().optional()
|
|
84774
|
+
},
|
|
84775
|
+
["provider", "expire"],
|
|
84776
|
+
"Expected a session summary row"
|
|
84777
|
+
);
|
|
84778
|
+
var LogSummarySchema = createSummarySchema(
|
|
84779
|
+
{
|
|
84780
|
+
event: external_exports.string().nullable().optional(),
|
|
84781
|
+
time: external_exports.string().nullable().optional(),
|
|
84782
|
+
clientName: external_exports.string().nullable().optional(),
|
|
84783
|
+
osName: external_exports.string().nullable().optional(),
|
|
84784
|
+
countryName: external_exports.string().nullable().optional(),
|
|
84785
|
+
countryCode: external_exports.string().nullable().optional(),
|
|
84786
|
+
mode: external_exports.string().nullable().optional()
|
|
84787
|
+
},
|
|
84788
|
+
["event", "time"],
|
|
84789
|
+
"Expected a log summary row"
|
|
84790
|
+
);
|
|
84791
|
+
var InvoiceSummarySchema = createSummarySchema(
|
|
84792
|
+
{
|
|
84793
|
+
plan: external_exports.string().nullable().optional(),
|
|
84794
|
+
currency: external_exports.string().nullable().optional(),
|
|
84795
|
+
amount: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84796
|
+
grossAmount: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84797
|
+
status: external_exports.string().nullable().optional(),
|
|
84798
|
+
dueAt: external_exports.string().nullable().optional(),
|
|
84799
|
+
from: external_exports.string().nullable().optional(),
|
|
84800
|
+
to: external_exports.string().nullable().optional()
|
|
84801
|
+
},
|
|
84802
|
+
["plan", "status", "dueAt"],
|
|
84803
|
+
"Expected an invoice summary row"
|
|
84804
|
+
);
|
|
84805
|
+
var paymentMethodLabel = (row) => {
|
|
84806
|
+
const brand = valueFrom(row, "brand") ?? "";
|
|
84807
|
+
const last4 = valueFrom(row, "last4") ?? "";
|
|
84808
|
+
if (brand && last4) {
|
|
84809
|
+
return `${toTitleCase(brand)} \u2022\u2022\u2022\u2022 ${last4}`;
|
|
84810
|
+
}
|
|
84811
|
+
if (last4) {
|
|
84812
|
+
return `Card \u2022\u2022\u2022\u2022 ${last4}`;
|
|
84813
|
+
}
|
|
84814
|
+
return "Setup only";
|
|
84815
|
+
};
|
|
84816
|
+
var paymentMethodDetails = (row) => {
|
|
84817
|
+
const expiryMonth = valueFrom(row, "expiryMonth");
|
|
84818
|
+
const expiryYear = valueFrom(row, "expiryYear");
|
|
84819
|
+
if (expiryMonth != null && expiryYear != null) {
|
|
84820
|
+
return `exp ${String(expiryMonth).padStart(2, "0")}/${String(expiryYear)}`;
|
|
84821
|
+
}
|
|
84822
|
+
return "no card data";
|
|
84823
|
+
};
|
|
84824
|
+
var paymentMethodStatus = (row) => {
|
|
84825
|
+
const mandateStatus = valueFrom(row, "mandateStatus");
|
|
84826
|
+
if (mandateStatus && mandateStatus.trim() !== "") {
|
|
84827
|
+
return `mandate: ${mandateStatus}`;
|
|
84828
|
+
}
|
|
84829
|
+
if (row.failed === true) {
|
|
84830
|
+
return "status: failed";
|
|
84831
|
+
}
|
|
84832
|
+
if (row.expired === true) {
|
|
84833
|
+
return "status: expired";
|
|
84834
|
+
}
|
|
84835
|
+
if (isPresent(valueFrom(row, "providerMethodId")) || isPresent(valueFrom(row, "last4"))) {
|
|
84836
|
+
return "status: active";
|
|
84837
|
+
}
|
|
84838
|
+
return "status: pending";
|
|
84839
|
+
};
|
|
84840
|
+
var structuredCollectionRenderers = {
|
|
84841
|
+
identities: createColumnRenderer(IdentitySummarySchema, [
|
|
84842
|
+
{
|
|
84843
|
+
header: "identity",
|
|
84844
|
+
value: (row, context) => indexedLabel(
|
|
84845
|
+
toTitleCase(compactText(valueFrom(row, "provider"), "Identity")),
|
|
84846
|
+
context
|
|
84847
|
+
)
|
|
84848
|
+
},
|
|
84849
|
+
{
|
|
84850
|
+
header: "account",
|
|
84851
|
+
value: (row) => {
|
|
84852
|
+
const providerEmail = valueFrom(row, "providerEmail");
|
|
84853
|
+
const providerUid = valueFrom(row, "providerUid");
|
|
84854
|
+
if (providerEmail && providerEmail.trim() !== "") {
|
|
84855
|
+
return providerEmail;
|
|
84856
|
+
}
|
|
84857
|
+
if (providerUid != null) {
|
|
84858
|
+
return `uid ${providerUid}`;
|
|
84859
|
+
}
|
|
84860
|
+
return "\u2014";
|
|
84861
|
+
}
|
|
84862
|
+
},
|
|
84863
|
+
{
|
|
84864
|
+
header: "identifier",
|
|
84865
|
+
value: (row) => {
|
|
84866
|
+
const providerEmail = valueFrom(row, "providerEmail");
|
|
84867
|
+
const providerUid = valueFrom(row, "providerUid");
|
|
84868
|
+
if (providerEmail && providerEmail.trim() !== "" && providerUid != null) {
|
|
84869
|
+
return `uid ${providerUid}`;
|
|
84870
|
+
}
|
|
84871
|
+
return "";
|
|
84872
|
+
}
|
|
84873
|
+
},
|
|
84874
|
+
{
|
|
84875
|
+
header: "expires",
|
|
84876
|
+
value: (row) => {
|
|
84877
|
+
const expiry = valueFrom(row, "providerAccessTokenExpiry");
|
|
84878
|
+
return expiry ? `expires ${compactDate(expiry)}` : "";
|
|
84879
|
+
}
|
|
84880
|
+
}
|
|
84881
|
+
]),
|
|
84882
|
+
sessions: createColumnRenderer(SessionSummarySchema, [
|
|
84883
|
+
{
|
|
84884
|
+
header: "session",
|
|
84885
|
+
value: (row, context) => {
|
|
84886
|
+
const provider = compactText(valueFrom(row, "provider"), "Session");
|
|
84887
|
+
const current = row.current === true ? " (current)" : "";
|
|
84888
|
+
return indexedLabel(`${toTitleCase(provider)}${current}`, context);
|
|
84889
|
+
}
|
|
84890
|
+
},
|
|
84891
|
+
{
|
|
84892
|
+
header: "client",
|
|
84893
|
+
value: (row) => {
|
|
84894
|
+
const clientName = compactText(valueFrom(row, "clientName"), "");
|
|
84895
|
+
const osName = compactText(valueFrom(row, "osName"), "");
|
|
84896
|
+
const deviceName = compactText(valueFrom(row, "deviceName"), "");
|
|
84897
|
+
if (clientName && osName) {
|
|
84898
|
+
return `${clientName} on ${osName}`;
|
|
84899
|
+
}
|
|
84900
|
+
if (clientName && deviceName) {
|
|
84901
|
+
return `${clientName} on ${deviceName}`;
|
|
84902
|
+
}
|
|
84903
|
+
return clientName || osName || deviceName || "\u2014";
|
|
84904
|
+
}
|
|
84905
|
+
},
|
|
84906
|
+
{
|
|
84907
|
+
header: "location",
|
|
84908
|
+
value: (row) => compactText(row.countryName ?? row.countryCode, "\u2014")
|
|
84909
|
+
},
|
|
84910
|
+
{
|
|
84911
|
+
header: "expires",
|
|
84912
|
+
value: (row) => `expires ${compactDate(valueFrom(row, "expire"))}`
|
|
84913
|
+
}
|
|
84914
|
+
]),
|
|
84915
|
+
logs: createColumnRenderer(LogSummarySchema, [
|
|
84916
|
+
{
|
|
84917
|
+
header: "time",
|
|
84918
|
+
value: (row) => compactDate(valueFrom(row, "time"))
|
|
84919
|
+
},
|
|
84920
|
+
{
|
|
84921
|
+
header: "event",
|
|
84922
|
+
value: (row) => {
|
|
84923
|
+
const event = compactText(valueFrom(row, "event"), "event");
|
|
84924
|
+
const mode = valueFrom(row, "mode");
|
|
84925
|
+
if (mode && mode.trim() !== "" && mode !== "default") {
|
|
84926
|
+
return `${event} (${mode})`;
|
|
84927
|
+
}
|
|
84928
|
+
return event;
|
|
84929
|
+
}
|
|
84930
|
+
},
|
|
84931
|
+
{
|
|
84932
|
+
header: "client",
|
|
84933
|
+
value: (row) => {
|
|
84934
|
+
const clientName = compactText(valueFrom(row, "clientName"), "");
|
|
84935
|
+
const osName = compactText(valueFrom(row, "osName"), "");
|
|
84936
|
+
if (clientName && osName) {
|
|
84937
|
+
return `${clientName} on ${osName}`;
|
|
84938
|
+
}
|
|
84939
|
+
return clientName || osName || "\u2014";
|
|
84940
|
+
}
|
|
84941
|
+
},
|
|
84942
|
+
{
|
|
84943
|
+
header: "location",
|
|
84944
|
+
value: (row) => compactText(row.countryName ?? row.countryCode, "\u2014")
|
|
84945
|
+
}
|
|
84946
|
+
]),
|
|
84947
|
+
invoices: createColumnRenderer(InvoiceSummarySchema, [
|
|
84948
|
+
{
|
|
84949
|
+
header: "status",
|
|
84950
|
+
value: (row, context) => indexedLabel(compactText(valueFrom(row, "status"), "pending"), context)
|
|
84951
|
+
},
|
|
84952
|
+
{
|
|
84953
|
+
header: "plan",
|
|
84954
|
+
value: (row) => compactText(valueFrom(row, "plan"))
|
|
84955
|
+
},
|
|
84956
|
+
{
|
|
84957
|
+
header: "amount",
|
|
84958
|
+
value: (row) => {
|
|
84959
|
+
const currency = compactText(valueFrom(row, "currency"), "\u2014");
|
|
84960
|
+
const grossAmount = valueFrom(row, "grossAmount");
|
|
84961
|
+
const amount = valueFrom(row, "amount");
|
|
84962
|
+
return `${currency} ${grossAmount != null ? compactAmount(grossAmount) : compactAmount(amount)}`.trim();
|
|
84963
|
+
}
|
|
84964
|
+
},
|
|
84965
|
+
{
|
|
84966
|
+
header: "due",
|
|
84967
|
+
value: (row) => `due ${compactDate(valueFrom(row, "dueAt"))}`
|
|
84968
|
+
},
|
|
84969
|
+
{
|
|
84970
|
+
header: "period",
|
|
84971
|
+
value: (row) => `${compactDate(valueFrom(row, "from"))} -> ${compactDate(valueFrom(row, "to"))}`
|
|
84972
|
+
}
|
|
84973
|
+
]),
|
|
84974
|
+
paymentMethods: createColumnRenderer(PaymentMethodSummarySchema, [
|
|
84975
|
+
{
|
|
84976
|
+
header: "method",
|
|
84977
|
+
value: (row, context) => indexedLabel(paymentMethodLabel(row), context)
|
|
84978
|
+
},
|
|
84979
|
+
{
|
|
84980
|
+
header: "country",
|
|
84981
|
+
value: (row) => compactText(valueFrom(row, "country"), "\u2014")
|
|
84982
|
+
},
|
|
84983
|
+
{
|
|
84984
|
+
header: "details",
|
|
84985
|
+
value: (row) => paymentMethodDetails(row)
|
|
84986
|
+
},
|
|
84987
|
+
{
|
|
84988
|
+
header: "default",
|
|
84989
|
+
value: (row) => `default: ${Boolean(row.default) ? "yes" : "no"}`
|
|
84990
|
+
},
|
|
84991
|
+
{
|
|
84992
|
+
header: "status",
|
|
84993
|
+
value: (row) => paymentMethodStatus(row)
|
|
84994
|
+
}
|
|
84995
|
+
])
|
|
84996
|
+
};
|
|
84997
|
+
var renderStructuredCollection = (sectionName, rows, options = {}) => {
|
|
84998
|
+
if (!sectionName) {
|
|
84999
|
+
return false;
|
|
85000
|
+
}
|
|
85001
|
+
const renderer = structuredCollectionRenderers[sectionName];
|
|
85002
|
+
if (!renderer) {
|
|
85003
|
+
return false;
|
|
85004
|
+
}
|
|
85005
|
+
const allRowsMatch = rows.every(
|
|
85006
|
+
(row) => renderer.itemSchema.safeParse(row).success
|
|
85007
|
+
);
|
|
85008
|
+
if (!allRowsMatch) {
|
|
85009
|
+
return false;
|
|
85010
|
+
}
|
|
85011
|
+
const columns = renderer.columns.map(
|
|
85012
|
+
(column) => rows.map((row, index) => column.value(row, { index }))
|
|
85013
|
+
);
|
|
85014
|
+
renderAlignedColumns(
|
|
85015
|
+
columns,
|
|
85016
|
+
options,
|
|
85017
|
+
renderer.columns.map((column) => column.header)
|
|
85018
|
+
);
|
|
85019
|
+
return true;
|
|
85020
|
+
};
|
|
85021
|
+
|
|
85022
|
+
// lib/parser.ts
|
|
84175
85023
|
BigInt.prototype.toJSON = function() {
|
|
84176
85024
|
return this.toString();
|
|
84177
85025
|
};
|
|
@@ -84202,12 +85050,14 @@ var SENSITIVE_KEYS = /* @__PURE__ */ new Set([
|
|
|
84202
85050
|
]);
|
|
84203
85051
|
var renderDepth = 0;
|
|
84204
85052
|
var redactionApplied = false;
|
|
85053
|
+
var renderedRedactionApplied = false;
|
|
84205
85054
|
var toJsonObject = (value) => {
|
|
84206
85055
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
84207
85056
|
return value;
|
|
84208
85057
|
}
|
|
84209
85058
|
return null;
|
|
84210
85059
|
};
|
|
85060
|
+
var isNormalViewHiddenKey = (key) => key.startsWith("$") && key !== "$id";
|
|
84211
85061
|
var extractReportCommandArgs = (value) => {
|
|
84212
85062
|
if (!value || typeof value !== "object") {
|
|
84213
85063
|
return [];
|
|
@@ -84221,15 +85071,17 @@ var extractReportCommandArgs = (value) => {
|
|
|
84221
85071
|
var beginRender = () => {
|
|
84222
85072
|
if (renderDepth === 0) {
|
|
84223
85073
|
redactionApplied = false;
|
|
85074
|
+
renderedRedactionApplied = false;
|
|
84224
85075
|
}
|
|
84225
85076
|
renderDepth++;
|
|
84226
85077
|
};
|
|
84227
85078
|
var endRender = () => {
|
|
84228
85079
|
renderDepth = Math.max(0, renderDepth - 1);
|
|
84229
|
-
|
|
85080
|
+
const shouldShowRedactionHint = cliConfig.json || cliConfig.raw ? redactionApplied : renderedRedactionApplied;
|
|
85081
|
+
if (renderDepth === 0 && shouldShowRedactionHint && !cliConfig.showSecrets) {
|
|
84230
85082
|
const message = "Sensitive values were redacted. Pass --show-secrets to display them.";
|
|
84231
85083
|
if (cliConfig.json || cliConfig.raw) {
|
|
84232
|
-
console.error(`${
|
|
85084
|
+
console.error(`${import_chalk3.default.cyan.bold("\u2665 Hint:")} ${import_chalk3.default.cyan(message)}`);
|
|
84233
85085
|
} else {
|
|
84234
85086
|
hint(message);
|
|
84235
85087
|
}
|
|
@@ -84245,7 +85097,9 @@ var withRender = (callback) => {
|
|
|
84245
85097
|
};
|
|
84246
85098
|
var isSensitiveKey = (key) => {
|
|
84247
85099
|
const normalizedKey = key.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
84248
|
-
return SENSITIVE_KEYS.
|
|
85100
|
+
return [...SENSITIVE_KEYS].some(
|
|
85101
|
+
(sensitiveKey) => normalizedKey === sensitiveKey || normalizedKey.endsWith(sensitiveKey)
|
|
85102
|
+
);
|
|
84249
85103
|
};
|
|
84250
85104
|
var maskSensitiveString = (value) => {
|
|
84251
85105
|
if (value.length <= 16) {
|
|
@@ -84259,9 +85113,11 @@ var maskSensitiveString = (value) => {
|
|
|
84259
85113
|
}
|
|
84260
85114
|
return `${HIDDEN_VALUE}${value.slice(-4)}`;
|
|
84261
85115
|
};
|
|
84262
|
-
var maskSensitiveData = (value, key) => {
|
|
85116
|
+
var maskSensitiveData = (value, key, trackRedaction = true) => {
|
|
84263
85117
|
if (key && isSensitiveKey(key) && !cliConfig.showSecrets) {
|
|
84264
|
-
|
|
85118
|
+
if (trackRedaction) {
|
|
85119
|
+
redactionApplied = true;
|
|
85120
|
+
}
|
|
84265
85121
|
if (typeof value === "string") {
|
|
84266
85122
|
return maskSensitiveString(value);
|
|
84267
85123
|
}
|
|
@@ -84271,7 +85127,9 @@ var maskSensitiveData = (value, key) => {
|
|
|
84271
85127
|
return HIDDEN_VALUE;
|
|
84272
85128
|
}
|
|
84273
85129
|
if (Array.isArray(value)) {
|
|
84274
|
-
return value.map(
|
|
85130
|
+
return value.map(
|
|
85131
|
+
(item) => maskSensitiveData(item, void 0, trackRedaction)
|
|
85132
|
+
);
|
|
84275
85133
|
}
|
|
84276
85134
|
if (value && typeof value === "object") {
|
|
84277
85135
|
if (value?.constructor?.name === "BigNumber") {
|
|
@@ -84281,7 +85139,11 @@ var maskSensitiveData = (value, key) => {
|
|
|
84281
85139
|
for (const childKey of Object.keys(value)) {
|
|
84282
85140
|
const childValue = value[childKey];
|
|
84283
85141
|
if (typeof childValue === "function") continue;
|
|
84284
|
-
result[childKey] = maskSensitiveData(
|
|
85142
|
+
result[childKey] = maskSensitiveData(
|
|
85143
|
+
childValue,
|
|
85144
|
+
childKey,
|
|
85145
|
+
trackRedaction
|
|
85146
|
+
);
|
|
84285
85147
|
}
|
|
84286
85148
|
return result;
|
|
84287
85149
|
}
|
|
@@ -84302,10 +85164,22 @@ var applyDisplayFilter = (rows) => {
|
|
|
84302
85164
|
});
|
|
84303
85165
|
};
|
|
84304
85166
|
var MAX_COL_WIDTH = 40;
|
|
85167
|
+
var MAX_COLUMNS = 6;
|
|
84305
85168
|
var formatCellValue = (value) => {
|
|
84306
85169
|
if (value == null) return "-";
|
|
85170
|
+
if (!cliConfig.showSecrets && typeof value === "string" && value.includes(HIDDEN_VALUE)) {
|
|
85171
|
+
renderedRedactionApplied = true;
|
|
85172
|
+
}
|
|
84307
85173
|
if (Array.isArray(value)) {
|
|
84308
85174
|
if (value.length === 0) return "[]";
|
|
85175
|
+
if (value.every(
|
|
85176
|
+
(item) => item == null || typeof item === "string" || typeof item === "number" || typeof item === "boolean"
|
|
85177
|
+
)) {
|
|
85178
|
+
const joinedValue = value.map((item) => String(item)).join(", ");
|
|
85179
|
+
if (joinedValue.length <= MAX_COL_WIDTH) {
|
|
85180
|
+
return joinedValue;
|
|
85181
|
+
}
|
|
85182
|
+
}
|
|
84309
85183
|
return `[${value.length} items]`;
|
|
84310
85184
|
}
|
|
84311
85185
|
if (typeof value === "object") {
|
|
@@ -84320,7 +85194,94 @@ var formatCellValue = (value) => {
|
|
|
84320
85194
|
}
|
|
84321
85195
|
return str;
|
|
84322
85196
|
};
|
|
84323
|
-
var
|
|
85197
|
+
var formatKeyValue = (key, value) => {
|
|
85198
|
+
if (key === "status" && typeof value === "boolean") {
|
|
85199
|
+
return value ? "active" : "inactive";
|
|
85200
|
+
}
|
|
85201
|
+
return String(value);
|
|
85202
|
+
};
|
|
85203
|
+
var toScalarEntries = (row) => {
|
|
85204
|
+
const entries = [];
|
|
85205
|
+
for (const key of Object.keys(row)) {
|
|
85206
|
+
if (isNormalViewHiddenKey(key)) continue;
|
|
85207
|
+
const value = row[key];
|
|
85208
|
+
if (typeof value === "function") continue;
|
|
85209
|
+
if (value == null) continue;
|
|
85210
|
+
if (value?.constructor?.name === "BigNumber") {
|
|
85211
|
+
entries.push([key, String(value)]);
|
|
85212
|
+
continue;
|
|
85213
|
+
}
|
|
85214
|
+
if (typeof value === "object") continue;
|
|
85215
|
+
if (typeof value === "string" && value.trim() === "") continue;
|
|
85216
|
+
entries.push([key, formatKeyValue(key, value)]);
|
|
85217
|
+
}
|
|
85218
|
+
return entries;
|
|
85219
|
+
};
|
|
85220
|
+
var toDisplayEntries = (row) => {
|
|
85221
|
+
const entries = [];
|
|
85222
|
+
for (const key of Object.keys(row)) {
|
|
85223
|
+
if (isNormalViewHiddenKey(key)) continue;
|
|
85224
|
+
const value = row[key];
|
|
85225
|
+
if (typeof value === "function") continue;
|
|
85226
|
+
if (value == null) continue;
|
|
85227
|
+
if (typeof value === "string" && value.trim() === "") continue;
|
|
85228
|
+
entries.push([key, formatCellValue(value)]);
|
|
85229
|
+
}
|
|
85230
|
+
return entries;
|
|
85231
|
+
};
|
|
85232
|
+
var drawKeyValueEntries = (entries, options = {}) => {
|
|
85233
|
+
if (entries.length === 0) return;
|
|
85234
|
+
const indent = options.indent ?? "";
|
|
85235
|
+
const maxKeyLen = Math.max(...entries.map(([key]) => key.length));
|
|
85236
|
+
for (const [key, value] of entries) {
|
|
85237
|
+
const paddedKey = key.padEnd(maxKeyLen);
|
|
85238
|
+
if (!cliConfig.showSecrets && value.includes(HIDDEN_VALUE)) {
|
|
85239
|
+
renderedRedactionApplied = true;
|
|
85240
|
+
}
|
|
85241
|
+
console.log(`${indent}${import_chalk3.default.yellow.bold(paddedKey)} ${value}`);
|
|
85242
|
+
}
|
|
85243
|
+
};
|
|
85244
|
+
var drawNamedObjectCollection = (rows, options = {}) => {
|
|
85245
|
+
if (renderStructuredCollection(options.sectionName, rows, options)) {
|
|
85246
|
+
return true;
|
|
85247
|
+
}
|
|
85248
|
+
const scalarEntries = rows.map((row) => toScalarEntries(row));
|
|
85249
|
+
const flatScalarEntries = scalarEntries.flat();
|
|
85250
|
+
if (flatScalarEntries.length > 0) {
|
|
85251
|
+
scalarEntries.forEach((entries, idx) => {
|
|
85252
|
+
if (idx > 0) {
|
|
85253
|
+
console.log();
|
|
85254
|
+
}
|
|
85255
|
+
if (rows.length > 1) {
|
|
85256
|
+
const indent = options.indent ?? "";
|
|
85257
|
+
console.log(`${indent}${import_chalk3.default.cyan.bold(`[${idx + 1}]`)}`);
|
|
85258
|
+
}
|
|
85259
|
+
drawKeyValueEntries(entries, {
|
|
85260
|
+
indent: rows.length > 1 ? `${options.indent ?? ""} ` : options.indent
|
|
85261
|
+
});
|
|
85262
|
+
});
|
|
85263
|
+
return true;
|
|
85264
|
+
}
|
|
85265
|
+
const displayEntries = rows.map((row) => toDisplayEntries(row));
|
|
85266
|
+
const flatDisplayEntries = displayEntries.flat();
|
|
85267
|
+
if (flatDisplayEntries.length === 0) {
|
|
85268
|
+
return false;
|
|
85269
|
+
}
|
|
85270
|
+
displayEntries.forEach((entries, idx) => {
|
|
85271
|
+
if (idx > 0) {
|
|
85272
|
+
console.log();
|
|
85273
|
+
}
|
|
85274
|
+
if (rows.length > 1) {
|
|
85275
|
+
const indent = options.indent ?? "";
|
|
85276
|
+
console.log(`${indent}${import_chalk3.default.cyan.bold(`[${idx + 1}]`)}`);
|
|
85277
|
+
}
|
|
85278
|
+
drawKeyValueEntries(entries, {
|
|
85279
|
+
indent: rows.length > 1 ? `${options.indent ?? ""} ` : options.indent
|
|
85280
|
+
});
|
|
85281
|
+
});
|
|
85282
|
+
return true;
|
|
85283
|
+
};
|
|
85284
|
+
var drawTable = (data, options = {}) => {
|
|
84324
85285
|
withRender(() => {
|
|
84325
85286
|
if (data.length == 0) {
|
|
84326
85287
|
console.log("[]");
|
|
@@ -84328,8 +85289,14 @@ var drawTable = (data) => {
|
|
|
84328
85289
|
}
|
|
84329
85290
|
const rows = applyDisplayFilter(
|
|
84330
85291
|
data.map((item) => {
|
|
84331
|
-
const maskedItem = maskSensitiveData(item);
|
|
84332
|
-
|
|
85292
|
+
const maskedItem = maskSensitiveData(item, void 0, false);
|
|
85293
|
+
const row = toJsonObject(maskedItem) ?? {};
|
|
85294
|
+
const visibleRow = {};
|
|
85295
|
+
for (const key of Object.keys(row)) {
|
|
85296
|
+
if (isNormalViewHiddenKey(key)) continue;
|
|
85297
|
+
visibleRow[key] = row[key];
|
|
85298
|
+
}
|
|
85299
|
+
return visibleRow;
|
|
84333
85300
|
})
|
|
84334
85301
|
);
|
|
84335
85302
|
const obj = rows.reduce((res, item) => ({ ...res, ...item }), {});
|
|
@@ -84338,42 +85305,14 @@ var drawTable = (data) => {
|
|
|
84338
85305
|
drawJSON(data);
|
|
84339
85306
|
return;
|
|
84340
85307
|
}
|
|
84341
|
-
|
|
84342
|
-
|
|
84343
|
-
|
|
84344
|
-
|
|
84345
|
-
|
|
84346
|
-
const value = row[key];
|
|
84347
|
-
if (typeof value === "function") continue;
|
|
84348
|
-
if (value == null) continue;
|
|
84349
|
-
if (value?.constructor?.name === "BigNumber") {
|
|
84350
|
-
entries.push([key, String(value)]);
|
|
84351
|
-
continue;
|
|
84352
|
-
}
|
|
84353
|
-
if (typeof value === "object") continue;
|
|
84354
|
-
if (typeof value === "string" && value.trim() === "") continue;
|
|
84355
|
-
entries.push([key, String(value)]);
|
|
84356
|
-
}
|
|
84357
|
-
return entries;
|
|
84358
|
-
});
|
|
84359
|
-
const flatEntries = rowEntries.flat();
|
|
84360
|
-
if (flatEntries.length === 0) {
|
|
85308
|
+
if (allKeys.length > MAX_COLUMNS) {
|
|
85309
|
+
if (drawNamedObjectCollection(rows, options)) {
|
|
85310
|
+
return;
|
|
85311
|
+
}
|
|
85312
|
+
if (rows.every((row) => toScalarEntries(row).length === 0)) {
|
|
84361
85313
|
drawJSON(data);
|
|
84362
85314
|
return;
|
|
84363
85315
|
}
|
|
84364
|
-
const maxKeyLen = Math.max(...flatEntries.map(([key]) => key.length));
|
|
84365
|
-
const separatorLen = Math.min(
|
|
84366
|
-
maxKeyLen + 2 + MAX_COL_WIDTH,
|
|
84367
|
-
process.stdout.columns || 80
|
|
84368
|
-
);
|
|
84369
|
-
rowEntries.forEach((entries, idx) => {
|
|
84370
|
-
if (idx > 0) console.log(import_chalk2.default.cyan("\u2500".repeat(separatorLen)));
|
|
84371
|
-
for (const [key, value] of entries) {
|
|
84372
|
-
const paddedKey = key.padEnd(maxKeyLen);
|
|
84373
|
-
console.log(`${import_chalk2.default.yellow.bold(paddedKey)} ${value}`);
|
|
84374
|
-
}
|
|
84375
|
-
});
|
|
84376
|
-
return;
|
|
84377
85316
|
}
|
|
84378
85317
|
const columns = allKeys;
|
|
84379
85318
|
const def = allKeys.reduce((result, key) => {
|
|
@@ -84382,7 +85321,7 @@ var drawTable = (data) => {
|
|
|
84382
85321
|
}, {});
|
|
84383
85322
|
const normalizedData = rows.map((item) => ({ ...def, ...item }));
|
|
84384
85323
|
const table = new import_cli_table3.default({
|
|
84385
|
-
head: columns.map((c) =>
|
|
85324
|
+
head: columns.map((c) => import_chalk3.default.cyan.italic.bold(c)),
|
|
84386
85325
|
colWidths: columns.map(() => null),
|
|
84387
85326
|
wordWrap: false,
|
|
84388
85327
|
chars: {
|
|
@@ -84396,11 +85335,11 @@ var drawTable = (data) => {
|
|
|
84396
85335
|
"bottom-right": " ",
|
|
84397
85336
|
left: " ",
|
|
84398
85337
|
"left-mid": " ",
|
|
84399
|
-
mid:
|
|
84400
|
-
"mid-mid":
|
|
85338
|
+
mid: import_chalk3.default.cyan("\u2500"),
|
|
85339
|
+
"mid-mid": import_chalk3.default.cyan("\u253C"),
|
|
84401
85340
|
right: " ",
|
|
84402
85341
|
"right-mid": " ",
|
|
84403
|
-
middle:
|
|
85342
|
+
middle: import_chalk3.default.cyan("\u2502")
|
|
84404
85343
|
}
|
|
84405
85344
|
});
|
|
84406
85345
|
normalizedData.forEach((row) => {
|
|
@@ -84493,23 +85432,23 @@ var parseBool = (value) => {
|
|
|
84493
85432
|
throw new InvalidArgumentError("Not a boolean.");
|
|
84494
85433
|
};
|
|
84495
85434
|
var log = (message) => {
|
|
84496
|
-
console.log(`${
|
|
85435
|
+
console.log(`${import_chalk3.default.cyan.bold("\u2139 Info:")} ${import_chalk3.default.cyan(message ?? "")}`);
|
|
84497
85436
|
};
|
|
84498
85437
|
var warn = (message) => {
|
|
84499
85438
|
console.log(
|
|
84500
|
-
`${
|
|
85439
|
+
`${import_chalk3.default.yellow.bold("\u2139 Warning:")} ${import_chalk3.default.yellow(message ?? "")}`
|
|
84501
85440
|
);
|
|
84502
85441
|
};
|
|
84503
85442
|
var hint = (message) => {
|
|
84504
|
-
console.log(`${
|
|
85443
|
+
console.log(`${import_chalk3.default.cyan.bold("\u2665 Hint:")} ${import_chalk3.default.cyan(message ?? "")}`);
|
|
84505
85444
|
};
|
|
84506
85445
|
var success2 = (message) => {
|
|
84507
85446
|
console.log(
|
|
84508
|
-
`${
|
|
85447
|
+
`${import_chalk3.default.green.bold("\u2713 Success:")} ${import_chalk3.default.green(message ?? "")}`
|
|
84509
85448
|
);
|
|
84510
85449
|
};
|
|
84511
85450
|
var error48 = (message) => {
|
|
84512
|
-
console.error(`${
|
|
85451
|
+
console.error(`${import_chalk3.default.red.bold("\u2717 Error:")} ${import_chalk3.default.red(message ?? "")}`);
|
|
84513
85452
|
};
|
|
84514
85453
|
var logo = SDK_LOGO;
|
|
84515
85454
|
var commandDescriptions = {
|
|
@@ -84543,7 +85482,7 @@ var commandDescriptions = {
|
|
|
84543
85482
|
migrations: `The migrations command allows you to migrate data between services.`,
|
|
84544
85483
|
vcs: `The vcs command allows you to interact with VCS providers and manage your code repositories.`,
|
|
84545
85484
|
webhooks: `The webhooks command allows you to manage your project webhooks.`,
|
|
84546
|
-
main:
|
|
85485
|
+
main: import_chalk3.default.redBright(`${logo}${description}`)
|
|
84547
85486
|
};
|
|
84548
85487
|
|
|
84549
85488
|
// lib/commands/utils/deployment.ts
|
|
@@ -84553,7 +85492,9 @@ function listDeployableFiles(dirPath, extraIgnoreRules = []) {
|
|
|
84553
85492
|
const normalizePath = (value) => value.split(path.sep).join("/");
|
|
84554
85493
|
const createMatcher = (baseDir, rules) => {
|
|
84555
85494
|
const ignorer = ignore();
|
|
84556
|
-
|
|
85495
|
+
for (const rule of rules) {
|
|
85496
|
+
ignorer.add(rule);
|
|
85497
|
+
}
|
|
84557
85498
|
return {
|
|
84558
85499
|
baseDir,
|
|
84559
85500
|
ignorer
|
|
@@ -84750,7 +85691,7 @@ async function pushDeployment(params) {
|
|
|
84750
85691
|
}
|
|
84751
85692
|
|
|
84752
85693
|
// lib/questions.ts
|
|
84753
|
-
var
|
|
85694
|
+
var import_chalk4 = __toESM(require_source(), 1);
|
|
84754
85695
|
|
|
84755
85696
|
// lib/sdks.ts
|
|
84756
85697
|
import os5 from "os";
|
|
@@ -85017,17 +85958,17 @@ var questionsPullResources = [
|
|
|
85017
85958
|
name: "resource",
|
|
85018
85959
|
message: "Which resources would you like to pull?",
|
|
85019
85960
|
choices: [
|
|
85020
|
-
{ name: `Settings ${
|
|
85961
|
+
{ name: `Settings ${import_chalk4.default.blackBright(`(Project)`)}`, value: "settings" },
|
|
85021
85962
|
{
|
|
85022
|
-
name: `Functions ${
|
|
85963
|
+
name: `Functions ${import_chalk4.default.blackBright(`(Deployment)`)}`,
|
|
85023
85964
|
value: "functions"
|
|
85024
85965
|
},
|
|
85025
|
-
{ name: `Tables ${
|
|
85026
|
-
{ name: `Buckets ${
|
|
85027
|
-
{ name: `Teams ${
|
|
85028
|
-
{ name: `Topics ${
|
|
85966
|
+
{ name: `Tables ${import_chalk4.default.blackBright(`(TablesDB)`)}`, value: "tables" },
|
|
85967
|
+
{ name: `Buckets ${import_chalk4.default.blackBright(`(Storage)`)}`, value: "buckets" },
|
|
85968
|
+
{ name: `Teams ${import_chalk4.default.blackBright(`(Auth)`)}`, value: "teams" },
|
|
85969
|
+
{ name: `Topics ${import_chalk4.default.blackBright(`(Messaging)`)}`, value: "messages" },
|
|
85029
85970
|
{
|
|
85030
|
-
name: `Collections ${
|
|
85971
|
+
name: `Collections ${import_chalk4.default.blackBright(`(Legacy Databases)`)}`,
|
|
85031
85972
|
value: "collections"
|
|
85032
85973
|
}
|
|
85033
85974
|
]
|
|
@@ -85072,6 +86013,14 @@ var questionsPushFunctionsCode = [
|
|
|
85072
86013
|
message: "Do you want to create a deployment for your functions?"
|
|
85073
86014
|
}
|
|
85074
86015
|
];
|
|
86016
|
+
var questionsPushFunctionsActivate = [
|
|
86017
|
+
{
|
|
86018
|
+
type: "confirm",
|
|
86019
|
+
name: "activate",
|
|
86020
|
+
message: "Do you want to activate the deployment after it is ready?",
|
|
86021
|
+
default: true
|
|
86022
|
+
}
|
|
86023
|
+
];
|
|
85075
86024
|
var questionsPullSites = [
|
|
85076
86025
|
{
|
|
85077
86026
|
type: "checkbox",
|
|
@@ -85152,17 +86101,17 @@ var questionsPushResources = [
|
|
|
85152
86101
|
name: "resource",
|
|
85153
86102
|
message: "Which resources would you like to push?",
|
|
85154
86103
|
choices: [
|
|
85155
|
-
{ name: `Settings ${
|
|
86104
|
+
{ name: `Settings ${import_chalk4.default.blackBright(`(Project)`)}`, value: "settings" },
|
|
85156
86105
|
{
|
|
85157
|
-
name: `Functions ${
|
|
86106
|
+
name: `Functions ${import_chalk4.default.blackBright(`(Deployment)`)}`,
|
|
85158
86107
|
value: "functions"
|
|
85159
86108
|
},
|
|
85160
|
-
{ name: `Tables ${
|
|
85161
|
-
{ name: `Buckets ${
|
|
85162
|
-
{ name: `Teams ${
|
|
85163
|
-
{ name: `Topics ${
|
|
86109
|
+
{ name: `Tables ${import_chalk4.default.blackBright(`(TablesDB)`)}`, value: "tables" },
|
|
86110
|
+
{ name: `Buckets ${import_chalk4.default.blackBright(`(Storage)`)}`, value: "buckets" },
|
|
86111
|
+
{ name: `Teams ${import_chalk4.default.blackBright(`(Auth)`)}`, value: "teams" },
|
|
86112
|
+
{ name: `Topics ${import_chalk4.default.blackBright(`(Messaging)`)}`, value: "messages" },
|
|
85164
86113
|
{
|
|
85165
|
-
name: `Collections ${
|
|
86114
|
+
name: `Collections ${import_chalk4.default.blackBright(`(Legacy Databases)`)}`,
|
|
85166
86115
|
value: "collections"
|
|
85167
86116
|
}
|
|
85168
86117
|
]
|
|
@@ -85547,7 +86496,7 @@ var Pools = class {
|
|
|
85547
86496
|
};
|
|
85548
86497
|
|
|
85549
86498
|
// lib/commands/utils/attributes.ts
|
|
85550
|
-
var
|
|
86499
|
+
var import_chalk5 = __toESM(require_source(), 1);
|
|
85551
86500
|
var import_inquirer = __toESM(require_inquirer(), 1);
|
|
85552
86501
|
var changeableKeys = [
|
|
85553
86502
|
"status",
|
|
@@ -85617,11 +86566,11 @@ var Attributes = class {
|
|
|
85617
86566
|
if (Array.isArray(remote) && Array.isArray(local)) {
|
|
85618
86567
|
if (JSON.stringify(remote) !== JSON.stringify(local)) {
|
|
85619
86568
|
const bol = reason === "" ? "" : "\n";
|
|
85620
|
-
reason += `${bol}${key} changed from ${
|
|
86569
|
+
reason += `${bol}${key} changed from ${import_chalk5.default.red(remote)} to ${import_chalk5.default.green(local)}`;
|
|
85621
86570
|
}
|
|
85622
86571
|
} else if (!this.isEqual(remote, local)) {
|
|
85623
86572
|
const bol = reason === "" ? "" : "\n";
|
|
85624
|
-
reason += `${bol}${key} changed from ${
|
|
86573
|
+
reason += `${bol}${key} changed from ${import_chalk5.default.red(remote)} to ${import_chalk5.default.green(local)}`;
|
|
85625
86574
|
}
|
|
85626
86575
|
return reason;
|
|
85627
86576
|
};
|
|
@@ -85633,8 +86582,8 @@ var Attributes = class {
|
|
|
85633
86582
|
if (local === void 0) {
|
|
85634
86583
|
return void 0;
|
|
85635
86584
|
}
|
|
85636
|
-
const keyName = `${
|
|
85637
|
-
const action =
|
|
86585
|
+
const keyName = `${import_chalk5.default.yellow(local.key)} in ${collection.name} (${collection["$id"]})`;
|
|
86586
|
+
const action = import_chalk5.default.cyan(recreating ? "recreating" : "changing");
|
|
85638
86587
|
let reason = "";
|
|
85639
86588
|
const attribute = recreating ? remote : local;
|
|
85640
86589
|
for (const key of Object.keys(remote)) {
|
|
@@ -85660,10 +86609,10 @@ var Attributes = class {
|
|
|
85660
86609
|
attributesContains = (attribute, attributes) => attributes.find((attr) => attr.key === attribute.key);
|
|
85661
86610
|
generateChangesObject = (attribute, collection, isAdding) => {
|
|
85662
86611
|
return {
|
|
85663
|
-
key: `${
|
|
86612
|
+
key: `${import_chalk5.default.yellow(attribute.key)} in ${collection.name} (${collection["$id"]})`,
|
|
85664
86613
|
attribute,
|
|
85665
86614
|
reason: isAdding ? "Field isn't present on the remote server" : "Field isn't present on the appwrite.config.json file",
|
|
85666
|
-
action: isAdding ?
|
|
86615
|
+
action: isAdding ? import_chalk5.default.green("adding") : import_chalk5.default.red("deleting")
|
|
85667
86616
|
};
|
|
85668
86617
|
};
|
|
85669
86618
|
createAttribute = async (databaseId, collectionId, attribute) => {
|
|
@@ -86069,25 +87018,25 @@ var Attributes = class {
|
|
|
86069
87018
|
if (!cliConfig.force) {
|
|
86070
87019
|
if (deleting.length > 0 && !isIndex) {
|
|
86071
87020
|
console.log(
|
|
86072
|
-
`${
|
|
87021
|
+
`${import_chalk5.default.red("------------------------------------------------------")}`
|
|
86073
87022
|
);
|
|
86074
87023
|
console.log(
|
|
86075
|
-
`${
|
|
87024
|
+
`${import_chalk5.default.red("| WARNING: Attribute deletion may cause loss of data |")}`
|
|
86076
87025
|
);
|
|
86077
87026
|
console.log(
|
|
86078
|
-
`${
|
|
87027
|
+
`${import_chalk5.default.red("------------------------------------------------------")}`
|
|
86079
87028
|
);
|
|
86080
87029
|
console.log();
|
|
86081
87030
|
}
|
|
86082
87031
|
if (conflicts.length > 0 && !isIndex) {
|
|
86083
87032
|
console.log(
|
|
86084
|
-
`${
|
|
87033
|
+
`${import_chalk5.default.red("--------------------------------------------------------")}`
|
|
86085
87034
|
);
|
|
86086
87035
|
console.log(
|
|
86087
|
-
`${
|
|
87036
|
+
`${import_chalk5.default.red("| WARNING: Attribute recreation may cause loss of data |")}`
|
|
86088
87037
|
);
|
|
86089
87038
|
console.log(
|
|
86090
|
-
`${
|
|
87039
|
+
`${import_chalk5.default.red("--------------------------------------------------------")}`
|
|
86091
87040
|
);
|
|
86092
87041
|
console.log();
|
|
86093
87042
|
}
|
|
@@ -86220,7 +87169,7 @@ var Attributes = class {
|
|
|
86220
87169
|
};
|
|
86221
87170
|
|
|
86222
87171
|
// lib/commands/utils/change-approval.ts
|
|
86223
|
-
var
|
|
87172
|
+
var import_chalk6 = __toESM(require_source(), 1);
|
|
86224
87173
|
var import_inquirer2 = __toESM(require_inquirer(), 1);
|
|
86225
87174
|
var isEmpty = (value) => value === null || value === void 0 || typeof value === "string" && value.trim().length === 0 || Array.isArray(value) && value.length === 0;
|
|
86226
87175
|
var getConfirmation = async () => {
|
|
@@ -86263,8 +87212,8 @@ var getObjectChanges = (remote, local, index, what) => {
|
|
|
86263
87212
|
changes.push({
|
|
86264
87213
|
group: what,
|
|
86265
87214
|
setting: service,
|
|
86266
|
-
remote:
|
|
86267
|
-
local:
|
|
87215
|
+
remote: import_chalk6.default.red(String(status ?? "")),
|
|
87216
|
+
local: import_chalk6.default.green(String(localValue ?? ""))
|
|
86268
87217
|
});
|
|
86269
87218
|
}
|
|
86270
87219
|
}
|
|
@@ -86299,8 +87248,8 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
|
|
|
86299
87248
|
changes.push({
|
|
86300
87249
|
id: localResource["$id"],
|
|
86301
87250
|
key,
|
|
86302
|
-
remote:
|
|
86303
|
-
local:
|
|
87251
|
+
remote: import_chalk6.default.red(value.join("\n")),
|
|
87252
|
+
local: import_chalk6.default.green(
|
|
86304
87253
|
localValue.map((entry) => String(entry)).join("\n")
|
|
86305
87254
|
)
|
|
86306
87255
|
});
|
|
@@ -86309,8 +87258,8 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
|
|
|
86309
87258
|
changes.push({
|
|
86310
87259
|
id: localResource["$id"],
|
|
86311
87260
|
key,
|
|
86312
|
-
remote:
|
|
86313
|
-
local:
|
|
87261
|
+
remote: import_chalk6.default.red(String(value ?? "")),
|
|
87262
|
+
local: import_chalk6.default.green(String(localValue ?? ""))
|
|
86314
87263
|
});
|
|
86315
87264
|
}
|
|
86316
87265
|
}
|
|
@@ -86332,7 +87281,7 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
|
|
|
86332
87281
|
};
|
|
86333
87282
|
|
|
86334
87283
|
// lib/commands/utils/database-sync.ts
|
|
86335
|
-
var
|
|
87284
|
+
var import_chalk7 = __toESM(require_source(), 1);
|
|
86336
87285
|
var isTablesDBResource = (value) => {
|
|
86337
87286
|
if (!value || typeof value !== "object") {
|
|
86338
87287
|
return false;
|
|
@@ -86377,7 +87326,7 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86377
87326
|
toDelete.push(remoteDB);
|
|
86378
87327
|
changes.push({
|
|
86379
87328
|
id: remoteDB.$id,
|
|
86380
|
-
action:
|
|
87329
|
+
action: import_chalk7.default.red("deleting"),
|
|
86381
87330
|
key: "Database",
|
|
86382
87331
|
remote: remoteDB.name,
|
|
86383
87332
|
local: "(deleted locally)"
|
|
@@ -86390,7 +87339,7 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86390
87339
|
toCreate.push(localDB);
|
|
86391
87340
|
changes.push({
|
|
86392
87341
|
id: localDB.$id,
|
|
86393
|
-
action:
|
|
87342
|
+
action: import_chalk7.default.green("creating"),
|
|
86394
87343
|
key: "Database",
|
|
86395
87344
|
remote: "(does not exist)",
|
|
86396
87345
|
local: localDB.name
|
|
@@ -86401,7 +87350,7 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86401
87350
|
hasChanges = true;
|
|
86402
87351
|
changes.push({
|
|
86403
87352
|
id: localDB.$id,
|
|
86404
|
-
action:
|
|
87353
|
+
action: import_chalk7.default.yellow("updating"),
|
|
86405
87354
|
key: "Name",
|
|
86406
87355
|
remote: remoteDB.name,
|
|
86407
87356
|
local: localDB.name
|
|
@@ -86411,7 +87360,7 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86411
87360
|
hasChanges = true;
|
|
86412
87361
|
changes.push({
|
|
86413
87362
|
id: localDB.$id,
|
|
86414
|
-
action:
|
|
87363
|
+
action: import_chalk7.default.yellow("updating"),
|
|
86415
87364
|
key: "Enabled",
|
|
86416
87365
|
remote: remoteDB.enabled,
|
|
86417
87366
|
local: localDB.enabled
|
|
@@ -86429,13 +87378,13 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86429
87378
|
drawTable(changes);
|
|
86430
87379
|
if (toDelete.length > 0) {
|
|
86431
87380
|
console.log(
|
|
86432
|
-
`${
|
|
87381
|
+
`${import_chalk7.default.red("------------------------------------------------------------------")}`
|
|
86433
87382
|
);
|
|
86434
87383
|
console.log(
|
|
86435
|
-
`${
|
|
87384
|
+
`${import_chalk7.default.red("| WARNING: Database deletion will also delete all related tables |")}`
|
|
86436
87385
|
);
|
|
86437
87386
|
console.log(
|
|
86438
|
-
`${
|
|
87387
|
+
`${import_chalk7.default.red("------------------------------------------------------------------")}`
|
|
86439
87388
|
);
|
|
86440
87389
|
console.log();
|
|
86441
87390
|
}
|
|
@@ -86567,7 +87516,7 @@ var Push = class {
|
|
|
86567
87516
|
settings: config2.settings
|
|
86568
87517
|
});
|
|
86569
87518
|
this.success(
|
|
86570
|
-
`Successfully pushed ${
|
|
87519
|
+
`Successfully pushed ${import_chalk8.default.bold("all")} project settings.`
|
|
86571
87520
|
);
|
|
86572
87521
|
results.settings = { success: true };
|
|
86573
87522
|
} catch (e) {
|
|
@@ -86580,7 +87529,7 @@ var Push = class {
|
|
|
86580
87529
|
this.log("Pushing buckets ...");
|
|
86581
87530
|
const result = await this.pushBuckets(config2.buckets);
|
|
86582
87531
|
this.success(
|
|
86583
|
-
`Successfully pushed ${
|
|
87532
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} buckets.`
|
|
86584
87533
|
);
|
|
86585
87534
|
results.buckets = result;
|
|
86586
87535
|
allErrors.push(...result.errors);
|
|
@@ -86594,7 +87543,7 @@ var Push = class {
|
|
|
86594
87543
|
this.log("Pushing teams ...");
|
|
86595
87544
|
const result = await this.pushTeams(config2.teams);
|
|
86596
87545
|
this.success(
|
|
86597
|
-
`Successfully pushed ${
|
|
87546
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} teams.`
|
|
86598
87547
|
);
|
|
86599
87548
|
results.teams = result;
|
|
86600
87549
|
allErrors.push(...result.errors);
|
|
@@ -86608,7 +87557,7 @@ var Push = class {
|
|
|
86608
87557
|
this.log("Pushing topics ...");
|
|
86609
87558
|
const result = await this.pushMessagingTopics(config2.topics);
|
|
86610
87559
|
this.success(
|
|
86611
|
-
`Successfully pushed ${
|
|
87560
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} topics.`
|
|
86612
87561
|
);
|
|
86613
87562
|
results.topics = result;
|
|
86614
87563
|
allErrors.push(...result.errors);
|
|
@@ -86625,7 +87574,7 @@ var Push = class {
|
|
|
86625
87574
|
options.functionOptions
|
|
86626
87575
|
);
|
|
86627
87576
|
this.success(
|
|
86628
|
-
`Successfully pushed ${
|
|
87577
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} functions.`
|
|
86629
87578
|
);
|
|
86630
87579
|
results.functions = result;
|
|
86631
87580
|
allErrors.push(...result.errors);
|
|
@@ -86647,7 +87596,7 @@ var Push = class {
|
|
|
86647
87596
|
options.siteOptions
|
|
86648
87597
|
);
|
|
86649
87598
|
this.success(
|
|
86650
|
-
`Successfully pushed ${
|
|
87599
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} sites.`
|
|
86651
87600
|
);
|
|
86652
87601
|
results.sites = result;
|
|
86653
87602
|
allErrors.push(...result.errors);
|
|
@@ -86669,7 +87618,7 @@ var Push = class {
|
|
|
86669
87618
|
skipConfirmation: options.skipConfirmation
|
|
86670
87619
|
});
|
|
86671
87620
|
this.success(
|
|
86672
|
-
`Successfully pushed ${
|
|
87621
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} tables.`
|
|
86673
87622
|
);
|
|
86674
87623
|
results.tables = result;
|
|
86675
87624
|
allErrors.push(...result.errors);
|
|
@@ -86696,7 +87645,7 @@ var Push = class {
|
|
|
86696
87645
|
skipConfirmation: options.skipConfirmation
|
|
86697
87646
|
});
|
|
86698
87647
|
this.success(
|
|
86699
|
-
`Successfully pushed ${
|
|
87648
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} collections.`
|
|
86700
87649
|
);
|
|
86701
87650
|
results.collections = result;
|
|
86702
87651
|
allErrors.push(...result.errors);
|
|
@@ -86812,14 +87761,14 @@ var Push = class {
|
|
|
86812
87761
|
};
|
|
86813
87762
|
for (const bucket of buckets) {
|
|
86814
87763
|
try {
|
|
86815
|
-
this.log(`Pushing bucket ${
|
|
87764
|
+
this.log(`Pushing bucket ${import_chalk8.default.bold(bucket["name"])} ...`);
|
|
86816
87765
|
const storageService = await getStorageService(this.projectClient);
|
|
86817
87766
|
try {
|
|
86818
87767
|
const remoteBucket = await storageService.getBucket(bucket["$id"]);
|
|
86819
87768
|
const hasChanges = hasBucketChanges(remoteBucket, bucket);
|
|
86820
87769
|
if (!hasChanges) {
|
|
86821
87770
|
this.log(
|
|
86822
|
-
`No changes detected for bucket ${
|
|
87771
|
+
`No changes detected for bucket ${import_chalk8.default.bold(bucket["name"])}. Skipping.`
|
|
86823
87772
|
);
|
|
86824
87773
|
continue;
|
|
86825
87774
|
}
|
|
@@ -86870,7 +87819,7 @@ var Push = class {
|
|
|
86870
87819
|
const errors = [];
|
|
86871
87820
|
for (const team of teams) {
|
|
86872
87821
|
try {
|
|
86873
|
-
this.log(`Pushing team ${
|
|
87822
|
+
this.log(`Pushing team ${import_chalk8.default.bold(team["name"])} ...`);
|
|
86874
87823
|
const teamsService = await getTeamsService(this.projectClient);
|
|
86875
87824
|
try {
|
|
86876
87825
|
await teamsService.get(team["$id"]);
|
|
@@ -86904,7 +87853,7 @@ var Push = class {
|
|
|
86904
87853
|
const errors = [];
|
|
86905
87854
|
for (const topic of topics) {
|
|
86906
87855
|
try {
|
|
86907
|
-
this.log(`Pushing topic ${
|
|
87856
|
+
this.log(`Pushing topic ${import_chalk8.default.bold(topic["name"])} ...`);
|
|
86908
87857
|
const messagingService = await getMessagingService(this.projectClient);
|
|
86909
87858
|
try {
|
|
86910
87859
|
await messagingService.getTopic(topic["$id"]);
|
|
@@ -86937,12 +87886,18 @@ var Push = class {
|
|
|
86937
87886
|
};
|
|
86938
87887
|
}
|
|
86939
87888
|
async pushFunctions(functions, options = {}) {
|
|
86940
|
-
const {
|
|
87889
|
+
const {
|
|
87890
|
+
async: asyncDeploy,
|
|
87891
|
+
code,
|
|
87892
|
+
activate = true,
|
|
87893
|
+
withVariables
|
|
87894
|
+
} = options;
|
|
86941
87895
|
Spinner.start(false);
|
|
86942
87896
|
let successfullyPushed = 0;
|
|
86943
87897
|
let successfullyDeployed = 0;
|
|
86944
87898
|
const failedDeployments = [];
|
|
86945
87899
|
const errors = [];
|
|
87900
|
+
const deploymentLogs = [];
|
|
86946
87901
|
await Promise.all(
|
|
86947
87902
|
functions.map(async (func) => {
|
|
86948
87903
|
let response = {};
|
|
@@ -87114,6 +88069,7 @@ var Push = class {
|
|
|
87114
88069
|
});
|
|
87115
88070
|
return;
|
|
87116
88071
|
}
|
|
88072
|
+
const deployStartTime = Date.now();
|
|
87117
88073
|
try {
|
|
87118
88074
|
updaterRow.update({ status: "Pushing" }).replaceSpinner(SPINNER_DOTS);
|
|
87119
88075
|
const functionsServiceDeploy = await getFunctionsService(
|
|
@@ -87128,7 +88084,7 @@ var Push = class {
|
|
|
87128
88084
|
entrypoint: func.entrypoint,
|
|
87129
88085
|
commands: func.commands,
|
|
87130
88086
|
code: codeFile,
|
|
87131
|
-
activate
|
|
88087
|
+
activate
|
|
87132
88088
|
});
|
|
87133
88089
|
},
|
|
87134
88090
|
pollForStatus: false
|
|
@@ -87180,6 +88136,19 @@ var Push = class {
|
|
|
87180
88136
|
});
|
|
87181
88137
|
const status = response["status"];
|
|
87182
88138
|
if (status === "ready") {
|
|
88139
|
+
if (activate) {
|
|
88140
|
+
updaterRow.update({
|
|
88141
|
+
status: "Activating",
|
|
88142
|
+
end: "Setting active deployment..."
|
|
88143
|
+
});
|
|
88144
|
+
const functionsServiceActivate = await getFunctionsService(
|
|
88145
|
+
this.projectClient
|
|
88146
|
+
);
|
|
88147
|
+
await functionsServiceActivate.updateFunctionDeployment({
|
|
88148
|
+
functionId: func["$id"],
|
|
88149
|
+
deploymentId
|
|
88150
|
+
});
|
|
88151
|
+
}
|
|
87183
88152
|
successfullyDeployed++;
|
|
87184
88153
|
let url2 = "";
|
|
87185
88154
|
const proxyServiceUrl = await getProxyService(
|
|
@@ -87196,7 +88165,23 @@ var Push = class {
|
|
|
87196
88165
|
if (Number(res.total) === 1) {
|
|
87197
88166
|
url2 = `https://${res.rules[0].domain}`;
|
|
87198
88167
|
}
|
|
87199
|
-
|
|
88168
|
+
const elapsed = ((Date.now() - deployStartTime) / 1e3).toFixed(
|
|
88169
|
+
1
|
|
88170
|
+
);
|
|
88171
|
+
const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
|
|
88172
|
+
const projectId = localConfig.getProject().projectId;
|
|
88173
|
+
const consoleUrl = getFunctionDeploymentConsoleUrl(
|
|
88174
|
+
endpoint,
|
|
88175
|
+
projectId,
|
|
88176
|
+
func["$id"],
|
|
88177
|
+
deploymentId
|
|
88178
|
+
);
|
|
88179
|
+
updaterRow.stopSpinner();
|
|
88180
|
+
updaterRow.update({
|
|
88181
|
+
status: activate ? "Deployed" : "Built",
|
|
88182
|
+
end: ""
|
|
88183
|
+
});
|
|
88184
|
+
deploymentLogs.push({ url: url2, consoleUrl, elapsed });
|
|
87200
88185
|
break;
|
|
87201
88186
|
} else if (status === "failed") {
|
|
87202
88187
|
failedDeployments.push({
|
|
@@ -87227,6 +88212,13 @@ var Push = class {
|
|
|
87227
88212
|
})
|
|
87228
88213
|
);
|
|
87229
88214
|
Spinner.stop();
|
|
88215
|
+
for (const dl of deploymentLogs) {
|
|
88216
|
+
if (dl.url) {
|
|
88217
|
+
this.log(` ${import_chalk8.default.cyan("\u2192")} ${dl.url}`);
|
|
88218
|
+
}
|
|
88219
|
+
this.log(` ${import_chalk8.default.cyan("\u2192")} ${dl.consoleUrl}`);
|
|
88220
|
+
this.success(`Successfully deployed in ${import_chalk8.default.bold(dl.elapsed + "s")}`);
|
|
88221
|
+
}
|
|
87230
88222
|
return {
|
|
87231
88223
|
successfullyPushed,
|
|
87232
88224
|
successfullyDeployed,
|
|
@@ -87246,6 +88238,7 @@ var Push = class {
|
|
|
87246
88238
|
let successfullyDeployed = 0;
|
|
87247
88239
|
const failedDeployments = [];
|
|
87248
88240
|
const errors = [];
|
|
88241
|
+
const deploymentLogs = [];
|
|
87249
88242
|
await Promise.all(
|
|
87250
88243
|
sites.map(async (site) => {
|
|
87251
88244
|
let response = {};
|
|
@@ -87411,6 +88404,7 @@ var Push = class {
|
|
|
87411
88404
|
});
|
|
87412
88405
|
return;
|
|
87413
88406
|
}
|
|
88407
|
+
const deployStartTime = Date.now();
|
|
87414
88408
|
try {
|
|
87415
88409
|
updaterRow.update({ status: "Pushing" }).replaceSpinner(SPINNER_DOTS);
|
|
87416
88410
|
const sitesServiceDeploy = await getSitesService(this.projectClient);
|
|
@@ -87423,7 +88417,7 @@ var Push = class {
|
|
|
87423
88417
|
buildCommand: site.buildCommand,
|
|
87424
88418
|
outputDirectory: site.outputDirectory,
|
|
87425
88419
|
code: codeFile,
|
|
87426
|
-
activate
|
|
88420
|
+
activate
|
|
87427
88421
|
});
|
|
87428
88422
|
},
|
|
87429
88423
|
pollForStatus: false
|
|
@@ -87504,10 +88498,23 @@ var Push = class {
|
|
|
87504
88498
|
if (Number(res.total) === 1) {
|
|
87505
88499
|
url2 = `https://${res.rules[0].domain}`;
|
|
87506
88500
|
}
|
|
88501
|
+
const elapsed = ((Date.now() - deployStartTime) / 1e3).toFixed(
|
|
88502
|
+
1
|
|
88503
|
+
);
|
|
88504
|
+
const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
|
|
88505
|
+
const projectId = localConfig.getProject().projectId;
|
|
88506
|
+
const consoleUrl = getSiteDeploymentConsoleUrl(
|
|
88507
|
+
endpoint,
|
|
88508
|
+
projectId,
|
|
88509
|
+
site["$id"],
|
|
88510
|
+
deploymentId
|
|
88511
|
+
);
|
|
88512
|
+
updaterRow.stopSpinner();
|
|
87507
88513
|
updaterRow.update({
|
|
87508
88514
|
status: activate ? "Deployed" : "Built",
|
|
87509
|
-
end:
|
|
88515
|
+
end: ""
|
|
87510
88516
|
});
|
|
88517
|
+
deploymentLogs.push({ url: url2, consoleUrl, elapsed });
|
|
87511
88518
|
break;
|
|
87512
88519
|
} else if (status === "failed") {
|
|
87513
88520
|
failedDeployments.push({
|
|
@@ -87538,6 +88545,13 @@ var Push = class {
|
|
|
87538
88545
|
})
|
|
87539
88546
|
);
|
|
87540
88547
|
Spinner.stop();
|
|
88548
|
+
for (const dl of deploymentLogs) {
|
|
88549
|
+
if (dl.url) {
|
|
88550
|
+
this.log(` ${import_chalk8.default.cyan("\u2192")} ${dl.url}`);
|
|
88551
|
+
}
|
|
88552
|
+
this.log(` ${import_chalk8.default.cyan("\u2192")} ${dl.consoleUrl}`);
|
|
88553
|
+
this.success(`Successfully deployed in ${import_chalk8.default.bold(dl.elapsed + "s")}`);
|
|
88554
|
+
}
|
|
87541
88555
|
return {
|
|
87542
88556
|
successfullyPushed,
|
|
87543
88557
|
successfullyDeployed,
|
|
@@ -87630,7 +88644,7 @@ var Push = class {
|
|
|
87630
88644
|
if (!hadChanges && columns.length <= 0 && indexes.length <= 0) {
|
|
87631
88645
|
if (!tablesChanged.has(table["$id"])) {
|
|
87632
88646
|
this.log(
|
|
87633
|
-
`No changes detected for table ${
|
|
88647
|
+
`No changes detected for table ${import_chalk8.default.bold(table["name"])}. Skipping.`
|
|
87634
88648
|
);
|
|
87635
88649
|
}
|
|
87636
88650
|
continue;
|
|
@@ -87819,10 +88833,17 @@ var pushResources = async ({
|
|
|
87819
88833
|
checkDeployConditions(localConfig);
|
|
87820
88834
|
const functions = localConfig.getFunctions();
|
|
87821
88835
|
let allowFunctionsCodePush = cliConfig.force === true ? true : null;
|
|
88836
|
+
let activateFunctionsDeployment = cliConfig.force === true ? true : void 0;
|
|
87822
88837
|
if (functions.length > 0 && allowFunctionsCodePush === null) {
|
|
87823
88838
|
const codeAnswer = await import_inquirer3.default.prompt(questionsPushFunctionsCode);
|
|
87824
88839
|
allowFunctionsCodePush = codeAnswer.override;
|
|
87825
88840
|
}
|
|
88841
|
+
if (functions.length > 0 && allowFunctionsCodePush === true && activateFunctionsDeployment === void 0) {
|
|
88842
|
+
const activateAnswer = await import_inquirer3.default.prompt(
|
|
88843
|
+
questionsPushFunctionsActivate
|
|
88844
|
+
);
|
|
88845
|
+
activateFunctionsDeployment = activateAnswer.activate;
|
|
88846
|
+
}
|
|
87826
88847
|
const sites = localConfig.getSites();
|
|
87827
88848
|
let allowSitesCodePush = cliConfig.force === true ? true : null;
|
|
87828
88849
|
let activateSitesDeployment = cliConfig.force === true ? true : void 0;
|
|
@@ -87863,6 +88884,7 @@ var pushResources = async ({
|
|
|
87863
88884
|
skipDeprecated,
|
|
87864
88885
|
functionOptions: {
|
|
87865
88886
|
code: allowFunctionsCodePush === true,
|
|
88887
|
+
activate: activateFunctionsDeployment ?? true,
|
|
87866
88888
|
withVariables: false
|
|
87867
88889
|
},
|
|
87868
88890
|
siteOptions: {
|
|
@@ -87942,7 +88964,7 @@ var pushSettings = async () => {
|
|
|
87942
88964
|
projectName: config2.projectName,
|
|
87943
88965
|
settings: config2.projectSettings
|
|
87944
88966
|
});
|
|
87945
|
-
success2(`Successfully pushed ${
|
|
88967
|
+
success2(`Successfully pushed ${import_chalk8.default.bold("all")} project settings.`);
|
|
87946
88968
|
} catch (e) {
|
|
87947
88969
|
throw e;
|
|
87948
88970
|
}
|
|
@@ -88039,17 +89061,12 @@ var pushSite = async ({
|
|
|
88039
89061
|
const { name, deployment, $id } = failed;
|
|
88040
89062
|
const projectId = localConfig.getProject().projectId;
|
|
88041
89063
|
const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
|
|
88042
|
-
|
|
88043
|
-
|
|
88044
|
-
|
|
88045
|
-
|
|
88046
|
-
|
|
88047
|
-
|
|
88048
|
-
}
|
|
88049
|
-
} catch {
|
|
88050
|
-
}
|
|
88051
|
-
const projectSlug = region ? `project-${region}-${projectId}` : `project-${projectId}`;
|
|
88052
|
-
const failUrl = `${globalConfig2.getEndpoint().slice(0, -3)}/console/${projectSlug}/sites/site-${$id}/deployments/deployment-${deployment}`;
|
|
89064
|
+
const failUrl = getSiteDeploymentConsoleUrl(
|
|
89065
|
+
endpoint,
|
|
89066
|
+
projectId,
|
|
89067
|
+
$id,
|
|
89068
|
+
deployment
|
|
89069
|
+
);
|
|
88053
89070
|
error48(
|
|
88054
89071
|
`Deployment of ${name} has failed. Check at ${failUrl} for more details
|
|
88055
89072
|
`
|
|
@@ -88078,6 +89095,7 @@ var pushFunction = async ({
|
|
|
88078
89095
|
functionId,
|
|
88079
89096
|
async: asyncDeploy,
|
|
88080
89097
|
code,
|
|
89098
|
+
activate,
|
|
88081
89099
|
withVariables
|
|
88082
89100
|
} = {}) => {
|
|
88083
89101
|
process.chdir(localConfig.configDirectoryPath);
|
|
@@ -88142,11 +89160,19 @@ var pushFunction = async ({
|
|
|
88142
89160
|
allowCodePush = codeAnswer.override;
|
|
88143
89161
|
}
|
|
88144
89162
|
const shouldPushCode = code !== false && allowCodePush === true;
|
|
89163
|
+
let shouldActivate = activate;
|
|
89164
|
+
if (shouldPushCode && shouldActivate === void 0) {
|
|
89165
|
+
const activateAnswer = await import_inquirer3.default.prompt(
|
|
89166
|
+
questionsPushFunctionsActivate
|
|
89167
|
+
);
|
|
89168
|
+
shouldActivate = activateAnswer.activate;
|
|
89169
|
+
}
|
|
88145
89170
|
log("Pushing functions ...");
|
|
88146
89171
|
const pushInstance = await createPushInstance();
|
|
88147
89172
|
const result = await pushInstance.pushFunctions(functions, {
|
|
88148
89173
|
async: asyncDeploy,
|
|
88149
89174
|
code: shouldPushCode,
|
|
89175
|
+
activate: shouldActivate ?? true,
|
|
88150
89176
|
withVariables
|
|
88151
89177
|
});
|
|
88152
89178
|
const {
|
|
@@ -88159,17 +89185,12 @@ var pushFunction = async ({
|
|
|
88159
89185
|
const { name, deployment, $id } = failed;
|
|
88160
89186
|
const projectId = localConfig.getProject().projectId;
|
|
88161
89187
|
const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
|
|
88162
|
-
|
|
88163
|
-
|
|
88164
|
-
|
|
88165
|
-
|
|
88166
|
-
|
|
88167
|
-
|
|
88168
|
-
}
|
|
88169
|
-
} catch {
|
|
88170
|
-
}
|
|
88171
|
-
const projectSlug = region ? `project-${region}-${projectId}` : `project-${projectId}`;
|
|
88172
|
-
const failUrl = `${globalConfig2.getEndpoint().slice(0, -3)}/console/${projectSlug}/functions/function-${$id}/deployment-${deployment}`;
|
|
89188
|
+
const failUrl = getFunctionDeploymentConsoleUrl(
|
|
89189
|
+
endpoint,
|
|
89190
|
+
projectId,
|
|
89191
|
+
$id,
|
|
89192
|
+
deployment
|
|
89193
|
+
);
|
|
88173
89194
|
error48(
|
|
88174
89195
|
`Deployment of ${name} has failed. Check at ${failUrl} for more details
|
|
88175
89196
|
`
|
|
@@ -88263,7 +89284,7 @@ var pushTable = async ({
|
|
|
88263
89284
|
log("Found tables that exist remotely but not locally:");
|
|
88264
89285
|
const deletionChanges = tablesToDelete.map((table) => ({
|
|
88265
89286
|
id: table.$id,
|
|
88266
|
-
action:
|
|
89287
|
+
action: import_chalk8.default.red("deleting"),
|
|
88267
89288
|
key: "Table",
|
|
88268
89289
|
database: table.databaseName,
|
|
88269
89290
|
remote: table.name,
|
|
@@ -88560,7 +89581,11 @@ push.command("all").description("Push all resource.").action(
|
|
|
88560
89581
|
})
|
|
88561
89582
|
);
|
|
88562
89583
|
push.command("settings").description("Push project name, services and auth settings").action(actionRunner(pushSettings));
|
|
88563
|
-
push.command("function").alias("functions").description("Push functions in the current directory.").option(`-f, --function-id <function-id>`, `ID of function to run`).option(`-A, --async`, `Don't wait for functions deployments status`).option("--no-code", "Don't push the function's code").option(
|
|
89584
|
+
push.command("function").alias("functions").description("Push functions in the current directory.").option(`-f, --function-id <function-id>`, `ID of function to run`).option(`-A, --async`, `Don't wait for functions deployments status`).option("--no-code", "Don't push the function's code").option(
|
|
89585
|
+
"--activate [value]",
|
|
89586
|
+
"Activate the function's deployment after it is ready.",
|
|
89587
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
89588
|
+
).option("--with-variables", `Push function variables.`).action(actionRunner(pushFunction));
|
|
88564
89589
|
push.command("site").alias("sites").description("Push sites in the current directory.").option(`-f, --site-id <site-id>`, `ID of site to run`).option(`-A, --async`, `Don't wait for sites deployments status`).option("--no-code", "Don't push the site's code").option(
|
|
88565
89590
|
"--activate [value]",
|
|
88566
89591
|
"Activate the site's deployment after it is ready.",
|
|
@@ -88588,7 +89613,7 @@ var deploy = new Command("deploy").description(`Removed. Use ${EXECUTABLE_NAME}
|
|
|
88588
89613
|
);
|
|
88589
89614
|
|
|
88590
89615
|
// lib/commands/pull.ts
|
|
88591
|
-
var
|
|
89616
|
+
var import_chalk9 = __toESM(require_source(), 1);
|
|
88592
89617
|
import fs5 from "fs";
|
|
88593
89618
|
import path3 from "path";
|
|
88594
89619
|
var import_inquirer4 = __toESM(require_inquirer(), 1);
|
|
@@ -88719,7 +89744,7 @@ var Pull = class {
|
|
|
88719
89744
|
this.log("Pulling project settings ...");
|
|
88720
89745
|
const projectsService = new Projects(this.consoleClient);
|
|
88721
89746
|
const project = await projectsService.get({ projectId });
|
|
88722
|
-
this.success(`Successfully pulled ${
|
|
89747
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold("all")} project settings.`);
|
|
88723
89748
|
return {
|
|
88724
89749
|
projectName: project.name,
|
|
88725
89750
|
settings: createSettingsObject(project),
|
|
@@ -88747,7 +89772,7 @@ var Pull = class {
|
|
|
88747
89772
|
});
|
|
88748
89773
|
if (fetchResponse["functions"].length <= 0) {
|
|
88749
89774
|
this.log("No functions found.");
|
|
88750
|
-
this.success(`Successfully pulled ${
|
|
89775
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} functions.`);
|
|
88751
89776
|
return [];
|
|
88752
89777
|
}
|
|
88753
89778
|
const { functions: allFunctions } = await paginate(
|
|
@@ -88760,8 +89785,8 @@ var Pull = class {
|
|
|
88760
89785
|
}
|
|
88761
89786
|
const result = [];
|
|
88762
89787
|
for (const func of functions) {
|
|
88763
|
-
this.log(`Pulling function ${
|
|
88764
|
-
const funcPath = `functions/${func.name}`;
|
|
89788
|
+
this.log(`Pulling function ${import_chalk9.default.bold(func.name)} ...`);
|
|
89789
|
+
const funcPath = `functions/${getSafeDirectoryName(func.name, func.$id)}`;
|
|
88765
89790
|
const absoluteFuncPath = path3.resolve(this.configDirectoryPath, funcPath);
|
|
88766
89791
|
const holdingVars = func.vars || [];
|
|
88767
89792
|
const functionConfig = {
|
|
@@ -88783,10 +89808,10 @@ var Pull = class {
|
|
|
88783
89808
|
deploymentRetention: func.deploymentRetention
|
|
88784
89809
|
};
|
|
88785
89810
|
result.push(functionConfig);
|
|
88786
|
-
if (!fs5.existsSync(absoluteFuncPath)) {
|
|
88787
|
-
fs5.mkdirSync(absoluteFuncPath, { recursive: true });
|
|
88788
|
-
}
|
|
88789
89811
|
if (options.code !== false) {
|
|
89812
|
+
if (!fs5.existsSync(absoluteFuncPath)) {
|
|
89813
|
+
fs5.mkdirSync(absoluteFuncPath, { recursive: true });
|
|
89814
|
+
}
|
|
88790
89815
|
await downloadDeploymentCode({
|
|
88791
89816
|
resourceId: func["$id"],
|
|
88792
89817
|
resourcePath: absoluteFuncPath,
|
|
@@ -88807,7 +89832,7 @@ var Pull = class {
|
|
|
88807
89832
|
if (options.code === false) {
|
|
88808
89833
|
this.warn("Source code download skipped.");
|
|
88809
89834
|
}
|
|
88810
|
-
this.success(`Successfully pulled ${
|
|
89835
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(result.length)} functions.`);
|
|
88811
89836
|
return result;
|
|
88812
89837
|
}
|
|
88813
89838
|
/**
|
|
@@ -88831,7 +89856,7 @@ var Pull = class {
|
|
|
88831
89856
|
});
|
|
88832
89857
|
if (fetchResponse["sites"].length <= 0) {
|
|
88833
89858
|
this.log("No sites found.");
|
|
88834
|
-
this.success(`Successfully pulled ${
|
|
89859
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} sites.`);
|
|
88835
89860
|
return [];
|
|
88836
89861
|
}
|
|
88837
89862
|
const { sites: fetchedSites } = await paginate(
|
|
@@ -88844,8 +89869,8 @@ var Pull = class {
|
|
|
88844
89869
|
}
|
|
88845
89870
|
const result = [];
|
|
88846
89871
|
for (const site of sites) {
|
|
88847
|
-
this.log(`Pulling site ${
|
|
88848
|
-
const sitePath = `sites/${site.name}`;
|
|
89872
|
+
this.log(`Pulling site ${import_chalk9.default.bold(site.name)} ...`);
|
|
89873
|
+
const sitePath = `sites/${getSafeDirectoryName(site.name, site.$id)}`;
|
|
88849
89874
|
const absoluteSitePath = path3.resolve(this.configDirectoryPath, sitePath);
|
|
88850
89875
|
const holdingVars = site.vars || [];
|
|
88851
89876
|
const siteConfig = {
|
|
@@ -88868,10 +89893,10 @@ var Pull = class {
|
|
|
88868
89893
|
deploymentRetention: site.deploymentRetention
|
|
88869
89894
|
};
|
|
88870
89895
|
result.push(siteConfig);
|
|
88871
|
-
if (!fs5.existsSync(absoluteSitePath)) {
|
|
88872
|
-
fs5.mkdirSync(absoluteSitePath, { recursive: true });
|
|
88873
|
-
}
|
|
88874
89896
|
if (options.code !== false) {
|
|
89897
|
+
if (!fs5.existsSync(absoluteSitePath)) {
|
|
89898
|
+
fs5.mkdirSync(absoluteSitePath, { recursive: true });
|
|
89899
|
+
}
|
|
88875
89900
|
await downloadDeploymentCode({
|
|
88876
89901
|
resourceId: site["$id"],
|
|
88877
89902
|
resourcePath: absoluteSitePath,
|
|
@@ -88892,7 +89917,7 @@ var Pull = class {
|
|
|
88892
89917
|
if (options.code === false) {
|
|
88893
89918
|
this.warn("Source code download skipped.");
|
|
88894
89919
|
}
|
|
88895
|
-
this.success(`Successfully pulled ${
|
|
89920
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(result.length)} sites.`);
|
|
88896
89921
|
return result;
|
|
88897
89922
|
}
|
|
88898
89923
|
/**
|
|
@@ -88908,7 +89933,7 @@ var Pull = class {
|
|
|
88908
89933
|
if (fetchResponse["databases"].length <= 0) {
|
|
88909
89934
|
this.log("No collections found.");
|
|
88910
89935
|
this.success(
|
|
88911
|
-
`Successfully pulled ${
|
|
89936
|
+
`Successfully pulled ${import_chalk9.default.bold(0)} collections from ${import_chalk9.default.bold(0)} databases.`
|
|
88912
89937
|
);
|
|
88913
89938
|
return { databases: [], collections: [] };
|
|
88914
89939
|
}
|
|
@@ -88922,7 +89947,7 @@ var Pull = class {
|
|
|
88922
89947
|
const allCollections = [];
|
|
88923
89948
|
for (const database of databases) {
|
|
88924
89949
|
this.log(
|
|
88925
|
-
`Pulling all collections from ${
|
|
89950
|
+
`Pulling all collections from ${import_chalk9.default.bold(database.name)} database ...`
|
|
88926
89951
|
);
|
|
88927
89952
|
allDatabases.push(database);
|
|
88928
89953
|
const { collections } = await paginate(
|
|
@@ -88943,7 +89968,7 @@ var Pull = class {
|
|
|
88943
89968
|
}
|
|
88944
89969
|
}
|
|
88945
89970
|
this.success(
|
|
88946
|
-
`Successfully pulled ${
|
|
89971
|
+
`Successfully pulled ${import_chalk9.default.bold(allCollections.length)} collections from ${import_chalk9.default.bold(allDatabases.length)} databases.`
|
|
88947
89972
|
);
|
|
88948
89973
|
return {
|
|
88949
89974
|
databases: allDatabases,
|
|
@@ -88962,7 +89987,7 @@ var Pull = class {
|
|
|
88962
89987
|
if (fetchResponse["databases"].length <= 0) {
|
|
88963
89988
|
this.log("No tables found.");
|
|
88964
89989
|
this.success(
|
|
88965
|
-
`Successfully pulled ${
|
|
89990
|
+
`Successfully pulled ${import_chalk9.default.bold(0)} tables from ${import_chalk9.default.bold(0)} tableDBs.`
|
|
88966
89991
|
);
|
|
88967
89992
|
return { databases: [], tables: [] };
|
|
88968
89993
|
}
|
|
@@ -88978,7 +90003,7 @@ var Pull = class {
|
|
|
88978
90003
|
const allTables = [];
|
|
88979
90004
|
for (const database of databases) {
|
|
88980
90005
|
this.log(
|
|
88981
|
-
`Pulling all tables from ${
|
|
90006
|
+
`Pulling all tables from ${import_chalk9.default.bold(database.name)} database ...`
|
|
88982
90007
|
);
|
|
88983
90008
|
allDatabases.push(filterBySchema(database, DatabaseSchema));
|
|
88984
90009
|
const { tables } = await paginate(
|
|
@@ -89005,7 +90030,7 @@ var Pull = class {
|
|
|
89005
90030
|
}
|
|
89006
90031
|
}
|
|
89007
90032
|
this.success(
|
|
89008
|
-
`Successfully pulled ${
|
|
90033
|
+
`Successfully pulled ${import_chalk9.default.bold(allTables.length)} tables from ${import_chalk9.default.bold(allDatabases.length)} tableDBs.`
|
|
89009
90034
|
);
|
|
89010
90035
|
return {
|
|
89011
90036
|
databases: allDatabases,
|
|
@@ -89023,7 +90048,7 @@ var Pull = class {
|
|
|
89023
90048
|
});
|
|
89024
90049
|
if (fetchResponse["buckets"].length <= 0) {
|
|
89025
90050
|
this.log("No buckets found.");
|
|
89026
|
-
this.success(`Successfully pulled ${
|
|
90051
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} buckets.`);
|
|
89027
90052
|
return [];
|
|
89028
90053
|
}
|
|
89029
90054
|
const { buckets } = await paginate(
|
|
@@ -89034,11 +90059,11 @@ var Pull = class {
|
|
|
89034
90059
|
);
|
|
89035
90060
|
const filteredBuckets = [];
|
|
89036
90061
|
for (const bucket of buckets) {
|
|
89037
|
-
this.log(`Pulling bucket ${
|
|
90062
|
+
this.log(`Pulling bucket ${import_chalk9.default.bold(bucket.name)} ...`);
|
|
89038
90063
|
filteredBuckets.push(filterBySchema(bucket, BucketSchema));
|
|
89039
90064
|
}
|
|
89040
90065
|
this.success(
|
|
89041
|
-
`Successfully pulled ${
|
|
90066
|
+
`Successfully pulled ${import_chalk9.default.bold(filteredBuckets.length)} buckets.`
|
|
89042
90067
|
);
|
|
89043
90068
|
return filteredBuckets;
|
|
89044
90069
|
}
|
|
@@ -89053,7 +90078,7 @@ var Pull = class {
|
|
|
89053
90078
|
});
|
|
89054
90079
|
if (fetchResponse["teams"].length <= 0) {
|
|
89055
90080
|
this.log("No teams found.");
|
|
89056
|
-
this.success(`Successfully pulled ${
|
|
90081
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} teams.`);
|
|
89057
90082
|
return [];
|
|
89058
90083
|
}
|
|
89059
90084
|
const { teams } = await paginate(
|
|
@@ -89063,9 +90088,9 @@ var Pull = class {
|
|
|
89063
90088
|
"teams"
|
|
89064
90089
|
);
|
|
89065
90090
|
for (const team of teams) {
|
|
89066
|
-
this.log(`Pulling team ${
|
|
90091
|
+
this.log(`Pulling team ${import_chalk9.default.bold(team.name)} ...`);
|
|
89067
90092
|
}
|
|
89068
|
-
this.success(`Successfully pulled ${
|
|
90093
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(teams.length)} teams.`);
|
|
89069
90094
|
return teams;
|
|
89070
90095
|
}
|
|
89071
90096
|
/**
|
|
@@ -89079,7 +90104,7 @@ var Pull = class {
|
|
|
89079
90104
|
});
|
|
89080
90105
|
if (fetchResponse["topics"].length <= 0) {
|
|
89081
90106
|
this.log("No topics found.");
|
|
89082
|
-
this.success(`Successfully pulled ${
|
|
90107
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} topics.`);
|
|
89083
90108
|
return [];
|
|
89084
90109
|
}
|
|
89085
90110
|
const { topics } = await paginate(
|
|
@@ -89090,11 +90115,11 @@ var Pull = class {
|
|
|
89090
90115
|
);
|
|
89091
90116
|
const filteredTopics = [];
|
|
89092
90117
|
for (const topic of topics) {
|
|
89093
|
-
this.log(`Pulling topic ${
|
|
90118
|
+
this.log(`Pulling topic ${import_chalk9.default.bold(topic.name)} ...`);
|
|
89094
90119
|
filteredTopics.push(filterBySchema(topic, TopicSchema));
|
|
89095
90120
|
}
|
|
89096
90121
|
this.success(
|
|
89097
|
-
`Successfully pulled ${
|
|
90122
|
+
`Successfully pulled ${import_chalk9.default.bold(filteredTopics.length)} topics.`
|
|
89098
90123
|
);
|
|
89099
90124
|
return filteredTopics;
|
|
89100
90125
|
}
|
|
@@ -89151,7 +90176,7 @@ var pullFunctions = async ({
|
|
|
89151
90176
|
const fetchResponse = await functionsService.list([Query.limit(1)]);
|
|
89152
90177
|
if (fetchResponse["functions"].length <= 0) {
|
|
89153
90178
|
log("No functions found.");
|
|
89154
|
-
success2(`Successfully pulled ${
|
|
90179
|
+
success2(`Successfully pulled ${import_chalk9.default.bold(0)} functions.`);
|
|
89155
90180
|
return;
|
|
89156
90181
|
}
|
|
89157
90182
|
const functionsToCheck = cliConfig.all ? (await paginate(
|
|
@@ -89160,7 +90185,7 @@ var pullFunctions = async ({
|
|
|
89160
90185
|
100,
|
|
89161
90186
|
"functions"
|
|
89162
90187
|
)).functions : (await import_inquirer4.default.prompt(questionsPullFunctions)).functions;
|
|
89163
|
-
let allowCodePull =
|
|
90188
|
+
let allowCodePull = null;
|
|
89164
90189
|
if (code !== false && allowCodePull === null) {
|
|
89165
90190
|
const codeAnswer = await import_inquirer4.default.prompt(questionsPullFunctionsCode);
|
|
89166
90191
|
allowCodePull = codeAnswer.override;
|
|
@@ -89189,7 +90214,7 @@ var pullSites = async ({
|
|
|
89189
90214
|
});
|
|
89190
90215
|
if (fetchResponse["sites"].length <= 0) {
|
|
89191
90216
|
log("No sites found.");
|
|
89192
|
-
success2(`Successfully pulled ${
|
|
90217
|
+
success2(`Successfully pulled ${import_chalk9.default.bold(0)} sites.`);
|
|
89193
90218
|
return;
|
|
89194
90219
|
}
|
|
89195
90220
|
const sitesToCheck = cliConfig.all ? (await paginate(
|
|
@@ -89198,7 +90223,7 @@ var pullSites = async ({
|
|
|
89198
90223
|
100,
|
|
89199
90224
|
"sites"
|
|
89200
90225
|
)).sites : (await import_inquirer4.default.prompt(questionsPullSites)).sites;
|
|
89201
|
-
let allowCodePull =
|
|
90226
|
+
let allowCodePull = null;
|
|
89202
90227
|
if (code !== false && allowCodePull === null) {
|
|
89203
90228
|
const codeAnswer = await import_inquirer4.default.prompt(questionsPullSitesCode);
|
|
89204
90229
|
allowCodePull = codeAnswer.override;
|
|
@@ -89326,11 +90351,11 @@ pull.command("all").description("Pull all resources").action(
|
|
|
89326
90351
|
pull.command("settings").description("Pull your Appwrite project name, services and auth settings").action(actionRunner(pullSettings));
|
|
89327
90352
|
pull.command("function").alias("functions").description("Pull your Appwrite cloud function").option("--no-code", "Don't pull the function's code").option(
|
|
89328
90353
|
"--with-variables",
|
|
89329
|
-
`Pull function variables. ${
|
|
90354
|
+
`Pull function variables. ${import_chalk9.default.red("recommend for testing purposes only")}`
|
|
89330
90355
|
).action(actionRunner(pullFunctions));
|
|
89331
90356
|
pull.command("site").alias("sites").description("Pull your Appwrite site").option("--no-code", "Don't pull the site's code").option(
|
|
89332
90357
|
"--with-variables",
|
|
89333
|
-
`Pull site variables. ${
|
|
90358
|
+
`Pull site variables. ${import_chalk9.default.red("recommend for testing purposes only")}`
|
|
89334
90359
|
).action(actionRunner(pullSites));
|
|
89335
90360
|
pull.command("collection").alias("collections").description(
|
|
89336
90361
|
"Pull your Appwrite collections (deprecated, please use 'pull tables' instead)"
|