react-doctor 0.9.12-dev.905607f → 0.9.12-dev.a163de9
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/dist/{build-section-divider-D5ATBfDJ.js → build-section-divider-DwhI0l-P.js} +7 -7
- package/dist/{ci-DIlnBiUj.js → ci-BM5Bztiz.js} +12 -12
- package/dist/cli.js +24 -24
- package/dist/{design-C-uq3ow5.js → design-BJm8XW5q.js} +4 -4
- package/dist/{exit-gracefully-C64GRTOn.js → exit-gracefully-cFX-xHhy.js} +6 -6
- package/dist/{handle-error-Cfcnsjyi.js → handle-error-DBoxwa4Y.js} +5 -5
- package/dist/index.js +230 -167
- package/dist/{inspect-BLX566wA.js → inspect-Cj9X2Cuj.js} +16 -16
- package/dist/{install-Dz8zcUxD.js → install-DJE5tJBN.js} +9 -9
- package/dist/{install-doctor-script-CjxGMzIH.js → install-doctor-script-Bwy0GRjB.js} +6 -13
- package/dist/{install-github-workflow-eYmQoXdI.js → install-github-workflow-CQL9QH8Q.js} +5 -5
- package/dist/{install-react-doctor-OIDTrbHz.js → install-react-doctor-BC0tbnqe.js} +8 -8
- package/dist/{jsx-runtime-BdBmuS_a.js → jsx-runtime-BGIkB563.js} +5 -5
- package/dist/{print-branded-header-BksixHcc.js → print-branded-header-B5xE0DP1.js} +4 -4
- package/dist/project-analysis-worker.js +3 -3
- package/dist/{prompt-runtime-scan-url-CXJMNnAo.js → prompt-runtime-scan-url-G27i97Bd.js} +5 -5
- package/dist/{read-object-file-BhV9TFsy.js → read-object-file-p5HY4kEb.js} +4 -4
- package/dist/{record-metric-CdX-TQ5W.js → record-metric-B0l334ac.js} +182 -119
- package/dist/{report-error-DsFo2sAk.js → report-error-CxbHpLL8.js} +5 -5
- package/dist/{report-workflow-result-BSSkdwvd.js → report-workflow-result-Dtn4MVZ_.js} +5 -5
- package/dist/{resolve-scope-DRnGmF8O.js → resolve-scope-DFSO5zB7.js} +6 -6
- package/dist/{rules-C2g4a0X3.js → rules-DEUYP2QZ.js} +6 -6
- package/dist/{run-scan-app-Ch6yrLY9.js → run-scan-app-0v4YCLNw.js} +11 -10
- package/dist/{runtime-scan-Crfe35Ke.js → runtime-scan-CrdGMGtp.js} +9 -9
- package/dist/{sanitize-runtime-url-Dwa_-IKX.js → sanitize-runtime-url-DMNbP5D7.js} +4 -4
- package/dist/{scan-DJnhifws.js → scan-BjmlwnGK.js} +9 -9
- package/dist/{should-fail-scan-gate-D4ZKKeXI.js → should-fail-scan-gate-DFrfU9H8.js} +11 -11
- package/dist/{should-skip-prompts-Cfocoh7G.js → should-skip-prompts-jB7AIlXO.js} +4 -4
- package/dist/{should-use-tui-COX1uZWn.js → should-use-tui-DwO2FSvM.js} +4 -4
- package/dist/{telemetry-runtime-C_D70xUE.js → telemetry-runtime-EpReAdpc.js} +4 -4
- package/dist/{version-BAhd6Zvv.js → version-LTrxsytD.js} +4 -4
- package/dist/{why-MQHWHpeA.js → why-i7UomrTB.js} +4 -4
- package/dist/{with-run-span-DmpUrF70.js → with-run-span-tKhCINUb.js} +5 -5
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { i as __toESM
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7faf884e-554f-52d9-9d60-eb66987e6849")}catch(e){}}();
|
|
3
|
+
import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as path$1$1 from "node:path";
|
|
6
6
|
import path from "node:path";
|
|
@@ -25,7 +25,7 @@ import { convertToTSX } from "@astrojs/compiler/sync";
|
|
|
25
25
|
import { STATUS_CODES } from "node:http";
|
|
26
26
|
import { gzipSync } from "node:zlib";
|
|
27
27
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
|
|
28
|
-
var require_constants$1 = /* @__PURE__ */ __commonJSMin
|
|
28
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29
29
|
const WIN_SLASH = "\\\\/";
|
|
30
30
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
31
31
|
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
@@ -194,7 +194,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
194
194
|
}));
|
|
195
195
|
//#endregion
|
|
196
196
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
|
|
197
|
-
var require_utils = /* @__PURE__ */ __commonJSMin
|
|
197
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
198
198
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
|
|
199
199
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
200
200
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
@@ -242,7 +242,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
242
242
|
}));
|
|
243
243
|
//#endregion
|
|
244
244
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
|
|
245
|
-
var require_scan = /* @__PURE__ */ __commonJSMin
|
|
245
|
+
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
246
246
|
const utils = require_utils();
|
|
247
247
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants$1();
|
|
248
248
|
const isPathSeparator = (code) => {
|
|
@@ -529,7 +529,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
529
529
|
}));
|
|
530
530
|
//#endregion
|
|
531
531
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
|
|
532
|
-
var require_parse$2 = /* @__PURE__ */ __commonJSMin
|
|
532
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
533
533
|
const constants = require_constants$1();
|
|
534
534
|
const utils = require_utils();
|
|
535
535
|
/**
|
|
@@ -1584,7 +1584,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
1584
1584
|
}));
|
|
1585
1585
|
//#endregion
|
|
1586
1586
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
|
|
1587
|
-
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin
|
|
1587
|
+
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1588
1588
|
const scan = require_scan();
|
|
1589
1589
|
const parse = require_parse$2();
|
|
1590
1590
|
const utils = require_utils();
|
|
@@ -1883,8 +1883,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
1883
1883
|
module.exports = picomatch;
|
|
1884
1884
|
}));
|
|
1885
1885
|
//#endregion
|
|
1886
|
-
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-
|
|
1887
|
-
var import_picomatch = /* @__PURE__ */ __toESM
|
|
1886
|
+
//#region ../core/dist/collect-unplugin-auto-import-global-scopes-C1E7dTEQ.js
|
|
1887
|
+
var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1888
1888
|
const pico = require_picomatch$1();
|
|
1889
1889
|
const utils = require_utils();
|
|
1890
1890
|
function picomatch(glob, options, returnState = false) {
|
|
@@ -2164,6 +2164,7 @@ const ES_TARGET_YEAR_BY_NAME = {
|
|
|
2164
2164
|
* compiler options — the root config first, then a monorepo base config.
|
|
2165
2165
|
*/
|
|
2166
2166
|
const TSCONFIG_FILENAMES = ["tsconfig.json", "tsconfig.base.json"];
|
|
2167
|
+
const DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS = [".react-doctor", "audit-backups"];
|
|
2167
2168
|
/**
|
|
2168
2169
|
* Project-config files that `StagedFiles.materialize` copies into
|
|
2169
2170
|
* the temp directory alongside staged sources so oxlint resolves
|
|
@@ -23377,7 +23378,7 @@ Union([
|
|
|
23377
23378
|
]);
|
|
23378
23379
|
//#endregion
|
|
23379
23380
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
23380
|
-
var require_constants = /* @__PURE__ */ __commonJSMin
|
|
23381
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23381
23382
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
23382
23383
|
const MAX_LENGTH = 256;
|
|
23383
23384
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -23402,12 +23403,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23402
23403
|
}));
|
|
23403
23404
|
//#endregion
|
|
23404
23405
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
23405
|
-
var require_debug = /* @__PURE__ */ __commonJSMin
|
|
23406
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23406
23407
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
23407
23408
|
}));
|
|
23408
23409
|
//#endregion
|
|
23409
23410
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
|
|
23410
|
-
var require_re = /* @__PURE__ */ __commonJSMin
|
|
23411
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23411
23412
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
23412
23413
|
const debug = require_debug();
|
|
23413
23414
|
exports = module.exports = {};
|
|
@@ -23486,7 +23487,7 @@ var require_re = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23486
23487
|
}));
|
|
23487
23488
|
//#endregion
|
|
23488
23489
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
23489
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin
|
|
23490
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23490
23491
|
const looseOption = Object.freeze({ loose: true });
|
|
23491
23492
|
const emptyOpts = Object.freeze({});
|
|
23492
23493
|
const parseOptions = (options) => {
|
|
@@ -23498,7 +23499,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin$1(((exports, module) =
|
|
|
23498
23499
|
}));
|
|
23499
23500
|
//#endregion
|
|
23500
23501
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
23501
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin
|
|
23502
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23502
23503
|
const numeric = /^[0-9]+$/;
|
|
23503
23504
|
const compareIdentifiers = (a, b) => {
|
|
23504
23505
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -23518,7 +23519,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
23518
23519
|
}));
|
|
23519
23520
|
//#endregion
|
|
23520
23521
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
|
|
23521
|
-
var require_semver$1 = /* @__PURE__ */ __commonJSMin
|
|
23522
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23522
23523
|
const debug = require_debug();
|
|
23523
23524
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
23524
23525
|
const { safeRe: re, t } = require_re();
|
|
@@ -23696,7 +23697,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23696
23697
|
}));
|
|
23697
23698
|
//#endregion
|
|
23698
23699
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
|
|
23699
|
-
var require_parse$1 = /* @__PURE__ */ __commonJSMin
|
|
23700
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23700
23701
|
const SemVer = require_semver$1();
|
|
23701
23702
|
const parse = (version, options, throwErrors = false) => {
|
|
23702
23703
|
if (version instanceof SemVer) return version;
|
|
@@ -23711,7 +23712,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23711
23712
|
}));
|
|
23712
23713
|
//#endregion
|
|
23713
23714
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
|
|
23714
|
-
var require_valid$1 = /* @__PURE__ */ __commonJSMin
|
|
23715
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23715
23716
|
const parse = require_parse$1();
|
|
23716
23717
|
const valid = (version, options) => {
|
|
23717
23718
|
const v = parse(version, options);
|
|
@@ -23721,7 +23722,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23721
23722
|
}));
|
|
23722
23723
|
//#endregion
|
|
23723
23724
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
|
|
23724
|
-
var require_clean = /* @__PURE__ */ __commonJSMin
|
|
23725
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23725
23726
|
const parse = require_parse$1();
|
|
23726
23727
|
const clean = (version, options) => {
|
|
23727
23728
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -23731,7 +23732,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23731
23732
|
}));
|
|
23732
23733
|
//#endregion
|
|
23733
23734
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
|
|
23734
|
-
var require_inc = /* @__PURE__ */ __commonJSMin
|
|
23735
|
+
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23735
23736
|
const SemVer = require_semver$1();
|
|
23736
23737
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
23737
23738
|
if (typeof options === "string") {
|
|
@@ -23749,7 +23750,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23749
23750
|
}));
|
|
23750
23751
|
//#endregion
|
|
23751
23752
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
|
|
23752
|
-
var require_diff = /* @__PURE__ */ __commonJSMin
|
|
23753
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23753
23754
|
const parse = require_parse$1();
|
|
23754
23755
|
const diff = (version1, version2) => {
|
|
23755
23756
|
const v1 = parse(version1, null, true);
|
|
@@ -23777,28 +23778,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23777
23778
|
}));
|
|
23778
23779
|
//#endregion
|
|
23779
23780
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js
|
|
23780
|
-
var require_major = /* @__PURE__ */ __commonJSMin
|
|
23781
|
+
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23781
23782
|
const SemVer = require_semver$1();
|
|
23782
23783
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
23783
23784
|
module.exports = major;
|
|
23784
23785
|
}));
|
|
23785
23786
|
//#endregion
|
|
23786
23787
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js
|
|
23787
|
-
var require_minor = /* @__PURE__ */ __commonJSMin
|
|
23788
|
+
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23788
23789
|
const SemVer = require_semver$1();
|
|
23789
23790
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
23790
23791
|
module.exports = minor;
|
|
23791
23792
|
}));
|
|
23792
23793
|
//#endregion
|
|
23793
23794
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js
|
|
23794
|
-
var require_patch = /* @__PURE__ */ __commonJSMin
|
|
23795
|
+
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23795
23796
|
const SemVer = require_semver$1();
|
|
23796
23797
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
23797
23798
|
module.exports = patch;
|
|
23798
23799
|
}));
|
|
23799
23800
|
//#endregion
|
|
23800
23801
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
|
|
23801
|
-
var require_prerelease = /* @__PURE__ */ __commonJSMin
|
|
23802
|
+
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23802
23803
|
const parse = require_parse$1();
|
|
23803
23804
|
const prerelease = (version, options) => {
|
|
23804
23805
|
const parsed = parse(version, options);
|
|
@@ -23808,28 +23809,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23808
23809
|
}));
|
|
23809
23810
|
//#endregion
|
|
23810
23811
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
|
|
23811
|
-
var require_compare = /* @__PURE__ */ __commonJSMin
|
|
23812
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23812
23813
|
const SemVer = require_semver$1();
|
|
23813
23814
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
23814
23815
|
module.exports = compare;
|
|
23815
23816
|
}));
|
|
23816
23817
|
//#endregion
|
|
23817
23818
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js
|
|
23818
|
-
var require_rcompare = /* @__PURE__ */ __commonJSMin
|
|
23819
|
+
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23819
23820
|
const compare = require_compare();
|
|
23820
23821
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
23821
23822
|
module.exports = rcompare;
|
|
23822
23823
|
}));
|
|
23823
23824
|
//#endregion
|
|
23824
23825
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js
|
|
23825
|
-
var require_compare_loose = /* @__PURE__ */ __commonJSMin
|
|
23826
|
+
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23826
23827
|
const compare = require_compare();
|
|
23827
23828
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
23828
23829
|
module.exports = compareLoose;
|
|
23829
23830
|
}));
|
|
23830
23831
|
//#endregion
|
|
23831
23832
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js
|
|
23832
|
-
var require_compare_build = /* @__PURE__ */ __commonJSMin
|
|
23833
|
+
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23833
23834
|
const SemVer = require_semver$1();
|
|
23834
23835
|
const compareBuild = (a, b, loose) => {
|
|
23835
23836
|
const versionA = new SemVer(a, loose);
|
|
@@ -23840,63 +23841,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin$1(((exports, module) =
|
|
|
23840
23841
|
}));
|
|
23841
23842
|
//#endregion
|
|
23842
23843
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js
|
|
23843
|
-
var require_sort = /* @__PURE__ */ __commonJSMin
|
|
23844
|
+
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23844
23845
|
const compareBuild = require_compare_build();
|
|
23845
23846
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
23846
23847
|
module.exports = sort;
|
|
23847
23848
|
}));
|
|
23848
23849
|
//#endregion
|
|
23849
23850
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js
|
|
23850
|
-
var require_rsort = /* @__PURE__ */ __commonJSMin
|
|
23851
|
+
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23851
23852
|
const compareBuild = require_compare_build();
|
|
23852
23853
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
23853
23854
|
module.exports = rsort;
|
|
23854
23855
|
}));
|
|
23855
23856
|
//#endregion
|
|
23856
23857
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
|
|
23857
|
-
var require_gt = /* @__PURE__ */ __commonJSMin
|
|
23858
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23858
23859
|
const compare = require_compare();
|
|
23859
23860
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
23860
23861
|
module.exports = gt;
|
|
23861
23862
|
}));
|
|
23862
23863
|
//#endregion
|
|
23863
23864
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
|
|
23864
|
-
var require_lt = /* @__PURE__ */ __commonJSMin
|
|
23865
|
+
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23865
23866
|
const compare = require_compare();
|
|
23866
23867
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
23867
23868
|
module.exports = lt;
|
|
23868
23869
|
}));
|
|
23869
23870
|
//#endregion
|
|
23870
23871
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
|
|
23871
|
-
var require_eq = /* @__PURE__ */ __commonJSMin
|
|
23872
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23872
23873
|
const compare = require_compare();
|
|
23873
23874
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
23874
23875
|
module.exports = eq;
|
|
23875
23876
|
}));
|
|
23876
23877
|
//#endregion
|
|
23877
23878
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
|
|
23878
|
-
var require_neq = /* @__PURE__ */ __commonJSMin
|
|
23879
|
+
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23879
23880
|
const compare = require_compare();
|
|
23880
23881
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
23881
23882
|
module.exports = neq;
|
|
23882
23883
|
}));
|
|
23883
23884
|
//#endregion
|
|
23884
23885
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
|
|
23885
|
-
var require_gte = /* @__PURE__ */ __commonJSMin
|
|
23886
|
+
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23886
23887
|
const compare = require_compare();
|
|
23887
23888
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
23888
23889
|
module.exports = gte;
|
|
23889
23890
|
}));
|
|
23890
23891
|
//#endregion
|
|
23891
23892
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
|
|
23892
|
-
var require_lte = /* @__PURE__ */ __commonJSMin
|
|
23893
|
+
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23893
23894
|
const compare = require_compare();
|
|
23894
23895
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
23895
23896
|
module.exports = lte;
|
|
23896
23897
|
}));
|
|
23897
23898
|
//#endregion
|
|
23898
23899
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
|
|
23899
|
-
var require_cmp = /* @__PURE__ */ __commonJSMin
|
|
23900
|
+
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23900
23901
|
const eq = require_eq();
|
|
23901
23902
|
const neq = require_neq();
|
|
23902
23903
|
const gt = require_gt();
|
|
@@ -23928,7 +23929,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23928
23929
|
}));
|
|
23929
23930
|
//#endregion
|
|
23930
23931
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
|
|
23931
|
-
var require_coerce = /* @__PURE__ */ __commonJSMin
|
|
23932
|
+
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23932
23933
|
const SemVer = require_semver$1();
|
|
23933
23934
|
const parse = require_parse$1();
|
|
23934
23935
|
const { safeRe: re, t } = require_re();
|
|
@@ -23956,7 +23957,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23956
23957
|
}));
|
|
23957
23958
|
//#endregion
|
|
23958
23959
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
|
|
23959
|
-
var require_lrucache = /* @__PURE__ */ __commonJSMin
|
|
23960
|
+
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23960
23961
|
var LRUCache = class {
|
|
23961
23962
|
constructor() {
|
|
23962
23963
|
this.max = 1e3;
|
|
@@ -23989,7 +23990,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
23989
23990
|
}));
|
|
23990
23991
|
//#endregion
|
|
23991
23992
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
|
|
23992
|
-
var require_range = /* @__PURE__ */ __commonJSMin
|
|
23993
|
+
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23993
23994
|
const SPACE_CHARACTERS = /\s+/g;
|
|
23994
23995
|
module.exports = class Range {
|
|
23995
23996
|
constructor(range, options) {
|
|
@@ -24261,7 +24262,7 @@ var require_range = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24261
24262
|
}));
|
|
24262
24263
|
//#endregion
|
|
24263
24264
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
|
|
24264
|
-
var require_comparator = /* @__PURE__ */ __commonJSMin
|
|
24265
|
+
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24265
24266
|
const ANY = Symbol("SemVer ANY");
|
|
24266
24267
|
module.exports = class Comparator {
|
|
24267
24268
|
static get ANY() {
|
|
@@ -24331,7 +24332,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24331
24332
|
}));
|
|
24332
24333
|
//#endregion
|
|
24333
24334
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
|
|
24334
|
-
var require_satisfies = /* @__PURE__ */ __commonJSMin
|
|
24335
|
+
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24335
24336
|
const Range = require_range();
|
|
24336
24337
|
const satisfies = (version, range, options) => {
|
|
24337
24338
|
try {
|
|
@@ -24345,14 +24346,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24345
24346
|
}));
|
|
24346
24347
|
//#endregion
|
|
24347
24348
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
|
|
24348
|
-
var require_to_comparators = /* @__PURE__ */ __commonJSMin
|
|
24349
|
+
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24349
24350
|
const Range = require_range();
|
|
24350
24351
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
24351
24352
|
module.exports = toComparators;
|
|
24352
24353
|
}));
|
|
24353
24354
|
//#endregion
|
|
24354
24355
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js
|
|
24355
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJSMin
|
|
24356
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24356
24357
|
const SemVer = require_semver$1();
|
|
24357
24358
|
const Range = require_range();
|
|
24358
24359
|
const maxSatisfying = (versions, range, options) => {
|
|
@@ -24378,7 +24379,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin$1(((exports, module)
|
|
|
24378
24379
|
}));
|
|
24379
24380
|
//#endregion
|
|
24380
24381
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js
|
|
24381
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJSMin
|
|
24382
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24382
24383
|
const SemVer = require_semver$1();
|
|
24383
24384
|
const Range = require_range();
|
|
24384
24385
|
const minSatisfying = (versions, range, options) => {
|
|
@@ -24404,7 +24405,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin$1(((exports, module)
|
|
|
24404
24405
|
}));
|
|
24405
24406
|
//#endregion
|
|
24406
24407
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
|
|
24407
|
-
var require_min_version = /* @__PURE__ */ __commonJSMin
|
|
24408
|
+
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24408
24409
|
const SemVer = require_semver$1();
|
|
24409
24410
|
const Range = require_range();
|
|
24410
24411
|
const gt = require_gt();
|
|
@@ -24444,7 +24445,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
24444
24445
|
}));
|
|
24445
24446
|
//#endregion
|
|
24446
24447
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js
|
|
24447
|
-
var require_valid = /* @__PURE__ */ __commonJSMin
|
|
24448
|
+
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24448
24449
|
const Range = require_range();
|
|
24449
24450
|
const validRange = (range, options) => {
|
|
24450
24451
|
try {
|
|
@@ -24457,7 +24458,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24457
24458
|
}));
|
|
24458
24459
|
//#endregion
|
|
24459
24460
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js
|
|
24460
|
-
var require_outside = /* @__PURE__ */ __commonJSMin
|
|
24461
|
+
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24461
24462
|
const SemVer = require_semver$1();
|
|
24462
24463
|
const Comparator = require_comparator();
|
|
24463
24464
|
const { ANY } = Comparator;
|
|
@@ -24510,21 +24511,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24510
24511
|
}));
|
|
24511
24512
|
//#endregion
|
|
24512
24513
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js
|
|
24513
|
-
var require_gtr = /* @__PURE__ */ __commonJSMin
|
|
24514
|
+
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24514
24515
|
const outside = require_outside();
|
|
24515
24516
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
24516
24517
|
module.exports = gtr;
|
|
24517
24518
|
}));
|
|
24518
24519
|
//#endregion
|
|
24519
24520
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js
|
|
24520
|
-
var require_ltr = /* @__PURE__ */ __commonJSMin
|
|
24521
|
+
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24521
24522
|
const outside = require_outside();
|
|
24522
24523
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
24523
24524
|
module.exports = ltr;
|
|
24524
24525
|
}));
|
|
24525
24526
|
//#endregion
|
|
24526
24527
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js
|
|
24527
|
-
var require_intersects = /* @__PURE__ */ __commonJSMin
|
|
24528
|
+
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24528
24529
|
const Range = require_range();
|
|
24529
24530
|
const intersects = (r1, r2, options) => {
|
|
24530
24531
|
r1 = new Range(r1, options);
|
|
@@ -24535,7 +24536,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24535
24536
|
}));
|
|
24536
24537
|
//#endregion
|
|
24537
24538
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js
|
|
24538
|
-
var require_simplify = /* @__PURE__ */ __commonJSMin
|
|
24539
|
+
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24539
24540
|
const satisfies = require_satisfies();
|
|
24540
24541
|
const compare = require_compare();
|
|
24541
24542
|
module.exports = (versions, range, options) => {
|
|
@@ -24565,7 +24566,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24565
24566
|
}));
|
|
24566
24567
|
//#endregion
|
|
24567
24568
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js
|
|
24568
|
-
var require_subset = /* @__PURE__ */ __commonJSMin
|
|
24569
|
+
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24569
24570
|
const Range = require_range();
|
|
24570
24571
|
const Comparator = require_comparator();
|
|
24571
24572
|
const { ANY } = Comparator;
|
|
@@ -24660,7 +24661,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24660
24661
|
}));
|
|
24661
24662
|
//#endregion
|
|
24662
24663
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js
|
|
24663
|
-
var require_semver = /* @__PURE__ */ __commonJSMin
|
|
24664
|
+
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24664
24665
|
const internalRe = require_re();
|
|
24665
24666
|
const constants = require_constants();
|
|
24666
24667
|
const SemVer = require_semver$1();
|
|
@@ -24715,7 +24716,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
24715
24716
|
}));
|
|
24716
24717
|
//#endregion
|
|
24717
24718
|
//#region ../../node_modules/.pnpm/baseline-browser-mapping@2.9.19/node_modules/baseline-browser-mapping/dist/index.cjs
|
|
24718
|
-
var require_dist = /* @__PURE__ */ __commonJSMin
|
|
24719
|
+
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
24719
24720
|
const s = {
|
|
24720
24721
|
chrome: { releases: [
|
|
24721
24722
|
[
|
|
@@ -43965,7 +43966,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
|
|
|
43965
43966
|
}));
|
|
43966
43967
|
//#endregion
|
|
43967
43968
|
//#region ../../node_modules/.pnpm/node-releases@2.0.27/node_modules/node-releases/data/processed/envs.json
|
|
43968
|
-
var require_envs = /* @__PURE__ */ __commonJSMin
|
|
43969
|
+
var require_envs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
43969
43970
|
module.exports = [
|
|
43970
43971
|
{
|
|
43971
43972
|
"name": "nodejs",
|
|
@@ -46747,7 +46748,7 @@ var require_envs = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
46747
46748
|
}));
|
|
46748
46749
|
//#endregion
|
|
46749
46750
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/browsers.js
|
|
46750
|
-
var require_browsers$1 = /* @__PURE__ */ __commonJSMin
|
|
46751
|
+
var require_browsers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46751
46752
|
module.exports = {
|
|
46752
46753
|
A: "ie",
|
|
46753
46754
|
B: "edge",
|
|
@@ -46772,12 +46773,12 @@ var require_browsers$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
46772
46773
|
}));
|
|
46773
46774
|
//#endregion
|
|
46774
46775
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/browsers.js
|
|
46775
|
-
var require_browsers = /* @__PURE__ */ __commonJSMin
|
|
46776
|
+
var require_browsers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46776
46777
|
module.exports.browsers = require_browsers$1();
|
|
46777
46778
|
}));
|
|
46778
46779
|
//#endregion
|
|
46779
46780
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/browserVersions.js
|
|
46780
|
-
var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin
|
|
46781
|
+
var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46781
46782
|
module.exports = {
|
|
46782
46783
|
"0": "117",
|
|
46783
46784
|
"1": "118",
|
|
@@ -47029,12 +47030,12 @@ var require_browserVersions$1 = /* @__PURE__ */ __commonJSMin$1(((exports, modul
|
|
|
47029
47030
|
}));
|
|
47030
47031
|
//#endregion
|
|
47031
47032
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/browserVersions.js
|
|
47032
|
-
var require_browserVersions = /* @__PURE__ */ __commonJSMin
|
|
47033
|
+
var require_browserVersions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
47033
47034
|
module.exports.browserVersions = require_browserVersions$1();
|
|
47034
47035
|
}));
|
|
47035
47036
|
//#endregion
|
|
47036
47037
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/data/agents.js
|
|
47037
|
-
var require_agents$1 = /* @__PURE__ */ __commonJSMin
|
|
47038
|
+
var require_agents$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
47038
47039
|
module.exports = {
|
|
47039
47040
|
A: {
|
|
47040
47041
|
A: {
|
|
@@ -51403,7 +51404,7 @@ var require_agents$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51403
51404
|
}));
|
|
51404
51405
|
//#endregion
|
|
51405
51406
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/agents.js
|
|
51406
|
-
var require_agents = /* @__PURE__ */ __commonJSMin
|
|
51407
|
+
var require_agents = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51407
51408
|
const browsers = require_browsers().browsers;
|
|
51408
51409
|
const versions = require_browserVersions().browserVersions;
|
|
51409
51410
|
const agentsData = require_agents$1();
|
|
@@ -51436,7 +51437,7 @@ var require_agents = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51436
51437
|
}));
|
|
51437
51438
|
//#endregion
|
|
51438
51439
|
//#region ../../node_modules/.pnpm/electron-to-chromium@1.5.286/node_modules/electron-to-chromium/versions.js
|
|
51439
|
-
var require_versions = /* @__PURE__ */ __commonJSMin
|
|
51440
|
+
var require_versions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51440
51441
|
module.exports = {
|
|
51441
51442
|
"0.20": "39",
|
|
51442
51443
|
"0.21": "41",
|
|
@@ -51670,7 +51671,7 @@ var require_versions = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51670
51671
|
}));
|
|
51671
51672
|
//#endregion
|
|
51672
51673
|
//#region ../../node_modules/.pnpm/node-releases@2.0.27/node_modules/node-releases/data/release-schedule/release-schedule.json
|
|
51673
|
-
var require_release_schedule = /* @__PURE__ */ __commonJSMin
|
|
51674
|
+
var require_release_schedule = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51674
51675
|
module.exports = {
|
|
51675
51676
|
"v0.8": {
|
|
51676
51677
|
"start": "2012-06-25",
|
|
@@ -51827,7 +51828,7 @@ var require_release_schedule = /* @__PURE__ */ __commonJSMin$1(((exports, module
|
|
|
51827
51828
|
}));
|
|
51828
51829
|
//#endregion
|
|
51829
51830
|
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/error.js
|
|
51830
|
-
var require_error = /* @__PURE__ */ __commonJSMin
|
|
51831
|
+
var require_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51831
51832
|
function BrowserslistError(message) {
|
|
51832
51833
|
this.name = "BrowserslistError";
|
|
51833
51834
|
this.message = message;
|
|
@@ -51839,7 +51840,7 @@ var require_error = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51839
51840
|
}));
|
|
51840
51841
|
//#endregion
|
|
51841
51842
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/lib/statuses.js
|
|
51842
|
-
var require_statuses = /* @__PURE__ */ __commonJSMin
|
|
51843
|
+
var require_statuses = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51843
51844
|
module.exports = {
|
|
51844
51845
|
1: "ls",
|
|
51845
51846
|
2: "rec",
|
|
@@ -51852,7 +51853,7 @@ var require_statuses = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51852
51853
|
}));
|
|
51853
51854
|
//#endregion
|
|
51854
51855
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/lib/supported.js
|
|
51855
|
-
var require_supported = /* @__PURE__ */ __commonJSMin
|
|
51856
|
+
var require_supported = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51856
51857
|
module.exports = {
|
|
51857
51858
|
y: 1,
|
|
51858
51859
|
n: 2,
|
|
@@ -51865,7 +51866,7 @@ var require_supported = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51865
51866
|
}));
|
|
51866
51867
|
//#endregion
|
|
51867
51868
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/feature.js
|
|
51868
|
-
var require_feature = /* @__PURE__ */ __commonJSMin
|
|
51869
|
+
var require_feature = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51869
51870
|
const statuses = require_statuses();
|
|
51870
51871
|
const supported = require_supported();
|
|
51871
51872
|
const browsers = require_browsers().browsers;
|
|
@@ -51908,7 +51909,7 @@ var require_feature = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51908
51909
|
}));
|
|
51909
51910
|
//#endregion
|
|
51910
51911
|
//#region ../../node_modules/.pnpm/caniuse-lite@1.0.30001769/node_modules/caniuse-lite/dist/unpacker/region.js
|
|
51911
|
-
var require_region = /* @__PURE__ */ __commonJSMin
|
|
51912
|
+
var require_region = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51912
51913
|
const browsers = require_browsers().browsers;
|
|
51913
51914
|
function unpackRegion(packed) {
|
|
51914
51915
|
return Object.keys(packed).reduce((list, browser) => {
|
|
@@ -51927,7 +51928,7 @@ var require_region = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
51927
51928
|
}));
|
|
51928
51929
|
//#endregion
|
|
51929
51930
|
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node.js
|
|
51930
|
-
var require_node = /* @__PURE__ */ __commonJSMin
|
|
51931
|
+
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51931
51932
|
var feature = require_feature().default;
|
|
51932
51933
|
var region = require_region().default;
|
|
51933
51934
|
var fs$2 = __require("fs");
|
|
@@ -52220,7 +52221,7 @@ var require_node = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
52220
52221
|
}));
|
|
52221
52222
|
//#endregion
|
|
52222
52223
|
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/parse.js
|
|
52223
|
-
var require_parse = /* @__PURE__ */ __commonJSMin
|
|
52224
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
52224
52225
|
var AND_REGEXP = /^\s+and\s+(.*)/i;
|
|
52225
52226
|
var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i;
|
|
52226
52227
|
function flatten(array) {
|
|
@@ -52286,7 +52287,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
52286
52287
|
}));
|
|
52287
52288
|
//#endregion
|
|
52288
52289
|
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/index.js
|
|
52289
|
-
var require_browserslist = /* @__PURE__ */ __commonJSMin
|
|
52290
|
+
var require_browserslist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
52290
52291
|
var bbm = require_dist();
|
|
52291
52292
|
var jsReleases = require_envs();
|
|
52292
52293
|
var agents = require_agents().agents;
|
|
@@ -53308,8 +53309,8 @@ var require_browserslist = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
53308
53309
|
}));
|
|
53309
53310
|
//#endregion
|
|
53310
53311
|
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Brand.js
|
|
53311
|
-
var import_semver = /* @__PURE__ */ __toESM
|
|
53312
|
-
var import_browserslist = /* @__PURE__ */ __toESM
|
|
53312
|
+
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
53313
|
+
var import_browserslist = /* @__PURE__ */ __toESM(require_browserslist(), 1);
|
|
53313
53314
|
/**
|
|
53314
53315
|
* Returns a `Constructor` that **does not apply any runtime checks** and just
|
|
53315
53316
|
* returns the provided value.
|
|
@@ -62294,6 +62295,72 @@ const warn$1 = (...args) => consoleWith((console) => sync$2(() => {
|
|
|
62294
62295
|
}));
|
|
62295
62296
|
//#endregion
|
|
62296
62297
|
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Cache.js
|
|
62298
|
+
var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
62299
|
+
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
62300
|
+
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
62301
|
+
let formatter = (open, close, replace = open) => (input) => {
|
|
62302
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
62303
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
62304
|
+
};
|
|
62305
|
+
let replaceClose = (string, close, replace, index) => {
|
|
62306
|
+
let result = "", cursor = 0;
|
|
62307
|
+
do {
|
|
62308
|
+
result += string.substring(cursor, index) + replace;
|
|
62309
|
+
cursor = index + close.length;
|
|
62310
|
+
index = string.indexOf(close, cursor);
|
|
62311
|
+
} while (~index);
|
|
62312
|
+
return result + string.substring(cursor);
|
|
62313
|
+
};
|
|
62314
|
+
let createColors = (enabled = isColorSupported) => {
|
|
62315
|
+
let f = enabled ? formatter : () => String;
|
|
62316
|
+
return {
|
|
62317
|
+
isColorSupported: enabled,
|
|
62318
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
62319
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
62320
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
62321
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
62322
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
62323
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
62324
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
62325
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
62326
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
62327
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
62328
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
62329
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
62330
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
62331
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
62332
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
62333
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
62334
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
62335
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
62336
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
62337
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
62338
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
62339
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
62340
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
62341
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
62342
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
62343
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
62344
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
62345
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
62346
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
62347
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
62348
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
62349
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
62350
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
62351
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
62352
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
62353
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
62354
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
62355
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
62356
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
62357
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
62358
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
62359
|
+
};
|
|
62360
|
+
};
|
|
62361
|
+
module.exports = createColors();
|
|
62362
|
+
module.exports.createColors = createColors;
|
|
62363
|
+
})))(), 1);
|
|
62297
62364
|
/**
|
|
62298
62365
|
* Caches values loaded by an Effect lookup function.
|
|
62299
62366
|
*
|
|
@@ -64263,27 +64330,6 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
64263
64330
|
}
|
|
64264
64331
|
//#endregion
|
|
64265
64332
|
//#region ../core/dist/index.js
|
|
64266
|
-
var __create = Object.create;
|
|
64267
|
-
var __defProp = Object.defineProperty;
|
|
64268
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
64269
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
64270
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
64271
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
64272
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
64273
|
-
var __copyProps = (to, from, except, desc) => {
|
|
64274
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
64275
|
-
key = keys[i];
|
|
64276
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
64277
|
-
get: ((k) => from[k]).bind(null, key),
|
|
64278
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
64279
|
-
});
|
|
64280
|
-
}
|
|
64281
|
-
return to;
|
|
64282
|
-
};
|
|
64283
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
64284
|
-
value: mod,
|
|
64285
|
-
enumerable: true
|
|
64286
|
-
}) : target, mod));
|
|
64287
64333
|
var ProjectNotFoundError = class extends Error {
|
|
64288
64334
|
name = "ProjectNotFoundError";
|
|
64289
64335
|
directory;
|
|
@@ -71310,72 +71356,6 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
|
|
|
71310
71356
|
}
|
|
71311
71357
|
return session.diagnostics;
|
|
71312
71358
|
};
|
|
71313
|
-
var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71314
|
-
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
71315
|
-
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
71316
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
71317
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
71318
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
71319
|
-
};
|
|
71320
|
-
let replaceClose = (string, close, replace, index) => {
|
|
71321
|
-
let result = "", cursor = 0;
|
|
71322
|
-
do {
|
|
71323
|
-
result += string.substring(cursor, index) + replace;
|
|
71324
|
-
cursor = index + close.length;
|
|
71325
|
-
index = string.indexOf(close, cursor);
|
|
71326
|
-
} while (~index);
|
|
71327
|
-
return result + string.substring(cursor);
|
|
71328
|
-
};
|
|
71329
|
-
let createColors = (enabled = isColorSupported) => {
|
|
71330
|
-
let f = enabled ? formatter : () => String;
|
|
71331
|
-
return {
|
|
71332
|
-
isColorSupported: enabled,
|
|
71333
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
71334
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
71335
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
71336
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
71337
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
71338
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
71339
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
71340
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
71341
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
71342
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
71343
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
71344
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
71345
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
71346
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
71347
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
71348
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
71349
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
71350
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
71351
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
71352
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
71353
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
71354
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
71355
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
71356
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
71357
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
71358
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
71359
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
71360
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
71361
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
71362
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
71363
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
71364
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
71365
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
71366
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
71367
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
71368
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
71369
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
71370
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
71371
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
71372
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
71373
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
71374
|
-
};
|
|
71375
|
-
};
|
|
71376
|
-
module.exports = createColors();
|
|
71377
|
-
module.exports.createColors = createColors;
|
|
71378
|
-
})))(), 1);
|
|
71379
71359
|
const highlighter = {
|
|
71380
71360
|
error: import_picocolors.default.red,
|
|
71381
71361
|
warn: import_picocolors.default.yellow,
|
|
@@ -72693,7 +72673,11 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
72693
72673
|
const symref = yield* runGit(directory, ["symbolic-ref", "refs/remotes/origin/HEAD"]);
|
|
72694
72674
|
if (symref.status === 0) {
|
|
72695
72675
|
const trimmed = trimOrNull(symref.stdout);
|
|
72696
|
-
if (trimmed !== null)
|
|
72676
|
+
if (trimmed !== null) {
|
|
72677
|
+
const branchName = trimmed.replace("refs/remotes/origin/", "");
|
|
72678
|
+
const remoteBranch = `origin/${branchName}`;
|
|
72679
|
+
return (yield* branchExists(directory, remoteBranch)) ? remoteBranch : branchName;
|
|
72680
|
+
}
|
|
72697
72681
|
}
|
|
72698
72682
|
const candidates = yield* runGit(directory, [
|
|
72699
72683
|
"for-each-ref",
|
|
@@ -72701,7 +72685,10 @@ var Git = class Git extends Service()("react-doctor/Git") {
|
|
|
72701
72685
|
...DEFAULT_BRANCH_CANDIDATES.map((candidate) => `refs/heads/${candidate}`)
|
|
72702
72686
|
]);
|
|
72703
72687
|
if (candidates.status !== 0) return null;
|
|
72704
|
-
|
|
72688
|
+
const localBranch = trimOrNull(candidates.stdout.split("\n")[0] ?? "");
|
|
72689
|
+
if (localBranch === null) return null;
|
|
72690
|
+
const remoteBranch = `origin/${localBranch}`;
|
|
72691
|
+
return (yield* branchExists(directory, remoteBranch)) ? remoteBranch : localBranch;
|
|
72705
72692
|
}).pipe(withSpan("Git.defaultBranch"));
|
|
72706
72693
|
const branchExists = (directory, branch) => runGit(directory, [
|
|
72707
72694
|
"rev-parse",
|
|
@@ -73203,6 +73190,19 @@ const detectUserLintConfigPaths = (rootDirectory) => {
|
|
|
73203
73190
|
return [];
|
|
73204
73191
|
};
|
|
73205
73192
|
const DISABLE_DIRECTIVE_PATTERN = /(eslint|oxlint)-disable/;
|
|
73193
|
+
const getBackupRootDirectory = (rootDirectory) => path$1$1.join(rootDirectory, ...DISABLE_DIRECTIVE_BACKUP_DIRECTORY_SEGMENTS);
|
|
73194
|
+
const getBackupPath = (rootDirectory, absolutePath) => {
|
|
73195
|
+
if (!isPathInsideDirectory(absolutePath, rootDirectory)) return null;
|
|
73196
|
+
return path$1$1.join(getBackupRootDirectory(rootDirectory), path$1$1.relative(rootDirectory, absolutePath));
|
|
73197
|
+
};
|
|
73198
|
+
const removeBackupRootIfEmpty = (rootDirectory) => {
|
|
73199
|
+
const backupRootDirectory = getBackupRootDirectory(rootDirectory);
|
|
73200
|
+
if (!walkSourceTreeFiles(backupRootDirectory).next().done) return;
|
|
73201
|
+
fs$1$3.rmSync(backupRootDirectory, {
|
|
73202
|
+
recursive: true,
|
|
73203
|
+
force: true
|
|
73204
|
+
});
|
|
73205
|
+
};
|
|
73206
73206
|
const neutralizedFileLeases = /* @__PURE__ */ new Map();
|
|
73207
73207
|
const activeNeutralizationInitializations = /* @__PURE__ */ new Set();
|
|
73208
73208
|
const directoriesOverlap = (left, right) => {
|
|
@@ -73294,8 +73294,50 @@ const collectNeutralizationCandidatePaths = (rootDirectory, discoveredRelativePa
|
|
|
73294
73294
|
}
|
|
73295
73295
|
return candidatePaths;
|
|
73296
73296
|
};
|
|
73297
|
+
const recoverOrphanedBackups = (rootDirectory) => {
|
|
73298
|
+
const blockedPaths = /* @__PURE__ */ new Set();
|
|
73299
|
+
const backupRootDirectory = getBackupRootDirectory(rootDirectory);
|
|
73300
|
+
for (const { absolutePath: backupPath } of walkSourceTreeFiles(backupRootDirectory)) {
|
|
73301
|
+
const originalPath = path$1$1.join(rootDirectory, path$1$1.relative(backupRootDirectory, backupPath));
|
|
73302
|
+
if (neutralizedFileLeases.has(originalPath)) continue;
|
|
73303
|
+
let backupContent;
|
|
73304
|
+
let currentContent;
|
|
73305
|
+
try {
|
|
73306
|
+
backupContent = fs$1$3.readFileSync(backupPath, "utf-8");
|
|
73307
|
+
currentContent = fs$1$3.readFileSync(originalPath, "utf-8");
|
|
73308
|
+
} catch (error) {
|
|
73309
|
+
process.stderr.write(`[react-doctor] Could not recover ${originalPath}: ${messageFromUnknown(error)}. The backup remains at ${backupPath}.\n`);
|
|
73310
|
+
blockedPaths.add(originalPath);
|
|
73311
|
+
continue;
|
|
73312
|
+
}
|
|
73313
|
+
if (currentContent === backupContent) {
|
|
73314
|
+
try {
|
|
73315
|
+
fs$1$3.rmSync(backupPath);
|
|
73316
|
+
} catch (error) {
|
|
73317
|
+
process.stderr.write(`[react-doctor] Failed to delete stale backup ${backupPath}: ${messageFromUnknown(error)}\n`);
|
|
73318
|
+
blockedPaths.add(originalPath);
|
|
73319
|
+
}
|
|
73320
|
+
continue;
|
|
73321
|
+
}
|
|
73322
|
+
if (currentContent !== neutralizeContent(backupContent)) {
|
|
73323
|
+
process.stderr.write(`[react-doctor] Did not overwrite changed file ${originalPath}. Recover it manually from ${backupPath}.\n`);
|
|
73324
|
+
blockedPaths.add(originalPath);
|
|
73325
|
+
continue;
|
|
73326
|
+
}
|
|
73327
|
+
try {
|
|
73328
|
+
fs$1$3.writeFileSync(originalPath, backupContent);
|
|
73329
|
+
fs$1$3.rmSync(backupPath);
|
|
73330
|
+
} catch (error) {
|
|
73331
|
+
process.stderr.write(`[react-doctor] Failed to restore ${originalPath} from backup: ${messageFromUnknown(error)}\n`);
|
|
73332
|
+
blockedPaths.add(originalPath);
|
|
73333
|
+
}
|
|
73334
|
+
}
|
|
73335
|
+
removeBackupRootIfEmpty(rootDirectory);
|
|
73336
|
+
return blockedPaths;
|
|
73337
|
+
};
|
|
73297
73338
|
const neutralizeDisableDirectives = async (rootDirectory, includePaths, options = {}) => {
|
|
73298
73339
|
const resolvedRootDirectory = fs$1$3.realpathSync(rootDirectory);
|
|
73340
|
+
const blockedPaths = /* @__PURE__ */ new Set();
|
|
73299
73341
|
const leasedPaths = /* @__PURE__ */ new Set();
|
|
73300
73342
|
let isRestored = false;
|
|
73301
73343
|
const restore = () => {
|
|
@@ -73308,16 +73350,24 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
73308
73350
|
if (lease.referenceCount > 0) continue;
|
|
73309
73351
|
neutralizedFileLeases.delete(absolutePath);
|
|
73310
73352
|
try {
|
|
73311
|
-
fs$1$3.
|
|
73353
|
+
const currentContent = fs$1$3.readFileSync(absolutePath, "utf-8");
|
|
73354
|
+
if (currentContent !== lease.neutralizedContent && currentContent !== lease.originalContent) {
|
|
73355
|
+
process.stderr.write(`[react-doctor] Did not overwrite changed file ${absolutePath}. Recover it manually from ${lease.backupPath}.\n`);
|
|
73356
|
+
continue;
|
|
73357
|
+
}
|
|
73358
|
+
if (currentContent === lease.neutralizedContent) fs$1$3.writeFileSync(absolutePath, lease.originalContent);
|
|
73359
|
+
fs$1$3.rmSync(lease.backupPath, { force: true });
|
|
73312
73360
|
} catch (error) {
|
|
73313
|
-
process.stderr.write(`[react-doctor] Failed to restore inline disable directives in ${absolutePath}: ${messageFromUnknown(error)}
|
|
73361
|
+
process.stderr.write(`[react-doctor] Failed to restore inline disable directives in ${absolutePath}: ${messageFromUnknown(error)}. The backup remains at ${lease.backupPath}.\n`);
|
|
73314
73362
|
}
|
|
73315
73363
|
}
|
|
73364
|
+
removeBackupRootIfEmpty(resolvedRootDirectory);
|
|
73316
73365
|
};
|
|
73317
73366
|
const onExit = () => restore();
|
|
73318
73367
|
process.once("exit", onExit);
|
|
73319
73368
|
const leaseCandidatePath = (absolutePath) => {
|
|
73320
73369
|
if (leasedPaths.has(absolutePath)) return;
|
|
73370
|
+
if (blockedPaths.has(absolutePath)) return;
|
|
73321
73371
|
const existingLease = neutralizedFileLeases.get(absolutePath);
|
|
73322
73372
|
if (existingLease) {
|
|
73323
73373
|
existingLease.referenceCount += 1;
|
|
@@ -73332,9 +73382,20 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
73332
73382
|
}
|
|
73333
73383
|
const neutralizedContent = neutralizeContent(originalContent);
|
|
73334
73384
|
if (neutralizedContent !== originalContent) {
|
|
73385
|
+
const backupPath = getBackupPath(resolvedRootDirectory, absolutePath);
|
|
73386
|
+
if (backupPath === null) return;
|
|
73387
|
+
try {
|
|
73388
|
+
fs$1$3.mkdirSync(path$1$1.dirname(backupPath), { recursive: true });
|
|
73389
|
+
fs$1$3.writeFileSync(backupPath, originalContent, { flag: "wx" });
|
|
73390
|
+
} catch (error) {
|
|
73391
|
+
process.stderr.write(`[react-doctor] Did not modify ${absolutePath}: ${messageFromUnknown(error)}. Check ${backupPath}.\n`);
|
|
73392
|
+
return;
|
|
73393
|
+
}
|
|
73335
73394
|
fs$1$3.writeFileSync(absolutePath, neutralizedContent);
|
|
73336
73395
|
neutralizedFileLeases.set(absolutePath, {
|
|
73396
|
+
backupPath,
|
|
73337
73397
|
originalContent,
|
|
73398
|
+
neutralizedContent,
|
|
73338
73399
|
referenceCount: 1
|
|
73339
73400
|
});
|
|
73340
73401
|
leasedPaths.add(absolutePath);
|
|
@@ -73342,6 +73403,8 @@ const neutralizeDisableDirectives = async (rootDirectory, includePaths, options
|
|
|
73342
73403
|
};
|
|
73343
73404
|
try {
|
|
73344
73405
|
await withOverlappingInitializationLock(resolvedRootDirectory, async () => {
|
|
73406
|
+
for (const blockedPath of recoverOrphanedBackups(resolvedRootDirectory)) blockedPaths.add(blockedPath);
|
|
73407
|
+
if (options.recoverOnly) return;
|
|
73345
73408
|
for (const absolutePath of collectNeutralizationCandidatePaths(resolvedRootDirectory, [], includePaths)) if (neutralizedFileLeases.has(absolutePath)) leaseCandidatePath(absolutePath);
|
|
73346
73409
|
const discoveredRelativePaths = await (options.findFiles ?? findFilesWithDisableDirectives)(resolvedRootDirectory, includePaths);
|
|
73347
73410
|
for (const absolutePath of collectNeutralizationCandidatePaths(resolvedRootDirectory, discoveredRelativePaths, includePaths)) leaseCandidatePath(absolutePath);
|
|
@@ -75704,7 +75767,7 @@ const runOxlint = async (options) => {
|
|
|
75704
75767
|
const pluginPath = resolvePluginPath();
|
|
75705
75768
|
const extendsPaths = (adoptExistingLintConfig && !customRulesOnly ? detectUserLintConfigPaths(rootDirectory) : []).filter(canOxlintExtendConfig);
|
|
75706
75769
|
const userPlugins = includedTags.size > 0 ? [] : resolveUserPlugins(userConfig?.plugins, configSourceDirectory);
|
|
75707
|
-
const restoreDisableDirectives =
|
|
75770
|
+
const restoreDisableDirectives = await neutralizeDisableDirectives(rootDirectory, includePaths ?? options.precomputedSourceFiles?.map((sourceFile) => sourceFile.path), { recoverOnly: respectInlineDisables });
|
|
75708
75771
|
const configDirectory = fs$1$3.mkdtempSync(path$1$1.join(os.tmpdir(), "react-doctor-oxlintrc-"));
|
|
75709
75772
|
const configPath = path$1$1.join(configDirectory, "oxlintrc.json");
|
|
75710
75773
|
try {
|
|
@@ -78007,4 +78070,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
78007
78070
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
78008
78071
|
|
|
78009
78072
|
//# sourceMappingURL=index.js.map
|
|
78010
|
-
//# debugId=
|
|
78073
|
+
//# debugId=7faf884e-554f-52d9-9d60-eb66987e6849
|