@wix/cli-app 1.1.167 → 1.1.168
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/{AddPermissionCommand-R746BHR5.js → AddPermissionCommand-U7WLSX4K.js} +2 -2
- package/build/{DevCommand-CKCUIMQ7.js → DevCommand-HKLAZWVO.js} +12 -13
- package/build/DevCommand-HKLAZWVO.js.map +1 -0
- package/build/{GenerateCommand-4J3RKWIV.js → GenerateCommand-RIXAJ4TM.js} +7 -7
- package/build/{LogsCommand-6QLWARX7.js → LogsCommand-42DAHY6G.js} +3 -3
- package/build/PreviewCommand-B6R72CVG.js +19 -0
- package/build/ReleaseCommand-M2JVYLVJ.js +23 -0
- package/build/{ServeCommand-B3MMIWSX.js → ServeCommand-NFWPHZMW.js} +3 -3
- package/build/{build-Z4MTXLAQ.js → build-P73WLYJB.js} +6 -6
- package/build/{chunk-NSC3X7TO.js → chunk-2OTJK34O.js} +454 -48
- package/build/chunk-2OTJK34O.js.map +1 -0
- package/build/{chunk-XDB4OLY2.js → chunk-56EQ4QFU.js} +6 -6
- package/build/{chunk-JDFSGI5Y.js → chunk-B52566JC.js} +2 -2
- package/build/{chunk-YXBHRN4E.js → chunk-OQLZ6DHX.js} +2 -2
- package/build/{chunk-ISHV7FPE.js → chunk-QCUWX5L4.js} +3 -3
- package/build/{chunk-SARA3KL6.js → chunk-S23IP5IC.js} +2 -2
- package/build/{chunk-HUWTDLNU.js → chunk-SKJCY3HN.js} +2 -2
- package/build/{chunk-62F24QB5.js → chunk-TTFRWH6B.js} +14 -8
- package/build/chunk-TTFRWH6B.js.map +1 -0
- package/build/{chunk-GZMYMILB.js → chunk-UDZLFU7R.js} +2 -2
- package/build/{chunk-P4YNBBGD.js → chunk-UFMGDIV6.js} +3 -3
- package/build/{chunk-NV2YRHO2.js → chunk-UR7ZIHOO.js} +6 -6
- package/build/chunk-UR7ZIHOO.js.map +1 -0
- package/build/{chunk-Z2ABMO4N.js → chunk-WGFKFWHW.js} +2 -2
- package/build/{chunk-MS4HNHKA.js → chunk-X23LLJJE.js} +861 -983
- package/build/{chunk-MS4HNHKA.js.map → chunk-X23LLJJE.js.map} +1 -1
- package/build/{chunk-ZBARCRCN.js → chunk-XNHGCIZS.js} +2 -2
- package/build/{chunk-Z2U5TFST.js → chunk-Y2YU4FLR.js} +2 -2
- package/build/{chunk-TJYCXF3Y.js → chunk-ZGHWYTOU.js} +2 -2
- package/build/{chunk-SSVVBMIK.js → chunk-ZPTYHTPU.js} +6 -6
- package/build/index.js +23 -23
- package/build/{preview-VE24S6BC.js → preview-Y4AI2ZBW.js} +12 -12
- package/build/{release-XNPJ5PFC.js → release-MKAGU2B2.js} +14 -14
- package/build/{render-command-NWTZRACN.js → render-command-AMVWXP2I.js} +5 -5
- package/package.json +2 -2
- package/build/DevCommand-CKCUIMQ7.js.map +0 -1
- package/build/PreviewCommand-5FJEIIPR.js +0 -19
- package/build/ReleaseCommand-MFBXBLIH.js +0 -23
- package/build/chunk-62F24QB5.js.map +0 -1
- package/build/chunk-NSC3X7TO.js.map +0 -1
- package/build/chunk-NV2YRHO2.js.map +0 -1
- /package/build/{AddPermissionCommand-R746BHR5.js.map → AddPermissionCommand-U7WLSX4K.js.map} +0 -0
- /package/build/{GenerateCommand-4J3RKWIV.js.map → GenerateCommand-RIXAJ4TM.js.map} +0 -0
- /package/build/{LogsCommand-6QLWARX7.js.map → LogsCommand-42DAHY6G.js.map} +0 -0
- /package/build/{PreviewCommand-5FJEIIPR.js.map → PreviewCommand-B6R72CVG.js.map} +0 -0
- /package/build/{ReleaseCommand-MFBXBLIH.js.map → ReleaseCommand-M2JVYLVJ.js.map} +0 -0
- /package/build/{ServeCommand-B3MMIWSX.js.map → ServeCommand-NFWPHZMW.js.map} +0 -0
- /package/build/{build-Z4MTXLAQ.js.map → build-P73WLYJB.js.map} +0 -0
- /package/build/{chunk-XDB4OLY2.js.map → chunk-56EQ4QFU.js.map} +0 -0
- /package/build/{chunk-JDFSGI5Y.js.map → chunk-B52566JC.js.map} +0 -0
- /package/build/{chunk-YXBHRN4E.js.map → chunk-OQLZ6DHX.js.map} +0 -0
- /package/build/{chunk-ISHV7FPE.js.map → chunk-QCUWX5L4.js.map} +0 -0
- /package/build/{chunk-SARA3KL6.js.map → chunk-S23IP5IC.js.map} +0 -0
- /package/build/{chunk-HUWTDLNU.js.map → chunk-SKJCY3HN.js.map} +0 -0
- /package/build/{chunk-GZMYMILB.js.map → chunk-UDZLFU7R.js.map} +0 -0
- /package/build/{chunk-P4YNBBGD.js.map → chunk-UFMGDIV6.js.map} +0 -0
- /package/build/{chunk-Z2ABMO4N.js.map → chunk-WGFKFWHW.js.map} +0 -0
- /package/build/{chunk-ZBARCRCN.js.map → chunk-XNHGCIZS.js.map} +0 -0
- /package/build/{chunk-Z2U5TFST.js.map → chunk-Y2YU4FLR.js.map} +0 -0
- /package/build/{chunk-TJYCXF3Y.js.map → chunk-ZGHWYTOU.js.map} +0 -0
- /package/build/{chunk-SSVVBMIK.js.map → chunk-ZPTYHTPU.js.map} +0 -0
- /package/build/{preview-VE24S6BC.js.map → preview-Y4AI2ZBW.js.map} +0 -0
- /package/build/{release-XNPJ5PFC.js.map → release-MKAGU2B2.js.map} +0 -0
- /package/build/{render-command-NWTZRACN.js.map → render-command-AMVWXP2I.js.map} +0 -0
|
@@ -454,12 +454,12 @@ var require_match = __commonJS({
|
|
|
454
454
|
var variant_1 = require_variant();
|
|
455
455
|
var precepts_1 = require_precepts();
|
|
456
456
|
function matchImpl(key) {
|
|
457
|
-
const prematch = (_2) => (handler) => (instance2) =>
|
|
458
|
-
function
|
|
457
|
+
const prematch = (_2) => (handler) => (instance2) => match16(instance2, handler);
|
|
458
|
+
function match16(...args) {
|
|
459
459
|
var _a2, _b;
|
|
460
460
|
if (args.length === 1) {
|
|
461
461
|
const [handler] = args;
|
|
462
|
-
return (instance2) =>
|
|
462
|
+
return (instance2) => match16(instance2, handler);
|
|
463
463
|
} else if (args.length === 2) {
|
|
464
464
|
const [instanceOrTypeOrCreator, handlerParam] = args;
|
|
465
465
|
const instanceOrCreator = typeof instanceOrTypeOrCreator === "string" ? ofLiteral(instanceOrTypeOrCreator) : instanceOrTypeOrCreator;
|
|
@@ -491,7 +491,7 @@ var require_match = __commonJS({
|
|
|
491
491
|
function withFallback(handler, fallback) {
|
|
492
492
|
return (_2) => Object.assign(Object.assign({}, handler), { default: fallback });
|
|
493
493
|
}
|
|
494
|
-
return { match:
|
|
494
|
+
return { match: match16, ofLiteral, onLiteral, otherwise, partial, prematch, lookup: lookup2, withFallback };
|
|
495
495
|
}
|
|
496
496
|
exports.matchImpl = matchImpl;
|
|
497
497
|
}
|
|
@@ -589,7 +589,7 @@ var require_remote = __commonJS({
|
|
|
589
589
|
})(CompareResult = exports.CompareResult || (exports.CompareResult = {}));
|
|
590
590
|
function remoteImpl(key) {
|
|
591
591
|
const { isType: isType13 } = (0, isType_1.isTypeImpl)(key);
|
|
592
|
-
const { match:
|
|
592
|
+
const { match: match16 } = (0, match_1.matchImpl)(key);
|
|
593
593
|
const { variantList } = (0, variant_1.variantImpl)(key);
|
|
594
594
|
function isFunctions(vmod) {
|
|
595
595
|
const keys2 = Object.keys(vmod);
|
|
@@ -602,7 +602,7 @@ var require_remote = __commonJS({
|
|
|
602
602
|
key,
|
|
603
603
|
is: isFunctions(vmod),
|
|
604
604
|
new: vmod,
|
|
605
|
-
match:
|
|
605
|
+
match: match16
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
608
|
;
|
|
@@ -1399,7 +1399,7 @@ var require_extsprintf = __commonJS({
|
|
|
1399
1399
|
var args = Array.prototype.slice.call(arguments, 1);
|
|
1400
1400
|
var fmt = ofmt;
|
|
1401
1401
|
var flags, width, precision, conversion;
|
|
1402
|
-
var left, pad, sign, arg,
|
|
1402
|
+
var left, pad, sign, arg, match16;
|
|
1403
1403
|
var ret = "";
|
|
1404
1404
|
var argn = 1;
|
|
1405
1405
|
var posn = 0;
|
|
@@ -1410,16 +1410,16 @@ var require_extsprintf = __commonJS({
|
|
|
1410
1410
|
typeof fmt,
|
|
1411
1411
|
"first argument must be a format string"
|
|
1412
1412
|
);
|
|
1413
|
-
while ((
|
|
1414
|
-
ret +=
|
|
1415
|
-
fmt = fmt.substring(
|
|
1416
|
-
curconv =
|
|
1417
|
-
convposn = posn +
|
|
1418
|
-
posn +=
|
|
1419
|
-
flags =
|
|
1420
|
-
width =
|
|
1421
|
-
precision =
|
|
1422
|
-
conversion =
|
|
1413
|
+
while ((match16 = re.exec(fmt)) !== null) {
|
|
1414
|
+
ret += match16[1];
|
|
1415
|
+
fmt = fmt.substring(match16[0].length);
|
|
1416
|
+
curconv = match16[0].substring(match16[1].length);
|
|
1417
|
+
convposn = posn + match16[1].length + 1;
|
|
1418
|
+
posn += match16[0].length;
|
|
1419
|
+
flags = match16[2] || "";
|
|
1420
|
+
width = match16[3] || 0;
|
|
1421
|
+
precision = match16[4] || "";
|
|
1422
|
+
conversion = match16[6];
|
|
1423
1423
|
left = false;
|
|
1424
1424
|
sign = false;
|
|
1425
1425
|
pad = " ";
|
|
@@ -1949,10 +1949,10 @@ var require_main = __commonJS({
|
|
|
1949
1949
|
const obj = {};
|
|
1950
1950
|
let lines = src.toString();
|
|
1951
1951
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
1952
|
-
let
|
|
1953
|
-
while ((
|
|
1954
|
-
const key =
|
|
1955
|
-
let value2 =
|
|
1952
|
+
let match16;
|
|
1953
|
+
while ((match16 = LINE.exec(lines)) != null) {
|
|
1954
|
+
const key = match16[1];
|
|
1955
|
+
let value2 = match16[2] || "";
|
|
1956
1956
|
value2 = value2.trim();
|
|
1957
1957
|
const maybeQuote = value2[0];
|
|
1958
1958
|
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
@@ -8645,21 +8645,21 @@ var require_stack_utils = __commonJS({
|
|
|
8645
8645
|
return res;
|
|
8646
8646
|
}
|
|
8647
8647
|
parseLine(line) {
|
|
8648
|
-
const
|
|
8649
|
-
if (!
|
|
8648
|
+
const match16 = line && line.match(re);
|
|
8649
|
+
if (!match16) {
|
|
8650
8650
|
return null;
|
|
8651
8651
|
}
|
|
8652
|
-
const ctor =
|
|
8653
|
-
let fname =
|
|
8654
|
-
const evalOrigin =
|
|
8655
|
-
const evalFile =
|
|
8656
|
-
const evalLine = Number(
|
|
8657
|
-
const evalCol = Number(
|
|
8658
|
-
let file =
|
|
8659
|
-
const lnum =
|
|
8660
|
-
const col =
|
|
8661
|
-
const native =
|
|
8662
|
-
const closeParen =
|
|
8652
|
+
const ctor = match16[1] === "new";
|
|
8653
|
+
let fname = match16[2];
|
|
8654
|
+
const evalOrigin = match16[3];
|
|
8655
|
+
const evalFile = match16[4];
|
|
8656
|
+
const evalLine = Number(match16[5]);
|
|
8657
|
+
const evalCol = Number(match16[6]);
|
|
8658
|
+
let file = match16[7];
|
|
8659
|
+
const lnum = match16[8];
|
|
8660
|
+
const col = match16[9];
|
|
8661
|
+
const native = match16[10] === "native";
|
|
8662
|
+
const closeParen = match16[11] === ")";
|
|
8663
8663
|
let method;
|
|
8664
8664
|
const res = {};
|
|
8665
8665
|
if (lnum) {
|
|
@@ -12898,14 +12898,14 @@ var require_ms = __commonJS({
|
|
|
12898
12898
|
if (str.length > 100) {
|
|
12899
12899
|
return;
|
|
12900
12900
|
}
|
|
12901
|
-
var
|
|
12901
|
+
var match16 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
12902
12902
|
str
|
|
12903
12903
|
);
|
|
12904
|
-
if (!
|
|
12904
|
+
if (!match16) {
|
|
12905
12905
|
return;
|
|
12906
12906
|
}
|
|
12907
|
-
var n2 = parseFloat(
|
|
12908
|
-
var type = (
|
|
12907
|
+
var n2 = parseFloat(match16[1]);
|
|
12908
|
+
var type = (match16[2] || "ms").toLowerCase();
|
|
12909
12909
|
switch (type) {
|
|
12910
12910
|
case "years":
|
|
12911
12911
|
case "year":
|
|
@@ -13038,19 +13038,19 @@ var require_common = __commonJS({
|
|
|
13038
13038
|
args.unshift("%O");
|
|
13039
13039
|
}
|
|
13040
13040
|
let index = 0;
|
|
13041
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
13042
|
-
if (
|
|
13041
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match16, format) => {
|
|
13042
|
+
if (match16 === "%%") {
|
|
13043
13043
|
return "%";
|
|
13044
13044
|
}
|
|
13045
13045
|
index++;
|
|
13046
13046
|
const formatter = createDebug.formatters[format];
|
|
13047
13047
|
if (typeof formatter === "function") {
|
|
13048
13048
|
const val = args[index];
|
|
13049
|
-
|
|
13049
|
+
match16 = formatter.call(self2, val);
|
|
13050
13050
|
args.splice(index, 1);
|
|
13051
13051
|
index--;
|
|
13052
13052
|
}
|
|
13053
|
-
return
|
|
13053
|
+
return match16;
|
|
13054
13054
|
});
|
|
13055
13055
|
createDebug.formatArgs.call(self2, args);
|
|
13056
13056
|
const logFn = self2.log || createDebug.log;
|
|
@@ -13287,12 +13287,12 @@ var require_browser = __commonJS({
|
|
|
13287
13287
|
args.splice(1, 0, c2, "color: inherit");
|
|
13288
13288
|
let index = 0;
|
|
13289
13289
|
let lastC = 0;
|
|
13290
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
13291
|
-
if (
|
|
13290
|
+
args[0].replace(/%[a-zA-Z%]/g, (match16) => {
|
|
13291
|
+
if (match16 === "%%") {
|
|
13292
13292
|
return;
|
|
13293
13293
|
}
|
|
13294
13294
|
index++;
|
|
13295
|
-
if (
|
|
13295
|
+
if (match16 === "%c") {
|
|
13296
13296
|
lastC = index;
|
|
13297
13297
|
}
|
|
13298
13298
|
});
|
|
@@ -14478,8 +14478,8 @@ var require_cookies = __commonJS({
|
|
|
14478
14478
|
document.cookie = cookie.join("; ");
|
|
14479
14479
|
},
|
|
14480
14480
|
read: function read(name) {
|
|
14481
|
-
var
|
|
14482
|
-
return
|
|
14481
|
+
var match16 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
14482
|
+
return match16 ? decodeURIComponent(match16[3]) : null;
|
|
14483
14483
|
},
|
|
14484
14484
|
remove: function remove(name) {
|
|
14485
14485
|
this.write(name, "", Date.now() - 864e5);
|
|
@@ -16037,8 +16037,8 @@ var require_semver = __commonJS({
|
|
|
16037
16037
|
}
|
|
16038
16038
|
if (identifier) {
|
|
16039
16039
|
const r2 = new RegExp(`^${this.options.loose ? src[t3.PRERELEASELOOSE] : src[t3.PRERELEASE]}$`);
|
|
16040
|
-
const
|
|
16041
|
-
if (!
|
|
16040
|
+
const match16 = `-${identifier}`.match(r2);
|
|
16041
|
+
if (!match16 || match16[1] !== identifier) {
|
|
16042
16042
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
16043
16043
|
}
|
|
16044
16044
|
}
|
|
@@ -16521,28 +16521,28 @@ var require_coerce = __commonJS({
|
|
|
16521
16521
|
return null;
|
|
16522
16522
|
}
|
|
16523
16523
|
options = options || {};
|
|
16524
|
-
let
|
|
16524
|
+
let match16 = null;
|
|
16525
16525
|
if (!options.rtl) {
|
|
16526
|
-
|
|
16526
|
+
match16 = version.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
|
|
16527
16527
|
} else {
|
|
16528
16528
|
const coerceRtlRegex = options.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
|
|
16529
16529
|
let next;
|
|
16530
|
-
while ((next = coerceRtlRegex.exec(version)) && (!
|
|
16531
|
-
if (!
|
|
16532
|
-
|
|
16530
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match16 || match16.index + match16[0].length !== version.length)) {
|
|
16531
|
+
if (!match16 || next.index + next[0].length !== match16.index + match16[0].length) {
|
|
16532
|
+
match16 = next;
|
|
16533
16533
|
}
|
|
16534
16534
|
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
16535
16535
|
}
|
|
16536
16536
|
coerceRtlRegex.lastIndex = -1;
|
|
16537
16537
|
}
|
|
16538
|
-
if (
|
|
16538
|
+
if (match16 === null) {
|
|
16539
16539
|
return null;
|
|
16540
16540
|
}
|
|
16541
|
-
const major =
|
|
16542
|
-
const minor =
|
|
16543
|
-
const patch =
|
|
16544
|
-
const prerelease = options.includePrerelease &&
|
|
16545
|
-
const build = options.includePrerelease &&
|
|
16541
|
+
const major = match16[2];
|
|
16542
|
+
const minor = match16[3] || "0";
|
|
16543
|
+
const patch = match16[4] || "0";
|
|
16544
|
+
const prerelease = options.includePrerelease && match16[5] ? `-${match16[5]}` : "";
|
|
16545
|
+
const build = options.includePrerelease && match16[6] ? `+${match16[6]}` : "";
|
|
16546
16546
|
return parse6(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
16547
16547
|
};
|
|
16548
16548
|
module2.exports = coerce2;
|
|
@@ -21276,9 +21276,9 @@ ${trace}`);
|
|
|
21276
21276
|
function isMemberExpressionLike(node) {
|
|
21277
21277
|
return (0, _index.isMemberExpression)(node) || (0, _index.isMetaProperty)(node);
|
|
21278
21278
|
}
|
|
21279
|
-
function matchesPattern(member,
|
|
21279
|
+
function matchesPattern(member, match16, allowPartial) {
|
|
21280
21280
|
if (!isMemberExpressionLike(member)) return false;
|
|
21281
|
-
const parts = Array.isArray(
|
|
21281
|
+
const parts = Array.isArray(match16) ? match16 : match16.split(".");
|
|
21282
21282
|
const nodes = [];
|
|
21283
21283
|
let node;
|
|
21284
21284
|
for (node = member; isMemberExpressionLike(node); node = (_object = node.object) != null ? _object : node.meta) {
|
|
@@ -21318,8 +21318,8 @@ ${trace}`);
|
|
|
21318
21318
|
});
|
|
21319
21319
|
exports2.default = buildMatchMemberExpression;
|
|
21320
21320
|
var _matchesPattern = require_matchesPattern();
|
|
21321
|
-
function buildMatchMemberExpression(
|
|
21322
|
-
const parts =
|
|
21321
|
+
function buildMatchMemberExpression(match16, allowPartial) {
|
|
21322
|
+
const parts = match16.split(".");
|
|
21323
21323
|
return (member) => (0, _matchesPattern.default)(member, parts, allowPartial);
|
|
21324
21324
|
}
|
|
21325
21325
|
}
|
|
@@ -21749,8 +21749,8 @@ ${trace}`);
|
|
|
21749
21749
|
default:
|
|
21750
21750
|
if (ch >= 48 && ch <= 55) {
|
|
21751
21751
|
const startPos = pos2 - 1;
|
|
21752
|
-
const
|
|
21753
|
-
let octalStr =
|
|
21752
|
+
const match16 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
|
|
21753
|
+
let octalStr = match16[0];
|
|
21754
21754
|
let octal = parseInt(octalStr, 8);
|
|
21755
21755
|
if (octal > 255) {
|
|
21756
21756
|
octalStr = octalStr.slice(0, -1);
|
|
@@ -22618,9 +22618,9 @@ ${errors.join("\n")}`);
|
|
|
22618
22618
|
}
|
|
22619
22619
|
}),
|
|
22620
22620
|
validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2, node) {
|
|
22621
|
-
const
|
|
22622
|
-
if (!
|
|
22623
|
-
const [, parentKey] =
|
|
22621
|
+
const match16 = /\.(\w+)$/.exec(key2.toString());
|
|
22622
|
+
if (!match16) return;
|
|
22623
|
+
const [, parentKey] = match16;
|
|
22624
22624
|
const nonComp = {
|
|
22625
22625
|
computed: false
|
|
22626
22626
|
};
|
|
@@ -22949,9 +22949,9 @@ ${errors.join("\n")}`);
|
|
|
22949
22949
|
}
|
|
22950
22950
|
}),
|
|
22951
22951
|
validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2) {
|
|
22952
|
-
const
|
|
22953
|
-
if (!
|
|
22954
|
-
const [, listKey, index] =
|
|
22952
|
+
const match16 = /(\w+)\[(\d+)\]/.exec(key2.toString());
|
|
22953
|
+
if (!match16) throw new Error("Internal Babel error: malformed key.");
|
|
22954
|
+
const [, listKey, index] = match16;
|
|
22955
22955
|
if (parent[listKey].length > +index + 1) {
|
|
22956
22956
|
throw new TypeError(`RestElement must be last element of ${listKey}`);
|
|
22957
22957
|
}
|
|
@@ -30668,7 +30668,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
30668
30668
|
name += (0, _helperValidatorIdentifier.isIdentifierChar)(c22.codePointAt(0)) ? c22 : "-";
|
|
30669
30669
|
}
|
|
30670
30670
|
name = name.replace(/^[-0-9]+/, "");
|
|
30671
|
-
name = name.replace(/[-\s]+(.)?/g, function(
|
|
30671
|
+
name = name.replace(/[-\s]+(.)?/g, function(match16, c22) {
|
|
30672
30672
|
return c22 ? c22.toUpperCase() : "";
|
|
30673
30673
|
});
|
|
30674
30674
|
if (!(0, _isValidIdentifier.default)(name)) {
|
|
@@ -37970,8 +37970,8 @@ ${str}
|
|
|
37970
37970
|
default:
|
|
37971
37971
|
if (ch >= 48 && ch <= 55) {
|
|
37972
37972
|
const startPos = pos2 - 1;
|
|
37973
|
-
const
|
|
37974
|
-
let octalStr =
|
|
37973
|
+
const match16 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
|
|
37974
|
+
let octalStr = match16[0];
|
|
37975
37975
|
let octal = parseInt(octalStr, 8);
|
|
37976
37976
|
if (octal > 255) {
|
|
37977
37977
|
octalStr = octalStr.slice(0, -1);
|
|
@@ -47169,16 +47169,16 @@ ${str}
|
|
|
47169
47169
|
value: true
|
|
47170
47170
|
});
|
|
47171
47171
|
exports2.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
|
|
47172
|
-
exports2.matchToToken = function(
|
|
47173
|
-
var token22 = { type: "invalid", value:
|
|
47174
|
-
if (
|
|
47175
|
-
else if (
|
|
47176
|
-
else if (
|
|
47177
|
-
else if (
|
|
47178
|
-
else if (
|
|
47179
|
-
else if (
|
|
47180
|
-
else if (
|
|
47181
|
-
else if (
|
|
47172
|
+
exports2.matchToToken = function(match16) {
|
|
47173
|
+
var token22 = { type: "invalid", value: match16[0], closed: void 0 };
|
|
47174
|
+
if (match16[1]) token22.type = "string", token22.closed = !!(match16[3] || match16[4]);
|
|
47175
|
+
else if (match16[5]) token22.type = "comment";
|
|
47176
|
+
else if (match16[6]) token22.type = "comment", token22.closed = !!match16[7];
|
|
47177
|
+
else if (match16[8]) token22.type = "regex";
|
|
47178
|
+
else if (match16[9]) token22.type = "number";
|
|
47179
|
+
else if (match16[10]) token22.type = "name";
|
|
47180
|
+
else if (match16[11]) token22.type = "punctuator";
|
|
47181
|
+
else if (match16[12]) token22.type = "whitespace";
|
|
47182
47182
|
return token22;
|
|
47183
47183
|
};
|
|
47184
47184
|
}
|
|
@@ -47243,11 +47243,11 @@ ${str}
|
|
|
47243
47243
|
return token22.type;
|
|
47244
47244
|
};
|
|
47245
47245
|
tokenize2 = function* (text) {
|
|
47246
|
-
let
|
|
47247
|
-
while (
|
|
47248
|
-
const token22 = jsTokens.matchToToken(
|
|
47246
|
+
let match16;
|
|
47247
|
+
while (match16 = jsTokens.default.exec(text)) {
|
|
47248
|
+
const token22 = jsTokens.matchToToken(match16);
|
|
47249
47249
|
yield {
|
|
47250
|
-
type: getTokenType(token22,
|
|
47250
|
+
type: getTokenType(token22, match16.index, text),
|
|
47251
47251
|
value: token22.value
|
|
47252
47252
|
};
|
|
47253
47253
|
}
|
|
@@ -49511,14 +49511,14 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
49511
49511
|
if (str.length > 100) {
|
|
49512
49512
|
return;
|
|
49513
49513
|
}
|
|
49514
|
-
var
|
|
49514
|
+
var match16 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
49515
49515
|
str
|
|
49516
49516
|
);
|
|
49517
|
-
if (!
|
|
49517
|
+
if (!match16) {
|
|
49518
49518
|
return;
|
|
49519
49519
|
}
|
|
49520
|
-
var n2 = parseFloat(
|
|
49521
|
-
var type = (
|
|
49520
|
+
var n2 = parseFloat(match16[1]);
|
|
49521
|
+
var type = (match16[2] || "ms").toLowerCase();
|
|
49522
49522
|
switch (type) {
|
|
49523
49523
|
case "years":
|
|
49524
49524
|
case "year":
|
|
@@ -49648,19 +49648,19 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
49648
49648
|
args.unshift("%O");
|
|
49649
49649
|
}
|
|
49650
49650
|
let index = 0;
|
|
49651
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
49652
|
-
if (
|
|
49651
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match16, format) => {
|
|
49652
|
+
if (match16 === "%%") {
|
|
49653
49653
|
return "%";
|
|
49654
49654
|
}
|
|
49655
49655
|
index++;
|
|
49656
49656
|
const formatter = createDebug.formatters[format];
|
|
49657
49657
|
if (typeof formatter === "function") {
|
|
49658
49658
|
const val = args[index];
|
|
49659
|
-
|
|
49659
|
+
match16 = formatter.call(self2, val);
|
|
49660
49660
|
args.splice(index, 1);
|
|
49661
49661
|
index--;
|
|
49662
49662
|
}
|
|
49663
|
-
return
|
|
49663
|
+
return match16;
|
|
49664
49664
|
});
|
|
49665
49665
|
createDebug.formatArgs.call(self2, args);
|
|
49666
49666
|
const logFn = self2.log || createDebug.log;
|
|
@@ -49894,12 +49894,12 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
49894
49894
|
args.splice(1, 0, c22, "color: inherit");
|
|
49895
49895
|
let index = 0;
|
|
49896
49896
|
let lastC = 0;
|
|
49897
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
49898
|
-
if (
|
|
49897
|
+
args[0].replace(/%[a-zA-Z%]/g, (match16) => {
|
|
49898
|
+
if (match16 === "%%") {
|
|
49899
49899
|
return;
|
|
49900
49900
|
}
|
|
49901
49901
|
index++;
|
|
49902
|
-
if (
|
|
49902
|
+
if (match16 === "%c") {
|
|
49903
49903
|
lastC = index;
|
|
49904
49904
|
}
|
|
49905
49905
|
});
|
|
@@ -52521,13 +52521,13 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
|
|
|
52521
52521
|
return /^[.?#]/.test(input);
|
|
52522
52522
|
}
|
|
52523
52523
|
function parseAbsoluteUrl(input) {
|
|
52524
|
-
const
|
|
52525
|
-
return makeUrl(
|
|
52524
|
+
const match16 = urlRegex.exec(input);
|
|
52525
|
+
return makeUrl(match16[1], match16[2] || "", match16[3], match16[4] || "", match16[5] || "/", match16[6] || "", match16[7] || "");
|
|
52526
52526
|
}
|
|
52527
52527
|
function parseFileUrl(input) {
|
|
52528
|
-
const
|
|
52529
|
-
const path5 =
|
|
52530
|
-
return makeUrl("file:", "",
|
|
52528
|
+
const match16 = fileRegex.exec(input);
|
|
52529
|
+
const path5 = match16[2];
|
|
52530
|
+
return makeUrl("file:", "", match16[1] || "", "", isAbsolutePath(path5) ? path5 : "/" + path5, match16[3] || "", match16[4] || "");
|
|
52531
52531
|
}
|
|
52532
52532
|
function makeUrl(scheme, user, host, port, path5, query, hash) {
|
|
52533
52533
|
return {
|
|
@@ -61943,13 +61943,13 @@ ${" ".repeat(indentSize)}`);
|
|
|
61943
61943
|
for (const prop of props) {
|
|
61944
61944
|
if (!prop.isProperty()) continue;
|
|
61945
61945
|
const key2 = prop.get("key");
|
|
61946
|
-
let
|
|
61946
|
+
let match16 = prop.isnt("computed") && key2.isIdentifier({
|
|
61947
61947
|
name: targetName
|
|
61948
61948
|
});
|
|
61949
|
-
|
|
61949
|
+
match16 = match16 || key2.isLiteral({
|
|
61950
61950
|
value: targetName
|
|
61951
61951
|
});
|
|
61952
|
-
if (
|
|
61952
|
+
if (match16) return prop.get("value").resolve(dangerous, resolved);
|
|
61953
61953
|
}
|
|
61954
61954
|
} else if (target.isArrayExpression() && !isNaN(+targetName)) {
|
|
61955
61955
|
const elems = target.get("elements");
|
|
@@ -64365,23 +64365,23 @@ ${" ".repeat(indentSize)}`);
|
|
|
64365
64365
|
return null;
|
|
64366
64366
|
}
|
|
64367
64367
|
options = options || {};
|
|
64368
|
-
var
|
|
64368
|
+
var match16 = null;
|
|
64369
64369
|
if (!options.rtl) {
|
|
64370
|
-
|
|
64370
|
+
match16 = version.match(safeRe[t3.COERCE]);
|
|
64371
64371
|
} else {
|
|
64372
64372
|
var next;
|
|
64373
|
-
while ((next = safeRe[t3.COERCERTL].exec(version)) && (!
|
|
64374
|
-
if (!
|
|
64375
|
-
|
|
64373
|
+
while ((next = safeRe[t3.COERCERTL].exec(version)) && (!match16 || match16.index + match16[0].length !== version.length)) {
|
|
64374
|
+
if (!match16 || next.index + next[0].length !== match16.index + match16[0].length) {
|
|
64375
|
+
match16 = next;
|
|
64376
64376
|
}
|
|
64377
64377
|
safeRe[t3.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
64378
64378
|
}
|
|
64379
64379
|
safeRe[t3.COERCERTL].lastIndex = -1;
|
|
64380
64380
|
}
|
|
64381
|
-
if (
|
|
64381
|
+
if (match16 === null) {
|
|
64382
64382
|
return null;
|
|
64383
64383
|
}
|
|
64384
|
-
return parse32(
|
|
64384
|
+
return parse32(match16[2] + "." + (match16[3] || "0") + "." + (match16[4] || "0"), options);
|
|
64385
64385
|
}
|
|
64386
64386
|
}
|
|
64387
64387
|
});
|
|
@@ -69590,11 +69590,11 @@ ${" ".repeat(indentSize)}`);
|
|
|
69590
69590
|
}
|
|
69591
69591
|
for (var name in all) {
|
|
69592
69592
|
var type = all[name];
|
|
69593
|
-
var
|
|
69594
|
-
if (
|
|
69593
|
+
var match16 = query.match(type.regexp);
|
|
69594
|
+
if (match16) {
|
|
69595
69595
|
node.type = name;
|
|
69596
69596
|
for (var i2 = 0; i2 < type.matches.length; i2++) {
|
|
69597
|
-
node[type.matches[i2]] =
|
|
69597
|
+
node[type.matches[i2]] = match16[i2 + 1];
|
|
69598
69598
|
}
|
|
69599
69599
|
return node;
|
|
69600
69600
|
}
|
|
@@ -72620,23 +72620,23 @@ ${" ".repeat(indentSize)}`);
|
|
|
72620
72620
|
return null;
|
|
72621
72621
|
}
|
|
72622
72622
|
options = options || {};
|
|
72623
|
-
var
|
|
72623
|
+
var match16 = null;
|
|
72624
72624
|
if (!options.rtl) {
|
|
72625
|
-
|
|
72625
|
+
match16 = version.match(safeRe[t3.COERCE]);
|
|
72626
72626
|
} else {
|
|
72627
72627
|
var next;
|
|
72628
|
-
while ((next = safeRe[t3.COERCERTL].exec(version)) && (!
|
|
72629
|
-
if (!
|
|
72630
|
-
|
|
72628
|
+
while ((next = safeRe[t3.COERCERTL].exec(version)) && (!match16 || match16.index + match16[0].length !== version.length)) {
|
|
72629
|
+
if (!match16 || next.index + next[0].length !== match16.index + match16[0].length) {
|
|
72630
|
+
match16 = next;
|
|
72631
72631
|
}
|
|
72632
72632
|
safeRe[t3.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
72633
72633
|
}
|
|
72634
72634
|
safeRe[t3.COERCERTL].lastIndex = -1;
|
|
72635
72635
|
}
|
|
72636
|
-
if (
|
|
72636
|
+
if (match16 === null) {
|
|
72637
72637
|
return null;
|
|
72638
72638
|
}
|
|
72639
|
-
return parse32(
|
|
72639
|
+
return parse32(match16[2] + "." + (match16[3] || "0") + "." + (match16[4] || "0"), options);
|
|
72640
72640
|
}
|
|
72641
72641
|
}
|
|
72642
72642
|
});
|
|
@@ -77083,8 +77083,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
77083
77083
|
const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);
|
|
77084
77084
|
if (typeof options.filename === "string" && lastComment) {
|
|
77085
77085
|
try {
|
|
77086
|
-
const
|
|
77087
|
-
const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename),
|
|
77086
|
+
const match16 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
|
|
77087
|
+
const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match16[1]), "utf8");
|
|
77088
77088
|
inputMap = _convertSourceMap().fromJSON(inputMapContent);
|
|
77089
77089
|
} catch (err) {
|
|
77090
77090
|
debug("discarding unknown file input sourcemap", err);
|
|
@@ -82216,23 +82216,23 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
|
|
|
82216
82216
|
return null;
|
|
82217
82217
|
}
|
|
82218
82218
|
options = options || {};
|
|
82219
|
-
var
|
|
82219
|
+
var match16 = null;
|
|
82220
82220
|
if (!options.rtl) {
|
|
82221
|
-
|
|
82221
|
+
match16 = version.match(safeRe[t3.COERCE]);
|
|
82222
82222
|
} else {
|
|
82223
82223
|
var next;
|
|
82224
|
-
while ((next = safeRe[t3.COERCERTL].exec(version)) && (!
|
|
82225
|
-
if (!
|
|
82226
|
-
|
|
82224
|
+
while ((next = safeRe[t3.COERCERTL].exec(version)) && (!match16 || match16.index + match16[0].length !== version.length)) {
|
|
82225
|
+
if (!match16 || next.index + next[0].length !== match16.index + match16[0].length) {
|
|
82226
|
+
match16 = next;
|
|
82227
82227
|
}
|
|
82228
82228
|
safeRe[t3.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
|
|
82229
82229
|
}
|
|
82230
82230
|
safeRe[t3.COERCERTL].lastIndex = -1;
|
|
82231
82231
|
}
|
|
82232
|
-
if (
|
|
82232
|
+
if (match16 === null) {
|
|
82233
82233
|
return null;
|
|
82234
82234
|
}
|
|
82235
|
-
return parse32(
|
|
82235
|
+
return parse32(match16[2] + "." + (match16[3] || "0") + "." + (match16[4] || "0"), options);
|
|
82236
82236
|
}
|
|
82237
82237
|
}
|
|
82238
82238
|
});
|
|
@@ -85002,13 +85002,13 @@ module.exports = function(api) {
|
|
|
85002
85002
|
var encodedSeparatorRegEx = /%2f|%5c/i;
|
|
85003
85003
|
var emittedPackageWarnings = /* @__PURE__ */ new Set();
|
|
85004
85004
|
var doubleSlashRegEx = /[/\\]{2}/;
|
|
85005
|
-
function emitInvalidSegmentDeprecation(target, request,
|
|
85005
|
+
function emitInvalidSegmentDeprecation(target, request, match16, packageJsonUrl, internal, base, isTarget) {
|
|
85006
85006
|
if (_process().noDeprecation) {
|
|
85007
85007
|
return;
|
|
85008
85008
|
}
|
|
85009
85009
|
const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl);
|
|
85010
85010
|
const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;
|
|
85011
|
-
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request ===
|
|
85011
|
+
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match16 ? "" : `matched to "${match16}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
85012
85012
|
}
|
|
85013
85013
|
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
85014
85014
|
if (_process().noDeprecation) {
|
|
@@ -85118,16 +85118,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
85118
85118
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
85119
85119
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base));
|
|
85120
85120
|
}
|
|
85121
|
-
function throwInvalidSubpath(request,
|
|
85122
|
-
const reason = `request is not a valid match in pattern "${
|
|
85121
|
+
function throwInvalidSubpath(request, match16, packageJsonUrl, internal, base) {
|
|
85122
|
+
const reason = `request is not a valid match in pattern "${match16}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
|
|
85123
85123
|
throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base));
|
|
85124
85124
|
}
|
|
85125
85125
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
85126
85126
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
85127
85127
|
return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base));
|
|
85128
85128
|
}
|
|
85129
|
-
function resolvePackageTargetString(target, subpath,
|
|
85130
|
-
if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(
|
|
85129
|
+
function resolvePackageTargetString(target, subpath, match16, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
|
|
85130
|
+
if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match16, target, packageJsonUrl, internal, base);
|
|
85131
85131
|
if (!target.startsWith("./")) {
|
|
85132
85132
|
if (internal && !target.startsWith("../") && !target.startsWith("/")) {
|
|
85133
85133
|
let isURL2 = false;
|
|
@@ -85141,33 +85141,33 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
85141
85141
|
return packageResolve(exportTarget, packageJsonUrl, conditions);
|
|
85142
85142
|
}
|
|
85143
85143
|
}
|
|
85144
|
-
throw invalidPackageTarget(
|
|
85144
|
+
throw invalidPackageTarget(match16, target, packageJsonUrl, internal, base);
|
|
85145
85145
|
}
|
|
85146
85146
|
if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
|
|
85147
85147
|
if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
|
|
85148
85148
|
if (!isPathMap) {
|
|
85149
|
-
const request = pattern ?
|
|
85149
|
+
const request = pattern ? match16.replace("*", () => subpath) : match16 + subpath;
|
|
85150
85150
|
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
85151
|
-
emitInvalidSegmentDeprecation(resolvedTarget, request,
|
|
85151
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match16, packageJsonUrl, internal, base, true);
|
|
85152
85152
|
}
|
|
85153
85153
|
} else {
|
|
85154
|
-
throw invalidPackageTarget(
|
|
85154
|
+
throw invalidPackageTarget(match16, target, packageJsonUrl, internal, base);
|
|
85155
85155
|
}
|
|
85156
85156
|
}
|
|
85157
85157
|
const resolved = new (_url()).URL(target, packageJsonUrl);
|
|
85158
85158
|
const resolvedPath = resolved.pathname;
|
|
85159
85159
|
const packagePath = new (_url()).URL(".", packageJsonUrl).pathname;
|
|
85160
|
-
if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(
|
|
85160
|
+
if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match16, target, packageJsonUrl, internal, base);
|
|
85161
85161
|
if (subpath === "") return resolved;
|
|
85162
85162
|
if (invalidSegmentRegEx.exec(subpath) !== null) {
|
|
85163
|
-
const request = pattern ?
|
|
85163
|
+
const request = pattern ? match16.replace("*", () => subpath) : match16 + subpath;
|
|
85164
85164
|
if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
|
|
85165
85165
|
if (!isPathMap) {
|
|
85166
85166
|
const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
|
|
85167
|
-
emitInvalidSegmentDeprecation(resolvedTarget, request,
|
|
85167
|
+
emitInvalidSegmentDeprecation(resolvedTarget, request, match16, packageJsonUrl, internal, base, false);
|
|
85168
85168
|
}
|
|
85169
85169
|
} else {
|
|
85170
|
-
throwInvalidSubpath(request,
|
|
85170
|
+
throwInvalidSubpath(request, match16, packageJsonUrl, internal, base);
|
|
85171
85171
|
}
|
|
85172
85172
|
}
|
|
85173
85173
|
if (pattern) {
|
|
@@ -85256,14 +85256,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
85256
85256
|
}
|
|
85257
85257
|
return isConditionalSugar;
|
|
85258
85258
|
}
|
|
85259
|
-
function emitTrailingSlashPatternDeprecation(
|
|
85259
|
+
function emitTrailingSlashPatternDeprecation(match16, pjsonUrl, base) {
|
|
85260
85260
|
if (_process().noDeprecation) {
|
|
85261
85261
|
return;
|
|
85262
85262
|
}
|
|
85263
85263
|
const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl);
|
|
85264
|
-
if (emittedPackageWarnings.has(pjsonPath + "|" +
|
|
85265
|
-
emittedPackageWarnings.add(pjsonPath + "|" +
|
|
85266
|
-
_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${
|
|
85264
|
+
if (emittedPackageWarnings.has(pjsonPath + "|" + match16)) return;
|
|
85265
|
+
emittedPackageWarnings.add(pjsonPath + "|" + match16);
|
|
85266
|
+
_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match16}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155");
|
|
85267
85267
|
}
|
|
85268
85268
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
85269
85269
|
let exports3 = packageConfig.exports;
|
|
@@ -88279,7 +88279,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
88279
88279
|
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
88280
88280
|
exports2.makeRe = makeRe;
|
|
88281
88281
|
exports2.minimatch.makeRe = exports2.makeRe;
|
|
88282
|
-
var
|
|
88282
|
+
var match16 = (list, pattern, options = {}) => {
|
|
88283
88283
|
const mm = new Minimatch(pattern, options);
|
|
88284
88284
|
list = list.filter((f) => mm.match(f));
|
|
88285
88285
|
if (mm.options.nonull && !list.length) {
|
|
@@ -88287,7 +88287,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
88287
88287
|
}
|
|
88288
88288
|
return list;
|
|
88289
88289
|
};
|
|
88290
|
-
exports2.match =
|
|
88290
|
+
exports2.match = match16;
|
|
88291
88291
|
exports2.minimatch.match = exports2.match;
|
|
88292
88292
|
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
88293
88293
|
var regExpEscape = (s2) => s2.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
@@ -95071,10 +95071,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
95071
95071
|
});
|
|
95072
95072
|
}
|
|
95073
95073
|
let shouldIndentNextCharacter = options.indentStart !== false;
|
|
95074
|
-
const replacer = (
|
|
95075
|
-
if (shouldIndentNextCharacter) return `${indentStr}${
|
|
95074
|
+
const replacer = (match16) => {
|
|
95075
|
+
if (shouldIndentNextCharacter) return `${indentStr}${match16}`;
|
|
95076
95076
|
shouldIndentNextCharacter = true;
|
|
95077
|
-
return
|
|
95077
|
+
return match16;
|
|
95078
95078
|
};
|
|
95079
95079
|
this.intro = this.intro.replace(pattern, replacer);
|
|
95080
95080
|
let charIndex = 0;
|
|
@@ -95462,44 +95462,44 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
95462
95462
|
return this.original !== this.toString();
|
|
95463
95463
|
}
|
|
95464
95464
|
_replaceRegexp(searchValue, replacement) {
|
|
95465
|
-
function getReplacement(
|
|
95465
|
+
function getReplacement(match16, str) {
|
|
95466
95466
|
if (typeof replacement === "string") {
|
|
95467
95467
|
return replacement.replace(/\$(\$|&|\d+)/g, (_2, i2) => {
|
|
95468
95468
|
if (i2 === "$") return "$";
|
|
95469
|
-
if (i2 === "&") return
|
|
95469
|
+
if (i2 === "&") return match16[0];
|
|
95470
95470
|
const num = +i2;
|
|
95471
|
-
if (num <
|
|
95471
|
+
if (num < match16.length) return match16[+i2];
|
|
95472
95472
|
return `$${i2}`;
|
|
95473
95473
|
});
|
|
95474
95474
|
} else {
|
|
95475
|
-
return replacement(...
|
|
95475
|
+
return replacement(...match16, match16.index, str, match16.groups);
|
|
95476
95476
|
}
|
|
95477
95477
|
}
|
|
95478
95478
|
function matchAll(re, str) {
|
|
95479
|
-
let
|
|
95479
|
+
let match16;
|
|
95480
95480
|
const matches = [];
|
|
95481
|
-
while (
|
|
95482
|
-
matches.push(
|
|
95481
|
+
while (match16 = re.exec(str)) {
|
|
95482
|
+
matches.push(match16);
|
|
95483
95483
|
}
|
|
95484
95484
|
return matches;
|
|
95485
95485
|
}
|
|
95486
95486
|
if (searchValue.global) {
|
|
95487
95487
|
const matches = matchAll(searchValue, this.original);
|
|
95488
|
-
matches.forEach((
|
|
95489
|
-
if (
|
|
95488
|
+
matches.forEach((match16) => {
|
|
95489
|
+
if (match16.index != null)
|
|
95490
95490
|
this.overwrite(
|
|
95491
|
-
|
|
95492
|
-
|
|
95493
|
-
getReplacement(
|
|
95491
|
+
match16.index,
|
|
95492
|
+
match16.index + match16[0].length,
|
|
95493
|
+
getReplacement(match16, this.original)
|
|
95494
95494
|
);
|
|
95495
95495
|
});
|
|
95496
95496
|
} else {
|
|
95497
|
-
const
|
|
95498
|
-
if (
|
|
95497
|
+
const match16 = this.original.match(searchValue);
|
|
95498
|
+
if (match16 && match16.index != null)
|
|
95499
95499
|
this.overwrite(
|
|
95500
|
-
|
|
95501
|
-
|
|
95502
|
-
getReplacement(
|
|
95500
|
+
match16.index,
|
|
95501
|
+
match16.index + match16[0].length,
|
|
95502
|
+
getReplacement(match16, this.original)
|
|
95503
95503
|
);
|
|
95504
95504
|
}
|
|
95505
95505
|
return this;
|
|
@@ -95703,8 +95703,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
95703
95703
|
trailingNewline = source2.content.lastChar() === "\n";
|
|
95704
95704
|
});
|
|
95705
95705
|
if (this.intro) {
|
|
95706
|
-
this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (
|
|
95707
|
-
return index > 0 ? indentStr +
|
|
95706
|
+
this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match16, index) => {
|
|
95707
|
+
return index > 0 ? indentStr + match16 : match16;
|
|
95708
95708
|
});
|
|
95709
95709
|
}
|
|
95710
95710
|
return this;
|
|
@@ -95985,8 +95985,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
95985
95985
|
exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
95986
95986
|
exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
95987
95987
|
exports2.removeBackslashes = (str) => {
|
|
95988
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, (
|
|
95989
|
-
return
|
|
95988
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, (match16) => {
|
|
95989
|
+
return match16 === "\\" ? "" : match16;
|
|
95990
95990
|
});
|
|
95991
95991
|
};
|
|
95992
95992
|
exports2.supportsLookbehinds = () => {
|
|
@@ -96603,10 +96603,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
96603
96603
|
push22({ type: "text", value: value2 });
|
|
96604
96604
|
continue;
|
|
96605
96605
|
}
|
|
96606
|
-
const
|
|
96606
|
+
const match16 = /^\\+/.exec(remaining());
|
|
96607
96607
|
let slashes = 0;
|
|
96608
|
-
if (
|
|
96609
|
-
slashes =
|
|
96608
|
+
if (match16 && match16[0].length > 2) {
|
|
96609
|
+
slashes = match16[0].length;
|
|
96610
96610
|
state.index += slashes;
|
|
96611
96611
|
if (slashes % 2 !== 0) {
|
|
96612
96612
|
value2 += "\\";
|
|
@@ -96894,10 +96894,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
96894
96894
|
if (value2 === "$" || value2 === "^") {
|
|
96895
96895
|
value2 = `\\${value2}`;
|
|
96896
96896
|
}
|
|
96897
|
-
const
|
|
96898
|
-
if (
|
|
96899
|
-
value2 +=
|
|
96900
|
-
state.index +=
|
|
96897
|
+
const match16 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
96898
|
+
if (match16) {
|
|
96899
|
+
value2 += match16[0];
|
|
96900
|
+
state.index += match16[0].length;
|
|
96901
96901
|
}
|
|
96902
96902
|
push22({ type: "text", value: value2 });
|
|
96903
96903
|
continue;
|
|
@@ -97108,11 +97108,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
97108
97108
|
case "**/.*":
|
|
97109
97109
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
97110
97110
|
default: {
|
|
97111
|
-
const
|
|
97112
|
-
if (!
|
|
97113
|
-
const source3 = create3(
|
|
97111
|
+
const match16 = /^(.*?)\.(\w+)$/.exec(str);
|
|
97112
|
+
if (!match16) return;
|
|
97113
|
+
const source3 = create3(match16[1]);
|
|
97114
97114
|
if (!source3) return;
|
|
97115
|
-
return source3 + DOT_LITERAL +
|
|
97115
|
+
return source3 + DOT_LITERAL + match16[2];
|
|
97116
97116
|
}
|
|
97117
97117
|
}
|
|
97118
97118
|
};
|
|
@@ -97162,8 +97162,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
97162
97162
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
97163
97163
|
}
|
|
97164
97164
|
const matcher2 = (input, returnObject = false) => {
|
|
97165
|
-
const { isMatch, match:
|
|
97166
|
-
const result = { glob, state, regex: regex2, posix, input, output, match:
|
|
97165
|
+
const { isMatch, match: match16, output } = picomatch.test(input, regex2, options, { glob, posix });
|
|
97166
|
+
const result = { glob, state, regex: regex2, posix, input, output, match: match16, isMatch };
|
|
97167
97167
|
if (typeof opts.onResult === "function") {
|
|
97168
97168
|
opts.onResult(result);
|
|
97169
97169
|
}
|
|
@@ -97197,20 +97197,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
97197
97197
|
}
|
|
97198
97198
|
const opts = options || {};
|
|
97199
97199
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
97200
|
-
let
|
|
97201
|
-
let output =
|
|
97202
|
-
if (
|
|
97200
|
+
let match16 = input === glob;
|
|
97201
|
+
let output = match16 && format ? format(input) : input;
|
|
97202
|
+
if (match16 === false) {
|
|
97203
97203
|
output = format ? format(input) : input;
|
|
97204
|
-
|
|
97204
|
+
match16 = output === glob;
|
|
97205
97205
|
}
|
|
97206
|
-
if (
|
|
97206
|
+
if (match16 === false || opts.capture === true) {
|
|
97207
97207
|
if (opts.matchBase === true || opts.basename === true) {
|
|
97208
|
-
|
|
97208
|
+
match16 = picomatch.matchBase(input, regex2, options, posix);
|
|
97209
97209
|
} else {
|
|
97210
|
-
|
|
97210
|
+
match16 = regex2.exec(output);
|
|
97211
97211
|
}
|
|
97212
97212
|
}
|
|
97213
|
-
return { isMatch: Boolean(
|
|
97213
|
+
return { isMatch: Boolean(match16), match: match16, output };
|
|
97214
97214
|
};
|
|
97215
97215
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
97216
97216
|
const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -97711,8 +97711,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
97711
97711
|
exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
97712
97712
|
exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
97713
97713
|
exports2.removeBackslashes = (str) => {
|
|
97714
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, (
|
|
97715
|
-
return
|
|
97714
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, (match16) => {
|
|
97715
|
+
return match16 === "\\" ? "" : match16;
|
|
97716
97716
|
});
|
|
97717
97717
|
};
|
|
97718
97718
|
exports2.supportsLookbehinds = () => {
|
|
@@ -98329,10 +98329,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
98329
98329
|
push22({ type: "text", value: value2 });
|
|
98330
98330
|
continue;
|
|
98331
98331
|
}
|
|
98332
|
-
const
|
|
98332
|
+
const match16 = /^\\+/.exec(remaining());
|
|
98333
98333
|
let slashes = 0;
|
|
98334
|
-
if (
|
|
98335
|
-
slashes =
|
|
98334
|
+
if (match16 && match16[0].length > 2) {
|
|
98335
|
+
slashes = match16[0].length;
|
|
98336
98336
|
state.index += slashes;
|
|
98337
98337
|
if (slashes % 2 !== 0) {
|
|
98338
98338
|
value2 += "\\";
|
|
@@ -98620,10 +98620,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
98620
98620
|
if (value2 === "$" || value2 === "^") {
|
|
98621
98621
|
value2 = `\\${value2}`;
|
|
98622
98622
|
}
|
|
98623
|
-
const
|
|
98624
|
-
if (
|
|
98625
|
-
value2 +=
|
|
98626
|
-
state.index +=
|
|
98623
|
+
const match16 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
98624
|
+
if (match16) {
|
|
98625
|
+
value2 += match16[0];
|
|
98626
|
+
state.index += match16[0].length;
|
|
98627
98627
|
}
|
|
98628
98628
|
push22({ type: "text", value: value2 });
|
|
98629
98629
|
continue;
|
|
@@ -98834,11 +98834,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
98834
98834
|
case "**/.*":
|
|
98835
98835
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
98836
98836
|
default: {
|
|
98837
|
-
const
|
|
98838
|
-
if (!
|
|
98839
|
-
const source3 = create3(
|
|
98837
|
+
const match16 = /^(.*?)\.(\w+)$/.exec(str);
|
|
98838
|
+
if (!match16) return;
|
|
98839
|
+
const source3 = create3(match16[1]);
|
|
98840
98840
|
if (!source3) return;
|
|
98841
|
-
return source3 + DOT_LITERAL +
|
|
98841
|
+
return source3 + DOT_LITERAL + match16[2];
|
|
98842
98842
|
}
|
|
98843
98843
|
}
|
|
98844
98844
|
};
|
|
@@ -98888,8 +98888,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
98888
98888
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
98889
98889
|
}
|
|
98890
98890
|
const matcher2 = (input, returnObject = false) => {
|
|
98891
|
-
const { isMatch, match:
|
|
98892
|
-
const result = { glob, state, regex: regex2, posix, input, output, match:
|
|
98891
|
+
const { isMatch, match: match16, output } = picomatch.test(input, regex2, options, { glob, posix });
|
|
98892
|
+
const result = { glob, state, regex: regex2, posix, input, output, match: match16, isMatch };
|
|
98893
98893
|
if (typeof opts.onResult === "function") {
|
|
98894
98894
|
opts.onResult(result);
|
|
98895
98895
|
}
|
|
@@ -98923,20 +98923,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
98923
98923
|
}
|
|
98924
98924
|
const opts = options || {};
|
|
98925
98925
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
98926
|
-
let
|
|
98927
|
-
let output =
|
|
98928
|
-
if (
|
|
98926
|
+
let match16 = input === glob;
|
|
98927
|
+
let output = match16 && format ? format(input) : input;
|
|
98928
|
+
if (match16 === false) {
|
|
98929
98929
|
output = format ? format(input) : input;
|
|
98930
|
-
|
|
98930
|
+
match16 = output === glob;
|
|
98931
98931
|
}
|
|
98932
|
-
if (
|
|
98932
|
+
if (match16 === false || opts.capture === true) {
|
|
98933
98933
|
if (opts.matchBase === true || opts.basename === true) {
|
|
98934
|
-
|
|
98934
|
+
match16 = picomatch.matchBase(input, regex2, options, posix);
|
|
98935
98935
|
} else {
|
|
98936
|
-
|
|
98936
|
+
match16 = regex2.exec(output);
|
|
98937
98937
|
}
|
|
98938
98938
|
}
|
|
98939
|
-
return { isMatch: Boolean(
|
|
98939
|
+
return { isMatch: Boolean(match16), match: match16, output };
|
|
98940
98940
|
};
|
|
98941
98941
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
98942
98942
|
const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -99095,10 +99095,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
99095
99095
|
if (typeof str !== "string" || str === "") {
|
|
99096
99096
|
return false;
|
|
99097
99097
|
}
|
|
99098
|
-
var
|
|
99099
|
-
while (
|
|
99100
|
-
if (
|
|
99101
|
-
str = str.slice(
|
|
99098
|
+
var match16;
|
|
99099
|
+
while (match16 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
99100
|
+
if (match16[2]) return true;
|
|
99101
|
+
str = str.slice(match16.index + match16[0].length);
|
|
99102
99102
|
}
|
|
99103
99103
|
return false;
|
|
99104
99104
|
};
|
|
@@ -102844,17 +102844,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
102844
102844
|
for (; ; ) {
|
|
102845
102845
|
skipWhiteSpace.lastIndex = start;
|
|
102846
102846
|
start += skipWhiteSpace.exec(this.input)[0].length;
|
|
102847
|
-
var
|
|
102848
|
-
if (!
|
|
102847
|
+
var match16 = literal2.exec(this.input.slice(start));
|
|
102848
|
+
if (!match16) {
|
|
102849
102849
|
return false;
|
|
102850
102850
|
}
|
|
102851
|
-
if ((
|
|
102852
|
-
skipWhiteSpace.lastIndex = start +
|
|
102851
|
+
if ((match16[1] || match16[2]) === "use strict") {
|
|
102852
|
+
skipWhiteSpace.lastIndex = start + match16[0].length;
|
|
102853
102853
|
var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
|
|
102854
102854
|
var next = this.input.charAt(end);
|
|
102855
102855
|
return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
|
|
102856
102856
|
}
|
|
102857
|
-
start +=
|
|
102857
|
+
start += match16[0].length;
|
|
102858
102858
|
skipWhiteSpace.lastIndex = start;
|
|
102859
102859
|
start += skipWhiteSpace.exec(this.input)[0].length;
|
|
102860
102860
|
if (this.input[start] === ";") {
|
|
@@ -108300,17 +108300,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
108300
108300
|
var streamChunksOfRawSource = (source2, onChunk, onSource, onName) => {
|
|
108301
108301
|
let line2 = 1;
|
|
108302
108302
|
const matches = splitIntoLines(source2);
|
|
108303
|
-
let
|
|
108304
|
-
for (
|
|
108305
|
-
onChunk(
|
|
108303
|
+
let match16;
|
|
108304
|
+
for (match16 of matches) {
|
|
108305
|
+
onChunk(match16, line2, 0, -1, -1, -1, -1);
|
|
108306
108306
|
line2++;
|
|
108307
108307
|
}
|
|
108308
|
-
return matches.length === 0 ||
|
|
108308
|
+
return matches.length === 0 || match16.endsWith("\n") ? {
|
|
108309
108309
|
generatedLine: matches.length + 1,
|
|
108310
108310
|
generatedColumn: 0
|
|
108311
108311
|
} : {
|
|
108312
108312
|
generatedLine: matches.length,
|
|
108313
|
-
generatedColumn:
|
|
108313
|
+
generatedColumn: match16.length
|
|
108314
108314
|
};
|
|
108315
108315
|
};
|
|
108316
108316
|
module22.exports = (source2, onChunk, onSource, onName, finalSource) => {
|
|
@@ -108744,19 +108744,19 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
108744
108744
|
let line2 = 1;
|
|
108745
108745
|
let column2 = 0;
|
|
108746
108746
|
if (matches !== null) {
|
|
108747
|
-
for (const
|
|
108748
|
-
const isEndOfLine =
|
|
108749
|
-
if (isEndOfLine &&
|
|
108750
|
-
if (!finalSource) onChunk(
|
|
108747
|
+
for (const match16 of matches) {
|
|
108748
|
+
const isEndOfLine = match16.endsWith("\n");
|
|
108749
|
+
if (isEndOfLine && match16.length === 1) {
|
|
108750
|
+
if (!finalSource) onChunk(match16, line2, column2, -1, -1, -1, -1);
|
|
108751
108751
|
} else {
|
|
108752
|
-
const chunk = finalSource ? void 0 :
|
|
108752
|
+
const chunk = finalSource ? void 0 : match16;
|
|
108753
108753
|
onChunk(chunk, line2, column2, 0, line2, column2, -1);
|
|
108754
108754
|
}
|
|
108755
108755
|
if (isEndOfLine) {
|
|
108756
108756
|
line2++;
|
|
108757
108757
|
column2 = 0;
|
|
108758
108758
|
} else {
|
|
108759
|
-
column2 +=
|
|
108759
|
+
column2 += match16.length;
|
|
108760
108760
|
}
|
|
108761
108761
|
}
|
|
108762
108762
|
}
|
|
@@ -108779,18 +108779,18 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
108779
108779
|
} else {
|
|
108780
108780
|
let line2 = 1;
|
|
108781
108781
|
const matches = splitIntoLines(this._value);
|
|
108782
|
-
let
|
|
108783
|
-
for (
|
|
108784
|
-
onChunk(finalSource ? void 0 :
|
|
108782
|
+
let match16;
|
|
108783
|
+
for (match16 of matches) {
|
|
108784
|
+
onChunk(finalSource ? void 0 : match16, line2, 0, 0, line2, 0, -1);
|
|
108785
108785
|
line2++;
|
|
108786
108786
|
}
|
|
108787
|
-
return matches.length === 0 ||
|
|
108787
|
+
return matches.length === 0 || match16.endsWith("\n") ? {
|
|
108788
108788
|
generatedLine: matches.length + 1,
|
|
108789
108789
|
generatedColumn: 0,
|
|
108790
108790
|
source: finalSource ? this._value : void 0
|
|
108791
108791
|
} : {
|
|
108792
108792
|
generatedLine: matches.length,
|
|
108793
|
-
generatedColumn:
|
|
108793
|
+
generatedColumn: match16.length,
|
|
108794
108794
|
source: finalSource ? this._value : void 0
|
|
108795
108795
|
};
|
|
108796
108796
|
}
|
|
@@ -111063,13 +111063,13 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
|
|
|
111063
111063
|
return input.startsWith("/");
|
|
111064
111064
|
}
|
|
111065
111065
|
function parseAbsoluteUrl(input) {
|
|
111066
|
-
const
|
|
111066
|
+
const match16 = urlRegex.exec(input);
|
|
111067
111067
|
return {
|
|
111068
|
-
scheme:
|
|
111069
|
-
user:
|
|
111070
|
-
host:
|
|
111071
|
-
port:
|
|
111072
|
-
path:
|
|
111068
|
+
scheme: match16[1],
|
|
111069
|
+
user: match16[2] || "",
|
|
111070
|
+
host: match16[3],
|
|
111071
|
+
port: match16[4] || "",
|
|
111072
|
+
path: match16[5] || "/",
|
|
111073
111073
|
relativePath: false
|
|
111074
111074
|
};
|
|
111075
111075
|
}
|
|
@@ -112385,10 +112385,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
112385
112385
|
const obj = {};
|
|
112386
112386
|
let lines = src.toString();
|
|
112387
112387
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
112388
|
-
let
|
|
112389
|
-
while ((
|
|
112390
|
-
const key2 =
|
|
112391
|
-
let value2 =
|
|
112388
|
+
let match16;
|
|
112389
|
+
while ((match16 = LINE.exec(lines)) != null) {
|
|
112390
|
+
const key2 = match16[1];
|
|
112391
|
+
let value2 = match16[2] || "";
|
|
112392
112392
|
value2 = value2.trim();
|
|
112393
112393
|
const maybeQuote = value2[0];
|
|
112394
112394
|
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
@@ -113585,14 +113585,14 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
113585
113585
|
return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path22 ? `${path22}/` : path22}${projectId}`;
|
|
113586
113586
|
}
|
|
113587
113587
|
function dsnFromString2(str) {
|
|
113588
|
-
const
|
|
113589
|
-
if (!
|
|
113588
|
+
const match16 = DSN_REGEX.exec(str);
|
|
113589
|
+
if (!match16) {
|
|
113590
113590
|
consoleSandbox(() => {
|
|
113591
113591
|
console.error(`Invalid Sentry Dsn: ${str}`);
|
|
113592
113592
|
});
|
|
113593
113593
|
return void 0;
|
|
113594
113594
|
}
|
|
113595
|
-
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] =
|
|
113595
|
+
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match16.slice(1);
|
|
113596
113596
|
let path22 = "";
|
|
113597
113597
|
let projectId = lastPath;
|
|
113598
113598
|
const split = projectId.split("/");
|
|
@@ -117943,9 +117943,9 @@ Reason: ${reason}`
|
|
|
117943
117943
|
version = version.slice(1);
|
|
117944
117944
|
}
|
|
117945
117945
|
var regex2 = /^[\^~]?(\d+)(\.\d+)?(\.\d+)?(-.+)?/;
|
|
117946
|
-
var
|
|
117947
|
-
if (
|
|
117948
|
-
return parseInt(
|
|
117946
|
+
var match16 = version.match(regex2);
|
|
117947
|
+
if (match16) {
|
|
117948
|
+
return parseInt(match16[1], 10);
|
|
117949
117949
|
}
|
|
117950
117950
|
var coerced = parseInt(version, 10);
|
|
117951
117951
|
if (!Number.isNaN(coerced)) {
|
|
@@ -118600,9 +118600,9 @@ Reason: ${reason}`
|
|
|
118600
118600
|
return _prepareBundleForDebugIdUpload.apply(this, arguments);
|
|
118601
118601
|
}
|
|
118602
118602
|
function determineDebugIdFromBundleSource(code) {
|
|
118603
|
-
var
|
|
118604
|
-
if (
|
|
118605
|
-
return
|
|
118603
|
+
var match16 = code.match(/sentry-dbid-([0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})/);
|
|
118604
|
+
if (match16) {
|
|
118605
|
+
return match16[1];
|
|
118606
118606
|
} else {
|
|
118607
118607
|
return void 0;
|
|
118608
118608
|
}
|
|
@@ -119763,9 +119763,9 @@ Reason: ${reason}`
|
|
|
119763
119763
|
var ms = new MagicString__default["default"](code, {
|
|
119764
119764
|
filename: chunk.fileName
|
|
119765
119765
|
});
|
|
119766
|
-
var
|
|
119767
|
-
if (
|
|
119768
|
-
ms.appendLeft(
|
|
119766
|
+
var match16 = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
|
|
119767
|
+
if (match16) {
|
|
119768
|
+
ms.appendLeft(match16.length, codeToInject);
|
|
119769
119769
|
} else {
|
|
119770
119770
|
ms.prepend(codeToInject);
|
|
119771
119771
|
}
|
|
@@ -119795,9 +119795,9 @@ Reason: ${reason}`
|
|
|
119795
119795
|
var ms = new MagicString__default["default"](code, {
|
|
119796
119796
|
filename: chunk.fileName
|
|
119797
119797
|
});
|
|
119798
|
-
var
|
|
119799
|
-
if (
|
|
119800
|
-
ms.appendLeft(
|
|
119798
|
+
var match16 = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
|
|
119799
|
+
if (match16) {
|
|
119800
|
+
ms.appendLeft(match16.length, injectionCode);
|
|
119801
119801
|
} else {
|
|
119802
119802
|
ms.prepend(injectionCode);
|
|
119803
119803
|
}
|
|
@@ -124418,11 +124418,11 @@ ${error.errors.map(formatZodIssue2).join("\n")}`,
|
|
|
124418
124418
|
};
|
|
124419
124419
|
}
|
|
124420
124420
|
function dsnFromString(str) {
|
|
124421
|
-
const
|
|
124422
|
-
if (!
|
|
124421
|
+
const match16 = SENTRY_DSN_REGEX.exec(str);
|
|
124422
|
+
if (!match16) {
|
|
124423
124423
|
throw new Error("Invalid DSN");
|
|
124424
124424
|
}
|
|
124425
|
-
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] =
|
|
124425
|
+
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match16.slice(1);
|
|
124426
124426
|
let path5 = "";
|
|
124427
124427
|
let projectId = lastPath;
|
|
124428
124428
|
const split = projectId.split("/");
|
|
@@ -124664,10 +124664,10 @@ var require_is_extglob = __commonJS({
|
|
|
124664
124664
|
if (typeof str !== "string" || str === "") {
|
|
124665
124665
|
return false;
|
|
124666
124666
|
}
|
|
124667
|
-
var
|
|
124668
|
-
while (
|
|
124669
|
-
if (
|
|
124670
|
-
str = str.slice(
|
|
124667
|
+
var match16;
|
|
124668
|
+
while (match16 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
124669
|
+
if (match16[2]) return true;
|
|
124670
|
+
str = str.slice(match16.index + match16[0].length);
|
|
124671
124671
|
}
|
|
124672
124672
|
return false;
|
|
124673
124673
|
};
|
|
@@ -126146,8 +126146,8 @@ var require_utils4 = __commonJS({
|
|
|
126146
126146
|
exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
126147
126147
|
exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
126148
126148
|
exports.removeBackslashes = (str) => {
|
|
126149
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, (
|
|
126150
|
-
return
|
|
126149
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, (match16) => {
|
|
126150
|
+
return match16 === "\\" ? "" : match16;
|
|
126151
126151
|
});
|
|
126152
126152
|
};
|
|
126153
126153
|
exports.supportsLookbehinds = () => {
|
|
@@ -126770,10 +126770,10 @@ var require_parse3 = __commonJS({
|
|
|
126770
126770
|
push2({ type: "text", value: value2 });
|
|
126771
126771
|
continue;
|
|
126772
126772
|
}
|
|
126773
|
-
const
|
|
126773
|
+
const match16 = /^\\+/.exec(remaining());
|
|
126774
126774
|
let slashes = 0;
|
|
126775
|
-
if (
|
|
126776
|
-
slashes =
|
|
126775
|
+
if (match16 && match16[0].length > 2) {
|
|
126776
|
+
slashes = match16[0].length;
|
|
126777
126777
|
state.index += slashes;
|
|
126778
126778
|
if (slashes % 2 !== 0) {
|
|
126779
126779
|
value2 += "\\";
|
|
@@ -127061,10 +127061,10 @@ var require_parse3 = __commonJS({
|
|
|
127061
127061
|
if (value2 === "$" || value2 === "^") {
|
|
127062
127062
|
value2 = `\\${value2}`;
|
|
127063
127063
|
}
|
|
127064
|
-
const
|
|
127065
|
-
if (
|
|
127066
|
-
value2 +=
|
|
127067
|
-
state.index +=
|
|
127064
|
+
const match16 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
127065
|
+
if (match16) {
|
|
127066
|
+
value2 += match16[0];
|
|
127067
|
+
state.index += match16[0].length;
|
|
127068
127068
|
}
|
|
127069
127069
|
push2({ type: "text", value: value2 });
|
|
127070
127070
|
continue;
|
|
@@ -127275,11 +127275,11 @@ var require_parse3 = __commonJS({
|
|
|
127275
127275
|
case "**/.*":
|
|
127276
127276
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
127277
127277
|
default: {
|
|
127278
|
-
const
|
|
127279
|
-
if (!
|
|
127280
|
-
const source2 = create3(
|
|
127278
|
+
const match16 = /^(.*?)\.(\w+)$/.exec(str);
|
|
127279
|
+
if (!match16) return;
|
|
127280
|
+
const source2 = create3(match16[1]);
|
|
127281
127281
|
if (!source2) return;
|
|
127282
|
-
return source2 + DOT_LITERAL +
|
|
127282
|
+
return source2 + DOT_LITERAL + match16[2];
|
|
127283
127283
|
}
|
|
127284
127284
|
}
|
|
127285
127285
|
};
|
|
@@ -127332,8 +127332,8 @@ var require_picomatch = __commonJS({
|
|
|
127332
127332
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
127333
127333
|
}
|
|
127334
127334
|
const matcher2 = (input, returnObject = false) => {
|
|
127335
|
-
const { isMatch, match:
|
|
127336
|
-
const result = { glob, state, regex: regex2, posix, input, output, match:
|
|
127335
|
+
const { isMatch, match: match16, output } = picomatch.test(input, regex2, options, { glob, posix });
|
|
127336
|
+
const result = { glob, state, regex: regex2, posix, input, output, match: match16, isMatch };
|
|
127337
127337
|
if (typeof opts.onResult === "function") {
|
|
127338
127338
|
opts.onResult(result);
|
|
127339
127339
|
}
|
|
@@ -127367,20 +127367,20 @@ var require_picomatch = __commonJS({
|
|
|
127367
127367
|
}
|
|
127368
127368
|
const opts = options || {};
|
|
127369
127369
|
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
127370
|
-
let
|
|
127371
|
-
let output =
|
|
127372
|
-
if (
|
|
127370
|
+
let match16 = input === glob;
|
|
127371
|
+
let output = match16 && format ? format(input) : input;
|
|
127372
|
+
if (match16 === false) {
|
|
127373
127373
|
output = format ? format(input) : input;
|
|
127374
|
-
|
|
127374
|
+
match16 = output === glob;
|
|
127375
127375
|
}
|
|
127376
|
-
if (
|
|
127376
|
+
if (match16 === false || opts.capture === true) {
|
|
127377
127377
|
if (opts.matchBase === true || opts.basename === true) {
|
|
127378
|
-
|
|
127378
|
+
match16 = picomatch.matchBase(input, regex2, options, posix);
|
|
127379
127379
|
} else {
|
|
127380
|
-
|
|
127380
|
+
match16 = regex2.exec(output);
|
|
127381
127381
|
}
|
|
127382
127382
|
}
|
|
127383
|
-
return { isMatch: Boolean(
|
|
127383
|
+
return { isMatch: Boolean(match16), match: match16, output };
|
|
127384
127384
|
};
|
|
127385
127385
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
127386
127386
|
const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -127478,8 +127478,8 @@ var require_micromatch = __commonJS({
|
|
|
127478
127478
|
if (negated) negatives++;
|
|
127479
127479
|
for (let item of list) {
|
|
127480
127480
|
let matched = isMatch(item, true);
|
|
127481
|
-
let
|
|
127482
|
-
if (!
|
|
127481
|
+
let match16 = negated ? !matched.isMatch : matched.isMatch;
|
|
127482
|
+
if (!match16) continue;
|
|
127483
127483
|
if (negated) {
|
|
127484
127484
|
omit.add(matched.output);
|
|
127485
127485
|
} else {
|
|
@@ -127575,9 +127575,9 @@ var require_micromatch = __commonJS({
|
|
|
127575
127575
|
micromatch.capture = (glob, input, options) => {
|
|
127576
127576
|
let posix = utils.isWindows(options);
|
|
127577
127577
|
let regex2 = picomatch.makeRe(String(glob), { ...options, capture: true });
|
|
127578
|
-
let
|
|
127579
|
-
if (
|
|
127580
|
-
return
|
|
127578
|
+
let match16 = regex2.exec(posix ? utils.toPosixSlashes(input) : input);
|
|
127579
|
+
if (match16) {
|
|
127580
|
+
return match16.slice(1).map((v) => v === void 0 ? "" : v);
|
|
127581
127581
|
}
|
|
127582
127582
|
};
|
|
127583
127583
|
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
@@ -129506,7 +129506,7 @@ var require_partial = __commonJS({
|
|
|
129506
129506
|
if (!pattern.complete && levels > section.length) {
|
|
129507
129507
|
return true;
|
|
129508
129508
|
}
|
|
129509
|
-
const
|
|
129509
|
+
const match16 = parts.every((part, index) => {
|
|
129510
129510
|
const segment = pattern.segments[index];
|
|
129511
129511
|
if (segment.dynamic && segment.patternRe.test(part)) {
|
|
129512
129512
|
return true;
|
|
@@ -129516,7 +129516,7 @@ var require_partial = __commonJS({
|
|
|
129516
129516
|
}
|
|
129517
129517
|
return false;
|
|
129518
129518
|
});
|
|
129519
|
-
if (
|
|
129519
|
+
if (match16) {
|
|
129520
129520
|
return true;
|
|
129521
129521
|
}
|
|
129522
129522
|
}
|
|
@@ -130132,7 +130132,7 @@ var require_ignore = __commonJS({
|
|
|
130132
130132
|
var RETURN_FALSE = () => false;
|
|
130133
130133
|
var sanitizeRange = (range) => range.replace(
|
|
130134
130134
|
REGEX_REGEXP_RANGE,
|
|
130135
|
-
(
|
|
130135
|
+
(match16, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match16 : EMPTY
|
|
130136
130136
|
);
|
|
130137
130137
|
var cleanRangeBackSlash = (slashes) => {
|
|
130138
130138
|
const { length } = slashes;
|
|
@@ -130184,7 +130184,7 @@ var require_ignore = __commonJS({
|
|
|
130184
130184
|
// > These special characters are often called "metacharacters".
|
|
130185
130185
|
[
|
|
130186
130186
|
/[\\$.|*+(){^]/g,
|
|
130187
|
-
(
|
|
130187
|
+
(match16) => `\\${match16}`
|
|
130188
130188
|
],
|
|
130189
130189
|
[
|
|
130190
130190
|
// > a question mark (?) matches a single character
|
|
@@ -130266,7 +130266,7 @@ var require_ignore = __commonJS({
|
|
|
130266
130266
|
// > can be used to match one of the characters in a range.
|
|
130267
130267
|
// `\` is escaped by step 3
|
|
130268
130268
|
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
130269
|
-
(
|
|
130269
|
+
(match16, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
|
|
130270
130270
|
],
|
|
130271
130271
|
// ending
|
|
130272
130272
|
[
|
|
@@ -130283,7 +130283,7 @@ var require_ignore = __commonJS({
|
|
|
130283
130283
|
// 'js*' will not match 'a.js'
|
|
130284
130284
|
// 'js/' will not match 'a.js'
|
|
130285
130285
|
// 'js' will match 'a.js' and 'a.js/'
|
|
130286
|
-
(
|
|
130286
|
+
(match16) => /\/$/.test(match16) ? `${match16}$` : `${match16}(?=$|\\/$)`
|
|
130287
130287
|
]
|
|
130288
130288
|
];
|
|
130289
130289
|
var REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\\\*$/;
|
|
@@ -139607,12 +139607,12 @@ var require_mime_types = __commonJS({
|
|
|
139607
139607
|
if (!type || typeof type !== "string") {
|
|
139608
139608
|
return false;
|
|
139609
139609
|
}
|
|
139610
|
-
var
|
|
139611
|
-
var mime =
|
|
139610
|
+
var match16 = EXTRACT_TYPE_REGEXP.exec(type);
|
|
139611
|
+
var mime = match16 && db[match16[1].toLowerCase()];
|
|
139612
139612
|
if (mime && mime.charset) {
|
|
139613
139613
|
return mime.charset;
|
|
139614
139614
|
}
|
|
139615
|
-
if (
|
|
139615
|
+
if (match16 && TEXT_TYPE_REGEXP.test(match16[1])) {
|
|
139616
139616
|
return "UTF-8";
|
|
139617
139617
|
}
|
|
139618
139618
|
return false;
|
|
@@ -139635,8 +139635,8 @@ var require_mime_types = __commonJS({
|
|
|
139635
139635
|
if (!type || typeof type !== "string") {
|
|
139636
139636
|
return false;
|
|
139637
139637
|
}
|
|
139638
|
-
var
|
|
139639
|
-
var exts =
|
|
139638
|
+
var match16 = EXTRACT_TYPE_REGEXP.exec(type);
|
|
139639
|
+
var exts = match16 && exports.extensions[match16[1].toLowerCase()];
|
|
139640
139640
|
if (!exts || !exts.length) {
|
|
139641
139641
|
return false;
|
|
139642
139642
|
}
|
|
@@ -140371,7 +140371,7 @@ var require_ignore2 = __commonJS({
|
|
|
140371
140371
|
var RETURN_FALSE = () => false;
|
|
140372
140372
|
var sanitizeRange = (range) => range.replace(
|
|
140373
140373
|
REGEX_REGEXP_RANGE,
|
|
140374
|
-
(
|
|
140374
|
+
(match16, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match16 : EMPTY
|
|
140375
140375
|
);
|
|
140376
140376
|
var cleanRangeBackSlash = (slashes) => {
|
|
140377
140377
|
const { length } = slashes;
|
|
@@ -140423,7 +140423,7 @@ var require_ignore2 = __commonJS({
|
|
|
140423
140423
|
// > These special characters are often called "metacharacters".
|
|
140424
140424
|
[
|
|
140425
140425
|
/[\\$.|*+(){^]/g,
|
|
140426
|
-
(
|
|
140426
|
+
(match16) => `\\${match16}`
|
|
140427
140427
|
],
|
|
140428
140428
|
[
|
|
140429
140429
|
// > a question mark (?) matches a single character
|
|
@@ -140505,7 +140505,7 @@ var require_ignore2 = __commonJS({
|
|
|
140505
140505
|
// > can be used to match one of the characters in a range.
|
|
140506
140506
|
// `\` is escaped by step 3
|
|
140507
140507
|
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
140508
|
-
(
|
|
140508
|
+
(match16, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
|
|
140509
140509
|
],
|
|
140510
140510
|
// ending
|
|
140511
140511
|
[
|
|
@@ -140522,7 +140522,7 @@ var require_ignore2 = __commonJS({
|
|
|
140522
140522
|
// 'js*' will not match 'a.js'
|
|
140523
140523
|
// 'js/' will not match 'a.js'
|
|
140524
140524
|
// 'js' will match 'a.js' and 'a.js/'
|
|
140525
|
-
(
|
|
140525
|
+
(match16) => /\/$/.test(match16) ? `${match16}$` : `${match16}(?=$|\\/$)`
|
|
140526
140526
|
],
|
|
140527
140527
|
// trailing wildcard
|
|
140528
140528
|
[
|
|
@@ -143051,7 +143051,7 @@ var require_chokidar = __commonJS({
|
|
|
143051
143051
|
var package_default = {
|
|
143052
143052
|
name: "@wix/cli-app",
|
|
143053
143053
|
description: "CLI tool for Wix apps",
|
|
143054
|
-
version: "1.1.
|
|
143054
|
+
version: "1.1.168",
|
|
143055
143055
|
author: "Amit Dahan",
|
|
143056
143056
|
dependencies: {
|
|
143057
143057
|
esbuild: "^0.25.0",
|
|
@@ -143361,6 +143361,7 @@ var CliSystemErrorCode = (0, import_variant.variant)({
|
|
|
143361
143361
|
FailedToParseNextVersion: (0, import_variant.fields)(),
|
|
143362
143362
|
FailedToDistributeClientManifestUpdate: {},
|
|
143363
143363
|
FailedToCreateRoutesWithMetaSiteUrl: {},
|
|
143364
|
+
FailedToGetUrl: {},
|
|
143364
143365
|
FailedToUpdateExternalSiteUrl: {},
|
|
143365
143366
|
FailedToGetGitHubOnboardingStatus: (0, import_variant.fields)(),
|
|
143366
143367
|
FailedToInitGitHubRepository: (0, import_variant.fields)()
|
|
@@ -143412,6 +143413,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
|
|
|
143412
143413
|
DuplicateComponentIdsError: (0, import_variant.fields)(),
|
|
143413
143414
|
FailedToSaveDevelopmentSite: (0, import_variant.fields)(),
|
|
143414
143415
|
FailedToBuildApp: {},
|
|
143416
|
+
FailedToBuildAstroApp: {},
|
|
143415
143417
|
FailedToInitializeGitRepo: {},
|
|
143416
143418
|
FailedToInstallDependencies: {},
|
|
143417
143419
|
FailedToCommitChanges: {},
|
|
@@ -147901,12 +147903,12 @@ var getAllProperties = (object) => {
|
|
|
147901
147903
|
};
|
|
147902
147904
|
function autoBind(self2, { include, exclude } = {}) {
|
|
147903
147905
|
const filter = (key) => {
|
|
147904
|
-
const
|
|
147906
|
+
const match16 = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
147905
147907
|
if (include) {
|
|
147906
|
-
return include.some(
|
|
147908
|
+
return include.some(match16);
|
|
147907
147909
|
}
|
|
147908
147910
|
if (exclude) {
|
|
147909
|
-
return !exclude.some(
|
|
147911
|
+
return !exclude.some(match16);
|
|
147910
147912
|
}
|
|
147911
147913
|
return true;
|
|
147912
147914
|
};
|
|
@@ -152553,7 +152555,7 @@ var testOverridesSchema = zod_default.object({
|
|
|
152553
152555
|
wixCliDependencyVersion: zod_default.string().optional(),
|
|
152554
152556
|
wixCliAppDependencyVersion: zod_default.string().optional(),
|
|
152555
152557
|
disableTTY: zod_default.boolean().optional(),
|
|
152556
|
-
|
|
152558
|
+
loginWithDeviceCodeInterval: zod_default.number().optional(),
|
|
152557
152559
|
registryUrl: zod_default.string().optional(),
|
|
152558
152560
|
fsCacheDir: zod_default.string().optional(),
|
|
152559
152561
|
localTunnel: zod_default.boolean().optional(),
|
|
@@ -153733,9 +153735,9 @@ var Highlighter = ({ pattern, text }) => {
|
|
|
153733
153735
|
}
|
|
153734
153736
|
const matches = text.matchAll(pattern);
|
|
153735
153737
|
const hightlightMap = new Array(text.length).fill(0);
|
|
153736
|
-
for (const
|
|
153737
|
-
const start =
|
|
153738
|
-
const end =
|
|
153738
|
+
for (const match16 of matches) {
|
|
153739
|
+
const start = match16.index;
|
|
153740
|
+
const end = match16.index + match16[0].length;
|
|
153739
153741
|
for (let i2 = start; i2 < end; i2++) {
|
|
153740
153742
|
hightlightMap[i2] = 1;
|
|
153741
153743
|
}
|
|
@@ -155630,9 +155632,9 @@ init_esm_shims();
|
|
|
155630
155632
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
155631
155633
|
function parseDateTimeSkeleton(skeleton) {
|
|
155632
155634
|
var result = {};
|
|
155633
|
-
skeleton.replace(DATE_TIME_REGEX, function(
|
|
155634
|
-
var len =
|
|
155635
|
-
switch (
|
|
155635
|
+
skeleton.replace(DATE_TIME_REGEX, function(match16) {
|
|
155636
|
+
var len = match16.length;
|
|
155637
|
+
switch (match16[0]) {
|
|
155636
155638
|
// Era
|
|
155637
155639
|
case "G":
|
|
155638
155640
|
result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
@@ -157642,21 +157644,21 @@ if (REGEX_SUPPORTS_U_AND_Y) {
|
|
|
157642
157644
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
|
|
157643
157645
|
var _a2;
|
|
157644
157646
|
IDENTIFIER_PREFIX_RE_1.lastIndex = index;
|
|
157645
|
-
var
|
|
157646
|
-
return (_a2 =
|
|
157647
|
+
var match16 = IDENTIFIER_PREFIX_RE_1.exec(s2);
|
|
157648
|
+
return (_a2 = match16[1]) !== null && _a2 !== void 0 ? _a2 : "";
|
|
157647
157649
|
};
|
|
157648
157650
|
} else {
|
|
157649
157651
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
|
|
157650
|
-
var
|
|
157652
|
+
var match16 = [];
|
|
157651
157653
|
while (true) {
|
|
157652
157654
|
var c2 = codePointAt(s2, index);
|
|
157653
157655
|
if (c2 === void 0 || _isWhiteSpace(c2) || _isPatternSyntax(c2)) {
|
|
157654
157656
|
break;
|
|
157655
157657
|
}
|
|
157656
|
-
|
|
157658
|
+
match16.push(c2);
|
|
157657
157659
|
index += c2 >= 65536 ? 2 : 1;
|
|
157658
157660
|
}
|
|
157659
|
-
return fromCodePoint.apply(void 0,
|
|
157661
|
+
return fromCodePoint.apply(void 0, match16);
|
|
157660
157662
|
};
|
|
157661
157663
|
}
|
|
157662
157664
|
var IDENTIFIER_PREFIX_RE_1;
|
|
@@ -160079,7 +160081,7 @@ var Interpolator = class {
|
|
|
160079
160081
|
this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
160080
160082
|
}
|
|
160081
160083
|
interpolate(str, data, lng, options) {
|
|
160082
|
-
let
|
|
160084
|
+
let match16;
|
|
160083
160085
|
let value2;
|
|
160084
160086
|
let replaces;
|
|
160085
160087
|
const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
@@ -160113,17 +160115,17 @@ var Interpolator = class {
|
|
|
160113
160115
|
}];
|
|
160114
160116
|
todos.forEach((todo) => {
|
|
160115
160117
|
replaces = 0;
|
|
160116
|
-
while (
|
|
160117
|
-
const matchedVar =
|
|
160118
|
+
while (match16 = todo.regex.exec(str)) {
|
|
160119
|
+
const matchedVar = match16[1].trim();
|
|
160118
160120
|
value2 = handleFormat(matchedVar);
|
|
160119
160121
|
if (value2 === void 0) {
|
|
160120
160122
|
if (typeof missingInterpolationHandler === "function") {
|
|
160121
|
-
const temp = missingInterpolationHandler(str,
|
|
160123
|
+
const temp = missingInterpolationHandler(str, match16, options);
|
|
160122
160124
|
value2 = isString2(temp) ? temp : "";
|
|
160123
160125
|
} else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
|
|
160124
160126
|
value2 = "";
|
|
160125
160127
|
} else if (skipOnVariables) {
|
|
160126
|
-
value2 =
|
|
160128
|
+
value2 = match16[0];
|
|
160127
160129
|
continue;
|
|
160128
160130
|
} else {
|
|
160129
160131
|
this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);
|
|
@@ -160133,10 +160135,10 @@ var Interpolator = class {
|
|
|
160133
160135
|
value2 = makeString(value2);
|
|
160134
160136
|
}
|
|
160135
160137
|
const safeValue = todo.safeValue(value2);
|
|
160136
|
-
str = str.replace(
|
|
160138
|
+
str = str.replace(match16[0], safeValue);
|
|
160137
160139
|
if (skipOnVariables) {
|
|
160138
160140
|
todo.regex.lastIndex += value2.length;
|
|
160139
|
-
todo.regex.lastIndex -=
|
|
160141
|
+
todo.regex.lastIndex -= match16[0].length;
|
|
160140
160142
|
} else {
|
|
160141
160143
|
todo.regex.lastIndex = 0;
|
|
160142
160144
|
}
|
|
@@ -160150,7 +160152,7 @@ var Interpolator = class {
|
|
|
160150
160152
|
}
|
|
160151
160153
|
nest(str, fc) {
|
|
160152
160154
|
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
160153
|
-
let
|
|
160155
|
+
let match16;
|
|
160154
160156
|
let value2;
|
|
160155
160157
|
let clonedOptions;
|
|
160156
160158
|
const handleHasOptions = (key, inheritedOptions) => {
|
|
@@ -160178,7 +160180,7 @@ var Interpolator = class {
|
|
|
160178
160180
|
if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) delete clonedOptions.defaultValue;
|
|
160179
160181
|
return key;
|
|
160180
160182
|
};
|
|
160181
|
-
while (
|
|
160183
|
+
while (match16 = this.nestingRegexp.exec(str)) {
|
|
160182
160184
|
let formatters = [];
|
|
160183
160185
|
clonedOptions = {
|
|
160184
160186
|
...options
|
|
@@ -160187,26 +160189,26 @@ var Interpolator = class {
|
|
|
160187
160189
|
clonedOptions.applyPostProcessor = false;
|
|
160188
160190
|
delete clonedOptions.defaultValue;
|
|
160189
160191
|
let doReduce = false;
|
|
160190
|
-
if (
|
|
160191
|
-
const r2 =
|
|
160192
|
-
|
|
160192
|
+
if (match16[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match16[1])) {
|
|
160193
|
+
const r2 = match16[1].split(this.formatSeparator).map((elem) => elem.trim());
|
|
160194
|
+
match16[1] = r2.shift();
|
|
160193
160195
|
formatters = r2;
|
|
160194
160196
|
doReduce = true;
|
|
160195
160197
|
}
|
|
160196
|
-
value2 = fc(handleHasOptions.call(this,
|
|
160197
|
-
if (value2 &&
|
|
160198
|
+
value2 = fc(handleHasOptions.call(this, match16[1].trim(), clonedOptions), clonedOptions);
|
|
160199
|
+
if (value2 && match16[0] === str && !isString2(value2)) return value2;
|
|
160198
160200
|
if (!isString2(value2)) value2 = makeString(value2);
|
|
160199
160201
|
if (!value2) {
|
|
160200
|
-
this.logger.warn(`missed to resolve ${
|
|
160202
|
+
this.logger.warn(`missed to resolve ${match16[1]} for nesting ${str}`);
|
|
160201
160203
|
value2 = "";
|
|
160202
160204
|
}
|
|
160203
160205
|
if (doReduce) {
|
|
160204
160206
|
value2 = formatters.reduce((v, f) => this.format(v, f, options.lng, {
|
|
160205
160207
|
...options,
|
|
160206
|
-
interpolationkey:
|
|
160208
|
+
interpolationkey: match16[1].trim()
|
|
160207
160209
|
}), value2.trim());
|
|
160208
160210
|
}
|
|
160209
|
-
str = str.replace(
|
|
160211
|
+
str = str.replace(match16[0], value2);
|
|
160210
160212
|
this.regexp.lastIndex = 0;
|
|
160211
160213
|
}
|
|
160212
160214
|
return str;
|
|
@@ -161384,9 +161386,9 @@ var reDetectIndentation = /(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/;
|
|
|
161384
161386
|
var reOnlyWhitespaceWithAtLeastOneNewline = /^[ \t]*[\r\n][ \t\r\n]*$/;
|
|
161385
161387
|
function _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options) {
|
|
161386
161388
|
var indentationLevel = 0;
|
|
161387
|
-
var
|
|
161388
|
-
if (
|
|
161389
|
-
indentationLevel =
|
|
161389
|
+
var match16 = strings[0].match(reDetectIndentation);
|
|
161390
|
+
if (match16) {
|
|
161391
|
+
indentationLevel = match16[1].length;
|
|
161390
161392
|
}
|
|
161391
161393
|
var reSource = "(\\r\\n|\\r|\\n).{0," + indentationLevel + "}";
|
|
161392
161394
|
var reMatchIndent = new RegExp(reSource, "g");
|
|
@@ -162241,6 +162243,15 @@ function getErrorComponent(code, cause) {
|
|
|
162241
162243
|
}
|
|
162242
162244
|
);
|
|
162243
162245
|
},
|
|
162246
|
+
FailedToBuildAstroApp: () => {
|
|
162247
|
+
return () => /* @__PURE__ */ import_react79.default.createElement(
|
|
162248
|
+
ErrorMessage,
|
|
162249
|
+
{
|
|
162250
|
+
message: "Failed to build the application.",
|
|
162251
|
+
hint: "Please check the build output for more information"
|
|
162252
|
+
}
|
|
162253
|
+
);
|
|
162254
|
+
},
|
|
162244
162255
|
FailedToGetAppInstallationDetails: ({ appId }) => {
|
|
162245
162256
|
return () => /* @__PURE__ */ import_react79.default.createElement(
|
|
162246
162257
|
SystemErrorMessage,
|
|
@@ -163081,6 +163092,9 @@ ${errorMessage}`
|
|
|
163081
163092
|
FailedToCreateRoutesWithMetaSiteUrl: () => {
|
|
163082
163093
|
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to create routes with meta site URL." });
|
|
163083
163094
|
},
|
|
163095
|
+
FailedToGetUrl: () => {
|
|
163096
|
+
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to get meta site URL." });
|
|
163097
|
+
},
|
|
163084
163098
|
FailedToUpdateExternalSiteUrl: () => {
|
|
163085
163099
|
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to update external site URL." });
|
|
163086
163100
|
},
|
|
@@ -163160,7 +163174,7 @@ var ErrorViewer = ({
|
|
|
163160
163174
|
}, [originalError, systemErrorOverride]);
|
|
163161
163175
|
};
|
|
163162
163176
|
|
|
163163
|
-
// ../cli-auth/src/providers/
|
|
163177
|
+
// ../cli-auth/src/providers/UnifiedAuthProvider.tsx
|
|
163164
163178
|
init_esm_shims();
|
|
163165
163179
|
var import_react87 = __toESM(require_react(), 1);
|
|
163166
163180
|
|
|
@@ -163169,9 +163183,332 @@ init_esm_shims();
|
|
|
163169
163183
|
var import_react81 = __toESM(require_react(), 1);
|
|
163170
163184
|
var AuthContext = (0, import_react81.createContext)(null);
|
|
163171
163185
|
|
|
163172
|
-
// ../cli-auth/src/auth-strategies/
|
|
163186
|
+
// ../cli-auth/src/auth-strategies/unified-auth-strategy.ts
|
|
163187
|
+
init_esm_shims();
|
|
163188
|
+
|
|
163189
|
+
// ../../node_modules/p-limit/index.js
|
|
163173
163190
|
init_esm_shims();
|
|
163174
163191
|
|
|
163192
|
+
// ../../node_modules/p-limit/node_modules/yocto-queue/index.js
|
|
163193
|
+
init_esm_shims();
|
|
163194
|
+
var Node = class {
|
|
163195
|
+
value;
|
|
163196
|
+
next;
|
|
163197
|
+
constructor(value2) {
|
|
163198
|
+
this.value = value2;
|
|
163199
|
+
}
|
|
163200
|
+
};
|
|
163201
|
+
var Queue = class {
|
|
163202
|
+
#head;
|
|
163203
|
+
#tail;
|
|
163204
|
+
#size;
|
|
163205
|
+
constructor() {
|
|
163206
|
+
this.clear();
|
|
163207
|
+
}
|
|
163208
|
+
enqueue(value2) {
|
|
163209
|
+
const node = new Node(value2);
|
|
163210
|
+
if (this.#head) {
|
|
163211
|
+
this.#tail.next = node;
|
|
163212
|
+
this.#tail = node;
|
|
163213
|
+
} else {
|
|
163214
|
+
this.#head = node;
|
|
163215
|
+
this.#tail = node;
|
|
163216
|
+
}
|
|
163217
|
+
this.#size++;
|
|
163218
|
+
}
|
|
163219
|
+
dequeue() {
|
|
163220
|
+
const current = this.#head;
|
|
163221
|
+
if (!current) {
|
|
163222
|
+
return;
|
|
163223
|
+
}
|
|
163224
|
+
this.#head = this.#head.next;
|
|
163225
|
+
this.#size--;
|
|
163226
|
+
return current.value;
|
|
163227
|
+
}
|
|
163228
|
+
peek() {
|
|
163229
|
+
if (!this.#head) {
|
|
163230
|
+
return;
|
|
163231
|
+
}
|
|
163232
|
+
return this.#head.value;
|
|
163233
|
+
}
|
|
163234
|
+
clear() {
|
|
163235
|
+
this.#head = void 0;
|
|
163236
|
+
this.#tail = void 0;
|
|
163237
|
+
this.#size = 0;
|
|
163238
|
+
}
|
|
163239
|
+
get size() {
|
|
163240
|
+
return this.#size;
|
|
163241
|
+
}
|
|
163242
|
+
*[Symbol.iterator]() {
|
|
163243
|
+
let current = this.#head;
|
|
163244
|
+
while (current) {
|
|
163245
|
+
yield current.value;
|
|
163246
|
+
current = current.next;
|
|
163247
|
+
}
|
|
163248
|
+
}
|
|
163249
|
+
};
|
|
163250
|
+
|
|
163251
|
+
// ../../node_modules/p-limit/index.js
|
|
163252
|
+
function pLimit(concurrency) {
|
|
163253
|
+
validateConcurrency(concurrency);
|
|
163254
|
+
const queue = new Queue();
|
|
163255
|
+
let activeCount = 0;
|
|
163256
|
+
const resumeNext = () => {
|
|
163257
|
+
if (activeCount < concurrency && queue.size > 0) {
|
|
163258
|
+
queue.dequeue()();
|
|
163259
|
+
activeCount++;
|
|
163260
|
+
}
|
|
163261
|
+
};
|
|
163262
|
+
const next = () => {
|
|
163263
|
+
activeCount--;
|
|
163264
|
+
resumeNext();
|
|
163265
|
+
};
|
|
163266
|
+
const run = async (function_, resolve4, arguments_) => {
|
|
163267
|
+
const result = (async () => function_(...arguments_))();
|
|
163268
|
+
resolve4(result);
|
|
163269
|
+
try {
|
|
163270
|
+
await result;
|
|
163271
|
+
} catch {
|
|
163272
|
+
}
|
|
163273
|
+
next();
|
|
163274
|
+
};
|
|
163275
|
+
const enqueue = (function_, resolve4, arguments_) => {
|
|
163276
|
+
new Promise((internalResolve) => {
|
|
163277
|
+
queue.enqueue(internalResolve);
|
|
163278
|
+
}).then(
|
|
163279
|
+
run.bind(void 0, function_, resolve4, arguments_)
|
|
163280
|
+
);
|
|
163281
|
+
(async () => {
|
|
163282
|
+
await Promise.resolve();
|
|
163283
|
+
if (activeCount < concurrency) {
|
|
163284
|
+
resumeNext();
|
|
163285
|
+
}
|
|
163286
|
+
})();
|
|
163287
|
+
};
|
|
163288
|
+
const generator = (function_, ...arguments_) => new Promise((resolve4) => {
|
|
163289
|
+
enqueue(function_, resolve4, arguments_);
|
|
163290
|
+
});
|
|
163291
|
+
Object.defineProperties(generator, {
|
|
163292
|
+
activeCount: {
|
|
163293
|
+
get: () => activeCount
|
|
163294
|
+
},
|
|
163295
|
+
pendingCount: {
|
|
163296
|
+
get: () => queue.size
|
|
163297
|
+
},
|
|
163298
|
+
clearQueue: {
|
|
163299
|
+
value() {
|
|
163300
|
+
queue.clear();
|
|
163301
|
+
}
|
|
163302
|
+
},
|
|
163303
|
+
concurrency: {
|
|
163304
|
+
get: () => concurrency,
|
|
163305
|
+
set(newConcurrency) {
|
|
163306
|
+
validateConcurrency(newConcurrency);
|
|
163307
|
+
concurrency = newConcurrency;
|
|
163308
|
+
queueMicrotask(() => {
|
|
163309
|
+
while (activeCount < concurrency && queue.size > 0) {
|
|
163310
|
+
resumeNext();
|
|
163311
|
+
}
|
|
163312
|
+
});
|
|
163313
|
+
}
|
|
163314
|
+
}
|
|
163315
|
+
});
|
|
163316
|
+
return generator;
|
|
163317
|
+
}
|
|
163318
|
+
function validateConcurrency(concurrency) {
|
|
163319
|
+
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
163320
|
+
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
163321
|
+
}
|
|
163322
|
+
}
|
|
163323
|
+
|
|
163324
|
+
// ../cli-auth/src/auth-strategies/unified-auth-strategy.ts
|
|
163325
|
+
var import_variant21 = __toESM(require_lib(), 1);
|
|
163326
|
+
|
|
163327
|
+
// ../cli-auth/src/auth-data.ts
|
|
163328
|
+
init_esm_shims();
|
|
163329
|
+
import { unlink, rm as rm2 } from "node:fs/promises";
|
|
163330
|
+
import { resolve as resolve2 } from "node:path";
|
|
163331
|
+
|
|
163332
|
+
// ../cli-data-dir/src/index.ts
|
|
163333
|
+
init_esm_shims();
|
|
163334
|
+
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
163335
|
+
import { resolve } from "node:path";
|
|
163336
|
+
import { homedir } from "node:os";
|
|
163337
|
+
function getDataDirPath() {
|
|
163338
|
+
return getTestOverrides().dataDir ?? resolve(homedir(), ".wix");
|
|
163339
|
+
}
|
|
163340
|
+
async function ensureDataDirExists() {
|
|
163341
|
+
await mkdir2(getDataDirPath(), { recursive: true });
|
|
163342
|
+
}
|
|
163343
|
+
|
|
163344
|
+
// ../cli-auth/src/auth-data.ts
|
|
163345
|
+
var import_variant16 = __toESM(require_lib(), 1);
|
|
163346
|
+
|
|
163347
|
+
// ../cli-auth/src/schemas.ts
|
|
163348
|
+
init_esm_shims();
|
|
163349
|
+
var deviceCodeSchema = external_exports.object({
|
|
163350
|
+
deviceCode: external_exports.string(),
|
|
163351
|
+
verificationUri: external_exports.string().url(),
|
|
163352
|
+
userCode: external_exports.string(),
|
|
163353
|
+
expiresIn: external_exports.number()
|
|
163354
|
+
});
|
|
163355
|
+
var tokenSchema = external_exports.object({
|
|
163356
|
+
access_token: external_exports.string(),
|
|
163357
|
+
refresh_token: external_exports.string(),
|
|
163358
|
+
expires_in: external_exports.number()
|
|
163359
|
+
}).transform((token2) => ({
|
|
163360
|
+
accessToken: token2.access_token,
|
|
163361
|
+
refreshToken: token2.refresh_token,
|
|
163362
|
+
expiresIn: token2.expires_in
|
|
163363
|
+
}));
|
|
163364
|
+
var userInfoSchema = external_exports.object({
|
|
163365
|
+
userId: external_exports.string().uuid(),
|
|
163366
|
+
email: external_exports.string().email()
|
|
163367
|
+
});
|
|
163368
|
+
var getMyAccountSchema = external_exports.object({
|
|
163369
|
+
account: external_exports.object({
|
|
163370
|
+
slug: external_exports.string(),
|
|
163371
|
+
accountId: external_exports.string().uuid(),
|
|
163372
|
+
accountOwner: external_exports.string().uuid()
|
|
163373
|
+
})
|
|
163374
|
+
});
|
|
163375
|
+
var siteAuthSchema = external_exports.object({
|
|
163376
|
+
accessToken: external_exports.string(),
|
|
163377
|
+
refreshToken: external_exports.string(),
|
|
163378
|
+
expiresIn: external_exports.number(),
|
|
163379
|
+
issuedAt: external_exports.number()
|
|
163380
|
+
});
|
|
163381
|
+
var accountAuthSchema = siteAuthSchema.extend({
|
|
163382
|
+
userInfo: userInfoSchema
|
|
163383
|
+
});
|
|
163384
|
+
var apiKeyAuthSchema = external_exports.object({
|
|
163385
|
+
token: external_exports.string(),
|
|
163386
|
+
accountId: external_exports.string().uuid(),
|
|
163387
|
+
userInfo: external_exports.object({
|
|
163388
|
+
userId: external_exports.string().uuid(),
|
|
163389
|
+
email: external_exports.string()
|
|
163390
|
+
})
|
|
163391
|
+
});
|
|
163392
|
+
|
|
163393
|
+
// ../cli-auth/src/auth-data.ts
|
|
163394
|
+
function getLegacyAuthDataFilePath() {
|
|
163395
|
+
return resolve2(getDataDirPath(), "auth.json");
|
|
163396
|
+
}
|
|
163397
|
+
function getAuthDataFolder() {
|
|
163398
|
+
return resolve2(getDataDirPath(), "auth");
|
|
163399
|
+
}
|
|
163400
|
+
function getApiKeyAuthDataFilePath() {
|
|
163401
|
+
return resolve2(getAuthDataFolder(), "api-key.json");
|
|
163402
|
+
}
|
|
163403
|
+
function getAccountAuthDataFilePath() {
|
|
163404
|
+
return resolve2(getAuthDataFolder(), "account.json");
|
|
163405
|
+
}
|
|
163406
|
+
function getSiteAuthDataFilePath(siteId) {
|
|
163407
|
+
return resolve2(getAuthDataFolder(), `${siteId}.json`);
|
|
163408
|
+
}
|
|
163409
|
+
var ApiKeyAuthData = (0, import_variant16.variant)({
|
|
163410
|
+
Authenticated: (0, import_variant16.payload)(),
|
|
163411
|
+
Unauthenticated: {}
|
|
163412
|
+
});
|
|
163413
|
+
async function readApiKeyAuthData() {
|
|
163414
|
+
const apiKeyAuthDataFilePath = getApiKeyAuthDataFilePath();
|
|
163415
|
+
if (!await pathExists(apiKeyAuthDataFilePath)) {
|
|
163416
|
+
return ApiKeyAuthData.Unauthenticated();
|
|
163417
|
+
}
|
|
163418
|
+
const apiKeyFileContents = await readJson(apiKeyAuthDataFilePath);
|
|
163419
|
+
const savedApiKeyAuthData = apiKeyAuthSchema.parse(apiKeyFileContents);
|
|
163420
|
+
return ApiKeyAuthData.Authenticated(savedApiKeyAuthData);
|
|
163421
|
+
}
|
|
163422
|
+
async function saveApiKeyAuthData(authData) {
|
|
163423
|
+
try {
|
|
163424
|
+
const targetFilePath = getApiKeyAuthDataFilePath();
|
|
163425
|
+
await writeJson(targetFilePath, authData);
|
|
163426
|
+
} catch (error) {
|
|
163427
|
+
throw new CliError({
|
|
163428
|
+
code: CliErrorCode.FailedToSaveApiKeyAuthData(),
|
|
163429
|
+
cause: error
|
|
163430
|
+
});
|
|
163431
|
+
}
|
|
163432
|
+
}
|
|
163433
|
+
var AccountAuthData = (0, import_variant16.variant)({
|
|
163434
|
+
Authenticated: (0, import_variant16.fields)(),
|
|
163435
|
+
Unauthenticated: {},
|
|
163436
|
+
Expired: (0, import_variant16.fields)()
|
|
163437
|
+
});
|
|
163438
|
+
async function readAccountAuthData() {
|
|
163439
|
+
const accountAuthDataFilePath = getAccountAuthDataFilePath();
|
|
163440
|
+
if (!await pathExists(accountAuthDataFilePath)) {
|
|
163441
|
+
return AccountAuthData.Unauthenticated();
|
|
163442
|
+
}
|
|
163443
|
+
const authFileContents = await readJson(accountAuthDataFilePath);
|
|
163444
|
+
const savedAccountAuthData = accountAuthSchema.parse(authFileContents);
|
|
163445
|
+
if (!isValidToken(savedAccountAuthData)) {
|
|
163446
|
+
return AccountAuthData.Expired(savedAccountAuthData);
|
|
163447
|
+
}
|
|
163448
|
+
return AccountAuthData.Authenticated(savedAccountAuthData);
|
|
163449
|
+
}
|
|
163450
|
+
var SiteAuthData = (0, import_variant16.variant)({
|
|
163451
|
+
Authenticated: (0, import_variant16.fields)(),
|
|
163452
|
+
Unauthenticated: {},
|
|
163453
|
+
Expired: (0, import_variant16.fields)()
|
|
163454
|
+
});
|
|
163455
|
+
async function readSiteAuthData(siteId) {
|
|
163456
|
+
const siteAuthDataFilePath = getSiteAuthDataFilePath(siteId);
|
|
163457
|
+
if (!await pathExists(siteAuthDataFilePath)) {
|
|
163458
|
+
return SiteAuthData.Unauthenticated();
|
|
163459
|
+
}
|
|
163460
|
+
const authFileContents = await readJson(siteAuthDataFilePath);
|
|
163461
|
+
const savedSiteAuthData = siteAuthSchema.parse(authFileContents);
|
|
163462
|
+
if (!isValidToken(savedSiteAuthData)) {
|
|
163463
|
+
return SiteAuthData.Expired(savedSiteAuthData);
|
|
163464
|
+
}
|
|
163465
|
+
return SiteAuthData.Authenticated(savedSiteAuthData);
|
|
163466
|
+
}
|
|
163467
|
+
async function saveAuthData(authData, siteId) {
|
|
163468
|
+
try {
|
|
163469
|
+
const targetFilePath = siteId ? getSiteAuthDataFilePath(siteId) : getAccountAuthDataFilePath();
|
|
163470
|
+
await writeJson(targetFilePath, authData);
|
|
163471
|
+
} catch (error) {
|
|
163472
|
+
throw new CliError({
|
|
163473
|
+
code: CliErrorCode.FailedToSaveAuthData(),
|
|
163474
|
+
cause: error
|
|
163475
|
+
});
|
|
163476
|
+
}
|
|
163477
|
+
}
|
|
163478
|
+
async function deleteAuthData() {
|
|
163479
|
+
try {
|
|
163480
|
+
await rm2(getAuthDataFolder(), { recursive: true, force: true });
|
|
163481
|
+
} catch (error) {
|
|
163482
|
+
throw new CliError({
|
|
163483
|
+
code: CliErrorCode.FailedToDeleteAuthData(),
|
|
163484
|
+
cause: error
|
|
163485
|
+
});
|
|
163486
|
+
}
|
|
163487
|
+
if (await hasLegacyAuthData()) {
|
|
163488
|
+
await deleteLegacyAuthData();
|
|
163489
|
+
}
|
|
163490
|
+
}
|
|
163491
|
+
async function deleteLegacyAuthData() {
|
|
163492
|
+
try {
|
|
163493
|
+
await unlink(getLegacyAuthDataFilePath());
|
|
163494
|
+
} catch (error) {
|
|
163495
|
+
throw new CliError({
|
|
163496
|
+
code: CliErrorCode.FailedToDeleteLegacyAuthData(),
|
|
163497
|
+
cause: error
|
|
163498
|
+
});
|
|
163499
|
+
}
|
|
163500
|
+
}
|
|
163501
|
+
async function hasLegacyAuthData() {
|
|
163502
|
+
return pathExists(getLegacyAuthDataFilePath());
|
|
163503
|
+
}
|
|
163504
|
+
function isValidToken(authData) {
|
|
163505
|
+
const currentTimestamp = Math.floor(Date.now() / 1e3);
|
|
163506
|
+
const tokenOffset = 10 * 60;
|
|
163507
|
+
const tokenLifetime = authData.expiresIn - tokenOffset;
|
|
163508
|
+
const tokenGenerationTimestamp = authData.issuedAt;
|
|
163509
|
+
return tokenGenerationTimestamp + tokenLifetime > currentTimestamp;
|
|
163510
|
+
}
|
|
163511
|
+
|
|
163175
163512
|
// ../cli-auth/src/auth-strategies/api-key-auth-strategy.ts
|
|
163176
163513
|
init_esm_shims();
|
|
163177
163514
|
var import_variant18 = __toESM(require_lib(), 1);
|
|
@@ -164066,55 +164403,7 @@ function revokeRefreshToken(payload4) {
|
|
|
164066
164403
|
}
|
|
164067
164404
|
|
|
164068
164405
|
// ../cli-auth/src/client.ts
|
|
164069
|
-
var
|
|
164070
|
-
|
|
164071
|
-
// ../cli-auth/src/schemas.ts
|
|
164072
|
-
init_esm_shims();
|
|
164073
|
-
var deviceCodeSchema = external_exports.object({
|
|
164074
|
-
deviceCode: external_exports.string(),
|
|
164075
|
-
verificationUri: external_exports.string().url(),
|
|
164076
|
-
userCode: external_exports.string(),
|
|
164077
|
-
expiresIn: external_exports.number()
|
|
164078
|
-
});
|
|
164079
|
-
var tokenSchema = external_exports.object({
|
|
164080
|
-
access_token: external_exports.string(),
|
|
164081
|
-
refresh_token: external_exports.string(),
|
|
164082
|
-
expires_in: external_exports.number()
|
|
164083
|
-
}).transform((token2) => ({
|
|
164084
|
-
accessToken: token2.access_token,
|
|
164085
|
-
refreshToken: token2.refresh_token,
|
|
164086
|
-
expiresIn: token2.expires_in
|
|
164087
|
-
}));
|
|
164088
|
-
var userInfoSchema = external_exports.object({
|
|
164089
|
-
userId: external_exports.string().uuid(),
|
|
164090
|
-
email: external_exports.string().email()
|
|
164091
|
-
});
|
|
164092
|
-
var getMyAccountSchema = external_exports.object({
|
|
164093
|
-
account: external_exports.object({
|
|
164094
|
-
slug: external_exports.string(),
|
|
164095
|
-
accountId: external_exports.string().uuid(),
|
|
164096
|
-
accountOwner: external_exports.string().uuid()
|
|
164097
|
-
})
|
|
164098
|
-
});
|
|
164099
|
-
var siteAuthSchema = external_exports.object({
|
|
164100
|
-
accessToken: external_exports.string(),
|
|
164101
|
-
refreshToken: external_exports.string(),
|
|
164102
|
-
expiresIn: external_exports.number(),
|
|
164103
|
-
issuedAt: external_exports.number()
|
|
164104
|
-
});
|
|
164105
|
-
var accountAuthSchema = siteAuthSchema.extend({
|
|
164106
|
-
userInfo: userInfoSchema
|
|
164107
|
-
});
|
|
164108
|
-
var apiKeyAuthSchema = external_exports.object({
|
|
164109
|
-
token: external_exports.string(),
|
|
164110
|
-
accountId: external_exports.string().uuid(),
|
|
164111
|
-
userInfo: external_exports.object({
|
|
164112
|
-
userId: external_exports.string().uuid(),
|
|
164113
|
-
email: external_exports.string()
|
|
164114
|
-
})
|
|
164115
|
-
});
|
|
164116
|
-
|
|
164117
|
-
// ../cli-auth/src/client.ts
|
|
164406
|
+
var import_variant17 = __toESM(require_lib(), 1);
|
|
164118
164407
|
var {
|
|
164119
164408
|
InvalidResponseData,
|
|
164120
164409
|
FailedToGetAuthToken,
|
|
@@ -164127,9 +164416,9 @@ var clientId = "6f95cec8-3e98-48b9-b4e5-1fb92fcd9973";
|
|
|
164127
164416
|
var getCurrentTimestamp = () => Math.floor(Date.now() / 1e3);
|
|
164128
164417
|
var DeviceCodeNotYetVerifiedError = class extends Error {
|
|
164129
164418
|
};
|
|
164130
|
-
var RenewTokenData = (0,
|
|
164131
|
-
TokenRenewed: (0,
|
|
164132
|
-
RefreshTokenRevoked: (0,
|
|
164419
|
+
var RenewTokenData = (0, import_variant17.variant)({
|
|
164420
|
+
TokenRenewed: (0, import_variant17.payload)(),
|
|
164421
|
+
RefreshTokenRevoked: (0, import_variant17.fields)()
|
|
164133
164422
|
});
|
|
164134
164423
|
var AuthClient = class {
|
|
164135
164424
|
constructor(httpClient) {
|
|
@@ -164296,156 +164585,20 @@ var AuthClient = class {
|
|
|
164296
164585
|
};
|
|
164297
164586
|
var client = new AuthClient(createHttpClient({ type: "backoffice" }));
|
|
164298
164587
|
|
|
164299
|
-
// ../cli-auth/src/auth-data.ts
|
|
164300
|
-
init_esm_shims();
|
|
164301
|
-
import { unlink, rm as rm2 } from "node:fs/promises";
|
|
164302
|
-
import { resolve as resolve2 } from "node:path";
|
|
164303
|
-
|
|
164304
|
-
// ../cli-data-dir/src/index.ts
|
|
164305
|
-
init_esm_shims();
|
|
164306
|
-
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
164307
|
-
import { resolve } from "node:path";
|
|
164308
|
-
import { homedir } from "node:os";
|
|
164309
|
-
function getDataDirPath() {
|
|
164310
|
-
return getTestOverrides().dataDir ?? resolve(homedir(), ".wix");
|
|
164311
|
-
}
|
|
164312
|
-
async function ensureDataDirExists() {
|
|
164313
|
-
await mkdir2(getDataDirPath(), { recursive: true });
|
|
164314
|
-
}
|
|
164315
|
-
|
|
164316
|
-
// ../cli-auth/src/auth-data.ts
|
|
164317
|
-
var import_variant17 = __toESM(require_lib(), 1);
|
|
164318
|
-
function getLegacyAuthDataFilePath() {
|
|
164319
|
-
return resolve2(getDataDirPath(), "auth.json");
|
|
164320
|
-
}
|
|
164321
|
-
function getAuthDataFolder() {
|
|
164322
|
-
return resolve2(getDataDirPath(), "auth");
|
|
164323
|
-
}
|
|
164324
|
-
function getApiKeyAuthDataFilePath() {
|
|
164325
|
-
return resolve2(getAuthDataFolder(), "api-key.json");
|
|
164326
|
-
}
|
|
164327
|
-
function getAccountAuthDataFilePath() {
|
|
164328
|
-
return resolve2(getAuthDataFolder(), "account.json");
|
|
164329
|
-
}
|
|
164330
|
-
function getSiteAuthDataFilePath(siteId) {
|
|
164331
|
-
return resolve2(getAuthDataFolder(), `${siteId}.json`);
|
|
164332
|
-
}
|
|
164333
|
-
var ApiKeyAuthData = (0, import_variant17.variant)({
|
|
164334
|
-
Authenticated: (0, import_variant17.payload)(),
|
|
164335
|
-
Unauthenticated: {}
|
|
164336
|
-
});
|
|
164337
|
-
async function readApiKeyAuthData() {
|
|
164338
|
-
const apiKeyAuthDataFilePath = getApiKeyAuthDataFilePath();
|
|
164339
|
-
if (!await pathExists(apiKeyAuthDataFilePath)) {
|
|
164340
|
-
return ApiKeyAuthData.Unauthenticated();
|
|
164341
|
-
}
|
|
164342
|
-
const apiKeyFileContents = await readJson(apiKeyAuthDataFilePath);
|
|
164343
|
-
const savedApiKeyAuthData = apiKeyAuthSchema.parse(apiKeyFileContents);
|
|
164344
|
-
return ApiKeyAuthData.Authenticated(savedApiKeyAuthData);
|
|
164345
|
-
}
|
|
164346
|
-
async function saveApiKeyAuthData(authData) {
|
|
164347
|
-
try {
|
|
164348
|
-
const targetFilePath = getApiKeyAuthDataFilePath();
|
|
164349
|
-
await writeJson(targetFilePath, authData);
|
|
164350
|
-
} catch (error) {
|
|
164351
|
-
throw new CliError({
|
|
164352
|
-
code: CliErrorCode.FailedToSaveApiKeyAuthData(),
|
|
164353
|
-
cause: error
|
|
164354
|
-
});
|
|
164355
|
-
}
|
|
164356
|
-
}
|
|
164357
|
-
var AccountAuthData = (0, import_variant17.variant)({
|
|
164358
|
-
Authenticated: (0, import_variant17.fields)(),
|
|
164359
|
-
Unauthenticated: {},
|
|
164360
|
-
Expired: (0, import_variant17.fields)()
|
|
164361
|
-
});
|
|
164362
|
-
async function readAccountAuthData() {
|
|
164363
|
-
const accountAuthDataFilePath = getAccountAuthDataFilePath();
|
|
164364
|
-
if (!await pathExists(accountAuthDataFilePath)) {
|
|
164365
|
-
return AccountAuthData.Unauthenticated();
|
|
164366
|
-
}
|
|
164367
|
-
const authFileContents = await readJson(accountAuthDataFilePath);
|
|
164368
|
-
const savedAccountAuthData = accountAuthSchema.parse(authFileContents);
|
|
164369
|
-
if (!isValidToken(savedAccountAuthData)) {
|
|
164370
|
-
return AccountAuthData.Expired(savedAccountAuthData);
|
|
164371
|
-
}
|
|
164372
|
-
return AccountAuthData.Authenticated(savedAccountAuthData);
|
|
164373
|
-
}
|
|
164374
|
-
var SiteAuthData = (0, import_variant17.variant)({
|
|
164375
|
-
Authenticated: (0, import_variant17.fields)(),
|
|
164376
|
-
Unauthenticated: {},
|
|
164377
|
-
Expired: (0, import_variant17.fields)()
|
|
164378
|
-
});
|
|
164379
|
-
async function readSiteAuthData(siteId) {
|
|
164380
|
-
const siteAuthDataFilePath = getSiteAuthDataFilePath(siteId);
|
|
164381
|
-
if (!await pathExists(siteAuthDataFilePath)) {
|
|
164382
|
-
return SiteAuthData.Unauthenticated();
|
|
164383
|
-
}
|
|
164384
|
-
const authFileContents = await readJson(siteAuthDataFilePath);
|
|
164385
|
-
const savedSiteAuthData = siteAuthSchema.parse(authFileContents);
|
|
164386
|
-
if (!isValidToken(savedSiteAuthData)) {
|
|
164387
|
-
return SiteAuthData.Expired(savedSiteAuthData);
|
|
164388
|
-
}
|
|
164389
|
-
return SiteAuthData.Authenticated(savedSiteAuthData);
|
|
164390
|
-
}
|
|
164391
|
-
async function saveAuthData(authData, siteId) {
|
|
164392
|
-
try {
|
|
164393
|
-
const targetFilePath = siteId ? getSiteAuthDataFilePath(siteId) : getAccountAuthDataFilePath();
|
|
164394
|
-
await writeJson(targetFilePath, authData);
|
|
164395
|
-
} catch (error) {
|
|
164396
|
-
throw new CliError({
|
|
164397
|
-
code: CliErrorCode.FailedToSaveAuthData(),
|
|
164398
|
-
cause: error
|
|
164399
|
-
});
|
|
164400
|
-
}
|
|
164401
|
-
}
|
|
164402
|
-
async function deleteAuthData() {
|
|
164403
|
-
try {
|
|
164404
|
-
await rm2(getAuthDataFolder(), { recursive: true, force: true });
|
|
164405
|
-
} catch (error) {
|
|
164406
|
-
throw new CliError({
|
|
164407
|
-
code: CliErrorCode.FailedToDeleteAuthData(),
|
|
164408
|
-
cause: error
|
|
164409
|
-
});
|
|
164410
|
-
}
|
|
164411
|
-
if (await hasLegacyAuthData()) {
|
|
164412
|
-
await deleteLegacyAuthData();
|
|
164413
|
-
}
|
|
164414
|
-
}
|
|
164415
|
-
async function deleteLegacyAuthData() {
|
|
164416
|
-
try {
|
|
164417
|
-
await unlink(getLegacyAuthDataFilePath());
|
|
164418
|
-
} catch (error) {
|
|
164419
|
-
throw new CliError({
|
|
164420
|
-
code: CliErrorCode.FailedToDeleteLegacyAuthData(),
|
|
164421
|
-
cause: error
|
|
164422
|
-
});
|
|
164423
|
-
}
|
|
164424
|
-
}
|
|
164425
|
-
async function hasLegacyAuthData() {
|
|
164426
|
-
return pathExists(getLegacyAuthDataFilePath());
|
|
164427
|
-
}
|
|
164428
|
-
function isValidToken(authData) {
|
|
164429
|
-
const currentTimestamp = Math.floor(Date.now() / 1e3);
|
|
164430
|
-
const tokenOffset = 10 * 60;
|
|
164431
|
-
const tokenLifetime = authData.expiresIn - tokenOffset;
|
|
164432
|
-
const tokenGenerationTimestamp = authData.issuedAt;
|
|
164433
|
-
return tokenGenerationTimestamp + tokenLifetime > currentTimestamp;
|
|
164434
|
-
}
|
|
164435
|
-
|
|
164436
164588
|
// ../cli-auth/src/auth-strategies/api-key-auth-strategy.ts
|
|
164437
164589
|
function createApiKeyAuthState({
|
|
164438
164590
|
authData: { token: token2, accountId, userInfo },
|
|
164439
164591
|
siteId
|
|
164440
164592
|
}) {
|
|
164441
164593
|
return {
|
|
164442
|
-
getAccessToken: async () => token2,
|
|
164594
|
+
getAccessToken: async (_options) => token2,
|
|
164443
164595
|
getRefreshToken: () => {
|
|
164444
164596
|
throw new Error("API key auth does not support refresh tokens");
|
|
164445
164597
|
},
|
|
164446
|
-
getRequestHeaders: () => {
|
|
164447
|
-
|
|
164448
|
-
|
|
164598
|
+
getRequestHeaders: (options) => {
|
|
164599
|
+
const siteIdToUse = siteId ?? options?.siteId;
|
|
164600
|
+
if (siteIdToUse) {
|
|
164601
|
+
return { "wix-site-id": siteIdToUse };
|
|
164449
164602
|
}
|
|
164450
164603
|
return { "wix-account-id": accountId };
|
|
164451
164604
|
},
|
|
@@ -164484,143 +164637,6 @@ var apiKeyAuthStrategy = {
|
|
|
164484
164637
|
|
|
164485
164638
|
// ../cli-auth/src/auth-strategies/account-auth-strategy.ts
|
|
164486
164639
|
init_esm_shims();
|
|
164487
|
-
|
|
164488
|
-
// ../../node_modules/p-limit/index.js
|
|
164489
|
-
init_esm_shims();
|
|
164490
|
-
|
|
164491
|
-
// ../../node_modules/p-limit/node_modules/yocto-queue/index.js
|
|
164492
|
-
init_esm_shims();
|
|
164493
|
-
var Node = class {
|
|
164494
|
-
value;
|
|
164495
|
-
next;
|
|
164496
|
-
constructor(value2) {
|
|
164497
|
-
this.value = value2;
|
|
164498
|
-
}
|
|
164499
|
-
};
|
|
164500
|
-
var Queue = class {
|
|
164501
|
-
#head;
|
|
164502
|
-
#tail;
|
|
164503
|
-
#size;
|
|
164504
|
-
constructor() {
|
|
164505
|
-
this.clear();
|
|
164506
|
-
}
|
|
164507
|
-
enqueue(value2) {
|
|
164508
|
-
const node = new Node(value2);
|
|
164509
|
-
if (this.#head) {
|
|
164510
|
-
this.#tail.next = node;
|
|
164511
|
-
this.#tail = node;
|
|
164512
|
-
} else {
|
|
164513
|
-
this.#head = node;
|
|
164514
|
-
this.#tail = node;
|
|
164515
|
-
}
|
|
164516
|
-
this.#size++;
|
|
164517
|
-
}
|
|
164518
|
-
dequeue() {
|
|
164519
|
-
const current = this.#head;
|
|
164520
|
-
if (!current) {
|
|
164521
|
-
return;
|
|
164522
|
-
}
|
|
164523
|
-
this.#head = this.#head.next;
|
|
164524
|
-
this.#size--;
|
|
164525
|
-
return current.value;
|
|
164526
|
-
}
|
|
164527
|
-
peek() {
|
|
164528
|
-
if (!this.#head) {
|
|
164529
|
-
return;
|
|
164530
|
-
}
|
|
164531
|
-
return this.#head.value;
|
|
164532
|
-
}
|
|
164533
|
-
clear() {
|
|
164534
|
-
this.#head = void 0;
|
|
164535
|
-
this.#tail = void 0;
|
|
164536
|
-
this.#size = 0;
|
|
164537
|
-
}
|
|
164538
|
-
get size() {
|
|
164539
|
-
return this.#size;
|
|
164540
|
-
}
|
|
164541
|
-
*[Symbol.iterator]() {
|
|
164542
|
-
let current = this.#head;
|
|
164543
|
-
while (current) {
|
|
164544
|
-
yield current.value;
|
|
164545
|
-
current = current.next;
|
|
164546
|
-
}
|
|
164547
|
-
}
|
|
164548
|
-
};
|
|
164549
|
-
|
|
164550
|
-
// ../../node_modules/p-limit/index.js
|
|
164551
|
-
function pLimit(concurrency) {
|
|
164552
|
-
validateConcurrency(concurrency);
|
|
164553
|
-
const queue = new Queue();
|
|
164554
|
-
let activeCount = 0;
|
|
164555
|
-
const resumeNext = () => {
|
|
164556
|
-
if (activeCount < concurrency && queue.size > 0) {
|
|
164557
|
-
queue.dequeue()();
|
|
164558
|
-
activeCount++;
|
|
164559
|
-
}
|
|
164560
|
-
};
|
|
164561
|
-
const next = () => {
|
|
164562
|
-
activeCount--;
|
|
164563
|
-
resumeNext();
|
|
164564
|
-
};
|
|
164565
|
-
const run = async (function_, resolve4, arguments_) => {
|
|
164566
|
-
const result = (async () => function_(...arguments_))();
|
|
164567
|
-
resolve4(result);
|
|
164568
|
-
try {
|
|
164569
|
-
await result;
|
|
164570
|
-
} catch {
|
|
164571
|
-
}
|
|
164572
|
-
next();
|
|
164573
|
-
};
|
|
164574
|
-
const enqueue = (function_, resolve4, arguments_) => {
|
|
164575
|
-
new Promise((internalResolve) => {
|
|
164576
|
-
queue.enqueue(internalResolve);
|
|
164577
|
-
}).then(
|
|
164578
|
-
run.bind(void 0, function_, resolve4, arguments_)
|
|
164579
|
-
);
|
|
164580
|
-
(async () => {
|
|
164581
|
-
await Promise.resolve();
|
|
164582
|
-
if (activeCount < concurrency) {
|
|
164583
|
-
resumeNext();
|
|
164584
|
-
}
|
|
164585
|
-
})();
|
|
164586
|
-
};
|
|
164587
|
-
const generator = (function_, ...arguments_) => new Promise((resolve4) => {
|
|
164588
|
-
enqueue(function_, resolve4, arguments_);
|
|
164589
|
-
});
|
|
164590
|
-
Object.defineProperties(generator, {
|
|
164591
|
-
activeCount: {
|
|
164592
|
-
get: () => activeCount
|
|
164593
|
-
},
|
|
164594
|
-
pendingCount: {
|
|
164595
|
-
get: () => queue.size
|
|
164596
|
-
},
|
|
164597
|
-
clearQueue: {
|
|
164598
|
-
value() {
|
|
164599
|
-
queue.clear();
|
|
164600
|
-
}
|
|
164601
|
-
},
|
|
164602
|
-
concurrency: {
|
|
164603
|
-
get: () => concurrency,
|
|
164604
|
-
set(newConcurrency) {
|
|
164605
|
-
validateConcurrency(newConcurrency);
|
|
164606
|
-
concurrency = newConcurrency;
|
|
164607
|
-
queueMicrotask(() => {
|
|
164608
|
-
while (activeCount < concurrency && queue.size > 0) {
|
|
164609
|
-
resumeNext();
|
|
164610
|
-
}
|
|
164611
|
-
});
|
|
164612
|
-
}
|
|
164613
|
-
}
|
|
164614
|
-
});
|
|
164615
|
-
return generator;
|
|
164616
|
-
}
|
|
164617
|
-
function validateConcurrency(concurrency) {
|
|
164618
|
-
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
164619
|
-
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
164620
|
-
}
|
|
164621
|
-
}
|
|
164622
|
-
|
|
164623
|
-
// ../cli-auth/src/auth-strategies/account-auth-strategy.ts
|
|
164624
164640
|
var import_variant19 = __toESM(require_lib(), 1);
|
|
164625
164641
|
|
|
164626
164642
|
// ../../node_modules/p-wait-for/index.js
|
|
@@ -164763,7 +164779,16 @@ pWaitFor.resolveWith = (value2) => ({ [resolveValue]: value2 });
|
|
|
164763
164779
|
|
|
164764
164780
|
// ../cli-auth/src/auth-strategies/account-auth-strategy.ts
|
|
164765
164781
|
var seconds = (n2) => 1e3 * n2;
|
|
164766
|
-
async function
|
|
164782
|
+
async function finalizeLogin(tokenData) {
|
|
164783
|
+
const userInfo = await client.userInfo({
|
|
164784
|
+
accessToken: tokenData.accessToken
|
|
164785
|
+
});
|
|
164786
|
+
const result = { ...tokenData, userInfo };
|
|
164787
|
+
await deleteAuthData();
|
|
164788
|
+
await saveAuthData(result);
|
|
164789
|
+
return result;
|
|
164790
|
+
}
|
|
164791
|
+
async function loginWithDeviceCode({ deviceCode: deviceCode2, expiresIn }, { signal }) {
|
|
164767
164792
|
try {
|
|
164768
164793
|
const authData = await pWaitFor(
|
|
164769
164794
|
async () => {
|
|
@@ -164780,17 +164805,11 @@ async function waitForLogin({ deviceCode: deviceCode2, expiresIn }, { signal })
|
|
|
164780
164805
|
}
|
|
164781
164806
|
},
|
|
164782
164807
|
{
|
|
164783
|
-
interval: getTestOverrides().
|
|
164808
|
+
interval: getTestOverrides().loginWithDeviceCodeInterval ?? seconds(3),
|
|
164784
164809
|
timeout: { milliseconds: seconds(expiresIn), signal }
|
|
164785
164810
|
}
|
|
164786
164811
|
);
|
|
164787
|
-
|
|
164788
|
-
accessToken: authData.accessToken
|
|
164789
|
-
});
|
|
164790
|
-
const result = { ...authData, userInfo };
|
|
164791
|
-
await deleteAuthData();
|
|
164792
|
-
await saveAuthData(result);
|
|
164793
|
-
return result;
|
|
164812
|
+
return await finalizeLogin(authData);
|
|
164794
164813
|
} catch (error) {
|
|
164795
164814
|
if (error instanceof TimeoutError) {
|
|
164796
164815
|
throw new CliError({
|
|
@@ -164801,7 +164820,22 @@ async function waitForLogin({ deviceCode: deviceCode2, expiresIn }, { signal })
|
|
|
164801
164820
|
throw error;
|
|
164802
164821
|
}
|
|
164803
164822
|
}
|
|
164804
|
-
async function
|
|
164823
|
+
async function loginWithRefreshToken({
|
|
164824
|
+
refreshToken
|
|
164825
|
+
}) {
|
|
164826
|
+
const renewTokenResult = await client.renewToken({ refreshToken });
|
|
164827
|
+
if ((0, import_variant19.isType)(renewTokenResult, RenewTokenData.TokenRenewed)) {
|
|
164828
|
+
return await finalizeLogin(renewTokenResult.payload);
|
|
164829
|
+
}
|
|
164830
|
+
throw new CliError({
|
|
164831
|
+
code: CliErrorCode.FailedToLoginWithRefreshToken(),
|
|
164832
|
+
cause: null
|
|
164833
|
+
});
|
|
164834
|
+
}
|
|
164835
|
+
async function renewAccountAuth({
|
|
164836
|
+
refreshToken,
|
|
164837
|
+
userInfo
|
|
164838
|
+
}) {
|
|
164805
164839
|
const renewTokenResult = await client.renewToken({ refreshToken });
|
|
164806
164840
|
if ((0, import_variant19.isType)(renewTokenResult, RenewTokenData.TokenRenewed)) {
|
|
164807
164841
|
await saveAuthData({ ...renewTokenResult.payload, userInfo });
|
|
@@ -164825,74 +164859,6 @@ async function getNonExpiredAccountAuth() {
|
|
|
164825
164859
|
}
|
|
164826
164860
|
});
|
|
164827
164861
|
}
|
|
164828
|
-
function createAccountAuthState({
|
|
164829
|
-
userInfo,
|
|
164830
|
-
...initialTokenData
|
|
164831
|
-
}) {
|
|
164832
|
-
const limiter = pLimit(1);
|
|
164833
|
-
let tokenData = { ...initialTokenData };
|
|
164834
|
-
return {
|
|
164835
|
-
getAccessToken: () => {
|
|
164836
|
-
return limiter(async () => {
|
|
164837
|
-
if (isValidToken(tokenData)) {
|
|
164838
|
-
return tokenData.accessToken;
|
|
164839
|
-
}
|
|
164840
|
-
const renewTokenResult = await renewAccountAuth({
|
|
164841
|
-
...tokenData,
|
|
164842
|
-
userInfo
|
|
164843
|
-
});
|
|
164844
|
-
return (0, import_variant19.match)(renewTokenResult, {
|
|
164845
|
-
TokenRenewed: ({ payload: newTokenData }) => {
|
|
164846
|
-
tokenData = newTokenData;
|
|
164847
|
-
return tokenData.accessToken;
|
|
164848
|
-
},
|
|
164849
|
-
RefreshTokenRevoked: ({ cause }) => {
|
|
164850
|
-
throw new CliError({
|
|
164851
|
-
code: CliErrorCode.FailedToRenewAuthTokenRefreshTokenRevoked(),
|
|
164852
|
-
cause
|
|
164853
|
-
});
|
|
164854
|
-
}
|
|
164855
|
-
});
|
|
164856
|
-
});
|
|
164857
|
-
},
|
|
164858
|
-
getRefreshToken: () => tokenData.refreshToken,
|
|
164859
|
-
userInfo
|
|
164860
|
-
};
|
|
164861
|
-
}
|
|
164862
|
-
var accountAuthStrategy = {
|
|
164863
|
-
async isLoggedIn() {
|
|
164864
|
-
const apiKeyAuth = await apiKeyAuthStrategy.isLoggedIn();
|
|
164865
|
-
if (apiKeyAuth) {
|
|
164866
|
-
return apiKeyAuth;
|
|
164867
|
-
}
|
|
164868
|
-
const accountAuth = await getNonExpiredAccountAuth();
|
|
164869
|
-
if (accountAuth) {
|
|
164870
|
-
return createAccountAuthState(accountAuth);
|
|
164871
|
-
}
|
|
164872
|
-
return null;
|
|
164873
|
-
},
|
|
164874
|
-
async login({ deviceCode: deviceCode2, signal }) {
|
|
164875
|
-
const accountAuth = await waitForLogin(deviceCode2, { signal });
|
|
164876
|
-
return createAccountAuthState(accountAuth);
|
|
164877
|
-
},
|
|
164878
|
-
async loginWithRefreshToken({ refreshToken }) {
|
|
164879
|
-
const renewTokenResult = await client.renewToken({ refreshToken });
|
|
164880
|
-
if ((0, import_variant19.isType)(renewTokenResult, RenewTokenData.TokenRenewed)) {
|
|
164881
|
-
const newTokenData = renewTokenResult.payload;
|
|
164882
|
-
const userInfo = await client.userInfo({
|
|
164883
|
-
accessToken: newTokenData.accessToken
|
|
164884
|
-
});
|
|
164885
|
-
const result = { ...newTokenData, userInfo };
|
|
164886
|
-
await deleteAuthData();
|
|
164887
|
-
await saveAuthData(result);
|
|
164888
|
-
return createAccountAuthState(result);
|
|
164889
|
-
}
|
|
164890
|
-
throw new CliError({
|
|
164891
|
-
code: CliErrorCode.FailedToLoginWithRefreshToken(),
|
|
164892
|
-
cause: null
|
|
164893
|
-
});
|
|
164894
|
-
}
|
|
164895
|
-
};
|
|
164896
164862
|
|
|
164897
164863
|
// ../cli-auth/src/auth-strategies/site-auth-strategy.ts
|
|
164898
164864
|
init_esm_shims();
|
|
@@ -164932,28 +164898,51 @@ async function ensureAuthenticatedToSite({
|
|
|
164932
164898
|
});
|
|
164933
164899
|
}).complete();
|
|
164934
164900
|
}
|
|
164935
|
-
|
|
164936
|
-
|
|
164937
|
-
|
|
164938
|
-
|
|
164939
|
-
|
|
164901
|
+
|
|
164902
|
+
// ../cli-auth/src/auth-strategies/unified-auth-strategy.ts
|
|
164903
|
+
async function createAuthState({
|
|
164904
|
+
userInfo,
|
|
164905
|
+
...initialTokenData
|
|
164940
164906
|
}) {
|
|
164941
164907
|
const limiter = pLimit(1);
|
|
164942
|
-
let
|
|
164908
|
+
let accountTokenData = { ...initialTokenData };
|
|
164909
|
+
const siteTokensDataCache = /* @__PURE__ */ new Map();
|
|
164910
|
+
async function getOrEnsureSiteAuth(siteId) {
|
|
164911
|
+
const cached = siteTokensDataCache.get(siteId);
|
|
164912
|
+
if (cached && isValidToken(cached)) {
|
|
164913
|
+
return cached;
|
|
164914
|
+
}
|
|
164915
|
+
const siteAuthResult = await ensureAuthenticatedToSite({
|
|
164916
|
+
siteId,
|
|
164917
|
+
accountRefreshToken: accountTokenData.refreshToken
|
|
164918
|
+
});
|
|
164919
|
+
if (!(0, import_variant21.isType)(siteAuthResult, AuthenticationResult.Ok)) {
|
|
164920
|
+
throw new CliError({
|
|
164921
|
+
code: CliErrorCode.FailedToRenewAuthTokenRefreshTokenRevoked(),
|
|
164922
|
+
cause: siteAuthResult.cause
|
|
164923
|
+
});
|
|
164924
|
+
}
|
|
164925
|
+
const siteTokenData = siteAuthResult.payload;
|
|
164926
|
+
siteTokensDataCache.set(siteId, siteTokenData);
|
|
164927
|
+
return siteTokenData;
|
|
164928
|
+
}
|
|
164943
164929
|
return {
|
|
164944
|
-
getAccessToken: () => {
|
|
164930
|
+
getAccessToken: ({ siteId } = {}) => {
|
|
164945
164931
|
return limiter(async () => {
|
|
164946
|
-
if (
|
|
164947
|
-
return
|
|
164932
|
+
if (siteId) {
|
|
164933
|
+
return (await getOrEnsureSiteAuth(siteId)).accessToken;
|
|
164934
|
+
}
|
|
164935
|
+
if (isValidToken(accountTokenData)) {
|
|
164936
|
+
return accountTokenData.accessToken;
|
|
164948
164937
|
}
|
|
164949
|
-
const renewTokenResult = await
|
|
164950
|
-
|
|
164951
|
-
|
|
164938
|
+
const renewTokenResult = await renewAccountAuth({
|
|
164939
|
+
...accountTokenData,
|
|
164940
|
+
userInfo
|
|
164952
164941
|
});
|
|
164953
|
-
return (0,
|
|
164942
|
+
return (0, import_variant21.match)(renewTokenResult, {
|
|
164954
164943
|
TokenRenewed: ({ payload: newTokenData }) => {
|
|
164955
|
-
|
|
164956
|
-
return
|
|
164944
|
+
accountTokenData = newTokenData;
|
|
164945
|
+
return accountTokenData.accessToken;
|
|
164957
164946
|
},
|
|
164958
164947
|
RefreshTokenRevoked: ({ cause }) => {
|
|
164959
164948
|
throw new CliError({
|
|
@@ -164964,64 +164953,38 @@ function createSiteAuthState({
|
|
|
164964
164953
|
});
|
|
164965
164954
|
});
|
|
164966
164955
|
},
|
|
164967
|
-
getRefreshToken: () =>
|
|
164956
|
+
getRefreshToken: () => accountTokenData.refreshToken,
|
|
164968
164957
|
userInfo
|
|
164969
164958
|
};
|
|
164970
164959
|
}
|
|
164971
|
-
var
|
|
164960
|
+
var unifiedAuthStrategy = {
|
|
164972
164961
|
async isLoggedIn() {
|
|
164973
|
-
const apiKeyAuth = await apiKeyAuthStrategy.isLoggedIn(
|
|
164962
|
+
const apiKeyAuth = await apiKeyAuthStrategy.isLoggedIn();
|
|
164974
164963
|
if (apiKeyAuth) {
|
|
164975
164964
|
return apiKeyAuth;
|
|
164976
164965
|
}
|
|
164977
|
-
const accountAuth = await
|
|
164978
|
-
if (accountAuth) {
|
|
164979
|
-
|
|
164980
|
-
const siteAuthResult = await ensureAuthenticatedToSite({
|
|
164981
|
-
siteId,
|
|
164982
|
-
accountRefreshToken
|
|
164983
|
-
});
|
|
164984
|
-
if ((0, import_variant20.isType)(siteAuthResult, AuthenticationResult.Ok)) {
|
|
164985
|
-
return createSiteAuthState({
|
|
164986
|
-
siteId,
|
|
164987
|
-
siteAuth: siteAuthResult.payload,
|
|
164988
|
-
accountRefreshToken,
|
|
164989
|
-
userInfo: accountAuth.userInfo
|
|
164990
|
-
});
|
|
164991
|
-
}
|
|
164966
|
+
const accountAuth = await getNonExpiredAccountAuth();
|
|
164967
|
+
if (!accountAuth) {
|
|
164968
|
+
return null;
|
|
164992
164969
|
}
|
|
164993
|
-
return
|
|
164970
|
+
return await createAuthState(accountAuth);
|
|
164994
164971
|
},
|
|
164995
164972
|
async login({ deviceCode: deviceCode2, signal }) {
|
|
164996
|
-
const accountAuth = await
|
|
164997
|
-
|
|
164998
|
-
const siteAuthResult = await ensureAuthenticatedToSite({
|
|
164999
|
-
siteId,
|
|
165000
|
-
accountRefreshToken
|
|
165001
|
-
});
|
|
165002
|
-
return (0, import_variant20.match)(siteAuthResult, {
|
|
165003
|
-
Ok: ({ payload: siteAuth }) => {
|
|
165004
|
-
return createSiteAuthState({
|
|
165005
|
-
siteId,
|
|
165006
|
-
siteAuth,
|
|
165007
|
-
accountRefreshToken,
|
|
165008
|
-
userInfo: accountAuth.userInfo
|
|
165009
|
-
});
|
|
165010
|
-
},
|
|
165011
|
-
RefreshTokenRevoked: ({ cause }) => {
|
|
165012
|
-
throw new CliError({
|
|
165013
|
-
code: CliErrorCode.FailedToRenewAuthTokenRefreshTokenRevoked(),
|
|
165014
|
-
cause
|
|
165015
|
-
});
|
|
165016
|
-
}
|
|
164973
|
+
const accountAuth = await loginWithDeviceCode(deviceCode2, {
|
|
164974
|
+
signal
|
|
165017
164975
|
});
|
|
164976
|
+
return await createAuthState(accountAuth);
|
|
164977
|
+
},
|
|
164978
|
+
async loginWithRefreshToken({ refreshToken }) {
|
|
164979
|
+
const authData = await loginWithRefreshToken({ refreshToken });
|
|
164980
|
+
return await createAuthState(authData);
|
|
165018
164981
|
}
|
|
165019
|
-
}
|
|
164982
|
+
};
|
|
165020
164983
|
|
|
165021
164984
|
// ../cli-auth/src/components/EnsureLoggedIn.tsx
|
|
165022
164985
|
init_esm_shims();
|
|
165023
164986
|
var import_react86 = __toESM(require_react(), 1);
|
|
165024
|
-
var
|
|
164987
|
+
var import_variant24 = __toESM(require_lib(), 1);
|
|
165025
164988
|
|
|
165026
164989
|
// ../cli-auth/src/components/Login.tsx
|
|
165027
164990
|
init_esm_shims();
|
|
@@ -165061,7 +165024,7 @@ function wixCliAppsFlowTunnelCreationStatusSrc11Evid5233(params) {
|
|
|
165061
165024
|
}
|
|
165062
165025
|
|
|
165063
165026
|
// ../cli-auth/src/components/Login.tsx
|
|
165064
|
-
var
|
|
165027
|
+
var import_variant22 = __toESM(require_lib(), 1);
|
|
165065
165028
|
|
|
165066
165029
|
// ../cli-auth/src/messages.json
|
|
165067
165030
|
var messages_default2 = {
|
|
@@ -165073,6 +165036,9 @@ var messages_default2 = {
|
|
|
165073
165036
|
"login.error_opening_browser": "Failed to open browser, please try opening <0/> manually."
|
|
165074
165037
|
};
|
|
165075
165038
|
|
|
165039
|
+
// ../cli-auth/src/auth-strategies/index.ts
|
|
165040
|
+
init_esm_shims();
|
|
165041
|
+
|
|
165076
165042
|
// ../cli-auth/src/components/LoginInstructions.tsx
|
|
165077
165043
|
init_esm_shims();
|
|
165078
165044
|
var import_react83 = __toESM(require_react(), 1);
|
|
@@ -165197,8 +165163,8 @@ async function defaultBrowserId() {
|
|
|
165197
165163
|
throw new Error("macOS only");
|
|
165198
165164
|
}
|
|
165199
165165
|
const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
|
|
165200
|
-
const
|
|
165201
|
-
return
|
|
165166
|
+
const match16 = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
|
|
165167
|
+
return match16?.groups.id ?? "com.apple.Safari";
|
|
165202
165168
|
}
|
|
165203
165169
|
|
|
165204
165170
|
// ../../node_modules/bundle-name/index.js
|
|
@@ -165252,11 +165218,11 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
|
165252
165218
|
"/v",
|
|
165253
165219
|
"ProgId"
|
|
165254
165220
|
]);
|
|
165255
|
-
const
|
|
165256
|
-
if (!
|
|
165221
|
+
const match16 = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
|
|
165222
|
+
if (!match16) {
|
|
165257
165223
|
throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
|
|
165258
165224
|
}
|
|
165259
|
-
const { id } =
|
|
165225
|
+
const { id } = match16.groups;
|
|
165260
165226
|
const browser = windowsBrowserProgIds[id];
|
|
165261
165227
|
if (!browser) {
|
|
165262
165228
|
throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
|
|
@@ -165682,7 +165648,7 @@ var Login = ({ loginFn, onLogin, onError }) => {
|
|
|
165682
165648
|
onError: handleError
|
|
165683
165649
|
}
|
|
165684
165650
|
);
|
|
165685
|
-
return (0,
|
|
165651
|
+
return (0, import_variant22.match)(status, {
|
|
165686
165652
|
Error: () => null,
|
|
165687
165653
|
Loading: () => /* @__PURE__ */ import_react84.default.createElement(Spinner2, null),
|
|
165688
165654
|
Success: ({ result: { userCode, verificationUri } }) => /* @__PURE__ */ import_react84.default.createElement(
|
|
@@ -165698,11 +165664,11 @@ var Login = ({ loginFn, onLogin, onError }) => {
|
|
|
165698
165664
|
// ../cli-auth/src/components/WarnLegacyAuthData.tsx
|
|
165699
165665
|
init_esm_shims();
|
|
165700
165666
|
var import_react85 = __toESM(require_react(), 1);
|
|
165701
|
-
var
|
|
165667
|
+
var import_variant23 = __toESM(require_lib(), 1);
|
|
165702
165668
|
var WarnLegacyAuthData = ({ children }) => {
|
|
165703
165669
|
const { status } = useAsync2(hasLegacyAuthData, [], { onError: () => {
|
|
165704
165670
|
} });
|
|
165705
|
-
return (0,
|
|
165671
|
+
return (0, import_variant23.match)(status, {
|
|
165706
165672
|
Error: () => null,
|
|
165707
165673
|
Loading: () => null,
|
|
165708
165674
|
Success: ({ result }) => /* @__PURE__ */ import_react85.default.createElement(import_react85.default.Fragment, null, result && /* @__PURE__ */ import_react85.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react85.default.createElement(Trans2, { i18nKey: "login.legacy_auth_notice" })), children)
|
|
@@ -165724,7 +165690,7 @@ var EnsureLoggedIn = ({
|
|
|
165724
165690
|
},
|
|
165725
165691
|
onError
|
|
165726
165692
|
});
|
|
165727
|
-
return (0,
|
|
165693
|
+
return (0, import_variant24.match)(status, {
|
|
165728
165694
|
Loading: () => /* @__PURE__ */ import_react86.default.createElement(Spinner2, null),
|
|
165729
165695
|
Error: () => null,
|
|
165730
165696
|
Success: ({ result: accountAuth }) => {
|
|
@@ -165746,17 +165712,13 @@ var EnsureLoggedIn = ({
|
|
|
165746
165712
|
});
|
|
165747
165713
|
};
|
|
165748
165714
|
|
|
165749
|
-
// ../cli-auth/src/providers/
|
|
165750
|
-
var
|
|
165751
|
-
children,
|
|
165752
|
-
onError,
|
|
165753
|
-
onLogin
|
|
165754
|
-
}) => {
|
|
165715
|
+
// ../cli-auth/src/providers/UnifiedAuthProvider.tsx
|
|
165716
|
+
var AuthProvider = ({ children, onError, onLogin }) => {
|
|
165755
165717
|
const exit = useExit();
|
|
165756
165718
|
return /* @__PURE__ */ import_react87.default.createElement(
|
|
165757
165719
|
EnsureLoggedIn,
|
|
165758
165720
|
{
|
|
165759
|
-
authStrategy:
|
|
165721
|
+
authStrategy: unifiedAuthStrategy,
|
|
165760
165722
|
onLogin: ({ userInfo }) => onLogin?.(userInfo),
|
|
165761
165723
|
onError: onError ?? exit
|
|
165762
165724
|
},
|
|
@@ -165784,96 +165746,8 @@ function useAuth() {
|
|
|
165784
165746
|
return context;
|
|
165785
165747
|
}
|
|
165786
165748
|
|
|
165787
|
-
// ../cli-auth/src/providers/SiteAuthProvider.tsx
|
|
165788
|
-
init_esm_shims();
|
|
165789
|
-
var import_react89 = __toESM(require_react(), 1);
|
|
165790
|
-
var SiteAuthProvider = ({
|
|
165791
|
-
children,
|
|
165792
|
-
siteId,
|
|
165793
|
-
onError,
|
|
165794
|
-
onLogin
|
|
165795
|
-
}) => {
|
|
165796
|
-
const exit = useExit();
|
|
165797
|
-
const authStrategy = (0, import_react89.useMemo)(() => createSiteAuthStrategy(siteId), [siteId]);
|
|
165798
|
-
return /* @__PURE__ */ import_react89.default.createElement(
|
|
165799
|
-
EnsureLoggedIn,
|
|
165800
|
-
{
|
|
165801
|
-
authStrategy,
|
|
165802
|
-
onLogin: ({ userInfo }) => onLogin?.(userInfo),
|
|
165803
|
-
onError: onError ?? exit
|
|
165804
|
-
},
|
|
165805
|
-
({ getAccessToken, getRequestHeaders, userInfo }) => /* @__PURE__ */ import_react89.default.createElement(
|
|
165806
|
-
AuthContext.Provider,
|
|
165807
|
-
{
|
|
165808
|
-
value: {
|
|
165809
|
-
getAccessToken,
|
|
165810
|
-
getRequestHeaders,
|
|
165811
|
-
userInfo
|
|
165812
|
-
}
|
|
165813
|
-
},
|
|
165814
|
-
children
|
|
165815
|
-
)
|
|
165816
|
-
);
|
|
165817
|
-
};
|
|
165818
|
-
|
|
165819
|
-
// ../cli-auth/src/hooks/useSiteAuth.ts
|
|
165820
|
-
init_esm_shims();
|
|
165821
|
-
var import_react90 = __toESM(require_react(), 1);
|
|
165822
|
-
var import_variant24 = __toESM(require_lib(), 1);
|
|
165823
|
-
var useSiteAuth = ({
|
|
165824
|
-
siteId,
|
|
165825
|
-
onError,
|
|
165826
|
-
onLogin
|
|
165827
|
-
}) => {
|
|
165828
|
-
const exit = useExit();
|
|
165829
|
-
const authStrategy = (0, import_react90.useMemo)(() => createSiteAuthStrategy(siteId), [siteId]);
|
|
165830
|
-
const { status } = useAsync2(authStrategy.isLoggedIn, [], {
|
|
165831
|
-
onSuccess: (result) => {
|
|
165832
|
-
if (result) {
|
|
165833
|
-
onLogin?.(result.userInfo);
|
|
165834
|
-
}
|
|
165835
|
-
},
|
|
165836
|
-
onError: onError ?? exit
|
|
165837
|
-
});
|
|
165838
|
-
if ((0, import_variant24.isType)(status, "Loading")) {
|
|
165839
|
-
return {
|
|
165840
|
-
isLoading: true,
|
|
165841
|
-
isError: false,
|
|
165842
|
-
isAuthenticated: false,
|
|
165843
|
-
authState: null
|
|
165844
|
-
};
|
|
165845
|
-
}
|
|
165846
|
-
if ((0, import_variant24.isType)(status, "Error")) {
|
|
165847
|
-
return {
|
|
165848
|
-
isLoading: false,
|
|
165849
|
-
isError: true,
|
|
165850
|
-
isAuthenticated: false,
|
|
165851
|
-
authState: null,
|
|
165852
|
-
error: status.error
|
|
165853
|
-
};
|
|
165854
|
-
}
|
|
165855
|
-
const authState = status.result;
|
|
165856
|
-
if (authState == null) {
|
|
165857
|
-
return {
|
|
165858
|
-
isLoading: false,
|
|
165859
|
-
isError: false,
|
|
165860
|
-
isAuthenticated: false,
|
|
165861
|
-
authState: null
|
|
165862
|
-
};
|
|
165863
|
-
}
|
|
165864
|
-
return {
|
|
165865
|
-
isLoading: false,
|
|
165866
|
-
isError: false,
|
|
165867
|
-
isAuthenticated: true,
|
|
165868
|
-
authState,
|
|
165869
|
-
getAccessToken: authState.getAccessToken,
|
|
165870
|
-
getRequestHeaders: authState.getRequestHeaders,
|
|
165871
|
-
userInfo: authState.userInfo
|
|
165872
|
-
};
|
|
165873
|
-
};
|
|
165874
|
-
|
|
165875
165749
|
// ../cli-auth/src/index.ts
|
|
165876
|
-
var { isLoggedIn: isLoggedInToAccount } =
|
|
165750
|
+
var { isLoggedIn: isLoggedInToAccount } = unifiedAuthStrategy;
|
|
165877
165751
|
|
|
165878
165752
|
// ../cli-core-definitions/src/index.ts
|
|
165879
165753
|
init_esm_shims();
|
|
@@ -165906,13 +165780,13 @@ function getDebugLogFilePath(projectFolder) {
|
|
|
165906
165780
|
|
|
165907
165781
|
// ../cli-http-client-react/src/httpClientProvider.tsx
|
|
165908
165782
|
init_esm_shims();
|
|
165909
|
-
var
|
|
165910
|
-
var HttpClientContext = (0,
|
|
165783
|
+
var import_react89 = __toESM(require_react(), 1);
|
|
165784
|
+
var HttpClientContext = (0, import_react89.createContext)(null);
|
|
165911
165785
|
var HttpClientProvider = ({
|
|
165912
165786
|
children,
|
|
165913
165787
|
headers
|
|
165914
165788
|
}) => {
|
|
165915
|
-
return /* @__PURE__ */
|
|
165789
|
+
return /* @__PURE__ */ import_react89.default.createElement(HttpClientContext.Provider, { value: { headers } }, children);
|
|
165916
165790
|
};
|
|
165917
165791
|
|
|
165918
165792
|
// ../cli-http-client-react/src/buildHttpClientHeaders.ts
|
|
@@ -165937,32 +165811,33 @@ init_esm_shims();
|
|
|
165937
165811
|
|
|
165938
165812
|
// ../cli-http-client-react/src/useHttpClient.ts
|
|
165939
165813
|
init_esm_shims();
|
|
165940
|
-
var
|
|
165814
|
+
var import_react90 = __toESM(require_react(), 1);
|
|
165941
165815
|
function useHttpClient({
|
|
165942
|
-
type
|
|
165816
|
+
type,
|
|
165817
|
+
siteId
|
|
165943
165818
|
}) {
|
|
165944
|
-
const context = (0,
|
|
165819
|
+
const context = (0, import_react90.useContext)(HttpClientContext);
|
|
165945
165820
|
const { getAccessToken: getAppToken, getRequestHeaders: createAuthHeaders } = useAuth();
|
|
165946
|
-
return (0,
|
|
165821
|
+
return (0, import_react90.useMemo)(
|
|
165947
165822
|
() => createHttpClient({
|
|
165948
165823
|
type,
|
|
165949
|
-
getAppToken,
|
|
165824
|
+
getAppToken: () => getAppToken({ siteId }),
|
|
165950
165825
|
createHeaders: () => ({
|
|
165951
|
-
...createAuthHeaders?.(),
|
|
165826
|
+
...createAuthHeaders?.({ siteId }),
|
|
165952
165827
|
...context?.headers
|
|
165953
165828
|
})
|
|
165954
165829
|
}),
|
|
165955
|
-
[type, getAppToken, createAuthHeaders, context]
|
|
165830
|
+
[type, getAppToken, createAuthHeaders, context, siteId]
|
|
165956
165831
|
);
|
|
165957
165832
|
}
|
|
165958
165833
|
|
|
165959
165834
|
// ../cli-panorama/src/PanoramaContext.tsx
|
|
165960
165835
|
init_esm_shims();
|
|
165961
|
-
var
|
|
165962
|
-
var PanoramaContext = (0,
|
|
165836
|
+
var import_react91 = __toESM(require_react(), 1);
|
|
165837
|
+
var PanoramaContext = (0, import_react91.createContext)(void 0);
|
|
165963
165838
|
var PanoramaProvider = (props) => {
|
|
165964
165839
|
const { value: value2, children } = props;
|
|
165965
|
-
return /* @__PURE__ */
|
|
165840
|
+
return /* @__PURE__ */ import_react91.default.createElement(PanoramaContext.Provider, { value: value2 }, children);
|
|
165966
165841
|
};
|
|
165967
165842
|
|
|
165968
165843
|
// ../cli-panorama/src/createCommandTransaction.ts
|
|
@@ -165993,23 +165868,23 @@ init_esm_shims();
|
|
|
165993
165868
|
|
|
165994
165869
|
// ../cli-panorama/src/usePanoramaMethodLogger.ts
|
|
165995
165870
|
init_esm_shims();
|
|
165996
|
-
var
|
|
165871
|
+
var import_react92 = __toESM(require_react(), 1);
|
|
165997
165872
|
function usePanoramaMethodLogger(target) {
|
|
165998
|
-
const factory = (0,
|
|
165873
|
+
const factory = (0, import_react92.useContext)(PanoramaContext);
|
|
165999
165874
|
if (factory == null) {
|
|
166000
165875
|
throw new Error(
|
|
166001
165876
|
"usePanoramaMethodLogger() cannot be used without a <PanoramaProvider />"
|
|
166002
165877
|
);
|
|
166003
165878
|
}
|
|
166004
165879
|
const componentId = target.constructor.name;
|
|
166005
|
-
const clientOptions = (0,
|
|
165880
|
+
const clientOptions = (0, import_react92.useMemo)(
|
|
166006
165881
|
() => ({ baseParams: { componentId } }),
|
|
166007
165882
|
[componentId]
|
|
166008
165883
|
);
|
|
166009
|
-
const client2 = (0,
|
|
165884
|
+
const client2 = (0, import_react92.useMemo)(() => {
|
|
166010
165885
|
return factory.client(clientOptions);
|
|
166011
165886
|
}, [factory, clientOptions]);
|
|
166012
|
-
return (0,
|
|
165887
|
+
return (0, import_react92.useMemo)(() => {
|
|
166013
165888
|
const cache3 = /* @__PURE__ */ new Map();
|
|
166014
165889
|
return new Proxy(target, {
|
|
166015
165890
|
get(target2, prop, receiver) {
|
|
@@ -169453,7 +169328,7 @@ var DevCenterComponent = (0, import_variant26.variant)({
|
|
|
169453
169328
|
|
|
169454
169329
|
// src/model.tsx
|
|
169455
169330
|
init_esm_shims();
|
|
169456
|
-
var
|
|
169331
|
+
var import_react96 = __toESM(require_react(), 1);
|
|
169457
169332
|
|
|
169458
169333
|
// src/files/wix.config.ts
|
|
169459
169334
|
init_esm_shims();
|
|
@@ -170396,30 +170271,30 @@ Scanner.prototype.eos = function eos() {
|
|
|
170396
170271
|
return this.tail === "";
|
|
170397
170272
|
};
|
|
170398
170273
|
Scanner.prototype.scan = function scan(re) {
|
|
170399
|
-
var
|
|
170400
|
-
if (!
|
|
170274
|
+
var match16 = this.tail.match(re);
|
|
170275
|
+
if (!match16 || match16.index !== 0)
|
|
170401
170276
|
return "";
|
|
170402
|
-
var string =
|
|
170277
|
+
var string = match16[0];
|
|
170403
170278
|
this.tail = this.tail.substring(string.length);
|
|
170404
170279
|
this.pos += string.length;
|
|
170405
170280
|
return string;
|
|
170406
170281
|
};
|
|
170407
170282
|
Scanner.prototype.scanUntil = function scanUntil(re) {
|
|
170408
|
-
var index = this.tail.search(re),
|
|
170283
|
+
var index = this.tail.search(re), match16;
|
|
170409
170284
|
switch (index) {
|
|
170410
170285
|
case -1:
|
|
170411
|
-
|
|
170286
|
+
match16 = this.tail;
|
|
170412
170287
|
this.tail = "";
|
|
170413
170288
|
break;
|
|
170414
170289
|
case 0:
|
|
170415
|
-
|
|
170290
|
+
match16 = "";
|
|
170416
170291
|
break;
|
|
170417
170292
|
default:
|
|
170418
|
-
|
|
170293
|
+
match16 = this.tail.substring(0, index);
|
|
170419
170294
|
this.tail = this.tail.substring(index);
|
|
170420
170295
|
}
|
|
170421
|
-
this.pos +=
|
|
170422
|
-
return
|
|
170296
|
+
this.pos += match16.length;
|
|
170297
|
+
return match16;
|
|
170423
170298
|
};
|
|
170424
170299
|
function Context(view, parentContext) {
|
|
170425
170300
|
this.view = view;
|
|
@@ -170700,16 +170575,16 @@ function createEmbeddedScriptFolderValidation(embeddedScripts) {
|
|
|
170700
170575
|
|
|
170701
170576
|
// src/dev-center/components/validations/custom-element.ts
|
|
170702
170577
|
init_esm_shims();
|
|
170703
|
-
var
|
|
170578
|
+
var import_react94 = __toESM(require_react(), 1);
|
|
170704
170579
|
|
|
170705
170580
|
// src/components/extensions/useExtensions.tsx
|
|
170706
170581
|
init_esm_shims();
|
|
170707
|
-
var
|
|
170582
|
+
var import_react93 = __toESM(require_react(), 1);
|
|
170708
170583
|
var import_variant28 = __toESM(require_lib(), 1);
|
|
170709
170584
|
var _DevCenterComponentTypes = (0, import_variant28.typeCatalog)(DevCenterComponent);
|
|
170710
170585
|
function useExtensions() {
|
|
170711
170586
|
const { model } = useProjectModel();
|
|
170712
|
-
const extensionsByType = (0,
|
|
170587
|
+
const extensionsByType = (0, import_react93.useMemo)(() => {
|
|
170713
170588
|
const extensionsMap = model.components.reduce(
|
|
170714
170589
|
(acc, component) => {
|
|
170715
170590
|
acc[component.type].push(component);
|
|
@@ -170742,7 +170617,7 @@ function useExtensions() {
|
|
|
170742
170617
|
);
|
|
170743
170618
|
return extensionsMap;
|
|
170744
170619
|
}, [model.components]);
|
|
170745
|
-
const dashboardExtensions = (0,
|
|
170620
|
+
const dashboardExtensions = (0, import_react93.useMemo)(
|
|
170746
170621
|
() => [
|
|
170747
170622
|
...extensionsByType.DashboardPage,
|
|
170748
170623
|
...extensionsByType.DashboardMenuPlugin,
|
|
@@ -170751,11 +170626,11 @@ function useExtensions() {
|
|
|
170751
170626
|
],
|
|
170752
170627
|
[extensionsByType]
|
|
170753
170628
|
);
|
|
170754
|
-
const hasExtensions = (0,
|
|
170629
|
+
const hasExtensions = (0, import_react93.useCallback)(
|
|
170755
170630
|
(extensionType) => extensionType ? extensionsByType[extensionType].length > 0 : model.components.length > 0,
|
|
170756
170631
|
[extensionsByType, model.components]
|
|
170757
170632
|
);
|
|
170758
|
-
const getExtensions = (0,
|
|
170633
|
+
const getExtensions = (0, import_react93.useCallback)(
|
|
170759
170634
|
(extensionType) => extensionsByType[extensionType],
|
|
170760
170635
|
[extensionsByType]
|
|
170761
170636
|
);
|
|
@@ -170834,7 +170709,7 @@ var useCustomElementDirectoryValidation = (extensionType) => {
|
|
|
170834
170709
|
]
|
|
170835
170710
|
])
|
|
170836
170711
|
);
|
|
170837
|
-
return (0,
|
|
170712
|
+
return (0, import_react94.useCallback)(validation, [validation]);
|
|
170838
170713
|
};
|
|
170839
170714
|
var useCustomElementNameValidation = () => {
|
|
170840
170715
|
const { t: t3 } = useTranslation();
|
|
@@ -170846,7 +170721,7 @@ var useCustomElementNameValidation = () => {
|
|
|
170846
170721
|
]
|
|
170847
170722
|
])
|
|
170848
170723
|
);
|
|
170849
|
-
return (0,
|
|
170724
|
+
return (0, import_react94.useCallback)(validation, [validation]);
|
|
170850
170725
|
};
|
|
170851
170726
|
|
|
170852
170727
|
// src/dev-center/components/backend/config.ts
|
|
@@ -176209,7 +176084,11 @@ var DevCenterClient = class {
|
|
|
176209
176084
|
const { data } = await this.httpClient.request(
|
|
176210
176085
|
updateOAuthApp({
|
|
176211
176086
|
oAuthApp,
|
|
176212
|
-
mask: [
|
|
176087
|
+
mask: [
|
|
176088
|
+
"allowedDomains",
|
|
176089
|
+
"allowedRedirectUris",
|
|
176090
|
+
"redirectUrlWixPages"
|
|
176091
|
+
]
|
|
176213
176092
|
})
|
|
176214
176093
|
);
|
|
176215
176094
|
return createOAuthAppSchema.parse(data).oAuthApp;
|
|
@@ -176570,10 +176449,12 @@ var DevCenterClient = class {
|
|
|
176570
176449
|
|
|
176571
176450
|
// ../dev-center-client/src/useDevCenterClient.ts
|
|
176572
176451
|
init_esm_shims();
|
|
176573
|
-
var
|
|
176574
|
-
function useDevCenterClient(
|
|
176575
|
-
|
|
176576
|
-
|
|
176452
|
+
var import_react95 = __toESM(require_react(), 1);
|
|
176453
|
+
function useDevCenterClient({
|
|
176454
|
+
siteId
|
|
176455
|
+
} = {}) {
|
|
176456
|
+
const httpClient = useHttpClient({ type: "backoffice", siteId });
|
|
176457
|
+
const client2 = (0, import_react95.useMemo)(() => new DevCenterClient(httpClient), [httpClient]);
|
|
176577
176458
|
return usePanoramaMethodLogger(client2);
|
|
176578
176459
|
}
|
|
176579
176460
|
|
|
@@ -179605,11 +179486,11 @@ async function loadProjectModel(projectFolder) {
|
|
|
179605
179486
|
})
|
|
179606
179487
|
};
|
|
179607
179488
|
}
|
|
179608
|
-
var ProjectModelContext = (0,
|
|
179489
|
+
var ProjectModelContext = (0, import_react96.createContext)(null);
|
|
179609
179490
|
var ProjectModelProvider = (props) => {
|
|
179610
179491
|
const { reportError } = useErrorReporter();
|
|
179611
|
-
const [model, setModel] = (0,
|
|
179612
|
-
const [watcher] = (0,
|
|
179492
|
+
const [model, setModel] = (0, import_react96.useState)(props.value);
|
|
179493
|
+
const [watcher] = (0, import_react96.useState)(() => {
|
|
179613
179494
|
const watcher2 = new ProjectModelWatcher(model);
|
|
179614
179495
|
if (props.watchForChanges === true) {
|
|
179615
179496
|
watcher2.watch().onChange((newModel, changeType) => {
|
|
@@ -179620,15 +179501,15 @@ var ProjectModelProvider = (props) => {
|
|
|
179620
179501
|
}
|
|
179621
179502
|
return watcher2;
|
|
179622
179503
|
});
|
|
179623
|
-
(0,
|
|
179504
|
+
(0, import_react96.useEffect)(() => {
|
|
179624
179505
|
return () => {
|
|
179625
179506
|
watcher.close().catch(reportError);
|
|
179626
179507
|
};
|
|
179627
179508
|
}, [watcher, reportError]);
|
|
179628
|
-
return /* @__PURE__ */
|
|
179509
|
+
return /* @__PURE__ */ import_react96.default.createElement(ProjectModelContext.Provider, { value: { model, watcher } }, props.children);
|
|
179629
179510
|
};
|
|
179630
179511
|
function useProjectModel() {
|
|
179631
|
-
const context = (0,
|
|
179512
|
+
const context = (0, import_react96.useContext)(ProjectModelContext);
|
|
179632
179513
|
if (context == null) {
|
|
179633
179514
|
throw new Error(
|
|
179634
179515
|
"useProjectModel() cannot be used without an <ProjectModelProvider>"
|
|
@@ -179659,7 +179540,6 @@ export {
|
|
|
179659
179540
|
isHttpError,
|
|
179660
179541
|
isHttpValidationError,
|
|
179661
179542
|
isHttpApplicationError,
|
|
179662
|
-
createHttpClient,
|
|
179663
179543
|
getTestOverrides,
|
|
179664
179544
|
getDataDirPath,
|
|
179665
179545
|
ensureDataDirExists,
|
|
@@ -179729,9 +179609,7 @@ export {
|
|
|
179729
179609
|
require_semver2 as require_semver,
|
|
179730
179610
|
ErrorReporterProvider,
|
|
179731
179611
|
useErrorReporter,
|
|
179732
|
-
|
|
179733
|
-
SiteAuthProvider,
|
|
179734
|
-
useSiteAuth,
|
|
179612
|
+
AuthProvider,
|
|
179735
179613
|
isLoggedInToAccount,
|
|
179736
179614
|
WIX_CONFIG_FILENAME,
|
|
179737
179615
|
TS_CONFIG_FILENAME,
|
|
@@ -180053,4 +179931,4 @@ mustache/mustache.mjs:
|
|
|
180053
179931
|
* http://github.com/janl/mustache.js
|
|
180054
179932
|
*)
|
|
180055
179933
|
*/
|
|
180056
|
-
//# sourceMappingURL=chunk-
|
|
179934
|
+
//# sourceMappingURL=chunk-X23LLJJE.js.map
|