ph-cmd 6.0.0-dev.21 → 6.0.0-dev.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +838 -187
- package/build/cli.old.js +7317 -7307
- package/package.json +5 -5
package/build/cli.js
CHANGED
|
@@ -186167,7 +186167,7 @@ var require_path_browserify = __commonJS((exports, module) => {
|
|
|
186167
186167
|
}
|
|
186168
186168
|
return _format("/", pathObject);
|
|
186169
186169
|
},
|
|
186170
|
-
parse: function
|
|
186170
|
+
parse: function parse3(path3) {
|
|
186171
186171
|
assertPath(path3);
|
|
186172
186172
|
var ret = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
186173
186173
|
if (path3.length === 0)
|
|
@@ -260397,12 +260397,12 @@ var init_babel = __esm(() => {
|
|
|
260397
260397
|
let r2 = { AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter", AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference", SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter", SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter", SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType" };
|
|
260398
260398
|
r2[e] && (e = r2[e]);
|
|
260399
260399
|
}
|
|
260400
|
-
return function
|
|
260400
|
+
return function r2(n25, o2) {
|
|
260401
260401
|
let l2 = new SyntaxError;
|
|
260402
260402
|
return l2.code = t, l2.reasonCode = e, l2.loc = n25, l2.pos = n25.index, l2.syntaxPlugin = s, i && (l2.missingPlugin = o2.missingPlugin), ps3(l2, "clone", function(c3 = {}) {
|
|
260403
260403
|
var u2;
|
|
260404
260404
|
let { line: f, column: d3, index: x3 } = (u2 = c3.loc) != null ? u2 : n25;
|
|
260405
|
-
return
|
|
260405
|
+
return r2(new B4(f, d3, x3), Object.assign({}, o2, c3.details));
|
|
260406
260406
|
}), ps3(l2, "details", o2), Object.defineProperty(l2, "message", { configurable: true, get() {
|
|
260407
260407
|
let h = `${a2(o2)} (${n25.line}:${n25.column})`;
|
|
260408
260408
|
return this.message = h, h;
|
|
@@ -270872,7 +270872,7 @@ function na2(e) {
|
|
|
270872
270872
|
}
|
|
270873
270873
|
function sa2(e, t, r2, n25 = {}) {
|
|
270874
270874
|
let s = [], u2, i = [], a2 = false, o2 = !n25.expandLastArg && e.node.body.type === "ArrowFunctionExpression", p2;
|
|
270875
|
-
(function
|
|
270875
|
+
(function B4() {
|
|
270876
270876
|
let { node: g2 } = e, _3 = Ol(e, t, r2, n25);
|
|
270877
270877
|
if (s.length === 0)
|
|
270878
270878
|
s.push(_3);
|
|
@@ -270880,7 +270880,7 @@ function sa2(e, t, r2, n25 = {}) {
|
|
|
270880
270880
|
let { leading: M3, trailing: J4 } = fs5(e, t);
|
|
270881
270881
|
s.push([M3, _3]), i.unshift(J4);
|
|
270882
270882
|
}
|
|
270883
|
-
o2 && (a2 || (a2 = g2.returnType && Q3(g2).length > 0 || g2.typeParameters || Q3(g2).some((M3) => M3.type !== "Identifier"))), !o2 || g2.body.type !== "ArrowFunctionExpression" ? (u2 = r2("body", n25), p2 = g2.body) : e.call(
|
|
270883
|
+
o2 && (a2 || (a2 = g2.returnType && Q3(g2).length > 0 || g2.typeParameters || Q3(g2).some((M3) => M3.type !== "Identifier"))), !o2 || g2.body.type !== "ArrowFunctionExpression" ? (u2 = r2("body", n25), p2 = g2.body) : e.call(B4, "body");
|
|
270884
270884
|
})();
|
|
270885
270885
|
let m2 = !de4(t.originalText, p2) && (wl(p2) || _l(p2, u2, t) || !a2 && na2(p2)), f = e.key === "callee" && yt3(e.parent), y2 = Symbol("arrow-chain"), C3 = Ml(e, n25, { signatureDocs: s, shouldBreak: a2 }), c3 = false, A3 = false, T = false;
|
|
270886
270886
|
return o2 && (f || n25.assignmentLayout) && (A3 = true, T = !d3(e.node, h.Leading & h.Line), c3 = n25.assignmentLayout === "chain-tail-arrow-chain" || f && !m2), u2 = vl(e, t, n25, { bodyDoc: u2, bodyComments: i, functionBody: p2, shouldPutBodyOnSameLine: m2 }), l2([l2(A3 ? D3([T ? E2 : "", C3]) : C3, { shouldBreak: c3, id: y2 }), " =>", o2 ? xt3(u2, { groupId: y2 }) : l2(u2), o2 && f ? S3(E2, "", { groupId: y2 }) : ""]);
|
|
@@ -309716,9 +309716,9 @@ function Nr6(e6, r2) {
|
|
|
309716
309716
|
`) ? t7.slice(0, -1) : t7;
|
|
309717
309717
|
}
|
|
309718
309718
|
function ye4(e6, r2) {
|
|
309719
|
-
return function
|
|
309719
|
+
return function t7(n25, a2, i) {
|
|
309720
309720
|
let u2 = { ...r2(n25, a2, i) };
|
|
309721
|
-
return u2.children && (u2.children = u2.children.map((o3, s) =>
|
|
309721
|
+
return u2.children && (u2.children = u2.children.map((o3, s) => t7(o3, s, [u2, ...i]))), u2;
|
|
309722
309722
|
}(e6, null, []);
|
|
309723
309723
|
}
|
|
309724
309724
|
function Ct8(e6) {
|
|
@@ -310106,11 +310106,11 @@ function Ui6(e6, r2, t7) {
|
|
|
310106
310106
|
}
|
|
310107
310107
|
function Df(e6) {
|
|
310108
310108
|
let r2 = [""];
|
|
310109
|
-
return function
|
|
310109
|
+
return function t7(n25) {
|
|
310110
310110
|
for (let a2 of n25) {
|
|
310111
310111
|
let i = G8(a2);
|
|
310112
310112
|
if (i === H7) {
|
|
310113
|
-
|
|
310113
|
+
t7(a2);
|
|
310114
310114
|
continue;
|
|
310115
310115
|
}
|
|
310116
310116
|
let u2 = a2, o3 = [];
|
|
@@ -312587,12 +312587,12 @@ $$`;
|
|
|
312587
312587
|
return;
|
|
312588
312588
|
return r2[t7];
|
|
312589
312589
|
};
|
|
312590
|
-
yc2.exports = function
|
|
312590
|
+
yc2.exports = function e6() {
|
|
312591
312591
|
var r2, t7, n25, a2, i, u2, o3 = arguments[0], s = 1, l3 = arguments.length, c4 = false;
|
|
312592
312592
|
for (typeof o3 == "boolean" && (c4 = o3, o3 = arguments[1] || {}, s = 2), (o3 == null || typeof o3 != "object" && typeof o3 != "function") && (o3 = {});s < l3; ++s)
|
|
312593
312593
|
if (r2 = arguments[s], r2 != null)
|
|
312594
312594
|
for (t7 in r2)
|
|
312595
|
-
n25 = bc2(o3, t7), a2 = bc2(r2, t7), o3 !== a2 && (c4 && a2 && (vc2(a2) || (i = Ec2(a2))) ? (i ? (i = false, u2 = n25 && Ec2(n25) ? n25 : []) : u2 = n25 && vc2(n25) ? n25 : {}, Cc2(o3, { name: t7, newValue:
|
|
312595
|
+
n25 = bc2(o3, t7), a2 = bc2(r2, t7), o3 !== a2 && (c4 && a2 && (vc2(a2) || (i = Ec2(a2))) ? (i ? (i = false, u2 = n25 && Ec2(n25) ? n25 : []) : u2 = n25 && vc2(n25) ? n25 : {}, Cc2(o3, { name: t7, newValue: e6(c4, u2, a2) })) : typeof a2 < "u" && Cc2(o3, { name: t7, newValue: a2 }));
|
|
312596
312596
|
return o3;
|
|
312597
312597
|
};
|
|
312598
312598
|
});
|
|
@@ -319667,7 +319667,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
|
|
|
319667
319667
|
if (!(t7 instanceof e6))
|
|
319668
319668
|
throw new TypeError("Cannot call a class as a function");
|
|
319669
319669
|
}
|
|
319670
|
-
var Cp2 = function
|
|
319670
|
+
var Cp2 = function t7(e6, s) {
|
|
319671
319671
|
if ((typeof e6 > "u" ? "undefined" : Ta4(e6)) !== "object")
|
|
319672
319672
|
return e6;
|
|
319673
319673
|
var r3 = new e6.constructor;
|
|
@@ -319675,8 +319675,8 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
|
|
|
319675
319675
|
if (e6.hasOwnProperty(n26)) {
|
|
319676
319676
|
var i = e6[n26], o3 = typeof i > "u" ? "undefined" : Ta4(i);
|
|
319677
319677
|
n26 === "parent" && o3 === "object" ? s && (r3[n26] = s) : i instanceof Array ? r3[n26] = i.map(function(u3) {
|
|
319678
|
-
return
|
|
319679
|
-
}) : r3[n26] =
|
|
319678
|
+
return t7(u3, r3);
|
|
319679
|
+
}) : r3[n26] = t7(i, r3);
|
|
319680
319680
|
}
|
|
319681
319681
|
return r3;
|
|
319682
319682
|
}, Ap2 = function() {
|
|
@@ -340570,7 +340570,7 @@ async function clearCache3() {
|
|
|
340570
340570
|
}
|
|
340571
340571
|
var require2, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __typeError = (msg) => {
|
|
340572
340572
|
throw TypeError(msg);
|
|
340573
|
-
}, __defNormalProp = (obj, key2, value2) => (key2 in obj) ? __defProp3(obj, key2, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key2] = value2, __require2, __commonJS2 = (cb2, mod) => function
|
|
340573
|
+
}, __defNormalProp = (obj, key2, value2) => (key2 in obj) ? __defProp3(obj, key2, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key2] = value2, __require2, __commonJS2 = (cb2, mod) => function __require22() {
|
|
340574
340574
|
return mod || (0, cb2[__getOwnPropNames2(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
340575
340575
|
}, __export3 = (target, all) => {
|
|
340576
340576
|
for (var name in all)
|
|
@@ -381793,9 +381793,9 @@ var require_instanceOf = __commonJS((exports) => {
|
|
|
381793
381793
|
exports.instanceOf = undefined;
|
|
381794
381794
|
var _inspect = require_inspect();
|
|
381795
381795
|
var isProduction = globalThis.process && false;
|
|
381796
|
-
var instanceOf = isProduction ? function
|
|
381796
|
+
var instanceOf = isProduction ? function instanceOf2(value2, constructor) {
|
|
381797
381797
|
return value2 instanceof constructor;
|
|
381798
|
-
} : function
|
|
381798
|
+
} : function instanceOf2(value2, constructor) {
|
|
381799
381799
|
if (value2 instanceof constructor) {
|
|
381800
381800
|
return true;
|
|
381801
381801
|
}
|
|
@@ -395036,7 +395036,7 @@ var require_is_arrayish = __commonJS((exports, module3) => {
|
|
|
395036
395036
|
var require_error_ex = __commonJS((exports, module3) => {
|
|
395037
395037
|
var util2 = __require("util");
|
|
395038
395038
|
var isArrayish = require_is_arrayish();
|
|
395039
|
-
var errorEx = function
|
|
395039
|
+
var errorEx = function errorEx2(name, properties) {
|
|
395040
395040
|
if (!name || name.constructor !== String) {
|
|
395041
395041
|
properties = name || {};
|
|
395042
395042
|
name = Error.name;
|
|
@@ -476346,7 +476346,7 @@ ${lanes.join(`
|
|
|
476346
476346
|
}
|
|
476347
476347
|
}
|
|
476348
476348
|
function isSymbolUsedInConditionBody(expr, body, testedNode, testedSymbol) {
|
|
476349
|
-
return !!forEachChild(body, function
|
|
476349
|
+
return !!forEachChild(body, function check2(childNode) {
|
|
476350
476350
|
if (isIdentifier(childNode)) {
|
|
476351
476351
|
const childSymbol = getSymbolAtLocation(childNode);
|
|
476352
476352
|
if (childSymbol && childSymbol === testedSymbol) {
|
|
@@ -476373,7 +476373,7 @@ ${lanes.join(`
|
|
|
476373
476373
|
}
|
|
476374
476374
|
}
|
|
476375
476375
|
}
|
|
476376
|
-
return forEachChild(childNode,
|
|
476376
|
+
return forEachChild(childNode, check2);
|
|
476377
476377
|
});
|
|
476378
476378
|
}
|
|
476379
476379
|
function isSymbolUsedInBinaryExpressionChain(node, testedSymbol) {
|
|
@@ -519462,7 +519462,7 @@ ${lanes.join(`
|
|
|
519462
519462
|
}
|
|
519463
519463
|
function getEncodedSemanticClassifications(typeChecker, cancellationToken, sourceFile, classifiableNames, span) {
|
|
519464
519464
|
const spans = [];
|
|
519465
|
-
sourceFile.forEachChild(function
|
|
519465
|
+
sourceFile.forEachChild(function cb2(node) {
|
|
519466
519466
|
if (!node || !textSpanIntersectsWith(span, node.pos, node.getFullWidth())) {
|
|
519467
519467
|
return;
|
|
519468
519468
|
}
|
|
@@ -519474,7 +519474,7 @@ ${lanes.join(`
|
|
|
519474
519474
|
pushClassification(node.getStart(sourceFile), node.getEnd(), type);
|
|
519475
519475
|
}
|
|
519476
519476
|
}
|
|
519477
|
-
node.forEachChild(
|
|
519477
|
+
node.forEachChild(cb2);
|
|
519478
519478
|
});
|
|
519479
519479
|
return { spans, endOfLineState: 0 };
|
|
519480
519480
|
function pushClassification(start, end, type) {
|
|
@@ -523931,7 +523931,7 @@ interface Symbol {
|
|
|
523931
523931
|
return forEachKey(importsFromNewFile, symbolNameNoDefault) || forEachKey(movedSymbols, symbolNameNoDefault) || "newFile";
|
|
523932
523932
|
}
|
|
523933
523933
|
function forEachReference(node, checker, enclosingRange, onReference) {
|
|
523934
|
-
node.forEachChild(function
|
|
523934
|
+
node.forEachChild(function cb2(node2) {
|
|
523935
523935
|
if (isIdentifier(node2) && !isDeclarationName(node2)) {
|
|
523936
523936
|
if (enclosingRange && !rangeContainsRange(enclosingRange, node2)) {
|
|
523937
523937
|
return;
|
|
@@ -523940,7 +523940,7 @@ interface Symbol {
|
|
|
523940
523940
|
if (sym)
|
|
523941
523941
|
onReference(sym, isValidTypeOnlyAliasUseSite(node2));
|
|
523942
523942
|
} else {
|
|
523943
|
-
node2.forEachChild(
|
|
523943
|
+
node2.forEachChild(cb2);
|
|
523944
523944
|
}
|
|
523945
523945
|
});
|
|
523946
523946
|
}
|
|
@@ -525998,14 +525998,14 @@ ${newComment.split(`
|
|
|
525998
525998
|
}
|
|
525999
525999
|
break;
|
|
526000
526000
|
case 220:
|
|
526001
|
-
forEachChild(node2, function
|
|
526001
|
+
forEachChild(node2, function check2(n64) {
|
|
526002
526002
|
if (isThis(n64)) {
|
|
526003
526003
|
rangeFacts |= 8;
|
|
526004
526004
|
thisNode = node2;
|
|
526005
526005
|
} else if (isClassLike(n64) || isFunctionLike(n64) && !isArrowFunction(n64)) {
|
|
526006
526006
|
return false;
|
|
526007
526007
|
} else {
|
|
526008
|
-
forEachChild(n64,
|
|
526008
|
+
forEachChild(n64, check2);
|
|
526009
526009
|
}
|
|
526010
526010
|
});
|
|
526011
526011
|
case 264:
|
|
@@ -545792,11 +545792,11 @@ ${newComment.split(`
|
|
|
545792
545792
|
continue;
|
|
545793
545793
|
}
|
|
545794
545794
|
if (member.body) {
|
|
545795
|
-
member.body.forEachChild(function
|
|
545795
|
+
member.body.forEachChild(function cb2(node) {
|
|
545796
545796
|
if (node.kind === 110) {
|
|
545797
545797
|
addRef(node);
|
|
545798
545798
|
} else if (!isFunctionLike(node) && !isClassLike(node)) {
|
|
545799
|
-
node.forEachChild(
|
|
545799
|
+
node.forEachChild(cb2);
|
|
545800
545800
|
}
|
|
545801
545801
|
});
|
|
545802
545802
|
}
|
|
@@ -566844,14 +566844,14 @@ var require_loaders = __commonJS((exports) => {
|
|
|
566844
566844
|
var path_1 = __importDefault(__require("path"));
|
|
566845
566845
|
var url_1 = __require("url");
|
|
566846
566846
|
var importFresh;
|
|
566847
|
-
var loadJsSync = function
|
|
566847
|
+
var loadJsSync = function loadJsSync2(filepath) {
|
|
566848
566848
|
if (importFresh === undefined) {
|
|
566849
566849
|
importFresh = require_import_fresh();
|
|
566850
566850
|
}
|
|
566851
566851
|
return importFresh(filepath);
|
|
566852
566852
|
};
|
|
566853
566853
|
exports.loadJsSync = loadJsSync;
|
|
566854
|
-
var loadJs = async function
|
|
566854
|
+
var loadJs = async function loadJs2(filepath) {
|
|
566855
566855
|
try {
|
|
566856
566856
|
const { href } = (0, url_1.pathToFileURL)(filepath);
|
|
566857
566857
|
return (await import(href)).default;
|
|
@@ -566868,7 +566868,7 @@ var require_loaders = __commonJS((exports) => {
|
|
|
566868
566868
|
};
|
|
566869
566869
|
exports.loadJs = loadJs;
|
|
566870
566870
|
var parseJson3;
|
|
566871
|
-
var loadJson = function
|
|
566871
|
+
var loadJson = function loadJson2(filepath, content) {
|
|
566872
566872
|
if (parseJson3 === undefined) {
|
|
566873
566873
|
parseJson3 = require_parse_json();
|
|
566874
566874
|
}
|
|
@@ -566882,7 +566882,7 @@ ${error2.message}`;
|
|
|
566882
566882
|
};
|
|
566883
566883
|
exports.loadJson = loadJson;
|
|
566884
566884
|
var yaml2;
|
|
566885
|
-
var loadYaml2 = function
|
|
566885
|
+
var loadYaml2 = function loadYaml3(filepath, content) {
|
|
566886
566886
|
if (yaml2 === undefined) {
|
|
566887
566887
|
yaml2 = require_js_yaml();
|
|
566888
566888
|
}
|
|
@@ -566896,7 +566896,7 @@ ${error2.message}`;
|
|
|
566896
566896
|
};
|
|
566897
566897
|
exports.loadYaml = loadYaml2;
|
|
566898
566898
|
var typescript;
|
|
566899
|
-
var loadTsSync = function
|
|
566899
|
+
var loadTsSync = function loadTsSync2(filepath, content) {
|
|
566900
566900
|
if (typescript === undefined) {
|
|
566901
566901
|
typescript = require_typescript2();
|
|
566902
566902
|
}
|
|
@@ -566924,7 +566924,7 @@ ${error2.message}`;
|
|
|
566924
566924
|
}
|
|
566925
566925
|
};
|
|
566926
566926
|
exports.loadTsSync = loadTsSync;
|
|
566927
|
-
var loadTs = async function
|
|
566927
|
+
var loadTs = async function loadTs2(filepath, content) {
|
|
566928
566928
|
if (typescript === undefined) {
|
|
566929
566929
|
typescript = (await Promise.resolve().then(() => __toESM(require_typescript2()))).default;
|
|
566930
566930
|
}
|
|
@@ -567717,7 +567717,7 @@ var require_dist23 = __commonJS((exports) => {
|
|
|
567717
567717
|
var Explorer_js_1 = require_Explorer();
|
|
567718
567718
|
var ExplorerSync_js_1 = require_ExplorerSync();
|
|
567719
567719
|
var util_1 = require_util5();
|
|
567720
|
-
var identity = function
|
|
567720
|
+
var identity = function identity2(x8) {
|
|
567721
567721
|
return x8;
|
|
567722
567722
|
};
|
|
567723
567723
|
function getUserDefinedOptionsFromMetaConfig() {
|
|
@@ -600114,7 +600114,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
600114
600114
|
const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral");
|
|
600115
600115
|
const unaryOperator = (0, _utils.assertOneOf)("-");
|
|
600116
600116
|
const literal2 = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
|
|
600117
|
-
const validator = function
|
|
600117
|
+
const validator = function validator2(parent, key2, node) {
|
|
600118
600118
|
if ((0, _is.default)("UnaryExpression", node)) {
|
|
600119
600119
|
unaryOperator(node, "operator", node.operator);
|
|
600120
600120
|
unaryExpression(node, "argument", node.argument);
|
|
@@ -609006,7 +609006,7 @@ var require_eventemitter3 = __commonJS((exports, module3) => {
|
|
|
609006
609006
|
}
|
|
609007
609007
|
return true;
|
|
609008
609008
|
};
|
|
609009
|
-
EventEmitter.prototype.on = function
|
|
609009
|
+
EventEmitter.prototype.on = function on10(event, fn9, context) {
|
|
609010
609010
|
return addListener(this, event, fn9, context, false);
|
|
609011
609011
|
};
|
|
609012
609012
|
EventEmitter.prototype.once = function once(event, fn9, context) {
|
|
@@ -610844,7 +610844,7 @@ var require_parse8 = __commonJS((exports, module3) => {
|
|
|
610844
610844
|
return typeof arg2 === "undefined" ? prev : prev.concat(arg2);
|
|
610845
610845
|
}, []);
|
|
610846
610846
|
}
|
|
610847
|
-
module3.exports = function
|
|
610847
|
+
module3.exports = function parse8(s5, env4, opts) {
|
|
610848
610848
|
var mapped = parseInternal(s5, env4, opts);
|
|
610849
610849
|
if (typeof env4 !== "function") {
|
|
610850
610850
|
return mapped;
|
|
@@ -611529,7 +611529,7 @@ var require_trace_mapping_umd = __commonJS((exports, module3) => {
|
|
|
611529
611529
|
var __getOwnPropNames4 = Object.getOwnPropertyNames;
|
|
611530
611530
|
var __getProtoOf4 = Object.getPrototypeOf;
|
|
611531
611531
|
var __hasOwnProp4 = Object.prototype.hasOwnProperty;
|
|
611532
|
-
var __commonJS3 = (cb2, mod) => function
|
|
611532
|
+
var __commonJS3 = (cb2, mod) => function __require3() {
|
|
611533
611533
|
return mod || (0, cb2[__getOwnPropNames4(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
611534
611534
|
};
|
|
611535
611535
|
var __export4 = (target, all) => {
|
|
@@ -612058,7 +612058,7 @@ var require_gen_mapping_umd = __commonJS((exports, module3) => {
|
|
|
612058
612058
|
var __getOwnPropNames4 = Object.getOwnPropertyNames;
|
|
612059
612059
|
var __getProtoOf4 = Object.getPrototypeOf;
|
|
612060
612060
|
var __hasOwnProp4 = Object.prototype.hasOwnProperty;
|
|
612061
|
-
var __commonJS3 = (cb2, mod) => function
|
|
612061
|
+
var __commonJS3 = (cb2, mod) => function __require3() {
|
|
612062
612062
|
return mod || (0, cb2[__getOwnPropNames4(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
612063
612063
|
};
|
|
612064
612064
|
var __export4 = (target, all) => {
|
|
@@ -619418,9 +619418,9 @@ GFS4: `);
|
|
|
619418
619418
|
function readdir(path15, options8, cb2) {
|
|
619419
619419
|
if (typeof options8 === "function")
|
|
619420
619420
|
cb2 = options8, options8 = null;
|
|
619421
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$
|
|
619421
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path16, options9, cb3, startTime) {
|
|
619422
619422
|
return fs$readdir(path16, fs$readdirCallback(path16, options9, cb3, startTime));
|
|
619423
|
-
} : function go$
|
|
619423
|
+
} : function go$readdir2(path16, options9, cb3, startTime) {
|
|
619424
619424
|
return fs$readdir(path16, options9, fs$readdirCallback(path16, options9, cb3, startTime));
|
|
619425
619425
|
};
|
|
619426
619426
|
return go$readdir(path15, options8, cb2);
|
|
@@ -620581,7 +620581,7 @@ var require_empty = __commonJS((exports, module3) => {
|
|
|
620581
620581
|
var path15 = __require("path");
|
|
620582
620582
|
var mkdir = require_mkdirs();
|
|
620583
620583
|
var remove = require_remove();
|
|
620584
|
-
var emptyDir = u24(async function
|
|
620584
|
+
var emptyDir = u24(async function emptyDir2(dir) {
|
|
620585
620585
|
let items;
|
|
620586
620586
|
try {
|
|
620587
620587
|
items = await fs12.readdir(dir);
|
|
@@ -622429,7 +622429,7 @@ var require_build2 = __commonJS((exports, module3) => {
|
|
|
622429
622429
|
;
|
|
622430
622430
|
}
|
|
622431
622431
|
});
|
|
622432
|
-
var yargsParser2 = function
|
|
622432
|
+
var yargsParser2 = function Parser2(args, opts) {
|
|
622433
622433
|
const result = parser2.parse(args.slice(), opts);
|
|
622434
622434
|
return result.argv;
|
|
622435
622435
|
};
|
|
@@ -623399,7 +623399,7 @@ var require_make_error = __commonJS((exports, module3) => {
|
|
|
623399
623399
|
var defineProperty = Object.defineProperty;
|
|
623400
623400
|
var captureStackTrace2 = Error.captureStackTrace;
|
|
623401
623401
|
if (captureStackTrace2 === undefined) {
|
|
623402
|
-
captureStackTrace2 = function
|
|
623402
|
+
captureStackTrace2 = function captureStackTrace3(error49) {
|
|
623403
623403
|
var container = new Error;
|
|
623404
623404
|
defineProperty(error49, "stack", {
|
|
623405
623405
|
configurable: true,
|
|
@@ -625966,7 +625966,7 @@ var require_acorn = __commonJS((exports, module3) => {
|
|
|
625966
625966
|
}
|
|
625967
625967
|
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
625968
625968
|
}
|
|
625969
|
-
var TokenType = function
|
|
625969
|
+
var TokenType = function TokenType2(label2, conf) {
|
|
625970
625970
|
if (conf === undefined)
|
|
625971
625971
|
conf = {};
|
|
625972
625972
|
this.label = label2;
|
|
@@ -626109,14 +626109,14 @@ var require_acorn = __commonJS((exports, module3) => {
|
|
|
626109
626109
|
return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
|
|
626110
626110
|
}
|
|
626111
626111
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
626112
|
-
var Position = function
|
|
626112
|
+
var Position = function Position2(line3, col) {
|
|
626113
626113
|
this.line = line3;
|
|
626114
626114
|
this.column = col;
|
|
626115
626115
|
};
|
|
626116
626116
|
Position.prototype.offset = function offset(n64) {
|
|
626117
626117
|
return new Position(this.line, this.column + n64);
|
|
626118
626118
|
};
|
|
626119
|
-
var SourceLocation = function
|
|
626119
|
+
var SourceLocation = function SourceLocation2(p26, start, end) {
|
|
626120
626120
|
this.start = start;
|
|
626121
626121
|
this.end = end;
|
|
626122
626122
|
if (p26.sourceFile !== null) {
|
|
@@ -626211,7 +626211,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
626211
626211
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator2 ? SCOPE_GENERATOR : 0);
|
|
626212
626212
|
}
|
|
626213
626213
|
var BIND_NONE = 0, BIND_VAR = 1, BIND_LEXICAL = 2, BIND_FUNCTION = 3, BIND_SIMPLE_CATCH = 4, BIND_OUTSIDE = 5;
|
|
626214
|
-
var Parser2 = function
|
|
626214
|
+
var Parser2 = function Parser3(options8, input, startPos) {
|
|
626215
626215
|
this.options = options8 = getOptions(options8);
|
|
626216
626216
|
this.sourceFile = options8.sourceFile;
|
|
626217
626217
|
this.keywords = wordsRegexp(keywords$1[options8.ecmaVersion >= 6 ? 6 : options8.sourceType === "module" ? "5module" : 5]);
|
|
@@ -626261,7 +626261,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
626261
626261
|
this.privateNameStack = [];
|
|
626262
626262
|
};
|
|
626263
626263
|
var prototypeAccessors = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
|
|
626264
|
-
Parser2.prototype.parse = function
|
|
626264
|
+
Parser2.prototype.parse = function parse13() {
|
|
626265
626265
|
var node = this.options.program || this.startNode();
|
|
626266
626266
|
this.nextToken();
|
|
626267
626267
|
return this.parseTopLevel(node);
|
|
@@ -626312,7 +626312,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
626312
626312
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
626313
626313
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
626314
626314
|
};
|
|
626315
|
-
Parser2.extend = function
|
|
626315
|
+
Parser2.extend = function extend2() {
|
|
626316
626316
|
var plugins2 = [], len = arguments.length;
|
|
626317
626317
|
while (len--)
|
|
626318
626318
|
plugins2[len] = arguments[len];
|
|
@@ -626322,15 +626322,15 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
626322
626322
|
}
|
|
626323
626323
|
return cls;
|
|
626324
626324
|
};
|
|
626325
|
-
Parser2.parse = function
|
|
626325
|
+
Parser2.parse = function parse13(input, options8) {
|
|
626326
626326
|
return new this(options8, input).parse();
|
|
626327
626327
|
};
|
|
626328
|
-
Parser2.parseExpressionAt = function
|
|
626328
|
+
Parser2.parseExpressionAt = function parseExpressionAt2(input, pos2, options8) {
|
|
626329
626329
|
var parser2 = new this(options8, input, pos2);
|
|
626330
626330
|
parser2.nextToken();
|
|
626331
626331
|
return parser2.parseExpression();
|
|
626332
626332
|
};
|
|
626333
|
-
Parser2.tokenizer = function
|
|
626333
|
+
Parser2.tokenizer = function tokenizer2(input, options8) {
|
|
626334
626334
|
return new this(options8, input);
|
|
626335
626335
|
};
|
|
626336
626336
|
Object.defineProperties(Parser2.prototype, prototypeAccessors);
|
|
@@ -626417,7 +626417,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
626417
626417
|
pp$9.unexpected = function(pos2) {
|
|
626418
626418
|
this.raise(pos2 != null ? pos2 : this.start, "Unexpected token");
|
|
626419
626419
|
};
|
|
626420
|
-
var DestructuringErrors = function
|
|
626420
|
+
var DestructuringErrors = function DestructuringErrors2() {
|
|
626421
626421
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
626422
626422
|
};
|
|
626423
626423
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
|
@@ -627827,7 +627827,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
627827
627827
|
this.checkLValPattern(expr, bindingType, checkClashes);
|
|
627828
627828
|
}
|
|
627829
627829
|
};
|
|
627830
|
-
var TokContext = function
|
|
627830
|
+
var TokContext = function TokContext2(token2, isExpr, preserveSpace, override, generator2) {
|
|
627831
627831
|
this.token = token2;
|
|
627832
627832
|
this.isExpr = !!isExpr;
|
|
627833
627833
|
this.preserveSpace = !!preserveSpace;
|
|
@@ -629035,7 +629035,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
629035
629035
|
}
|
|
629036
629036
|
};
|
|
629037
629037
|
var pp$3 = Parser2.prototype;
|
|
629038
|
-
var Scope = function
|
|
629038
|
+
var Scope = function Scope2(flags) {
|
|
629039
629039
|
this.flags = flags;
|
|
629040
629040
|
this.var = [];
|
|
629041
629041
|
this.lexical = [];
|
|
@@ -629114,7 +629114,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
629114
629114
|
}
|
|
629115
629115
|
}
|
|
629116
629116
|
};
|
|
629117
|
-
var Node = function
|
|
629117
|
+
var Node = function Node2(parser2, pos2, loc) {
|
|
629118
629118
|
this.type = "";
|
|
629119
629119
|
this.start = pos2;
|
|
629120
629120
|
this.end = 0;
|
|
@@ -629218,7 +629218,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
629218
629218
|
buildUnicodeData(ecmaVersion);
|
|
629219
629219
|
}
|
|
629220
629220
|
var pp$1 = Parser2.prototype;
|
|
629221
|
-
var BranchID = function
|
|
629221
|
+
var BranchID = function BranchID2(parent, base2) {
|
|
629222
629222
|
this.parent = parent;
|
|
629223
629223
|
this.base = base2 || this;
|
|
629224
629224
|
};
|
|
@@ -629235,7 +629235,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
629235
629235
|
BranchID.prototype.sibling = function sibling() {
|
|
629236
629236
|
return new BranchID(this.parent, this.base);
|
|
629237
629237
|
};
|
|
629238
|
-
var RegExpValidationState = function
|
|
629238
|
+
var RegExpValidationState = function RegExpValidationState2(parser2) {
|
|
629239
629239
|
this.parser = parser2;
|
|
629240
629240
|
this.validFlags = "gim" + (parser2.options.ecmaVersion >= 6 ? "uy" : "") + (parser2.options.ecmaVersion >= 9 ? "s" : "") + (parser2.options.ecmaVersion >= 13 ? "d" : "") + (parser2.options.ecmaVersion >= 15 ? "v" : "");
|
|
629241
629241
|
this.unicodeProperties = data[parser2.options.ecmaVersion >= 14 ? 14 : parser2.options.ecmaVersion];
|
|
@@ -629255,7 +629255,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
629255
629255
|
this.backReferenceNames = [];
|
|
629256
629256
|
this.branchID = null;
|
|
629257
629257
|
};
|
|
629258
|
-
RegExpValidationState.prototype.reset = function
|
|
629258
|
+
RegExpValidationState.prototype.reset = function reset2(start, pattern, flags) {
|
|
629259
629259
|
var unicodeSets = flags.indexOf("v") !== -1;
|
|
629260
629260
|
var unicode2 = flags.indexOf("u") !== -1;
|
|
629261
629261
|
this.start = start | 0;
|
|
@@ -629274,7 +629274,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
629274
629274
|
RegExpValidationState.prototype.raise = function raise(message) {
|
|
629275
629275
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
629276
629276
|
};
|
|
629277
|
-
RegExpValidationState.prototype.at = function
|
|
629277
|
+
RegExpValidationState.prototype.at = function at12(i8, forceU) {
|
|
629278
629278
|
if (forceU === undefined)
|
|
629279
629279
|
forceU = false;
|
|
629280
629280
|
var s5 = this.source;
|
|
@@ -630311,7 +630311,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
630311
630311
|
}
|
|
630312
630312
|
return true;
|
|
630313
630313
|
};
|
|
630314
|
-
var Token = function
|
|
630314
|
+
var Token = function Token2(p26) {
|
|
630315
630315
|
this.type = p26.type;
|
|
630316
630316
|
this.value = p26.value;
|
|
630317
630317
|
this.start = p26.start;
|
|
@@ -631181,9 +631181,9 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631181
631181
|
if (!baseVisitor) {
|
|
631182
631182
|
baseVisitor = base2;
|
|
631183
631183
|
}
|
|
631184
|
-
(function
|
|
631184
|
+
(function c8(node2, st9, override2) {
|
|
631185
631185
|
var type18 = override2 || node2.type;
|
|
631186
|
-
baseVisitor[type18](node2, st9,
|
|
631186
|
+
baseVisitor[type18](node2, st9, c8);
|
|
631187
631187
|
if (visitors[type18]) {
|
|
631188
631188
|
visitors[type18](node2, st9);
|
|
631189
631189
|
}
|
|
@@ -631194,13 +631194,13 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631194
631194
|
if (!baseVisitor) {
|
|
631195
631195
|
baseVisitor = base2;
|
|
631196
631196
|
}
|
|
631197
|
-
(function
|
|
631197
|
+
(function c8(node2, st9, override2) {
|
|
631198
631198
|
var type18 = override2 || node2.type;
|
|
631199
631199
|
var isNew = node2 !== ancestors[ancestors.length - 1];
|
|
631200
631200
|
if (isNew) {
|
|
631201
631201
|
ancestors.push(node2);
|
|
631202
631202
|
}
|
|
631203
|
-
baseVisitor[type18](node2, st9,
|
|
631203
|
+
baseVisitor[type18](node2, st9, c8);
|
|
631204
631204
|
if (visitors[type18]) {
|
|
631205
631205
|
visitors[type18](node2, st9 || ancestors, ancestors);
|
|
631206
631206
|
}
|
|
@@ -631211,8 +631211,8 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631211
631211
|
}
|
|
631212
631212
|
function recursive(node, state, funcs, baseVisitor, override) {
|
|
631213
631213
|
var visitor = funcs ? make(funcs, baseVisitor || undefined) : baseVisitor;
|
|
631214
|
-
(function
|
|
631215
|
-
visitor[override2 || node2.type](node2, st9,
|
|
631214
|
+
(function c8(node2, st9, override2) {
|
|
631215
|
+
visitor[override2 || node2.type](node2, st9, c8);
|
|
631216
631216
|
})(node, state, override);
|
|
631217
631217
|
}
|
|
631218
631218
|
function makeTest(test) {
|
|
@@ -631228,7 +631228,7 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631228
631228
|
return test;
|
|
631229
631229
|
}
|
|
631230
631230
|
}
|
|
631231
|
-
var Found = function
|
|
631231
|
+
var Found = function Found2(node, state) {
|
|
631232
631232
|
this.node = node;
|
|
631233
631233
|
this.state = state;
|
|
631234
631234
|
};
|
|
@@ -631237,9 +631237,9 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631237
631237
|
baseVisitor = base2;
|
|
631238
631238
|
}
|
|
631239
631239
|
var last;
|
|
631240
|
-
(function
|
|
631240
|
+
(function c8(node2, st9, override2) {
|
|
631241
631241
|
var type18 = override2 || node2.type;
|
|
631242
|
-
baseVisitor[type18](node2, st9,
|
|
631242
|
+
baseVisitor[type18](node2, st9, c8);
|
|
631243
631243
|
if (last !== node2) {
|
|
631244
631244
|
callback(node2, st9, type18);
|
|
631245
631245
|
last = node2;
|
|
@@ -631251,13 +631251,13 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631251
631251
|
baseVisitor = base2;
|
|
631252
631252
|
}
|
|
631253
631253
|
var ancestors = [], last;
|
|
631254
|
-
(function
|
|
631254
|
+
(function c8(node2, st9, override) {
|
|
631255
631255
|
var type18 = override || node2.type;
|
|
631256
631256
|
var isNew = node2 !== ancestors[ancestors.length - 1];
|
|
631257
631257
|
if (isNew) {
|
|
631258
631258
|
ancestors.push(node2);
|
|
631259
631259
|
}
|
|
631260
|
-
baseVisitor[type18](node2, st9,
|
|
631260
|
+
baseVisitor[type18](node2, st9, c8);
|
|
631261
631261
|
if (last !== node2) {
|
|
631262
631262
|
callback(node2, st9 || ancestors, ancestors, type18);
|
|
631263
631263
|
last = node2;
|
|
@@ -631273,10 +631273,10 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631273
631273
|
}
|
|
631274
631274
|
test = makeTest(test);
|
|
631275
631275
|
try {
|
|
631276
|
-
(function
|
|
631276
|
+
(function c8(node2, st9, override) {
|
|
631277
631277
|
var type18 = override || node2.type;
|
|
631278
631278
|
if ((start == null || node2.start <= start) && (end == null || node2.end >= end)) {
|
|
631279
|
-
baseVisitor[type18](node2, st9,
|
|
631279
|
+
baseVisitor[type18](node2, st9, c8);
|
|
631280
631280
|
}
|
|
631281
631281
|
if ((start == null || node2.start === start) && (end == null || node2.end === end) && test(type18, node2)) {
|
|
631282
631282
|
throw new Found(node2, st9);
|
|
@@ -631295,12 +631295,12 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631295
631295
|
baseVisitor = base2;
|
|
631296
631296
|
}
|
|
631297
631297
|
try {
|
|
631298
|
-
(function
|
|
631298
|
+
(function c8(node2, st9, override) {
|
|
631299
631299
|
var type18 = override || node2.type;
|
|
631300
631300
|
if (node2.start > pos2 || node2.end < pos2) {
|
|
631301
631301
|
return;
|
|
631302
631302
|
}
|
|
631303
|
-
baseVisitor[type18](node2, st9,
|
|
631303
|
+
baseVisitor[type18](node2, st9, c8);
|
|
631304
631304
|
if (test(type18, node2)) {
|
|
631305
631305
|
throw new Found(node2, st9);
|
|
631306
631306
|
}
|
|
@@ -631318,7 +631318,7 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631318
631318
|
baseVisitor = base2;
|
|
631319
631319
|
}
|
|
631320
631320
|
try {
|
|
631321
|
-
(function
|
|
631321
|
+
(function c8(node2, st9, override) {
|
|
631322
631322
|
if (node2.end < pos2) {
|
|
631323
631323
|
return;
|
|
631324
631324
|
}
|
|
@@ -631326,7 +631326,7 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631326
631326
|
if (node2.start >= pos2 && test(type18, node2)) {
|
|
631327
631327
|
throw new Found(node2, st9);
|
|
631328
631328
|
}
|
|
631329
|
-
baseVisitor[type18](node2, st9,
|
|
631329
|
+
baseVisitor[type18](node2, st9, c8);
|
|
631330
631330
|
})(node, state);
|
|
631331
631331
|
} catch (e8) {
|
|
631332
631332
|
if (e8 instanceof Found) {
|
|
@@ -631341,7 +631341,7 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631341
631341
|
baseVisitor = base2;
|
|
631342
631342
|
}
|
|
631343
631343
|
var max;
|
|
631344
|
-
(function
|
|
631344
|
+
(function c8(node2, st9, override) {
|
|
631345
631345
|
if (node2.start > pos2) {
|
|
631346
631346
|
return;
|
|
631347
631347
|
}
|
|
@@ -631349,7 +631349,7 @@ var require_walk = __commonJS((exports, module3) => {
|
|
|
631349
631349
|
if (node2.end <= pos2 && (!max || max.node.end < node2.end) && test(type18, node2)) {
|
|
631350
631350
|
max = new Found(node2, st9);
|
|
631351
631351
|
}
|
|
631352
|
-
baseVisitor[type18](node2, st9,
|
|
631352
|
+
baseVisitor[type18](node2, st9, c8);
|
|
631353
631353
|
})(node, state);
|
|
631354
631354
|
return max;
|
|
631355
631355
|
}
|
|
@@ -631846,7 +631846,7 @@ var require_base2 = __commonJS((exports) => {
|
|
|
631846
631846
|
exports.default = Diff2;
|
|
631847
631847
|
function Diff2() {}
|
|
631848
631848
|
Diff2.prototype = {
|
|
631849
|
-
diff: function
|
|
631849
|
+
diff: function diff2(oldString, newString) {
|
|
631850
631850
|
var options8 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
631851
631851
|
var callback = options8.callback;
|
|
631852
631852
|
if (typeof options8 === "function") {
|
|
@@ -631913,13 +631913,13 @@ var require_base2 = __commonJS((exports) => {
|
|
|
631913
631913
|
editLength++;
|
|
631914
631914
|
}
|
|
631915
631915
|
if (callback) {
|
|
631916
|
-
(function
|
|
631916
|
+
(function exec2() {
|
|
631917
631917
|
setTimeout(function() {
|
|
631918
631918
|
if (editLength > maxEditLength) {
|
|
631919
631919
|
return callback();
|
|
631920
631920
|
}
|
|
631921
631921
|
if (!execEditLength()) {
|
|
631922
|
-
|
|
631922
|
+
exec2();
|
|
631923
631923
|
}
|
|
631924
631924
|
}, 0);
|
|
631925
631925
|
})();
|
|
@@ -631982,10 +631982,10 @@ var require_base2 = __commonJS((exports) => {
|
|
|
631982
631982
|
castInput: function castInput(value2) {
|
|
631983
631983
|
return value2;
|
|
631984
631984
|
},
|
|
631985
|
-
tokenize: function
|
|
631985
|
+
tokenize: function tokenize3(value2) {
|
|
631986
631986
|
return value2.split("");
|
|
631987
631987
|
},
|
|
631988
|
-
join: function
|
|
631988
|
+
join: function join3(chars) {
|
|
631989
631989
|
return chars.join("");
|
|
631990
631990
|
}
|
|
631991
631991
|
};
|
|
@@ -632218,11 +632218,11 @@ var require_json3 = __commonJS((exports) => {
|
|
|
632218
632218
|
}
|
|
632219
632219
|
function _typeof(obj) {
|
|
632220
632220
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
632221
|
-
_typeof = function
|
|
632221
|
+
_typeof = function _typeof2(obj2) {
|
|
632222
632222
|
return typeof obj2;
|
|
632223
632223
|
};
|
|
632224
632224
|
} else {
|
|
632225
|
-
_typeof = function
|
|
632225
|
+
_typeof = function _typeof2(obj2) {
|
|
632226
632226
|
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
632227
632227
|
};
|
|
632228
632228
|
}
|
|
@@ -632633,7 +632633,7 @@ var require_create = __commonJS((exports) => {
|
|
|
632633
632633
|
}
|
|
632634
632634
|
var hunks = [];
|
|
632635
632635
|
var oldRangeStart = 0, newRangeStart = 0, curRange = [], oldLine = 1, newLine = 1;
|
|
632636
|
-
var _loop = function
|
|
632636
|
+
var _loop = function _loop2(i8) {
|
|
632637
632637
|
var current = diff2[i8], lines = current.lines || current.value.replace(/\n$/, "").split(`
|
|
632638
632638
|
`);
|
|
632639
632639
|
current.lines = lines;
|
|
@@ -637445,7 +637445,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
|
|
|
637445
637445
|
emitter.on(ev2, cb2);
|
|
637446
637446
|
return remove;
|
|
637447
637447
|
};
|
|
637448
|
-
unload2 = function
|
|
637448
|
+
unload2 = function unload3() {
|
|
637449
637449
|
if (!loaded || !processOk2(global.process)) {
|
|
637450
637450
|
return;
|
|
637451
637451
|
}
|
|
@@ -637460,7 +637460,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
|
|
|
637460
637460
|
emitter.count -= 1;
|
|
637461
637461
|
};
|
|
637462
637462
|
module3.exports.unload = unload2;
|
|
637463
|
-
emit = function
|
|
637463
|
+
emit = function emit2(event, code, signal) {
|
|
637464
637464
|
if (emitter.emitted[event]) {
|
|
637465
637465
|
return;
|
|
637466
637466
|
}
|
|
@@ -637489,7 +637489,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
|
|
|
637489
637489
|
return signals2;
|
|
637490
637490
|
};
|
|
637491
637491
|
loaded = false;
|
|
637492
|
-
load2 = function
|
|
637492
|
+
load2 = function load3() {
|
|
637493
637493
|
if (loaded || !processOk2(global.process)) {
|
|
637494
637494
|
return;
|
|
637495
637495
|
}
|
|
@@ -637508,7 +637508,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
|
|
|
637508
637508
|
};
|
|
637509
637509
|
module3.exports.load = load2;
|
|
637510
637510
|
originalProcessReallyExit = process6.reallyExit;
|
|
637511
|
-
processReallyExit = function
|
|
637511
|
+
processReallyExit = function processReallyExit2(code) {
|
|
637512
637512
|
if (!processOk2(global.process)) {
|
|
637513
637513
|
return;
|
|
637514
637514
|
}
|
|
@@ -637518,7 +637518,7 @@ var require_signal_exit = __commonJS((exports, module3) => {
|
|
|
637518
637518
|
originalProcessReallyExit.call(process6, process6.exitCode);
|
|
637519
637519
|
};
|
|
637520
637520
|
originalProcessEmit = process6.emit;
|
|
637521
|
-
processEmit = function
|
|
637521
|
+
processEmit = function processEmit2(ev2, arg2) {
|
|
637522
637522
|
if (ev2 === "exit" && processOk2(global.process)) {
|
|
637523
637523
|
if (arg2 !== undefined) {
|
|
637524
637524
|
process6.exitCode = arg2;
|
|
@@ -639516,12 +639516,12 @@ var require_wcwidth = __commonJS((exports, module3) => {
|
|
|
639516
639516
|
nul: 0,
|
|
639517
639517
|
control: 0
|
|
639518
639518
|
};
|
|
639519
|
-
module3.exports = function
|
|
639519
|
+
module3.exports = function wcwidth2(str2) {
|
|
639520
639520
|
return wcswidth(str2, DEFAULTS);
|
|
639521
639521
|
};
|
|
639522
639522
|
module3.exports.config = function(opts) {
|
|
639523
639523
|
opts = defaults(opts || {}, DEFAULTS);
|
|
639524
|
-
return function
|
|
639524
|
+
return function wcwidth2(str2) {
|
|
639525
639525
|
return wcswidth(str2, opts);
|
|
639526
639526
|
};
|
|
639527
639527
|
};
|
|
@@ -639660,7 +639660,7 @@ var require_buffer_list = __commonJS((exports, module3) => {
|
|
|
639660
639660
|
}
|
|
639661
639661
|
_createClass(BufferList, [{
|
|
639662
639662
|
key: "push",
|
|
639663
|
-
value: function
|
|
639663
|
+
value: function push2(v25) {
|
|
639664
639664
|
var entry = {
|
|
639665
639665
|
data: v25,
|
|
639666
639666
|
next: null
|
|
@@ -639705,7 +639705,7 @@ var require_buffer_list = __commonJS((exports, module3) => {
|
|
|
639705
639705
|
}
|
|
639706
639706
|
}, {
|
|
639707
639707
|
key: "join",
|
|
639708
|
-
value: function
|
|
639708
|
+
value: function join3(s5) {
|
|
639709
639709
|
if (this.length === 0)
|
|
639710
639710
|
return "";
|
|
639711
639711
|
var p26 = this.head;
|
|
@@ -639814,7 +639814,7 @@ var require_buffer_list = __commonJS((exports, module3) => {
|
|
|
639814
639814
|
}
|
|
639815
639815
|
}, {
|
|
639816
639816
|
key: custom2,
|
|
639817
|
-
value: function
|
|
639817
|
+
value: function value2(_8, options8) {
|
|
639818
639818
|
return inspect4(this, _objectSpread(_objectSpread({}, options8), {}, {
|
|
639819
639819
|
depth: 0,
|
|
639820
639820
|
customInspect: false
|
|
@@ -640182,7 +640182,7 @@ var require__stream_writable = __commonJS((exports, module3) => {
|
|
|
640182
640182
|
if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") {
|
|
640183
640183
|
realHasInstance = Function.prototype[Symbol.hasInstance];
|
|
640184
640184
|
Object.defineProperty(Writable2, Symbol.hasInstance, {
|
|
640185
|
-
value: function
|
|
640185
|
+
value: function value2(object2) {
|
|
640186
640186
|
if (realHasInstance.call(this, object2))
|
|
640187
640187
|
return true;
|
|
640188
640188
|
if (this !== Writable2)
|
|
@@ -640191,7 +640191,7 @@ var require__stream_writable = __commonJS((exports, module3) => {
|
|
|
640191
640191
|
}
|
|
640192
640192
|
});
|
|
640193
640193
|
} else {
|
|
640194
|
-
realHasInstance = function
|
|
640194
|
+
realHasInstance = function realHasInstance2(object2) {
|
|
640195
640195
|
return object2 instanceof this;
|
|
640196
640196
|
};
|
|
640197
640197
|
}
|
|
@@ -640550,7 +640550,7 @@ var require__stream_writable = __commonJS((exports, module3) => {
|
|
|
640550
640550
|
}
|
|
640551
640551
|
return this._writableState.destroyed;
|
|
640552
640552
|
},
|
|
640553
|
-
set: function
|
|
640553
|
+
set: function set3(value2) {
|
|
640554
640554
|
if (!this._writableState) {
|
|
640555
640555
|
return;
|
|
640556
640556
|
}
|
|
@@ -640638,7 +640638,7 @@ var require__stream_duplex = __commonJS((exports, module3) => {
|
|
|
640638
640638
|
}
|
|
640639
640639
|
return this._readableState.destroyed && this._writableState.destroyed;
|
|
640640
640640
|
},
|
|
640641
|
-
set: function
|
|
640641
|
+
set: function set3(value2) {
|
|
640642
640642
|
if (this._readableState === undefined || this._writableState === undefined) {
|
|
640643
640643
|
return;
|
|
640644
640644
|
}
|
|
@@ -640989,28 +640989,28 @@ var require_end_of_stream = __commonJS((exports, module3) => {
|
|
|
640989
640989
|
callback = once(callback || noop3);
|
|
640990
640990
|
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
640991
640991
|
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
640992
|
-
var onlegacyfinish = function
|
|
640992
|
+
var onlegacyfinish = function onlegacyfinish2() {
|
|
640993
640993
|
if (!stream.writable)
|
|
640994
640994
|
onfinish();
|
|
640995
640995
|
};
|
|
640996
640996
|
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
640997
|
-
var onfinish = function
|
|
640997
|
+
var onfinish = function onfinish2() {
|
|
640998
640998
|
writable = false;
|
|
640999
640999
|
writableEnded = true;
|
|
641000
641000
|
if (!readable)
|
|
641001
641001
|
callback.call(stream);
|
|
641002
641002
|
};
|
|
641003
641003
|
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
641004
|
-
var onend = function
|
|
641004
|
+
var onend = function onend2() {
|
|
641005
641005
|
readable = false;
|
|
641006
641006
|
readableEnded = true;
|
|
641007
641007
|
if (!writable)
|
|
641008
641008
|
callback.call(stream);
|
|
641009
641009
|
};
|
|
641010
|
-
var onerror = function
|
|
641010
|
+
var onerror = function onerror2(err) {
|
|
641011
641011
|
callback.call(stream, err);
|
|
641012
641012
|
};
|
|
641013
|
-
var onclose = function
|
|
641013
|
+
var onclose = function onclose2() {
|
|
641014
641014
|
var err;
|
|
641015
641015
|
if (readable && !readableEnded) {
|
|
641016
641016
|
if (!stream._readableState || !stream._readableState.ended)
|
|
@@ -641023,7 +641023,7 @@ var require_end_of_stream = __commonJS((exports, module3) => {
|
|
|
641023
641023
|
return callback.call(stream, err);
|
|
641024
641024
|
}
|
|
641025
641025
|
};
|
|
641026
|
-
var onrequest = function
|
|
641026
|
+
var onrequest = function onrequest2() {
|
|
641027
641027
|
stream.req.on("finish", onfinish);
|
|
641028
641028
|
};
|
|
641029
641029
|
if (isRequest(stream)) {
|
|
@@ -641180,7 +641180,7 @@ var require_async_iterator = __commonJS((exports, module3) => {
|
|
|
641180
641180
|
});
|
|
641181
641181
|
});
|
|
641182
641182
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
641183
|
-
var createReadableStreamAsyncIterator = function
|
|
641183
|
+
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream) {
|
|
641184
641184
|
var _Object$create;
|
|
641185
641185
|
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
|
641186
641186
|
value: stream,
|
|
@@ -641198,7 +641198,7 @@ var require_async_iterator = __commonJS((exports, module3) => {
|
|
|
641198
641198
|
value: stream._readableState.endEmitted,
|
|
641199
641199
|
writable: true
|
|
641200
641200
|
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
641201
|
-
value: function
|
|
641201
|
+
value: function value2(resolve4, reject) {
|
|
641202
641202
|
var data = iterator[kStream].read();
|
|
641203
641203
|
if (data) {
|
|
641204
641204
|
iterator[kLastPromise] = null;
|
|
@@ -641369,7 +641369,7 @@ var require__stream_readable = __commonJS((exports, module3) => {
|
|
|
641369
641369
|
var Duplex;
|
|
641370
641370
|
Readable.ReadableState = ReadableState;
|
|
641371
641371
|
var EE = __require("events").EventEmitter;
|
|
641372
|
-
var EElistenerCount = function
|
|
641372
|
+
var EElistenerCount = function EElistenerCount2(emitter, type18) {
|
|
641373
641373
|
return emitter.listeners(type18).length;
|
|
641374
641374
|
};
|
|
641375
641375
|
var Stream = __require("stream");
|
|
@@ -641386,7 +641386,7 @@ var require__stream_readable = __commonJS((exports, module3) => {
|
|
|
641386
641386
|
if (debugUtil && debugUtil.debuglog) {
|
|
641387
641387
|
debug = debugUtil.debuglog("stream");
|
|
641388
641388
|
} else {
|
|
641389
|
-
debug = function
|
|
641389
|
+
debug = function debug2() {};
|
|
641390
641390
|
}
|
|
641391
641391
|
var BufferList = require_buffer_list();
|
|
641392
641392
|
var destroyImpl = require_destroy();
|
|
@@ -641474,7 +641474,7 @@ var require__stream_readable = __commonJS((exports, module3) => {
|
|
|
641474
641474
|
}
|
|
641475
641475
|
return this._readableState.destroyed;
|
|
641476
641476
|
},
|
|
641477
|
-
set: function
|
|
641477
|
+
set: function set3(value2) {
|
|
641478
641478
|
if (!this._readableState) {
|
|
641479
641479
|
return;
|
|
641480
641480
|
}
|
|
@@ -642068,7 +642068,7 @@ var require__stream_readable = __commonJS((exports, module3) => {
|
|
|
642068
642068
|
get: function get() {
|
|
642069
642069
|
return this._readableState.flowing;
|
|
642070
642070
|
},
|
|
642071
|
-
set: function
|
|
642071
|
+
set: function set3(state) {
|
|
642072
642072
|
if (this._readableState) {
|
|
642073
642073
|
this._readableState.flowing = state;
|
|
642074
642074
|
}
|
|
@@ -642396,7 +642396,7 @@ var require_BufferList = __commonJS((exports, module3) => {
|
|
|
642396
642396
|
BufferList.prototype._new = function _new(buf) {
|
|
642397
642397
|
return new BufferList(buf);
|
|
642398
642398
|
};
|
|
642399
|
-
BufferList.prototype._offset = function
|
|
642399
|
+
BufferList.prototype._offset = function _offset2(offset) {
|
|
642400
642400
|
if (offset === 0) {
|
|
642401
642401
|
return [0, 0];
|
|
642402
642402
|
}
|
|
@@ -642446,14 +642446,14 @@ var require_BufferList = __commonJS((exports, module3) => {
|
|
|
642446
642446
|
if (srcEnd <= 0) {
|
|
642447
642447
|
return dst || Buffer2.alloc(0);
|
|
642448
642448
|
}
|
|
642449
|
-
const
|
|
642449
|
+
const copy2 = !!dst;
|
|
642450
642450
|
const off = this._offset(srcStart);
|
|
642451
642451
|
const len = srcEnd - srcStart;
|
|
642452
642452
|
let bytes = len;
|
|
642453
|
-
let bufoff =
|
|
642453
|
+
let bufoff = copy2 && dstStart || 0;
|
|
642454
642454
|
let start = off[1];
|
|
642455
642455
|
if (srcStart === 0 && srcEnd === this.length) {
|
|
642456
|
-
if (!
|
|
642456
|
+
if (!copy2) {
|
|
642457
642457
|
return this._bufs.length === 1 ? this._bufs[0] : Buffer2.concat(this._bufs, this.length);
|
|
642458
642458
|
}
|
|
642459
642459
|
for (let i4 = 0;i4 < this._bufs.length; i4++) {
|
|
@@ -642463,9 +642463,9 @@ var require_BufferList = __commonJS((exports, module3) => {
|
|
|
642463
642463
|
return dst;
|
|
642464
642464
|
}
|
|
642465
642465
|
if (bytes <= this._bufs[off[0]].length - start) {
|
|
642466
|
-
return
|
|
642466
|
+
return copy2 ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) : this._bufs[off[0]].slice(start, start + bytes);
|
|
642467
642467
|
}
|
|
642468
|
-
if (!
|
|
642468
|
+
if (!copy2) {
|
|
642469
642469
|
dst = Buffer2.allocUnsafe(len);
|
|
642470
642470
|
}
|
|
642471
642471
|
for (let i4 = off[0];i4 < this._bufs.length; i4++) {
|
|
@@ -642687,7 +642687,7 @@ var require_bl = __commonJS((exports, module3) => {
|
|
|
642687
642687
|
}
|
|
642688
642688
|
if (typeof callback === "function") {
|
|
642689
642689
|
this._callback = callback;
|
|
642690
|
-
const piper = function
|
|
642690
|
+
const piper = function piper2(err) {
|
|
642691
642691
|
if (this._callback) {
|
|
642692
642692
|
this._callback(err);
|
|
642693
642693
|
this._callback = null;
|
|
@@ -649848,7 +649848,7 @@ GFS4: `);
|
|
|
649848
649848
|
}
|
|
649849
649849
|
});
|
|
649850
649850
|
}
|
|
649851
|
-
mkdirP.sync = function
|
|
649851
|
+
mkdirP.sync = function sync2(p26, opts, made) {
|
|
649852
649852
|
if (!opts || typeof opts !== "object") {
|
|
649853
649853
|
opts = { mode: opts };
|
|
649854
649854
|
}
|
|
@@ -649866,8 +649866,8 @@ GFS4: `);
|
|
|
649866
649866
|
} catch (err0) {
|
|
649867
649867
|
switch (err0.code) {
|
|
649868
649868
|
case "ENOENT":
|
|
649869
|
-
made =
|
|
649870
|
-
|
|
649869
|
+
made = sync2(path__default["default"].dirname(p26), opts, made);
|
|
649870
|
+
sync2(p26, opts, made);
|
|
649871
649871
|
break;
|
|
649872
649872
|
default:
|
|
649873
649873
|
var stat2;
|
|
@@ -649930,7 +649930,7 @@ GFS4: `);
|
|
|
649930
649930
|
splitRootRe = /^[\/]*/;
|
|
649931
649931
|
}
|
|
649932
649932
|
var splitRootRe;
|
|
649933
|
-
var realpathSync$1 = function
|
|
649933
|
+
var realpathSync$1 = function realpathSync3(p26, cache3) {
|
|
649934
649934
|
p26 = path__default["default"].resolve(p26);
|
|
649935
649935
|
if (cache3 && Object.prototype.hasOwnProperty.call(cache3, p26)) {
|
|
649936
649936
|
return cache3[p26];
|
|
@@ -649997,7 +649997,7 @@ GFS4: `);
|
|
|
649997
649997
|
cache3[original] = p26;
|
|
649998
649998
|
return p26;
|
|
649999
649999
|
};
|
|
650000
|
-
var realpath$1 = function
|
|
650000
|
+
var realpath$1 = function realpath2(p26, cache3, cb2) {
|
|
650001
650001
|
if (typeof cb2 !== "function") {
|
|
650002
650002
|
cb2 = maybeCallback(cache3);
|
|
650003
650003
|
cache3 = null;
|
|
@@ -650392,10 +650392,10 @@ GFS4: `);
|
|
|
650392
650392
|
if (!def || !Object.keys(def).length)
|
|
650393
650393
|
return minimatch;
|
|
650394
650394
|
var orig = minimatch;
|
|
650395
|
-
var m34 = function
|
|
650395
|
+
var m34 = function minimatch2(p26, pattern, options8) {
|
|
650396
650396
|
return orig.minimatch(p26, pattern, ext(def, options8));
|
|
650397
650397
|
};
|
|
650398
|
-
m34.Minimatch = function
|
|
650398
|
+
m34.Minimatch = function Minimatch2(pattern, options8) {
|
|
650399
650399
|
return new orig.Minimatch(pattern, ext(def, options8));
|
|
650400
650400
|
};
|
|
650401
650401
|
return m34;
|
|
@@ -650907,7 +650907,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
|
|
|
650907
650907
|
}
|
|
650908
650908
|
var inherits_browser = createCommonjsModule(function(module4) {
|
|
650909
650909
|
if (typeof Object.create === "function") {
|
|
650910
|
-
module4.exports = function
|
|
650910
|
+
module4.exports = function inherits2(ctor, superCtor) {
|
|
650911
650911
|
ctor.super_ = superCtor;
|
|
650912
650912
|
ctor.prototype = Object.create(superCtor.prototype, {
|
|
650913
650913
|
constructor: {
|
|
@@ -650919,7 +650919,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
|
|
|
650919
650919
|
});
|
|
650920
650920
|
};
|
|
650921
650921
|
} else {
|
|
650922
|
-
module4.exports = function
|
|
650922
|
+
module4.exports = function inherits2(ctor, superCtor) {
|
|
650923
650923
|
ctor.super_ = superCtor;
|
|
650924
650924
|
var TempCtor = function() {};
|
|
650925
650925
|
TempCtor.prototype = superCtor.prototype;
|
|
@@ -652434,7 +652434,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
|
|
|
652434
652434
|
var src3 = ref.resolvedPath;
|
|
652435
652435
|
var readOptions = ref.options;
|
|
652436
652436
|
return {
|
|
652437
|
-
to: function
|
|
652437
|
+
to: function to5() {
|
|
652438
652438
|
var ref2 = resolvePathAndOptions(arguments);
|
|
652439
652439
|
var dest = ref2.resolvedPath;
|
|
652440
652440
|
var writeOptions = ref2.options;
|
|
@@ -653509,7 +653509,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
|
|
|
653509
653509
|
throw err;
|
|
653510
653510
|
}
|
|
653511
653511
|
}
|
|
653512
|
-
function
|
|
653512
|
+
function fetch2(url4, dest, proxy) {
|
|
653513
653513
|
return new Promise((fulfil, reject) => {
|
|
653514
653514
|
let options8 = url4;
|
|
653515
653515
|
if (proxy) {
|
|
@@ -653525,7 +653525,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
|
|
|
653525
653525
|
if (code >= 400) {
|
|
653526
653526
|
reject({ code, message: response.statusMessage });
|
|
653527
653527
|
} else if (code >= 300) {
|
|
653528
|
-
|
|
653528
|
+
fetch2(response.headers.location, dest, proxy).then(fulfil, reject);
|
|
653529
653529
|
} else {
|
|
653530
653530
|
response.pipe(fs__default["default"].createWriteStream(dest)).on("finish", () => fulfil()).on("error", reject);
|
|
653531
653531
|
}
|
|
@@ -653781,7 +653781,7 @@ globstar while`, file2, fr9, pattern, pr9, swallowee);
|
|
|
653781
653781
|
code: "DOWNLOADING",
|
|
653782
653782
|
message: `downloading ${url4} to ${file2}`
|
|
653783
653783
|
});
|
|
653784
|
-
await
|
|
653784
|
+
await fetch2(url4, file2, this.proxy);
|
|
653785
653785
|
}
|
|
653786
653786
|
}
|
|
653787
653787
|
} catch (err) {
|
|
@@ -654986,7 +654986,7 @@ var require_mark = __commonJS((exports, module3) => {
|
|
|
654986
654986
|
this.line = line3;
|
|
654987
654987
|
this.column = column2;
|
|
654988
654988
|
}
|
|
654989
|
-
Mark.prototype.getSnippet = function
|
|
654989
|
+
Mark.prototype.getSnippet = function getSnippet2(indent4, maxLength) {
|
|
654990
654990
|
var head, start, tail, end, snippet;
|
|
654991
654991
|
if (!this.buffer)
|
|
654992
654992
|
return null;
|
|
@@ -655143,7 +655143,7 @@ var require_schema6 = __commonJS((exports, module3) => {
|
|
|
655143
655143
|
this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
|
|
655144
655144
|
}
|
|
655145
655145
|
Schema2.DEFAULT = null;
|
|
655146
|
-
Schema2.create = function
|
|
655146
|
+
Schema2.create = function createSchema3() {
|
|
655147
655147
|
var schemas3, types3;
|
|
655148
655148
|
switch (arguments.length) {
|
|
655149
655149
|
case 1:
|
|
@@ -658051,25 +658051,25 @@ var require_minimatch = __commonJS((exports, module3) => {
|
|
|
658051
658051
|
return minimatch;
|
|
658052
658052
|
}
|
|
658053
658053
|
var orig = minimatch;
|
|
658054
|
-
var m25 = function
|
|
658054
|
+
var m25 = function minimatch2(p26, pattern, options8) {
|
|
658055
658055
|
return orig(p26, pattern, ext(def, options8));
|
|
658056
658056
|
};
|
|
658057
|
-
m25.Minimatch = function
|
|
658057
|
+
m25.Minimatch = function Minimatch2(pattern, options8) {
|
|
658058
658058
|
return new orig.Minimatch(pattern, ext(def, options8));
|
|
658059
658059
|
};
|
|
658060
658060
|
m25.Minimatch.defaults = function defaults(options8) {
|
|
658061
658061
|
return orig.defaults(ext(def, options8)).Minimatch;
|
|
658062
658062
|
};
|
|
658063
|
-
m25.filter = function
|
|
658063
|
+
m25.filter = function filter3(pattern, options8) {
|
|
658064
658064
|
return orig.filter(pattern, ext(def, options8));
|
|
658065
658065
|
};
|
|
658066
658066
|
m25.defaults = function defaults(options8) {
|
|
658067
658067
|
return orig.defaults(ext(def, options8));
|
|
658068
658068
|
};
|
|
658069
|
-
m25.makeRe = function
|
|
658069
|
+
m25.makeRe = function makeRe2(pattern, options8) {
|
|
658070
658070
|
return orig.makeRe(pattern, ext(def, options8));
|
|
658071
658071
|
};
|
|
658072
|
-
m25.braceExpand = function
|
|
658072
|
+
m25.braceExpand = function braceExpand2(pattern, options8) {
|
|
658073
658073
|
return orig.braceExpand(pattern, ext(def, options8));
|
|
658074
658074
|
};
|
|
658075
658075
|
m25.match = function(list, pattern, options8) {
|
|
@@ -659288,7 +659288,7 @@ var exports_version = {};
|
|
|
659288
659288
|
__export(exports_version, {
|
|
659289
659289
|
version: () => version2
|
|
659290
659290
|
});
|
|
659291
|
-
var version2 = "6.0.0-dev.
|
|
659291
|
+
var version2 = "6.0.0-dev.22";
|
|
659292
659292
|
|
|
659293
659293
|
// ../../node_modules/.pnpm/imurmurhash@0.1.4/node_modules/imurmurhash/imurmurhash.js
|
|
659294
659294
|
var require_imurmurhash = __commonJS((exports, module3) => {
|
|
@@ -673246,14 +673246,14 @@ function usage(yargs, shim2) {
|
|
|
673246
673246
|
const logger = yargs.getInternalMethods().getLoggerInstance();
|
|
673247
673247
|
if (fails.length) {
|
|
673248
673248
|
for (let i4 = fails.length - 1;i4 >= 0; --i4) {
|
|
673249
|
-
const
|
|
673250
|
-
if (isBoolean(
|
|
673249
|
+
const fail2 = fails[i4];
|
|
673250
|
+
if (isBoolean(fail2)) {
|
|
673251
673251
|
if (err)
|
|
673252
673252
|
throw err;
|
|
673253
673253
|
else if (msg)
|
|
673254
673254
|
throw Error(msg);
|
|
673255
673255
|
} else {
|
|
673256
|
-
|
|
673256
|
+
fail2(msg, err, self2);
|
|
673257
673257
|
}
|
|
673258
673258
|
}
|
|
673259
673259
|
} else {
|
|
@@ -673310,7 +673310,7 @@ function usage(yargs, shim2) {
|
|
|
673310
673310
|
examples.push([cmd, description || ""]);
|
|
673311
673311
|
};
|
|
673312
673312
|
let commands = [];
|
|
673313
|
-
self2.command = function
|
|
673313
|
+
self2.command = function command3(cmd, description, isDefault, aliases, deprecated = false) {
|
|
673314
673314
|
if (isDefault) {
|
|
673315
673315
|
commands = commands.map((cmdArray) => {
|
|
673316
673316
|
cmdArray[2] = false;
|
|
@@ -692993,9 +692993,605 @@ PH CLI package manager: ${packageManager}
|
|
|
692993
692993
|
}
|
|
692994
692994
|
|
|
692995
692995
|
// src/commands/init.ts
|
|
692996
|
+
init_source();
|
|
692996
692997
|
var import_cmd_ts12 = __toESM(require_cjs(), 1);
|
|
692997
692998
|
var import_enquirer2 = __toESM(require_enquirer(), 1);
|
|
692998
692999
|
var import_semver4 = __toESM(require_semver2(), 1);
|
|
693000
|
+
|
|
693001
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/classes/ClientError.js
|
|
693002
|
+
class ClientError extends Error {
|
|
693003
|
+
response;
|
|
693004
|
+
request;
|
|
693005
|
+
constructor(response, request) {
|
|
693006
|
+
const message = `${ClientError.extractMessage(response)}: ${JSON.stringify({
|
|
693007
|
+
response,
|
|
693008
|
+
request
|
|
693009
|
+
})}`;
|
|
693010
|
+
super(message);
|
|
693011
|
+
Object.setPrototypeOf(this, ClientError.prototype);
|
|
693012
|
+
this.response = response;
|
|
693013
|
+
this.request = request;
|
|
693014
|
+
if (typeof Error.captureStackTrace === `function`) {
|
|
693015
|
+
Error.captureStackTrace(this, ClientError);
|
|
693016
|
+
}
|
|
693017
|
+
}
|
|
693018
|
+
static extractMessage(response) {
|
|
693019
|
+
return response.errors?.[0]?.message ?? `GraphQL Error (Code: ${String(response.status)})`;
|
|
693020
|
+
}
|
|
693021
|
+
}
|
|
693022
|
+
|
|
693023
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/lib/prelude.js
|
|
693024
|
+
var uppercase2 = (str2) => str2.toUpperCase();
|
|
693025
|
+
var callOrIdentity = (value2) => {
|
|
693026
|
+
return typeof value2 === `function` ? value2() : value2;
|
|
693027
|
+
};
|
|
693028
|
+
var zip = (a5, b25) => a5.map((k8, i4) => [k8, b25[i4]]);
|
|
693029
|
+
var HeadersInitToPlainObject = (headers) => {
|
|
693030
|
+
let oHeaders = {};
|
|
693031
|
+
if (headers instanceof Headers) {
|
|
693032
|
+
oHeaders = HeadersInstanceToPlainObject(headers);
|
|
693033
|
+
} else if (Array.isArray(headers)) {
|
|
693034
|
+
headers.forEach(([name, value2]) => {
|
|
693035
|
+
if (name && value2 !== undefined) {
|
|
693036
|
+
oHeaders[name] = value2;
|
|
693037
|
+
}
|
|
693038
|
+
});
|
|
693039
|
+
} else if (headers) {
|
|
693040
|
+
oHeaders = headers;
|
|
693041
|
+
}
|
|
693042
|
+
return oHeaders;
|
|
693043
|
+
};
|
|
693044
|
+
var HeadersInstanceToPlainObject = (headers) => {
|
|
693045
|
+
const o5 = {};
|
|
693046
|
+
headers.forEach((v25, k8) => {
|
|
693047
|
+
o5[k8] = v25;
|
|
693048
|
+
});
|
|
693049
|
+
return o5;
|
|
693050
|
+
};
|
|
693051
|
+
var tryCatch = (fn9) => {
|
|
693052
|
+
try {
|
|
693053
|
+
const result = fn9();
|
|
693054
|
+
if (isPromiseLikeValue(result)) {
|
|
693055
|
+
return result.catch((error49) => {
|
|
693056
|
+
return errorFromMaybeError(error49);
|
|
693057
|
+
});
|
|
693058
|
+
}
|
|
693059
|
+
return result;
|
|
693060
|
+
} catch (error49) {
|
|
693061
|
+
return errorFromMaybeError(error49);
|
|
693062
|
+
}
|
|
693063
|
+
};
|
|
693064
|
+
var errorFromMaybeError = (maybeError) => {
|
|
693065
|
+
if (maybeError instanceof Error)
|
|
693066
|
+
return maybeError;
|
|
693067
|
+
return new Error(String(maybeError));
|
|
693068
|
+
};
|
|
693069
|
+
var isPromiseLikeValue = (value2) => {
|
|
693070
|
+
return typeof value2 === `object` && value2 !== null && `then` in value2 && typeof value2.then === `function` && `catch` in value2 && typeof value2.catch === `function` && `finally` in value2 && typeof value2.finally === `function`;
|
|
693071
|
+
};
|
|
693072
|
+
var casesExhausted = (value2) => {
|
|
693073
|
+
throw new Error(`Unhandled case: ${String(value2)}`);
|
|
693074
|
+
};
|
|
693075
|
+
var isPlainObject3 = (value2) => {
|
|
693076
|
+
return typeof value2 === `object` && value2 !== null && !Array.isArray(value2);
|
|
693077
|
+
};
|
|
693078
|
+
|
|
693079
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/functions/batchRequests.js
|
|
693080
|
+
var parseBatchRequestArgs = (documentsOrOptions, requestHeaders) => {
|
|
693081
|
+
return documentsOrOptions.documents ? documentsOrOptions : {
|
|
693082
|
+
documents: documentsOrOptions,
|
|
693083
|
+
requestHeaders,
|
|
693084
|
+
signal: undefined
|
|
693085
|
+
};
|
|
693086
|
+
};
|
|
693087
|
+
|
|
693088
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/functions/rawRequest.js
|
|
693089
|
+
var parseRawRequestArgs = (queryOrOptions, variables, requestHeaders) => {
|
|
693090
|
+
return queryOrOptions.query ? queryOrOptions : {
|
|
693091
|
+
query: queryOrOptions,
|
|
693092
|
+
variables,
|
|
693093
|
+
requestHeaders,
|
|
693094
|
+
signal: undefined
|
|
693095
|
+
};
|
|
693096
|
+
};
|
|
693097
|
+
|
|
693098
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/lib/graphql.js
|
|
693099
|
+
var import_graphql29 = __toESM(require_graphql2(), 1);
|
|
693100
|
+
|
|
693101
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/lib/http.js
|
|
693102
|
+
var ACCEPT_HEADER = `Accept`;
|
|
693103
|
+
var CONTENT_TYPE_HEADER = `Content-Type`;
|
|
693104
|
+
var CONTENT_TYPE_JSON = `application/json`;
|
|
693105
|
+
var CONTENT_TYPE_GQL = `application/graphql-response+json`;
|
|
693106
|
+
|
|
693107
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/lib/graphql.js
|
|
693108
|
+
var cleanQuery = (str2) => str2.replace(/([\s,]|#[^\n\r]+)+/g, ` `).trim();
|
|
693109
|
+
var isGraphQLContentType = (contentType) => {
|
|
693110
|
+
const contentTypeLower = contentType.toLowerCase();
|
|
693111
|
+
return contentTypeLower.includes(CONTENT_TYPE_GQL) || contentTypeLower.includes(CONTENT_TYPE_JSON);
|
|
693112
|
+
};
|
|
693113
|
+
var parseGraphQLExecutionResult = (result) => {
|
|
693114
|
+
try {
|
|
693115
|
+
if (Array.isArray(result)) {
|
|
693116
|
+
return {
|
|
693117
|
+
_tag: `Batch`,
|
|
693118
|
+
executionResults: result.map(parseExecutionResult)
|
|
693119
|
+
};
|
|
693120
|
+
} else if (isPlainObject3(result)) {
|
|
693121
|
+
return {
|
|
693122
|
+
_tag: `Single`,
|
|
693123
|
+
executionResult: parseExecutionResult(result)
|
|
693124
|
+
};
|
|
693125
|
+
} else {
|
|
693126
|
+
throw new Error(`Invalid execution result: result is not object or array.
|
|
693127
|
+
Got:
|
|
693128
|
+
${String(result)}`);
|
|
693129
|
+
}
|
|
693130
|
+
} catch (e8) {
|
|
693131
|
+
return e8;
|
|
693132
|
+
}
|
|
693133
|
+
};
|
|
693134
|
+
var parseExecutionResult = (result) => {
|
|
693135
|
+
if (typeof result !== `object` || result === null) {
|
|
693136
|
+
throw new Error(`Invalid execution result: result is not object`);
|
|
693137
|
+
}
|
|
693138
|
+
let errors3 = undefined;
|
|
693139
|
+
let data = undefined;
|
|
693140
|
+
let extensions = undefined;
|
|
693141
|
+
if (`errors` in result) {
|
|
693142
|
+
if (!isPlainObject3(result.errors) && !Array.isArray(result.errors)) {
|
|
693143
|
+
throw new Error(`Invalid execution result: errors is not plain object OR array`);
|
|
693144
|
+
}
|
|
693145
|
+
errors3 = result.errors;
|
|
693146
|
+
}
|
|
693147
|
+
if (`data` in result) {
|
|
693148
|
+
if (!isPlainObject3(result.data) && result.data !== null) {
|
|
693149
|
+
throw new Error(`Invalid execution result: data is not plain object`);
|
|
693150
|
+
}
|
|
693151
|
+
data = result.data;
|
|
693152
|
+
}
|
|
693153
|
+
if (`extensions` in result) {
|
|
693154
|
+
if (!isPlainObject3(result.extensions))
|
|
693155
|
+
throw new Error(`Invalid execution result: extensions is not plain object`);
|
|
693156
|
+
extensions = result.extensions;
|
|
693157
|
+
}
|
|
693158
|
+
return {
|
|
693159
|
+
data,
|
|
693160
|
+
errors: errors3,
|
|
693161
|
+
extensions
|
|
693162
|
+
};
|
|
693163
|
+
};
|
|
693164
|
+
var isRequestResultHaveErrors = (result) => result._tag === `Batch` ? result.executionResults.some(isExecutionResultHaveErrors) : isExecutionResultHaveErrors(result.executionResult);
|
|
693165
|
+
var isExecutionResultHaveErrors = (result) => Array.isArray(result.errors) ? result.errors.length > 0 : Boolean(result.errors);
|
|
693166
|
+
var isOperationDefinitionNode = (definition) => {
|
|
693167
|
+
return typeof definition === `object` && definition !== null && `kind` in definition && definition.kind === import_graphql29.Kind.OPERATION_DEFINITION;
|
|
693168
|
+
};
|
|
693169
|
+
|
|
693170
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/helpers/analyzeDocument.js
|
|
693171
|
+
var import_graphql31 = __toESM(require_graphql2(), 1);
|
|
693172
|
+
var import_graphql32 = __toESM(require_graphql2(), 1);
|
|
693173
|
+
var extractOperationName = (document2) => {
|
|
693174
|
+
let operationName = undefined;
|
|
693175
|
+
const defs = document2.definitions.filter(isOperationDefinitionNode);
|
|
693176
|
+
if (defs.length === 1) {
|
|
693177
|
+
operationName = defs[0].name?.value;
|
|
693178
|
+
}
|
|
693179
|
+
return operationName;
|
|
693180
|
+
};
|
|
693181
|
+
var extractIsMutation = (document2) => {
|
|
693182
|
+
let isMutation = false;
|
|
693183
|
+
const defs = document2.definitions.filter(isOperationDefinitionNode);
|
|
693184
|
+
if (defs.length === 1) {
|
|
693185
|
+
isMutation = defs[0].operation === `mutation`;
|
|
693186
|
+
}
|
|
693187
|
+
return isMutation;
|
|
693188
|
+
};
|
|
693189
|
+
var analyzeDocument = (document2, excludeOperationName) => {
|
|
693190
|
+
const expression = typeof document2 === `string` ? document2 : import_graphql32.print(document2);
|
|
693191
|
+
let isMutation = false;
|
|
693192
|
+
let operationName = undefined;
|
|
693193
|
+
if (excludeOperationName) {
|
|
693194
|
+
return { expression, isMutation, operationName };
|
|
693195
|
+
}
|
|
693196
|
+
const docNode = tryCatch(() => typeof document2 === `string` ? import_graphql31.parse(document2) : document2);
|
|
693197
|
+
if (docNode instanceof Error) {
|
|
693198
|
+
return { expression, isMutation, operationName };
|
|
693199
|
+
}
|
|
693200
|
+
operationName = extractOperationName(docNode);
|
|
693201
|
+
isMutation = extractIsMutation(docNode);
|
|
693202
|
+
return { expression, operationName, isMutation };
|
|
693203
|
+
};
|
|
693204
|
+
|
|
693205
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/helpers/defaultJsonSerializer.js
|
|
693206
|
+
var defaultJsonSerializer = JSON;
|
|
693207
|
+
|
|
693208
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/helpers/runRequest.js
|
|
693209
|
+
var runRequest = async (input) => {
|
|
693210
|
+
const config21 = {
|
|
693211
|
+
...input,
|
|
693212
|
+
method: input.request._tag === `Single` ? input.request.document.isMutation ? `POST` : uppercase2(input.method ?? `post`) : input.request.hasMutations ? `POST` : uppercase2(input.method ?? `post`),
|
|
693213
|
+
fetchOptions: {
|
|
693214
|
+
...input.fetchOptions,
|
|
693215
|
+
errorPolicy: input.fetchOptions.errorPolicy ?? `none`
|
|
693216
|
+
}
|
|
693217
|
+
};
|
|
693218
|
+
const fetcher = createFetcher(config21.method);
|
|
693219
|
+
const fetchResponse = await fetcher(config21);
|
|
693220
|
+
if (!fetchResponse.ok) {
|
|
693221
|
+
return new ClientError({ status: fetchResponse.status, headers: fetchResponse.headers }, {
|
|
693222
|
+
query: input.request._tag === `Single` ? input.request.document.expression : input.request.query,
|
|
693223
|
+
variables: input.request.variables
|
|
693224
|
+
});
|
|
693225
|
+
}
|
|
693226
|
+
const result = await parseResultFromResponse(fetchResponse, input.fetchOptions.jsonSerializer ?? defaultJsonSerializer);
|
|
693227
|
+
if (result instanceof Error)
|
|
693228
|
+
throw result;
|
|
693229
|
+
const clientResponseBase = {
|
|
693230
|
+
status: fetchResponse.status,
|
|
693231
|
+
headers: fetchResponse.headers
|
|
693232
|
+
};
|
|
693233
|
+
if (isRequestResultHaveErrors(result) && config21.fetchOptions.errorPolicy === `none`) {
|
|
693234
|
+
const clientResponse = result._tag === `Batch` ? { ...result.executionResults, ...clientResponseBase } : {
|
|
693235
|
+
...result.executionResult,
|
|
693236
|
+
...clientResponseBase
|
|
693237
|
+
};
|
|
693238
|
+
return new ClientError(clientResponse, {
|
|
693239
|
+
query: input.request._tag === `Single` ? input.request.document.expression : input.request.query,
|
|
693240
|
+
variables: input.request.variables
|
|
693241
|
+
});
|
|
693242
|
+
}
|
|
693243
|
+
switch (result._tag) {
|
|
693244
|
+
case `Single`:
|
|
693245
|
+
return {
|
|
693246
|
+
...clientResponseBase,
|
|
693247
|
+
...executionResultClientResponseFields(config21)(result.executionResult)
|
|
693248
|
+
};
|
|
693249
|
+
case `Batch`:
|
|
693250
|
+
return {
|
|
693251
|
+
...clientResponseBase,
|
|
693252
|
+
data: result.executionResults.map(executionResultClientResponseFields(config21))
|
|
693253
|
+
};
|
|
693254
|
+
default:
|
|
693255
|
+
casesExhausted(result);
|
|
693256
|
+
}
|
|
693257
|
+
};
|
|
693258
|
+
var executionResultClientResponseFields = ($params) => (executionResult) => {
|
|
693259
|
+
return {
|
|
693260
|
+
extensions: executionResult.extensions,
|
|
693261
|
+
data: executionResult.data,
|
|
693262
|
+
errors: $params.fetchOptions.errorPolicy === `all` ? executionResult.errors : undefined
|
|
693263
|
+
};
|
|
693264
|
+
};
|
|
693265
|
+
var parseResultFromResponse = async (response, jsonSerializer) => {
|
|
693266
|
+
const contentType = response.headers.get(CONTENT_TYPE_HEADER);
|
|
693267
|
+
const text = await response.text();
|
|
693268
|
+
if (contentType && isGraphQLContentType(contentType)) {
|
|
693269
|
+
return parseGraphQLExecutionResult(jsonSerializer.parse(text));
|
|
693270
|
+
} else {
|
|
693271
|
+
return parseGraphQLExecutionResult(text);
|
|
693272
|
+
}
|
|
693273
|
+
};
|
|
693274
|
+
var createFetcher = (method) => async (params) => {
|
|
693275
|
+
const headers = new Headers(params.headers);
|
|
693276
|
+
let searchParams = null;
|
|
693277
|
+
let body = undefined;
|
|
693278
|
+
if (!headers.has(ACCEPT_HEADER)) {
|
|
693279
|
+
headers.set(ACCEPT_HEADER, [CONTENT_TYPE_GQL, CONTENT_TYPE_JSON].join(`, `));
|
|
693280
|
+
}
|
|
693281
|
+
if (method === `POST`) {
|
|
693282
|
+
const $jsonSerializer = params.fetchOptions.jsonSerializer ?? defaultJsonSerializer;
|
|
693283
|
+
body = $jsonSerializer.stringify(buildBody(params));
|
|
693284
|
+
if (typeof body === `string` && !headers.has(CONTENT_TYPE_HEADER)) {
|
|
693285
|
+
headers.set(CONTENT_TYPE_HEADER, CONTENT_TYPE_JSON);
|
|
693286
|
+
}
|
|
693287
|
+
} else {
|
|
693288
|
+
searchParams = buildQueryParams(params);
|
|
693289
|
+
}
|
|
693290
|
+
const init4 = { method, headers, body, ...params.fetchOptions };
|
|
693291
|
+
let url4 = new URL(params.url);
|
|
693292
|
+
let initResolved = init4;
|
|
693293
|
+
if (params.middleware) {
|
|
693294
|
+
const result = await Promise.resolve(params.middleware({
|
|
693295
|
+
...init4,
|
|
693296
|
+
url: params.url,
|
|
693297
|
+
operationName: params.request._tag === `Single` ? params.request.document.operationName : undefined,
|
|
693298
|
+
variables: params.request.variables
|
|
693299
|
+
}));
|
|
693300
|
+
const { url: urlNew, ...initNew } = result;
|
|
693301
|
+
url4 = new URL(urlNew);
|
|
693302
|
+
initResolved = initNew;
|
|
693303
|
+
}
|
|
693304
|
+
if (searchParams) {
|
|
693305
|
+
searchParams.forEach((value2, name) => {
|
|
693306
|
+
url4.searchParams.append(name, value2);
|
|
693307
|
+
});
|
|
693308
|
+
}
|
|
693309
|
+
const $fetch = params.fetch ?? fetch;
|
|
693310
|
+
return await $fetch(url4, initResolved);
|
|
693311
|
+
};
|
|
693312
|
+
var buildBody = (params) => {
|
|
693313
|
+
switch (params.request._tag) {
|
|
693314
|
+
case `Single`:
|
|
693315
|
+
return {
|
|
693316
|
+
query: params.request.document.expression,
|
|
693317
|
+
variables: params.request.variables,
|
|
693318
|
+
operationName: params.request.document.operationName
|
|
693319
|
+
};
|
|
693320
|
+
case `Batch`:
|
|
693321
|
+
return zip(params.request.query, params.request.variables ?? []).map(([query, variables]) => ({
|
|
693322
|
+
query,
|
|
693323
|
+
variables
|
|
693324
|
+
}));
|
|
693325
|
+
default:
|
|
693326
|
+
throw casesExhausted(params.request);
|
|
693327
|
+
}
|
|
693328
|
+
};
|
|
693329
|
+
var buildQueryParams = (params) => {
|
|
693330
|
+
const $jsonSerializer = params.fetchOptions.jsonSerializer ?? defaultJsonSerializer;
|
|
693331
|
+
const searchParams = new URLSearchParams;
|
|
693332
|
+
switch (params.request._tag) {
|
|
693333
|
+
case `Single`: {
|
|
693334
|
+
searchParams.append(`query`, cleanQuery(params.request.document.expression));
|
|
693335
|
+
if (params.request.variables) {
|
|
693336
|
+
searchParams.append(`variables`, $jsonSerializer.stringify(params.request.variables));
|
|
693337
|
+
}
|
|
693338
|
+
if (params.request.document.operationName) {
|
|
693339
|
+
searchParams.append(`operationName`, params.request.document.operationName);
|
|
693340
|
+
}
|
|
693341
|
+
return searchParams;
|
|
693342
|
+
}
|
|
693343
|
+
case `Batch`: {
|
|
693344
|
+
const variablesSerialized = params.request.variables?.map((v25) => $jsonSerializer.stringify(v25)) ?? [];
|
|
693345
|
+
const queriesCleaned = params.request.query.map(cleanQuery);
|
|
693346
|
+
const payload = zip(queriesCleaned, variablesSerialized).map(([query, variables]) => ({
|
|
693347
|
+
query,
|
|
693348
|
+
variables
|
|
693349
|
+
}));
|
|
693350
|
+
searchParams.append(`query`, $jsonSerializer.stringify(payload));
|
|
693351
|
+
return searchParams;
|
|
693352
|
+
}
|
|
693353
|
+
default:
|
|
693354
|
+
throw casesExhausted(params.request);
|
|
693355
|
+
}
|
|
693356
|
+
};
|
|
693357
|
+
|
|
693358
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/classes/GraphQLClient.js
|
|
693359
|
+
class GraphQLClient {
|
|
693360
|
+
url;
|
|
693361
|
+
requestConfig;
|
|
693362
|
+
constructor(url4, requestConfig = {}) {
|
|
693363
|
+
this.url = url4;
|
|
693364
|
+
this.requestConfig = requestConfig;
|
|
693365
|
+
}
|
|
693366
|
+
rawRequest = async (...args) => {
|
|
693367
|
+
const [queryOrOptions, variables, requestHeaders] = args;
|
|
693368
|
+
const rawRequestOptions = parseRawRequestArgs(queryOrOptions, variables, requestHeaders);
|
|
693369
|
+
const { headers, fetch: fetch2 = globalThis.fetch, method = `POST`, requestMiddleware, responseMiddleware, excludeOperationName, ...fetchOptions } = this.requestConfig;
|
|
693370
|
+
const { url: url4 } = this;
|
|
693371
|
+
if (rawRequestOptions.signal !== undefined) {
|
|
693372
|
+
fetchOptions.signal = rawRequestOptions.signal;
|
|
693373
|
+
}
|
|
693374
|
+
const document2 = analyzeDocument(rawRequestOptions.query, excludeOperationName);
|
|
693375
|
+
const response = await runRequest({
|
|
693376
|
+
url: url4,
|
|
693377
|
+
request: {
|
|
693378
|
+
_tag: `Single`,
|
|
693379
|
+
document: document2,
|
|
693380
|
+
variables: rawRequestOptions.variables
|
|
693381
|
+
},
|
|
693382
|
+
headers: {
|
|
693383
|
+
...HeadersInitToPlainObject(callOrIdentity(headers)),
|
|
693384
|
+
...HeadersInitToPlainObject(rawRequestOptions.requestHeaders)
|
|
693385
|
+
},
|
|
693386
|
+
fetch: fetch2,
|
|
693387
|
+
method,
|
|
693388
|
+
fetchOptions,
|
|
693389
|
+
middleware: requestMiddleware
|
|
693390
|
+
});
|
|
693391
|
+
if (responseMiddleware) {
|
|
693392
|
+
await responseMiddleware(response, {
|
|
693393
|
+
operationName: document2.operationName,
|
|
693394
|
+
variables,
|
|
693395
|
+
url: this.url
|
|
693396
|
+
});
|
|
693397
|
+
}
|
|
693398
|
+
if (response instanceof Error) {
|
|
693399
|
+
throw response;
|
|
693400
|
+
}
|
|
693401
|
+
return response;
|
|
693402
|
+
};
|
|
693403
|
+
async request(documentOrOptions, ...variablesAndRequestHeaders) {
|
|
693404
|
+
const [variables, requestHeaders] = variablesAndRequestHeaders;
|
|
693405
|
+
const requestOptions = parseRequestArgs(documentOrOptions, variables, requestHeaders);
|
|
693406
|
+
const { headers, fetch: fetch2 = globalThis.fetch, method = `POST`, requestMiddleware, responseMiddleware, excludeOperationName, ...fetchOptions } = this.requestConfig;
|
|
693407
|
+
const { url: url4 } = this;
|
|
693408
|
+
if (requestOptions.signal !== undefined) {
|
|
693409
|
+
fetchOptions.signal = requestOptions.signal;
|
|
693410
|
+
}
|
|
693411
|
+
const analyzedDocument = analyzeDocument(requestOptions.document, excludeOperationName);
|
|
693412
|
+
const response = await runRequest({
|
|
693413
|
+
url: url4,
|
|
693414
|
+
request: {
|
|
693415
|
+
_tag: `Single`,
|
|
693416
|
+
document: analyzedDocument,
|
|
693417
|
+
variables: requestOptions.variables
|
|
693418
|
+
},
|
|
693419
|
+
headers: {
|
|
693420
|
+
...HeadersInitToPlainObject(callOrIdentity(headers)),
|
|
693421
|
+
...HeadersInitToPlainObject(requestOptions.requestHeaders)
|
|
693422
|
+
},
|
|
693423
|
+
fetch: fetch2,
|
|
693424
|
+
method,
|
|
693425
|
+
fetchOptions,
|
|
693426
|
+
middleware: requestMiddleware
|
|
693427
|
+
});
|
|
693428
|
+
if (responseMiddleware) {
|
|
693429
|
+
await responseMiddleware(response, {
|
|
693430
|
+
operationName: analyzedDocument.operationName,
|
|
693431
|
+
variables: requestOptions.variables,
|
|
693432
|
+
url: this.url
|
|
693433
|
+
});
|
|
693434
|
+
}
|
|
693435
|
+
if (response instanceof Error) {
|
|
693436
|
+
throw response;
|
|
693437
|
+
}
|
|
693438
|
+
return response.data;
|
|
693439
|
+
}
|
|
693440
|
+
async batchRequests(documentsOrOptions, requestHeaders) {
|
|
693441
|
+
const batchRequestOptions = parseBatchRequestArgs(documentsOrOptions, requestHeaders);
|
|
693442
|
+
const { headers, excludeOperationName, ...fetchOptions } = this.requestConfig;
|
|
693443
|
+
if (batchRequestOptions.signal !== undefined) {
|
|
693444
|
+
fetchOptions.signal = batchRequestOptions.signal;
|
|
693445
|
+
}
|
|
693446
|
+
const analyzedDocuments = batchRequestOptions.documents.map(({ document: document2 }) => analyzeDocument(document2, excludeOperationName));
|
|
693447
|
+
const expressions = analyzedDocuments.map(({ expression }) => expression);
|
|
693448
|
+
const hasMutations = analyzedDocuments.some(({ isMutation }) => isMutation);
|
|
693449
|
+
const variables = batchRequestOptions.documents.map(({ variables: variables2 }) => variables2);
|
|
693450
|
+
const response = await runRequest({
|
|
693451
|
+
url: this.url,
|
|
693452
|
+
request: {
|
|
693453
|
+
_tag: `Batch`,
|
|
693454
|
+
operationName: undefined,
|
|
693455
|
+
query: expressions,
|
|
693456
|
+
hasMutations,
|
|
693457
|
+
variables
|
|
693458
|
+
},
|
|
693459
|
+
headers: {
|
|
693460
|
+
...HeadersInitToPlainObject(callOrIdentity(headers)),
|
|
693461
|
+
...HeadersInitToPlainObject(batchRequestOptions.requestHeaders)
|
|
693462
|
+
},
|
|
693463
|
+
fetch: this.requestConfig.fetch ?? globalThis.fetch,
|
|
693464
|
+
method: this.requestConfig.method || `POST`,
|
|
693465
|
+
fetchOptions,
|
|
693466
|
+
middleware: this.requestConfig.requestMiddleware
|
|
693467
|
+
});
|
|
693468
|
+
if (this.requestConfig.responseMiddleware) {
|
|
693469
|
+
await this.requestConfig.responseMiddleware(response, {
|
|
693470
|
+
operationName: undefined,
|
|
693471
|
+
variables,
|
|
693472
|
+
url: this.url
|
|
693473
|
+
});
|
|
693474
|
+
}
|
|
693475
|
+
if (response instanceof Error) {
|
|
693476
|
+
throw response;
|
|
693477
|
+
}
|
|
693478
|
+
return response.data;
|
|
693479
|
+
}
|
|
693480
|
+
setHeaders(headers) {
|
|
693481
|
+
this.requestConfig.headers = headers;
|
|
693482
|
+
return this;
|
|
693483
|
+
}
|
|
693484
|
+
setHeader(key2, value2) {
|
|
693485
|
+
const { headers } = this.requestConfig;
|
|
693486
|
+
if (headers) {
|
|
693487
|
+
headers[key2] = value2;
|
|
693488
|
+
} else {
|
|
693489
|
+
this.requestConfig.headers = { [key2]: value2 };
|
|
693490
|
+
}
|
|
693491
|
+
return this;
|
|
693492
|
+
}
|
|
693493
|
+
setEndpoint(value2) {
|
|
693494
|
+
this.url = value2;
|
|
693495
|
+
return this;
|
|
693496
|
+
}
|
|
693497
|
+
}
|
|
693498
|
+
|
|
693499
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/functions/request.js
|
|
693500
|
+
var parseRequestArgs = (documentOrOptions, variables, requestHeaders) => {
|
|
693501
|
+
return documentOrOptions.document ? documentOrOptions : {
|
|
693502
|
+
document: documentOrOptions,
|
|
693503
|
+
variables,
|
|
693504
|
+
requestHeaders,
|
|
693505
|
+
signal: undefined
|
|
693506
|
+
};
|
|
693507
|
+
};
|
|
693508
|
+
// ../../node_modules/.pnpm/graphql-request@7.3.1_graphql@16.12.0/node_modules/graphql-request/build/legacy/functions/gql.js
|
|
693509
|
+
var gql = (chunks, ...variables) => {
|
|
693510
|
+
return chunks.reduce((acc, chunk, index) => `${acc}${chunk}${index in variables ? String(variables[index]) : ``}`, ``);
|
|
693511
|
+
};
|
|
693512
|
+
// ../../packages/common/dist/utils/vetra-gql.js
|
|
693513
|
+
async function getVetraDocuments(graphqlEndpoint, driveId) {
|
|
693514
|
+
const client = new GraphQLClient(graphqlEndpoint, {
|
|
693515
|
+
fetch
|
|
693516
|
+
});
|
|
693517
|
+
const query = gql`
|
|
693518
|
+
query GetDocuments($driveId: String!) {
|
|
693519
|
+
VetraPackage {
|
|
693520
|
+
getDocuments(driveId: $driveId) {
|
|
693521
|
+
id
|
|
693522
|
+
state {
|
|
693523
|
+
githubUrl
|
|
693524
|
+
}
|
|
693525
|
+
}
|
|
693526
|
+
}
|
|
693527
|
+
}
|
|
693528
|
+
`;
|
|
693529
|
+
const response = await client.request(query, {
|
|
693530
|
+
driveId
|
|
693531
|
+
});
|
|
693532
|
+
return response.VetraPackage.getDocuments.map((doc2) => ({
|
|
693533
|
+
id: doc2.id,
|
|
693534
|
+
githubUrl: doc2.state.githubUrl
|
|
693535
|
+
}));
|
|
693536
|
+
}
|
|
693537
|
+
async function createVetraDocument(graphqlEndpoint, driveId, name = "vetra-package") {
|
|
693538
|
+
const client = new GraphQLClient(graphqlEndpoint, {
|
|
693539
|
+
fetch
|
|
693540
|
+
});
|
|
693541
|
+
const mutation = gql`
|
|
693542
|
+
mutation CreateDocument($driveId: String, $name: String) {
|
|
693543
|
+
VetraPackage_createDocument(driveId: $driveId, name: $name)
|
|
693544
|
+
}
|
|
693545
|
+
`;
|
|
693546
|
+
const response = await client.request(mutation, {
|
|
693547
|
+
driveId,
|
|
693548
|
+
name
|
|
693549
|
+
});
|
|
693550
|
+
return response.VetraPackage_createDocument;
|
|
693551
|
+
}
|
|
693552
|
+
|
|
693553
|
+
// src/utils/validate-remote-drive.ts
|
|
693554
|
+
async function setupRemoteDrive(remoteDriveUrl) {
|
|
693555
|
+
try {
|
|
693556
|
+
const driveId = remoteDriveUrl.split("/").pop();
|
|
693557
|
+
if (!remoteDriveUrl || remoteDriveUrl.trim() === "") {
|
|
693558
|
+
console.error("❌ Remote drive URL is required");
|
|
693559
|
+
return false;
|
|
693560
|
+
}
|
|
693561
|
+
const url4 = new URL(remoteDriveUrl);
|
|
693562
|
+
const graphqlEndpoint = `${url4.protocol}//${url4.host}/graphql`;
|
|
693563
|
+
let documents = await getVetraDocuments(graphqlEndpoint, driveId);
|
|
693564
|
+
if (documents.length === 0) {
|
|
693565
|
+
console.log("No vetra package document found in the provided drive, creating one...");
|
|
693566
|
+
try {
|
|
693567
|
+
await createVetraDocument(graphqlEndpoint, driveId, "vetra-package");
|
|
693568
|
+
documents = await getVetraDocuments(graphqlEndpoint, driveId);
|
|
693569
|
+
if (documents.length === 0) {
|
|
693570
|
+
console.error("❌ Failed to create vetra package document in the remote drive");
|
|
693571
|
+
return false;
|
|
693572
|
+
}
|
|
693573
|
+
console.log("✅ Vetra package document created successfully");
|
|
693574
|
+
} catch (createError2) {
|
|
693575
|
+
console.error("❌ Failed to create vetra package document:", createError2);
|
|
693576
|
+
return false;
|
|
693577
|
+
}
|
|
693578
|
+
}
|
|
693579
|
+
if (documents.length > 1) {
|
|
693580
|
+
console.warn("⚠️ Multiple vetra package documents were found in the provided remote drive, this might be an error in your remote drive");
|
|
693581
|
+
}
|
|
693582
|
+
const hasGithubUrl = documents.some((doc2) => doc2.githubUrl);
|
|
693583
|
+
if (hasGithubUrl) {
|
|
693584
|
+
console.error("❌ The remote drive provided already has been configured with a github url, please use the checkout command instead: ph checkout --remote-drive <remote drive url>");
|
|
693585
|
+
return false;
|
|
693586
|
+
}
|
|
693587
|
+
return true;
|
|
693588
|
+
} catch (error49) {
|
|
693589
|
+
console.error("❌ Unable to fetch remote drive info:", error49);
|
|
693590
|
+
return false;
|
|
693591
|
+
}
|
|
693592
|
+
}
|
|
693593
|
+
|
|
693594
|
+
// src/commands/init.ts
|
|
692999
693595
|
var initArgs = {
|
|
693000
693596
|
namePositional: import_cmd_ts12.positional({
|
|
693001
693597
|
type: import_cmd_ts12.optional(import_cmd_ts12.string),
|
|
@@ -693038,26 +693634,32 @@ var initArgs = {
|
|
|
693038
693634
|
long: "remote-drive",
|
|
693039
693635
|
short: "r",
|
|
693040
693636
|
description: "Remote drive identifier."
|
|
693041
|
-
})
|
|
693637
|
+
}),
|
|
693638
|
+
...debugArgs
|
|
693042
693639
|
};
|
|
693043
693640
|
var init4 = import_cmd_ts12.command({
|
|
693044
693641
|
name: "init",
|
|
693045
693642
|
description: "Initialize a new project",
|
|
693046
693643
|
args: initArgs,
|
|
693047
|
-
handler: async ({
|
|
693048
|
-
|
|
693049
|
-
|
|
693050
|
-
|
|
693051
|
-
|
|
693052
|
-
|
|
693053
|
-
|
|
693054
|
-
|
|
693055
|
-
|
|
693056
|
-
|
|
693057
|
-
|
|
693058
|
-
|
|
693059
|
-
|
|
693060
|
-
|
|
693644
|
+
handler: async (args) => {
|
|
693645
|
+
const {
|
|
693646
|
+
namePositional,
|
|
693647
|
+
nameOption,
|
|
693648
|
+
packageManager,
|
|
693649
|
+
npm: npm2,
|
|
693650
|
+
pnpm: pnpm2,
|
|
693651
|
+
yarn: yarn2,
|
|
693652
|
+
bun: bun2,
|
|
693653
|
+
tag: tag2,
|
|
693654
|
+
version: version3,
|
|
693655
|
+
dev,
|
|
693656
|
+
staging,
|
|
693657
|
+
remoteDrive,
|
|
693658
|
+
debug
|
|
693659
|
+
} = args;
|
|
693660
|
+
if (debug) {
|
|
693661
|
+
console.log({ args });
|
|
693662
|
+
}
|
|
693061
693663
|
let name = namePositional ?? nameOption;
|
|
693062
693664
|
if (!name) {
|
|
693063
693665
|
const { prompt } = import_enquirer2.default;
|
|
@@ -693075,15 +693677,18 @@ var init4 = import_cmd_ts12.command({
|
|
|
693075
693677
|
if (!name) {
|
|
693076
693678
|
throw new Error("You must provide a name for your project.");
|
|
693077
693679
|
}
|
|
693680
|
+
console.log("step 1 done");
|
|
693078
693681
|
if (version3 !== undefined && !import_semver4.valid(import_semver4.clean(version3))) {
|
|
693079
693682
|
throw new Error(`Invalid version: ${version3}`);
|
|
693080
693683
|
}
|
|
693684
|
+
console.log("step w done");
|
|
693081
693685
|
handleMutuallyExclusiveOptions({
|
|
693082
693686
|
tag: tag2,
|
|
693083
693687
|
version: version3,
|
|
693084
693688
|
dev,
|
|
693085
693689
|
staging
|
|
693086
693690
|
}, "versioning strategy");
|
|
693691
|
+
console.log("step 3 done");
|
|
693087
693692
|
handleMutuallyExclusiveOptions({
|
|
693088
693693
|
npm: npm2,
|
|
693089
693694
|
pnpm: pnpm2,
|
|
@@ -693091,6 +693696,7 @@ var init4 = import_cmd_ts12.command({
|
|
|
693091
693696
|
bun: bun2,
|
|
693092
693697
|
packageManager
|
|
693093
693698
|
}, "package manager");
|
|
693699
|
+
console.log("step 4 done");
|
|
693094
693700
|
const parsedPackageManager = parsePackageManager({
|
|
693095
693701
|
npm: npm2,
|
|
693096
693702
|
pnpm: pnpm2,
|
|
@@ -693098,18 +693704,48 @@ var init4 = import_cmd_ts12.command({
|
|
|
693098
693704
|
bun: bun2,
|
|
693099
693705
|
packageManager
|
|
693100
693706
|
}) ?? "npm";
|
|
693707
|
+
console.log("step 5 done");
|
|
693101
693708
|
const parsedTag = parseTag({
|
|
693102
693709
|
tag: tag2,
|
|
693103
693710
|
dev,
|
|
693104
693711
|
staging
|
|
693105
693712
|
});
|
|
693106
|
-
|
|
693107
|
-
|
|
693108
|
-
|
|
693109
|
-
|
|
693110
|
-
|
|
693111
|
-
|
|
693112
|
-
|
|
693713
|
+
try {
|
|
693714
|
+
if (remoteDrive) {
|
|
693715
|
+
console.log(source_default.blue(`
|
|
693716
|
+
⏳ Setting up remote drive...
|
|
693717
|
+
`));
|
|
693718
|
+
await setupRemoteDrive(remoteDrive);
|
|
693719
|
+
console.log(source_default.green(`
|
|
693720
|
+
✅ Remote drive set up.`));
|
|
693721
|
+
}
|
|
693722
|
+
console.log(source_default.bold(`
|
|
693723
|
+
\uD83D\uDE80 Initializing a new project...
|
|
693724
|
+
`));
|
|
693725
|
+
await createProject({
|
|
693726
|
+
...args,
|
|
693727
|
+
name,
|
|
693728
|
+
packageManager: parsedPackageManager,
|
|
693729
|
+
tag: parsedTag
|
|
693730
|
+
});
|
|
693731
|
+
if (remoteDrive) {
|
|
693732
|
+
console.log();
|
|
693733
|
+
console.log("To link your project to GitHub:");
|
|
693734
|
+
console.log();
|
|
693735
|
+
console.log(" 1. Create a new repository on GitHub");
|
|
693736
|
+
console.log(` 2. cd ${name}`);
|
|
693737
|
+
console.log(" 3. git add . && git commit -m 'Initial commit'");
|
|
693738
|
+
console.log(" 4. git remote add origin <your-github-url>");
|
|
693739
|
+
console.log(` 5. git push -u origin main`);
|
|
693740
|
+
console.log();
|
|
693741
|
+
}
|
|
693742
|
+
} catch (error49) {
|
|
693743
|
+
console.error(`
|
|
693744
|
+
❌ Failed to initialize project:
|
|
693745
|
+
`);
|
|
693746
|
+
throw error49;
|
|
693747
|
+
}
|
|
693748
|
+
process.exit(0);
|
|
693113
693749
|
}
|
|
693114
693750
|
});
|
|
693115
693751
|
|
|
@@ -693119,7 +693755,11 @@ var setupGlobals = import_cmd_ts13.command({
|
|
|
693119
693755
|
name: "setup-globals",
|
|
693120
693756
|
description: "Initialize a new global project",
|
|
693121
693757
|
args: initArgs,
|
|
693122
|
-
handler: async (
|
|
693758
|
+
handler: async (args) => {
|
|
693759
|
+
const { namePositional, nameOption, debug, ...options8 } = args;
|
|
693760
|
+
if (debug) {
|
|
693761
|
+
console.log({ args });
|
|
693762
|
+
}
|
|
693123
693763
|
const name = namePositional ?? nameOption;
|
|
693124
693764
|
await createGlobalProject(name, options8);
|
|
693125
693765
|
process.exit(0);
|
|
@@ -693139,7 +693779,7 @@ import path20 from "node:path";
|
|
|
693139
693779
|
import fs13, { promises as fsPromises2 } from "node:fs";
|
|
693140
693780
|
|
|
693141
693781
|
// ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
|
|
693142
|
-
function
|
|
693782
|
+
function isPlainObject4(value2) {
|
|
693143
693783
|
if (typeof value2 !== "object" || value2 === null) {
|
|
693144
693784
|
return false;
|
|
693145
693785
|
}
|
|
@@ -693149,7 +693789,7 @@ function isPlainObject3(value2) {
|
|
|
693149
693789
|
|
|
693150
693790
|
// ../../node_modules/.pnpm/sort-keys@5.1.0/node_modules/sort-keys/index.js
|
|
693151
693791
|
function sortKeys(object2, options8 = {}) {
|
|
693152
|
-
if (!
|
|
693792
|
+
if (!isPlainObject4(object2) && !Array.isArray(object2)) {
|
|
693153
693793
|
throw new TypeError("Expected a plain object or array");
|
|
693154
693794
|
}
|
|
693155
693795
|
const { deep, compare } = options8;
|
|
@@ -693165,7 +693805,7 @@ function sortKeys(object2, options8 = {}) {
|
|
|
693165
693805
|
if (Array.isArray(item)) {
|
|
693166
693806
|
return deepSortArray(item);
|
|
693167
693807
|
}
|
|
693168
|
-
if (
|
|
693808
|
+
if (isPlainObject4(item)) {
|
|
693169
693809
|
return _sortKeys(item);
|
|
693170
693810
|
}
|
|
693171
693811
|
return item;
|
|
@@ -693186,7 +693826,7 @@ function sortKeys(object2, options8 = {}) {
|
|
|
693186
693826
|
if (deep && Array.isArray(value2)) {
|
|
693187
693827
|
newValue = deepSortArray(value2);
|
|
693188
693828
|
} else {
|
|
693189
|
-
newValue = deep &&
|
|
693829
|
+
newValue = deep && isPlainObject4(value2) ? _sortKeys(value2) : value2;
|
|
693190
693830
|
}
|
|
693191
693831
|
Object.defineProperty(result, key2, {
|
|
693192
693832
|
...Object.getOwnPropertyDescriptor(object3, key2),
|
|
@@ -693314,7 +693954,7 @@ var init5 = (function_, filePath, data, options8) => {
|
|
|
693314
693954
|
sortKeys: false,
|
|
693315
693955
|
...options8
|
|
693316
693956
|
};
|
|
693317
|
-
if (options8.sortKeys &&
|
|
693957
|
+
if (options8.sortKeys && isPlainObject4(data)) {
|
|
693318
693958
|
data = sortKeys(data, {
|
|
693319
693959
|
deep: true,
|
|
693320
693960
|
compare: typeof options8.sortKeys === "function" ? options8.sortKeys : undefined
|
|
@@ -693424,9 +694064,14 @@ var update = import_cmd_ts14.command({
|
|
|
693424
694064
|
long: "skip-install",
|
|
693425
694065
|
short: "s",
|
|
693426
694066
|
description: "Skip running `install` with your package manager"
|
|
693427
|
-
})
|
|
694067
|
+
}),
|
|
694068
|
+
...debugArgs
|
|
693428
694069
|
},
|
|
693429
|
-
handler: async (
|
|
694070
|
+
handler: async (args) => {
|
|
694071
|
+
const { skipInstall, debug } = args;
|
|
694072
|
+
if (debug) {
|
|
694073
|
+
console.log({ args });
|
|
694074
|
+
}
|
|
693430
694075
|
console.log(`
|
|
693431
694076
|
▶️ Updating Powerhouse dependencies...
|
|
693432
694077
|
`);
|
|
@@ -693542,13 +694187,14 @@ var useLocal = import_cmd_ts15.command({
|
|
|
693542
694187
|
long: "skip-install",
|
|
693543
694188
|
short: "s",
|
|
693544
694189
|
description: "Skip running `install` with `pnpm`"
|
|
693545
|
-
})
|
|
694190
|
+
}),
|
|
694191
|
+
...debugArgs
|
|
693546
694192
|
},
|
|
693547
|
-
handler: async ({
|
|
693548
|
-
monorepoPathPositional,
|
|
693549
|
-
|
|
693550
|
-
|
|
693551
|
-
|
|
694193
|
+
handler: async (args) => {
|
|
694194
|
+
const { monorepoPathPositional, monorepoPathOption, skipInstall, debug } = args;
|
|
694195
|
+
if (debug) {
|
|
694196
|
+
console.log({ args });
|
|
694197
|
+
}
|
|
693552
694198
|
const monorepoPath = monorepoPathPositional ?? monorepoPathOption;
|
|
693553
694199
|
if (!monorepoPath) {
|
|
693554
694200
|
throw new Error("❌ Please provide the path to your local powerhouse monorepo.");
|
|
@@ -693665,9 +694311,14 @@ var use = import_cmd_ts16.command({
|
|
|
693665
694311
|
long: "skip-install",
|
|
693666
694312
|
short: "s",
|
|
693667
694313
|
description: "Skip running `install` with your package manager"
|
|
693668
|
-
})
|
|
694314
|
+
}),
|
|
694315
|
+
...debugArgs
|
|
693669
694316
|
},
|
|
693670
|
-
handler: async (
|
|
694317
|
+
handler: async (args) => {
|
|
694318
|
+
const { tagPositional, tagOption, version: version3, skipInstall, debug } = args;
|
|
694319
|
+
if (debug) {
|
|
694320
|
+
console.log({ args });
|
|
694321
|
+
}
|
|
693671
694322
|
const tag2 = tagPositional ?? tagOption;
|
|
693672
694323
|
handleMutuallyExclusiveOptions({ tag: tag2, version: version3 }, "versioning strategy");
|
|
693673
694324
|
if (!tag2 && !version3) {
|
|
@@ -693790,7 +694441,7 @@ async function main2() {
|
|
|
693790
694441
|
await executePhCliCommand(command8);
|
|
693791
694442
|
return;
|
|
693792
694443
|
}
|
|
693793
|
-
await import_cmd_ts18.run(ph2,
|
|
694444
|
+
await import_cmd_ts18.run(ph2, args);
|
|
693794
694445
|
}
|
|
693795
694446
|
await main2().catch((e8) => {
|
|
693796
694447
|
console.error(e8);
|