imdone-cli 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.imdone/actions/board.js +18 -0
- package/.imdone/actions/card.js +6 -0
- package/{src/usecases/__tests__/test-project/.imdone → .imdone}/config.yml +20 -40
- package/.imdone/properties/board.js +116 -0
- package/.imdone/properties/card.js +12 -0
- package/.imdone/style.css +0 -0
- package/.imdone/tags.yml +8 -0
- package/.imdone/templates/user_story.md +21 -0
- package/.imdoneignore +3 -0
- package/README.md +25 -22
- package/dist/.env +1 -0
- package/dist/index.cjs +871 -787
- package/dist/index.min.cjs +151 -151
- package/dist/index.min.cjs.map +4 -4
- package/package.json +5 -5
- package/dist/index.cjs.map +0 -7
- package/src/adapters/__tests__/create-jwt.sh +0 -11
- package/src/adapters/__tests__/jwt-private.pem +0 -28
- package/src/adapters/__tests__/jwt-public.pem +0 -9
- package/src/adapters/__tests__/license.spec.js +0 -27
- package/src/adapters/env.js +0 -21
- package/src/adapters/git.js +0 -113
- package/src/adapters/imdone-config-template.js +0 -79
- package/src/adapters/imdone.js +0 -76
- package/src/adapters/license.js +0 -83
- package/src/bin.js +0 -173
- package/src/index.js +0 -3
- package/src/ui/prompt.js +0 -192
- package/src/usecases/__tests__/headless-pull-from-jira.spec.js +0 -60
- package/src/usecases/headless-pull-from-jira.js +0 -58
- package/src/usecases/headless-push-to-jira.js +0 -42
- package/src/usecases/init.js +0 -27
package/dist/index.cjs
CHANGED
@@ -12,8 +12,8 @@ var __commonJS = (cb2, mod) => function __require() {
|
|
12
12
|
return mod || (0, cb2[__getOwnPropNames(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
13
13
|
};
|
14
14
|
var __export = (target, all) => {
|
15
|
-
for (var
|
16
|
-
__defProp(target,
|
15
|
+
for (var name2 in all)
|
16
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
17
17
|
};
|
18
18
|
var __copyProps = (to, from2, except, desc) => {
|
19
19
|
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
@@ -81,25 +81,25 @@ var require_argument = __commonJS({
|
|
81
81
|
* @param {string} name
|
82
82
|
* @param {string} [description]
|
83
83
|
*/
|
84
|
-
constructor(
|
85
|
-
this.description =
|
84
|
+
constructor(name2, description2) {
|
85
|
+
this.description = description2 || "";
|
86
86
|
this.variadic = false;
|
87
87
|
this.parseArg = void 0;
|
88
88
|
this.defaultValue = void 0;
|
89
89
|
this.defaultValueDescription = void 0;
|
90
90
|
this.argChoices = void 0;
|
91
|
-
switch (
|
91
|
+
switch (name2[0]) {
|
92
92
|
case "<":
|
93
93
|
this.required = true;
|
94
|
-
this._name =
|
94
|
+
this._name = name2.slice(1, -1);
|
95
95
|
break;
|
96
96
|
case "[":
|
97
97
|
this.required = false;
|
98
|
-
this._name =
|
98
|
+
this._name = name2.slice(1, -1);
|
99
99
|
break;
|
100
100
|
default:
|
101
101
|
this.required = true;
|
102
|
-
this._name =
|
102
|
+
this._name = name2;
|
103
103
|
break;
|
104
104
|
}
|
105
105
|
if (this._name.length > 3 && this._name.slice(-3) === "...") {
|
@@ -131,9 +131,9 @@ var require_argument = __commonJS({
|
|
131
131
|
* @param {string} [description]
|
132
132
|
* @return {Argument}
|
133
133
|
*/
|
134
|
-
default(value2,
|
134
|
+
default(value2, description2) {
|
135
135
|
this.defaultValue = value2;
|
136
|
-
this.defaultValueDescription =
|
136
|
+
this.defaultValueDescription = description2;
|
137
137
|
return this;
|
138
138
|
}
|
139
139
|
/**
|
@@ -516,8 +516,8 @@ var require_help = __commonJS({
|
|
516
516
|
formatHelp(cmd, helper) {
|
517
517
|
const termWidth = helper.padWidth(cmd, helper);
|
518
518
|
const helpWidth = helper.helpWidth ?? 80;
|
519
|
-
function callFormatItem(term,
|
520
|
-
return helper.formatItem(term, termWidth,
|
519
|
+
function callFormatItem(term, description2) {
|
520
|
+
return helper.formatItem(term, termWidth, description2, helper);
|
521
521
|
}
|
522
522
|
let output = [
|
523
523
|
`${helper.styleTitle("Usage:")} ${helper.styleUsage(helper.commandUsage(cmd))}`,
|
@@ -694,10 +694,10 @@ var require_help = __commonJS({
|
|
694
694
|
* @param {Help} helper
|
695
695
|
* @returns {string}
|
696
696
|
*/
|
697
|
-
formatItem(term, termWidth,
|
697
|
+
formatItem(term, termWidth, description2, helper) {
|
698
698
|
const itemIndent = 2;
|
699
699
|
const itemIndentStr = " ".repeat(itemIndent);
|
700
|
-
if (!
|
700
|
+
if (!description2) return itemIndentStr + term;
|
701
701
|
const paddedTerm = term.padEnd(
|
702
702
|
termWidth + term.length - helper.displayWidth(term)
|
703
703
|
);
|
@@ -705,10 +705,10 @@ var require_help = __commonJS({
|
|
705
705
|
const helpWidth = this.helpWidth ?? 80;
|
706
706
|
const remainingWidth = helpWidth - termWidth - spacerWidth - itemIndent;
|
707
707
|
let formattedDescription;
|
708
|
-
if (remainingWidth < this.minWidthToWrap || helper.preformatted(
|
709
|
-
formattedDescription =
|
708
|
+
if (remainingWidth < this.minWidthToWrap || helper.preformatted(description2)) {
|
709
|
+
formattedDescription = description2;
|
710
710
|
} else {
|
711
|
-
const wrappedDescription = helper.boxWrap(
|
711
|
+
const wrappedDescription = helper.boxWrap(description2, remainingWidth);
|
712
712
|
formattedDescription = wrappedDescription.replace(
|
713
713
|
/\n/g,
|
714
714
|
"\n" + " ".repeat(termWidth + spacerWidth)
|
@@ -775,9 +775,9 @@ var require_option = __commonJS({
|
|
775
775
|
* @param {string} flags
|
776
776
|
* @param {string} [description]
|
777
777
|
*/
|
778
|
-
constructor(flags,
|
778
|
+
constructor(flags, description2) {
|
779
779
|
this.flags = flags;
|
780
|
-
this.description =
|
780
|
+
this.description = description2 || "";
|
781
781
|
this.required = flags.includes("<");
|
782
782
|
this.optional = flags.includes("[");
|
783
783
|
this.variadic = /\w\.\.\.[>\]]$/.test(flags);
|
@@ -806,9 +806,9 @@ var require_option = __commonJS({
|
|
806
806
|
* @param {string} [description]
|
807
807
|
* @return {Option}
|
808
808
|
*/
|
809
|
-
default(value2,
|
809
|
+
default(value2, description2) {
|
810
810
|
this.defaultValue = value2;
|
811
|
-
this.defaultValueDescription =
|
811
|
+
this.defaultValueDescription = description2;
|
812
812
|
return this;
|
813
813
|
}
|
814
814
|
/**
|
@@ -871,8 +871,8 @@ var require_option = __commonJS({
|
|
871
871
|
* @param {string} name
|
872
872
|
* @return {Option}
|
873
873
|
*/
|
874
|
-
env(
|
875
|
-
this.envVar =
|
874
|
+
env(name2) {
|
875
|
+
this.envVar = name2;
|
876
876
|
return this;
|
877
877
|
}
|
878
878
|
/**
|
@@ -1164,7 +1164,7 @@ var require_command = __commonJS({
|
|
1164
1164
|
*
|
1165
1165
|
* @param {string} [name]
|
1166
1166
|
*/
|
1167
|
-
constructor(
|
1167
|
+
constructor(name2) {
|
1168
1168
|
super();
|
1169
1169
|
this.commands = [];
|
1170
1170
|
this.options = [];
|
@@ -1177,7 +1177,7 @@ var require_command = __commonJS({
|
|
1177
1177
|
this.rawArgs = [];
|
1178
1178
|
this.processedArgs = [];
|
1179
1179
|
this._scriptPath = null;
|
1180
|
-
this._name =
|
1180
|
+
this._name = name2 || "";
|
1181
1181
|
this._optionValues = {};
|
1182
1182
|
this._optionValueSources = {};
|
1183
1183
|
this._storeOptionsAsProperties = false;
|
@@ -1279,8 +1279,8 @@ var require_command = __commonJS({
|
|
1279
1279
|
desc = null;
|
1280
1280
|
}
|
1281
1281
|
opts = opts || {};
|
1282
|
-
const [,
|
1283
|
-
const cmd = this.createCommand(
|
1282
|
+
const [, name2, args] = nameAndArgs.match(/([^ ]+) *(.*)/);
|
1283
|
+
const cmd = this.createCommand(name2);
|
1284
1284
|
if (desc) {
|
1285
1285
|
cmd.description(desc);
|
1286
1286
|
cmd._executableHandler = true;
|
@@ -1304,8 +1304,8 @@ var require_command = __commonJS({
|
|
1304
1304
|
* @param {string} [name]
|
1305
1305
|
* @return {Command} new command
|
1306
1306
|
*/
|
1307
|
-
createCommand(
|
1308
|
-
return new _Command(
|
1307
|
+
createCommand(name2) {
|
1308
|
+
return new _Command(name2);
|
1309
1309
|
}
|
1310
1310
|
/**
|
1311
1311
|
* You can customise the help with a subclass of Help by overriding createHelp,
|
@@ -1408,8 +1408,8 @@ var require_command = __commonJS({
|
|
1408
1408
|
* @param {string} [description]
|
1409
1409
|
* @return {Argument} new argument
|
1410
1410
|
*/
|
1411
|
-
createArgument(
|
1412
|
-
return new Argument2(
|
1411
|
+
createArgument(name2, description2) {
|
1412
|
+
return new Argument2(name2, description2);
|
1413
1413
|
}
|
1414
1414
|
/**
|
1415
1415
|
* Define argument syntax for command.
|
@@ -1427,8 +1427,8 @@ var require_command = __commonJS({
|
|
1427
1427
|
* @param {*} [defaultValue]
|
1428
1428
|
* @return {Command} `this` command for chaining
|
1429
1429
|
*/
|
1430
|
-
argument(
|
1431
|
-
const argument = this.createArgument(
|
1430
|
+
argument(name2, description2, fn, defaultValue) {
|
1431
|
+
const argument = this.createArgument(name2, description2);
|
1432
1432
|
if (typeof fn === "function") {
|
1433
1433
|
argument.default(defaultValue).argParser(fn);
|
1434
1434
|
} else {
|
@@ -1488,14 +1488,14 @@ var require_command = __commonJS({
|
|
1488
1488
|
* @param {string} [description] - custom description
|
1489
1489
|
* @return {Command} `this` command for chaining
|
1490
1490
|
*/
|
1491
|
-
helpCommand(enableOrNameAndArgs,
|
1491
|
+
helpCommand(enableOrNameAndArgs, description2) {
|
1492
1492
|
if (typeof enableOrNameAndArgs === "boolean") {
|
1493
1493
|
this._addImplicitHelpCommand = enableOrNameAndArgs;
|
1494
1494
|
return this;
|
1495
1495
|
}
|
1496
1496
|
enableOrNameAndArgs = enableOrNameAndArgs ?? "help [command]";
|
1497
1497
|
const [, helpName, helpArgs] = enableOrNameAndArgs.match(/([^ ]+) *(.*)/);
|
1498
|
-
const helpDescription =
|
1498
|
+
const helpDescription = description2 ?? "display help for command";
|
1499
1499
|
const helpCommand = this.createCommand(helpName);
|
1500
1500
|
helpCommand.helpOption(false);
|
1501
1501
|
if (helpArgs) helpCommand.arguments(helpArgs);
|
@@ -1629,8 +1629,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1629
1629
|
* @param {string} [description]
|
1630
1630
|
* @return {Option} new option
|
1631
1631
|
*/
|
1632
|
-
createOption(flags,
|
1633
|
-
return new Option2(flags,
|
1632
|
+
createOption(flags, description2) {
|
1633
|
+
return new Option2(flags, description2);
|
1634
1634
|
}
|
1635
1635
|
/**
|
1636
1636
|
* Wrap parseArgs to catch 'commander.invalidArgument'.
|
@@ -1680,7 +1680,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1680
1680
|
return [cmd.name()].concat(cmd.aliases());
|
1681
1681
|
};
|
1682
1682
|
const alreadyUsed = knownBy(command).find(
|
1683
|
-
(
|
1683
|
+
(name2) => this._findCommand(name2)
|
1684
1684
|
);
|
1685
1685
|
if (alreadyUsed) {
|
1686
1686
|
const existingCmd = knownBy(this._findCommand(alreadyUsed)).join("|");
|
@@ -1700,24 +1700,24 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1700
1700
|
addOption(option) {
|
1701
1701
|
this._registerOption(option);
|
1702
1702
|
const oname = option.name();
|
1703
|
-
const
|
1703
|
+
const name2 = option.attributeName();
|
1704
1704
|
if (option.negate) {
|
1705
1705
|
const positiveLongFlag = option.long.replace(/^--no-/, "--");
|
1706
1706
|
if (!this._findOption(positiveLongFlag)) {
|
1707
1707
|
this.setOptionValueWithSource(
|
1708
|
-
|
1708
|
+
name2,
|
1709
1709
|
option.defaultValue === void 0 ? true : option.defaultValue,
|
1710
1710
|
"default"
|
1711
1711
|
);
|
1712
1712
|
}
|
1713
1713
|
} else if (option.defaultValue !== void 0) {
|
1714
|
-
this.setOptionValueWithSource(
|
1714
|
+
this.setOptionValueWithSource(name2, option.defaultValue, "default");
|
1715
1715
|
}
|
1716
1716
|
const handleOptionValue = (val, invalidValueMessage, valueSource) => {
|
1717
1717
|
if (val == null && option.presetArg !== void 0) {
|
1718
1718
|
val = option.presetArg;
|
1719
1719
|
}
|
1720
|
-
const oldValue = this.getOptionValue(
|
1720
|
+
const oldValue = this.getOptionValue(name2);
|
1721
1721
|
if (val !== null && option.parseArg) {
|
1722
1722
|
val = this._callParseArg(option, val, oldValue, invalidValueMessage);
|
1723
1723
|
} else if (val !== null && option.variadic) {
|
@@ -1732,7 +1732,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1732
1732
|
val = "";
|
1733
1733
|
}
|
1734
1734
|
}
|
1735
|
-
this.setOptionValueWithSource(
|
1735
|
+
this.setOptionValueWithSource(name2, val, valueSource);
|
1736
1736
|
};
|
1737
1737
|
this.on("option:" + oname, (val) => {
|
1738
1738
|
const invalidValueMessage = `error: option '${option.flags}' argument '${val}' is invalid.`;
|
@@ -1752,13 +1752,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1752
1752
|
* @return {Command} `this` command for chaining
|
1753
1753
|
* @private
|
1754
1754
|
*/
|
1755
|
-
_optionEx(config2, flags,
|
1755
|
+
_optionEx(config2, flags, description2, fn, defaultValue) {
|
1756
1756
|
if (typeof flags === "object" && flags instanceof Option2) {
|
1757
1757
|
throw new Error(
|
1758
1758
|
"To add an Option object use addOption() instead of option() or requiredOption()"
|
1759
1759
|
);
|
1760
1760
|
}
|
1761
|
-
const option = this.createOption(flags,
|
1761
|
+
const option = this.createOption(flags, description2);
|
1762
1762
|
option.makeOptionMandatory(!!config2.mandatory);
|
1763
1763
|
if (typeof fn === "function") {
|
1764
1764
|
option.default(defaultValue).argParser(fn);
|
@@ -1795,8 +1795,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1795
1795
|
* @param {*} [defaultValue]
|
1796
1796
|
* @return {Command} `this` command for chaining
|
1797
1797
|
*/
|
1798
|
-
option(flags,
|
1799
|
-
return this._optionEx({}, flags,
|
1798
|
+
option(flags, description2, parseArg, defaultValue) {
|
1799
|
+
return this._optionEx({}, flags, description2, parseArg, defaultValue);
|
1800
1800
|
}
|
1801
1801
|
/**
|
1802
1802
|
* Add a required option which must have a value after parsing. This usually means
|
@@ -1810,11 +1810,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1810
1810
|
* @param {*} [defaultValue]
|
1811
1811
|
* @return {Command} `this` command for chaining
|
1812
1812
|
*/
|
1813
|
-
requiredOption(flags,
|
1813
|
+
requiredOption(flags, description2, parseArg, defaultValue) {
|
1814
1814
|
return this._optionEx(
|
1815
1815
|
{ mandatory: true },
|
1816
1816
|
flags,
|
1817
|
-
|
1817
|
+
description2,
|
1818
1818
|
parseArg,
|
1819
1819
|
defaultValue
|
1820
1820
|
);
|
@@ -2508,10 +2508,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
2508
2508
|
* @private
|
2509
2509
|
* @return {Command | undefined}
|
2510
2510
|
*/
|
2511
|
-
_findCommand(
|
2512
|
-
if (!
|
2511
|
+
_findCommand(name2) {
|
2512
|
+
if (!name2) return void 0;
|
2513
2513
|
return this.commands.find(
|
2514
|
-
(cmd) => cmd._name ===
|
2514
|
+
(cmd) => cmd._name === name2 || cmd._aliases.includes(name2)
|
2515
2515
|
);
|
2516
2516
|
}
|
2517
2517
|
/**
|
@@ -2787,8 +2787,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
2787
2787
|
* @param {string} name
|
2788
2788
|
* @private
|
2789
2789
|
*/
|
2790
|
-
missingArgument(
|
2791
|
-
const message = `error: missing required argument '${
|
2790
|
+
missingArgument(name2) {
|
2791
|
+
const message = `error: missing required argument '${name2}'`;
|
2792
2792
|
this.error(message, { code: "commander.missingArgument" });
|
2793
2793
|
}
|
2794
2794
|
/**
|
@@ -2912,12 +2912,12 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
2912
2912
|
* @param {string} [description]
|
2913
2913
|
* @return {(this | string | undefined)} `this` command for chaining, or version string if no arguments
|
2914
2914
|
*/
|
2915
|
-
version(str2, flags,
|
2915
|
+
version(str2, flags, description2) {
|
2916
2916
|
if (str2 === void 0) return this._version;
|
2917
2917
|
this._version = str2;
|
2918
2918
|
flags = flags || "-V, --version";
|
2919
|
-
|
2920
|
-
const versionOption = this.createOption(flags,
|
2919
|
+
description2 = description2 || "output the version number";
|
2920
|
+
const versionOption = this.createOption(flags, description2);
|
2921
2921
|
this._versionOptionName = versionOption.attributeName();
|
2922
2922
|
this._registerOption(versionOption);
|
2923
2923
|
this.on("option:" + versionOption.name(), () => {
|
@@ -3156,7 +3156,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
3156
3156
|
* @param {string} [description]
|
3157
3157
|
* @return {Command} `this` command for chaining
|
3158
3158
|
*/
|
3159
|
-
helpOption(flags,
|
3159
|
+
helpOption(flags, description2) {
|
3160
3160
|
if (typeof flags === "boolean") {
|
3161
3161
|
if (flags) {
|
3162
3162
|
this._helpOption = this._helpOption ?? void 0;
|
@@ -3166,8 +3166,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
3166
3166
|
return this;
|
3167
3167
|
}
|
3168
3168
|
flags = flags ?? "-h, --help";
|
3169
|
-
|
3170
|
-
this._helpOption = this.createOption(flags,
|
3169
|
+
description2 = description2 ?? "display help for command";
|
3170
|
+
this._helpOption = this.createOption(flags, description2);
|
3171
3171
|
return this;
|
3172
3172
|
}
|
3173
3173
|
/**
|
@@ -3313,9 +3313,9 @@ var require_commander = __commonJS({
|
|
3313
3313
|
var { Help: Help2 } = require_help();
|
3314
3314
|
var { Option: Option2 } = require_option();
|
3315
3315
|
exports2.program = new Command2();
|
3316
|
-
exports2.createCommand = (
|
3317
|
-
exports2.createOption = (flags,
|
3318
|
-
exports2.createArgument = (
|
3316
|
+
exports2.createCommand = (name2) => new Command2(name2);
|
3317
|
+
exports2.createOption = (flags, description2) => new Option2(flags, description2);
|
3318
|
+
exports2.createArgument = (name2, description2) => new Argument2(name2, description2);
|
3319
3319
|
exports2.Command = Command2;
|
3320
3320
|
exports2.Option = Option2;
|
3321
3321
|
exports2.Argument = Argument2;
|
@@ -5089,9 +5089,9 @@ var require_ms = __commonJS({
|
|
5089
5089
|
}
|
5090
5090
|
return ms + " ms";
|
5091
5091
|
}
|
5092
|
-
function plural(ms, msAbs, n,
|
5092
|
+
function plural(ms, msAbs, n, name2) {
|
5093
5093
|
var isPlural = msAbs >= n * 1.5;
|
5094
|
-
return Math.round(ms / n) + " " +
|
5094
|
+
return Math.round(ms / n) + " " + name2 + (isPlural ? "s" : "");
|
5095
5095
|
}
|
5096
5096
|
}
|
5097
5097
|
});
|
@@ -5244,14 +5244,14 @@ var require_common = __commonJS({
|
|
5244
5244
|
createDebug.enable("");
|
5245
5245
|
return namespaces;
|
5246
5246
|
}
|
5247
|
-
function enabled(
|
5247
|
+
function enabled(name2) {
|
5248
5248
|
for (const skip of createDebug.skips) {
|
5249
|
-
if (matchesTemplate(
|
5249
|
+
if (matchesTemplate(name2, skip)) {
|
5250
5250
|
return false;
|
5251
5251
|
}
|
5252
5252
|
}
|
5253
5253
|
for (const ns of createDebug.names) {
|
5254
|
-
if (matchesTemplate(
|
5254
|
+
if (matchesTemplate(name2, ns)) {
|
5255
5255
|
return true;
|
5256
5256
|
}
|
5257
5257
|
}
|
@@ -5682,15 +5682,15 @@ var require_node = __commonJS({
|
|
5682
5682
|
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
5683
5683
|
}
|
5684
5684
|
function formatArgs(args) {
|
5685
|
-
const { namespace:
|
5685
|
+
const { namespace: name2, useColors: useColors2 } = this;
|
5686
5686
|
if (useColors2) {
|
5687
5687
|
const c = this.color;
|
5688
5688
|
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
5689
|
-
const prefix = ` ${colorCode};1m${
|
5689
|
+
const prefix = ` ${colorCode};1m${name2} \x1B[0m`;
|
5690
5690
|
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
5691
5691
|
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
5692
5692
|
} else {
|
5693
|
-
args[0] = getDate() +
|
5693
|
+
args[0] = getDate() + name2 + " " + args[0];
|
5694
5694
|
}
|
5695
5695
|
}
|
5696
5696
|
function getDate() {
|
@@ -5996,8 +5996,8 @@ var require_mark = __commonJS({
|
|
5996
5996
|
"node_modules/js-yaml/lib/js-yaml/mark.js"(exports2, module2) {
|
5997
5997
|
"use strict";
|
5998
5998
|
var common2 = require_common2();
|
5999
|
-
function Mark(
|
6000
|
-
this.name =
|
5999
|
+
function Mark(name2, buffer, position, line, column) {
|
6000
|
+
this.name = name2;
|
6001
6001
|
this.buffer = buffer;
|
6002
6002
|
this.position = position;
|
6003
6003
|
this.line = line;
|
@@ -6082,9 +6082,9 @@ var require_type = __commonJS({
|
|
6082
6082
|
}
|
6083
6083
|
function Type(tag, options2) {
|
6084
6084
|
options2 = options2 || {};
|
6085
|
-
Object.keys(options2).forEach(function(
|
6086
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(
|
6087
|
-
throw new YAMLException('Unknown option "' +
|
6085
|
+
Object.keys(options2).forEach(function(name2) {
|
6086
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name2) === -1) {
|
6087
|
+
throw new YAMLException('Unknown option "' + name2 + '" is met in definition of "' + tag + '" YAML type.');
|
6088
6088
|
}
|
6089
6089
|
});
|
6090
6090
|
this.tag = tag;
|
@@ -6115,12 +6115,12 @@ var require_schema = __commonJS({
|
|
6115
6115
|
var common2 = require_common2();
|
6116
6116
|
var YAMLException = require_exception();
|
6117
6117
|
var Type = require_type();
|
6118
|
-
function compileList(schema,
|
6118
|
+
function compileList(schema, name2, result2) {
|
6119
6119
|
var exclude = [];
|
6120
6120
|
schema.include.forEach(function(includedSchema) {
|
6121
|
-
result2 = compileList(includedSchema,
|
6121
|
+
result2 = compileList(includedSchema, name2, result2);
|
6122
6122
|
});
|
6123
|
-
schema[
|
6123
|
+
schema[name2].forEach(function(currentType) {
|
6124
6124
|
result2.forEach(function(previousType, previousIndex) {
|
6125
6125
|
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {
|
6126
6126
|
exclude.push(previousIndex);
|
@@ -7145,7 +7145,7 @@ var require_loader = __commonJS({
|
|
7145
7145
|
}
|
7146
7146
|
}
|
7147
7147
|
var directiveHandlers = {
|
7148
|
-
YAML: function handleYamlDirective(state,
|
7148
|
+
YAML: function handleYamlDirective(state, name2, args) {
|
7149
7149
|
var match2, major, minor;
|
7150
7150
|
if (state.version !== null) {
|
7151
7151
|
throwError(state, "duplication of %YAML directive");
|
@@ -7168,7 +7168,7 @@ var require_loader = __commonJS({
|
|
7168
7168
|
throwWarning(state, "unsupported YAML version of the document");
|
7169
7169
|
}
|
7170
7170
|
},
|
7171
|
-
TAG: function handleTagDirective(state,
|
7171
|
+
TAG: function handleTagDirective(state, name2, args) {
|
7172
7172
|
var handle, prefix;
|
7173
7173
|
if (args.length !== 2) {
|
7174
7174
|
throwError(state, "TAG directive accepts exactly two arguments");
|
@@ -8689,9 +8689,9 @@ var require_js_yaml = __commonJS({
|
|
8689
8689
|
"use strict";
|
8690
8690
|
var loader = require_loader();
|
8691
8691
|
var dumper = require_dumper();
|
8692
|
-
function deprecated(
|
8692
|
+
function deprecated(name2) {
|
8693
8693
|
return function() {
|
8694
|
-
throw new Error("Function " +
|
8694
|
+
throw new Error("Function " + name2 + " is deprecated and cannot be used.");
|
8695
8695
|
};
|
8696
8696
|
}
|
8697
8697
|
module2.exports.Type = require_type();
|
@@ -14124,7 +14124,7 @@ var require_async = __commonJS({
|
|
14124
14124
|
newTasks[key2] = params.concat(newTask);
|
14125
14125
|
}
|
14126
14126
|
function newTask(results, taskCb) {
|
14127
|
-
var newArgs = params.map((
|
14127
|
+
var newArgs = params.map((name2) => results[name2]);
|
14128
14128
|
newArgs.push(taskCb);
|
14129
14129
|
wrapAsync(taskFn)(...newArgs);
|
14130
14130
|
}
|
@@ -14306,17 +14306,17 @@ var require_async = __commonJS({
|
|
14306
14306
|
}
|
14307
14307
|
return false;
|
14308
14308
|
}
|
14309
|
-
const eventMethod = (
|
14309
|
+
const eventMethod = (name2) => (handler) => {
|
14310
14310
|
if (!handler) {
|
14311
14311
|
return new Promise((resolve3, reject4) => {
|
14312
|
-
once2(
|
14312
|
+
once2(name2, (err2, data) => {
|
14313
14313
|
if (err2) return reject4(err2);
|
14314
14314
|
resolve3(data);
|
14315
14315
|
});
|
14316
14316
|
});
|
14317
14317
|
}
|
14318
|
-
off(
|
14319
|
-
on(
|
14318
|
+
off(name2);
|
14319
|
+
on(name2, handler);
|
14320
14320
|
};
|
14321
14321
|
var isProcessing = false;
|
14322
14322
|
var q = {
|
@@ -14556,15 +14556,15 @@ var require_async = __commonJS({
|
|
14556
14556
|
return _createTester((bool) => bool, (res, item) => item)(eachOfLimit$2(1), coll, iteratee2, callback);
|
14557
14557
|
}
|
14558
14558
|
var detectSeries$1 = awaitify(detectSeries, 3);
|
14559
|
-
function consoleFunc(
|
14559
|
+
function consoleFunc(name2) {
|
14560
14560
|
return (fn, ...args) => wrapAsync(fn)(...args, (err2, ...resultArgs) => {
|
14561
14561
|
if (typeof console === "object") {
|
14562
14562
|
if (err2) {
|
14563
14563
|
if (console.error) {
|
14564
14564
|
console.error(err2);
|
14565
14565
|
}
|
14566
|
-
} else if (console[
|
14567
|
-
resultArgs.forEach((x2) => console[
|
14566
|
+
} else if (console[name2]) {
|
14567
|
+
resultArgs.forEach((x2) => console[name2](x2));
|
14568
14568
|
}
|
14569
14569
|
}
|
14570
14570
|
});
|
@@ -15103,8 +15103,8 @@ var require_async = __commonJS({
|
|
15103
15103
|
var timedOut = false;
|
15104
15104
|
var timer;
|
15105
15105
|
function timeoutCallback() {
|
15106
|
-
var
|
15107
|
-
var error = new Error('Callback function "' +
|
15106
|
+
var name2 = asyncFn.name || "anonymous";
|
15107
|
+
var error = new Error('Callback function "' + name2 + '" timed out.');
|
15108
15108
|
error.code = "ETIMEDOUT";
|
15109
15109
|
if (info3) {
|
15110
15110
|
error.info = info3;
|
@@ -16099,8 +16099,8 @@ var require_kind_of = __commonJS({
|
|
16099
16099
|
if (val instanceof RegExp) return true;
|
16100
16100
|
return typeof val.flags === "string" && typeof val.ignoreCase === "boolean" && typeof val.multiline === "boolean" && typeof val.global === "boolean";
|
16101
16101
|
}
|
16102
|
-
function isGeneratorFn(
|
16103
|
-
return ctorName(
|
16102
|
+
function isGeneratorFn(name2, val) {
|
16103
|
+
return ctorName(name2) === "GeneratorFunction";
|
16104
16104
|
}
|
16105
16105
|
function isGeneratorObj(val) {
|
16106
16106
|
return typeof val.throw === "function" && typeof val.return === "function" && typeof val.next === "function";
|
@@ -16388,18 +16388,18 @@ var require_defaults = __commonJS({
|
|
16388
16388
|
var require_engine = __commonJS({
|
16389
16389
|
"node_modules/gray-matter/lib/engine.js"(exports2, module2) {
|
16390
16390
|
"use strict";
|
16391
|
-
module2.exports = function(
|
16392
|
-
let engine = options2.engines[
|
16391
|
+
module2.exports = function(name2, options2) {
|
16392
|
+
let engine = options2.engines[name2] || options2.engines[aliase(name2)];
|
16393
16393
|
if (typeof engine === "undefined") {
|
16394
|
-
throw new Error('gray-matter engine "' +
|
16394
|
+
throw new Error('gray-matter engine "' + name2 + '" is not registered');
|
16395
16395
|
}
|
16396
16396
|
if (typeof engine === "function") {
|
16397
16397
|
engine = { parse: engine };
|
16398
16398
|
}
|
16399
16399
|
return engine;
|
16400
16400
|
};
|
16401
|
-
function aliase(
|
16402
|
-
switch (
|
16401
|
+
function aliase(name2) {
|
16402
|
+
switch (name2.toLowerCase()) {
|
16403
16403
|
case "js":
|
16404
16404
|
case "javascript":
|
16405
16405
|
return "javascript";
|
@@ -16411,7 +16411,7 @@ var require_engine = __commonJS({
|
|
16411
16411
|
case "yml":
|
16412
16412
|
return "yaml";
|
16413
16413
|
default: {
|
16414
|
-
return
|
16414
|
+
return name2;
|
16415
16415
|
}
|
16416
16416
|
}
|
16417
16417
|
}
|
@@ -16668,9 +16668,9 @@ var require_gray_matter = __commonJS({
|
|
16668
16668
|
// node_modules/eol/eol.js
|
16669
16669
|
var require_eol = __commonJS({
|
16670
16670
|
"node_modules/eol/eol.js"(exports2, module2) {
|
16671
|
-
!function(root2,
|
16671
|
+
!function(root2, name2, make) {
|
16672
16672
|
if (typeof module2 != "undefined" && module2.exports) module2.exports = make();
|
16673
|
-
else root2[
|
16673
|
+
else root2[name2] = make();
|
16674
16674
|
}(exports2, "eol", function() {
|
16675
16675
|
var api = {};
|
16676
16676
|
var isWindows2 = typeof process != "undefined" && "win32" === process.platform;
|
@@ -17142,8 +17142,8 @@ var init_isElement = __esm({
|
|
17142
17142
|
});
|
17143
17143
|
|
17144
17144
|
// node_modules/underscore/modules/_tagTester.js
|
17145
|
-
function tagTester(
|
17146
|
-
var tag = "[object " +
|
17145
|
+
function tagTester(name2) {
|
17146
|
+
var tag = "[object " + name2 + "]";
|
17147
17147
|
return function(obj) {
|
17148
17148
|
return toString.call(obj) === tag;
|
17149
17149
|
};
|
@@ -19574,9 +19574,9 @@ var init_chainResult = __esm({
|
|
19574
19574
|
|
19575
19575
|
// node_modules/underscore/modules/mixin.js
|
19576
19576
|
function mixin(obj) {
|
19577
|
-
each(functions(obj), function(
|
19578
|
-
var func = _[
|
19579
|
-
_.prototype[
|
19577
|
+
each(functions(obj), function(name2) {
|
19578
|
+
var func = _[name2] = obj[name2];
|
19579
|
+
_.prototype[name2] = function() {
|
19580
19580
|
var args = [this._wrapped];
|
19581
19581
|
push.apply(args, arguments);
|
19582
19582
|
return chainResult(this, func.apply(_, args));
|
@@ -19602,22 +19602,22 @@ var init_underscore_array_methods = __esm({
|
|
19602
19602
|
init_each();
|
19603
19603
|
init_setup();
|
19604
19604
|
init_chainResult();
|
19605
|
-
each(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(
|
19606
|
-
var method = ArrayProto[
|
19607
|
-
_.prototype[
|
19605
|
+
each(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(name2) {
|
19606
|
+
var method = ArrayProto[name2];
|
19607
|
+
_.prototype[name2] = function() {
|
19608
19608
|
var obj = this._wrapped;
|
19609
19609
|
if (obj != null) {
|
19610
19610
|
method.apply(obj, arguments);
|
19611
|
-
if ((
|
19611
|
+
if ((name2 === "shift" || name2 === "splice") && obj.length === 0) {
|
19612
19612
|
delete obj[0];
|
19613
19613
|
}
|
19614
19614
|
}
|
19615
19615
|
return chainResult(this, obj);
|
19616
19616
|
};
|
19617
19617
|
});
|
19618
|
-
each(["concat", "join", "slice"], function(
|
19619
|
-
var method = ArrayProto[
|
19620
|
-
_.prototype[
|
19618
|
+
each(["concat", "join", "slice"], function(name2) {
|
19619
|
+
var method = ArrayProto[name2];
|
19620
|
+
_.prototype[name2] = function() {
|
19621
19621
|
var obj = this._wrapped;
|
19622
19622
|
if (obj != null) obj = method.apply(obj, arguments);
|
19623
19623
|
return chainResult(this, obj);
|
@@ -22159,10 +22159,10 @@ var require_normalize_opts = __commonJS({
|
|
22159
22159
|
if (keys2.length === 0) {
|
22160
22160
|
names = "^$";
|
22161
22161
|
} else {
|
22162
|
-
names = keys2.map(function(
|
22163
|
-
return ":" +
|
22164
|
-
}).concat(Object.keys(shortcuts)).sort().reverse().map(function(
|
22165
|
-
return quoteRE(
|
22162
|
+
names = keys2.map(function(name2) {
|
22163
|
+
return ":" + name2 + ":";
|
22164
|
+
}).concat(Object.keys(shortcuts)).sort().reverse().map(function(name2) {
|
22165
|
+
return quoteRE(name2);
|
22166
22166
|
}).join("|");
|
22167
22167
|
}
|
22168
22168
|
var scanRE = RegExp(names);
|
@@ -23099,11 +23099,11 @@ var require_well_known_symbol = __commonJS({
|
|
23099
23099
|
var Symbol2 = globalThis2.Symbol;
|
23100
23100
|
var WellKnownSymbolsStore = shared("wks");
|
23101
23101
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2["for"] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
|
23102
|
-
module2.exports = function(
|
23103
|
-
if (!hasOwn(WellKnownSymbolsStore,
|
23104
|
-
WellKnownSymbolsStore[
|
23102
|
+
module2.exports = function(name2) {
|
23103
|
+
if (!hasOwn(WellKnownSymbolsStore, name2)) {
|
23104
|
+
WellKnownSymbolsStore[name2] = NATIVE_SYMBOL && hasOwn(Symbol2, name2) ? Symbol2[name2] : createWellKnownSymbol("Symbol." + name2);
|
23105
23105
|
}
|
23106
|
-
return WellKnownSymbolsStore[
|
23106
|
+
return WellKnownSymbolsStore[name2];
|
23107
23107
|
};
|
23108
23108
|
}
|
23109
23109
|
});
|
@@ -24917,8 +24917,8 @@ var require_define_built_in_accessor = __commonJS({
|
|
24917
24917
|
"node_modules/core-js-pure/internals/define-built-in-accessor.js"(exports2, module2) {
|
24918
24918
|
"use strict";
|
24919
24919
|
var defineProperty = require_object_define_property();
|
24920
|
-
module2.exports = function(target,
|
24921
|
-
return defineProperty.f(target,
|
24920
|
+
module2.exports = function(target, name2, descriptor) {
|
24921
|
+
return defineProperty.f(target, name2, descriptor);
|
24922
24922
|
};
|
24923
24923
|
}
|
24924
24924
|
});
|
@@ -25134,14 +25134,14 @@ var require_es_symbol_constructor = __commonJS({
|
|
25134
25134
|
}
|
25135
25135
|
})).a !== 7;
|
25136
25136
|
}) ? fallbackDefineProperty : nativeDefineProperty;
|
25137
|
-
var wrap3 = function(tag,
|
25137
|
+
var wrap3 = function(tag, description2) {
|
25138
25138
|
var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);
|
25139
25139
|
setInternalState(symbol, {
|
25140
25140
|
type: SYMBOL,
|
25141
25141
|
tag,
|
25142
|
-
description
|
25142
|
+
description: description2
|
25143
25143
|
});
|
25144
|
-
if (!DESCRIPTORS) symbol.description =
|
25144
|
+
if (!DESCRIPTORS) symbol.description = description2;
|
25145
25145
|
return symbol;
|
25146
25146
|
};
|
25147
25147
|
var $defineProperty = function defineProperty(O, P, Attributes) {
|
@@ -25211,8 +25211,8 @@ var require_es_symbol_constructor = __commonJS({
|
|
25211
25211
|
if (!NATIVE_SYMBOL) {
|
25212
25212
|
$Symbol = function Symbol2() {
|
25213
25213
|
if (isPrototypeOf(SymbolPrototype, this)) throw new TypeError2("Symbol is not a constructor");
|
25214
|
-
var
|
25215
|
-
var tag = uid(
|
25214
|
+
var description2 = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]);
|
25215
|
+
var tag = uid(description2);
|
25216
25216
|
var setter = function(value2) {
|
25217
25217
|
var $this = this === void 0 ? globalThis2 : this;
|
25218
25218
|
if ($this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value2);
|
@@ -25226,14 +25226,14 @@ var require_es_symbol_constructor = __commonJS({
|
|
25226
25226
|
}
|
25227
25227
|
};
|
25228
25228
|
if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
|
25229
|
-
return wrap3(tag,
|
25229
|
+
return wrap3(tag, description2);
|
25230
25230
|
};
|
25231
25231
|
SymbolPrototype = $Symbol[PROTOTYPE];
|
25232
25232
|
defineBuiltIn(SymbolPrototype, "toString", function toString2() {
|
25233
25233
|
return getInternalState(this).tag;
|
25234
25234
|
});
|
25235
|
-
defineBuiltIn($Symbol, "withoutSetter", function(
|
25236
|
-
return wrap3(uid(
|
25235
|
+
defineBuiltIn($Symbol, "withoutSetter", function(description2) {
|
25236
|
+
return wrap3(uid(description2), description2);
|
25237
25237
|
});
|
25238
25238
|
propertyIsEnumerableModule.f = $propertyIsEnumerable;
|
25239
25239
|
definePropertyModule.f = $defineProperty;
|
@@ -25241,13 +25241,13 @@ var require_es_symbol_constructor = __commonJS({
|
|
25241
25241
|
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
|
25242
25242
|
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
25243
25243
|
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
|
25244
|
-
wrappedWellKnownSymbolModule.f = function(
|
25245
|
-
return wrap3(wellKnownSymbol(
|
25244
|
+
wrappedWellKnownSymbolModule.f = function(name2) {
|
25245
|
+
return wrap3(wellKnownSymbol(name2), name2);
|
25246
25246
|
};
|
25247
25247
|
if (DESCRIPTORS) {
|
25248
25248
|
defineBuiltInAccessor(SymbolPrototype, "description", {
|
25249
25249
|
configurable: true,
|
25250
|
-
get: function
|
25250
|
+
get: function description2() {
|
25251
25251
|
return getInternalState(this).description;
|
25252
25252
|
}
|
25253
25253
|
});
|
@@ -25259,8 +25259,8 @@ var require_es_symbol_constructor = __commonJS({
|
|
25259
25259
|
$({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
25260
25260
|
Symbol: $Symbol
|
25261
25261
|
});
|
25262
|
-
$forEach(objectKeys(WellKnownSymbolsStore), function(
|
25263
|
-
defineWellKnownSymbol(
|
25262
|
+
$forEach(objectKeys(WellKnownSymbolsStore), function(name2) {
|
25263
|
+
defineWellKnownSymbol(name2);
|
25264
25264
|
});
|
25265
25265
|
$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
25266
25266
|
useSetter: function() {
|
@@ -27675,11 +27675,11 @@ var require_xregexp = __commonJS({
|
|
27675
27675
|
var numPriorCaptures;
|
27676
27676
|
var captureNames;
|
27677
27677
|
function rewrite(match2, paren, backref) {
|
27678
|
-
var
|
27678
|
+
var name2 = captureNames[numCaptures - numPriorCaptures];
|
27679
27679
|
if (paren) {
|
27680
27680
|
++numCaptures;
|
27681
|
-
if (
|
27682
|
-
return "(?<".concat(
|
27681
|
+
if (name2) {
|
27682
|
+
return "(?<".concat(name2, ">");
|
27683
27683
|
}
|
27684
27684
|
} else if (backref) {
|
27685
27685
|
return "\\".concat(+backref + numPriorCaptures);
|
@@ -27737,9 +27737,9 @@ var require_xregexp = __commonJS({
|
|
27737
27737
|
groupsObject = match2.groups;
|
27738
27738
|
}
|
27739
27739
|
for (var i2 = 1; i2 < match2.length; ++i2) {
|
27740
|
-
var
|
27741
|
-
if (
|
27742
|
-
groupsObject[
|
27740
|
+
var name2 = this[REGEX_DATA].captureNames[i2 - 1];
|
27741
|
+
if (name2) {
|
27742
|
+
groupsObject[name2] = match2[i2];
|
27743
27743
|
}
|
27744
27744
|
}
|
27745
27745
|
} else if (!match2.groups && XRegExp4.isInstalled("namespacing")) {
|
@@ -28337,9 +28337,9 @@ var require_matchrecursive = __commonJS({
|
|
28337
28337
|
var _concat = _interopRequireDefault(require_concat4());
|
28338
28338
|
var _slice = _interopRequireDefault(require_slice4());
|
28339
28339
|
var _default = exports2["default"] = function _default2(XRegExp4) {
|
28340
|
-
function row(
|
28340
|
+
function row(name2, value2, start, end) {
|
28341
28341
|
return {
|
28342
|
-
name,
|
28342
|
+
name: name2,
|
28343
28343
|
value: value2,
|
28344
28344
|
start,
|
28345
28345
|
end
|
@@ -28545,8 +28545,8 @@ var require_unicode_base = __commonJS({
|
|
28545
28545
|
var dec = XRegExp4._dec;
|
28546
28546
|
var hex = XRegExp4._hex;
|
28547
28547
|
var pad4 = XRegExp4._pad4;
|
28548
|
-
function normalize5(
|
28549
|
-
return
|
28548
|
+
function normalize5(name2) {
|
28549
|
+
return name2.replace(/[- _]+/g, "").toLowerCase();
|
28550
28550
|
}
|
28551
28551
|
function charCode(chr) {
|
28552
28552
|
var esc = /^\\[xu](.+)/.exec(chr);
|
@@ -28684,8 +28684,8 @@ var require_unicode_base = __commonJS({
|
|
28684
28684
|
}
|
28685
28685
|
XRegExp4.cache.flush("patterns");
|
28686
28686
|
};
|
28687
|
-
XRegExp4._getUnicodeProperty = function(
|
28688
|
-
var slug = normalize5(
|
28687
|
+
XRegExp4._getUnicodeProperty = function(name2) {
|
28688
|
+
var slug = normalize5(name2);
|
28689
28689
|
return unicode[slug];
|
28690
28690
|
};
|
28691
28691
|
};
|
@@ -30179,13 +30179,13 @@ var require_moment = __commonJS({
|
|
30179
30179
|
}, fn);
|
30180
30180
|
}
|
30181
30181
|
var deprecations = {};
|
30182
|
-
function deprecateSimple(
|
30182
|
+
function deprecateSimple(name2, msg) {
|
30183
30183
|
if (hooks.deprecationHandler != null) {
|
30184
|
-
hooks.deprecationHandler(
|
30184
|
+
hooks.deprecationHandler(name2, msg);
|
30185
30185
|
}
|
30186
|
-
if (!deprecations[
|
30186
|
+
if (!deprecations[name2]) {
|
30187
30187
|
warn(msg);
|
30188
|
-
deprecations[
|
30188
|
+
deprecations[name2] = true;
|
30189
30189
|
}
|
30190
30190
|
}
|
30191
30191
|
hooks.suppressDeprecationWarnings = false;
|
@@ -31467,22 +31467,22 @@ var require_moment = __commonJS({
|
|
31467
31467
|
}
|
31468
31468
|
return globalLocale;
|
31469
31469
|
}
|
31470
|
-
function isLocaleNameSane(
|
31471
|
-
return !!(
|
31470
|
+
function isLocaleNameSane(name2) {
|
31471
|
+
return !!(name2 && name2.match("^[^/\\\\]*$"));
|
31472
31472
|
}
|
31473
|
-
function loadLocale(
|
31473
|
+
function loadLocale(name2) {
|
31474
31474
|
var oldLocale = null, aliasedRequire;
|
31475
|
-
if (locales[
|
31475
|
+
if (locales[name2] === void 0 && typeof module2 !== "undefined" && module2 && module2.exports && isLocaleNameSane(name2)) {
|
31476
31476
|
try {
|
31477
31477
|
oldLocale = globalLocale._abbr;
|
31478
31478
|
aliasedRequire = require;
|
31479
|
-
aliasedRequire("./locale/" +
|
31479
|
+
aliasedRequire("./locale/" + name2);
|
31480
31480
|
getSetGlobalLocale(oldLocale);
|
31481
31481
|
} catch (e2) {
|
31482
|
-
locales[
|
31482
|
+
locales[name2] = null;
|
31483
31483
|
}
|
31484
31484
|
}
|
31485
|
-
return locales[
|
31485
|
+
return locales[name2];
|
31486
31486
|
}
|
31487
31487
|
function getSetGlobalLocale(key2, values2) {
|
31488
31488
|
var data;
|
@@ -31504,16 +31504,16 @@ var require_moment = __commonJS({
|
|
31504
31504
|
}
|
31505
31505
|
return globalLocale._abbr;
|
31506
31506
|
}
|
31507
|
-
function defineLocale(
|
31507
|
+
function defineLocale(name2, config2) {
|
31508
31508
|
if (config2 !== null) {
|
31509
31509
|
var locale2, parentConfig = baseConfig;
|
31510
|
-
config2.abbr =
|
31511
|
-
if (locales[
|
31510
|
+
config2.abbr = name2;
|
31511
|
+
if (locales[name2] != null) {
|
31512
31512
|
deprecateSimple(
|
31513
31513
|
"defineLocaleOverride",
|
31514
31514
|
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
|
31515
31515
|
);
|
31516
|
-
parentConfig = locales[
|
31516
|
+
parentConfig = locales[name2]._config;
|
31517
31517
|
} else if (config2.parentLocale != null) {
|
31518
31518
|
if (locales[config2.parentLocale] != null) {
|
31519
31519
|
parentConfig = locales[config2.parentLocale]._config;
|
@@ -31526,58 +31526,58 @@ var require_moment = __commonJS({
|
|
31526
31526
|
localeFamilies[config2.parentLocale] = [];
|
31527
31527
|
}
|
31528
31528
|
localeFamilies[config2.parentLocale].push({
|
31529
|
-
name,
|
31529
|
+
name: name2,
|
31530
31530
|
config: config2
|
31531
31531
|
});
|
31532
31532
|
return null;
|
31533
31533
|
}
|
31534
31534
|
}
|
31535
31535
|
}
|
31536
|
-
locales[
|
31537
|
-
if (localeFamilies[
|
31538
|
-
localeFamilies[
|
31536
|
+
locales[name2] = new Locale(mergeConfigs(parentConfig, config2));
|
31537
|
+
if (localeFamilies[name2]) {
|
31538
|
+
localeFamilies[name2].forEach(function(x2) {
|
31539
31539
|
defineLocale(x2.name, x2.config);
|
31540
31540
|
});
|
31541
31541
|
}
|
31542
|
-
getSetGlobalLocale(
|
31543
|
-
return locales[
|
31542
|
+
getSetGlobalLocale(name2);
|
31543
|
+
return locales[name2];
|
31544
31544
|
} else {
|
31545
|
-
delete locales[
|
31545
|
+
delete locales[name2];
|
31546
31546
|
return null;
|
31547
31547
|
}
|
31548
31548
|
}
|
31549
|
-
function updateLocale(
|
31549
|
+
function updateLocale(name2, config2) {
|
31550
31550
|
if (config2 != null) {
|
31551
31551
|
var locale2, tmpLocale, parentConfig = baseConfig;
|
31552
|
-
if (locales[
|
31553
|
-
locales[
|
31552
|
+
if (locales[name2] != null && locales[name2].parentLocale != null) {
|
31553
|
+
locales[name2].set(mergeConfigs(locales[name2]._config, config2));
|
31554
31554
|
} else {
|
31555
|
-
tmpLocale = loadLocale(
|
31555
|
+
tmpLocale = loadLocale(name2);
|
31556
31556
|
if (tmpLocale != null) {
|
31557
31557
|
parentConfig = tmpLocale._config;
|
31558
31558
|
}
|
31559
31559
|
config2 = mergeConfigs(parentConfig, config2);
|
31560
31560
|
if (tmpLocale == null) {
|
31561
|
-
config2.abbr =
|
31561
|
+
config2.abbr = name2;
|
31562
31562
|
}
|
31563
31563
|
locale2 = new Locale(config2);
|
31564
|
-
locale2.parentLocale = locales[
|
31565
|
-
locales[
|
31564
|
+
locale2.parentLocale = locales[name2];
|
31565
|
+
locales[name2] = locale2;
|
31566
31566
|
}
|
31567
|
-
getSetGlobalLocale(
|
31567
|
+
getSetGlobalLocale(name2);
|
31568
31568
|
} else {
|
31569
|
-
if (locales[
|
31570
|
-
if (locales[
|
31571
|
-
locales[
|
31572
|
-
if (
|
31573
|
-
getSetGlobalLocale(
|
31569
|
+
if (locales[name2] != null) {
|
31570
|
+
if (locales[name2].parentLocale != null) {
|
31571
|
+
locales[name2] = locales[name2].parentLocale;
|
31572
|
+
if (name2 === getSetGlobalLocale()) {
|
31573
|
+
getSetGlobalLocale(name2);
|
31574
31574
|
}
|
31575
|
-
} else if (locales[
|
31576
|
-
delete locales[
|
31575
|
+
} else if (locales[name2] != null) {
|
31576
|
+
delete locales[name2];
|
31577
31577
|
}
|
31578
31578
|
}
|
31579
31579
|
}
|
31580
|
-
return locales[
|
31580
|
+
return locales[name2];
|
31581
31581
|
}
|
31582
31582
|
function getLocale(key2) {
|
31583
31583
|
var locale2;
|
@@ -32483,13 +32483,13 @@ var require_moment = __commonJS({
|
|
32483
32483
|
}
|
32484
32484
|
return res;
|
32485
32485
|
}
|
32486
|
-
function createAdder(direction,
|
32486
|
+
function createAdder(direction, name2) {
|
32487
32487
|
return function(val, period) {
|
32488
32488
|
var dur, tmp;
|
32489
32489
|
if (period !== null && !isNaN(+period)) {
|
32490
32490
|
deprecateSimple(
|
32491
|
-
|
32492
|
-
"moment()." +
|
32491
|
+
name2,
|
32492
|
+
"moment()." + name2 + "(period, number) is deprecated. Please use moment()." + name2 + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
32493
32493
|
);
|
32494
32494
|
tmp = val;
|
32495
32495
|
val = period;
|
@@ -33068,10 +33068,10 @@ var require_moment = __commonJS({
|
|
33068
33068
|
return eras;
|
33069
33069
|
}
|
33070
33070
|
function localeErasParse(eraName, format4, strict2) {
|
33071
|
-
var i2, l, eras = this.eras(),
|
33071
|
+
var i2, l, eras = this.eras(), name2, abbr, narrow;
|
33072
33072
|
eraName = eraName.toUpperCase();
|
33073
33073
|
for (i2 = 0, l = eras.length; i2 < l; ++i2) {
|
33074
|
-
|
33074
|
+
name2 = eras[i2].name.toUpperCase();
|
33075
33075
|
abbr = eras[i2].abbr.toUpperCase();
|
33076
33076
|
narrow = eras[i2].narrow.toUpperCase();
|
33077
33077
|
if (strict2) {
|
@@ -33084,7 +33084,7 @@ var require_moment = __commonJS({
|
|
33084
33084
|
}
|
33085
33085
|
break;
|
33086
33086
|
case "NNNN":
|
33087
|
-
if (
|
33087
|
+
if (name2 === eraName) {
|
33088
33088
|
return eras[i2];
|
33089
33089
|
}
|
33090
33090
|
break;
|
@@ -33094,7 +33094,7 @@ var require_moment = __commonJS({
|
|
33094
33094
|
}
|
33095
33095
|
break;
|
33096
33096
|
}
|
33097
|
-
} else if ([
|
33097
|
+
} else if ([name2, abbr, narrow].indexOf(eraName) >= 0) {
|
33098
33098
|
return eras[i2];
|
33099
33099
|
}
|
33100
33100
|
}
|
@@ -33732,9 +33732,9 @@ var require_moment = __commonJS({
|
|
33732
33732
|
units = normalizeUnits(units);
|
33733
33733
|
return this.isValid() ? this[units + "s"]() : NaN;
|
33734
33734
|
}
|
33735
|
-
function makeGetter(
|
33735
|
+
function makeGetter(name2) {
|
33736
33736
|
return function() {
|
33737
|
-
return this.isValid() ? this._data[
|
33737
|
+
return this.isValid() ? this._data[name2] : NaN;
|
33738
33738
|
};
|
33739
33739
|
}
|
33740
33740
|
var milliseconds = makeGetter("milliseconds"), seconds = makeGetter("seconds"), minutes = makeGetter("minutes"), hours = makeGetter("hours"), days = makeGetter("days"), months = makeGetter("months"), years = makeGetter("years");
|
@@ -33997,8 +33997,8 @@ var require_parse2 = __commonJS({
|
|
33997
33997
|
var val = true;
|
33998
33998
|
var m2 = str2.match(/^([-.\w]+)/);
|
33999
33999
|
if (!m2) return;
|
34000
|
-
var
|
34001
|
-
str2 = str2.slice(
|
34000
|
+
var name2 = m2[0];
|
34001
|
+
str2 = str2.slice(name2.length);
|
34002
34002
|
var m2 = str2.match(/ *([:><!=]*) *([-*\w.]+|".*?"|'.*?'|\/(.*)\/) */);
|
34003
34003
|
if (m2) {
|
34004
34004
|
str2 = str2.slice(m2[0].length);
|
@@ -34008,7 +34008,7 @@ var require_parse2 = __commonJS({
|
|
34008
34008
|
}
|
34009
34009
|
var ret = {
|
34010
34010
|
type: "field",
|
34011
|
-
name,
|
34011
|
+
name: name2,
|
34012
34012
|
value: coerce(val)
|
34013
34013
|
};
|
34014
34014
|
if (cmp) ret.cmp = cmp;
|
@@ -34216,11 +34216,11 @@ var require_lib2 = __commonJS({
|
|
34216
34216
|
var BaseOperation = (
|
34217
34217
|
/** @class */
|
34218
34218
|
function() {
|
34219
|
-
function BaseOperation2(params, owneryQuery, options2,
|
34219
|
+
function BaseOperation2(params, owneryQuery, options2, name2) {
|
34220
34220
|
this.params = params;
|
34221
34221
|
this.owneryQuery = owneryQuery;
|
34222
34222
|
this.options = options2;
|
34223
|
-
this.name =
|
34223
|
+
this.name = name2;
|
34224
34224
|
this.init();
|
34225
34225
|
}
|
34226
34226
|
BaseOperation2.prototype.init = function() {
|
@@ -34277,9 +34277,9 @@ var require_lib2 = __commonJS({
|
|
34277
34277
|
/** @class */
|
34278
34278
|
function(_super) {
|
34279
34279
|
__extends(NamedGroupOperation2, _super);
|
34280
|
-
function NamedGroupOperation2(params, owneryQuery, options2, children,
|
34280
|
+
function NamedGroupOperation2(params, owneryQuery, options2, children, name2) {
|
34281
34281
|
var _this = _super.call(this, params, owneryQuery, options2, children) || this;
|
34282
|
-
_this.name =
|
34282
|
+
_this.name = name2;
|
34283
34283
|
return _this;
|
34284
34284
|
}
|
34285
34285
|
return NamedGroupOperation2;
|
@@ -34363,29 +34363,29 @@ var require_lib2 = __commonJS({
|
|
34363
34363
|
return new EqualsOperation(params, owneryQuery, options2);
|
34364
34364
|
};
|
34365
34365
|
var numericalOperationCreator = function(createNumericalOperation) {
|
34366
|
-
return function(params, owneryQuery, options2,
|
34367
|
-
return createNumericalOperation(params, owneryQuery, options2,
|
34366
|
+
return function(params, owneryQuery, options2, name2) {
|
34367
|
+
return createNumericalOperation(params, owneryQuery, options2, name2);
|
34368
34368
|
};
|
34369
34369
|
};
|
34370
34370
|
var numericalOperation = function(createTester2) {
|
34371
|
-
return numericalOperationCreator(function(params, owneryQuery, options2,
|
34371
|
+
return numericalOperationCreator(function(params, owneryQuery, options2, name2) {
|
34372
34372
|
var typeofParams = typeof comparable(params);
|
34373
34373
|
var test2 = createTester2(params);
|
34374
34374
|
return new EqualsOperation(function(b) {
|
34375
34375
|
var actualValue = coercePotentiallyNull(b);
|
34376
34376
|
return typeof comparable(actualValue) === typeofParams && test2(actualValue);
|
34377
|
-
}, owneryQuery, options2,
|
34377
|
+
}, owneryQuery, options2, name2);
|
34378
34378
|
});
|
34379
34379
|
};
|
34380
|
-
var createNamedOperation = function(
|
34381
|
-
var operationCreator = options2.operations[
|
34380
|
+
var createNamedOperation = function(name2, params, parentQuery, options2) {
|
34381
|
+
var operationCreator = options2.operations[name2];
|
34382
34382
|
if (!operationCreator) {
|
34383
|
-
throwUnsupportedOperation(
|
34383
|
+
throwUnsupportedOperation(name2);
|
34384
34384
|
}
|
34385
|
-
return operationCreator(params, parentQuery, options2,
|
34385
|
+
return operationCreator(params, parentQuery, options2, name2);
|
34386
34386
|
};
|
34387
|
-
var throwUnsupportedOperation = function(
|
34388
|
-
throw new Error("Unsupported operation: ".concat(
|
34387
|
+
var throwUnsupportedOperation = function(name2) {
|
34388
|
+
throw new Error("Unsupported operation: ".concat(name2));
|
34389
34389
|
};
|
34390
34390
|
var containsOperation = function(query2, options2) {
|
34391
34391
|
for (var key2 in query2) {
|
@@ -34672,10 +34672,10 @@ var require_lib2 = __commonJS({
|
|
34672
34672
|
/** @class */
|
34673
34673
|
function(_super) {
|
34674
34674
|
__extends($Nin2, _super);
|
34675
|
-
function $Nin2(params, ownerQuery, options2,
|
34676
|
-
var _this = _super.call(this, params, ownerQuery, options2,
|
34675
|
+
function $Nin2(params, ownerQuery, options2, name2) {
|
34676
|
+
var _this = _super.call(this, params, ownerQuery, options2, name2) || this;
|
34677
34677
|
_this.propop = true;
|
34678
|
-
_this._in = new $In(params, ownerQuery, options2,
|
34678
|
+
_this._in = new $In(params, ownerQuery, options2, name2);
|
34679
34679
|
return _this;
|
34680
34680
|
}
|
34681
34681
|
$Nin2.prototype.next = function(item, key2, owner, root2) {
|
@@ -34725,10 +34725,10 @@ var require_lib2 = __commonJS({
|
|
34725
34725
|
/** @class */
|
34726
34726
|
function(_super) {
|
34727
34727
|
__extends($And2, _super);
|
34728
|
-
function $And2(params, owneryQuery, options2,
|
34728
|
+
function $And2(params, owneryQuery, options2, name2) {
|
34729
34729
|
var _this = _super.call(this, params, owneryQuery, options2, params.map(function(query2) {
|
34730
34730
|
return createQueryOperation(query2, owneryQuery, options2);
|
34731
|
-
}),
|
34731
|
+
}), name2) || this;
|
34732
34732
|
_this.propop = false;
|
34733
34733
|
assertGroupNotEmpty(params);
|
34734
34734
|
return _this;
|
@@ -34743,10 +34743,10 @@ var require_lib2 = __commonJS({
|
|
34743
34743
|
/** @class */
|
34744
34744
|
function(_super) {
|
34745
34745
|
__extends($All2, _super);
|
34746
|
-
function $All2(params, owneryQuery, options2,
|
34746
|
+
function $All2(params, owneryQuery, options2, name2) {
|
34747
34747
|
var _this = _super.call(this, params, owneryQuery, options2, params.map(function(query2) {
|
34748
34748
|
return createQueryOperation(query2, owneryQuery, options2);
|
34749
|
-
}),
|
34749
|
+
}), name2) || this;
|
34750
34750
|
_this.propop = true;
|
34751
34751
|
return _this;
|
34752
34752
|
}
|
@@ -34759,23 +34759,23 @@ var require_lib2 = __commonJS({
|
|
34759
34759
|
var $eq = function(params, owneryQuery, options2) {
|
34760
34760
|
return new EqualsOperation(params, owneryQuery, options2);
|
34761
34761
|
};
|
34762
|
-
var $ne = function(params, owneryQuery, options2,
|
34763
|
-
return new $Ne(params, owneryQuery, options2,
|
34762
|
+
var $ne = function(params, owneryQuery, options2, name2) {
|
34763
|
+
return new $Ne(params, owneryQuery, options2, name2);
|
34764
34764
|
};
|
34765
|
-
var $or = function(params, owneryQuery, options2,
|
34766
|
-
return new $Or(params, owneryQuery, options2,
|
34765
|
+
var $or = function(params, owneryQuery, options2, name2) {
|
34766
|
+
return new $Or(params, owneryQuery, options2, name2);
|
34767
34767
|
};
|
34768
|
-
var $nor = function(params, owneryQuery, options2,
|
34769
|
-
return new $Nor(params, owneryQuery, options2,
|
34768
|
+
var $nor = function(params, owneryQuery, options2, name2) {
|
34769
|
+
return new $Nor(params, owneryQuery, options2, name2);
|
34770
34770
|
};
|
34771
|
-
var $elemMatch = function(params, owneryQuery, options2,
|
34772
|
-
return new $ElemMatch(params, owneryQuery, options2,
|
34771
|
+
var $elemMatch = function(params, owneryQuery, options2, name2) {
|
34772
|
+
return new $ElemMatch(params, owneryQuery, options2, name2);
|
34773
34773
|
};
|
34774
|
-
var $nin = function(params, owneryQuery, options2,
|
34775
|
-
return new $Nin(params, owneryQuery, options2,
|
34774
|
+
var $nin = function(params, owneryQuery, options2, name2) {
|
34775
|
+
return new $Nin(params, owneryQuery, options2, name2);
|
34776
34776
|
};
|
34777
|
-
var $in = function(params, owneryQuery, options2,
|
34778
|
-
return new $In(params, owneryQuery, options2,
|
34777
|
+
var $in = function(params, owneryQuery, options2, name2) {
|
34778
|
+
return new $In(params, owneryQuery, options2, name2);
|
34779
34779
|
};
|
34780
34780
|
var $lt = numericalOperation(function(params) {
|
34781
34781
|
return function(b) {
|
@@ -34803,14 +34803,14 @@ var require_lib2 = __commonJS({
|
|
34803
34803
|
return comparable(b) % mod === equalsValue;
|
34804
34804
|
}, owneryQuery, options2);
|
34805
34805
|
};
|
34806
|
-
var $exists = function(params, owneryQuery, options2,
|
34807
|
-
return new $Exists(params, owneryQuery, options2,
|
34806
|
+
var $exists = function(params, owneryQuery, options2, name2) {
|
34807
|
+
return new $Exists(params, owneryQuery, options2, name2);
|
34808
34808
|
};
|
34809
34809
|
var $regex = function(pattern, owneryQuery, options2) {
|
34810
34810
|
return new EqualsOperation(new RegExp(pattern, owneryQuery.$options), owneryQuery, options2);
|
34811
34811
|
};
|
34812
|
-
var $not = function(params, owneryQuery, options2,
|
34813
|
-
return new $Not(params, owneryQuery, options2,
|
34812
|
+
var $not = function(params, owneryQuery, options2, name2) {
|
34813
|
+
return new $Not(params, owneryQuery, options2, name2);
|
34814
34814
|
};
|
34815
34815
|
var typeAliases = {
|
34816
34816
|
number: function(v) {
|
@@ -34843,11 +34843,11 @@ var require_lib2 = __commonJS({
|
|
34843
34843
|
return b != null ? b instanceof clazz || b.constructor === clazz : false;
|
34844
34844
|
}, owneryQuery, options2);
|
34845
34845
|
};
|
34846
|
-
var $and = function(params, ownerQuery, options2,
|
34847
|
-
return new $And(params, ownerQuery, options2,
|
34846
|
+
var $and = function(params, ownerQuery, options2, name2) {
|
34847
|
+
return new $And(params, ownerQuery, options2, name2);
|
34848
34848
|
};
|
34849
|
-
var $all = function(params, ownerQuery, options2,
|
34850
|
-
return new $All(params, ownerQuery, options2,
|
34849
|
+
var $all = function(params, ownerQuery, options2, name2) {
|
34850
|
+
return new $All(params, ownerQuery, options2, name2);
|
34851
34851
|
};
|
34852
34852
|
var $size = function(params, ownerQuery, options2) {
|
34853
34853
|
return new $Size(params, ownerQuery, options2, "$size");
|
@@ -35598,10 +35598,10 @@ var require_ponyfill_es2018 = __commonJS({
|
|
35598
35598
|
return typeof x2 === "object" && x2 !== null || typeof x2 === "function";
|
35599
35599
|
}
|
35600
35600
|
const rethrowAssertionErrorRejection = noop3;
|
35601
|
-
function setFunctionName(fn,
|
35601
|
+
function setFunctionName(fn, name2) {
|
35602
35602
|
try {
|
35603
35603
|
Object.defineProperty(fn, "name", {
|
35604
|
-
value:
|
35604
|
+
value: name2,
|
35605
35605
|
configurable: true
|
35606
35606
|
});
|
35607
35607
|
} catch (_a4) {
|
@@ -35780,8 +35780,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
35780
35780
|
stream._reader = void 0;
|
35781
35781
|
reader._ownerReadableStream = void 0;
|
35782
35782
|
}
|
35783
|
-
function readerLockException(
|
35784
|
-
return new TypeError("Cannot " +
|
35783
|
+
function readerLockException(name2) {
|
35784
|
+
return new TypeError("Cannot " + name2 + " a stream using a released reader");
|
35785
35785
|
}
|
35786
35786
|
function defaultReaderClosedPromiseInitialize(reader) {
|
35787
35787
|
reader._closedPromise = newPromise((resolve3, reject3) => {
|
@@ -36037,8 +36037,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
36037
36037
|
readRequest._errorSteps(e2);
|
36038
36038
|
});
|
36039
36039
|
}
|
36040
|
-
function defaultReaderBrandCheckException(
|
36041
|
-
return new TypeError(`ReadableStreamDefaultReader.prototype.${
|
36040
|
+
function defaultReaderBrandCheckException(name2) {
|
36041
|
+
return new TypeError(`ReadableStreamDefaultReader.prototype.${name2} can only be used on a ReadableStreamDefaultReader`);
|
36042
36042
|
}
|
36043
36043
|
const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {
|
36044
36044
|
}).prototype);
|
@@ -36140,8 +36140,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
36140
36140
|
return false;
|
36141
36141
|
}
|
36142
36142
|
}
|
36143
|
-
function streamAsyncIteratorBrandCheckException(
|
36144
|
-
return new TypeError(`ReadableStreamAsyncIterator.${
|
36143
|
+
function streamAsyncIteratorBrandCheckException(name2) {
|
36144
|
+
return new TypeError(`ReadableStreamAsyncIterator.${name2} can only be used on a ReadableSteamAsyncIterator`);
|
36145
36145
|
}
|
36146
36146
|
const NumberIsNaN = Number.isNaN || function(x2) {
|
36147
36147
|
return x2 !== x2;
|
@@ -36956,11 +36956,11 @@ var require_ponyfill_es2018 = __commonJS({
|
|
36956
36956
|
request._associatedReadableByteStreamController = controller;
|
36957
36957
|
request._view = view;
|
36958
36958
|
}
|
36959
|
-
function byobRequestBrandCheckException(
|
36960
|
-
return new TypeError(`ReadableStreamBYOBRequest.prototype.${
|
36959
|
+
function byobRequestBrandCheckException(name2) {
|
36960
|
+
return new TypeError(`ReadableStreamBYOBRequest.prototype.${name2} can only be used on a ReadableStreamBYOBRequest`);
|
36961
36961
|
}
|
36962
|
-
function byteStreamControllerBrandCheckException(
|
36963
|
-
return new TypeError(`ReadableByteStreamController.prototype.${
|
36962
|
+
function byteStreamControllerBrandCheckException(name2) {
|
36963
|
+
return new TypeError(`ReadableByteStreamController.prototype.${name2} can only be used on a ReadableByteStreamController`);
|
36964
36964
|
}
|
36965
36965
|
function convertReaderOptions(options2, context2) {
|
36966
36966
|
assertDictionary(options2, context2);
|
@@ -37161,8 +37161,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
37161
37161
|
readIntoRequest._errorSteps(e2);
|
37162
37162
|
});
|
37163
37163
|
}
|
37164
|
-
function byobReaderBrandCheckException(
|
37165
|
-
return new TypeError(`ReadableStreamBYOBReader.prototype.${
|
37164
|
+
function byobReaderBrandCheckException(name2) {
|
37165
|
+
return new TypeError(`ReadableStreamBYOBReader.prototype.${name2} can only be used on a ReadableStreamBYOBReader`);
|
37166
37166
|
}
|
37167
37167
|
function ExtractHighWaterMark(strategy, defaultHWM) {
|
37168
37168
|
const { highWaterMark } = strategy;
|
@@ -38038,17 +38038,17 @@ var require_ponyfill_es2018 = __commonJS({
|
|
38038
38038
|
WritableStreamDefaultControllerClearAlgorithms(controller);
|
38039
38039
|
WritableStreamStartErroring(stream, error);
|
38040
38040
|
}
|
38041
|
-
function streamBrandCheckException$2(
|
38042
|
-
return new TypeError(`WritableStream.prototype.${
|
38041
|
+
function streamBrandCheckException$2(name2) {
|
38042
|
+
return new TypeError(`WritableStream.prototype.${name2} can only be used on a WritableStream`);
|
38043
38043
|
}
|
38044
|
-
function defaultControllerBrandCheckException$2(
|
38045
|
-
return new TypeError(`WritableStreamDefaultController.prototype.${
|
38044
|
+
function defaultControllerBrandCheckException$2(name2) {
|
38045
|
+
return new TypeError(`WritableStreamDefaultController.prototype.${name2} can only be used on a WritableStreamDefaultController`);
|
38046
38046
|
}
|
38047
|
-
function defaultWriterBrandCheckException(
|
38048
|
-
return new TypeError(`WritableStreamDefaultWriter.prototype.${
|
38047
|
+
function defaultWriterBrandCheckException(name2) {
|
38048
|
+
return new TypeError(`WritableStreamDefaultWriter.prototype.${name2} can only be used on a WritableStreamDefaultWriter`);
|
38049
38049
|
}
|
38050
|
-
function defaultWriterLockException(
|
38051
|
-
return new TypeError("Cannot " +
|
38050
|
+
function defaultWriterLockException(name2) {
|
38051
|
+
return new TypeError("Cannot " + name2 + " a stream using a released writer");
|
38052
38052
|
}
|
38053
38053
|
function defaultWriterClosedPromiseInitialize(writer) {
|
38054
38054
|
writer._closedPromise = newPromise((resolve3, reject3) => {
|
@@ -38157,9 +38157,9 @@ var require_ponyfill_es2018 = __commonJS({
|
|
38157
38157
|
return isDOMExceptionConstructor(ctor2) ? ctor2 : void 0;
|
38158
38158
|
}
|
38159
38159
|
function createPolyfill() {
|
38160
|
-
const ctor2 = function DOMException3(message,
|
38160
|
+
const ctor2 = function DOMException3(message, name2) {
|
38161
38161
|
this.message = message || "";
|
38162
|
-
this.name =
|
38162
|
+
this.name = name2 || "Error";
|
38163
38163
|
if (Error.captureStackTrace) {
|
38164
38164
|
Error.captureStackTrace(this, this.constructor);
|
38165
38165
|
}
|
@@ -38582,8 +38582,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
38582
38582
|
}
|
38583
38583
|
SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm);
|
38584
38584
|
}
|
38585
|
-
function defaultControllerBrandCheckException$1(
|
38586
|
-
return new TypeError(`ReadableStreamDefaultController.prototype.${
|
38585
|
+
function defaultControllerBrandCheckException$1(name2) {
|
38586
|
+
return new TypeError(`ReadableStreamDefaultController.prototype.${name2} can only be used on a ReadableStreamDefaultController`);
|
38587
38587
|
}
|
38588
38588
|
function ReadableStreamTee(stream, cloneForBranch2) {
|
38589
38589
|
if (IsReadableByteStreamController(stream._readableStreamController)) {
|
@@ -39309,8 +39309,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
39309
39309
|
ReadableStreamBYOBReaderErrorReadIntoRequests(reader, e2);
|
39310
39310
|
}
|
39311
39311
|
}
|
39312
|
-
function streamBrandCheckException$1(
|
39313
|
-
return new TypeError(`ReadableStream.prototype.${
|
39312
|
+
function streamBrandCheckException$1(name2) {
|
39313
|
+
return new TypeError(`ReadableStream.prototype.${name2} can only be used on a ReadableStream`);
|
39314
39314
|
}
|
39315
39315
|
function convertQueuingStrategyInit(init3, context2) {
|
39316
39316
|
assertDictionary(init3, context2);
|
@@ -39359,8 +39359,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
39359
39359
|
configurable: true
|
39360
39360
|
});
|
39361
39361
|
}
|
39362
|
-
function byteLengthBrandCheckException(
|
39363
|
-
return new TypeError(`ByteLengthQueuingStrategy.prototype.${
|
39362
|
+
function byteLengthBrandCheckException(name2) {
|
39363
|
+
return new TypeError(`ByteLengthQueuingStrategy.prototype.${name2} can only be used on a ByteLengthQueuingStrategy`);
|
39364
39364
|
}
|
39365
39365
|
function IsByteLengthQueuingStrategy(x2) {
|
39366
39366
|
if (!typeIsObject(x2)) {
|
@@ -39411,8 +39411,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
39411
39411
|
configurable: true
|
39412
39412
|
});
|
39413
39413
|
}
|
39414
|
-
function countBrandCheckException(
|
39415
|
-
return new TypeError(`CountQueuingStrategy.prototype.${
|
39414
|
+
function countBrandCheckException(name2) {
|
39415
|
+
return new TypeError(`CountQueuingStrategy.prototype.${name2} can only be used on a CountQueuingStrategy`);
|
39416
39416
|
}
|
39417
39417
|
function IsCountQueuingStrategy(x2) {
|
39418
39418
|
if (!typeIsObject(x2)) {
|
@@ -39819,8 +39819,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
39819
39819
|
});
|
39820
39820
|
return controller._finishPromise;
|
39821
39821
|
}
|
39822
|
-
function defaultControllerBrandCheckException(
|
39823
|
-
return new TypeError(`TransformStreamDefaultController.prototype.${
|
39822
|
+
function defaultControllerBrandCheckException(name2) {
|
39823
|
+
return new TypeError(`TransformStreamDefaultController.prototype.${name2} can only be used on a TransformStreamDefaultController`);
|
39824
39824
|
}
|
39825
39825
|
function defaultControllerFinishPromiseResolve(controller) {
|
39826
39826
|
if (controller._finishPromise_resolve === void 0) {
|
@@ -39839,8 +39839,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
39839
39839
|
controller._finishPromise_resolve = void 0;
|
39840
39840
|
controller._finishPromise_reject = void 0;
|
39841
39841
|
}
|
39842
|
-
function streamBrandCheckException(
|
39843
|
-
return new TypeError(`TransformStream.prototype.${
|
39842
|
+
function streamBrandCheckException(name2) {
|
39843
|
+
return new TypeError(`TransformStream.prototype.${name2} can only be used on a TransformStream`);
|
39844
39844
|
}
|
39845
39845
|
exports3.ByteLengthQueuingStrategy = ByteLengthQueuingStrategy;
|
39846
39846
|
exports3.CountQueuingStrategy = CountQueuingStrategy;
|
@@ -39883,7 +39883,7 @@ var require_streams = __commonJS({
|
|
39883
39883
|
try {
|
39884
39884
|
const { Blob: Blob3 } = require("buffer");
|
39885
39885
|
if (Blob3 && !Blob3.prototype.stream) {
|
39886
|
-
Blob3.prototype.stream = function
|
39886
|
+
Blob3.prototype.stream = function name2(params) {
|
39887
39887
|
let position = 0;
|
39888
39888
|
const blob = this;
|
39889
39889
|
return new ReadableStream({
|
@@ -40440,27 +40440,27 @@ var init_multipart_parser = __esm({
|
|
40440
40440
|
const bufferLength = data.length;
|
40441
40441
|
let c;
|
40442
40442
|
let cl;
|
40443
|
-
const mark2 = (
|
40444
|
-
this[
|
40443
|
+
const mark2 = (name2) => {
|
40444
|
+
this[name2 + "Mark"] = i2;
|
40445
40445
|
};
|
40446
|
-
const clear = (
|
40447
|
-
delete this[
|
40446
|
+
const clear = (name2) => {
|
40447
|
+
delete this[name2 + "Mark"];
|
40448
40448
|
};
|
40449
40449
|
const callback = (callbackSymbol, start, end, ui8a) => {
|
40450
40450
|
if (start === void 0 || start !== end) {
|
40451
40451
|
this[callbackSymbol](ui8a && ui8a.subarray(start, end));
|
40452
40452
|
}
|
40453
40453
|
};
|
40454
|
-
const dataCallback = (
|
40455
|
-
const markSymbol =
|
40454
|
+
const dataCallback = (name2, clear2) => {
|
40455
|
+
const markSymbol = name2 + "Mark";
|
40456
40456
|
if (!(markSymbol in this)) {
|
40457
40457
|
return;
|
40458
40458
|
}
|
40459
40459
|
if (clear2) {
|
40460
|
-
callback(
|
40460
|
+
callback(name2, this[markSymbol], i2, data);
|
40461
40461
|
delete this[markSymbol];
|
40462
40462
|
} else {
|
40463
|
-
callback(
|
40463
|
+
callback(name2, this[markSymbol], data.length, data);
|
40464
40464
|
this[markSymbol] = 0;
|
40465
40465
|
}
|
40466
40466
|
};
|
@@ -40951,9 +40951,9 @@ var require_utils2 = __commonJS({
|
|
40951
40951
|
const self2 = this;
|
40952
40952
|
function mkdirSync(fpath) {
|
40953
40953
|
let resolvedPath = fpath.split(self2.sep)[0];
|
40954
|
-
fpath.split(self2.sep).forEach(function(
|
40955
|
-
if (!
|
40956
|
-
resolvedPath += self2.sep +
|
40954
|
+
fpath.split(self2.sep).forEach(function(name2) {
|
40955
|
+
if (!name2 || name2.substr(-1, 1) === ":") return;
|
40956
|
+
resolvedPath += self2.sep + name2;
|
40957
40957
|
var stat7;
|
40958
40958
|
try {
|
40959
40959
|
stat7 = self2.fs.statSync(resolvedPath);
|
@@ -41134,16 +41134,16 @@ var require_utils2 = __commonJS({
|
|
41134
41134
|
}
|
41135
41135
|
return void 0;
|
41136
41136
|
};
|
41137
|
-
Utils.sanitize = function(prefix,
|
41137
|
+
Utils.sanitize = function(prefix, name2) {
|
41138
41138
|
prefix = pth.resolve(pth.normalize(prefix));
|
41139
|
-
var parts =
|
41139
|
+
var parts = name2.split("/");
|
41140
41140
|
for (var i2 = 0, l = parts.length; i2 < l; i2++) {
|
41141
41141
|
var path13 = pth.normalize(pth.join(prefix, parts.slice(i2, l).join(pth.sep)));
|
41142
41142
|
if (path13.indexOf(prefix) === 0) {
|
41143
41143
|
return path13;
|
41144
41144
|
}
|
41145
41145
|
}
|
41146
|
-
return pth.normalize(pth.join(prefix, pth.basename(
|
41146
|
+
return pth.normalize(pth.join(prefix, pth.basename(name2)));
|
41147
41147
|
};
|
41148
41148
|
Utils.toBuffer = function toBuffer(input, encoder) {
|
41149
41149
|
if (Buffer.isBuffer(input)) {
|
@@ -42359,9 +42359,9 @@ var require_zipFile = __commonJS({
|
|
42359
42359
|
if (typeof entry === "object") {
|
42360
42360
|
if (entry.isDirectory && subfolders) {
|
42361
42361
|
const list2 = [];
|
42362
|
-
const
|
42362
|
+
const name2 = entry.entryName;
|
42363
42363
|
for (const zipEntry of entryList) {
|
42364
|
-
if (zipEntry.entryName.startsWith(
|
42364
|
+
if (zipEntry.entryName.startsWith(name2)) {
|
42365
42365
|
list2.push(zipEntry);
|
42366
42366
|
}
|
42367
42367
|
}
|
@@ -42454,10 +42454,10 @@ var require_zipFile = __commonJS({
|
|
42454
42454
|
const compress2Buffer = function(entryLists) {
|
42455
42455
|
if (entryLists.length > 0) {
|
42456
42456
|
const entry = entryLists.shift();
|
42457
|
-
const
|
42458
|
-
if (onItemStart) onItemStart(
|
42457
|
+
const name2 = entry.entryName + entry.extra.toString();
|
42458
|
+
if (onItemStart) onItemStart(name2);
|
42459
42459
|
entry.getCompressedDataAsync(function(compressedData) {
|
42460
|
-
if (onItemEnd) onItemEnd(
|
42460
|
+
if (onItemEnd) onItemEnd(name2);
|
42461
42461
|
entry.header.offset = dindex;
|
42462
42462
|
const localHeader = entry.packLocalHeader();
|
42463
42463
|
const dataLength = localHeader.length + compressedData.length;
|
@@ -43025,8 +43025,8 @@ var require_adm_zip = __commonJS({
|
|
43025
43025
|
* @param {string} name
|
43026
43026
|
* @return ZipEntry
|
43027
43027
|
*/
|
43028
|
-
getEntry: function(
|
43029
|
-
return getEntry(
|
43028
|
+
getEntry: function(name2) {
|
43029
|
+
return getEntry(name2);
|
43030
43030
|
},
|
43031
43031
|
getEntryCount: function() {
|
43032
43032
|
return _zip.getEntryCount();
|
@@ -43066,8 +43066,8 @@ var require_adm_zip = __commonJS({
|
|
43066
43066
|
if (!content2) {
|
43067
43067
|
throw Utils.Errors.CANT_EXTRACT_FILE();
|
43068
43068
|
}
|
43069
|
-
var
|
43070
|
-
var childName = sanitize3(targetPath, maintainEntryPath ?
|
43069
|
+
var name2 = canonical(child.entryName);
|
43070
|
+
var childName = sanitize3(targetPath, maintainEntryPath ? name2 : pth.basename(name2));
|
43071
43071
|
const fileAttr2 = keepOriginalPermission ? child.header.fileAttr : void 0;
|
43072
43072
|
filetools.writeFileTo(childName, content2, overwrite, fileAttr2);
|
43073
43073
|
});
|
@@ -43614,8 +43614,8 @@ var require_settings = __commonJS({
|
|
43614
43614
|
/**
|
43615
43615
|
* Sets the description of the property.
|
43616
43616
|
*/
|
43617
|
-
setDescription(
|
43618
|
-
this.description =
|
43617
|
+
setDescription(description2) {
|
43618
|
+
this.description = description2;
|
43619
43619
|
return this;
|
43620
43620
|
}
|
43621
43621
|
};
|
@@ -43727,8 +43727,8 @@ var require_settings = __commonJS({
|
|
43727
43727
|
/**
|
43728
43728
|
* Adds a property to the array items.
|
43729
43729
|
*/
|
43730
|
-
addItemProperty(
|
43731
|
-
this.items.properties[
|
43730
|
+
addItemProperty(name2, property2) {
|
43731
|
+
this.items.properties[name2] = property2;
|
43732
43732
|
return this;
|
43733
43733
|
}
|
43734
43734
|
};
|
@@ -43741,8 +43741,8 @@ var require_settings = __commonJS({
|
|
43741
43741
|
/**
|
43742
43742
|
* Adds a new property to the settings configuration.
|
43743
43743
|
*/
|
43744
|
-
addProperty(
|
43745
|
-
this.properties[
|
43744
|
+
addProperty(name2, property2) {
|
43745
|
+
this.properties[name2] = property2;
|
43746
43746
|
return this;
|
43747
43747
|
}
|
43748
43748
|
};
|
@@ -44321,13 +44321,13 @@ var require_moment2 = __commonJS({
|
|
44321
44321
|
}, fn);
|
44322
44322
|
}
|
44323
44323
|
var deprecations = {};
|
44324
|
-
function deprecateSimple(
|
44324
|
+
function deprecateSimple(name2, msg) {
|
44325
44325
|
if (hooks.deprecationHandler != null) {
|
44326
|
-
hooks.deprecationHandler(
|
44326
|
+
hooks.deprecationHandler(name2, msg);
|
44327
44327
|
}
|
44328
|
-
if (!deprecations[
|
44328
|
+
if (!deprecations[name2]) {
|
44329
44329
|
warn(msg);
|
44330
|
-
deprecations[
|
44330
|
+
deprecations[name2] = true;
|
44331
44331
|
}
|
44332
44332
|
}
|
44333
44333
|
hooks.suppressDeprecationWarnings = false;
|
@@ -45609,22 +45609,22 @@ var require_moment2 = __commonJS({
|
|
45609
45609
|
}
|
45610
45610
|
return globalLocale;
|
45611
45611
|
}
|
45612
|
-
function isLocaleNameSane(
|
45613
|
-
return !!(
|
45612
|
+
function isLocaleNameSane(name2) {
|
45613
|
+
return !!(name2 && name2.match("^[^/\\\\]*$"));
|
45614
45614
|
}
|
45615
|
-
function loadLocale(
|
45615
|
+
function loadLocale(name2) {
|
45616
45616
|
var oldLocale = null, aliasedRequire;
|
45617
|
-
if (locales[
|
45617
|
+
if (locales[name2] === void 0 && typeof module2 !== "undefined" && module2 && module2.exports && isLocaleNameSane(name2)) {
|
45618
45618
|
try {
|
45619
45619
|
oldLocale = globalLocale._abbr;
|
45620
45620
|
aliasedRequire = require;
|
45621
|
-
aliasedRequire("./locale/" +
|
45621
|
+
aliasedRequire("./locale/" + name2);
|
45622
45622
|
getSetGlobalLocale(oldLocale);
|
45623
45623
|
} catch (e2) {
|
45624
|
-
locales[
|
45624
|
+
locales[name2] = null;
|
45625
45625
|
}
|
45626
45626
|
}
|
45627
|
-
return locales[
|
45627
|
+
return locales[name2];
|
45628
45628
|
}
|
45629
45629
|
function getSetGlobalLocale(key2, values2) {
|
45630
45630
|
var data;
|
@@ -45646,16 +45646,16 @@ var require_moment2 = __commonJS({
|
|
45646
45646
|
}
|
45647
45647
|
return globalLocale._abbr;
|
45648
45648
|
}
|
45649
|
-
function defineLocale(
|
45649
|
+
function defineLocale(name2, config2) {
|
45650
45650
|
if (config2 !== null) {
|
45651
45651
|
var locale2, parentConfig = baseConfig;
|
45652
|
-
config2.abbr =
|
45653
|
-
if (locales[
|
45652
|
+
config2.abbr = name2;
|
45653
|
+
if (locales[name2] != null) {
|
45654
45654
|
deprecateSimple(
|
45655
45655
|
"defineLocaleOverride",
|
45656
45656
|
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
|
45657
45657
|
);
|
45658
|
-
parentConfig = locales[
|
45658
|
+
parentConfig = locales[name2]._config;
|
45659
45659
|
} else if (config2.parentLocale != null) {
|
45660
45660
|
if (locales[config2.parentLocale] != null) {
|
45661
45661
|
parentConfig = locales[config2.parentLocale]._config;
|
@@ -45668,58 +45668,58 @@ var require_moment2 = __commonJS({
|
|
45668
45668
|
localeFamilies[config2.parentLocale] = [];
|
45669
45669
|
}
|
45670
45670
|
localeFamilies[config2.parentLocale].push({
|
45671
|
-
name,
|
45671
|
+
name: name2,
|
45672
45672
|
config: config2
|
45673
45673
|
});
|
45674
45674
|
return null;
|
45675
45675
|
}
|
45676
45676
|
}
|
45677
45677
|
}
|
45678
|
-
locales[
|
45679
|
-
if (localeFamilies[
|
45680
|
-
localeFamilies[
|
45678
|
+
locales[name2] = new Locale(mergeConfigs(parentConfig, config2));
|
45679
|
+
if (localeFamilies[name2]) {
|
45680
|
+
localeFamilies[name2].forEach(function(x2) {
|
45681
45681
|
defineLocale(x2.name, x2.config);
|
45682
45682
|
});
|
45683
45683
|
}
|
45684
|
-
getSetGlobalLocale(
|
45685
|
-
return locales[
|
45684
|
+
getSetGlobalLocale(name2);
|
45685
|
+
return locales[name2];
|
45686
45686
|
} else {
|
45687
|
-
delete locales[
|
45687
|
+
delete locales[name2];
|
45688
45688
|
return null;
|
45689
45689
|
}
|
45690
45690
|
}
|
45691
|
-
function updateLocale(
|
45691
|
+
function updateLocale(name2, config2) {
|
45692
45692
|
if (config2 != null) {
|
45693
45693
|
var locale2, tmpLocale, parentConfig = baseConfig;
|
45694
|
-
if (locales[
|
45695
|
-
locales[
|
45694
|
+
if (locales[name2] != null && locales[name2].parentLocale != null) {
|
45695
|
+
locales[name2].set(mergeConfigs(locales[name2]._config, config2));
|
45696
45696
|
} else {
|
45697
|
-
tmpLocale = loadLocale(
|
45697
|
+
tmpLocale = loadLocale(name2);
|
45698
45698
|
if (tmpLocale != null) {
|
45699
45699
|
parentConfig = tmpLocale._config;
|
45700
45700
|
}
|
45701
45701
|
config2 = mergeConfigs(parentConfig, config2);
|
45702
45702
|
if (tmpLocale == null) {
|
45703
|
-
config2.abbr =
|
45703
|
+
config2.abbr = name2;
|
45704
45704
|
}
|
45705
45705
|
locale2 = new Locale(config2);
|
45706
|
-
locale2.parentLocale = locales[
|
45707
|
-
locales[
|
45706
|
+
locale2.parentLocale = locales[name2];
|
45707
|
+
locales[name2] = locale2;
|
45708
45708
|
}
|
45709
|
-
getSetGlobalLocale(
|
45709
|
+
getSetGlobalLocale(name2);
|
45710
45710
|
} else {
|
45711
|
-
if (locales[
|
45712
|
-
if (locales[
|
45713
|
-
locales[
|
45714
|
-
if (
|
45715
|
-
getSetGlobalLocale(
|
45711
|
+
if (locales[name2] != null) {
|
45712
|
+
if (locales[name2].parentLocale != null) {
|
45713
|
+
locales[name2] = locales[name2].parentLocale;
|
45714
|
+
if (name2 === getSetGlobalLocale()) {
|
45715
|
+
getSetGlobalLocale(name2);
|
45716
45716
|
}
|
45717
|
-
} else if (locales[
|
45718
|
-
delete locales[
|
45717
|
+
} else if (locales[name2] != null) {
|
45718
|
+
delete locales[name2];
|
45719
45719
|
}
|
45720
45720
|
}
|
45721
45721
|
}
|
45722
|
-
return locales[
|
45722
|
+
return locales[name2];
|
45723
45723
|
}
|
45724
45724
|
function getLocale(key2) {
|
45725
45725
|
var locale2;
|
@@ -46625,13 +46625,13 @@ var require_moment2 = __commonJS({
|
|
46625
46625
|
}
|
46626
46626
|
return res;
|
46627
46627
|
}
|
46628
|
-
function createAdder(direction,
|
46628
|
+
function createAdder(direction, name2) {
|
46629
46629
|
return function(val, period) {
|
46630
46630
|
var dur, tmp;
|
46631
46631
|
if (period !== null && !isNaN(+period)) {
|
46632
46632
|
deprecateSimple(
|
46633
|
-
|
46634
|
-
"moment()." +
|
46633
|
+
name2,
|
46634
|
+
"moment()." + name2 + "(period, number) is deprecated. Please use moment()." + name2 + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
46635
46635
|
);
|
46636
46636
|
tmp = val;
|
46637
46637
|
val = period;
|
@@ -47210,10 +47210,10 @@ var require_moment2 = __commonJS({
|
|
47210
47210
|
return eras;
|
47211
47211
|
}
|
47212
47212
|
function localeErasParse(eraName, format4, strict2) {
|
47213
|
-
var i2, l, eras = this.eras(),
|
47213
|
+
var i2, l, eras = this.eras(), name2, abbr, narrow;
|
47214
47214
|
eraName = eraName.toUpperCase();
|
47215
47215
|
for (i2 = 0, l = eras.length; i2 < l; ++i2) {
|
47216
|
-
|
47216
|
+
name2 = eras[i2].name.toUpperCase();
|
47217
47217
|
abbr = eras[i2].abbr.toUpperCase();
|
47218
47218
|
narrow = eras[i2].narrow.toUpperCase();
|
47219
47219
|
if (strict2) {
|
@@ -47226,7 +47226,7 @@ var require_moment2 = __commonJS({
|
|
47226
47226
|
}
|
47227
47227
|
break;
|
47228
47228
|
case "NNNN":
|
47229
|
-
if (
|
47229
|
+
if (name2 === eraName) {
|
47230
47230
|
return eras[i2];
|
47231
47231
|
}
|
47232
47232
|
break;
|
@@ -47236,7 +47236,7 @@ var require_moment2 = __commonJS({
|
|
47236
47236
|
}
|
47237
47237
|
break;
|
47238
47238
|
}
|
47239
|
-
} else if ([
|
47239
|
+
} else if ([name2, abbr, narrow].indexOf(eraName) >= 0) {
|
47240
47240
|
return eras[i2];
|
47241
47241
|
}
|
47242
47242
|
}
|
@@ -47874,9 +47874,9 @@ var require_moment2 = __commonJS({
|
|
47874
47874
|
units = normalizeUnits(units);
|
47875
47875
|
return this.isValid() ? this[units + "s"]() : NaN;
|
47876
47876
|
}
|
47877
|
-
function makeGetter(
|
47877
|
+
function makeGetter(name2) {
|
47878
47878
|
return function() {
|
47879
|
-
return this.isValid() ? this._data[
|
47879
|
+
return this.isValid() ? this._data[name2] : NaN;
|
47880
47880
|
};
|
47881
47881
|
}
|
47882
47882
|
var milliseconds = makeGetter("milliseconds"), seconds = makeGetter("seconds"), minutes = makeGetter("minutes"), hours = makeGetter("hours"), days = makeGetter("days"), months = makeGetter("months"), years = makeGetter("years");
|
@@ -49076,11 +49076,11 @@ var require_re = __commonJS({
|
|
49076
49076
|
}
|
49077
49077
|
return value2;
|
49078
49078
|
};
|
49079
|
-
var createToken = (
|
49079
|
+
var createToken = (name2, value2, isGlobal) => {
|
49080
49080
|
const safe = makeSafeRegex(value2);
|
49081
49081
|
const index = R++;
|
49082
|
-
debug6(
|
49083
|
-
t2[
|
49082
|
+
debug6(name2, index, value2);
|
49083
|
+
t2[name2] = index;
|
49084
49084
|
src[index] = value2;
|
49085
49085
|
safeSrc[index] = safe;
|
49086
49086
|
re[index] = new RegExp(value2, isGlobal ? "g" : void 0);
|
@@ -53028,11 +53028,11 @@ var require_ansi_styles = __commonJS({
|
|
53028
53028
|
const offset = isBackground ? 10 : 0;
|
53029
53029
|
const styles3 = {};
|
53030
53030
|
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
53031
|
-
const
|
53031
|
+
const name2 = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
53032
53032
|
if (sourceSpace === targetSpace) {
|
53033
|
-
styles3[
|
53033
|
+
styles3[name2] = wrap3(identity2, offset);
|
53034
53034
|
} else if (typeof suite === "object") {
|
53035
|
-
styles3[
|
53035
|
+
styles3[name2] = wrap3(suite[targetSpace], offset);
|
53036
53036
|
}
|
53037
53037
|
}
|
53038
53038
|
return styles3;
|
@@ -53514,9 +53514,9 @@ var require_ansi_escapes = __commonJS({
|
|
53514
53514
|
// node_modules/chardet/match.js
|
53515
53515
|
var require_match = __commonJS({
|
53516
53516
|
"node_modules/chardet/match.js"(exports2, module2) {
|
53517
|
-
module2.exports = function(det, rec, confidence,
|
53517
|
+
module2.exports = function(det, rec, confidence, name2, lang) {
|
53518
53518
|
this.confidence = confidence;
|
53519
|
-
this.name =
|
53519
|
+
this.name = name2 || rec.name(det);
|
53520
53520
|
this.lang = lang;
|
53521
53521
|
};
|
53522
53522
|
}
|
@@ -54482,8 +54482,8 @@ var require_sbcs = __commonJS({
|
|
54482
54482
|
lang = ngl.fLang;
|
54483
54483
|
}
|
54484
54484
|
}
|
54485
|
-
var
|
54486
|
-
return bestConfidenceSoFar <= 0 ? null : new Match2(det, this, bestConfidenceSoFar,
|
54485
|
+
var name2 = this.name(det);
|
54486
|
+
return bestConfidenceSoFar <= 0 ? null : new Match2(det, this, bestConfidenceSoFar, name2, lang);
|
54487
54487
|
};
|
54488
54488
|
module2.exports.ISO_8859_1 = function() {
|
54489
54489
|
this.byteMap = function() {
|
@@ -62461,13 +62461,13 @@ var require_tmp = __commonJS({
|
|
62461
62461
|
if (opts.template) {
|
62462
62462
|
return opts.template.replace(TEMPLATE_PATTERN, _randomChars(6));
|
62463
62463
|
}
|
62464
|
-
const
|
62464
|
+
const name2 = [
|
62465
62465
|
opts.prefix || "tmp-",
|
62466
62466
|
process.pid,
|
62467
62467
|
_randomChars(12),
|
62468
62468
|
opts.postfix || ""
|
62469
62469
|
].join("");
|
62470
|
-
return path13.join(opts.dir || tmpDir,
|
62470
|
+
return path13.join(opts.dir || tmpDir, name2);
|
62471
62471
|
}
|
62472
62472
|
function tmpName(options2, callback) {
|
62473
62473
|
var args = _parseArguments(options2, callback), opts = args[0], cb2 = args[1], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
|
@@ -62476,13 +62476,13 @@ var require_tmp = __commonJS({
|
|
62476
62476
|
if (opts.template && !opts.template.match(TEMPLATE_PATTERN))
|
62477
62477
|
return cb2(new Error("Invalid template provided"));
|
62478
62478
|
(function _getUniqueName() {
|
62479
|
-
const
|
62480
|
-
fs5.stat(
|
62479
|
+
const name2 = _generateTmpName(opts);
|
62480
|
+
fs5.stat(name2, function(err2) {
|
62481
62481
|
if (!err2) {
|
62482
62482
|
if (tries-- > 0) return _getUniqueName();
|
62483
|
-
return cb2(new Error("Could not get a unique tmp filename, max tries reached " +
|
62483
|
+
return cb2(new Error("Could not get a unique tmp filename, max tries reached " + name2));
|
62484
62484
|
}
|
62485
|
-
cb2(null,
|
62485
|
+
cb2(null, name2);
|
62486
62486
|
});
|
62487
62487
|
})();
|
62488
62488
|
}
|
@@ -62493,11 +62493,11 @@ var require_tmp = __commonJS({
|
|
62493
62493
|
if (opts.template && !opts.template.match(TEMPLATE_PATTERN))
|
62494
62494
|
throw new Error("Invalid template provided");
|
62495
62495
|
do {
|
62496
|
-
const
|
62496
|
+
const name2 = _generateTmpName(opts);
|
62497
62497
|
try {
|
62498
|
-
fs5.statSync(
|
62498
|
+
fs5.statSync(name2);
|
62499
62499
|
} catch (e2) {
|
62500
|
-
return
|
62500
|
+
return name2;
|
62501
62501
|
}
|
62502
62502
|
} while (tries-- > 0);
|
62503
62503
|
throw new Error("Could not get a unique tmp filename, max tries reached");
|
@@ -62505,15 +62505,15 @@ var require_tmp = __commonJS({
|
|
62505
62505
|
function file(options2, callback) {
|
62506
62506
|
var args = _parseArguments(options2, callback), opts = args[0], cb2 = args[1];
|
62507
62507
|
opts.postfix = _isUndefined3(opts.postfix) ? ".tmp" : opts.postfix;
|
62508
|
-
tmpName(opts, function _tmpNameCreated(err2,
|
62508
|
+
tmpName(opts, function _tmpNameCreated(err2, name2) {
|
62509
62509
|
if (err2) return cb2(err2);
|
62510
|
-
fs5.open(
|
62510
|
+
fs5.open(name2, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err3, fd) {
|
62511
62511
|
if (err3) return cb2(err3);
|
62512
62512
|
if (opts.discardDescriptor) {
|
62513
62513
|
return fs5.close(fd, function _discardCallback(err4) {
|
62514
62514
|
if (err4) {
|
62515
62515
|
try {
|
62516
|
-
fs5.unlinkSync(
|
62516
|
+
fs5.unlinkSync(name2);
|
62517
62517
|
} catch (e2) {
|
62518
62518
|
if (!isENOENT(e2)) {
|
62519
62519
|
err4 = e2;
|
@@ -62521,13 +62521,13 @@ var require_tmp = __commonJS({
|
|
62521
62521
|
}
|
62522
62522
|
return cb2(err4);
|
62523
62523
|
}
|
62524
|
-
cb2(null,
|
62524
|
+
cb2(null, name2, void 0, _prepareTmpFileRemoveCallback(name2, -1, opts));
|
62525
62525
|
});
|
62526
62526
|
}
|
62527
62527
|
if (opts.detachDescriptor) {
|
62528
|
-
return cb2(null,
|
62528
|
+
return cb2(null, name2, fd, _prepareTmpFileRemoveCallback(name2, -1, opts));
|
62529
62529
|
}
|
62530
|
-
cb2(null,
|
62530
|
+
cb2(null, name2, fd, _prepareTmpFileRemoveCallback(name2, fd, opts));
|
62531
62531
|
});
|
62532
62532
|
});
|
62533
62533
|
}
|
@@ -62535,16 +62535,16 @@ var require_tmp = __commonJS({
|
|
62535
62535
|
var args = _parseArguments(options2), opts = args[0];
|
62536
62536
|
opts.postfix = opts.postfix || ".tmp";
|
62537
62537
|
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
62538
|
-
const
|
62539
|
-
var fd = fs5.openSync(
|
62538
|
+
const name2 = tmpNameSync(opts);
|
62539
|
+
var fd = fs5.openSync(name2, CREATE_FLAGS, opts.mode || FILE_MODE);
|
62540
62540
|
if (opts.discardDescriptor) {
|
62541
62541
|
fs5.closeSync(fd);
|
62542
62542
|
fd = void 0;
|
62543
62543
|
}
|
62544
62544
|
return {
|
62545
|
-
name,
|
62545
|
+
name: name2,
|
62546
62546
|
fd,
|
62547
|
-
removeCallback: _prepareTmpFileRemoveCallback(
|
62547
|
+
removeCallback: _prepareTmpFileRemoveCallback(name2, discardOrDetachDescriptor ? -1 : fd, opts)
|
62548
62548
|
};
|
62549
62549
|
}
|
62550
62550
|
function _rmdirRecursiveSync(root2) {
|
@@ -62570,24 +62570,24 @@ var require_tmp = __commonJS({
|
|
62570
62570
|
}
|
62571
62571
|
function dir(options2, callback) {
|
62572
62572
|
var args = _parseArguments(options2, callback), opts = args[0], cb2 = args[1];
|
62573
|
-
tmpName(opts, function _tmpNameCreated(err2,
|
62573
|
+
tmpName(opts, function _tmpNameCreated(err2, name2) {
|
62574
62574
|
if (err2) return cb2(err2);
|
62575
|
-
fs5.mkdir(
|
62575
|
+
fs5.mkdir(name2, opts.mode || DIR_MODE, function _dirCreated(err3) {
|
62576
62576
|
if (err3) return cb2(err3);
|
62577
|
-
cb2(null,
|
62577
|
+
cb2(null, name2, _prepareTmpDirRemoveCallback(name2, opts));
|
62578
62578
|
});
|
62579
62579
|
});
|
62580
62580
|
}
|
62581
62581
|
function dirSync(options2) {
|
62582
62582
|
var args = _parseArguments(options2), opts = args[0];
|
62583
|
-
const
|
62584
|
-
fs5.mkdirSync(
|
62583
|
+
const name2 = tmpNameSync(opts);
|
62584
|
+
fs5.mkdirSync(name2, opts.mode || DIR_MODE);
|
62585
62585
|
return {
|
62586
|
-
name,
|
62587
|
-
removeCallback: _prepareTmpDirRemoveCallback(
|
62586
|
+
name: name2,
|
62587
|
+
removeCallback: _prepareTmpDirRemoveCallback(name2, opts)
|
62588
62588
|
};
|
62589
62589
|
}
|
62590
|
-
function _prepareTmpFileRemoveCallback(
|
62590
|
+
function _prepareTmpFileRemoveCallback(name2, fd, opts) {
|
62591
62591
|
const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
|
62592
62592
|
try {
|
62593
62593
|
if (0 <= fdPath[0]) {
|
@@ -62605,15 +62605,15 @@ var require_tmp = __commonJS({
|
|
62605
62605
|
throw e2;
|
62606
62606
|
}
|
62607
62607
|
}
|
62608
|
-
}, [fd,
|
62608
|
+
}, [fd, name2]);
|
62609
62609
|
if (!opts.keep) {
|
62610
62610
|
_removeObjects.unshift(removeCallback);
|
62611
62611
|
}
|
62612
62612
|
return removeCallback;
|
62613
62613
|
}
|
62614
|
-
function _prepareTmpDirRemoveCallback(
|
62614
|
+
function _prepareTmpDirRemoveCallback(name2, opts) {
|
62615
62615
|
const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs5.rmdirSync.bind(fs5);
|
62616
|
-
const removeCallback = _prepareRemoveCallback(removeFunction,
|
62616
|
+
const removeCallback = _prepareRemoveCallback(removeFunction, name2);
|
62617
62617
|
if (!opts.keep) {
|
62618
62618
|
_removeObjects.unshift(removeCallback);
|
62619
62619
|
}
|
@@ -73093,20 +73093,20 @@ var wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/
|
|
73093
73093
|
${fromBody}`;
|
73094
73094
|
var toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
|
73095
73095
|
var toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
73096
|
-
var changeToString = (to, from2,
|
73097
|
-
const withName =
|
73096
|
+
var changeToString = (to, from2, name2) => {
|
73097
|
+
const withName = name2 === "" ? "" : `with ${name2.trim()}() `;
|
73098
73098
|
const newToString = wrappedToString.bind(null, withName, from2.toString());
|
73099
73099
|
Object.defineProperty(newToString, "name", toStringName);
|
73100
73100
|
const { writable, enumerable, configurable } = toStringDescriptor;
|
73101
73101
|
Object.defineProperty(to, "toString", { value: newToString, writable, enumerable, configurable });
|
73102
73102
|
};
|
73103
73103
|
function mimicFunction(to, from2, { ignoreNonConfigurable = false } = {}) {
|
73104
|
-
const { name } = to;
|
73104
|
+
const { name: name2 } = to;
|
73105
73105
|
for (const property2 of Reflect.ownKeys(from2)) {
|
73106
73106
|
copyProperty(to, from2, property2, ignoreNonConfigurable);
|
73107
73107
|
}
|
73108
73108
|
changePrototype(to, from2);
|
73109
|
-
changeToString(to, from2,
|
73109
|
+
changeToString(to, from2, name2);
|
73110
73110
|
return to;
|
73111
73111
|
}
|
73112
73112
|
|
@@ -73908,7 +73908,7 @@ function ora(options2) {
|
|
73908
73908
|
return new Ora(options2);
|
73909
73909
|
}
|
73910
73910
|
|
73911
|
-
// src/adapters/git.
|
73911
|
+
// src/adapters/git.mjs
|
73912
73912
|
var import_child_process2 = require("child_process");
|
73913
73913
|
|
73914
73914
|
// node_modules/simple-git/dist/esm/index.js
|
@@ -73946,8 +73946,8 @@ var __commonJS2 = (cb2, mod) => function __require() {
|
|
73946
73946
|
return mod || (0, cb2[__getOwnPropNames2(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
73947
73947
|
};
|
73948
73948
|
var __export2 = (target, all) => {
|
73949
|
-
for (var
|
73950
|
-
__defProp2(target,
|
73949
|
+
for (var name2 in all)
|
73950
|
+
__defProp2(target, name2, { get: all[name2], enumerable: true });
|
73951
73951
|
};
|
73952
73952
|
var __copyProps2 = (to, from2, except, desc) => {
|
73953
73953
|
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
@@ -75033,9 +75033,9 @@ function prefixedLogger(to, prefix, forward) {
|
|
75033
75033
|
}
|
75034
75034
|
};
|
75035
75035
|
}
|
75036
|
-
function childLoggerName(
|
75037
|
-
if (typeof
|
75038
|
-
return
|
75036
|
+
function childLoggerName(name2, childDebugger, { namespace: parentNamespace }) {
|
75037
|
+
if (typeof name2 === "string") {
|
75038
|
+
return name2;
|
75039
75039
|
}
|
75040
75040
|
const childNamespace = childDebugger && childDebugger.namespace || "";
|
75041
75041
|
if (childNamespace.startsWith(parentNamespace)) {
|
@@ -75049,10 +75049,10 @@ function createLogger(label, verbose, initialStep, infoDebugger = createLog()) {
|
|
75049
75049
|
const debugDebugger = typeof verbose === "string" ? infoDebugger.extend(verbose) : verbose;
|
75050
75050
|
const key2 = childLoggerName(filterType(verbose, filterString), debugDebugger, infoDebugger);
|
75051
75051
|
return step(initialStep);
|
75052
|
-
function sibling(
|
75052
|
+
function sibling(name2, initial2) {
|
75053
75053
|
return append(
|
75054
75054
|
spawned,
|
75055
|
-
createLogger(label, key2.replace(/^[^:]+/,
|
75055
|
+
createLogger(label, key2.replace(/^[^:]+/, name2), initial2, infoDebugger)
|
75056
75056
|
);
|
75057
75057
|
}
|
75058
75058
|
function step(phase) {
|
@@ -75096,12 +75096,12 @@ var init_tasks_pending_queue = __esm2({
|
|
75096
75096
|
return this._queue.get(task);
|
75097
75097
|
}
|
75098
75098
|
createProgress(task) {
|
75099
|
-
const
|
75100
|
-
const logger3 = createLogger(this.logLabel,
|
75099
|
+
const name2 = _TasksPendingQueue.getName(task.commands[0]);
|
75100
|
+
const logger3 = createLogger(this.logLabel, name2);
|
75101
75101
|
return {
|
75102
75102
|
task,
|
75103
75103
|
logger: logger3,
|
75104
|
-
name
|
75104
|
+
name: name2
|
75105
75105
|
};
|
75106
75106
|
}
|
75107
75107
|
push(task) {
|
@@ -75143,8 +75143,8 @@ var init_tasks_pending_queue = __esm2({
|
|
75143
75143
|
progress.logger("Starting task");
|
75144
75144
|
return progress;
|
75145
75145
|
}
|
75146
|
-
static getName(
|
75147
|
-
return `task:${
|
75146
|
+
static getName(name2 = "empty") {
|
75147
|
+
return `task:${name2}:${++_TasksPendingQueue.counter}`;
|
75148
75148
|
}
|
75149
75149
|
};
|
75150
75150
|
TasksPendingQueue = _TasksPendingQueue;
|
@@ -75163,9 +75163,9 @@ function onErrorReceived(target, logger3) {
|
|
75163
75163
|
target.push(Buffer.from(String(err2.stack), "ascii"));
|
75164
75164
|
};
|
75165
75165
|
}
|
75166
|
-
function onDataReceived(target,
|
75166
|
+
function onDataReceived(target, name2, logger3, output) {
|
75167
75167
|
return (buffer) => {
|
75168
|
-
logger3(`%s received %L bytes`,
|
75168
|
+
logger3(`%s received %L bytes`, name2, buffer);
|
75169
75169
|
output(`%B`, buffer);
|
75170
75170
|
target.push(buffer);
|
75171
75171
|
};
|
@@ -75413,23 +75413,23 @@ function taskCallback(task, response, callback = NOOP) {
|
|
75413
75413
|
response.then(onSuccess, onError2);
|
75414
75414
|
}
|
75415
75415
|
function addDeprecationNoticeToError(err2) {
|
75416
|
-
let log5 = (
|
75416
|
+
let log5 = (name2) => {
|
75417
75417
|
console.warn(
|
75418
|
-
`simple-git deprecation notice: accessing GitResponseError.${
|
75418
|
+
`simple-git deprecation notice: accessing GitResponseError.${name2} should be GitResponseError.git.${name2}, this will no longer be available in version 3`
|
75419
75419
|
);
|
75420
75420
|
log5 = NOOP;
|
75421
75421
|
};
|
75422
75422
|
return Object.create(err2, Object.getOwnPropertyNames(err2.git).reduce(descriptorReducer, {}));
|
75423
|
-
function descriptorReducer(all,
|
75424
|
-
if (
|
75423
|
+
function descriptorReducer(all, name2) {
|
75424
|
+
if (name2 in err2) {
|
75425
75425
|
return all;
|
75426
75426
|
}
|
75427
|
-
all[
|
75427
|
+
all[name2] = {
|
75428
75428
|
enumerable: false,
|
75429
75429
|
configurable: false,
|
75430
75430
|
get() {
|
75431
|
-
log5(
|
75432
|
-
return err2.git[
|
75431
|
+
log5(name2);
|
75432
|
+
return err2.git[name2];
|
75433
75433
|
}
|
75434
75434
|
};
|
75435
75435
|
return all;
|
@@ -77096,16 +77096,16 @@ var init_BranchSummary = __esm2({
|
|
77096
77096
|
this.current = "";
|
77097
77097
|
this.detached = false;
|
77098
77098
|
}
|
77099
|
-
push(status2, detached,
|
77099
|
+
push(status2, detached, name2, commit, label) {
|
77100
77100
|
if (status2 === "*") {
|
77101
77101
|
this.detached = detached;
|
77102
|
-
this.current =
|
77102
|
+
this.current = name2;
|
77103
77103
|
}
|
77104
|
-
this.all.push(
|
77105
|
-
this.branches[
|
77104
|
+
this.all.push(name2);
|
77105
|
+
this.branches[name2] = {
|
77106
77106
|
current: status2 === "*",
|
77107
77107
|
linkedWorkTree: status2 === "+",
|
77108
|
-
name,
|
77108
|
+
name: name2,
|
77109
77109
|
commit,
|
77110
77110
|
label
|
77111
77111
|
};
|
@@ -77128,14 +77128,14 @@ var init_parse_branch = __esm2({
|
|
77128
77128
|
parsers9 = [
|
77129
77129
|
new LineParser(
|
77130
77130
|
/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,
|
77131
|
-
(result2, [current,
|
77132
|
-
result2.push(branchStatus(current), true,
|
77131
|
+
(result2, [current, name2, commit, label]) => {
|
77132
|
+
result2.push(branchStatus(current), true, name2, commit, label);
|
77133
77133
|
}
|
77134
77134
|
),
|
77135
77135
|
new LineParser(
|
77136
77136
|
new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$", "s"),
|
77137
|
-
(result2, [current,
|
77138
|
-
result2.push(branchStatus(current), false,
|
77137
|
+
(result2, [current, name2, commit, label]) => {
|
77138
|
+
result2.push(branchStatus(current), false, name2, commit, label);
|
77139
77139
|
}
|
77140
77140
|
)
|
77141
77141
|
];
|
@@ -77299,15 +77299,15 @@ var init_parse_fetch = __esm2({
|
|
77299
77299
|
new LineParser(/From (.+)$/, (result2, [remote]) => {
|
77300
77300
|
result2.remote = remote;
|
77301
77301
|
}),
|
77302
|
-
new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/, (result2, [
|
77302
|
+
new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/, (result2, [name2, tracking]) => {
|
77303
77303
|
result2.branches.push({
|
77304
|
-
name,
|
77304
|
+
name: name2,
|
77305
77305
|
tracking
|
77306
77306
|
});
|
77307
77307
|
}),
|
77308
|
-
new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/, (result2, [
|
77308
|
+
new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/, (result2, [name2, tracking]) => {
|
77309
77309
|
result2.tags.push({
|
77310
|
-
name,
|
77310
|
+
name: name2,
|
77311
77311
|
tracking
|
77312
77312
|
});
|
77313
77313
|
}),
|
@@ -77318,9 +77318,9 @@ var init_parse_fetch = __esm2({
|
|
77318
77318
|
}),
|
77319
77319
|
new LineParser(
|
77320
77320
|
/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,
|
77321
|
-
(result2, [from2, to,
|
77321
|
+
(result2, [from2, to, name2, tracking]) => {
|
77322
77322
|
result2.updated.push({
|
77323
|
-
name,
|
77323
|
+
name: name2,
|
77324
77324
|
tracking,
|
77325
77325
|
to,
|
77326
77326
|
from: from2
|
@@ -77429,20 +77429,20 @@ var init_pull = __esm2({
|
|
77429
77429
|
});
|
77430
77430
|
function parseGetRemotes(text2) {
|
77431
77431
|
const remotes = {};
|
77432
|
-
forEach(text2, ([
|
77432
|
+
forEach(text2, ([name2]) => remotes[name2] = { name: name2 });
|
77433
77433
|
return Object.values(remotes);
|
77434
77434
|
}
|
77435
77435
|
function parseGetRemotesVerbose(text2) {
|
77436
77436
|
const remotes = {};
|
77437
|
-
forEach(text2, ([
|
77438
|
-
if (!remotes.hasOwnProperty(
|
77439
|
-
remotes[
|
77440
|
-
name,
|
77437
|
+
forEach(text2, ([name2, url, purpose]) => {
|
77438
|
+
if (!remotes.hasOwnProperty(name2)) {
|
77439
|
+
remotes[name2] = {
|
77440
|
+
name: name2,
|
77441
77441
|
refs: { fetch: "", push: "" }
|
77442
77442
|
};
|
77443
77443
|
}
|
77444
77444
|
if (purpose && url) {
|
77445
|
-
remotes[
|
77445
|
+
remotes[name2].refs[purpose.replace(/[^a-z]/g, "")] = url;
|
77446
77446
|
}
|
77447
77447
|
});
|
77448
77448
|
return Object.values(remotes);
|
@@ -77628,21 +77628,21 @@ function tagListTask(customArgs = []) {
|
|
77628
77628
|
}
|
77629
77629
|
};
|
77630
77630
|
}
|
77631
|
-
function addTagTask(
|
77631
|
+
function addTagTask(name2) {
|
77632
77632
|
return {
|
77633
77633
|
format: "utf-8",
|
77634
|
-
commands: ["tag",
|
77634
|
+
commands: ["tag", name2],
|
77635
77635
|
parser() {
|
77636
|
-
return { name };
|
77636
|
+
return { name: name2 };
|
77637
77637
|
}
|
77638
77638
|
};
|
77639
77639
|
}
|
77640
|
-
function addAnnotatedTagTask(
|
77640
|
+
function addAnnotatedTagTask(name2, tagMessage) {
|
77641
77641
|
return {
|
77642
77642
|
format: "utf-8",
|
77643
|
-
commands: ["tag", "-a", "-m", tagMessage,
|
77643
|
+
commands: ["tag", "-a", "-m", tagMessage, name2],
|
77644
77644
|
parser() {
|
77645
|
-
return { name };
|
77645
|
+
return { name: name2 };
|
77646
77646
|
}
|
77647
77647
|
};
|
77648
77648
|
}
|
@@ -77717,11 +77717,11 @@ var require_git = __commonJS2({
|
|
77717
77717
|
this._plugins.reconfigure("binary", command);
|
77718
77718
|
return this;
|
77719
77719
|
};
|
77720
|
-
Git2.prototype.env = function(
|
77721
|
-
if (arguments.length === 1 && typeof
|
77722
|
-
this._executor.env =
|
77720
|
+
Git2.prototype.env = function(name2, value2) {
|
77721
|
+
if (arguments.length === 1 && typeof name2 === "object") {
|
77722
|
+
this._executor.env = name2;
|
77723
77723
|
} else {
|
77724
|
-
(this._executor.env = this._executor.env || {})[
|
77724
|
+
(this._executor.env = this._executor.env || {})[name2] = value2;
|
77725
77725
|
}
|
77726
77726
|
return this;
|
77727
77727
|
};
|
@@ -77817,8 +77817,8 @@ var require_git = __commonJS2({
|
|
77817
77817
|
next
|
77818
77818
|
);
|
77819
77819
|
};
|
77820
|
-
Git2.prototype.addTag = function(
|
77821
|
-
const task = typeof
|
77820
|
+
Git2.prototype.addTag = function(name2) {
|
77821
|
+
const task = typeof name2 === "string" ? addTagTask2(name2) : configurationErrorTask2("Git.addTag requires a tag name");
|
77822
77822
|
return this._runTask(task, trailingFunctionArgument2(arguments));
|
77823
77823
|
};
|
77824
77824
|
Git2.prototype.addAnnotatedTag = function(tagName, tagMessage) {
|
@@ -78539,18 +78539,18 @@ var Config = class _Config {
|
|
78539
78539
|
get name() {
|
78540
78540
|
return this?.settings?.name ?? "";
|
78541
78541
|
}
|
78542
|
-
set name(
|
78543
|
-
this.settings.name =
|
78542
|
+
set name(name2) {
|
78543
|
+
this.settings.name = name2;
|
78544
78544
|
}
|
78545
|
-
includeList(
|
78546
|
-
return this?.code?.include_lists?.includes(
|
78545
|
+
includeList(name2) {
|
78546
|
+
return this?.code?.include_lists?.includes(name2);
|
78547
78547
|
}
|
78548
|
-
ignoreList(
|
78549
|
-
const list2 = this?.lists?.find((list3) =>
|
78548
|
+
ignoreList(name2) {
|
78549
|
+
const list2 = this?.lists?.find((list3) => name2 === list3.name);
|
78550
78550
|
return !list2 || list2 && list2.ignore;
|
78551
78551
|
}
|
78552
|
-
listExists(
|
78553
|
-
return this?.lists?.findIndex((list2) => list2.name ===
|
78552
|
+
listExists(name2) {
|
78553
|
+
return this?.lists?.findIndex((list2) => list2.name === name2) > -1;
|
78554
78554
|
}
|
78555
78555
|
getDefaultList() {
|
78556
78556
|
return this?.cards?.defaultList ?? this.lists[0].name;
|
@@ -79004,7 +79004,7 @@ function getTagsPath(projectPath) {
|
|
79004
79004
|
return import_path3.default.join(projectPath, TAGS_FILE_PATH);
|
79005
79005
|
}
|
79006
79006
|
|
79007
|
-
// src/adapters/git.
|
79007
|
+
// src/adapters/git.mjs
|
79008
79008
|
var import_promises = require("fs/promises");
|
79009
79009
|
var import_path4 = __toESM(require("path"), 1);
|
79010
79010
|
var { CONFIG_FILE_YML: CONFIG_FILE_YML2 } = constants;
|
@@ -79081,13 +79081,18 @@ async function addAndCommitChanges(projectPath, message, add2 = ["."]) {
|
|
79081
79081
|
}
|
79082
79082
|
async function stashChanges(projectPath) {
|
79083
79083
|
const git = gitRepo(projectPath);
|
79084
|
-
|
79084
|
+
const status2 = await git.status();
|
79085
|
+
const files = status2.files;
|
79086
|
+
if (files && files.length === 0) {
|
79087
|
+
return;
|
79088
|
+
}
|
79089
|
+
await git.stash(["push", "-u", "-m", `imdone-with-jira-${(/* @__PURE__ */ new Date()).toISOString()}`]);
|
79085
79090
|
}
|
79086
79091
|
async function stashPop(projectPath) {
|
79087
79092
|
const git = gitRepo(projectPath);
|
79088
79093
|
await git.stash(["pop"]);
|
79089
|
-
const { files } = await git.status();
|
79090
|
-
return files;
|
79094
|
+
const { files, conflicted } = await git.status();
|
79095
|
+
return { files, conflicted };
|
79091
79096
|
}
|
79092
79097
|
async function status(projectPath) {
|
79093
79098
|
const git = gitRepo(projectPath);
|
@@ -83235,9 +83240,9 @@ var UNESCAPE_MD_RE = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g;
|
|
83235
83240
|
var ENTITY_RE = /&([a-z#][a-z0-9]{1,31});/gi;
|
83236
83241
|
var UNESCAPE_ALL_RE = new RegExp(UNESCAPE_MD_RE.source + "|" + ENTITY_RE.source, "gi");
|
83237
83242
|
var DIGITAL_ENTITY_TEST_RE = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
83238
|
-
function replaceEntityPattern(match2,
|
83239
|
-
if (
|
83240
|
-
const code2 =
|
83243
|
+
function replaceEntityPattern(match2, name2) {
|
83244
|
+
if (name2.charCodeAt(0) === 35 && DIGITAL_ENTITY_TEST_RE.test(name2)) {
|
83245
|
+
const code2 = name2[1].toLowerCase() === "x" ? parseInt(name2.slice(2), 16) : parseInt(name2.slice(1), 10);
|
83241
83246
|
if (isValidEntityCode(code2)) {
|
83242
83247
|
return fromCodePoint2(code2);
|
83243
83248
|
}
|
@@ -83712,9 +83717,9 @@ function Ruler() {
|
|
83712
83717
|
this.__rules__ = [];
|
83713
83718
|
this.__cache__ = null;
|
83714
83719
|
}
|
83715
|
-
Ruler.prototype.__find__ = function(
|
83720
|
+
Ruler.prototype.__find__ = function(name2) {
|
83716
83721
|
for (let i2 = 0; i2 < this.__rules__.length; i2++) {
|
83717
|
-
if (this.__rules__[i2].name ===
|
83722
|
+
if (this.__rules__[i2].name === name2) {
|
83718
83723
|
return i2;
|
83719
83724
|
}
|
83720
83725
|
}
|
@@ -83747,11 +83752,11 @@ Ruler.prototype.__compile__ = function() {
|
|
83747
83752
|
});
|
83748
83753
|
});
|
83749
83754
|
};
|
83750
|
-
Ruler.prototype.at = function(
|
83751
|
-
const index = this.__find__(
|
83755
|
+
Ruler.prototype.at = function(name2, fn, options2) {
|
83756
|
+
const index = this.__find__(name2);
|
83752
83757
|
const opt = options2 || {};
|
83753
83758
|
if (index === -1) {
|
83754
|
-
throw new Error("Parser rule not found: " +
|
83759
|
+
throw new Error("Parser rule not found: " + name2);
|
83755
83760
|
}
|
83756
83761
|
this.__rules__[index].fn = fn;
|
83757
83762
|
this.__rules__[index].alt = opt.alt || [];
|
@@ -83800,16 +83805,16 @@ Ruler.prototype.enable = function(list2, ignoreInvalid) {
|
|
83800
83805
|
list2 = [list2];
|
83801
83806
|
}
|
83802
83807
|
const result2 = [];
|
83803
|
-
list2.forEach(function(
|
83804
|
-
const idx = this.__find__(
|
83808
|
+
list2.forEach(function(name2) {
|
83809
|
+
const idx = this.__find__(name2);
|
83805
83810
|
if (idx < 0) {
|
83806
83811
|
if (ignoreInvalid) {
|
83807
83812
|
return;
|
83808
83813
|
}
|
83809
|
-
throw new Error("Rules manager: invalid rule name " +
|
83814
|
+
throw new Error("Rules manager: invalid rule name " + name2);
|
83810
83815
|
}
|
83811
83816
|
this.__rules__[idx].enabled = true;
|
83812
|
-
result2.push(
|
83817
|
+
result2.push(name2);
|
83813
83818
|
}, this);
|
83814
83819
|
this.__cache__ = null;
|
83815
83820
|
return result2;
|
@@ -83828,16 +83833,16 @@ Ruler.prototype.disable = function(list2, ignoreInvalid) {
|
|
83828
83833
|
list2 = [list2];
|
83829
83834
|
}
|
83830
83835
|
const result2 = [];
|
83831
|
-
list2.forEach(function(
|
83832
|
-
const idx = this.__find__(
|
83836
|
+
list2.forEach(function(name2) {
|
83837
|
+
const idx = this.__find__(name2);
|
83833
83838
|
if (idx < 0) {
|
83834
83839
|
if (ignoreInvalid) {
|
83835
83840
|
return;
|
83836
83841
|
}
|
83837
|
-
throw new Error("Rules manager: invalid rule name " +
|
83842
|
+
throw new Error("Rules manager: invalid rule name " + name2);
|
83838
83843
|
}
|
83839
83844
|
this.__rules__[idx].enabled = false;
|
83840
|
-
result2.push(
|
83845
|
+
result2.push(name2);
|
83841
83846
|
}, this);
|
83842
83847
|
this.__cache__ = null;
|
83843
83848
|
return result2;
|
@@ -83866,13 +83871,13 @@ function Token(type, tag, nesting) {
|
|
83866
83871
|
this.block = false;
|
83867
83872
|
this.hidden = false;
|
83868
83873
|
}
|
83869
|
-
Token.prototype.attrIndex = function attrIndex(
|
83874
|
+
Token.prototype.attrIndex = function attrIndex(name2) {
|
83870
83875
|
if (!this.attrs) {
|
83871
83876
|
return -1;
|
83872
83877
|
}
|
83873
83878
|
const attrs = this.attrs;
|
83874
83879
|
for (let i2 = 0, len = attrs.length; i2 < len; i2++) {
|
83875
|
-
if (attrs[i2][0] ===
|
83880
|
+
if (attrs[i2][0] === name2) {
|
83876
83881
|
return i2;
|
83877
83882
|
}
|
83878
83883
|
}
|
@@ -83885,27 +83890,27 @@ Token.prototype.attrPush = function attrPush(attrData) {
|
|
83885
83890
|
this.attrs = [attrData];
|
83886
83891
|
}
|
83887
83892
|
};
|
83888
|
-
Token.prototype.attrSet = function attrSet(
|
83889
|
-
const idx = this.attrIndex(
|
83890
|
-
const attrData = [
|
83893
|
+
Token.prototype.attrSet = function attrSet(name2, value2) {
|
83894
|
+
const idx = this.attrIndex(name2);
|
83895
|
+
const attrData = [name2, value2];
|
83891
83896
|
if (idx < 0) {
|
83892
83897
|
this.attrPush(attrData);
|
83893
83898
|
} else {
|
83894
83899
|
this.attrs[idx] = attrData;
|
83895
83900
|
}
|
83896
83901
|
};
|
83897
|
-
Token.prototype.attrGet = function attrGet(
|
83898
|
-
const idx = this.attrIndex(
|
83902
|
+
Token.prototype.attrGet = function attrGet(name2) {
|
83903
|
+
const idx = this.attrIndex(name2);
|
83899
83904
|
let value2 = null;
|
83900
83905
|
if (idx >= 0) {
|
83901
83906
|
value2 = this.attrs[idx][1];
|
83902
83907
|
}
|
83903
83908
|
return value2;
|
83904
83909
|
};
|
83905
|
-
Token.prototype.attrJoin = function attrJoin(
|
83906
|
-
const idx = this.attrIndex(
|
83910
|
+
Token.prototype.attrJoin = function attrJoin(name2, value2) {
|
83911
|
+
const idx = this.attrIndex(name2);
|
83907
83912
|
if (idx < 0) {
|
83908
|
-
this.attrPush([
|
83913
|
+
this.attrPush([name2, value2]);
|
83909
83914
|
} else {
|
83910
83915
|
this.attrs[idx][1] = this.attrs[idx][1] + " " + value2;
|
83911
83916
|
}
|
@@ -84064,8 +84069,8 @@ var SCOPED_ABBR = {
|
|
84064
84069
|
r: "\xAE",
|
84065
84070
|
tm: "\u2122"
|
84066
84071
|
};
|
84067
|
-
function replaceFn(match2,
|
84068
|
-
return SCOPED_ABBR[
|
84072
|
+
function replaceFn(match2, name2) {
|
84073
|
+
return SCOPED_ABBR[name2.toLowerCase()];
|
84069
84074
|
}
|
84070
84075
|
function replace_scoped(inlineTokens) {
|
84071
84076
|
let inside_autolink = 0;
|
@@ -86875,38 +86880,38 @@ function compile(self2) {
|
|
86875
86880
|
re.host_fuzzy_test = RegExp(untpl(re.tpl_host_fuzzy_test), "i");
|
86876
86881
|
const aliases = [];
|
86877
86882
|
self2.__compiled__ = {};
|
86878
|
-
function schemaError(
|
86879
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
86883
|
+
function schemaError(name2, val) {
|
86884
|
+
throw new Error('(LinkifyIt) Invalid schema "' + name2 + '": ' + val);
|
86880
86885
|
}
|
86881
|
-
Object.keys(self2.__schemas__).forEach(function(
|
86882
|
-
const val = self2.__schemas__[
|
86886
|
+
Object.keys(self2.__schemas__).forEach(function(name2) {
|
86887
|
+
const val = self2.__schemas__[name2];
|
86883
86888
|
if (val === null) {
|
86884
86889
|
return;
|
86885
86890
|
}
|
86886
86891
|
const compiled = { validate: null, link: null };
|
86887
|
-
self2.__compiled__[
|
86892
|
+
self2.__compiled__[name2] = compiled;
|
86888
86893
|
if (isObject2(val)) {
|
86889
86894
|
if (isRegExp(val.validate)) {
|
86890
86895
|
compiled.validate = createValidator(val.validate);
|
86891
86896
|
} else if (isFunction2(val.validate)) {
|
86892
86897
|
compiled.validate = val.validate;
|
86893
86898
|
} else {
|
86894
|
-
schemaError(
|
86899
|
+
schemaError(name2, val);
|
86895
86900
|
}
|
86896
86901
|
if (isFunction2(val.normalize)) {
|
86897
86902
|
compiled.normalize = val.normalize;
|
86898
86903
|
} else if (!val.normalize) {
|
86899
86904
|
compiled.normalize = createNormalizer();
|
86900
86905
|
} else {
|
86901
|
-
schemaError(
|
86906
|
+
schemaError(name2, val);
|
86902
86907
|
}
|
86903
86908
|
return;
|
86904
86909
|
}
|
86905
86910
|
if (isString2(val)) {
|
86906
|
-
aliases.push(
|
86911
|
+
aliases.push(name2);
|
86907
86912
|
return;
|
86908
86913
|
}
|
86909
|
-
schemaError(
|
86914
|
+
schemaError(name2, val);
|
86910
86915
|
});
|
86911
86916
|
aliases.forEach(function(alias) {
|
86912
86917
|
if (!self2.__compiled__[self2.__schemas__[alias]]) {
|
@@ -86916,8 +86921,8 @@ function compile(self2) {
|
|
86916
86921
|
self2.__compiled__[alias].normalize = self2.__compiled__[self2.__schemas__[alias]].normalize;
|
86917
86922
|
});
|
86918
86923
|
self2.__compiled__[""] = { validate: null, normalize: createNormalizer() };
|
86919
|
-
const slist = Object.keys(self2.__compiled__).filter(function(
|
86920
|
-
return
|
86924
|
+
const slist = Object.keys(self2.__compiled__).filter(function(name2) {
|
86925
|
+
return name2.length > 0 && self2.__compiled__[name2];
|
86921
86926
|
}).map(escapeRE2).join("|");
|
86922
86927
|
self2.re.schema_test = RegExp("(^|(?!_)(?:[><\uFF5C]|" + re.src_ZPCc + "))(" + slist + ")", "i");
|
86923
86928
|
self2.re.schema_search = RegExp("(^|(?!_)(?:[><\uFF5C]|" + re.src_ZPCc + "))(" + slist + ")", "ig");
|
@@ -87352,12 +87357,12 @@ MarkdownIt.prototype.configure = function(presets) {
|
|
87352
87357
|
self2.set(presets.options);
|
87353
87358
|
}
|
87354
87359
|
if (presets.components) {
|
87355
|
-
Object.keys(presets.components).forEach(function(
|
87356
|
-
if (presets.components[
|
87357
|
-
self2[
|
87360
|
+
Object.keys(presets.components).forEach(function(name2) {
|
87361
|
+
if (presets.components[name2].rules) {
|
87362
|
+
self2[name2].ruler.enableOnly(presets.components[name2].rules);
|
87358
87363
|
}
|
87359
|
-
if (presets.components[
|
87360
|
-
self2[
|
87364
|
+
if (presets.components[name2].rules2) {
|
87365
|
+
self2[name2].ruler2.enableOnly(presets.components[name2].rules2);
|
87361
87366
|
}
|
87362
87367
|
});
|
87363
87368
|
}
|
@@ -87372,8 +87377,8 @@ MarkdownIt.prototype.enable = function(list2, ignoreInvalid) {
|
|
87372
87377
|
result2 = result2.concat(this[chain2].ruler.enable(list2, true));
|
87373
87378
|
}, this);
|
87374
87379
|
result2 = result2.concat(this.inline.ruler2.enable(list2, true));
|
87375
|
-
const missed = list2.filter(function(
|
87376
|
-
return result2.indexOf(
|
87380
|
+
const missed = list2.filter(function(name2) {
|
87381
|
+
return result2.indexOf(name2) < 0;
|
87377
87382
|
});
|
87378
87383
|
if (missed.length && !ignoreInvalid) {
|
87379
87384
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + missed);
|
@@ -87389,8 +87394,8 @@ MarkdownIt.prototype.disable = function(list2, ignoreInvalid) {
|
|
87389
87394
|
result2 = result2.concat(this[chain2].ruler.disable(list2, true));
|
87390
87395
|
}, this);
|
87391
87396
|
result2 = result2.concat(this.inline.ruler2.disable(list2, true));
|
87392
|
-
const missed = list2.filter(function(
|
87393
|
-
return result2.indexOf(
|
87397
|
+
const missed = list2.filter(function(name2) {
|
87398
|
+
return result2.indexOf(name2) < 0;
|
87394
87399
|
});
|
87395
87400
|
if (missed.length && !ignoreInvalid) {
|
87396
87401
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + missed);
|
@@ -89871,15 +89876,15 @@ var Task = class _Task {
|
|
89871
89876
|
static hasCheckPrefix(content) {
|
89872
89877
|
return new RegExp(CHECK_REGEX).test(content);
|
89873
89878
|
}
|
89874
|
-
static padDescription(
|
89879
|
+
static padDescription(description2 = [], beforeText = "") {
|
89875
89880
|
const checkedData = getCheckedData(beforeText);
|
89876
89881
|
if (checkedData) {
|
89877
|
-
return
|
89882
|
+
return description2.map((line) => {
|
89878
89883
|
const paddedLine = line.padStart(line.length + checkedData.pad);
|
89879
89884
|
return paddedLine.trim() ? paddedLine : "";
|
89880
89885
|
});
|
89881
89886
|
}
|
89882
|
-
return
|
89887
|
+
return description2;
|
89883
89888
|
}
|
89884
89889
|
static trimDescription(rawTaskContentLines, beforeText) {
|
89885
89890
|
const checkedData = getCheckedData(beforeText);
|
@@ -90308,7 +90313,7 @@ function getFunctionSignature(fn) {
|
|
90308
90313
|
throw new TypeError("Expected a function");
|
90309
90314
|
}
|
90310
90315
|
const fnString = fn.toString().trim();
|
90311
|
-
let
|
90316
|
+
let name2 = fn.name || "anonymous";
|
90312
90317
|
let params = "";
|
90313
90318
|
const paramMatch = fnString.match(/\(([^)]*)\)/);
|
90314
90319
|
if (paramMatch) {
|
@@ -90316,11 +90321,11 @@ function getFunctionSignature(fn) {
|
|
90316
90321
|
} else {
|
90317
90322
|
const arrowMatch = fnString.match(/^(?:\S+\s+)?(\w+)?\s*=?\s*(?:async\s*)?\(?([^)=]*)\)?\s*=>/);
|
90318
90323
|
if (arrowMatch) {
|
90319
|
-
|
90324
|
+
name2 = name2 || arrowMatch[1] || "anonymous";
|
90320
90325
|
params = arrowMatch[2].trim();
|
90321
90326
|
}
|
90322
90327
|
}
|
90323
|
-
return `${
|
90328
|
+
return `${name2}(${params})`;
|
90324
90329
|
}
|
90325
90330
|
|
90326
90331
|
// node_modules/eta/dist/eta.module.mjs
|
@@ -90800,16 +90805,16 @@ var Eta$1 = class {
|
|
90800
90805
|
}
|
90801
90806
|
};
|
90802
90807
|
}
|
90803
|
-
loadTemplate(
|
90808
|
+
loadTemplate(name2, template2, options2) {
|
90804
90809
|
if (typeof template2 === "string") {
|
90805
90810
|
const templates = options2 && options2.async ? this.templatesAsync : this.templatesSync;
|
90806
|
-
templates.define(
|
90811
|
+
templates.define(name2, this.compile(template2, options2));
|
90807
90812
|
} else {
|
90808
90813
|
let templates = this.templatesSync;
|
90809
90814
|
if (template2.constructor.name === "AsyncFunction" || options2 && options2.async) {
|
90810
90815
|
templates = this.templatesAsync;
|
90811
90816
|
}
|
90812
|
-
templates.define(
|
90817
|
+
templates.define(name2, template2);
|
90813
90818
|
}
|
90814
90819
|
}
|
90815
90820
|
};
|
@@ -90878,8 +90883,8 @@ var Eta = class extends Eta$1 {
|
|
90878
90883
|
|
90879
90884
|
// node_modules/imdone-core/lib/adapters/parsers/content-transformer.js
|
90880
90885
|
var import_uniqid = __toESM(require_uniqid(), 1);
|
90881
|
-
function removeDisplayComments(
|
90882
|
-
return
|
90886
|
+
function removeDisplayComments(description2) {
|
90887
|
+
return description2.replace(/<!--\s*\[([\s\S]*?)\]\s*-->/g, "$1");
|
90883
90888
|
}
|
90884
90889
|
function escapeCodeBlocks(content) {
|
90885
90890
|
const codeBlockRegex = /(```[\s\S]*?```|`[^`]*`)/g;
|
@@ -91388,8 +91393,8 @@ function trimBlankLines(content, isCodeFile) {
|
|
91388
91393
|
}
|
91389
91394
|
return content.replace(/\n\s*\n\s*\n/g, "\n\n");
|
91390
91395
|
}
|
91391
|
-
function padDescription(
|
91392
|
-
return Task.padDescription(
|
91396
|
+
function padDescription(description2 = [], beforeText = "") {
|
91397
|
+
return Task.padDescription(description2, beforeText);
|
91393
91398
|
}
|
91394
91399
|
function bothAreUndefNull(a, b) {
|
91395
91400
|
return isUndefNull(a) && isUndefNull(b);
|
@@ -92034,25 +92039,25 @@ var File = class _File2 extends import_events.default {
|
|
92034
92039
|
spaces = spaces.replace(/\S/g, " ");
|
92035
92040
|
}
|
92036
92041
|
const descriptionStartsWith = task.descriptionStartsWith ? `${task.descriptionStartsWith} ` : "";
|
92037
|
-
let
|
92042
|
+
let description2 = task.description.map(
|
92038
92043
|
(desc) => `${spaces}${descriptionStartsWith}${desc}`
|
92039
92044
|
);
|
92040
|
-
|
92041
|
-
if (taskContentLines.length === 0 &&
|
92042
|
-
beforeDescContent +=
|
92045
|
+
description2 = _File2.padDescription(description2, task.beforeText).join(lineEnd2);
|
92046
|
+
if (taskContentLines.length === 0 && description2.length > 0) {
|
92047
|
+
beforeDescContent += description2 + lineEnd2;
|
92043
92048
|
} else {
|
92044
92049
|
let rawTaskContent = rawTaskContentLines.join(lineEnd2);
|
92045
|
-
if (this.isMarkDownFile() &&
|
92050
|
+
if (this.isMarkDownFile() && description2.length > 0 && (hasBlankLines(description2) || isWrappedWithCardTag || trailingBlankLines)) {
|
92046
92051
|
task.isWrappedWithCardTag = isWrappedWithCardTag;
|
92047
92052
|
const blankLinesToAdd = isWrappedWithCardTag ? 2 : trailingBlankLines;
|
92048
|
-
|
92053
|
+
description2 = `${description2}${lineEnd2.repeat(blankLinesToAdd)}`;
|
92049
92054
|
}
|
92050
|
-
if (task.singleLineBlockComment && rawTaskContent.length > 0 &&
|
92051
|
-
|
92055
|
+
if (task.singleLineBlockComment && rawTaskContent.length > 0 && description2.length === 0) {
|
92056
|
+
description2 = lineEnd2 + description2;
|
92052
92057
|
}
|
92053
|
-
content = content.replace(rawTaskContent,
|
92058
|
+
content = content.replace(rawTaskContent, description2);
|
92054
92059
|
}
|
92055
|
-
task.lastLine = task.line +
|
92060
|
+
task.lastLine = task.line + description2.split(lineEnd2).length;
|
92056
92061
|
this.setContent(beforeDescContent + content);
|
92057
92062
|
}
|
92058
92063
|
extractTaskWithDescription({
|
@@ -92072,7 +92077,7 @@ var File = class _File2 extends import_events.default {
|
|
92072
92077
|
}) {
|
92073
92078
|
var self2 = this;
|
92074
92079
|
const lang = this.getLang();
|
92075
|
-
let
|
92080
|
+
let description2 = [];
|
92076
92081
|
const beforeText = this.getBeforeText(line, pos);
|
92077
92082
|
let { rawTaskContentLines, taskContentLines, isWrappedWithCardTag } = this.getTaskContent({
|
92078
92083
|
config: config2,
|
@@ -92081,9 +92086,9 @@ var File = class _File2 extends import_events.default {
|
|
92081
92086
|
beforeText
|
92082
92087
|
});
|
92083
92088
|
if (!singleLineBlockComment) {
|
92084
|
-
|
92089
|
+
description2 = this.isCodeFile() ? taskContentLines.map((line2) => this.trimCommentChars(line2)) : structuredClone(taskContentLines);
|
92085
92090
|
}
|
92086
|
-
|
92091
|
+
description2 = Task.trimDescription(description2, beforeText);
|
92087
92092
|
const descriptionStartsWith = this.getDescriptionChars(inBlockComment);
|
92088
92093
|
const frontMatter = this.frontMatter;
|
92089
92094
|
text2 = this.trimCommentBlockEnd(text2);
|
@@ -92100,7 +92105,7 @@ var File = class _File2 extends import_events.default {
|
|
92100
92105
|
text: text2,
|
92101
92106
|
list: list2,
|
92102
92107
|
rawTaskContentLines,
|
92103
|
-
description,
|
92108
|
+
description: description2,
|
92104
92109
|
descriptionStartsWith,
|
92105
92110
|
taskStartOnLine,
|
92106
92111
|
commentStartOnLine,
|
@@ -92431,8 +92436,8 @@ var import_debug3 = __toESM(require_src(), 1);
|
|
92431
92436
|
// node_modules/imdone-core/lib/list.js
|
92432
92437
|
var import_uniqid2 = __toESM(require_uniqid(), 1);
|
92433
92438
|
var List = class _List {
|
92434
|
-
constructor({ name, hidden, ignore: ignore2, filter: filter3, id }) {
|
92435
|
-
this.name =
|
92439
|
+
constructor({ name: name2, hidden, ignore: ignore2, filter: filter3, id }) {
|
92440
|
+
this.name = name2;
|
92436
92441
|
this.hidden = hidden || false;
|
92437
92442
|
this.ignore = ignore2 || false;
|
92438
92443
|
this.id = id || (0, import_uniqid2.default)();
|
@@ -92888,7 +92893,7 @@ var Repository = class _Repository extends import_events2.default {
|
|
92888
92893
|
this.config.lists.push(new List(list2));
|
92889
92894
|
if (!list2.filter && !/[a-z]/.test(list2.name)) {
|
92890
92895
|
const codeList = list2.name.replace(/\s+/g, "-").toUpperCase();
|
92891
|
-
if (!this.config.code.include_lists.find((
|
92896
|
+
if (!this.config.code.include_lists.find((name2) => name2 === codeList)) {
|
92892
92897
|
this.config.code.include_lists.push(codeList);
|
92893
92898
|
}
|
92894
92899
|
}
|
@@ -92938,8 +92943,8 @@ var Repository = class _Repository extends import_events2.default {
|
|
92938
92943
|
getVisibleLists() {
|
92939
92944
|
return (0, import_lodash11.default)(this.getLists(), "hidden");
|
92940
92945
|
}
|
92941
|
-
isListVisible(
|
92942
|
-
return this.getVisibleLists.find((list2) => list2.name ===
|
92946
|
+
isListVisible(name2) {
|
92947
|
+
return this.getVisibleLists.find((list2) => list2.name === name2);
|
92943
92948
|
}
|
92944
92949
|
/**
|
92945
92950
|
* Description
|
@@ -92959,8 +92964,8 @@ var Repository = class _Repository extends import_events2.default {
|
|
92959
92964
|
* @param {} name
|
92960
92965
|
* @return BinaryExpression
|
92961
92966
|
*/
|
92962
|
-
listExists(
|
92963
|
-
return this.getConfig().listExists(
|
92967
|
+
listExists(name2) {
|
92968
|
+
return this.getConfig().listExists(name2);
|
92964
92969
|
}
|
92965
92970
|
/**
|
92966
92971
|
* Save the config file (Implemented in mixins)
|
@@ -93352,8 +93357,8 @@ var Repository = class _Repository extends import_events2.default {
|
|
93352
93357
|
});
|
93353
93358
|
return file;
|
93354
93359
|
}
|
93355
|
-
getList(
|
93356
|
-
return this.getLists().find((list2) => list2.name ===
|
93360
|
+
getList(name2) {
|
93361
|
+
return this.getLists().find((list2) => list2.name === name2);
|
93357
93362
|
}
|
93358
93363
|
getListById(id, lists = this.getLists()) {
|
93359
93364
|
return lists.find((list2) => list2.id === id);
|
@@ -93363,23 +93368,23 @@ var Repository = class _Repository extends import_events2.default {
|
|
93363
93368
|
// <!--
|
93364
93369
|
// order:-150
|
93365
93370
|
// -->
|
93366
|
-
async hideList(
|
93367
|
-
await this.setListHidden(
|
93371
|
+
async hideList(name2) {
|
93372
|
+
await this.setListHidden(name2);
|
93368
93373
|
}
|
93369
93374
|
// READY Refactor showList to use async/await
|
93370
93375
|
// #esm-migration
|
93371
93376
|
// <!--
|
93372
93377
|
// order:-230
|
93373
93378
|
// -->
|
93374
|
-
async showList(
|
93375
|
-
await this.setListHidden(
|
93379
|
+
async showList(name2) {
|
93380
|
+
await this.setListHidden(name2, false);
|
93376
93381
|
}
|
93377
|
-
async setListHidden(
|
93378
|
-
const list2 = this.getList(
|
93382
|
+
async setListHidden(name2, hidden = true) {
|
93383
|
+
const list2 = this.getList(name2);
|
93379
93384
|
if (list2) {
|
93380
93385
|
list2.hidden = hidden;
|
93381
93386
|
await this.saveConfig();
|
93382
|
-
this.emit("list.modified",
|
93387
|
+
this.emit("list.modified", name2);
|
93383
93388
|
}
|
93384
93389
|
}
|
93385
93390
|
/**
|
@@ -93395,13 +93400,13 @@ var Repository = class _Repository extends import_events2.default {
|
|
93395
93400
|
// <!--
|
93396
93401
|
// order:-190
|
93397
93402
|
// -->
|
93398
|
-
async moveList(
|
93399
|
-
var list2 = this.getList(
|
93403
|
+
async moveList(name2, pos) {
|
93404
|
+
var list2 = this.getList(name2);
|
93400
93405
|
if (list2) {
|
93401
|
-
(0, import_lodash14.default)(this.getLists(), { name });
|
93406
|
+
(0, import_lodash14.default)(this.getLists(), { name: name2 });
|
93402
93407
|
this.getLists().splice(pos, 0, list2);
|
93403
93408
|
await this.saveConfig();
|
93404
|
-
this.emit("list.modified",
|
93409
|
+
this.emit("list.modified", name2);
|
93405
93410
|
}
|
93406
93411
|
}
|
93407
93412
|
// READY Refactor toggleListIgnore to use async/await
|
@@ -93409,41 +93414,41 @@ var Repository = class _Repository extends import_events2.default {
|
|
93409
93414
|
// <!--
|
93410
93415
|
// order:-250
|
93411
93416
|
// -->
|
93412
|
-
async toggleListIgnore(
|
93413
|
-
var list2 = this.getList(
|
93417
|
+
async toggleListIgnore(name2) {
|
93418
|
+
var list2 = this.getList(name2);
|
93414
93419
|
if (!list2) return reject(new Error("List not found"));
|
93415
93420
|
list2.ignore = !list2.ignore;
|
93416
93421
|
await this.updateList(list2.id, list2);
|
93417
93422
|
await this.saveConfig();
|
93418
|
-
this.emit("list.modified",
|
93423
|
+
this.emit("list.modified", name2);
|
93419
93424
|
}
|
93420
|
-
async toggleList(
|
93421
|
-
const list2 = this.getList(
|
93425
|
+
async toggleList(name2) {
|
93426
|
+
const list2 = this.getList(name2);
|
93422
93427
|
if (!list2) throw new Error("List not found");
|
93423
93428
|
list2.hidden = !list2.hidden;
|
93424
93429
|
await this.updateList(list2.id, list2);
|
93425
93430
|
await this.saveConfig();
|
93426
|
-
this.emit("list.modified",
|
93431
|
+
this.emit("list.modified", name2);
|
93427
93432
|
}
|
93428
93433
|
// READY Refactor updateList to use async/await
|
93429
93434
|
// #esm-migration
|
93430
93435
|
// <!--
|
93431
93436
|
// order:-90
|
93432
93437
|
// -->
|
93433
|
-
async updateList(id, { name, hidden, ignore: ignore2, filter: filter3 }) {
|
93438
|
+
async updateList(id, { name: name2, hidden, ignore: ignore2, filter: filter3 }) {
|
93434
93439
|
const lists = this.getLists();
|
93435
93440
|
const list2 = this.getListById(id, lists);
|
93436
93441
|
const oldName = list2.name;
|
93437
93442
|
const hasFilter = list2.filter;
|
93438
|
-
list2.name =
|
93443
|
+
list2.name = name2;
|
93439
93444
|
list2.hidden = hidden;
|
93440
93445
|
list2.ignore = ignore2;
|
93441
93446
|
if (hasFilter !== void 0) list2.filter = filter3;
|
93442
93447
|
this.setLists(lists);
|
93443
|
-
if (oldName ===
|
93448
|
+
if (oldName === name2 || hasFilter) {
|
93444
93449
|
return await this.saveConfig();
|
93445
93450
|
}
|
93446
|
-
await this.moveTasksBetweenLists(oldName,
|
93451
|
+
await this.moveTasksBetweenLists(oldName, name2);
|
93447
93452
|
}
|
93448
93453
|
getTasksByFile(tasks) {
|
93449
93454
|
const tasksByFile = {};
|
@@ -93605,7 +93610,7 @@ var Repository = class _Repository extends import_events2.default {
|
|
93605
93610
|
return await this.writeAndExtract(file, true);
|
93606
93611
|
}
|
93607
93612
|
getTaskContent({
|
93608
|
-
description,
|
93613
|
+
description: description2,
|
93609
93614
|
order,
|
93610
93615
|
text: text2,
|
93611
93616
|
taskPrefix,
|
@@ -93613,7 +93618,7 @@ var Repository = class _Repository extends import_events2.default {
|
|
93613
93618
|
}) {
|
93614
93619
|
const task = newCard(
|
93615
93620
|
{
|
93616
|
-
description,
|
93621
|
+
description: description2,
|
93617
93622
|
meta: {},
|
93618
93623
|
order,
|
93619
93624
|
text: text2,
|
@@ -93649,16 +93654,16 @@ var Repository = class _Repository extends import_events2.default {
|
|
93649
93654
|
let sep3 = fileContent.indexOf(crlf) > -1 ? crlf : String(import_eol6.default.lf);
|
93650
93655
|
if (fileContent.endsWith(sep3) || fileIsEmpty) sep3 = "";
|
93651
93656
|
const order = appContext().projectContext.getOrder(list2);
|
93652
|
-
const
|
93657
|
+
const description2 = lines2.length > 1 ? Task.padDescription(lines2.slice(1), taskPrefix) : [];
|
93653
93658
|
const { orderMeta, tokenPrefix } = config2;
|
93654
93659
|
const rawTask = getRawTask({ tokenPrefix, orderMeta, list: list2, order, text: text2, type: taskSyntax });
|
93655
93660
|
const taskContent = config2.orderMeta ? this.getTaskContent({
|
93656
|
-
description,
|
93661
|
+
description: description2,
|
93657
93662
|
order,
|
93658
93663
|
text: text2,
|
93659
93664
|
taskPrefix,
|
93660
93665
|
taskSyntax
|
93661
|
-
}) :
|
93666
|
+
}) : description2.join(import_eol6.default.lf);
|
93662
93667
|
let appendContent = File.trimBlankLines(
|
93663
93668
|
`${taskPrefix}${rawTask}${import_eol6.default.lf}${taskContent}`
|
93664
93669
|
);
|
@@ -93855,9 +93860,9 @@ var Repository = class _Repository extends import_events2.default {
|
|
93855
93860
|
* @param {} name
|
93856
93861
|
* @return ConditionalExpression
|
93857
93862
|
*/
|
93858
|
-
getTasksInList(
|
93859
|
-
if (!(0, import_lodash10.default)(
|
93860
|
-
var tasks = (0, import_lodash16.default)(this.getTasks(), { list:
|
93863
|
+
getTasksInList(name2, offset, limit) {
|
93864
|
+
if (!(0, import_lodash10.default)(name2)) return [];
|
93865
|
+
var tasks = (0, import_lodash16.default)(this.getTasks(), { list: name2 });
|
93861
93866
|
if (tasks.length === 0) return [];
|
93862
93867
|
var allTasks = sort(tasks).by(DEFAULT_SORT);
|
93863
93868
|
if (isNumber2(offset) && isNumber2(limit))
|
@@ -96247,8 +96252,8 @@ var Body = class {
|
|
96247
96252
|
if (ct.startsWith("application/x-www-form-urlencoded")) {
|
96248
96253
|
const formData = new FormData();
|
96249
96254
|
const parameters = new URLSearchParams(await this.text());
|
96250
|
-
for (const [
|
96251
|
-
formData.append(
|
96255
|
+
for (const [name2, value2] of parameters) {
|
96256
|
+
formData.append(name2, value2);
|
96252
96257
|
}
|
96253
96258
|
return formData;
|
96254
96259
|
}
|
@@ -96429,16 +96434,16 @@ var writeToStream = async (dest, { body }) => {
|
|
96429
96434
|
// node_modules/node-fetch/src/headers.js
|
96430
96435
|
var import_node_util2 = require("node:util");
|
96431
96436
|
var import_node_http = __toESM(require("node:http"), 1);
|
96432
|
-
var validateHeaderName = typeof import_node_http.default.validateHeaderName === "function" ? import_node_http.default.validateHeaderName : (
|
96433
|
-
if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(
|
96434
|
-
const error = new TypeError(`Header name must be a valid HTTP token [${
|
96437
|
+
var validateHeaderName = typeof import_node_http.default.validateHeaderName === "function" ? import_node_http.default.validateHeaderName : (name2) => {
|
96438
|
+
if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(name2)) {
|
96439
|
+
const error = new TypeError(`Header name must be a valid HTTP token [${name2}]`);
|
96435
96440
|
Object.defineProperty(error, "code", { value: "ERR_INVALID_HTTP_TOKEN" });
|
96436
96441
|
throw error;
|
96437
96442
|
}
|
96438
96443
|
};
|
96439
|
-
var validateHeaderValue = typeof import_node_http.default.validateHeaderValue === "function" ? import_node_http.default.validateHeaderValue : (
|
96444
|
+
var validateHeaderValue = typeof import_node_http.default.validateHeaderValue === "function" ? import_node_http.default.validateHeaderValue : (name2, value2) => {
|
96440
96445
|
if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(value2)) {
|
96441
|
-
const error = new TypeError(`Invalid character in header content ["${
|
96446
|
+
const error = new TypeError(`Invalid character in header content ["${name2}"]`);
|
96442
96447
|
Object.defineProperty(error, "code", { value: "ERR_INVALID_CHAR" });
|
96443
96448
|
throw error;
|
96444
96449
|
}
|
@@ -96454,8 +96459,8 @@ var Headers = class _Headers extends URLSearchParams {
|
|
96454
96459
|
let result2 = [];
|
96455
96460
|
if (init3 instanceof _Headers) {
|
96456
96461
|
const raw = init3.raw();
|
96457
|
-
for (const [
|
96458
|
-
result2.push(...values2.map((value2) => [
|
96462
|
+
for (const [name2, values2] of Object.entries(raw)) {
|
96463
|
+
result2.push(...values2.map((value2) => [name2, value2]));
|
96459
96464
|
}
|
96460
96465
|
} else if (init3 == null) {
|
96461
96466
|
} else if (typeof init3 === "object" && !import_node_util2.types.isBoxedPrimitive(init3)) {
|
@@ -96481,10 +96486,10 @@ var Headers = class _Headers extends URLSearchParams {
|
|
96481
96486
|
} else {
|
96482
96487
|
throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");
|
96483
96488
|
}
|
96484
|
-
result2 = result2.length > 0 ? result2.map(([
|
96485
|
-
validateHeaderName(
|
96486
|
-
validateHeaderValue(
|
96487
|
-
return [String(
|
96489
|
+
result2 = result2.length > 0 ? result2.map(([name2, value2]) => {
|
96490
|
+
validateHeaderName(name2);
|
96491
|
+
validateHeaderValue(name2, String(value2));
|
96492
|
+
return [String(name2).toLowerCase(), String(value2)];
|
96488
96493
|
}) : void 0;
|
96489
96494
|
super(result2);
|
96490
96495
|
return new Proxy(this, {
|
@@ -96492,23 +96497,23 @@ var Headers = class _Headers extends URLSearchParams {
|
|
96492
96497
|
switch (p) {
|
96493
96498
|
case "append":
|
96494
96499
|
case "set":
|
96495
|
-
return (
|
96496
|
-
validateHeaderName(
|
96497
|
-
validateHeaderValue(
|
96500
|
+
return (name2, value2) => {
|
96501
|
+
validateHeaderName(name2);
|
96502
|
+
validateHeaderValue(name2, String(value2));
|
96498
96503
|
return URLSearchParams.prototype[p].call(
|
96499
96504
|
target,
|
96500
|
-
String(
|
96505
|
+
String(name2).toLowerCase(),
|
96501
96506
|
String(value2)
|
96502
96507
|
);
|
96503
96508
|
};
|
96504
96509
|
case "delete":
|
96505
96510
|
case "has":
|
96506
96511
|
case "getAll":
|
96507
|
-
return (
|
96508
|
-
validateHeaderName(
|
96512
|
+
return (name2) => {
|
96513
|
+
validateHeaderName(name2);
|
96509
96514
|
return URLSearchParams.prototype[p].call(
|
96510
96515
|
target,
|
96511
|
-
String(
|
96516
|
+
String(name2).toLowerCase()
|
96512
96517
|
);
|
96513
96518
|
};
|
96514
96519
|
case "keys":
|
@@ -96528,33 +96533,33 @@ var Headers = class _Headers extends URLSearchParams {
|
|
96528
96533
|
toString() {
|
96529
96534
|
return Object.prototype.toString.call(this);
|
96530
96535
|
}
|
96531
|
-
get(
|
96532
|
-
const values2 = this.getAll(
|
96536
|
+
get(name2) {
|
96537
|
+
const values2 = this.getAll(name2);
|
96533
96538
|
if (values2.length === 0) {
|
96534
96539
|
return null;
|
96535
96540
|
}
|
96536
96541
|
let value2 = values2.join(", ");
|
96537
|
-
if (/^content-encoding$/i.test(
|
96542
|
+
if (/^content-encoding$/i.test(name2)) {
|
96538
96543
|
value2 = value2.toLowerCase();
|
96539
96544
|
}
|
96540
96545
|
return value2;
|
96541
96546
|
}
|
96542
96547
|
forEach(callback, thisArg = void 0) {
|
96543
|
-
for (const
|
96544
|
-
Reflect.apply(callback, thisArg, [this.get(
|
96548
|
+
for (const name2 of this.keys()) {
|
96549
|
+
Reflect.apply(callback, thisArg, [this.get(name2), name2, this]);
|
96545
96550
|
}
|
96546
96551
|
}
|
96547
96552
|
*values() {
|
96548
|
-
for (const
|
96549
|
-
yield this.get(
|
96553
|
+
for (const name2 of this.keys()) {
|
96554
|
+
yield this.get(name2);
|
96550
96555
|
}
|
96551
96556
|
}
|
96552
96557
|
/**
|
96553
96558
|
* @type {() => IterableIterator<[string, string]>}
|
96554
96559
|
*/
|
96555
96560
|
*entries() {
|
96556
|
-
for (const
|
96557
|
-
yield [
|
96561
|
+
for (const name2 of this.keys()) {
|
96562
|
+
yield [name2, this.get(name2)];
|
96558
96563
|
}
|
96559
96564
|
}
|
96560
96565
|
[Symbol.iterator]() {
|
@@ -96600,10 +96605,10 @@ function fromRawHeaders(headers = []) {
|
|
96600
96605
|
result2.push(array.slice(index, index + 2));
|
96601
96606
|
}
|
96602
96607
|
return result2;
|
96603
|
-
}, []).filter(([
|
96608
|
+
}, []).filter(([name2, value2]) => {
|
96604
96609
|
try {
|
96605
|
-
validateHeaderName(
|
96606
|
-
validateHeaderValue(
|
96610
|
+
validateHeaderName(name2);
|
96611
|
+
validateHeaderValue(name2, String(value2));
|
96607
96612
|
return true;
|
96608
96613
|
} catch {
|
96609
96614
|
return false;
|
@@ -97208,8 +97213,8 @@ async function fetch2(url, options_) {
|
|
97208
97213
|
referrerPolicy: request.referrerPolicy
|
97209
97214
|
};
|
97210
97215
|
if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
|
97211
|
-
for (const
|
97212
|
-
requestOptions.headers.delete(
|
97216
|
+
for (const name2 of ["authorization", "www-authenticate", "cookie", "cookie2"]) {
|
97217
|
+
requestOptions.headers.delete(name2);
|
97213
97218
|
}
|
97214
97219
|
}
|
97215
97220
|
if (response_.statusCode !== 303 && request.body && options_.body instanceof import_node_stream3.default.Readable) {
|
@@ -97388,14 +97393,14 @@ function github(repo) {
|
|
97388
97393
|
return "https://github.com/" + repo.owner + "/" + repo.name + "/archive/" + repo.branch + ".zip";
|
97389
97394
|
}
|
97390
97395
|
function normalize4(string) {
|
97391
|
-
let [owner,
|
97396
|
+
let [owner, name2] = string.split("/");
|
97392
97397
|
let branch = "master";
|
97393
|
-
if (
|
97394
|
-
[
|
97398
|
+
if (name2.includes("#")) {
|
97399
|
+
[name2, branch] = name2.split("#");
|
97395
97400
|
}
|
97396
97401
|
return {
|
97397
97402
|
owner,
|
97398
|
-
name,
|
97403
|
+
name: name2,
|
97399
97404
|
branch
|
97400
97405
|
};
|
97401
97406
|
}
|
@@ -97649,44 +97654,44 @@ var EpicPlugin = class extends import_imdone_api5.default {
|
|
97649
97654
|
this.addEpic(isEpicMeta, task);
|
97650
97655
|
}
|
97651
97656
|
}
|
97652
|
-
initEpic(
|
97653
|
-
if (!this.epics[
|
97654
|
-
this.epics[
|
97657
|
+
initEpic(name2) {
|
97658
|
+
if (!this.epics[name2]) {
|
97659
|
+
this.epics[name2] = {
|
97655
97660
|
items: {}
|
97656
97661
|
};
|
97657
97662
|
}
|
97658
97663
|
}
|
97659
|
-
addEpic(
|
97660
|
-
this.initEpic(
|
97661
|
-
this.epics[
|
97664
|
+
addEpic(name2, task) {
|
97665
|
+
this.initEpic(name2);
|
97666
|
+
this.epics[name2].epic = task;
|
97662
97667
|
}
|
97663
|
-
addEpicItem(
|
97668
|
+
addEpicItem(name2, task) {
|
97664
97669
|
const list2 = task.list;
|
97665
|
-
this.initEpic(
|
97666
|
-
if (!this.getEpicItemsInList(
|
97667
|
-
if (this.getEpicItemsInList(
|
97668
|
-
this.epics[
|
97670
|
+
this.initEpic(name2);
|
97671
|
+
if (!this.getEpicItemsInList(name2, list2)) this.epics[name2].items[list2] = [];
|
97672
|
+
if (this.getEpicItemsInList(name2, list2).find((t2) => t2.id === task.id)) return;
|
97673
|
+
this.epics[name2].items[list2].push(task);
|
97669
97674
|
}
|
97670
97675
|
get epicNames() {
|
97671
97676
|
return Object.keys(this.epics);
|
97672
97677
|
}
|
97673
|
-
getEpic(
|
97674
|
-
return this.epics[
|
97678
|
+
getEpic(name2) {
|
97679
|
+
return this.epics[name2].epic;
|
97675
97680
|
}
|
97676
|
-
getEpicItems(
|
97677
|
-
return this.epics[
|
97681
|
+
getEpicItems(name2) {
|
97682
|
+
return this.epics[name2].items;
|
97678
97683
|
}
|
97679
|
-
getEpicItemsInList(
|
97680
|
-
return this.epics[
|
97684
|
+
getEpicItemsInList(name2, list2) {
|
97685
|
+
return this.epics[name2].items[list2];
|
97681
97686
|
}
|
97682
|
-
getEpicLists(
|
97683
|
-
return Object.keys(this.getEpicItems(
|
97687
|
+
getEpicLists(name2) {
|
97688
|
+
return Object.keys(this.getEpicItems(name2));
|
97684
97689
|
}
|
97685
|
-
isListHidden(
|
97686
|
-
return lists.find((list2) => list2.name ===
|
97690
|
+
isListHidden(name2, lists) {
|
97691
|
+
return lists.find((list2) => list2.name === name2).hidden;
|
97687
97692
|
}
|
97688
|
-
isListIgnored(
|
97689
|
-
return lists.find((list2) => list2.name ===
|
97693
|
+
isListIgnored(name2, lists) {
|
97694
|
+
return lists.find((list2) => list2.name === name2).ignore;
|
97690
97695
|
}
|
97691
97696
|
updateCardMD(lists) {
|
97692
97697
|
this.epicNames.forEach((epicId) => {
|
@@ -97901,14 +97906,14 @@ var PluginManager = class extends import_events4.default {
|
|
97901
97906
|
delete this.pluginsMap[pluginClassName];
|
97902
97907
|
this.emit("plugin-uninstalled", pluginName);
|
97903
97908
|
}
|
97904
|
-
async installPlugin({ name, version: version2 }) {
|
97909
|
+
async installPlugin({ name: name2, version: version2 }) {
|
97905
97910
|
if (!await exists2(this.pluginPath))
|
97906
97911
|
await mkdir(this.pluginPath);
|
97907
|
-
const installPath = import_path14.default.join(this.pluginPath,
|
97912
|
+
const installPath = import_path14.default.join(this.pluginPath, name2);
|
97908
97913
|
await downloadPlugin(version2, installPath);
|
97909
|
-
logger.log(`Done installing ${
|
97914
|
+
logger.log(`Done installing ${name2}`);
|
97910
97915
|
await this.loadPlugin(installPath);
|
97911
|
-
this.emit("plugin-installed",
|
97916
|
+
this.emit("plugin-installed", name2);
|
97912
97917
|
}
|
97913
97918
|
async loadPlugins() {
|
97914
97919
|
for (const PluginClass of this.defaultPlugins) {
|
@@ -97935,7 +97940,7 @@ var PluginManager = class extends import_events4.default {
|
|
97935
97940
|
const configPluginNames = Object.keys(this.project.config.plugins);
|
97936
97941
|
if (!configPluginNames) return;
|
97937
97942
|
const installedPluginNames = Object.keys(this.pluginsMap);
|
97938
|
-
const pluginsNotInstalled = configPluginNames.filter((
|
97943
|
+
const pluginsNotInstalled = configPluginNames.filter((name2) => !installedPluginNames.includes(name2));
|
97939
97944
|
for (const pluginName of pluginsNotInstalled) {
|
97940
97945
|
const plugin = availablePlugins.find((p) => p.name === pluginName);
|
97941
97946
|
if (plugin && plugin.name) await this.installPlugin(plugin);
|
@@ -97969,20 +97974,20 @@ var PluginManager = class extends import_events4.default {
|
|
97969
97974
|
}
|
97970
97975
|
}
|
97971
97976
|
async createPlugin(pluginClass, path13 = void 0) {
|
97972
|
-
const
|
97973
|
-
if (!
|
97977
|
+
const name2 = pluginClass.pluginName;
|
97978
|
+
if (!name2) {
|
97974
97979
|
throw new Error(`${pluginClass.name} is not a plugin`);
|
97975
97980
|
}
|
97976
97981
|
const pluginInstance = new pluginClass(this.project);
|
97977
97982
|
const packageInfo = await this.getPackageInfo(path13);
|
97978
97983
|
let info3 = {
|
97979
|
-
name,
|
97984
|
+
name: name2,
|
97980
97985
|
...packageInfo
|
97981
97986
|
};
|
97982
97987
|
pluginInstance.getSettings = () => {
|
97983
|
-
return this.getPluginSettings(
|
97988
|
+
return this.getPluginSettings(name2);
|
97984
97989
|
};
|
97985
|
-
this.pluginsMap[
|
97990
|
+
this.pluginsMap[name2] = {
|
97986
97991
|
pluginInstance,
|
97987
97992
|
pluginClass,
|
97988
97993
|
info: info3
|
@@ -98021,24 +98026,24 @@ var PluginManager = class extends import_events4.default {
|
|
98021
98026
|
return { ...info3, schema };
|
98022
98027
|
});
|
98023
98028
|
}
|
98024
|
-
disablePlugin(
|
98025
|
-
delete this.pluginsMap[
|
98029
|
+
disablePlugin(name2) {
|
98030
|
+
delete this.pluginsMap[name2];
|
98026
98031
|
}
|
98027
98032
|
getPluginName(pluginInstance) {
|
98028
98033
|
return Object.keys(this.pluginsMap).find(
|
98029
98034
|
(pluginName) => this.getPlugin(pluginName).pluginInstance === pluginInstance
|
98030
98035
|
);
|
98031
98036
|
}
|
98032
|
-
getPluginInstance(
|
98033
|
-
const plugin = this.getPlugin(
|
98034
|
-
if (!plugin) throw new Error(`Plugin ${
|
98037
|
+
getPluginInstance(name2) {
|
98038
|
+
const plugin = this.getPlugin(name2);
|
98039
|
+
if (!plugin) throw new Error(`Plugin ${name2} not found`);
|
98035
98040
|
return plugin.pluginInstance;
|
98036
98041
|
}
|
98037
|
-
getPlugin(
|
98038
|
-
return this.pluginsMap[
|
98042
|
+
getPlugin(name2) {
|
98043
|
+
return this.pluginsMap[name2];
|
98039
98044
|
}
|
98040
|
-
getPluginSettings(
|
98041
|
-
return this.project.config.plugins[
|
98045
|
+
getPluginSettings(name2) {
|
98046
|
+
return this.project.config.plugins[name2] || {};
|
98042
98047
|
}
|
98043
98048
|
pluginError(method, pluginInstance, error) {
|
98044
98049
|
logger.warn(
|
@@ -98488,7 +98493,7 @@ var WorkerProject = class extends import_project.Project {
|
|
98488
98493
|
const tags = [];
|
98489
98494
|
cards.forEach((card) => {
|
98490
98495
|
card.allTags.forEach((tag) => {
|
98491
|
-
let foundTag = tags.find(({ name }) => tag ===
|
98496
|
+
let foundTag = tags.find(({ name: name2 }) => tag === name2);
|
98492
98497
|
if (!foundTag) {
|
98493
98498
|
foundTag = { name: tag, count: 1 };
|
98494
98499
|
tags.push(foundTag);
|
@@ -98903,11 +98908,11 @@ var WorkerProject = class extends import_project.Project {
|
|
98903
98908
|
});
|
98904
98909
|
});
|
98905
98910
|
}
|
98906
|
-
installPlugin({ name, version: version2 }) {
|
98907
|
-
return this.pluginManager.installPlugin({ name, version: version2 });
|
98911
|
+
installPlugin({ name: name2, version: version2 }) {
|
98912
|
+
return this.pluginManager.installPlugin({ name: name2, version: version2 });
|
98908
98913
|
}
|
98909
|
-
uninstallPlugin(
|
98910
|
-
return this.pluginManager.uninstallPlugin(
|
98914
|
+
uninstallPlugin(name2) {
|
98915
|
+
return this.pluginManager.uninstallPlugin(name2);
|
98911
98916
|
}
|
98912
98917
|
async refresh() {
|
98913
98918
|
await this.repo.refresh();
|
@@ -98969,12 +98974,12 @@ async function isImdoneProject(projectPath) {
|
|
98969
98974
|
return true;
|
98970
98975
|
}
|
98971
98976
|
|
98972
|
-
// src/adapters/imdone.
|
98977
|
+
// src/adapters/imdone.mjs
|
98973
98978
|
var import_promises7 = require("fs/promises");
|
98974
98979
|
var import_path18 = __toESM(require("path"), 1);
|
98975
98980
|
|
98976
|
-
// src/adapters/imdone-config-template.
|
98977
|
-
function getImdoneConfigTemplate({ name, jiraUrl, jql, jiraProjectKey }) {
|
98981
|
+
// src/adapters/imdone-config-template.mjs
|
98982
|
+
function getImdoneConfigTemplate({ name: name2, jiraUrl, jql, jiraProjectKey }) {
|
98978
98983
|
return `keepEmptyPriority: true
|
98979
98984
|
code:
|
98980
98985
|
include_lists:
|
@@ -99028,7 +99033,7 @@ settings:
|
|
99028
99033
|
journalTemplate: null
|
99029
99034
|
markdownOnly: false
|
99030
99035
|
kudosProbability: 0.33
|
99031
|
-
name: ${
|
99036
|
+
name: ${name2}
|
99032
99037
|
views: []
|
99033
99038
|
cards:
|
99034
99039
|
colors: []
|
@@ -99054,15 +99059,15 @@ settings:
|
|
99054
99059
|
`;
|
99055
99060
|
}
|
99056
99061
|
|
99057
|
-
// ../main.
|
99058
|
-
var import_imdone_api8 = __toESM(require_plugin2());
|
99059
|
-
var import_settings = __toESM(require_settings());
|
99062
|
+
// ../main.mjs
|
99063
|
+
var import_imdone_api8 = __toESM(require_plugin2(), 1);
|
99064
|
+
var import_settings = __toESM(require_settings(), 1);
|
99060
99065
|
|
99061
|
-
// ../src/adapters/env.
|
99062
|
-
var import_dotenv = __toESM(require_main());
|
99063
|
-
var import_node_path5 = __toESM(require("node:path"));
|
99066
|
+
// ../src/adapters/env.mjs
|
99067
|
+
var import_dotenv = __toESM(require_main(), 1);
|
99068
|
+
var import_node_path5 = __toESM(require("node:path"), 1);
|
99064
99069
|
|
99065
|
-
// ../src/adapters/dotEnvTemplate.
|
99070
|
+
// ../src/adapters/dotEnvTemplate.mjs
|
99066
99071
|
var initialContent = `
|
99067
99072
|
# Jira environment variables
|
99068
99073
|
|
@@ -99071,7 +99076,7 @@ var initialContent = `
|
|
99071
99076
|
# JIRA_TOKEN="<your personal access token>"
|
99072
99077
|
`;
|
99073
99078
|
|
99074
|
-
// ../src/adapters/env.
|
99079
|
+
// ../src/adapters/env.mjs
|
99075
99080
|
var import_promises6 = require("node:fs/promises");
|
99076
99081
|
function envPath(basePath = process.cwd()) {
|
99077
99082
|
return import_node_path5.default.join(basePath, ".env");
|
@@ -99101,8 +99106,8 @@ ${key2}="${value2}"
|
|
99101
99106
|
await (0, import_promises6.appendFile)(envPath(basePath), envContent, "utf8");
|
99102
99107
|
}
|
99103
99108
|
|
99104
|
-
// ../src/adapters/fetch.
|
99105
|
-
var import_https2 = __toESM(require("https"));
|
99109
|
+
// ../src/adapters/fetch.mjs
|
99110
|
+
var import_https2 = __toESM(require("https"), 1);
|
99106
99111
|
async function fetch3(url, opts) {
|
99107
99112
|
const { method, headers, body, debug: debug6 = () => {
|
99108
99113
|
} } = opts;
|
@@ -99244,7 +99249,7 @@ var Logger2 = class {
|
|
99244
99249
|
};
|
99245
99250
|
var logger2 = new Logger2();
|
99246
99251
|
|
99247
|
-
// ../src/adapters/jira.
|
99252
|
+
// ../src/adapters/jira.mjs
|
99248
99253
|
function getJiraUrl(baseUrl, key2) {
|
99249
99254
|
return `${baseUrl}/browse/${key2}`;
|
99250
99255
|
}
|
@@ -99255,7 +99260,7 @@ function sanitizeString(dirtyString) {
|
|
99255
99260
|
const cleanedString = dirtyString.replace(nonPrintingChars, "").replace(otherNonPrintingChars, "");
|
99256
99261
|
return cleanedString;
|
99257
99262
|
}
|
99258
|
-
async function
|
99263
|
+
async function getJiraAdapter({ _fetch = fetch3, projectKeys, issueType, jiraUrl }) {
|
99259
99264
|
const _issueType = issueType;
|
99260
99265
|
const localFetch = _fetch;
|
99261
99266
|
const {
|
@@ -99305,6 +99310,7 @@ async function jiraAdapter({ _fetch = fetch3, projectKeys, issueType, jiraUrl })
|
|
99305
99310
|
if (!projectKeys) throw new Error("projectKeys is not set");
|
99306
99311
|
if (!_issueType) throw new Error("issueType is not set");
|
99307
99312
|
if (!localFetch || !(localFetch instanceof Function)) throw new Error("localFetch is not set");
|
99313
|
+
return true;
|
99308
99314
|
}
|
99309
99315
|
async function getRequest(url) {
|
99310
99316
|
const result2 = await localFetch(url, {
|
@@ -99361,12 +99367,12 @@ async function jiraAdapter({ _fetch = fetch3, projectKeys, issueType, jiraUrl })
|
|
99361
99367
|
const result2 = await getRequest(url);
|
99362
99368
|
return result2.body;
|
99363
99369
|
}
|
99364
|
-
async function updateTask({ key: key2, title, description, issueType: issueType2 = _issueType, labels = void 0 }) {
|
99365
|
-
logger2.debug("updating task", { key: key2, title, description, labels });
|
99370
|
+
async function updateTask({ key: key2, title, description: description2, issueType: issueType2 = _issueType, labels = void 0 }) {
|
99371
|
+
logger2.debug("updating task", { key: key2, title, description: description2, labels });
|
99366
99372
|
const body = {
|
99367
99373
|
fields: {
|
99368
99374
|
summary: title,
|
99369
|
-
description,
|
99375
|
+
description: description2,
|
99370
99376
|
labels,
|
99371
99377
|
issuetype: {
|
99372
99378
|
name: issueType2
|
@@ -99378,14 +99384,14 @@ async function jiraAdapter({ _fetch = fetch3, projectKeys, issueType, jiraUrl })
|
|
99378
99384
|
logger2.debug("Result from jira update:", result2);
|
99379
99385
|
return { key: key2, url, body };
|
99380
99386
|
}
|
99381
|
-
async function createTask({ title, description, issueType: issueType2 = _issueType, labels = void 0 }) {
|
99387
|
+
async function createTask({ title, description: description2, issueType: issueType2 = _issueType, labels = void 0 }) {
|
99382
99388
|
const body = {
|
99383
99389
|
fields: {
|
99384
99390
|
project: {
|
99385
99391
|
key: projectKeys[0]
|
99386
99392
|
},
|
99387
99393
|
summary: title,
|
99388
|
-
description,
|
99394
|
+
description: description2,
|
99389
99395
|
labels,
|
99390
99396
|
issuetype: {
|
99391
99397
|
name: issueType2
|
@@ -99420,7 +99426,7 @@ async function jiraAdapter({ _fetch = fetch3, projectKeys, issueType, jiraUrl })
|
|
99420
99426
|
};
|
99421
99427
|
}
|
99422
99428
|
|
99423
|
-
// ../src/adapters/markdown.
|
99429
|
+
// ../src/adapters/markdown.mjs
|
99424
99430
|
function convertMarkdownToJira(markdown) {
|
99425
99431
|
markdown = markdown.replace(/\[ \]/g, "(x)").replace(/\[x\]/g, "(/)");
|
99426
99432
|
markdown = markdown.replace(/^(\s*)- /gm, "$1* ");
|
@@ -99514,8 +99520,8 @@ ${singleBarred.replace(/\|[^|]+/g, "| --- ")}`;
|
|
99514
99520
|
}).replace(/^[ \t]*\|/gm, "|");
|
99515
99521
|
}
|
99516
99522
|
|
99517
|
-
// ../src/adapters/date-time.
|
99518
|
-
var import_moment3 = __toESM(require_moment2());
|
99523
|
+
// ../src/adapters/date-time.mjs
|
99524
|
+
var import_moment3 = __toESM(require_moment2(), 1);
|
99519
99525
|
var innerNoDST2 = false;
|
99520
99526
|
function getIsoDateWithOffset2(date) {
|
99521
99527
|
const momentDate = (0, import_moment3.default)(date);
|
@@ -99526,7 +99532,7 @@ function getIsoDateWithOffset2(date) {
|
|
99526
99532
|
return momentDate.format();
|
99527
99533
|
}
|
99528
99534
|
|
99529
|
-
// ../src/adapters/imdone-jira.
|
99535
|
+
// ../src/adapters/imdone-jira.mjs
|
99530
99536
|
function getJqlForExistingJiraTasks({ project: project2, jql = "" }) {
|
99531
99537
|
const allExistingJiraTasks = project2.getAllCards("meta.jira=*");
|
99532
99538
|
if (allExistingJiraTasks.length > 0) {
|
@@ -99540,8 +99546,8 @@ async function getExistingCards({ project: project2, jiraIssues }) {
|
|
99540
99546
|
return project2.getAllCards(filter3);
|
99541
99547
|
}
|
99542
99548
|
|
99543
|
-
// ../src/usecases/jira.
|
99544
|
-
var import_path17 = __toESM(require("path"));
|
99549
|
+
// ../src/usecases/jira.mjs
|
99550
|
+
var import_path17 = __toESM(require("path"), 1);
|
99545
99551
|
|
99546
99552
|
// ../node_modules/imdone-core/lib/adapters/file-gateway.js
|
99547
99553
|
var import_path16 = __toESM(require("path"), 1);
|
@@ -99564,26 +99570,26 @@ function sanitizeFileName2(fileName, replaceSpacesWith) {
|
|
99564
99570
|
return fileName;
|
99565
99571
|
}
|
99566
99572
|
|
99567
|
-
// ../src/usecases/jira.
|
99568
|
-
async function copyJiraMarkupToClipboard({ project: project2,
|
99573
|
+
// ../src/usecases/jira.mjs
|
99574
|
+
async function copyJiraMarkupToClipboard({ project: project2, jiraAdapter = getJiraAdapter(), task }) {
|
99569
99575
|
if (noTaskSelected(task)) return;
|
99570
|
-
const { getTask } =
|
99576
|
+
const { getTask } = jiraAdapter;
|
99571
99577
|
const key2 = task.meta.jira;
|
99572
|
-
const { description } = await getTask(key2);
|
99573
|
-
copyToClipboard(project2,
|
99578
|
+
const { description: description2 } = await getTask(key2);
|
99579
|
+
copyToClipboard(project2, description2, `"${key2}" copied to clipboard`);
|
99574
99580
|
}
|
99575
|
-
async function showStatuses({ project: project2,
|
99576
|
-
const statuses = await
|
99581
|
+
async function showStatuses({ project: project2, jiraAdapter = getJiraAdapter() }) {
|
99582
|
+
const statuses = await jiraAdapter.getStatuses();
|
99577
99583
|
project2.copyToClipboard(JSON.stringify(statuses, null, 2), "Jira statuses copied to clipboard");
|
99578
99584
|
}
|
99579
|
-
async function updateProjectFromJira({ project: project2, jql = "", defaultList, path: path13,
|
99580
|
-
logger2.debug("Updating project from Jira", { jql, defaultList, path: path13,
|
99585
|
+
async function updateProjectFromJira({ project: project2, jql = "", defaultList, path: path13, jiraAdapter = getJiraAdapter(), statuses }) {
|
99586
|
+
logger2.debug("Updating project from Jira", { jql, defaultList, path: path13, jiraAdapter, statuses });
|
99581
99587
|
if (!jql) {
|
99582
99588
|
toast(project2, "No JQL query defined in plugin settings. Updating existing jira tasks only.");
|
99583
99589
|
}
|
99584
99590
|
jql = getJqlForExistingJiraTasks({ project: project2, jql });
|
99585
99591
|
snackBar(project2, `Updating project from Jira with JQL: ${jql}`);
|
99586
|
-
const { getTasks } =
|
99592
|
+
const { getTasks } = jiraAdapter;
|
99587
99593
|
const jiraIssues = await getTasks(jql);
|
99588
99594
|
const existingCards = await getExistingCards({ project: project2, jiraIssues });
|
99589
99595
|
logger2.debug("Existing cards:", existingCards.map((card) => card.meta.jira[0]));
|
@@ -99594,7 +99600,7 @@ async function updateProjectFromJira({ project: project2, jql = "", defaultList,
|
|
99594
99600
|
const jiraIssue = jiraIssues.find((issue) => issue.id === card.meta.jira[0]);
|
99595
99601
|
try {
|
99596
99602
|
if (jiraIssue) {
|
99597
|
-
const jiraUrl =
|
99603
|
+
const jiraUrl = jiraAdapter.getTaskUrl(jiraIssue.id);
|
99598
99604
|
return await updateImdoneTask({ project: project2, statuses, task: card, jiraUrl, ...jiraIssue });
|
99599
99605
|
}
|
99600
99606
|
} catch (e2) {
|
@@ -99605,16 +99611,16 @@ async function updateProjectFromJira({ project: project2, jql = "", defaultList,
|
|
99605
99611
|
}));
|
99606
99612
|
snackBar(project2, `Updated ${existingCards.length} tasks in the project`);
|
99607
99613
|
const added = await Promise.all(newIssues.map(async (issue) => {
|
99608
|
-
const { id, title, description, created, updated, issueType, labels, status: status2 } = issue;
|
99614
|
+
const { id, title, description: description2, created, updated, issueType, labels, status: status2 } = issue;
|
99609
99615
|
const filePath = path13 && import_path17.default.join(path13, sanitizeFileName2(`${id}-${title}.md`, "_"));
|
99610
|
-
const content = mapJiraFieldsToContent({ title, description });
|
99616
|
+
const content = mapJiraFieldsToContent({ title, description: description2 });
|
99611
99617
|
const tags = labels || [];
|
99612
99618
|
const meta = mapJiraFieldsToMeta({
|
99613
99619
|
meta: {
|
99614
99620
|
jira: id,
|
99615
99621
|
created: getIsoDateWithOffset2()
|
99616
99622
|
},
|
99617
|
-
jiraUrl:
|
99623
|
+
jiraUrl: jiraAdapter.getTaskUrl(id),
|
99618
99624
|
issueType,
|
99619
99625
|
status: status2.name,
|
99620
99626
|
statusId: status2.id,
|
@@ -99637,17 +99643,17 @@ ${content}
|
|
99637
99643
|
snackBar(project2, "Project updated from Jira");
|
99638
99644
|
return { existing, added };
|
99639
99645
|
}
|
99640
|
-
async function updateTaskFromJira({ project: project2, task,
|
99646
|
+
async function updateTaskFromJira({ project: project2, task, jiraAdapter = getJiraAdapter(), statuses }) {
|
99641
99647
|
if (noTaskSelected(task)) return;
|
99642
99648
|
const key2 = task.meta.jira;
|
99643
99649
|
if (!key2) return toast(project2, "Card is not published to Jira");
|
99644
99650
|
toast(project2, `Updating card from Jira: ${key2}`);
|
99645
|
-
const { getTask } =
|
99646
|
-
const { title, description, created, updated, issueType, labels, status: status2, _jiraTask } = await getTask(key2);
|
99651
|
+
const { getTask } = jiraAdapter;
|
99652
|
+
const { title, description: description2, created, updated, issueType, labels, status: status2, _jiraTask } = await getTask(key2);
|
99647
99653
|
if (process.env.JIRA_DEBUG === "true") project2.copyToClipboard(JSON.stringify(_jiraTask, null, 2), "Jira task copied to clipboard");
|
99648
99654
|
try {
|
99649
|
-
const jiraUrl =
|
99650
|
-
return await updateImdoneTask({ project: project2, task, title, description, created, updated, issueType, labels, status: status2, statuses, jiraUrl });
|
99655
|
+
const jiraUrl = jiraAdapter.getTaskUrl(key2);
|
99656
|
+
return await updateImdoneTask({ project: project2, task, title, description: description2, created, updated, issueType, labels, status: status2, statuses, jiraUrl });
|
99651
99657
|
toast(project2, `${key2} - "${title}" updated from Jira.`);
|
99652
99658
|
} catch (e2) {
|
99653
99659
|
logger2.error(e2);
|
@@ -99655,26 +99661,26 @@ async function updateTaskFromJira({ project: project2, task, adapter, statuses }
|
|
99655
99661
|
project2.copyToClipboard(`${e2.message}
|
99656
99662
|
${e2.stack}
|
99657
99663
|
|
99658
|
-
${
|
99664
|
+
${description2}`, "Error updating card from Jira. Copied to clipboard.");
|
99659
99665
|
}
|
99660
99666
|
}
|
99661
|
-
async function publishJiraTask({ project: project2, task,
|
99667
|
+
async function publishJiraTask({ project: project2, task, jiraAdapter = getJiraAdapter() }) {
|
99662
99668
|
logger2.debug("Publishing task to Jira", { task });
|
99663
99669
|
if (noTaskSelected(task)) return;
|
99664
99670
|
const labels = task.allTags.length > 0 ? task.allTags : void 0;
|
99665
|
-
const key2 = task.meta.jira;
|
99666
|
-
const issueType = task.meta
|
99671
|
+
const key2 = task.meta?.jira && task.meta?.jira[0];
|
99672
|
+
const issueType = task.meta?.issueType && task.meta?.issueType[0];
|
99667
99673
|
const title = task.text;
|
99668
|
-
const { createTask, updateTask } =
|
99669
|
-
const publishTask = key2 ?
|
99674
|
+
const { createTask, updateTask } = jiraAdapter;
|
99675
|
+
const publishTask = key2 === "true" ? createTask : updateTask;
|
99670
99676
|
const taskText = key2 ? `${key2} - "${task.text}"` : task.text;
|
99671
99677
|
toast(project2, `Publishing ${taskText} in Jira`);
|
99672
99678
|
try {
|
99673
|
-
const
|
99679
|
+
const description2 = convertTaskToJiraMarkup(task);
|
99674
99680
|
const result2 = await publishTask({
|
99675
99681
|
key: key2,
|
99676
99682
|
title,
|
99677
|
-
description,
|
99683
|
+
description: description2,
|
99678
99684
|
issueType,
|
99679
99685
|
labels
|
99680
99686
|
});
|
@@ -99689,7 +99695,7 @@ async function publishJiraTask({ project: project2, task, adapter }) {
|
|
99689
99695
|
if (task?.meta?.jiraUrl) {
|
99690
99696
|
await project2.removeMetadata(task, "jiraUrl", task.meta.jiraUrl[0]);
|
99691
99697
|
}
|
99692
|
-
await project2.addMetadata(task, "jiraUrl",
|
99698
|
+
await project2.addMetadata(task, "jiraUrl", jiraAdapter.getTaskUrl(result2.key));
|
99693
99699
|
toast(project2, `${result2.key} published to Jira`);
|
99694
99700
|
return result2;
|
99695
99701
|
} catch (e2) {
|
@@ -99701,7 +99707,7 @@ async function updateImdoneTask({
|
|
99701
99707
|
project: project2,
|
99702
99708
|
task,
|
99703
99709
|
title,
|
99704
|
-
description,
|
99710
|
+
description: description2,
|
99705
99711
|
issueType,
|
99706
99712
|
status: status2,
|
99707
99713
|
created: jiraCreated,
|
@@ -99714,7 +99720,7 @@ async function updateImdoneTask({
|
|
99714
99720
|
throw new Error(`File ${task.relPath} is modified.
|
99715
99721
|
Please commit or stash your changes before updating the task.`);
|
99716
99722
|
}
|
99717
|
-
let content = mapJiraFieldsToContent({ title, description });
|
99723
|
+
let content = mapJiraFieldsToContent({ title, description: description2 });
|
99718
99724
|
const tags = labels || [];
|
99719
99725
|
const context2 = task.context || [];
|
99720
99726
|
const meta = mapJiraFieldsToMeta({
|
@@ -99736,8 +99742,8 @@ Please commit or stash your changes before updating the task.`);
|
|
99736
99742
|
}
|
99737
99743
|
return task;
|
99738
99744
|
}
|
99739
|
-
function mapJiraFieldsToContent({ title, description }) {
|
99740
|
-
let content = convertJiraToMarkdown(
|
99745
|
+
function mapJiraFieldsToContent({ title, description: description2 }) {
|
99746
|
+
let content = convertJiraToMarkdown(description2);
|
99741
99747
|
let contentLines = content.split("\n");
|
99742
99748
|
contentLines.unshift(title);
|
99743
99749
|
return contentLines.join("\n").trim();
|
@@ -99773,7 +99779,7 @@ function noTaskSelected(task) {
|
|
99773
99779
|
return !task ? toast(project, "No card selected") : false;
|
99774
99780
|
}
|
99775
99781
|
|
99776
|
-
// ../main.
|
99782
|
+
// ../main.mjs
|
99777
99783
|
var JiraPlugin = class extends import_imdone_api8.default {
|
99778
99784
|
constructor(project2) {
|
99779
99785
|
super(project2);
|
@@ -99784,13 +99790,13 @@ var JiraPlugin = class extends import_imdone_api8.default {
|
|
99784
99790
|
}
|
99785
99791
|
async init() {
|
99786
99792
|
await initEnv(process.cwd());
|
99787
|
-
this.
|
99793
|
+
this.jiraAdapter = await getJiraAdapter({
|
99788
99794
|
projectKeys: this.projectKeys,
|
99789
99795
|
issueType: this.issueType,
|
99790
99796
|
jiraUrl: this.jiraUrl,
|
99791
99797
|
metadata: this.metadata
|
99792
99798
|
});
|
99793
|
-
const { getIssueTypes } = this.
|
99799
|
+
const { getIssueTypes } = this.jiraAdapter;
|
99794
99800
|
this.issueTypes = await getIssueTypes();
|
99795
99801
|
}
|
99796
99802
|
get jql() {
|
@@ -99849,7 +99855,7 @@ ${task.interpretedContent}`;
|
|
99849
99855
|
}
|
99850
99856
|
getBoardActions() {
|
99851
99857
|
const project2 = this.project;
|
99852
|
-
const
|
99858
|
+
const jiraAdapter = this.jiraAdapter;
|
99853
99859
|
const path13 = this.defaultDirectory;
|
99854
99860
|
const defaultList = this.defaultList;
|
99855
99861
|
const jql = this.jql;
|
@@ -99877,7 +99883,7 @@ ${task.interpretedContent}`;
|
|
99877
99883
|
keys: ["shift+mod+j"],
|
99878
99884
|
icon: "jira",
|
99879
99885
|
async action(task) {
|
99880
|
-
await copyJiraMarkupToClipboard({ project: project2,
|
99886
|
+
await copyJiraMarkupToClipboard({ project: project2, jiraAdapter, task });
|
99881
99887
|
}
|
99882
99888
|
},
|
99883
99889
|
{
|
@@ -99887,7 +99893,7 @@ ${task.interpretedContent}`;
|
|
99887
99893
|
const key2 = self2.getJiraKey(task);
|
99888
99894
|
const url = self2.getJiraUrl(key2);
|
99889
99895
|
if (!url) return;
|
99890
|
-
const jiraTask = await
|
99896
|
+
const jiraTask = await jiraAdapter.getTask(key2);
|
99891
99897
|
project2.copyToClipboard(JSON.stringify(jiraTask, null, 2), "JSON copied to clipboard.");
|
99892
99898
|
}
|
99893
99899
|
},
|
@@ -99895,7 +99901,7 @@ ${task.interpretedContent}`;
|
|
99895
99901
|
title: "Copy jira fields as JSON",
|
99896
99902
|
icon: "jira",
|
99897
99903
|
async action() {
|
99898
|
-
const fields = await
|
99904
|
+
const fields = await jiraAdapter.getFields();
|
99899
99905
|
project2.copyToClipboard(JSON.stringify(fields, null, 2), "Fields JSON copied to clipboard.");
|
99900
99906
|
}
|
99901
99907
|
},
|
@@ -99904,7 +99910,7 @@ ${task.interpretedContent}`;
|
|
99904
99910
|
keys: ["shift+mod+s"],
|
99905
99911
|
icon: "jira",
|
99906
99912
|
async action() {
|
99907
|
-
await showStatuses({ project: project2,
|
99913
|
+
await showStatuses({ project: project2, jiraAdapter });
|
99908
99914
|
}
|
99909
99915
|
},
|
99910
99916
|
{
|
@@ -99913,7 +99919,7 @@ ${task.interpretedContent}`;
|
|
99913
99919
|
keys: ["shift+mod+p"],
|
99914
99920
|
icon: "jira",
|
99915
99921
|
async action(task) {
|
99916
|
-
return await publishJiraTask({ project: project2, task,
|
99922
|
+
return await publishJiraTask({ project: project2, task, jiraAdapter });
|
99917
99923
|
}
|
99918
99924
|
},
|
99919
99925
|
{
|
@@ -99921,7 +99927,7 @@ ${task.interpretedContent}`;
|
|
99921
99927
|
keys: ["shift+mod+u"],
|
99922
99928
|
icon: "jira",
|
99923
99929
|
async action(task) {
|
99924
|
-
await updateTaskFromJira({ project: project2, task,
|
99930
|
+
await updateTaskFromJira({ project: project2, task, jiraAdapter, statuses });
|
99925
99931
|
}
|
99926
99932
|
},
|
99927
99933
|
{
|
@@ -99942,7 +99948,7 @@ ${task.interpretedContent}`;
|
|
99942
99948
|
icon: "jira",
|
99943
99949
|
async action() {
|
99944
99950
|
try {
|
99945
|
-
return await updateProjectFromJira({ project: project2, path: path13, defaultList, jql,
|
99951
|
+
return await updateProjectFromJira({ project: project2, path: path13, defaultList, jql, jiraAdapter, statuses });
|
99946
99952
|
} catch (e2) {
|
99947
99953
|
logger2.error(e2);
|
99948
99954
|
project2.copyToClipboard(`${e2.message}
|
@@ -99992,9 +99998,9 @@ ${e2.stack}`, "Error updating project from Jira. Copied to clipboard.");
|
|
99992
99998
|
}
|
99993
99999
|
};
|
99994
100000
|
|
99995
|
-
// src/adapters/imdone.
|
100001
|
+
// src/adapters/imdone.mjs
|
99996
100002
|
var { CONFIG_FILE_YML: CONFIG_FILE_YML5, IGNORE_FILE: IGNORE_FILE2 } = constants;
|
99997
|
-
|
100003
|
+
function getConfigPath(projectPath) {
|
99998
100004
|
const configPath = import_path18.default.join(projectPath, CONFIG_FILE_YML5);
|
99999
100005
|
return configPath;
|
100000
100006
|
}
|
@@ -100028,17 +100034,18 @@ async function getProject(projectPath, feedback = {}) {
|
|
100028
100034
|
};
|
100029
100035
|
}
|
100030
100036
|
async function initProject(projectPath, {
|
100031
|
-
name,
|
100037
|
+
name: name2,
|
100032
100038
|
jiraUrl,
|
100033
100039
|
jiraProjectKey,
|
100034
100040
|
jql
|
100035
100041
|
}) {
|
100036
100042
|
const configContent = getImdoneConfigTemplate({
|
100037
|
-
name,
|
100043
|
+
name: name2,
|
100038
100044
|
jiraUrl,
|
100039
100045
|
jiraProjectKey,
|
100040
100046
|
jql
|
100041
100047
|
});
|
100048
|
+
console.log(`Initializing backlog in ${projectPath}...`);
|
100042
100049
|
const configPath = getConfigPath(projectPath);
|
100043
100050
|
await preparePathForWriting(configPath);
|
100044
100051
|
await writeFile(configPath, configContent, "utf8");
|
@@ -100051,7 +100058,7 @@ async function appendToImdoneIgnore(projectPath, ignorePath) {
|
|
100051
100058
|
await addAndCommitChanges(projectPath, `Append ${ignorePath} to ${IGNORE_FILE2}`, [IGNORE_FILE2]);
|
100052
100059
|
}
|
100053
100060
|
|
100054
|
-
// src/usecases/headless-pull-from-jira.
|
100061
|
+
// src/usecases/headless-pull-from-jira.mjs
|
100055
100062
|
var dependencies = {
|
100056
100063
|
getProject,
|
100057
100064
|
addAndCommitChanges,
|
@@ -100084,8 +100091,9 @@ async function pullFromJira(projectPath, {
|
|
100084
100091
|
const result2 = await project2.performBoardAction(pullFromJiraAction);
|
100085
100092
|
const projectState = await project2.toImdoneJSON();
|
100086
100093
|
await addAndCommitChanges2(projectPath, "Pull from Jira");
|
100087
|
-
|
100088
|
-
|
100094
|
+
const { conflicted } = changesExist ? await stashPop2(projectPath) : { conflicted: [] };
|
100095
|
+
if (conflicted.length > 0) {
|
100096
|
+
throw new Error(`There are ${conflicted.length} conflicts. Please resolve them before continuing.`);
|
100089
100097
|
}
|
100090
100098
|
await project2.refresh();
|
100091
100099
|
await project2.toImdoneJSON();
|
@@ -100096,7 +100104,7 @@ async function pullFromJira(projectPath, {
|
|
100096
100104
|
}
|
100097
100105
|
}
|
100098
100106
|
|
100099
|
-
// src/usecases/headless-push-to-jira.
|
100107
|
+
// src/usecases/headless-push-to-jira.mjs
|
100100
100108
|
var dependencies2 = {
|
100101
100109
|
getProject,
|
100102
100110
|
addAndCommitChanges,
|
@@ -100132,14 +100140,15 @@ async function pushToJira(projectPath, { getProject: getProject2, addAndCommitCh
|
|
100132
100140
|
return { projectState, project: project2, jiraPlugin, result: results };
|
100133
100141
|
}
|
100134
100142
|
|
100135
|
-
// src/ui/prompt.
|
100143
|
+
// src/ui/prompt.mjs
|
100136
100144
|
var import_path19 = require("path");
|
100137
100145
|
|
100138
|
-
// src/adapters/env.
|
100146
|
+
// src/adapters/env.mjs
|
100139
100147
|
async function envExists2(projectPath) {
|
100140
100148
|
return envExists(projectPath);
|
100141
100149
|
}
|
100142
100150
|
async function storeJiraCredentials(projectPath, jiraUsername, jiraApiToken) {
|
100151
|
+
await init2(process.cwd());
|
100143
100152
|
await appendToEnv(projectPath, "JIRA_USERNAME", jiraUsername);
|
100144
100153
|
await appendToEnv(projectPath, "JIRA_TOKEN", jiraApiToken);
|
100145
100154
|
logger.info("Stored Jira credentials in .env file");
|
@@ -100153,7 +100162,7 @@ async function init2(projectPath) {
|
|
100153
100162
|
logger.info("Initialized .env file");
|
100154
100163
|
}
|
100155
100164
|
|
100156
|
-
// src/adapters/license.
|
100165
|
+
// src/adapters/license.mjs
|
100157
100166
|
var import_promises8 = require("node:fs/promises");
|
100158
100167
|
var import_jsonwebtoken = __toESM(require_jsonwebtoken(), 1);
|
100159
100168
|
var import_node_path6 = __toESM(require("node:path"), 1);
|
@@ -100171,8 +100180,8 @@ async function verifyLicense(token, publicKeyPath = PUBLIC_KEY_PATH) {
|
|
100171
100180
|
}
|
100172
100181
|
}
|
100173
100182
|
var License = class _License {
|
100174
|
-
constructor({ name, email, org, plan, created, expires }) {
|
100175
|
-
this.name =
|
100183
|
+
constructor({ name: name2, email, org, plan, created, expires }) {
|
100184
|
+
this.name = name2;
|
100176
100185
|
this.email = email;
|
100177
100186
|
this.org = org;
|
100178
100187
|
this.plan = plan;
|
@@ -101361,11 +101370,11 @@ function normalizeChoices(choices) {
|
|
101361
101370
|
checked: false
|
101362
101371
|
};
|
101363
101372
|
}
|
101364
|
-
const
|
101373
|
+
const name2 = choice.name ?? String(choice.value);
|
101365
101374
|
const normalizedChoice = {
|
101366
101375
|
value: choice.value,
|
101367
|
-
name,
|
101368
|
-
short: choice.short ??
|
101376
|
+
name: name2,
|
101377
|
+
short: choice.short ?? name2,
|
101369
101378
|
disabled: choice.disabled ?? false,
|
101370
101379
|
checked: choice.checked ?? false
|
101371
101380
|
};
|
@@ -101434,7 +101443,7 @@ var esm_default4 = createPrompt((config2, done) => {
|
|
101434
101443
|
}
|
101435
101444
|
});
|
101436
101445
|
const message = theme.style.message(config2.message, status2);
|
101437
|
-
let
|
101446
|
+
let description2;
|
101438
101447
|
const page = usePagination({
|
101439
101448
|
items,
|
101440
101449
|
active,
|
@@ -101447,7 +101456,7 @@ var esm_default4 = createPrompt((config2, done) => {
|
|
101447
101456
|
return theme.style.disabledChoice(`${item.name} ${disabledLabel}`);
|
101448
101457
|
}
|
101449
101458
|
if (isActive) {
|
101450
|
-
|
101459
|
+
description2 = item.description;
|
101451
101460
|
}
|
101452
101461
|
const checkbox2 = item.checked ? theme.icon.checked : theme.icon.unchecked;
|
101453
101462
|
const color = isActive ? theme.style.highlight : (x2) => x2;
|
@@ -101483,8 +101492,8 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;
|
|
101483
101492
|
firstRender.current = false;
|
101484
101493
|
}
|
101485
101494
|
}
|
101486
|
-
const choiceDescription =
|
101487
|
-
${theme.style.description(
|
101495
|
+
const choiceDescription = description2 ? `
|
101496
|
+
${theme.style.description(description2)}` : ``;
|
101488
101497
|
let error = "";
|
101489
101498
|
if (errorMsg) {
|
101490
101499
|
error = `
|
@@ -101762,11 +101771,11 @@ function normalizeChoices2(choices) {
|
|
101762
101771
|
if (Separator.isSeparator(choice)) {
|
101763
101772
|
return choice;
|
101764
101773
|
}
|
101765
|
-
const
|
101766
|
-
const value2 = "value" in choice ? choice.value :
|
101774
|
+
const name2 = "name" in choice ? choice.name : String(choice.value);
|
101775
|
+
const value2 = "value" in choice ? choice.value : name2;
|
101767
101776
|
return {
|
101768
101777
|
value: value2,
|
101769
|
-
name,
|
101778
|
+
name: name2,
|
101770
101779
|
key: choice.key.toLowerCase()
|
101771
101780
|
};
|
101772
101781
|
});
|
@@ -101871,11 +101880,11 @@ function normalizeChoices3(choices) {
|
|
101871
101880
|
key: String(index)
|
101872
101881
|
};
|
101873
101882
|
}
|
101874
|
-
const
|
101883
|
+
const name2 = choice.name ?? String(choice.value);
|
101875
101884
|
return {
|
101876
101885
|
value: choice.value,
|
101877
|
-
name,
|
101878
|
-
short: choice.short ??
|
101886
|
+
name: name2,
|
101887
|
+
short: choice.short ?? name2,
|
101879
101888
|
key: choice.key ?? String(index)
|
101880
101889
|
};
|
101881
101890
|
});
|
@@ -102010,11 +102019,11 @@ function normalizeChoices4(choices) {
|
|
102010
102019
|
disabled: false
|
102011
102020
|
};
|
102012
102021
|
}
|
102013
|
-
const
|
102022
|
+
const name2 = choice.name ?? String(choice.value);
|
102014
102023
|
const normalizedChoice = {
|
102015
102024
|
value: choice.value,
|
102016
|
-
name,
|
102017
|
-
short: choice.short ??
|
102025
|
+
name: name2,
|
102026
|
+
short: choice.short ?? name2,
|
102018
102027
|
disabled: choice.disabled ?? false
|
102019
102028
|
};
|
102020
102029
|
if (choice.description) {
|
@@ -102177,11 +102186,11 @@ function normalizeChoices5(choices) {
|
|
102177
102186
|
disabled: false
|
102178
102187
|
};
|
102179
102188
|
}
|
102180
|
-
const
|
102189
|
+
const name2 = choice.name ?? String(choice.value);
|
102181
102190
|
const normalizedChoice = {
|
102182
102191
|
value: choice.value,
|
102183
|
-
name,
|
102184
|
-
short: choice.short ??
|
102192
|
+
name: name2,
|
102193
|
+
short: choice.short ?? name2,
|
102185
102194
|
disabled: choice.disabled ?? false
|
102186
102195
|
};
|
102187
102196
|
if (choice.description) {
|
@@ -102383,8 +102392,8 @@ var PromptsRunner = class {
|
|
102383
102392
|
} else if ((0, import_rxjs.isObservable)(questions)) {
|
102384
102393
|
obs = questions;
|
102385
102394
|
} else if (isQuestionMap(questions)) {
|
102386
|
-
obs = (0, import_rxjs.from)(Object.entries(questions).map(([
|
102387
|
-
return Object.assign({}, question, { name });
|
102395
|
+
obs = (0, import_rxjs.from)(Object.entries(questions).map(([name2, question]) => {
|
102396
|
+
return Object.assign({}, question, { name: name2 });
|
102388
102397
|
}));
|
102389
102398
|
} else {
|
102390
102399
|
obs = (0, import_rxjs.from)([questions]);
|
@@ -102537,8 +102546,8 @@ function createPromptModule(opt) {
|
|
102537
102546
|
return Object.assign(promptPromise, { ui: runner });
|
102538
102547
|
}
|
102539
102548
|
promptModule.prompts = { ...builtInPrompts };
|
102540
|
-
promptModule.registerPrompt = function(
|
102541
|
-
promptModule.prompts[
|
102549
|
+
promptModule.registerPrompt = function(name2, prompt2) {
|
102550
|
+
promptModule.prompts[name2] = prompt2;
|
102542
102551
|
return this;
|
102543
102552
|
};
|
102544
102553
|
promptModule.restoreDefaultPrompts = function() {
|
@@ -102547,8 +102556,8 @@ function createPromptModule(opt) {
|
|
102547
102556
|
return promptModule;
|
102548
102557
|
}
|
102549
102558
|
var prompt = createPromptModule();
|
102550
|
-
function registerPrompt(
|
102551
|
-
prompt.registerPrompt(
|
102559
|
+
function registerPrompt(name2, newPrompt) {
|
102560
|
+
prompt.registerPrompt(name2, newPrompt);
|
102552
102561
|
}
|
102553
102562
|
function restoreDefaultPrompts() {
|
102554
102563
|
prompt.restoreDefaultPrompts();
|
@@ -102565,9 +102574,10 @@ var inquirer = {
|
|
102565
102574
|
};
|
102566
102575
|
var esm_default14 = inquirer;
|
102567
102576
|
|
102568
|
-
// src/ui/prompt.
|
102577
|
+
// src/ui/prompt.mjs
|
102569
102578
|
var bang = source_default.bgWhite.bold(" \u2757 ");
|
102570
102579
|
async function gitRepoCheck(projectPath) {
|
102580
|
+
console.log(`Checking if git repo exists at ${projectPath}...`);
|
102571
102581
|
if (!await isGitRepo(projectPath)) {
|
102572
102582
|
return true;
|
102573
102583
|
}
|
@@ -102589,6 +102599,7 @@ Do you want to proceed anyway?`,
|
|
102589
102599
|
return proceed;
|
102590
102600
|
}
|
102591
102601
|
async function checkLicense() {
|
102602
|
+
await init2();
|
102592
102603
|
const licenseCheck = await validateEnvLicense();
|
102593
102604
|
if (!licenseCheck.valid) {
|
102594
102605
|
console.error("Invalid or expired license. Please check your license or purchase one at https://imdone.io : ", licenseCheck.reason);
|
@@ -102647,7 +102658,8 @@ Do you want to proceed?`,
|
|
102647
102658
|
return proceed;
|
102648
102659
|
}
|
102649
102660
|
async function gitIgnoreCheck(projectPath) {
|
102650
|
-
|
102661
|
+
const backlogDir = (0, import_path19.basename)(projectPath);
|
102662
|
+
if (await gitIgnoreExists((0, import_path19.dirname)(projectPath), backlogDir)) {
|
102651
102663
|
return true;
|
102652
102664
|
}
|
102653
102665
|
const { proceed } = await esm_default14.prompt({
|
@@ -102656,7 +102668,7 @@ async function gitIgnoreCheck(projectPath) {
|
|
102656
102668
|
message: `
|
102657
102669
|
${bang} It looks like you don't have your project ignored.
|
102658
102670
|
|
102659
|
-
Imdone will append the
|
102671
|
+
Imdone will append the ${backlogDir} directory to the .gitignore file.
|
102660
102672
|
|
102661
102673
|
Do you want to proceed?`,
|
102662
102674
|
default: false
|
@@ -102727,11 +102739,11 @@ async function promptForConfig(options2) {
|
|
102727
102739
|
return config2;
|
102728
102740
|
}
|
102729
102741
|
|
102730
|
-
// src/usecases/init.
|
102742
|
+
// src/usecases/init.mjs
|
102731
102743
|
var import_path20 = require("path");
|
102732
|
-
async function imdoneInit(projectPath, { name, jiraUrl, jiraProjectKey, jiraUsername, jiraApiToken, jql }) {
|
102744
|
+
async function imdoneInit(projectPath, { name: name2, jiraUrl, jiraProjectKey, jiraUsername, jiraApiToken, jql }) {
|
102733
102745
|
const imdoneConfig = {
|
102734
|
-
name,
|
102746
|
+
name: name2,
|
102735
102747
|
jiraUrl,
|
102736
102748
|
jiraProjectKey,
|
102737
102749
|
jql
|
@@ -102746,9 +102758,78 @@ async function imdoneInit(projectPath, { name, jiraUrl, jiraProjectKey, jiraUser
|
|
102746
102758
|
}
|
102747
102759
|
|
102748
102760
|
// package.json
|
102749
|
-
var
|
102761
|
+
var package_default = {
|
102762
|
+
name: "imdone-cli",
|
102763
|
+
version: "0.1.7",
|
102764
|
+
author: "Jesse Piascik",
|
102765
|
+
description: "An imdone cli that automates your jira updates with markdown files.",
|
102766
|
+
license: "Proprietary",
|
102767
|
+
engines: {
|
102768
|
+
node: ">=22.0.0"
|
102769
|
+
},
|
102770
|
+
main: "dist/index.min.cjs",
|
102771
|
+
type: "module",
|
102772
|
+
bin: {
|
102773
|
+
imdone: "dist/index.min.cjs",
|
102774
|
+
"imdone-debug": "dist/index.cjs"
|
102775
|
+
},
|
102776
|
+
scripts: {
|
102777
|
+
prepublishOnly: "npm --prefix ../ install && npm --prefix ../ run build && npm i && npm test && npm run build",
|
102778
|
+
link: "npm link ../../imdone-core-2 ../../imdone-api",
|
102779
|
+
build: "node esbuild.config.js && cp public/* dist/",
|
102780
|
+
coverage: "vitest --run --coverage",
|
102781
|
+
test: "vitest --run",
|
102782
|
+
"test-ci": "vitest --run"
|
102783
|
+
},
|
102784
|
+
dependencies: {
|
102785
|
+
chalk: "^5.4.1",
|
102786
|
+
commander: "^13.1.0",
|
102787
|
+
dotenv: "16.4.5",
|
102788
|
+
"imdone-core": "^2.0.11",
|
102789
|
+
inquirer: "^12.5.2",
|
102790
|
+
jsonwebtoken: "^9.0.2",
|
102791
|
+
ora: "^8.2.0",
|
102792
|
+
"simple-git": "^3.27.0"
|
102793
|
+
},
|
102794
|
+
devDependencies: {
|
102795
|
+
esbuild: "^0.25.2",
|
102796
|
+
"esbuild-plugin-copy": "^2.1.1",
|
102797
|
+
vitest: "^3.1.1"
|
102798
|
+
}
|
102799
|
+
};
|
102750
102800
|
|
102751
|
-
// src/
|
102801
|
+
// src/adapters/package.mjs
|
102802
|
+
var import_node_https2 = __toESM(require("node:https"), 1);
|
102803
|
+
var { name, version, description } = package_default;
|
102804
|
+
async function getLatestVersion(packageName) {
|
102805
|
+
return new Promise((resolve3, reject3) => {
|
102806
|
+
import_node_https2.default.get(`https://registry.npmjs.org/${packageName}/latest`, (res) => {
|
102807
|
+
let data = "";
|
102808
|
+
res.on("data", (chunk2) => data += chunk2);
|
102809
|
+
res.on("end", () => {
|
102810
|
+
try {
|
102811
|
+
const parsed = JSON.parse(data);
|
102812
|
+
resolve3(parsed.version);
|
102813
|
+
} catch (e2) {
|
102814
|
+
reject3(e2);
|
102815
|
+
}
|
102816
|
+
});
|
102817
|
+
}).on("error", reject3);
|
102818
|
+
});
|
102819
|
+
}
|
102820
|
+
async function checkForUpdates() {
|
102821
|
+
try {
|
102822
|
+
const latest = await getLatestVersion(name);
|
102823
|
+
if (latest !== version) {
|
102824
|
+
console.log(`Update available: ${latest} (current: ${version})`);
|
102825
|
+
console.log(`Run 'npm install -g ${name}' to update.`);
|
102826
|
+
}
|
102827
|
+
} catch (error) {
|
102828
|
+
console.error("Error checking for updates:", error);
|
102829
|
+
}
|
102830
|
+
}
|
102831
|
+
|
102832
|
+
// src/bin.mjs
|
102752
102833
|
logger.setLevel(process.env.LOG_LEVEL || LogLevel.ERROR);
|
102753
102834
|
async function pullCommand() {
|
102754
102835
|
const spinner = ora("Pulling issues from Jira...").start();
|
@@ -102759,7 +102840,7 @@ async function pullCommand() {
|
|
102759
102840
|
spinner.succeed(message);
|
102760
102841
|
} catch (error) {
|
102761
102842
|
spinner.fail(`Failed to pull issues from Jira: ${error.message}`);
|
102762
|
-
logger.
|
102843
|
+
logger.info("error:", error.stack);
|
102763
102844
|
process.exit(1);
|
102764
102845
|
}
|
102765
102846
|
}
|
@@ -102774,22 +102855,25 @@ async function pushCommand() {
|
|
102774
102855
|
});
|
102775
102856
|
} catch (error) {
|
102776
102857
|
spinner.fail(`Failed to push changes to Jira: ${error.message}`);
|
102777
|
-
logger.
|
102858
|
+
logger.info("error:", error.stack);
|
102778
102859
|
process.exit(1);
|
102779
102860
|
}
|
102780
102861
|
}
|
102781
102862
|
var program2 = new Command();
|
102782
|
-
program2.name("imdone").description(
|
102863
|
+
program2.name("imdone").description(description).version(version);
|
102783
102864
|
program2.command("pull").description("Pull issues from Jira").action(async () => {
|
102865
|
+
await checkForUpdates();
|
102784
102866
|
await checkLicense();
|
102785
102867
|
await pullCommand();
|
102786
102868
|
});
|
102787
102869
|
program2.command("push").description("Push changes to Jira").action(async () => {
|
102870
|
+
await checkForUpdates();
|
102788
102871
|
await checkLicense();
|
102789
102872
|
await pullCommand();
|
102790
102873
|
await pushCommand();
|
102791
102874
|
});
|
102792
102875
|
program2.command("init").description("Initialize Jira integration").option("--name [name]", "Project name").option("--jira-url [jiraUrl]", "Jira URL (e.g., https://your-domain.atlassian.net)").option("--jira-project-key [jiraProjectKey]", "Jira project key (e.g., ABC)").option("--jira-username [jiraUsername]", "Jira username (email)").option("--jira-api-token [jiraApiToken]", "Jira API token").option("--jql [jql]", 'JQL query to fetch issues (e.g., Sprint in openSprints() and status != "Done")').action(async (options2) => {
|
102876
|
+
await checkForUpdates();
|
102793
102877
|
const projectPath = process.cwd();
|
102794
102878
|
try {
|
102795
102879
|
if (!await gitRepoCheck(projectPath) || !await gitIgnoreCheck(projectPath) || !await dotEnvCheck(projectPath) || !await imdoneProjectCheck(projectPath)) {
|
@@ -102812,14 +102896,15 @@ program2.command("init").description("Initialize Jira integration").option("--na
|
|
102812
102896
|
}
|
102813
102897
|
});
|
102814
102898
|
program2.command("license").description("Enter or update your Imdone license").option("--token [token]", "License token").option("--show", "Show current license information").action(async (options2) => {
|
102899
|
+
await checkForUpdates();
|
102815
102900
|
const projectPath = process.cwd();
|
102816
102901
|
if (options2.show) {
|
102817
102902
|
const spinner2 = ora("Fetching license information...").start();
|
102818
102903
|
try {
|
102819
102904
|
const licenseCheck = await verifyLicense(process.env.IMDONE_LICENSE);
|
102820
102905
|
if (licenseCheck.valid) {
|
102821
|
-
const { name, email, expires } = licenseCheck.data;
|
102822
|
-
spinner2.succeed(`Current license: ${
|
102906
|
+
const { name: name2, email, expires } = licenseCheck.data;
|
102907
|
+
spinner2.succeed(`Current license: ${name2} (${email}) - Expires: ${expires.toLocaleDateString()}`);
|
102823
102908
|
} else {
|
102824
102909
|
spinner2.fail(`Invalid or expired license: ${licenseCheck.reason}`);
|
102825
102910
|
}
|
@@ -102841,8 +102926,8 @@ program2.command("license").description("Enter or update your Imdone license").o
|
|
102841
102926
|
process.exit(1);
|
102842
102927
|
}
|
102843
102928
|
await storeLicense(projectPath, licenseToken);
|
102844
|
-
const { name, email, expires } = licenseCheck.data;
|
102845
|
-
spinner.succeed(`License accepted for ${
|
102929
|
+
const { name: name2, email, expires } = licenseCheck.data;
|
102930
|
+
spinner.succeed(`License accepted for ${name2} (${email}) - Expires: ${expires.toLocaleDateString()}`);
|
102846
102931
|
} catch (error) {
|
102847
102932
|
spinner.fail(`Failed to validate or store license: ${error.message}`);
|
102848
102933
|
logger.error(error);
|
@@ -102850,7 +102935,6 @@ program2.command("license").description("Enter or update your Imdone license").o
|
|
102850
102935
|
}
|
102851
102936
|
});
|
102852
102937
|
(async function main2() {
|
102853
|
-
await init2(process.cwd());
|
102854
102938
|
program2.parse();
|
102855
102939
|
})();
|
102856
102940
|
/*! Bundled license information:
|