@oclif/plugin-test-esbuild 0.5.16 → 0.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{chunk-46M2M4UH.js → chunk-KKF36Q6V.js} +1 -1
- package/dist/{chunk-43V6OANS.js → chunk-NWCXLJN2.js} +1 -1
- package/dist/{chunk-W5HU6WLX.js → chunk-NXT2QAWJ.js} +1 -1
- package/dist/{chunk-E7LBLRIB.js → chunk-OV2PEOZH.js} +1 -1
- package/dist/{chunk-4J6ABNN2.js → chunk-QTBOVN7I.js} +239 -161
- package/dist/commands/esbuild.js +2 -2
- package/dist/commands/hello/index.js +2 -2
- package/dist/commands/hello/world.js +2 -2
- package/dist/hooks/init/init.js +2 -2
- package/dist/index.js +5 -5
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g @oclif/plugin-test-esbuild
|
|
|
17
17
|
$ bundle COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ bundle (--version)
|
|
20
|
-
@oclif/plugin-test-esbuild/0.5.
|
|
20
|
+
@oclif/plugin-test-esbuild/0.5.18 linux-x64 node-v20.16.0
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
|
@@ -3255,9 +3255,9 @@ var require_ansi_styles = __commonJS({
|
|
|
3255
3255
|
}
|
|
3256
3256
|
});
|
|
3257
3257
|
|
|
3258
|
-
// node_modules/wrap-ansi/index.js
|
|
3258
|
+
// node_modules/@oclif/core/node_modules/wrap-ansi/index.js
|
|
3259
3259
|
var require_wrap_ansi = __commonJS({
|
|
3260
|
-
"node_modules/wrap-ansi/index.js"(exports, module) {
|
|
3260
|
+
"node_modules/@oclif/core/node_modules/wrap-ansi/index.js"(exports, module) {
|
|
3261
3261
|
"use strict";
|
|
3262
3262
|
init_cjs_shims();
|
|
3263
3263
|
var stringWidth = require_string_width();
|
|
@@ -3462,13 +3462,7 @@ var require_ansis = __commonJS({
|
|
|
3462
3462
|
init_cjs_shims();
|
|
3463
3463
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3464
3464
|
var { round: e, floor: t, max: n } = Math;
|
|
3465
|
-
var r = (e2
|
|
3466
|
-
if ("" === t2) return e2;
|
|
3467
|
-
let r2, o2 = t2.length, i2 = 0, s2 = "";
|
|
3468
|
-
for (; ~(r2 = e2.indexOf(t2, i2)); ) s2 += e2.slice(i2, r2) + n2, i2 = r2 + o2;
|
|
3469
|
-
return i2 ? s2 + e2.slice(i2) : e2;
|
|
3470
|
-
};
|
|
3471
|
-
var o = (e2) => {
|
|
3465
|
+
var r = (e2) => {
|
|
3472
3466
|
let [, t2] = /([a-f\d]{3,6})/i.exec(e2) || [], n2 = t2 ? t2.length : 0;
|
|
3473
3467
|
if (3 === n2) t2 = t2[0] + t2[0] + t2[1] + t2[1] + t2[2] + t2[2];
|
|
3474
3468
|
else if (6 !== n2) return [0, 0, 0];
|
|
@@ -3476,94 +3470,87 @@ var require_ansis = __commonJS({
|
|
|
3476
3470
|
return [r2 >> 16 & 255, r2 >> 8 & 255, 255 & r2];
|
|
3477
3471
|
};
|
|
3478
3472
|
var i = (t2, n2, r2) => t2 === n2 && n2 === r2 ? t2 < 8 ? 16 : t2 > 248 ? 231 : e((t2 - 8) / 247 * 24) + 232 : 16 + 36 * e(t2 / 51) + 6 * e(n2 / 51) + e(r2 / 51);
|
|
3479
|
-
var
|
|
3480
|
-
let o2,
|
|
3481
|
-
|
|
3482
|
-
if (r2 < 16) return r2 - 8 + 90;
|
|
3483
|
-
if (r2 >= 232) o2 = i2 = s2 = (10 * (r2 - 232) + 8) / 255;
|
|
3484
|
-
else {
|
|
3485
|
-
const e2 = (r2 -= 16) % 36;
|
|
3486
|
-
o2 = t(r2 / 36) / 5, i2 = t(e2 / 6) / 5, s2 = e2 % 6 / 5;
|
|
3487
|
-
}
|
|
3488
|
-
const l2 = 2 * n(o2, i2, s2);
|
|
3489
|
-
if (0 === l2) return 30;
|
|
3490
|
-
let c2 = 30 + (e(s2) << 2 | e(i2) << 1 | e(o2));
|
|
3491
|
-
return 2 === l2 ? c2 + 60 : c2;
|
|
3473
|
+
var o = (r2) => {
|
|
3474
|
+
let i2, o2, l2, s2, c2, u2;
|
|
3475
|
+
return r2 < 8 ? 30 + r2 : r2 < 16 ? r2 - 8 + 90 : (r2 >= 232 ? i2 = o2 = l2 = (10 * (r2 - 232) + 8) / 255 : (u2 = (r2 -= 16) % 36, i2 = t(r2 / 36) / 5, o2 = t(u2 / 6) / 5, l2 = u2 % 6 / 5), s2 = 2 * n(i2, o2, l2), 0 === s2 ? 30 : (c2 = 30 + (e(l2) << 2 | e(o2) << 1 | e(i2)), 2 === s2 ? c2 + 60 : c2));
|
|
3492
3476
|
};
|
|
3493
|
-
var l = (e2, t2, n2) =>
|
|
3494
|
-
var
|
|
3495
|
-
const t2 = (e3) => !!c2.find((t3) => e3.test(t3)), n2 = globalThis, r2 = n2.Deno,
|
|
3496
|
-
let u2 =
|
|
3497
|
-
if (
|
|
3477
|
+
var l = (e2, t2, n2) => o(i(e2, t2, n2));
|
|
3478
|
+
var s = ((e2) => {
|
|
3479
|
+
const t2 = (e3) => !!c2.find((t3) => e3.test(t3)), n2 = globalThis, r2 = n2.Deno, i2 = null != r2, o2 = n2.process || r2 || {}, l2 = o2.stdout, s2 = "win32" === (i2 ? r2.build.os : o2.platform), c2 = o2.argv || o2.args || [];
|
|
3480
|
+
let u2 = o2.env || {}, a2 = -1;
|
|
3481
|
+
if (i2) try {
|
|
3498
3482
|
u2 = u2.toObject();
|
|
3499
3483
|
} catch (e3) {
|
|
3500
3484
|
a2 = 0;
|
|
3501
3485
|
}
|
|
3502
|
-
const
|
|
3503
|
-
return b2 ? 0 : (a2 < 0 && (a2 =
|
|
3504
|
-
const { TERM:
|
|
3505
|
-
return "TF_BUILD" in e3 ? 1 : "TEAMCITY_VERSION" in e3 ? 2 : "CI" in e3 ? ["GITHUB_ACTIONS", "GITEA_ACTIONS"].some((t4) => t4 in e3) ? 3 : 1 : !t3 || /-mono|dumb/i.test(
|
|
3506
|
-
})(u2, O2)), _2 && 0 === a2 ? 3 : a2);
|
|
3486
|
+
const p2 = "FORCE_COLOR", g2 = u2[p2], f2 = parseInt(g2), d2 = "false" === g2 ? 0 : isNaN(f2) ? 3 : f2, b2 = "NO_COLOR" in u2 || 0 === d2 || t2(/^-{1,2}(no-color|color=(false|never))$/), _2 = p2 in u2 && d2 || t2(/^-{1,2}color=?(true|always)?$/), O2 = (u2.NEXT_RUNTIME || "").indexOf("edge") > -1 || "PM2_HOME" in u2 && "pm_id" in u2 || (i2 ? r2.isatty(1) : l2 && "isTTY" in l2);
|
|
3487
|
+
return b2 ? 0 : (a2 < 0 && (a2 = ((e3, t3, n3) => {
|
|
3488
|
+
const { TERM: r3, COLORTERM: i3 } = e3;
|
|
3489
|
+
return "TF_BUILD" in e3 ? 1 : "TEAMCITY_VERSION" in e3 ? 2 : "CI" in e3 ? ["GITHUB_ACTIONS", "GITEA_ACTIONS"].some((t4) => t4 in e3) ? 3 : 1 : !t3 || /-mono|dumb/i.test(r3) ? 0 : n3 || "truecolor" === i3 || "24bit" === i3 || "xterm-kitty" === r3 ? 3 : /-256(colou?r)?$/i.test(r3) ? 2 : /^screen|^tmux|^xterm|^vt[1-5][0-9]([0-9])?|^ansi|color|cygwin|linux|mintty|rxvt/i.test(r3) ? 1 : 3;
|
|
3490
|
+
})(u2, O2, s2)), _2 && 0 === a2 ? 3 : a2);
|
|
3507
3491
|
})();
|
|
3508
|
-
var
|
|
3509
|
-
var
|
|
3510
|
-
var
|
|
3492
|
+
var c = s > 0;
|
|
3493
|
+
var u = { open: "", close: "" };
|
|
3494
|
+
var a = c ? (e2, t2) => ({ open: `\x1B[${e2}m`, close: `\x1B[${t2}m` }) : () => u;
|
|
3511
3495
|
var p = 39;
|
|
3512
3496
|
var g = 49;
|
|
3513
|
-
var
|
|
3514
|
-
var
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
var m = (e2) => (t2, n2, r2) => e2(i(t2, n2, r2));
|
|
3518
|
-
var x = (e2) => (t2) => {
|
|
3519
|
-
let [n2, r2, i2] = o(t2);
|
|
3520
|
-
return e2(n2, r2, i2);
|
|
3497
|
+
var f = (e2) => (t2, n2, r2) => e2(i(t2, n2, r2));
|
|
3498
|
+
var d = (e2) => (t2) => {
|
|
3499
|
+
let [n2, i2, o2] = r(t2);
|
|
3500
|
+
return e2(n2, i2, o2);
|
|
3521
3501
|
};
|
|
3522
|
-
|
|
3523
|
-
var
|
|
3524
|
-
var
|
|
3525
|
-
var
|
|
3526
|
-
|
|
3527
|
-
var
|
|
3528
|
-
var
|
|
3529
|
-
|
|
3530
|
-
var
|
|
3531
|
-
var
|
|
3532
|
-
var
|
|
3533
|
-
|
|
3534
|
-
var
|
|
3535
|
-
var
|
|
3536
|
-
var
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3502
|
+
var b = (e2) => a(`38;5;${e2}`, p);
|
|
3503
|
+
var _ = (e2) => a(`48;5;${e2}`, g);
|
|
3504
|
+
var O = (e2, t2, n2) => a(`38;2;${e2};${t2};${n2}`, p);
|
|
3505
|
+
var y = (e2, t2, n2) => a(`48;2;${e2};${t2};${n2}`, g);
|
|
3506
|
+
1 === s ? (b = (e2) => a(o(e2), p), _ = (e2) => a(o(e2) + 10, g), O = (e2, t2, n2) => a(l(e2, t2, n2), p), y = (e2, t2, n2) => a(l(e2, t2, n2) + 10, g)) : 2 === s && (O = f(b), y = f(_));
|
|
3507
|
+
var m;
|
|
3508
|
+
var x;
|
|
3509
|
+
var h = { ansi256: b, bgAnsi256: _, fg: b, bg: _, rgb: O, bgRgb: y, hex: d(O), bgHex: d(y), visible: u, reset: a(0, 0), inverse: a(7, 27), hidden: a(8, 28), bold: a(1, 22), dim: a(2, 22), italic: a(3, 23), underline: a(4, 24), strikethrough: a(9, 29), strike: a(9, 29), grey: a(90, p), gray: a(90, p), bgGrey: a(100, g), bgGray: a(100, g) };
|
|
3510
|
+
var T = ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"];
|
|
3511
|
+
var $ = "Bright";
|
|
3512
|
+
var I = 30;
|
|
3513
|
+
for (m of T) x = "bg" + m[0].toUpperCase() + m.slice(1), h[m] = a(I, p), h[m + $] = a(I + 60, p), h[x] = a(I + 10, g), h[x + $] = a(I + 70, g), I++;
|
|
3514
|
+
var { defineProperty: R, defineProperties: v, setPrototypeOf: C } = Object;
|
|
3515
|
+
var E = /[][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
|
|
3516
|
+
var w = /(\r?\n)/g;
|
|
3517
|
+
var M = {};
|
|
3518
|
+
var N = ({ _p: e2 }, { open: t2, close: n2 }) => {
|
|
3519
|
+
const r2 = (e3, ...t3) => {
|
|
3520
|
+
if (!e3) return "";
|
|
3521
|
+
let n3 = r2._p, { _a: i3, _b: o3 } = n3, l2 = null != e3.raw ? String.raw(e3, ...t3) : "" + e3;
|
|
3522
|
+
if (l2.includes("\x1B")) for (; null != n3; ) {
|
|
3523
|
+
let e4 = n3.close, t4 = e4.length;
|
|
3524
|
+
if (t4) {
|
|
3525
|
+
let r3, i4 = 0, o4 = "";
|
|
3526
|
+
for (; ~(r3 = l2.indexOf(e4, i4)); ) o4 += l2.slice(i4, r3) + n3.open, i4 = r3 + t4;
|
|
3527
|
+
i4 && (l2 = o4 + l2.slice(i4));
|
|
3528
|
+
}
|
|
3529
|
+
n3 = n3._p;
|
|
3530
|
+
}
|
|
3531
|
+
return l2.includes("\n") && (l2 = l2.replace(w, o3 + "$1" + i3)), i3 + l2 + o3;
|
|
3532
|
+
};
|
|
3533
|
+
let i2 = t2, o2 = n2;
|
|
3534
|
+
return null != e2 && (i2 = e2._a + t2, o2 = n2 + e2._b), C(r2, P), r2._p = { open: t2, close: n2, _a: i2, _b: o2, _p: e2 }, r2.open = i2, r2.close = o2, r2;
|
|
3546
3535
|
};
|
|
3547
|
-
var
|
|
3548
|
-
const e2 = (e3) =>
|
|
3549
|
-
return e2.isSupported = () =>
|
|
3536
|
+
var A = function() {
|
|
3537
|
+
const e2 = (e3) => "" + e3;
|
|
3538
|
+
return e2.isSupported = () => c, e2.strip = (e3) => e3.replace(E, ""), e2.extend = (t2) => {
|
|
3550
3539
|
for (let e3 in t2) {
|
|
3551
|
-
let n2 = t2[e3],
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3540
|
+
let n2 = t2[e3], i2 = typeof n2, o2 = "string" === i2 ? O(...r(n2)) : n2;
|
|
3541
|
+
M[e3] = "function" === i2 ? { get() {
|
|
3542
|
+
return (...e4) => N(this, n2(...e4));
|
|
3543
|
+
} } : { get() {
|
|
3544
|
+
let t3 = N(this, o2);
|
|
3545
|
+
return R(this, e3, { value: t3 }), t3;
|
|
3555
3546
|
} };
|
|
3556
3547
|
}
|
|
3557
|
-
|
|
3558
|
-
}, e2.extend(
|
|
3548
|
+
P = v({}, M), C(e2, P);
|
|
3549
|
+
}, e2.extend(h), e2;
|
|
3559
3550
|
};
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
var G;
|
|
3564
|
-
P.ansi256 = P.fg, P.bgAnsi256 = P.bg;
|
|
3565
|
-
var L = new k();
|
|
3566
|
-
module.exports = L, module.exports.Ansis = k;
|
|
3551
|
+
var P;
|
|
3552
|
+
var S = new A();
|
|
3553
|
+
module.exports = S, module.exports.Ansis = A;
|
|
3567
3554
|
}
|
|
3568
3555
|
});
|
|
3569
3556
|
|
|
@@ -6208,6 +6195,7 @@ var require_typescript = __commonJS({
|
|
|
6208
6195
|
trace: () => trace,
|
|
6209
6196
|
tracing: () => tracing,
|
|
6210
6197
|
tracingEnabled: () => tracingEnabled,
|
|
6198
|
+
transferSourceFileChildren: () => transferSourceFileChildren,
|
|
6211
6199
|
transform: () => transform,
|
|
6212
6200
|
transformClassFields: () => transformClassFields,
|
|
6213
6201
|
transformDeclarations: () => transformDeclarations,
|
|
@@ -6318,7 +6306,7 @@ var require_typescript = __commonJS({
|
|
|
6318
6306
|
});
|
|
6319
6307
|
module2.exports = __toCommonJS(typescript_exports);
|
|
6320
6308
|
var versionMajorMinor = "5.5";
|
|
6321
|
-
var version = "5.5.
|
|
6309
|
+
var version = "5.5.4";
|
|
6322
6310
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
6323
6311
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
6324
6312
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -9191,10 +9179,12 @@ ${lanes.join("\n")}
|
|
|
9191
9179
|
if (isNodeLikeSystem()) {
|
|
9192
9180
|
try {
|
|
9193
9181
|
const { performance: performance2 } = __require("perf_hooks");
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9182
|
+
if (performance2) {
|
|
9183
|
+
return {
|
|
9184
|
+
shouldWriteNativeEvents: false,
|
|
9185
|
+
performance: performance2
|
|
9186
|
+
};
|
|
9187
|
+
}
|
|
9198
9188
|
} catch {
|
|
9199
9189
|
}
|
|
9200
9190
|
}
|
|
@@ -10339,6 +10329,7 @@ ${lanes.join("\n")}
|
|
|
10339
10329
|
var EmitOnly = /* @__PURE__ */ ((EmitOnly4) => {
|
|
10340
10330
|
EmitOnly4[EmitOnly4["Js"] = 0] = "Js";
|
|
10341
10331
|
EmitOnly4[EmitOnly4["Dts"] = 1] = "Dts";
|
|
10332
|
+
EmitOnly4[EmitOnly4["BuilderSignature"] = 2] = "BuilderSignature";
|
|
10342
10333
|
return EmitOnly4;
|
|
10343
10334
|
})(EmitOnly || {});
|
|
10344
10335
|
var StructureIsReused = /* @__PURE__ */ ((StructureIsReused2) => {
|
|
@@ -16524,6 +16515,7 @@ ${lanes.join("\n")}
|
|
|
16524
16515
|
var tokenFlags;
|
|
16525
16516
|
var commentDirectives;
|
|
16526
16517
|
var skipJsDocLeadingAsterisks = 0;
|
|
16518
|
+
var asteriskSeen = false;
|
|
16527
16519
|
var scriptKind = 0;
|
|
16528
16520
|
var jsDocParsingMode = 0;
|
|
16529
16521
|
setText(text, start, length2);
|
|
@@ -16575,6 +16567,7 @@ ${lanes.join("\n")}
|
|
|
16575
16567
|
resetTokenState,
|
|
16576
16568
|
setTextPos: resetTokenState,
|
|
16577
16569
|
setSkipJsDocLeadingAsterisks,
|
|
16570
|
+
hasLeadingAsterisks,
|
|
16578
16571
|
tryScan,
|
|
16579
16572
|
lookAhead,
|
|
16580
16573
|
scanRange
|
|
@@ -17184,7 +17177,7 @@ ${lanes.join("\n")}
|
|
|
17184
17177
|
function scan() {
|
|
17185
17178
|
fullStartPos = pos;
|
|
17186
17179
|
tokenFlags = 0;
|
|
17187
|
-
|
|
17180
|
+
asteriskSeen = false;
|
|
17188
17181
|
while (true) {
|
|
17189
17182
|
tokenStart = pos;
|
|
17190
17183
|
if (pos >= end) {
|
|
@@ -19059,6 +19052,9 @@ ${lanes.join("\n")}
|
|
|
19059
19052
|
function setSkipJsDocLeadingAsterisks(skip) {
|
|
19060
19053
|
skipJsDocLeadingAsterisks += skip ? 1 : -1;
|
|
19061
19054
|
}
|
|
19055
|
+
function hasLeadingAsterisks() {
|
|
19056
|
+
return asteriskSeen;
|
|
19057
|
+
}
|
|
19062
19058
|
}
|
|
19063
19059
|
function codePointAt(s, i) {
|
|
19064
19060
|
return s.codePointAt(i);
|
|
@@ -21021,7 +21017,7 @@ ${lanes.join("\n")}
|
|
|
21021
21017
|
}
|
|
21022
21018
|
if (isJSDocNode(node) || node.kind === 12) {
|
|
21023
21019
|
return skipTrivia(
|
|
21024
|
-
(sourceFile
|
|
21020
|
+
(sourceFile ?? getSourceFileOfNode(node)).text,
|
|
21025
21021
|
node.pos,
|
|
21026
21022
|
/*stopAfterLineBreak*/
|
|
21027
21023
|
false,
|
|
@@ -21033,13 +21029,14 @@ ${lanes.join("\n")}
|
|
|
21033
21029
|
return getTokenPosOfNode(node.jsDoc[0], sourceFile);
|
|
21034
21030
|
}
|
|
21035
21031
|
if (node.kind === 352) {
|
|
21036
|
-
|
|
21032
|
+
sourceFile ?? (sourceFile = getSourceFileOfNode(node));
|
|
21033
|
+
const first2 = firstOrUndefined(getNodeChildren(node, sourceFile));
|
|
21037
21034
|
if (first2) {
|
|
21038
21035
|
return getTokenPosOfNode(first2, sourceFile, includeJsDoc);
|
|
21039
21036
|
}
|
|
21040
21037
|
}
|
|
21041
21038
|
return skipTrivia(
|
|
21042
|
-
(sourceFile
|
|
21039
|
+
(sourceFile ?? getSourceFileOfNode(node)).text,
|
|
21043
21040
|
node.pos,
|
|
21044
21041
|
/*stopAfterLineBreak*/
|
|
21045
21042
|
false,
|
|
@@ -24642,11 +24639,11 @@ ${lanes.join("\n")}
|
|
|
24642
24639
|
return emitOutputFilePathWithoutExtension + extension;
|
|
24643
24640
|
}
|
|
24644
24641
|
function getDeclarationEmitOutputFilePath(fileName, host) {
|
|
24645
|
-
return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host
|
|
24642
|
+
return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host);
|
|
24646
24643
|
}
|
|
24647
|
-
function getDeclarationEmitOutputFilePathWorker(fileName, options,
|
|
24644
|
+
function getDeclarationEmitOutputFilePathWorker(fileName, options, host) {
|
|
24648
24645
|
const outputDir = options.declarationDir || options.outDir;
|
|
24649
|
-
const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir,
|
|
24646
|
+
const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName;
|
|
24650
24647
|
const declarationExtension = getDeclarationEmitExtensionForPath(path);
|
|
24651
24648
|
return removeFileExtension(path) + declarationExtension;
|
|
24652
24649
|
}
|
|
@@ -33232,7 +33229,7 @@ ${lanes.join("\n")}
|
|
|
33232
33229
|
352
|
|
33233
33230
|
/* SyntaxList */
|
|
33234
33231
|
);
|
|
33235
|
-
|
|
33232
|
+
node._children = children;
|
|
33236
33233
|
return node;
|
|
33237
33234
|
}
|
|
33238
33235
|
function createNotEmittedStatement(original) {
|
|
@@ -36169,17 +36166,43 @@ ${lanes.join("\n")}
|
|
|
36169
36166
|
function isSyntaxList(n) {
|
|
36170
36167
|
return n.kind === 352;
|
|
36171
36168
|
}
|
|
36172
|
-
var
|
|
36173
|
-
function getNodeChildren(node) {
|
|
36174
|
-
|
|
36175
|
-
|
|
36169
|
+
var sourceFileToNodeChildren = /* @__PURE__ */ new WeakMap();
|
|
36170
|
+
function getNodeChildren(node, sourceFile) {
|
|
36171
|
+
var _a;
|
|
36172
|
+
const kind = node.kind;
|
|
36173
|
+
if (!isNodeKind(kind)) {
|
|
36174
|
+
return emptyArray;
|
|
36175
|
+
}
|
|
36176
|
+
if (kind === 352) {
|
|
36177
|
+
return node._children;
|
|
36178
|
+
}
|
|
36179
|
+
return (_a = sourceFileToNodeChildren.get(sourceFile)) == null ? void 0 : _a.get(node);
|
|
36176
36180
|
}
|
|
36177
|
-
function setNodeChildren(node, children) {
|
|
36178
|
-
|
|
36181
|
+
function setNodeChildren(node, sourceFile, children) {
|
|
36182
|
+
if (node.kind === 352) {
|
|
36183
|
+
Debug.fail("Should not need to re-set the children of a SyntaxList.");
|
|
36184
|
+
}
|
|
36185
|
+
let map2 = sourceFileToNodeChildren.get(sourceFile);
|
|
36186
|
+
if (map2 === void 0) {
|
|
36187
|
+
map2 = /* @__PURE__ */ new WeakMap();
|
|
36188
|
+
sourceFileToNodeChildren.set(sourceFile, map2);
|
|
36189
|
+
}
|
|
36190
|
+
map2.set(node, children);
|
|
36179
36191
|
return children;
|
|
36180
36192
|
}
|
|
36181
|
-
function unsetNodeChildren(node) {
|
|
36182
|
-
|
|
36193
|
+
function unsetNodeChildren(node, origSourceFile) {
|
|
36194
|
+
var _a;
|
|
36195
|
+
if (node.kind === 352) {
|
|
36196
|
+
Debug.fail("Did not expect to unset the children of a SyntaxList.");
|
|
36197
|
+
}
|
|
36198
|
+
(_a = sourceFileToNodeChildren.get(origSourceFile)) == null ? void 0 : _a.delete(node);
|
|
36199
|
+
}
|
|
36200
|
+
function transferSourceFileChildren(sourceFile, targetSourceFile) {
|
|
36201
|
+
const map2 = sourceFileToNodeChildren.get(sourceFile);
|
|
36202
|
+
if (map2 !== void 0) {
|
|
36203
|
+
sourceFileToNodeChildren.delete(sourceFile);
|
|
36204
|
+
sourceFileToNodeChildren.set(targetSourceFile, map2);
|
|
36205
|
+
}
|
|
36183
36206
|
}
|
|
36184
36207
|
function createEmptyExports(factory2) {
|
|
36185
36208
|
return factory2.createExportDeclaration(
|
|
@@ -39487,7 +39510,7 @@ ${lanes.join("\n")}
|
|
|
39487
39510
|
function createIdentifier(isIdentifier3, diagnosticMessage, privateIdentifierDiagnosticMessage) {
|
|
39488
39511
|
if (isIdentifier3) {
|
|
39489
39512
|
identifierCount++;
|
|
39490
|
-
const pos = getNodePos();
|
|
39513
|
+
const pos = scanner2.hasLeadingAsterisks() ? scanner2.getTokenStart() : getNodePos();
|
|
39491
39514
|
const originalKeywordKind = token();
|
|
39492
39515
|
const text = internIdentifier(scanner2.getTokenValue());
|
|
39493
39516
|
const hasExtendedUnicodeEscape = scanner2.hasExtendedUnicodeEscape();
|
|
@@ -46328,6 +46351,7 @@ ${lanes.join("\n")}
|
|
|
46328
46351
|
aggressiveChecks
|
|
46329
46352
|
);
|
|
46330
46353
|
result.impliedNodeFormat = sourceFile.impliedNodeFormat;
|
|
46354
|
+
transferSourceFileChildren(sourceFile, result);
|
|
46331
46355
|
return result;
|
|
46332
46356
|
}
|
|
46333
46357
|
IncrementalParser2.updateSourceFile = updateSourceFile2;
|
|
@@ -46363,7 +46387,7 @@ ${lanes.join("\n")}
|
|
|
46363
46387
|
}
|
|
46364
46388
|
}
|
|
46365
46389
|
}
|
|
46366
|
-
function moveElementEntirelyPastChangeRange(element, isArray2, delta, oldText, newText, aggressiveChecks) {
|
|
46390
|
+
function moveElementEntirelyPastChangeRange(element, origSourceFile, isArray2, delta, oldText, newText, aggressiveChecks) {
|
|
46367
46391
|
if (isArray2) {
|
|
46368
46392
|
visitArray2(element);
|
|
46369
46393
|
} else {
|
|
@@ -46375,7 +46399,7 @@ ${lanes.join("\n")}
|
|
|
46375
46399
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
46376
46400
|
text = oldText.substring(node.pos, node.end);
|
|
46377
46401
|
}
|
|
46378
|
-
unsetNodeChildren(node);
|
|
46402
|
+
unsetNodeChildren(node, origSourceFile);
|
|
46379
46403
|
setTextRangePosEnd(node, node.pos + delta, node.end + delta);
|
|
46380
46404
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
46381
46405
|
Debug.assert(text === newText.substring(node.pos, node.end));
|
|
@@ -46449,6 +46473,7 @@ ${lanes.join("\n")}
|
|
|
46449
46473
|
if (child.pos > changeRangeOldEnd) {
|
|
46450
46474
|
moveElementEntirelyPastChangeRange(
|
|
46451
46475
|
child,
|
|
46476
|
+
sourceFile,
|
|
46452
46477
|
/*isArray*/
|
|
46453
46478
|
false,
|
|
46454
46479
|
delta,
|
|
@@ -46461,7 +46486,7 @@ ${lanes.join("\n")}
|
|
|
46461
46486
|
const fullEnd = child.end;
|
|
46462
46487
|
if (fullEnd >= changeStart) {
|
|
46463
46488
|
markAsIntersectingIncrementalChange(child);
|
|
46464
|
-
unsetNodeChildren(child);
|
|
46489
|
+
unsetNodeChildren(child, sourceFile);
|
|
46465
46490
|
adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);
|
|
46466
46491
|
forEachChild(child, visitNode3, visitArray2);
|
|
46467
46492
|
if (hasJSDocNodes(child)) {
|
|
@@ -46479,6 +46504,7 @@ ${lanes.join("\n")}
|
|
|
46479
46504
|
if (array.pos > changeRangeOldEnd) {
|
|
46480
46505
|
moveElementEntirelyPastChangeRange(
|
|
46481
46506
|
array,
|
|
46507
|
+
sourceFile,
|
|
46482
46508
|
/*isArray*/
|
|
46483
46509
|
true,
|
|
46484
46510
|
delta,
|
|
@@ -47191,7 +47217,6 @@ ${lanes.join("\n")}
|
|
|
47191
47217
|
affectsBuildInfo: true,
|
|
47192
47218
|
showInSimplifiedHelpView: true,
|
|
47193
47219
|
category: Diagnostics.Emit,
|
|
47194
|
-
transpileOptionValue: void 0,
|
|
47195
47220
|
defaultValueDescription: false,
|
|
47196
47221
|
description: Diagnostics.Create_sourcemaps_for_d_ts_files
|
|
47197
47222
|
},
|
|
@@ -47520,6 +47545,7 @@ ${lanes.join("\n")}
|
|
|
47520
47545
|
type: "boolean",
|
|
47521
47546
|
affectsEmit: true,
|
|
47522
47547
|
affectsBuildInfo: true,
|
|
47548
|
+
affectsSourceFile: true,
|
|
47523
47549
|
category: Diagnostics.Emit,
|
|
47524
47550
|
description: Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,
|
|
47525
47551
|
defaultValueDescription: false
|
|
@@ -47987,6 +48013,7 @@ ${lanes.join("\n")}
|
|
|
47987
48013
|
affectsEmit: true,
|
|
47988
48014
|
affectsBuildInfo: true,
|
|
47989
48015
|
affectsModuleResolution: true,
|
|
48016
|
+
affectsSourceFile: true,
|
|
47990
48017
|
category: Diagnostics.Language_and_Environment,
|
|
47991
48018
|
description: Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,
|
|
47992
48019
|
defaultValueDescription: "react"
|
|
@@ -57619,7 +57646,8 @@ ${lanes.join("\n")}
|
|
|
57619
57646
|
isUndefinedIdentifierExpression(node) {
|
|
57620
57647
|
Debug.assert(isExpressionNode(node));
|
|
57621
57648
|
return getSymbolAtLocation(node) === undefinedSymbol;
|
|
57622
|
-
}
|
|
57649
|
+
},
|
|
57650
|
+
isDefinitelyReferenceToGlobalSymbolObject
|
|
57623
57651
|
});
|
|
57624
57652
|
var evaluate = createEvaluator({
|
|
57625
57653
|
evaluateElementAccessExpression,
|
|
@@ -58484,6 +58512,7 @@ ${lanes.join("\n")}
|
|
|
58484
58512
|
};
|
|
58485
58513
|
var amalgamatedDuplicates;
|
|
58486
58514
|
var reverseMappedCache = /* @__PURE__ */ new Map();
|
|
58515
|
+
var reverseHomomorphicMappedCache = /* @__PURE__ */ new Map();
|
|
58487
58516
|
var ambientModulesCache;
|
|
58488
58517
|
var patternAmbientModules;
|
|
58489
58518
|
var patternAmbientModuleAugmentations;
|
|
@@ -58611,6 +58640,21 @@ ${lanes.join("\n")}
|
|
|
58611
58640
|
];
|
|
58612
58641
|
initializeTypeChecker();
|
|
58613
58642
|
return checker;
|
|
58643
|
+
function isDefinitelyReferenceToGlobalSymbolObject(node) {
|
|
58644
|
+
if (!isPropertyAccessExpression(node)) return false;
|
|
58645
|
+
if (!isIdentifier(node.name)) return false;
|
|
58646
|
+
if (!isPropertyAccessExpression(node.expression) && !isIdentifier(node.expression)) return false;
|
|
58647
|
+
if (isIdentifier(node.expression)) {
|
|
58648
|
+
return idText(node.expression) === "Symbol" && getResolvedSymbol(node.expression) === (getGlobalSymbol(
|
|
58649
|
+
"Symbol",
|
|
58650
|
+
111551 | 1048576,
|
|
58651
|
+
/*diagnostic*/
|
|
58652
|
+
void 0
|
|
58653
|
+
) || unknownSymbol);
|
|
58654
|
+
}
|
|
58655
|
+
if (!isIdentifier(node.expression.expression)) return false;
|
|
58656
|
+
return idText(node.expression.name) === "Symbol" && idText(node.expression.expression) === "globalThis" && getResolvedSymbol(node.expression.expression) === globalThisSymbol;
|
|
58657
|
+
}
|
|
58614
58658
|
function getCachedType(key) {
|
|
58615
58659
|
return key ? cachedTypes.get(key) : void 0;
|
|
58616
58660
|
}
|
|
@@ -62000,11 +62044,11 @@ ${lanes.join("\n")}
|
|
|
62000
62044
|
function tryReuseExistingTypeNode(context, typeNode, type, host2, addUndefined) {
|
|
62001
62045
|
const originalType = type;
|
|
62002
62046
|
if (addUndefined) {
|
|
62003
|
-
type = getOptionalType(type);
|
|
62047
|
+
type = getOptionalType(type, !isParameter(host2));
|
|
62004
62048
|
}
|
|
62005
62049
|
const clone2 = tryReuseExistingNonParameterTypeNode(context, typeNode, type, host2);
|
|
62006
62050
|
if (clone2) {
|
|
62007
|
-
if (addUndefined && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768))) {
|
|
62051
|
+
if (addUndefined && containsNonMissingUndefinedType(type) && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768))) {
|
|
62008
62052
|
return factory.createUnionTypeNode([clone2, factory.createKeywordTypeNode(
|
|
62009
62053
|
157
|
|
62010
62054
|
/* UndefinedKeyword */
|
|
@@ -62990,7 +63034,21 @@ ${lanes.join("\n")}
|
|
|
62990
63034
|
}
|
|
62991
63035
|
function shouldUsePlaceholderForProperty(propertySymbol, context) {
|
|
62992
63036
|
var _a;
|
|
62993
|
-
|
|
63037
|
+
const depth = 3;
|
|
63038
|
+
return !!(getCheckFlags(propertySymbol) & 8192) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16) || isDeeplyNestedReverseMappedTypeProperty());
|
|
63039
|
+
function isDeeplyNestedReverseMappedTypeProperty() {
|
|
63040
|
+
var _a2;
|
|
63041
|
+
if ((((_a2 = context.reverseMappedStack) == null ? void 0 : _a2.length) ?? 0) < depth) {
|
|
63042
|
+
return false;
|
|
63043
|
+
}
|
|
63044
|
+
for (let i = 0; i < depth; i++) {
|
|
63045
|
+
const prop = context.reverseMappedStack[context.reverseMappedStack.length - 1 - i];
|
|
63046
|
+
if (prop.links.mappedType.symbol !== propertySymbol.links.mappedType.symbol) {
|
|
63047
|
+
return false;
|
|
63048
|
+
}
|
|
63049
|
+
}
|
|
63050
|
+
return true;
|
|
63051
|
+
}
|
|
62994
63052
|
}
|
|
62995
63053
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
62996
63054
|
var _a;
|
|
@@ -64194,8 +64252,8 @@ ${lanes.join("\n")}
|
|
|
64194
64252
|
return enclosingDeclaration;
|
|
64195
64253
|
}
|
|
64196
64254
|
function serializeTypeForDeclaration(context, declaration, type, symbol) {
|
|
64197
|
-
var _a;
|
|
64198
|
-
const
|
|
64255
|
+
var _a, _b;
|
|
64256
|
+
const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration);
|
|
64199
64257
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
64200
64258
|
const oldFlags = context.flags;
|
|
64201
64259
|
if (declaration && hasInferredType(declaration) && !(context.flags & -2147483648)) {
|
|
@@ -64206,6 +64264,7 @@ ${lanes.join("\n")}
|
|
|
64206
64264
|
const declWithExistingAnnotation = declaration && getNonlocalEffectiveTypeAnnotationNode(declaration) ? declaration : getDeclarationWithTypeAnnotation(symbol);
|
|
64207
64265
|
if (declWithExistingAnnotation && !isFunctionLikeDeclaration(declWithExistingAnnotation) && !isGetAccessorDeclaration(declWithExistingAnnotation)) {
|
|
64208
64266
|
const existing = getNonlocalEffectiveTypeAnnotationNode(declWithExistingAnnotation);
|
|
64267
|
+
const addUndefined = addUndefinedForParameter || !!(symbol.flags & 4 && symbol.flags & 16777216 && isOptionalDeclaration(declWithExistingAnnotation) && ((_a = symbol.links) == null ? void 0 : _a.mappedType) && containsNonMissingUndefinedType(type));
|
|
64209
64268
|
const result2 = !isTypePredicateNode(existing) && tryReuseExistingTypeNode(context, existing, type, declWithExistingAnnotation, addUndefined);
|
|
64210
64269
|
if (result2) {
|
|
64211
64270
|
context.flags = oldFlags;
|
|
@@ -64216,9 +64275,9 @@ ${lanes.join("\n")}
|
|
|
64216
64275
|
if (type.flags & 8192 && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)))) {
|
|
64217
64276
|
context.flags |= 1048576;
|
|
64218
64277
|
}
|
|
64219
|
-
const decl = declaration ?? symbol.valueDeclaration ?? ((
|
|
64278
|
+
const decl = declaration ?? symbol.valueDeclaration ?? ((_b = symbol.declarations) == null ? void 0 : _b[0]);
|
|
64220
64279
|
const expr = decl && isDeclarationWithPossibleInnerTypeNodeReuse(decl) ? getPossibleTypeNodeReuseExpression(decl) : void 0;
|
|
64221
|
-
const result = expressionOrTypeToTypeNode(context, expr, type,
|
|
64280
|
+
const result = expressionOrTypeToTypeNode(context, expr, type, addUndefinedForParameter);
|
|
64222
64281
|
context.flags = oldFlags;
|
|
64223
64282
|
return result;
|
|
64224
64283
|
}
|
|
@@ -64260,9 +64319,9 @@ ${lanes.join("\n")}
|
|
|
64260
64319
|
const typePredicate = getTypePredicateOfSignature(signature);
|
|
64261
64320
|
const type = getReturnTypeOfSignature(signature);
|
|
64262
64321
|
if (context.enclosingDeclaration && (!isErrorType(type) || context.flags & 1) && signature.declaration && !nodeIsSynthesized(signature.declaration)) {
|
|
64263
|
-
const annotation =
|
|
64264
|
-
if (annotation
|
|
64265
|
-
const result =
|
|
64322
|
+
const annotation = getNonlocalEffectiveReturnTypeAnnotationNode(signature.declaration);
|
|
64323
|
+
if (annotation) {
|
|
64324
|
+
const result = tryReuseExistingTypeNode(context, annotation, type, context.enclosingDeclaration);
|
|
64266
64325
|
if (result) {
|
|
64267
64326
|
return result;
|
|
64268
64327
|
}
|
|
@@ -64788,7 +64847,10 @@ ${lanes.join("\n")}
|
|
|
64788
64847
|
);
|
|
64789
64848
|
}
|
|
64790
64849
|
if (isNamedDeclaration(node) && node.name.kind === 167 && !isLateBindableName(node.name)) {
|
|
64791
|
-
if (!
|
|
64850
|
+
if (!hasDynamicName(node)) {
|
|
64851
|
+
return visitEachChild2(node, visitExistingNodeTreeSymbols);
|
|
64852
|
+
}
|
|
64853
|
+
if (!(context.flags & 1 && isEntityNameExpression(node.name.expression) && checkComputedPropertyName(node.name).flags & 1)) {
|
|
64792
64854
|
return void 0;
|
|
64793
64855
|
}
|
|
64794
64856
|
}
|
|
@@ -64921,7 +64983,7 @@ ${lanes.join("\n")}
|
|
|
64921
64983
|
if (result) {
|
|
64922
64984
|
if (result.pos !== -1 || result.end !== -1) {
|
|
64923
64985
|
if (result === nodes) {
|
|
64924
|
-
result = factory.createNodeArray(nodes, nodes.hasTrailingComma);
|
|
64986
|
+
result = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma);
|
|
64925
64987
|
}
|
|
64926
64988
|
setTextRangePosEnd(result, -1, -1);
|
|
64927
64989
|
}
|
|
@@ -71346,7 +71408,7 @@ ${lanes.join("\n")}
|
|
|
71346
71408
|
);
|
|
71347
71409
|
}
|
|
71348
71410
|
function createSignatureTypeMapper(signature, typeArguments) {
|
|
71349
|
-
return createTypeMapper(signature.typeParameters, typeArguments);
|
|
71411
|
+
return createTypeMapper(sameMap(signature.typeParameters, (tp) => tp.mapper ? instantiateType(tp, tp.mapper) : tp), typeArguments);
|
|
71350
71412
|
}
|
|
71351
71413
|
function getErasedSignature(signature) {
|
|
71352
71414
|
return signature.typeParameters ? signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) : signature;
|
|
@@ -76184,6 +76246,10 @@ ${lanes.join("\n")}
|
|
|
76184
76246
|
function containsUndefinedType(type) {
|
|
76185
76247
|
return !!((type.flags & 1048576 ? type.types[0] : type).flags & 32768);
|
|
76186
76248
|
}
|
|
76249
|
+
function containsNonMissingUndefinedType(type) {
|
|
76250
|
+
const candidate = type.flags & 1048576 ? type.types[0] : type;
|
|
76251
|
+
return !!(candidate.flags & 32768) && candidate !== missingType;
|
|
76252
|
+
}
|
|
76187
76253
|
function isStringIndexSignatureOnlyType(type) {
|
|
76188
76254
|
return type.flags & 524288 && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) || type.flags & 3145728 && every(type.types, isStringIndexSignatureOnlyType) || false;
|
|
76189
76255
|
}
|
|
@@ -80062,11 +80128,11 @@ ${lanes.join("\n")}
|
|
|
80062
80128
|
}
|
|
80063
80129
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
80064
80130
|
const cacheKey = source.id + "," + target.id + "," + constraint.id;
|
|
80065
|
-
if (
|
|
80066
|
-
return
|
|
80131
|
+
if (reverseHomomorphicMappedCache.has(cacheKey)) {
|
|
80132
|
+
return reverseHomomorphicMappedCache.get(cacheKey);
|
|
80067
80133
|
}
|
|
80068
80134
|
const type = createReverseMappedType(source, target, constraint);
|
|
80069
|
-
|
|
80135
|
+
reverseHomomorphicMappedCache.set(cacheKey, type);
|
|
80070
80136
|
return type;
|
|
80071
80137
|
}
|
|
80072
80138
|
function isPartiallyInferableType(type) {
|
|
@@ -83618,7 +83684,7 @@ ${lanes.join("\n")}
|
|
|
83618
83684
|
if (!canCollectSymbolAliasAccessabilityData) {
|
|
83619
83685
|
return;
|
|
83620
83686
|
}
|
|
83621
|
-
if (location.flags & 33554432) {
|
|
83687
|
+
if (location.flags & 33554432 && !isPropertySignature(location) && !isPropertyDeclaration(location)) {
|
|
83622
83688
|
return;
|
|
83623
83689
|
}
|
|
83624
83690
|
switch (hint) {
|
|
@@ -86812,11 +86878,7 @@ ${lanes.join("\n")}
|
|
|
86812
86878
|
checkGrammarJsxElement(node);
|
|
86813
86879
|
}
|
|
86814
86880
|
checkJsxPreconditions(node);
|
|
86815
|
-
|
|
86816
|
-
node,
|
|
86817
|
-
4
|
|
86818
|
-
/* Jsx */
|
|
86819
|
-
);
|
|
86881
|
+
markJsxAliasReferenced(node);
|
|
86820
86882
|
if (isNodeOpeningLikeElement) {
|
|
86821
86883
|
const jsxOpeningLikeNode = node;
|
|
86822
86884
|
const sig = getResolvedSignature(jsxOpeningLikeNode);
|
|
@@ -100590,15 +100652,14 @@ ${lanes.join("\n")}
|
|
|
100590
100652
|
function checkChildIdentifiers(node2) {
|
|
100591
100653
|
forEachNodeRecursively(node2, checkIdentifiers);
|
|
100592
100654
|
}
|
|
100655
|
+
function isExpressionNodeOrShorthandPropertyAssignmentName(node2) {
|
|
100656
|
+
return isExpressionNode(node2) || isShorthandPropertyAssignment(node2.parent) && (node2.parent.objectAssignmentInitializer ?? node2.parent.name) === node2;
|
|
100657
|
+
}
|
|
100593
100658
|
function checkSingleIdentifier(node2) {
|
|
100594
100659
|
const nodeLinks2 = getNodeLinks(node2);
|
|
100595
100660
|
nodeLinks2.calculatedFlags |= 536870912 | 16384 | 32768;
|
|
100596
|
-
if (isIdentifier(node2) &&
|
|
100597
|
-
const s =
|
|
100598
|
-
node2,
|
|
100599
|
-
/*ignoreErrors*/
|
|
100600
|
-
true
|
|
100601
|
-
);
|
|
100661
|
+
if (isIdentifier(node2) && isExpressionNodeOrShorthandPropertyAssignmentName(node2) && !(isPropertyAccessExpression(node2.parent) && node2.parent.name === node2)) {
|
|
100662
|
+
const s = getResolvedSymbol(node2);
|
|
100602
100663
|
if (s && s !== unknownSymbol) {
|
|
100603
100664
|
checkIdentifierCalculateNodeCheckFlags(node2, s);
|
|
100604
100665
|
}
|
|
@@ -101115,7 +101176,8 @@ ${lanes.join("\n")}
|
|
|
101115
101176
|
resolveExternalModuleSymbol(sym);
|
|
101116
101177
|
return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker);
|
|
101117
101178
|
},
|
|
101118
|
-
isImportRequiredByAugmentation
|
|
101179
|
+
isImportRequiredByAugmentation,
|
|
101180
|
+
isDefinitelyReferenceToGlobalSymbolObject
|
|
101119
101181
|
};
|
|
101120
101182
|
function isImportRequiredByAugmentation(node) {
|
|
101121
101183
|
const file = getSourceFileOfNode(node);
|
|
@@ -128396,6 +128458,7 @@ ${lanes.join("\n")}
|
|
|
128396
128458
|
}
|
|
128397
128459
|
function reportInferenceFallback(node) {
|
|
128398
128460
|
if (!isolatedDeclarations || isSourceFileJS(currentSourceFile)) return;
|
|
128461
|
+
if (getSourceFileOfNode(node) !== currentSourceFile) return;
|
|
128399
128462
|
if (isVariableDeclaration(node) && resolver.isExpandoFunctionDeclaration(node)) {
|
|
128400
128463
|
reportExpandoFunctionErrors(node);
|
|
128401
128464
|
} else {
|
|
@@ -129055,15 +129118,17 @@ ${lanes.join("\n")}
|
|
|
129055
129118
|
if (isDeclarationAndNotVisible(input)) return;
|
|
129056
129119
|
if (hasDynamicName(input)) {
|
|
129057
129120
|
if (isolatedDeclarations) {
|
|
129058
|
-
if (
|
|
129059
|
-
|
|
129060
|
-
|
|
129061
|
-
|
|
129062
|
-
|
|
129063
|
-
|
|
129064
|
-
|
|
129065
|
-
|
|
129066
|
-
|
|
129121
|
+
if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression)) {
|
|
129122
|
+
if (isClassDeclaration(input.parent) || isObjectLiteralExpression(input.parent)) {
|
|
129123
|
+
context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));
|
|
129124
|
+
return;
|
|
129125
|
+
} else if (
|
|
129126
|
+
// Type declarations just need to double-check that the input computed name is an entity name expression
|
|
129127
|
+
(isInterfaceDeclaration(input.parent) || isTypeLiteralNode(input.parent)) && !isEntityNameExpression(input.name.expression)
|
|
129128
|
+
) {
|
|
129129
|
+
context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));
|
|
129130
|
+
return;
|
|
129131
|
+
}
|
|
129067
129132
|
}
|
|
129068
129133
|
} else if (!resolver.isLateBound(getParseTreeNode(input)) || !isEntityNameExpression(input.name.expression)) {
|
|
129069
129134
|
return;
|
|
@@ -130943,7 +131008,7 @@ ${lanes.join("\n")}
|
|
|
130943
131008
|
noEmitHelpers: true,
|
|
130944
131009
|
module: compilerOptions.module,
|
|
130945
131010
|
target: compilerOptions.target,
|
|
130946
|
-
sourceMap:
|
|
131011
|
+
sourceMap: emitOnly !== 2 && compilerOptions.declarationMap,
|
|
130947
131012
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
130948
131013
|
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
130949
131014
|
onlyPrintJsDocStyle: true,
|
|
@@ -131170,7 +131235,8 @@ ${lanes.join("\n")}
|
|
|
131170
131235
|
getJsxFragmentFactoryEntity: notImplemented,
|
|
131171
131236
|
isBindingCapturedByNode: notImplemented,
|
|
131172
131237
|
getDeclarationStatementsForSourceFile: notImplemented,
|
|
131173
|
-
isImportRequiredByAugmentation: notImplemented
|
|
131238
|
+
isImportRequiredByAugmentation: notImplemented,
|
|
131239
|
+
isDefinitelyReferenceToGlobalSymbolObject: notImplemented
|
|
131174
131240
|
};
|
|
131175
131241
|
var createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({}));
|
|
131176
131242
|
var createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true }));
|
|
@@ -139566,7 +139632,8 @@ ${lanes.join("\n")}
|
|
|
139566
139632
|
if (options.outDir || // there is --outDir specified
|
|
139567
139633
|
options.rootDir || // there is --rootDir specified
|
|
139568
139634
|
options.sourceRoot || // there is --sourceRoot specified
|
|
139569
|
-
options.mapRoot
|
|
139635
|
+
options.mapRoot || // there is --mapRoot specified
|
|
139636
|
+
getEmitDeclarations(options) && options.declarationDir) {
|
|
139570
139637
|
const dir = getCommonSourceDirectory2();
|
|
139571
139638
|
if (options.outDir && dir === "" && files.some((file) => getRootLength(file.fileName) > 1)) {
|
|
139572
139639
|
createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
|
|
@@ -140673,8 +140740,7 @@ ${lanes.join("\n")}
|
|
|
140673
140740
|
);
|
|
140674
140741
|
},
|
|
140675
140742
|
cancellationToken,
|
|
140676
|
-
|
|
140677
|
-
true,
|
|
140743
|
+
2,
|
|
140678
140744
|
/*customTransformers*/
|
|
140679
140745
|
void 0,
|
|
140680
140746
|
/*forceDtsEmit*/
|
|
@@ -148113,7 +148179,7 @@ ${lanes.join("\n")}
|
|
|
148113
148179
|
expression,
|
|
148114
148180
|
/*includeBigInt*/
|
|
148115
148181
|
false
|
|
148116
|
-
)) {
|
|
148182
|
+
) && !resolver.isDefinitelyReferenceToGlobalSymbolObject(expression)) {
|
|
148117
148183
|
context.tracker.reportInferenceFallback(prop.name);
|
|
148118
148184
|
result = false;
|
|
148119
148185
|
}
|
|
@@ -152228,6 +152294,7 @@ ${lanes.join("\n")}
|
|
|
152228
152294
|
function forEachNameOfDefaultExport(defaultExport, checker, compilerOptions, preferCapitalizedNames, cb) {
|
|
152229
152295
|
let chain;
|
|
152230
152296
|
let current = defaultExport;
|
|
152297
|
+
const seen = /* @__PURE__ */ new Map();
|
|
152231
152298
|
while (current) {
|
|
152232
152299
|
const fromDeclaration = getDefaultLikeExportNameFromDeclaration(current);
|
|
152233
152300
|
if (fromDeclaration) {
|
|
@@ -152239,6 +152306,7 @@ ${lanes.join("\n")}
|
|
|
152239
152306
|
if (final) return final;
|
|
152240
152307
|
}
|
|
152241
152308
|
chain = append(chain, current);
|
|
152309
|
+
if (!addToSeen(seen, current)) break;
|
|
152242
152310
|
current = current.flags & 2097152 ? checker.getImmediateAliasedSymbol(current) : void 0;
|
|
152243
152311
|
}
|
|
152244
152312
|
for (const symbol of chain ?? emptyArray) {
|
|
@@ -154850,7 +154918,7 @@ ${lanes.join("\n")}
|
|
|
154850
154918
|
}
|
|
154851
154919
|
const options = program.getCompilerOptions();
|
|
154852
154920
|
const outPath = options.outFile;
|
|
154853
|
-
const declarationPath = outPath ? removeFileExtension(outPath) + ".d.ts" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(),
|
|
154921
|
+
const declarationPath = outPath ? removeFileExtension(outPath) + ".d.ts" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(), program);
|
|
154854
154922
|
if (declarationPath === void 0) return void 0;
|
|
154855
154923
|
const newLoc = getDocumentPositionMapper2(declarationPath, info.fileName).getGeneratedPosition(info);
|
|
154856
154924
|
return newLoc === info ? void 0 : newLoc;
|
|
@@ -161943,9 +162011,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161943
162011
|
getChildAt(index, sourceFile) {
|
|
161944
162012
|
return this.getChildren(sourceFile)[index];
|
|
161945
162013
|
}
|
|
161946
|
-
getChildren(sourceFile) {
|
|
162014
|
+
getChildren(sourceFile = getSourceFileOfNode(this)) {
|
|
161947
162015
|
this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine");
|
|
161948
|
-
return getNodeChildren(this) ?? setNodeChildren(this, createChildren(this, sourceFile));
|
|
162016
|
+
return getNodeChildren(this, sourceFile) ?? setNodeChildren(this, sourceFile, createChildren(this, sourceFile));
|
|
161949
162017
|
}
|
|
161950
162018
|
getFirstToken(sourceFile) {
|
|
161951
162019
|
this.assertHasRealPosition();
|
|
@@ -162030,7 +162098,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162030
162098
|
pos = node.end;
|
|
162031
162099
|
}
|
|
162032
162100
|
addSyntheticNodes(children, pos, nodes.end, parent2);
|
|
162033
|
-
|
|
162101
|
+
list._children = children;
|
|
162034
162102
|
return list;
|
|
162035
162103
|
}
|
|
162036
162104
|
var TokenOrIdentifierObject = class {
|
|
@@ -175620,6 +175688,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
175620
175688
|
function visit(node) {
|
|
175621
175689
|
if (isLiteralImportTypeNode(node) && node.qualifier) {
|
|
175622
175690
|
const firstIdentifier = getFirstIdentifier(node.qualifier);
|
|
175691
|
+
if (!firstIdentifier.symbol) {
|
|
175692
|
+
return visitEachChild(
|
|
175693
|
+
node,
|
|
175694
|
+
visit,
|
|
175695
|
+
/*context*/
|
|
175696
|
+
void 0
|
|
175697
|
+
);
|
|
175698
|
+
}
|
|
175623
175699
|
const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
|
|
175624
175700
|
const qualifier = name !== firstIdentifier.text ? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name)) : node.qualifier;
|
|
175625
175701
|
symbols = append(symbols, firstIdentifier.symbol);
|
|
@@ -182199,7 +182275,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
182199
182275
|
return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol);
|
|
182200
182276
|
}
|
|
182201
182277
|
function getSourceFileLikeForImportDeclaration(node) {
|
|
182202
|
-
if (node.kind === 213) {
|
|
182278
|
+
if (node.kind === 213 || node.kind === 351) {
|
|
182203
182279
|
return node.getSourceFile();
|
|
182204
182280
|
}
|
|
182205
182281
|
const { parent: parent2 } = node;
|
|
@@ -196578,6 +196654,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
196578
196654
|
trace: () => trace,
|
|
196579
196655
|
tracing: () => tracing,
|
|
196580
196656
|
tracingEnabled: () => tracingEnabled,
|
|
196657
|
+
transferSourceFileChildren: () => transferSourceFileChildren,
|
|
196581
196658
|
transform: () => transform,
|
|
196582
196659
|
transformClassFields: () => transformClassFields,
|
|
196583
196660
|
transformDeclarations: () => transformDeclarations,
|
|
@@ -199388,7 +199465,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
199388
199465
|
this.generatedFilesMap.forEach((watcher, source) => {
|
|
199389
199466
|
const sourceFile = this.program.getSourceFileByPath(source);
|
|
199390
199467
|
if (!sourceFile || sourceFile.resolvedPath !== source || !this.isValidGeneratedFileWatcher(
|
|
199391
|
-
getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.
|
|
199468
|
+
getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.program),
|
|
199392
199469
|
watcher
|
|
199393
199470
|
)) {
|
|
199394
199471
|
closeFileWatcherOf(watcher);
|
|
@@ -224139,9 +224216,10 @@ See more help with --help`;
|
|
|
224139
224216
|
};
|
|
224140
224217
|
}
|
|
224141
224218
|
if (fws.inputFlag.flag.type === "option" && fws.inputFlag.flag.delimiter && fws.inputFlag.flag.multiple) {
|
|
224219
|
+
const makeDelimiter = (delimiter) => new RegExp(`(?<!\\\\)${delimiter}`);
|
|
224142
224220
|
return {
|
|
224143
224221
|
...fws,
|
|
224144
|
-
valueFunction: async (i) => (await Promise.all((i.tokens ?? []).flatMap((token) => token.input.split(i.inputFlag.flag.delimiter ?? ",")).map((v) => v.trim().replace(/^"(.*)"$/, "$1").replace(/^'(.*)'$/, "$1")).map(async (v) => parseFlagOrThrowError(v, i.inputFlag.flag, this.context, {
|
|
224222
|
+
valueFunction: async (i) => (await Promise.all((i.tokens ?? []).flatMap((token) => token.input.split(makeDelimiter(i.inputFlag.flag.delimiter ?? ","))).map((v) => v.trim().replaceAll(new RegExp(`\\\\${i.inputFlag.flag.delimiter}`, "g"), i.inputFlag.flag.delimiter ?? ",").replace(/^"(.*)"$/, "$1").replace(/^'(.*)'$/, "$1")).map(async (v) => parseFlagOrThrowError(v, i.inputFlag.flag, this.context, {
|
|
224145
224223
|
...(0, util_1.last)(i.tokens),
|
|
224146
224224
|
input: v
|
|
224147
224225
|
})))).map((v) => validateOptions(i.inputFlag.flag, v))
|
package/dist/commands/esbuild.js
CHANGED
package/dist/hooks/init/init.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ESBuild
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KKF36Q6V.js";
|
|
4
4
|
import {
|
|
5
5
|
Hello
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NWCXLJN2.js";
|
|
7
7
|
import {
|
|
8
8
|
World
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NXT2QAWJ.js";
|
|
10
10
|
import {
|
|
11
11
|
init_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OV2PEOZH.js";
|
|
13
13
|
import {
|
|
14
14
|
require_ansis,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_src
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QTBOVN7I.js";
|
|
18
18
|
import {
|
|
19
19
|
require_lib as require_lib2,
|
|
20
20
|
require_semver
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-test-esbuild",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "Bundled plugin for testing",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@oclif/core": "^4",
|
|
15
|
-
"@oclif/plugin-test-esm-1": "^0.8.
|
|
15
|
+
"@oclif/plugin-test-esm-1": "^0.8.15",
|
|
16
16
|
"@oclif/plugin-plugins": "^5.3.7"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint-config-oclif-typescript": "^3",
|
|
29
29
|
"eslint-config-prettier": "^9.1.0",
|
|
30
30
|
"mocha": "^10",
|
|
31
|
-
"oclif": "^4.14.
|
|
31
|
+
"oclif": "^4.14.9",
|
|
32
32
|
"shx": "^0.3.4",
|
|
33
33
|
"ts-node": "^10.9.2",
|
|
34
34
|
"typescript": "^5"
|