@savvy-web/silk 3.5.0 → 3.5.1
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/changesets-changelog.cjs +607 -495
- package/changesets-changelog.d.cts +8 -8
- package/changesets-changelog.d.ts +8 -8
- package/changesets-changelog.js +610 -498
- package/changesets-markdownlint.cjs +607 -495
- package/changesets-markdownlint.d.cts +8 -8
- package/changesets-markdownlint.d.ts +8 -8
- package/changesets-markdownlint.js +610 -498
- package/package.json +6 -6
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
|
@@ -405,7 +405,7 @@ const trimTrailingSlashes = (s) => {
|
|
|
405
405
|
};
|
|
406
406
|
|
|
407
407
|
//#endregion
|
|
408
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
408
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/limits.js
|
|
409
409
|
/** Hard cap on pattern length. Upstream minimatch's MAX_PATTERN_LENGTH (64KB). */
|
|
410
410
|
const MAX_PATTERN_LENGTH = 65536;
|
|
411
411
|
/** Default brace-expansion output budget. Upstream brace-expansion's EXPANSION_MAX. */
|
|
@@ -440,7 +440,7 @@ const assertCap = (name, value) => {
|
|
|
440
440
|
};
|
|
441
441
|
|
|
442
442
|
//#endregion
|
|
443
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
443
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/unescape.js
|
|
444
444
|
/**
|
|
445
445
|
* Un-escape a string that has been escaped with `escape`.
|
|
446
446
|
*
|
|
@@ -464,12 +464,12 @@ const unescapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = true
|
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
//#endregion
|
|
467
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
467
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/types.js
|
|
468
468
|
/** The globstar marker in a compiled pattern set. */
|
|
469
469
|
const GLOBSTAR = Symbol("globstar **");
|
|
470
470
|
|
|
471
471
|
//#endregion
|
|
472
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
472
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/escape.js
|
|
473
473
|
/**
|
|
474
474
|
* Escape all magic characters in a glob pattern.
|
|
475
475
|
*
|
|
@@ -488,14 +488,14 @@ const escapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = false
|
|
|
488
488
|
};
|
|
489
489
|
|
|
490
490
|
//#endregion
|
|
491
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
491
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/assertValidPattern.js
|
|
492
492
|
const assertValidPattern = (pattern) => {
|
|
493
493
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
494
494
|
if (pattern.length > 65536) throw new GuardExceeded("PatternTooLong", MAX_PATTERN_LENGTH, pattern.length);
|
|
495
495
|
};
|
|
496
496
|
|
|
497
497
|
//#endregion
|
|
498
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
498
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/braceExpressions.js
|
|
499
499
|
const posixClasses = {
|
|
500
500
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
501
501
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -619,7 +619,7 @@ const parseClass = (glob, position) => {
|
|
|
619
619
|
};
|
|
620
620
|
|
|
621
621
|
//#endregion
|
|
622
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
622
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/ast.js
|
|
623
623
|
const types = /* @__PURE__ */ new Set([
|
|
624
624
|
"!",
|
|
625
625
|
"?",
|
|
@@ -1137,7 +1137,7 @@ var AST = class AST {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
|
|
1139
1139
|
//#endregion
|
|
1140
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
1140
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/balancedMatch.js
|
|
1141
1141
|
const maybeMatch = (reg, str) => {
|
|
1142
1142
|
const m = str.match(reg);
|
|
1143
1143
|
return m ? m[0] : null;
|
|
@@ -1196,7 +1196,7 @@ const range = (a, b, str) => {
|
|
|
1196
1196
|
};
|
|
1197
1197
|
|
|
1198
1198
|
//#endregion
|
|
1199
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
1199
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/braceExpansion.js
|
|
1200
1200
|
const escSlash = `\0SLASH${Math.random()}\0`;
|
|
1201
1201
|
const escOpen = `\0OPEN${Math.random()}\0`;
|
|
1202
1202
|
const escClose = `\0CLOSE${Math.random()}\0`;
|
|
@@ -1344,7 +1344,7 @@ function expand_(str, max, isTopInput, depth) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
|
|
1346
1346
|
//#endregion
|
|
1347
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
1347
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/minimatch.js
|
|
1348
1348
|
const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
1349
1349
|
const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
|
|
1350
1350
|
const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
|
|
@@ -1857,9 +1857,10 @@ var Minimatch = class {
|
|
|
1857
1857
|
const next = pp[i + 1];
|
|
1858
1858
|
const prev = pp[i - 1];
|
|
1859
1859
|
if (p !== GLOBSTAR || prev === GLOBSTAR) return;
|
|
1860
|
-
if (prev === void 0)
|
|
1861
|
-
|
|
1862
|
-
|
|
1860
|
+
if (prev === void 0) {
|
|
1861
|
+
if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = `(?:\\/|${twoStar}\\/)?${next}`;
|
|
1862
|
+
else pp[i] = twoStar;
|
|
1863
|
+
} else if (next === void 0) pp[i - 1] = `${prev}(?:\\/|\\/${twoStar})?`;
|
|
1863
1864
|
else if (next !== GLOBSTAR) {
|
|
1864
1865
|
pp[i - 1] = `${prev}(?:\\/|\\/${twoStar}\\/)${next}`;
|
|
1865
1866
|
pp[i + 1] = GLOBSTAR;
|
|
@@ -1917,7 +1918,7 @@ var Minimatch = class {
|
|
|
1917
1918
|
};
|
|
1918
1919
|
|
|
1919
1920
|
//#endregion
|
|
1920
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
1921
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/GlobPattern.js
|
|
1921
1922
|
/**
|
|
1922
1923
|
* Typed failure raised when a glob pattern trips a compile-time guard:
|
|
1923
1924
|
* over-length, brace-expansion budget exhaustion, or nesting past the depth
|
|
@@ -1927,7 +1928,7 @@ var Minimatch = class {
|
|
|
1927
1928
|
*
|
|
1928
1929
|
* @public
|
|
1929
1930
|
*/
|
|
1930
|
-
var GlobPatternError = class extends Schema.
|
|
1931
|
+
var GlobPatternError = class extends Schema.TaggedError()("GlobPatternError", {
|
|
1931
1932
|
pattern: Schema.String,
|
|
1932
1933
|
reason: Schema.Literals([
|
|
1933
1934
|
"PatternTooLong",
|
|
@@ -2197,7 +2198,7 @@ var GlobPattern = class GlobPattern extends Schema.Class("GlobPattern")(Schema.S
|
|
|
2197
2198
|
};
|
|
2198
2199
|
|
|
2199
2200
|
//#endregion
|
|
2200
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
2201
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/GlobSet.js
|
|
2201
2202
|
const exclusionTarget = (pattern) => pattern.startsWith("!") ? pattern.slice(1) : void 0;
|
|
2202
2203
|
const allCompileUnderDefaults = (patterns) => {
|
|
2203
2204
|
for (const pattern of patterns) {
|
|
@@ -2352,7 +2353,7 @@ var GlobSet = class GlobSet extends Schema.Class("GlobSet")(Schema.Struct({ patt
|
|
|
2352
2353
|
};
|
|
2353
2354
|
|
|
2354
2355
|
//#endregion
|
|
2355
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
2356
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/BunExtension.js
|
|
2356
2357
|
/**
|
|
2357
2358
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2358
2359
|
* when the format is `"bun"`.
|
|
@@ -2374,7 +2375,7 @@ var BunExtension = class extends Schema.Class("BunExtension")({
|
|
|
2374
2375
|
}) {};
|
|
2375
2376
|
|
|
2376
2377
|
//#endregion
|
|
2377
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2378
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/CatalogResolver.js
|
|
2378
2379
|
/**
|
|
2379
2380
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2380
2381
|
* version ranges.
|
|
@@ -2421,7 +2422,7 @@ var CatalogResolver = class CatalogResolver extends Context.Service()("@effected
|
|
|
2421
2422
|
};
|
|
2422
2423
|
|
|
2423
2424
|
//#endregion
|
|
2424
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2425
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/WorkspaceResolver.js
|
|
2425
2426
|
/**
|
|
2426
2427
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2427
2428
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2435,7 +2436,7 @@ var CatalogResolver = class CatalogResolver extends Context.Service()("@effected
|
|
|
2435
2436
|
*
|
|
2436
2437
|
* @public
|
|
2437
2438
|
*/
|
|
2438
|
-
var DependencyResolutionError = class extends Schema.
|
|
2439
|
+
var DependencyResolutionError = class extends Schema.TaggedError()("DependencyResolutionError", {
|
|
2439
2440
|
specifier: Schema.String,
|
|
2440
2441
|
cause: Schema.Defect()
|
|
2441
2442
|
}) {
|
|
@@ -2483,7 +2484,7 @@ var WorkspaceResolver = class WorkspaceResolver extends Context.Service()("@effe
|
|
|
2483
2484
|
};
|
|
2484
2485
|
|
|
2485
2486
|
//#endregion
|
|
2486
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2487
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/CatalogAssemblyError.js
|
|
2487
2488
|
/**
|
|
2488
2489
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2489
2490
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2505,7 +2506,7 @@ var WorkspaceResolver = class WorkspaceResolver extends Context.Service()("@effe
|
|
|
2505
2506
|
*
|
|
2506
2507
|
* @public
|
|
2507
2508
|
*/
|
|
2508
|
-
var CatalogAssemblyError = class extends Schema.
|
|
2509
|
+
var CatalogAssemblyError = class extends Schema.TaggedError()("CatalogAssemblyError", {
|
|
2509
2510
|
/**
|
|
2510
2511
|
* Which input failed: `manifest` for a file-level or top-level shape problem,
|
|
2511
2512
|
* `catalog` for a malformed catalog block or the double-default duplication,
|
|
@@ -2528,7 +2529,7 @@ var CatalogAssemblyError = class extends Schema.TaggedErrorClass()("CatalogAssem
|
|
|
2528
2529
|
};
|
|
2529
2530
|
|
|
2530
2531
|
//#endregion
|
|
2531
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2532
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/DependencySection.js
|
|
2532
2533
|
/**
|
|
2533
2534
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2534
2535
|
* way consumers branch on it.
|
|
@@ -2562,7 +2563,7 @@ const KIND_TO_FIELD = {
|
|
|
2562
2563
|
const FIELD_TO_KIND = Object.fromEntries(Object.entries(KIND_TO_FIELD).map(([kind, field]) => [field, kind]));
|
|
2563
2564
|
|
|
2564
2565
|
//#endregion
|
|
2565
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
2566
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/desugar.js
|
|
2566
2567
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2567
2568
|
major,
|
|
2568
2569
|
minor,
|
|
@@ -2652,7 +2653,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2652
2653
|
};
|
|
2653
2654
|
|
|
2654
2655
|
//#endregion
|
|
2655
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
2656
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/grammar.js
|
|
2656
2657
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2657
2658
|
var ParseFailure = class {
|
|
2658
2659
|
position;
|
|
@@ -3053,7 +3054,7 @@ const formatComparator = (c) => {
|
|
|
3053
3054
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
3054
3055
|
|
|
3055
3056
|
//#endregion
|
|
3056
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3057
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/order.js
|
|
3057
3058
|
/**
|
|
3058
3059
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
3059
3060
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3107,7 +3108,7 @@ const compareBuild = (a, b) => {
|
|
|
3107
3108
|
};
|
|
3108
3109
|
|
|
3109
3110
|
//#endregion
|
|
3110
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3111
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/SemVer.js
|
|
3111
3112
|
/**
|
|
3112
3113
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3113
3114
|
*
|
|
@@ -3119,7 +3120,7 @@ const compareBuild = (a, b) => {
|
|
|
3119
3120
|
* @see {@link https://semver.org | SemVer 2.0.0 Specification}
|
|
3120
3121
|
* @public
|
|
3121
3122
|
*/
|
|
3122
|
-
var InvalidVersionError = class extends Schema.
|
|
3123
|
+
var InvalidVersionError = class extends Schema.TaggedError()("InvalidVersionError", {
|
|
3123
3124
|
/** The raw input string that failed to parse. */
|
|
3124
3125
|
input: Schema.String,
|
|
3125
3126
|
/** The character position where parsing failed, if available. */
|
|
@@ -3183,7 +3184,7 @@ var SemVer = class SemVer extends Schema.Class("SemVer")({
|
|
|
3183
3184
|
static FromString = Schema.String.pipe(Schema.decodeTo(SemVer, SchemaTransformation.transformOrFail({
|
|
3184
3185
|
decode: (input) => {
|
|
3185
3186
|
const result = parseVersion(input);
|
|
3186
|
-
return result.ok ? Effect.succeed(result.value) : Effect.fail(new SchemaIssue.InvalidValue(
|
|
3187
|
+
return result.ok ? Effect.succeed(result.value) : Effect.fail(new SchemaIssue.InvalidValue({ message: `Invalid version string: "${result.input}" at position ${result.position}` }, input));
|
|
3187
3188
|
},
|
|
3188
3189
|
encode: (parts) => Effect.succeed(formatVersion(parts))
|
|
3189
3190
|
})));
|
|
@@ -3619,7 +3620,7 @@ var SemVerBump = class {
|
|
|
3619
3620
|
};
|
|
3620
3621
|
|
|
3621
3622
|
//#endregion
|
|
3622
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3623
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/Comparator.js
|
|
3623
3624
|
/**
|
|
3624
3625
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3625
3626
|
*
|
|
@@ -3629,7 +3630,7 @@ var SemVerBump = class {
|
|
|
3629
3630
|
*
|
|
3630
3631
|
* @public
|
|
3631
3632
|
*/
|
|
3632
|
-
var InvalidComparatorError = class extends Schema.
|
|
3633
|
+
var InvalidComparatorError = class extends Schema.TaggedError()("InvalidComparatorError", {
|
|
3633
3634
|
/** The raw input string that failed to parse. */
|
|
3634
3635
|
input: Schema.String,
|
|
3635
3636
|
/** The character position where parsing failed, if available. */
|
|
@@ -3682,7 +3683,7 @@ var Comparator = class Comparator extends Schema.Class("Comparator")({
|
|
|
3682
3683
|
static FromString = Schema.String.pipe(Schema.decodeTo(Comparator, SchemaTransformation.transformOrFail({
|
|
3683
3684
|
decode: (input) => {
|
|
3684
3685
|
const result = parseComparator(input);
|
|
3685
|
-
return result.ok ? Effect.succeed(result.value) : Effect.fail(new SchemaIssue.InvalidValue(
|
|
3686
|
+
return result.ok ? Effect.succeed(result.value) : Effect.fail(new SchemaIssue.InvalidValue({ message: `Invalid comparator: "${result.input}" at position ${result.position}` }, input));
|
|
3686
3687
|
},
|
|
3687
3688
|
encode: (parts) => Effect.succeed(formatComparator(parts))
|
|
3688
3689
|
})));
|
|
@@ -3754,7 +3755,7 @@ var Comparator = class Comparator extends Schema.Class("Comparator")({
|
|
|
3754
3755
|
};
|
|
3755
3756
|
|
|
3756
3757
|
//#endregion
|
|
3757
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3758
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/normalize.js
|
|
3758
3759
|
const operatorWeight = (op) => {
|
|
3759
3760
|
switch (op) {
|
|
3760
3761
|
case ">=": return 0;
|
|
@@ -3786,7 +3787,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3786
3787
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3787
3788
|
|
|
3788
3789
|
//#endregion
|
|
3789
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3790
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/Range.js
|
|
3790
3791
|
/**
|
|
3791
3792
|
* Indicates that a string could not be parsed as a range expression.
|
|
3792
3793
|
*
|
|
@@ -3797,7 +3798,7 @@ const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
|
3797
3798
|
*
|
|
3798
3799
|
* @public
|
|
3799
3800
|
*/
|
|
3800
|
-
var InvalidRangeError = class extends Schema.
|
|
3801
|
+
var InvalidRangeError = class extends Schema.TaggedError()("InvalidRangeError", {
|
|
3801
3802
|
/** The raw input string that failed to parse. */
|
|
3802
3803
|
input: Schema.String,
|
|
3803
3804
|
/** The character position where parsing failed, if available. */
|
|
@@ -3842,7 +3843,7 @@ sets: Schema.Array(Schema.Array(Comparator)) }) {
|
|
|
3842
3843
|
static FromString = Schema.String.pipe(Schema.decodeTo(Range, SchemaTransformation.transformOrFail({
|
|
3843
3844
|
decode: (input) => {
|
|
3844
3845
|
const result = parseRange$1(input);
|
|
3845
|
-
return result.ok ? Effect.succeed({ sets: normalizeSets(result.value) }) : Effect.fail(new SchemaIssue.InvalidValue(
|
|
3846
|
+
return result.ok ? Effect.succeed({ sets: normalizeSets(result.value) }) : Effect.fail(new SchemaIssue.InvalidValue({ message: `Invalid range expression: "${result.input}" at position ${result.position}` }, input));
|
|
3846
3847
|
},
|
|
3847
3848
|
encode: (parts) => Effect.succeed(formatRange(parts.sets))
|
|
3848
3849
|
})));
|
|
@@ -4064,7 +4065,7 @@ sets: Schema.Array(Schema.Array(Comparator)) }) {
|
|
|
4064
4065
|
*
|
|
4065
4066
|
* @public
|
|
4066
4067
|
*/
|
|
4067
|
-
var UnsatisfiableConstraintError = class extends Schema.
|
|
4068
|
+
var UnsatisfiableConstraintError = class extends Schema.TaggedError()("UnsatisfiableConstraintError", {
|
|
4068
4069
|
/** The ranges whose intersection is empty. */
|
|
4069
4070
|
constraints: Schema.Array(Range$1) }) {
|
|
4070
4071
|
get message() {
|
|
@@ -4152,7 +4153,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4152
4153
|
};
|
|
4153
4154
|
|
|
4154
4155
|
//#endregion
|
|
4155
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
4156
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/DependencySpecifier.js
|
|
4156
4157
|
/**
|
|
4157
4158
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
4158
4159
|
*
|
|
@@ -4161,7 +4162,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4161
4162
|
*
|
|
4162
4163
|
* @public
|
|
4163
4164
|
*/
|
|
4164
|
-
var InvalidDependencySpecifierError = class extends Schema.
|
|
4165
|
+
var InvalidDependencySpecifierError = class extends Schema.TaggedError()("InvalidDependencySpecifierError", {
|
|
4165
4166
|
/** The raw input string that failed validation. */
|
|
4166
4167
|
input: Schema.String }) {
|
|
4167
4168
|
get message() {
|
|
@@ -4324,7 +4325,7 @@ const classify$1 = (value) => {
|
|
|
4324
4325
|
return RawSpecifier.make({ raw: value });
|
|
4325
4326
|
};
|
|
4326
4327
|
const fromString = Schema.String.pipe(Schema.decodeTo(Classified, SchemaTransformation.transformOrFail({
|
|
4327
|
-
decode: (input) => isValidDependencySpecifier(input) ? Effect.succeed(classify$1(input)) : Effect.fail(new SchemaIssue.InvalidValue(
|
|
4328
|
+
decode: (input) => isValidDependencySpecifier(input) ? Effect.succeed(classify$1(input)) : Effect.fail(new SchemaIssue.InvalidValue({ message: `Invalid dependency specifier: "${input}"` }, input)),
|
|
4328
4329
|
encode: (classified) => Effect.succeed(classified.raw)
|
|
4329
4330
|
})));
|
|
4330
4331
|
const brandedSpecifier = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => isValidDependencySpecifier(value) ? void 0 : "Expected a valid dependency specifier")), Schema.brand("DependencySpecifier"));
|
|
@@ -4360,7 +4361,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4360
4361
|
});
|
|
4361
4362
|
|
|
4362
4363
|
//#endregion
|
|
4363
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
4364
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/IntegrityHash.js
|
|
4364
4365
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4365
4366
|
const COREPACK_RE = /^(sha1|sha224|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4366
4367
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4387,7 +4388,7 @@ const algorithmOf = (value) => {
|
|
|
4387
4388
|
*
|
|
4388
4389
|
* @public
|
|
4389
4390
|
*/
|
|
4390
|
-
var InvalidIntegrityHashError = class extends Schema.
|
|
4391
|
+
var InvalidIntegrityHashError = class extends Schema.TaggedError()("InvalidIntegrityHashError", {
|
|
4391
4392
|
/** The raw input string that failed validation. */
|
|
4392
4393
|
input: Schema.String }) {
|
|
4393
4394
|
get message() {
|
|
@@ -4466,7 +4467,7 @@ const IntegrityHash = Object.assign(brandedIntegrity, {
|
|
|
4466
4467
|
const CorepackIntegrityHash = brandedIntegrity.pipe(Schema.check(Schema.makeFilter((value) => isCorepack(value) ? void 0 : "Expected a corepack (<algo>.<hex>) integrity hash")));
|
|
4467
4468
|
|
|
4468
4469
|
//#endregion
|
|
4469
|
-
//#region ../../node_modules/.pnpm/@effected+commands@0.
|
|
4470
|
+
//#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/LocalExec.js
|
|
4470
4471
|
/**
|
|
4471
4472
|
* The package managers whose project-local exec argv this package knows.
|
|
4472
4473
|
*
|
|
@@ -4585,7 +4586,7 @@ var ExecContext = class extends Schema.Class("ExecContext")({
|
|
|
4585
4586
|
*
|
|
4586
4587
|
* @public
|
|
4587
4588
|
*/
|
|
4588
|
-
var LocalExecError = class extends Schema.
|
|
4589
|
+
var LocalExecError = class extends Schema.TaggedError()("LocalExecError", {
|
|
4589
4590
|
/** The directory whose context could not be determined, when one is known. */
|
|
4590
4591
|
directory: Schema.optionalKey(Schema.String),
|
|
4591
4592
|
/** The underlying failure. */
|
|
@@ -4675,7 +4676,7 @@ var LocalExec = class LocalExec extends Context.Service()("@effected/commands/Lo
|
|
|
4675
4676
|
};
|
|
4676
4677
|
|
|
4677
4678
|
//#endregion
|
|
4678
|
-
//#region ../../node_modules/.pnpm/@effected+commands@0.
|
|
4679
|
+
//#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/Redaction.js
|
|
4679
4680
|
/**
|
|
4680
4681
|
* Argument tokens whose *following* positional (or `=`-joined value) is a
|
|
4681
4682
|
* secret. Lowercase; matching is case-insensitive.
|
|
@@ -4799,7 +4800,7 @@ var Redaction = class {
|
|
|
4799
4800
|
};
|
|
4800
4801
|
|
|
4801
4802
|
//#endregion
|
|
4802
|
-
//#region ../../node_modules/.pnpm/@effected+commands@0.
|
|
4803
|
+
//#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/internal/capture.js
|
|
4803
4804
|
/**
|
|
4804
4805
|
* Raised when a captured stream exceeds its byte budget.
|
|
4805
4806
|
*
|
|
@@ -4827,7 +4828,7 @@ const collectBounded = (stream, limit) => Effect.gen(function* () {
|
|
|
4827
4828
|
});
|
|
4828
4829
|
|
|
4829
4830
|
//#endregion
|
|
4830
|
-
//#region ../../node_modules/.pnpm/@effected+commands@0.
|
|
4831
|
+
//#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/Run.js
|
|
4831
4832
|
/**
|
|
4832
4833
|
* Default ceiling on captured bytes per stream (16 MiB).
|
|
4833
4834
|
*
|
|
@@ -4896,7 +4897,7 @@ const tail = (text) => {
|
|
|
4896
4897
|
*
|
|
4897
4898
|
* @public
|
|
4898
4899
|
*/
|
|
4899
|
-
var CommandFailedError = class CommandFailedError extends Schema.
|
|
4900
|
+
var CommandFailedError = class CommandFailedError extends Schema.TaggedError()("CommandFailedError", {
|
|
4900
4901
|
/** Why it failed. */
|
|
4901
4902
|
kind: Schema.Literals([
|
|
4902
4903
|
"nonZero",
|
|
@@ -4982,7 +4983,7 @@ var CommandFailedError = class CommandFailedError extends Schema.TaggedErrorClas
|
|
|
4982
4983
|
*
|
|
4983
4984
|
* @public
|
|
4984
4985
|
*/
|
|
4985
|
-
var CommandOutputError = class extends Schema.
|
|
4986
|
+
var CommandOutputError = class extends Schema.TaggedError()("CommandOutputError", {
|
|
4986
4987
|
/** Which way the output was unusable. */
|
|
4987
4988
|
kind: Schema.Literals([
|
|
4988
4989
|
"notJson",
|
|
@@ -5349,7 +5350,7 @@ var Run = class {
|
|
|
5349
5350
|
};
|
|
5350
5351
|
|
|
5351
5352
|
//#endregion
|
|
5352
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
5353
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/ReleaseAgeGate.js
|
|
5353
5354
|
const MS_PER_MINUTE = 6e4;
|
|
5354
5355
|
/**
|
|
5355
5356
|
* A source's partial contribution to a {@link ReleaseAgeGate}: the effective
|
|
@@ -5520,7 +5521,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends Schema.Class("ReleaseAgeGate")
|
|
|
5520
5521
|
};
|
|
5521
5522
|
|
|
5522
5523
|
//#endregion
|
|
5523
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5524
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/ImporterDependency.js
|
|
5524
5525
|
/**
|
|
5525
5526
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
5526
5527
|
*
|
|
@@ -5559,7 +5560,7 @@ var ImporterDependency = class extends Schema.Class("ImporterDependency")({
|
|
|
5559
5560
|
}) {};
|
|
5560
5561
|
|
|
5561
5562
|
//#endregion
|
|
5562
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5563
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/LockfileImporter.js
|
|
5563
5564
|
/**
|
|
5564
5565
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
5565
5566
|
*
|
|
@@ -5584,7 +5585,7 @@ var LockfileImporter = class extends Schema.Class("LockfileImporter")({
|
|
|
5584
5585
|
}) {};
|
|
5585
5586
|
|
|
5586
5587
|
//#endregion
|
|
5587
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5588
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/ResolvedPackage.js
|
|
5588
5589
|
const EMPTY_DEPENDENCIES = {};
|
|
5589
5590
|
/**
|
|
5590
5591
|
* A package resolved from a lockfile.
|
|
@@ -5620,7 +5621,7 @@ var ResolvedPackage = class extends Schema.Class("ResolvedPackage")({
|
|
|
5620
5621
|
}) {};
|
|
5621
5622
|
|
|
5622
5623
|
//#endregion
|
|
5623
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5624
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/WorkspaceDependency.js
|
|
5624
5625
|
/**
|
|
5625
5626
|
* A directed dependency edge between two workspace packages as recorded in
|
|
5626
5627
|
* the lockfile.
|
|
@@ -5643,7 +5644,7 @@ var WorkspaceDependency = class extends Schema.Class("WorkspaceDependency")({
|
|
|
5643
5644
|
}) {};
|
|
5644
5645
|
|
|
5645
5646
|
//#endregion
|
|
5646
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5647
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/PnpmExtension.js
|
|
5647
5648
|
/**
|
|
5648
5649
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
5649
5650
|
* when the format is `"pnpm"`.
|
|
@@ -5669,7 +5670,7 @@ var PnpmExtension = class extends Schema.Class("PnpmExtension")({
|
|
|
5669
5670
|
}) {};
|
|
5670
5671
|
|
|
5671
5672
|
//#endregion
|
|
5672
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5673
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/LockfileFormat.js
|
|
5673
5674
|
/**
|
|
5674
5675
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
5675
5676
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -5708,7 +5709,7 @@ const FILENAMES = {
|
|
|
5708
5709
|
const filenameFor = (format) => FILENAMES[format][0];
|
|
5709
5710
|
|
|
5710
5711
|
//#endregion
|
|
5711
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5712
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/shared.js
|
|
5712
5713
|
/**
|
|
5713
5714
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
5714
5715
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -5867,7 +5868,7 @@ const extractWorkspaceDeps = (workspaces, workspaceNames) => {
|
|
|
5867
5868
|
};
|
|
5868
5869
|
|
|
5869
5870
|
//#endregion
|
|
5870
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
5871
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/JsoncNode.js
|
|
5871
5872
|
/**
|
|
5872
5873
|
* Discriminator values for JSONC AST node types: the JSON value types
|
|
5873
5874
|
* (`string`/`number`/`boolean`/`null`), the structural types
|
|
@@ -6043,7 +6044,7 @@ function evaluateNode(node, depth) {
|
|
|
6043
6044
|
}
|
|
6044
6045
|
|
|
6045
6046
|
//#endregion
|
|
6046
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6047
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/scanner.js
|
|
6047
6048
|
const isWhitespace = (ch) => ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 65279;
|
|
6048
6049
|
const isLineBreak$1 = (ch) => ch === 10 || ch === 13 || ch === 8232 || ch === 8233;
|
|
6049
6050
|
const isDigit$1 = (ch) => ch >= 48 && ch <= 57;
|
|
@@ -6338,7 +6339,7 @@ const createScanner$2 = (text, ignoreTrivia = false) => {
|
|
|
6338
6339
|
};
|
|
6339
6340
|
|
|
6340
6341
|
//#endregion
|
|
6341
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6342
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/skip.js
|
|
6342
6343
|
/**
|
|
6343
6344
|
* Iteratively consume the value beginning at the cursor's current token and
|
|
6344
6345
|
* return its tight end offset (excludes trailing whitespace/comments).
|
|
@@ -6369,7 +6370,7 @@ const skipBalancedValue = (cursor) => {
|
|
|
6369
6370
|
};
|
|
6370
6371
|
|
|
6371
6372
|
//#endregion
|
|
6372
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6373
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/parser.js
|
|
6373
6374
|
/**
|
|
6374
6375
|
* The public parse-error code vocabulary. The facade builds its `@public`
|
|
6375
6376
|
* `JsoncParseErrorCode` schema from this array; the parser produces these codes
|
|
@@ -6783,7 +6784,7 @@ const parseTree$2 = (text, flags) => {
|
|
|
6783
6784
|
};
|
|
6784
6785
|
|
|
6785
6786
|
//#endregion
|
|
6786
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6787
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/Jsonc.js
|
|
6787
6788
|
/**
|
|
6788
6789
|
* The single public parse-error code vocabulary, appearing as the `code` field
|
|
6789
6790
|
* of {@link JsoncParseErrorDetail}.
|
|
@@ -6813,7 +6814,7 @@ var JsoncParseErrorDetail = class extends Schema.Class("JsoncParseErrorDetail")(
|
|
|
6813
6814
|
*
|
|
6814
6815
|
* @public
|
|
6815
6816
|
*/
|
|
6816
|
-
var JsoncParseError = class extends Schema.
|
|
6817
|
+
var JsoncParseError = class extends Schema.TaggedError()("JsoncParseError", {
|
|
6817
6818
|
errors: Schema.Array(JsoncParseErrorDetail),
|
|
6818
6819
|
input: Schema.String
|
|
6819
6820
|
}) {
|
|
@@ -6885,7 +6886,7 @@ var JsoncStringifyOptions = class extends Schema.Class("JsoncStringifyOptions")(
|
|
|
6885
6886
|
*
|
|
6886
6887
|
* @public
|
|
6887
6888
|
*/
|
|
6888
|
-
var JsoncStringifyError = class extends Schema.
|
|
6889
|
+
var JsoncStringifyError = class extends Schema.TaggedError()("JsoncStringifyError", {
|
|
6889
6890
|
code: JsoncStringifyErrorCode,
|
|
6890
6891
|
detail: Schema.String,
|
|
6891
6892
|
value: Schema.Unknown
|
|
@@ -7276,11 +7277,11 @@ var Jsonc = class Jsonc {
|
|
|
7276
7277
|
errors: toDetails(input, errors),
|
|
7277
7278
|
input
|
|
7278
7279
|
});
|
|
7279
|
-
return Effect.fail(new SchemaIssue.InvalidValue(
|
|
7280
|
+
return Effect.fail(new SchemaIssue.InvalidValue({ message: aggregate.message }, input));
|
|
7280
7281
|
}
|
|
7281
7282
|
return Effect.succeed(value);
|
|
7282
7283
|
},
|
|
7283
|
-
encode: (value) => Effect.fromResult(Jsonc.stringifyResult(value)).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue(
|
|
7284
|
+
encode: (value) => Effect.fromResult(Jsonc.stringifyResult(value)).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, value)))
|
|
7284
7285
|
})));
|
|
7285
7286
|
}
|
|
7286
7287
|
/**
|
|
@@ -7352,7 +7353,7 @@ var Jsonc = class Jsonc {
|
|
|
7352
7353
|
};
|
|
7353
7354
|
|
|
7354
7355
|
//#endregion
|
|
7355
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
7356
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/JsoncEdit.js
|
|
7356
7357
|
/**
|
|
7357
7358
|
* A range within a JSONC document, expressed as a zero-based character
|
|
7358
7359
|
* `offset` and a `length` in UTF-16 code units. Pass to `JsoncFormatter.format`
|
|
@@ -7423,7 +7424,7 @@ var JsoncEdit = class extends Schema.Class("JsoncEdit")({
|
|
|
7423
7424
|
};
|
|
7424
7425
|
|
|
7425
7426
|
//#endregion
|
|
7426
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
7427
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/navigate.js
|
|
7427
7428
|
/**
|
|
7428
7429
|
* Resolve `path` against `text`, returning where the target is (or where it
|
|
7429
7430
|
* would be inserted). `path` must be non-empty — the whole-document case is
|
|
@@ -7551,7 +7552,7 @@ function navigate(text, path) {
|
|
|
7551
7552
|
}
|
|
7552
7553
|
|
|
7553
7554
|
//#endregion
|
|
7554
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
7555
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/JsoncModifier.js
|
|
7555
7556
|
/**
|
|
7556
7557
|
* Raised when `JsoncModifier.modify` cannot navigate the requested path: the
|
|
7557
7558
|
* value at `depth` is not the container kind (`expected`) the next path segment
|
|
@@ -7575,7 +7576,7 @@ function navigate(text, path) {
|
|
|
7575
7576
|
*
|
|
7576
7577
|
* @public
|
|
7577
7578
|
*/
|
|
7578
|
-
var JsoncModificationError = class extends Schema.
|
|
7579
|
+
var JsoncModificationError = class extends Schema.TaggedError()("JsoncModificationError", {
|
|
7579
7580
|
path: Schema.Array(Schema.Union([Schema.String, Schema.Number])),
|
|
7580
7581
|
expected: Schema.Literals(["object", "array"]),
|
|
7581
7582
|
depth: Schema.Number,
|
|
@@ -7680,7 +7681,7 @@ var JsoncModifier = class {
|
|
|
7680
7681
|
};
|
|
7681
7682
|
|
|
7682
7683
|
//#endregion
|
|
7683
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
7684
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/bun.js
|
|
7684
7685
|
const DepRecord$2 = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
7685
7686
|
const BunWorkspaceEntry = Schema.Struct({
|
|
7686
7687
|
name: Schema.optionalKey(Schema.String),
|
|
@@ -7774,7 +7775,7 @@ const toFields$3 = (raw) => Effect.gen(function* () {
|
|
|
7774
7775
|
});
|
|
7775
7776
|
|
|
7776
7777
|
//#endregion
|
|
7777
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
7778
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/npm.js
|
|
7778
7779
|
const DepRecord$1 = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
7779
7780
|
const NpmPackageEntry = Schema.Struct({
|
|
7780
7781
|
name: Schema.optionalKey(Schema.String),
|
|
@@ -7873,7 +7874,7 @@ const toFields$2 = (raw) => Effect.gen(function* () {
|
|
|
7873
7874
|
});
|
|
7874
7875
|
|
|
7875
7876
|
//#endregion
|
|
7876
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
7877
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/YamlNode.js
|
|
7877
7878
|
/**
|
|
7878
7879
|
* YAML scalar presentation styles.
|
|
7879
7880
|
*
|
|
@@ -8276,7 +8277,7 @@ function nodeToValue(node, anchors, budget, counting = false) {
|
|
|
8276
8277
|
}
|
|
8277
8278
|
|
|
8278
8279
|
//#endregion
|
|
8279
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8280
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/diagnostics.js
|
|
8280
8281
|
/** Error codes emitted by the lexer stage. */
|
|
8281
8282
|
const YAML_LEX_ERROR_CODES = [
|
|
8282
8283
|
"UnexpectedCharacter",
|
|
@@ -8355,7 +8356,7 @@ function isFatalCode(code) {
|
|
|
8355
8356
|
}
|
|
8356
8357
|
|
|
8357
8358
|
//#endregion
|
|
8358
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8359
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/YamlDiagnostic.js
|
|
8359
8360
|
/**
|
|
8360
8361
|
* Error codes emitted by the lexer stage.
|
|
8361
8362
|
*
|
|
@@ -8477,7 +8478,7 @@ function lineChar(text, offset) {
|
|
|
8477
8478
|
}
|
|
8478
8479
|
|
|
8479
8480
|
//#endregion
|
|
8480
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8481
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/anchors.js
|
|
8481
8482
|
/**
|
|
8482
8483
|
* Check if a pending anchor is being applied to an alias node (invalid in YAML 1.2 §3.2.2).
|
|
8483
8484
|
* Aliases represent references to existing anchored nodes and cannot have their own anchors.
|
|
@@ -8571,7 +8572,7 @@ function collectAnchors(node, anchors) {
|
|
|
8571
8572
|
}
|
|
8572
8573
|
|
|
8573
8574
|
//#endregion
|
|
8574
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8575
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/lexer.js
|
|
8575
8576
|
/**
|
|
8576
8577
|
* Create a new YAML scanner for the given source text.
|
|
8577
8578
|
*
|
|
@@ -8789,14 +8790,15 @@ function createScanner$1(text) {
|
|
|
8789
8790
|
let value = "";
|
|
8790
8791
|
while (pos < text.length) {
|
|
8791
8792
|
const ch = peek();
|
|
8792
|
-
if (ch === "'")
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8793
|
+
if (ch === "'") {
|
|
8794
|
+
if (peek(1) === "'") {
|
|
8795
|
+
value += "'";
|
|
8796
|
+
advance(2);
|
|
8797
|
+
} else {
|
|
8798
|
+
advance();
|
|
8799
|
+
return makeToken("scalar", value, start, sLine, sCol, pos - start);
|
|
8800
|
+
}
|
|
8801
|
+
} else if (ch === "\n" || ch === "\r" && peek(1) === "\n") {
|
|
8800
8802
|
value += " ";
|
|
8801
8803
|
if (ch === "\r") advance(2);
|
|
8802
8804
|
else advance();
|
|
@@ -8975,13 +8977,17 @@ function createScanner$1(text) {
|
|
|
8975
8977
|
hadHeaderWhitespace = true;
|
|
8976
8978
|
advance();
|
|
8977
8979
|
}
|
|
8978
|
-
if (pos < text.length && !isNewline(peek()) && peek() !== "")
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8980
|
+
if (pos < text.length && !isNewline(peek()) && peek() !== "") {
|
|
8981
|
+
if (peek() === "#" && hadHeaderWhitespace) while (pos < text.length && !isNewline(peek())) advance();
|
|
8982
|
+
else {
|
|
8983
|
+
while (pos < text.length && !isNewline(peek())) advance();
|
|
8984
|
+
return makeToken("error", text.slice(start, pos), start, sLine, sCol);
|
|
8985
|
+
}
|
|
8986
|
+
}
|
|
8987
|
+
if (pos < text.length && isNewline(peek())) {
|
|
8988
|
+
if (peek() === "\r" && peek(1) === "\n") advance(2);
|
|
8989
|
+
else advance();
|
|
8982
8990
|
}
|
|
8983
|
-
if (pos < text.length && isNewline(peek())) if (peek() === "\r" && peek(1) === "\n") advance(2);
|
|
8984
|
-
else advance();
|
|
8985
8991
|
let contentIndent = explicitIndent;
|
|
8986
8992
|
let foundContent = explicitIndent > 0;
|
|
8987
8993
|
if (explicitIndent > 0) {
|
|
@@ -9137,9 +9143,10 @@ function createScanner$1(text) {
|
|
|
9137
9143
|
prevMoreIndented = isMoreIndented;
|
|
9138
9144
|
hadContent = true;
|
|
9139
9145
|
} else {
|
|
9140
|
-
if (result[result.length - 1] === "\n")
|
|
9141
|
-
|
|
9142
|
-
|
|
9146
|
+
if (result[result.length - 1] === "\n") {
|
|
9147
|
+
if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
|
|
9148
|
+
else result += ln;
|
|
9149
|
+
} else if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
|
|
9143
9150
|
else result += ` ${ln}`;
|
|
9144
9151
|
prevMoreIndented = isMoreIndented;
|
|
9145
9152
|
}
|
|
@@ -9529,7 +9536,7 @@ function lexAll(text) {
|
|
|
9529
9536
|
}
|
|
9530
9537
|
|
|
9531
9538
|
//#endregion
|
|
9532
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
9539
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/cst-parser.js
|
|
9533
9540
|
/**
|
|
9534
9541
|
* Hardening: cap CST nesting so hostile inputs cannot overflow the stack
|
|
9535
9542
|
* while the tree is being BUILT. Set slightly above the composer's
|
|
@@ -9815,12 +9822,14 @@ function parseBlockMappingInner(state, indent) {
|
|
|
9815
9822
|
continue;
|
|
9816
9823
|
}
|
|
9817
9824
|
if (token.kind === "block-map-key") {
|
|
9825
|
+
if (token.column < indent && children.length > 0) break;
|
|
9818
9826
|
sawExplicitKey = true;
|
|
9819
9827
|
const leaf = consumeLeafToken(state);
|
|
9820
9828
|
if (leaf) children.push(leaf);
|
|
9821
9829
|
continue;
|
|
9822
9830
|
}
|
|
9823
9831
|
if (token.kind === "block-map-value") {
|
|
9832
|
+
if (token.column < indent && children.length > 0) break;
|
|
9824
9833
|
const leaf = consumeLeafToken(state);
|
|
9825
9834
|
if (leaf) children.push(leaf);
|
|
9826
9835
|
children.push(...parseBlockValue(state, indent, sawExplicitKey));
|
|
@@ -9886,7 +9895,7 @@ function parseBlockMappingInner(state, indent) {
|
|
|
9886
9895
|
/**
|
|
9887
9896
|
* Parse the value part after a ":" in a block mapping.
|
|
9888
9897
|
*/
|
|
9889
|
-
function parseBlockValue(state,
|
|
9898
|
+
function parseBlockValue(state, parentIndent, explicitKey = false) {
|
|
9890
9899
|
const nodes = [];
|
|
9891
9900
|
while (!atEnd(state)) {
|
|
9892
9901
|
const token = peek(state);
|
|
@@ -9914,6 +9923,10 @@ function parseBlockValue(state, _parentIndent, explicitKey = false) {
|
|
|
9914
9923
|
nodes.push(parseBlockSequence(state, seqIndent));
|
|
9915
9924
|
break;
|
|
9916
9925
|
}
|
|
9926
|
+
if (explicitKey && token.kind === "scalar" && !isBlockScalarToken(state) && hasImplicitMapAhead(state, parentIndent)) {
|
|
9927
|
+
nodes.push(parseImplicitBlockMapping(state, parentIndent));
|
|
9928
|
+
break;
|
|
9929
|
+
}
|
|
9917
9930
|
if (token.kind === "scalar" || token.kind === "anchor" || token.kind === "alias" || token.kind === "tag") {
|
|
9918
9931
|
const leaf = consumeLeafToken(state);
|
|
9919
9932
|
if (leaf) nodes.push(leaf);
|
|
@@ -10069,11 +10082,13 @@ function parseImplicitBlockMappingInner(state, seqIndent) {
|
|
|
10069
10082
|
if (!token) break;
|
|
10070
10083
|
if (isDocumentBoundary(token)) break;
|
|
10071
10084
|
if (token.kind === "block-seq-entry" && token.column <= seqIndent) break;
|
|
10085
|
+
if (token.kind === "block-map-key" && token.column <= seqIndent) break;
|
|
10072
10086
|
if (isTrivia(token)) {
|
|
10073
10087
|
children.push(...consumeTrivia(state));
|
|
10074
10088
|
continue;
|
|
10075
10089
|
}
|
|
10076
10090
|
if (token.kind === "block-map-value") {
|
|
10091
|
+
if (token.column <= seqIndent && children.length > 0) break;
|
|
10077
10092
|
const leaf = consumeLeafToken(state);
|
|
10078
10093
|
if (leaf) children.push(leaf);
|
|
10079
10094
|
children.push(...parseBlockValue(state, seqIndent));
|
|
@@ -10242,7 +10257,7 @@ function parseCSTAll(text) {
|
|
|
10242
10257
|
}
|
|
10243
10258
|
|
|
10244
10259
|
//#endregion
|
|
10245
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
10260
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/state.js
|
|
10246
10261
|
let lineStartsText;
|
|
10247
10262
|
let lineStartsCache = [];
|
|
10248
10263
|
function getLineStarts(text) {
|
|
@@ -10349,7 +10364,7 @@ function exitNesting(state) {
|
|
|
10349
10364
|
}
|
|
10350
10365
|
|
|
10351
10366
|
//#endregion
|
|
10352
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
10367
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/tags.js
|
|
10353
10368
|
/**
|
|
10354
10369
|
* Resolve a tag shorthand using the document's %TAG directives.
|
|
10355
10370
|
* For example, with `%TAG !! tag:example.com,2000:app/`, the tag `!!int`
|
|
@@ -10436,7 +10451,7 @@ function validateTagHandlesInDocument(docCst, state) {
|
|
|
10436
10451
|
}
|
|
10437
10452
|
|
|
10438
10453
|
//#endregion
|
|
10439
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
10454
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/scalars.js
|
|
10440
10455
|
const NULL_RE$1 = /^(?:null|Null|NULL|~)$/;
|
|
10441
10456
|
const TRUE_RE$1 = /^(?:true|True|TRUE)$/;
|
|
10442
10457
|
const FALSE_RE$1 = /^(?:false|False|FALSE)$/;
|
|
@@ -10698,10 +10713,11 @@ function foldFlowLines(text) {
|
|
|
10698
10713
|
}
|
|
10699
10714
|
const isLast = i === lines.length - 1;
|
|
10700
10715
|
const trimmed = isLast ? line.trimStart() : line.trim();
|
|
10701
|
-
if (trimmed === "")
|
|
10702
|
-
if (
|
|
10703
|
-
|
|
10704
|
-
|
|
10716
|
+
if (trimmed === "") {
|
|
10717
|
+
if (isLast) {
|
|
10718
|
+
if (result.length === 0 || result[result.length - 1] !== "\n") result += " ";
|
|
10719
|
+
} else result += "\n";
|
|
10720
|
+
} else {
|
|
10705
10721
|
if (result.length > 0 && result[result.length - 1] !== "\n") result += " ";
|
|
10706
10722
|
result += trimmed;
|
|
10707
10723
|
}
|
|
@@ -11114,8 +11130,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
|
|
|
11114
11130
|
} else break;
|
|
11115
11131
|
}
|
|
11116
11132
|
while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
|
|
11117
|
-
if (i < raw.length)
|
|
11118
|
-
|
|
11133
|
+
if (i < raw.length) {
|
|
11134
|
+
if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
|
|
11135
|
+
else i++;
|
|
11136
|
+
}
|
|
11119
11137
|
let contentIndent = explicitIndent;
|
|
11120
11138
|
let foundContent = explicitIndent > 0;
|
|
11121
11139
|
if (explicitIndent > 0 && fullText !== void 0 && nodeOffset !== void 0) {
|
|
@@ -11178,8 +11196,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
|
|
|
11178
11196
|
trailingNewlines.length = 0;
|
|
11179
11197
|
lines.push(" ".repeat(spaces - contentIndent));
|
|
11180
11198
|
} else trailingNewlines.push("");
|
|
11181
|
-
if (i < raw.length)
|
|
11182
|
-
|
|
11199
|
+
if (i < raw.length) {
|
|
11200
|
+
if (raw[i] === "\r" && i + 1 < raw.length && raw[i + 1] === "\n") i += 2;
|
|
11201
|
+
else i++;
|
|
11202
|
+
}
|
|
11183
11203
|
continue;
|
|
11184
11204
|
}
|
|
11185
11205
|
if (spaces < contentIndent) break;
|
|
@@ -11189,8 +11209,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
|
|
|
11189
11209
|
const contentStart = i;
|
|
11190
11210
|
while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
|
|
11191
11211
|
lines.push(extra + raw.slice(contentStart, i));
|
|
11192
|
-
if (i < raw.length)
|
|
11193
|
-
|
|
11212
|
+
if (i < raw.length) {
|
|
11213
|
+
if (raw[i] === "\r" && i + 1 < raw.length && raw[i + 1] === "\n") i += 2;
|
|
11214
|
+
else i++;
|
|
11215
|
+
}
|
|
11194
11216
|
}
|
|
11195
11217
|
let value;
|
|
11196
11218
|
if (isFolded) {
|
|
@@ -11206,9 +11228,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
|
|
|
11206
11228
|
prevMoreIndented = isMoreIndented;
|
|
11207
11229
|
hadContent = true;
|
|
11208
11230
|
} else {
|
|
11209
|
-
if (result[result.length - 1] === "\n")
|
|
11210
|
-
|
|
11211
|
-
|
|
11231
|
+
if (result[result.length - 1] === "\n") {
|
|
11232
|
+
if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
|
|
11233
|
+
else result += ln;
|
|
11234
|
+
} else if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
|
|
11212
11235
|
else result += ` ${ln}`;
|
|
11213
11236
|
prevMoreIndented = isMoreIndented;
|
|
11214
11237
|
}
|
|
@@ -11242,8 +11265,10 @@ function validateBlockScalarLeadingEmpties(cst, state) {
|
|
|
11242
11265
|
const raw = cst.source;
|
|
11243
11266
|
let i = 0;
|
|
11244
11267
|
while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
|
|
11245
|
-
if (i < raw.length)
|
|
11246
|
-
|
|
11268
|
+
if (i < raw.length) {
|
|
11269
|
+
if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
|
|
11270
|
+
else i++;
|
|
11271
|
+
}
|
|
11247
11272
|
const emptyIndents = [];
|
|
11248
11273
|
while (i < raw.length) {
|
|
11249
11274
|
const lineStart = i;
|
|
@@ -11257,8 +11282,10 @@ function validateBlockScalarLeadingEmpties(cst, state) {
|
|
|
11257
11282
|
indent: spaces,
|
|
11258
11283
|
offsetInRaw: lineStart
|
|
11259
11284
|
});
|
|
11260
|
-
if (i < raw.length)
|
|
11261
|
-
|
|
11285
|
+
if (i < raw.length) {
|
|
11286
|
+
if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
|
|
11287
|
+
else i++;
|
|
11288
|
+
}
|
|
11262
11289
|
continue;
|
|
11263
11290
|
}
|
|
11264
11291
|
const contentIndent = spaces;
|
|
@@ -11315,7 +11342,7 @@ function shouldPreserveRaw(rawValue, value) {
|
|
|
11315
11342
|
}
|
|
11316
11343
|
|
|
11317
11344
|
//#endregion
|
|
11318
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
11345
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/block.js
|
|
11319
11346
|
/**
|
|
11320
11347
|
* Compose a block map from its CST children, with an optional external first key.
|
|
11321
11348
|
*
|
|
@@ -11820,7 +11847,7 @@ function buildPairs(items, pairs, text) {
|
|
|
11820
11847
|
const nullKey = new YamlScalar({
|
|
11821
11848
|
value: null,
|
|
11822
11849
|
style: "plain",
|
|
11823
|
-
offset:
|
|
11850
|
+
offset: valueSepOffset,
|
|
11824
11851
|
length: 0
|
|
11825
11852
|
});
|
|
11826
11853
|
pairs.push(new YamlPair({
|
|
@@ -11832,7 +11859,7 @@ function buildPairs(items, pairs, text) {
|
|
|
11832
11859
|
const nullKey = new YamlScalar({
|
|
11833
11860
|
value: null,
|
|
11834
11861
|
style: "plain",
|
|
11835
|
-
offset:
|
|
11862
|
+
offset: valueSepOffset,
|
|
11836
11863
|
length: 0
|
|
11837
11864
|
});
|
|
11838
11865
|
pairs.push(new YamlPair({
|
|
@@ -12475,7 +12502,7 @@ function composeFlatBlockMap(children, startIdx, parentCst, state, externalFirst
|
|
|
12475
12502
|
}
|
|
12476
12503
|
|
|
12477
12504
|
//#endregion
|
|
12478
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
12505
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/flow.js
|
|
12479
12506
|
/**
|
|
12480
12507
|
* Validate that flow collection entries are separated by commas.
|
|
12481
12508
|
*
|
|
@@ -12874,7 +12901,7 @@ function composeFlowSeqInner(cst, state, meta, parentBlockColumn) {
|
|
|
12874
12901
|
}
|
|
12875
12902
|
|
|
12876
12903
|
//#endregion
|
|
12877
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
12904
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/document.js
|
|
12878
12905
|
/** The flow-composer dispatch wired into every state this module creates. */
|
|
12879
12906
|
const FLOW = {
|
|
12880
12907
|
composeFlowMap,
|
|
@@ -13541,7 +13568,7 @@ function composeAllDocuments(text, options) {
|
|
|
13541
13568
|
}
|
|
13542
13569
|
|
|
13543
13570
|
//#endregion
|
|
13544
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
13571
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/fold.js
|
|
13545
13572
|
/**
|
|
13546
13573
|
* Column-based line folding for a single logical scalar line (YAML 1.2 flow
|
|
13547
13574
|
* folding, §7.3 / §8.2.1). Breaks the content at "safe" single-space
|
|
@@ -13778,7 +13805,7 @@ function renderBlockFolded(s, indent) {
|
|
|
13778
13805
|
}
|
|
13779
13806
|
|
|
13780
13807
|
//#endregion
|
|
13781
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
13808
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/stringifier.js
|
|
13782
13809
|
/**
|
|
13783
13810
|
* Thrown by the stringifier on its failure paths (circular references). The
|
|
13784
13811
|
* facade catches this and materializes the public stringify error.
|
|
@@ -13875,10 +13902,12 @@ function requiresQuoting(s, ignoreType = false) {
|
|
|
13875
13902
|
if (!ignoreType && wouldBeResolved(s)) return true;
|
|
13876
13903
|
const first = s[0];
|
|
13877
13904
|
if (first === " " || first === " ") return true;
|
|
13878
|
-
if (first !== void 0 && INDICATOR_CHARS.has(first))
|
|
13879
|
-
|
|
13880
|
-
|
|
13881
|
-
|
|
13905
|
+
if (first !== void 0 && INDICATOR_CHARS.has(first)) {
|
|
13906
|
+
if (first === ":" || first === "?" || first === "-") {
|
|
13907
|
+
const second = s[1];
|
|
13908
|
+
if (s.length === 1 || second === " " || second === " ") return true;
|
|
13909
|
+
} else return true;
|
|
13910
|
+
}
|
|
13882
13911
|
if (s.startsWith("---") || s.startsWith("...")) return true;
|
|
13883
13912
|
if (s.includes(": ") || s.includes(": ") || s.endsWith(":")) return true;
|
|
13884
13913
|
if (s.includes(" #") || s.includes(" #")) return true;
|
|
@@ -13909,14 +13938,15 @@ function renderDoubleQuoted(s, canonical = false) {
|
|
|
13909
13938
|
let result = "";
|
|
13910
13939
|
for (let i = 0; i < escaped.length; i++) {
|
|
13911
13940
|
const code = escaped.charCodeAt(i);
|
|
13912
|
-
if (isControlChar(code))
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
|
|
13918
|
-
|
|
13919
|
-
|
|
13941
|
+
if (isControlChar(code)) {
|
|
13942
|
+
if (code === 0) result += "\\0";
|
|
13943
|
+
else if (code === 7) result += "\\a";
|
|
13944
|
+
else if (code === 8) result += "\\b";
|
|
13945
|
+
else if (code === 11) result += "\\v";
|
|
13946
|
+
else if (code === 12) result += "\\f";
|
|
13947
|
+
else if (code === 27) result += "\\e";
|
|
13948
|
+
else result += `\\x${code.toString(16).padStart(2, "0")}`;
|
|
13949
|
+
} else if (canonical && code > 126) {
|
|
13920
13950
|
if (code >= 55296 && code <= 56319 && i + 1 < escaped.length) {
|
|
13921
13951
|
const low = escaped.charCodeAt(i + 1);
|
|
13922
13952
|
if (low >= 56320 && low <= 57343) {
|
|
@@ -14150,7 +14180,7 @@ function stringifyValue(value, options) {
|
|
|
14150
14180
|
}
|
|
14151
14181
|
|
|
14152
14182
|
//#endregion
|
|
14153
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
14183
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/Yaml.js
|
|
14154
14184
|
/**
|
|
14155
14185
|
* Options controlling parse behavior. All fields are omissible; absent fields
|
|
14156
14186
|
* resolve to `strict` `true`, `maxAliasCount` `100` (the alias-based
|
|
@@ -14270,7 +14300,7 @@ var YamlStringifyOptions = class extends Schema.Class("YamlStringifyOptions")({
|
|
|
14270
14300
|
*
|
|
14271
14301
|
* @public
|
|
14272
14302
|
*/
|
|
14273
|
-
var YamlParseError = class extends Schema.
|
|
14303
|
+
var YamlParseError = class extends Schema.TaggedError()("YamlParseError", {
|
|
14274
14304
|
diagnostics: Schema.Array(YamlDiagnostic),
|
|
14275
14305
|
input: Schema.String
|
|
14276
14306
|
}) {
|
|
@@ -14288,7 +14318,7 @@ var YamlParseError = class extends Schema.TaggedErrorClass()("YamlParseError", {
|
|
|
14288
14318
|
*
|
|
14289
14319
|
* @public
|
|
14290
14320
|
*/
|
|
14291
|
-
var YamlStringifyError = class extends Schema.
|
|
14321
|
+
var YamlStringifyError = class extends Schema.TaggedError()("YamlStringifyError", {
|
|
14292
14322
|
diagnostics: Schema.Array(YamlDiagnostic),
|
|
14293
14323
|
value: Schema.Unknown
|
|
14294
14324
|
}) {
|
|
@@ -14660,8 +14690,8 @@ var Yaml = class Yaml {
|
|
|
14660
14690
|
*/
|
|
14661
14691
|
static fromString(options) {
|
|
14662
14692
|
return Schema.String.pipe(Schema.decodeTo(Schema.Unknown, SchemaTransformation.transformOrFail({
|
|
14663
|
-
decode: (input) => Yaml.parse(input, options).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue(
|
|
14664
|
-
encode: (value) => stringifyOrFail(value).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue(
|
|
14693
|
+
decode: (input) => Yaml.parse(input, options).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, input))),
|
|
14694
|
+
encode: (value) => stringifyOrFail(value).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, value)))
|
|
14665
14695
|
})));
|
|
14666
14696
|
}
|
|
14667
14697
|
/**
|
|
@@ -14680,12 +14710,12 @@ var Yaml = class Yaml {
|
|
|
14680
14710
|
*/
|
|
14681
14711
|
static allFromString(options) {
|
|
14682
14712
|
return Schema.String.pipe(Schema.decodeTo(Schema.Array(Schema.Unknown), SchemaTransformation.transformOrFail({
|
|
14683
|
-
decode: (input) => Yaml.parseAll(input, options).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue(
|
|
14713
|
+
decode: (input) => Yaml.parseAll(input, options).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, input))),
|
|
14684
14714
|
encode: (values) => Effect.gen(function* () {
|
|
14685
14715
|
if (values.length === 0) return "";
|
|
14686
14716
|
const parts = [];
|
|
14687
14717
|
for (let index = 0; index < values.length; index++) {
|
|
14688
|
-
const yaml = yield* stringifyOrFail(values[index]).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue(
|
|
14718
|
+
const yaml = yield* stringifyOrFail(values[index]).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, values)));
|
|
14689
14719
|
parts.push(index > 0 ? `---\n${yaml}` : yaml);
|
|
14690
14720
|
}
|
|
14691
14721
|
return parts.join("");
|
|
@@ -14802,7 +14832,7 @@ function deepEqualValues(a, b) {
|
|
|
14802
14832
|
}
|
|
14803
14833
|
|
|
14804
14834
|
//#endregion
|
|
14805
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
14835
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/documents.js
|
|
14806
14836
|
/**
|
|
14807
14837
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
14808
14838
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -14873,7 +14903,7 @@ const selectSoleDocument = (content) => Effect.gen(function* () {
|
|
|
14873
14903
|
});
|
|
14874
14904
|
|
|
14875
14905
|
//#endregion
|
|
14876
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
14906
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/pnpm.js
|
|
14877
14907
|
const PnpmImporterDeps = Schema.optionalKey(Schema.Record(Schema.String, Schema.Struct({
|
|
14878
14908
|
specifier: Schema.String,
|
|
14879
14909
|
version: Schema.String
|
|
@@ -14999,7 +15029,7 @@ const toFields$1 = (raw) => Effect.gen(function* () {
|
|
|
14999
15029
|
});
|
|
15000
15030
|
|
|
15001
15031
|
//#endregion
|
|
15002
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
15032
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/yarn.js
|
|
15003
15033
|
const YarnLockfileRaw = Schema.Record(Schema.String, Schema.Unknown);
|
|
15004
15034
|
const DepRecord = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
15005
15035
|
const YarnEntry = Schema.Struct({
|
|
@@ -15123,7 +15153,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
15123
15153
|
};
|
|
15124
15154
|
|
|
15125
15155
|
//#endregion
|
|
15126
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
15156
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/Lockfile.js
|
|
15127
15157
|
const EMPTY_IMPORTERS = [];
|
|
15128
15158
|
/**
|
|
15129
15159
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -15143,7 +15173,7 @@ const EMPTY_IMPORTERS = [];
|
|
|
15143
15173
|
*
|
|
15144
15174
|
* @public
|
|
15145
15175
|
*/
|
|
15146
|
-
var LockfileParseError = class extends Schema.
|
|
15176
|
+
var LockfileParseError = class extends Schema.TaggedError()("LockfileParseError", {
|
|
15147
15177
|
format: LockfileFormat,
|
|
15148
15178
|
stage: Schema.Literals(["syntax", "validation"]),
|
|
15149
15179
|
cause: Schema.Defect()
|
|
@@ -15184,7 +15214,7 @@ var LockfileParseError = class extends Schema.TaggedErrorClass()("LockfileParseE
|
|
|
15184
15214
|
*
|
|
15185
15215
|
* @public
|
|
15186
15216
|
*/
|
|
15187
|
-
var LockfileFramingError = class extends Schema.
|
|
15217
|
+
var LockfileFramingError = class extends Schema.TaggedError()("LockfileFramingError", {
|
|
15188
15218
|
format: LockfileFormat,
|
|
15189
15219
|
reason: Schema.Literals([
|
|
15190
15220
|
"noLockfileDocument",
|
|
@@ -15368,7 +15398,7 @@ var Lockfile = class Lockfile extends Schema.Class("Lockfile")({
|
|
|
15368
15398
|
};
|
|
15369
15399
|
|
|
15370
15400
|
//#endregion
|
|
15371
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
15401
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/LockfileIntegrity.js
|
|
15372
15402
|
/**
|
|
15373
15403
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
15374
15404
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -15485,7 +15515,7 @@ var LockfileIntegrity = class LockfileIntegrity extends Schema.Class("LockfileIn
|
|
|
15485
15515
|
};
|
|
15486
15516
|
|
|
15487
15517
|
//#endregion
|
|
15488
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
15518
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Dependency.js
|
|
15489
15519
|
/**
|
|
15490
15520
|
* A resolved dependency entry pairing a package name with its version
|
|
15491
15521
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -15550,7 +15580,7 @@ var Dependency = class extends Schema.Class("Dependency")({
|
|
|
15550
15580
|
};
|
|
15551
15581
|
|
|
15552
15582
|
//#endregion
|
|
15553
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
15583
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/DevEngines.js
|
|
15554
15584
|
/**
|
|
15555
15585
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
15556
15586
|
*
|
|
@@ -15589,7 +15619,7 @@ const DevEnginesSchema = Schema.Struct({
|
|
|
15589
15619
|
});
|
|
15590
15620
|
|
|
15591
15621
|
//#endregion
|
|
15592
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
15622
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/licenseIds.js
|
|
15593
15623
|
/** @internal */
|
|
15594
15624
|
const ACTIVE_LICENSE_IDS = [
|
|
15595
15625
|
"0BSD",
|
|
@@ -16323,7 +16353,7 @@ const LICENSE_IDS = new Set(ACTIVE_LICENSE_IDS);
|
|
|
16323
16353
|
const DEPRECATED_LICENSE_IDS = new Set(DEPRECATED_LICENSE_ID_LIST);
|
|
16324
16354
|
|
|
16325
16355
|
//#endregion
|
|
16326
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16356
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/License.js
|
|
16327
16357
|
/**
|
|
16328
16358
|
* Indicates that a string is not a valid SPDX expression fragment: an
|
|
16329
16359
|
* unrecognized license or exception identifier, or a malformed
|
|
@@ -16338,7 +16368,7 @@ const DEPRECATED_LICENSE_IDS = new Set(DEPRECATED_LICENSE_ID_LIST);
|
|
|
16338
16368
|
* @see {@link https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/ | SPDX License Expressions}
|
|
16339
16369
|
* @public
|
|
16340
16370
|
*/
|
|
16341
|
-
var InvalidSpdxExpressionError = class extends Schema.
|
|
16371
|
+
var InvalidSpdxExpressionError = class extends Schema.TaggedError()("InvalidSpdxExpressionError", {
|
|
16342
16372
|
/** The raw input string that failed to validate. */
|
|
16343
16373
|
input: Schema.String }) {
|
|
16344
16374
|
get message() {
|
|
@@ -16493,7 +16523,7 @@ var License = class License extends Schema.Class("License")({
|
|
|
16493
16523
|
};
|
|
16494
16524
|
|
|
16495
16525
|
//#endregion
|
|
16496
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16526
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/exceptions.js
|
|
16497
16527
|
/** @internal */
|
|
16498
16528
|
const ACTIVE_EXCEPTION_IDS = [
|
|
16499
16529
|
"389-exception",
|
|
@@ -16571,7 +16601,7 @@ const EXCEPTION_IDS = new Set(ACTIVE_EXCEPTION_IDS);
|
|
|
16571
16601
|
const DEPRECATED_EXCEPTION_IDS = new Set(DEPRECATED_EXCEPTION_ID_LIST);
|
|
16572
16602
|
|
|
16573
16603
|
//#endregion
|
|
16574
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16604
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/LicenseException.js
|
|
16575
16605
|
/**
|
|
16576
16606
|
* A validated SPDX license-exception identifier: an Effect `Schema.Class` whose
|
|
16577
16607
|
* `id` is a member of the SPDX exception list. The class doubles as its own
|
|
@@ -16692,7 +16722,7 @@ var LicenseException = class LicenseException extends Schema.Class("LicenseExcep
|
|
|
16692
16722
|
};
|
|
16693
16723
|
|
|
16694
16724
|
//#endregion
|
|
16695
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16725
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/parser.js
|
|
16696
16726
|
const TOKEN_OPEN_PAREN = 0;
|
|
16697
16727
|
const TOKEN_CLOSE_PAREN = 1;
|
|
16698
16728
|
const TOKEN_PLUS = 2;
|
|
@@ -16922,7 +16952,7 @@ function parse$2(input) {
|
|
|
16922
16952
|
}
|
|
16923
16953
|
|
|
16924
16954
|
//#endregion
|
|
16925
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16955
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/SpdxExpression.js
|
|
16926
16956
|
/**
|
|
16927
16957
|
* Serialize a tagged SPDX AST node — a class instance OR its encoded POJO — to
|
|
16928
16958
|
* the canonical, fully-parenthesized SPDX string. This is the single source of
|
|
@@ -17128,7 +17158,7 @@ const SpdxExpression = {
|
|
|
17128
17158
|
FromString: Schema.String.pipe(Schema.decodeTo(SpdxExpressionUnion, SchemaTransformation.transformOrFail({
|
|
17129
17159
|
decode: (input) => {
|
|
17130
17160
|
const result = parseResult(input);
|
|
17131
|
-
return Result.isSuccess(result) ? Effect.succeed(result.success) : Effect.fail(new SchemaIssue.InvalidValue(
|
|
17161
|
+
return Result.isSuccess(result) ? Effect.succeed(result.success) : Effect.fail(new SchemaIssue.InvalidValue({ message: result.failure.message }, input));
|
|
17132
17162
|
},
|
|
17133
17163
|
encode: (expression) => Effect.succeed(serialize$1(expression))
|
|
17134
17164
|
}))),
|
|
@@ -17148,7 +17178,7 @@ const SpdxExpression = {
|
|
|
17148
17178
|
};
|
|
17149
17179
|
|
|
17150
17180
|
//#endregion
|
|
17151
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17181
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/License.js
|
|
17152
17182
|
/**
|
|
17153
17183
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
17154
17184
|
*
|
|
@@ -17157,7 +17187,7 @@ const SpdxExpression = {
|
|
|
17157
17187
|
*
|
|
17158
17188
|
* @public
|
|
17159
17189
|
*/
|
|
17160
|
-
var InvalidSpdxLicenseError = class extends Schema.
|
|
17190
|
+
var InvalidSpdxLicenseError = class extends Schema.TaggedError()("InvalidSpdxLicenseError", {
|
|
17161
17191
|
/** The raw input string that failed validation. */
|
|
17162
17192
|
input: Schema.String }) {
|
|
17163
17193
|
get message() {
|
|
@@ -17184,9 +17214,9 @@ const isValidSpdx = (value) => {
|
|
|
17184
17214
|
const SpdxLicense = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), Schema.brand("SpdxLicense"));
|
|
17185
17215
|
|
|
17186
17216
|
//#endregion
|
|
17187
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17217
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageManager.js
|
|
17188
17218
|
const PACKAGE_MANAGER_NAME_RE = /^[a-z]+$/;
|
|
17189
|
-
const invalid$1 = (input, message) => Effect.fail(new SchemaIssue.InvalidValue(
|
|
17219
|
+
const invalid$1 = (input, message) => Effect.fail(new SchemaIssue.InvalidValue({ message }, input));
|
|
17190
17220
|
/**
|
|
17191
17221
|
* A structured `packageManager` value with `name`, `version` and an optional
|
|
17192
17222
|
* `integrity` hash.
|
|
@@ -17296,7 +17326,7 @@ var PackageManager = class PackageManager extends Schema.Class("PackageManager")
|
|
|
17296
17326
|
};
|
|
17297
17327
|
|
|
17298
17328
|
//#endregion
|
|
17299
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17329
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageName.js
|
|
17300
17330
|
/**
|
|
17301
17331
|
* Indicates that a string could not be used as a valid npm package name.
|
|
17302
17332
|
*
|
|
@@ -17305,7 +17335,7 @@ var PackageManager = class PackageManager extends Schema.Class("PackageManager")
|
|
|
17305
17335
|
*
|
|
17306
17336
|
* @public
|
|
17307
17337
|
*/
|
|
17308
|
-
var InvalidPackageNameError = class extends Schema.
|
|
17338
|
+
var InvalidPackageNameError = class extends Schema.TaggedError()("InvalidPackageNameError", {
|
|
17309
17339
|
/** The raw input string that failed validation. */
|
|
17310
17340
|
input: Schema.String }) {
|
|
17311
17341
|
get message() {
|
|
@@ -17355,7 +17385,7 @@ const PackageName = Object.assign(Schema.Union([ScopedPackageName, UnscopedPacka
|
|
|
17355
17385
|
});
|
|
17356
17386
|
|
|
17357
17387
|
//#endregion
|
|
17358
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17388
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Person.js
|
|
17359
17389
|
const parsePersonString = (input) => {
|
|
17360
17390
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
17361
17391
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -17502,7 +17532,7 @@ var Person = class Person extends Schema.Class("Person")({
|
|
|
17502
17532
|
};
|
|
17503
17533
|
|
|
17504
17534
|
//#endregion
|
|
17505
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17535
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Repository.js
|
|
17506
17536
|
/** The shorthand hosts npm resolves without a scheme. */
|
|
17507
17537
|
const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
|
|
17508
17538
|
["github", "https://github.com"],
|
|
@@ -17678,7 +17708,7 @@ var Bugs = class Bugs extends Schema.Class("Bugs")({
|
|
|
17678
17708
|
};
|
|
17679
17709
|
|
|
17680
17710
|
//#endregion
|
|
17681
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17711
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/internal/format.js
|
|
17682
17712
|
const KEY_INDEX = new Map([
|
|
17683
17713
|
"$schema",
|
|
17684
17714
|
"name",
|
|
@@ -17902,7 +17932,7 @@ const renderJson = (raw, options) => {
|
|
|
17902
17932
|
};
|
|
17903
17933
|
|
|
17904
17934
|
//#endregion
|
|
17905
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17935
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Package.js
|
|
17906
17936
|
const toHashMap = SchemaTransformation.transform({
|
|
17907
17937
|
decode: (record) => HashMap.fromIterable(Object.entries(record)),
|
|
17908
17938
|
encode: (map) => Object.fromEntries(HashMap.toEntries(map))
|
|
@@ -17972,7 +18002,7 @@ const RepositoryField = Schema.Union([Schema.String, Schema.Record(Schema.String
|
|
|
17972
18002
|
*
|
|
17973
18003
|
* @public
|
|
17974
18004
|
*/
|
|
17975
|
-
var PackageDecodeError = class extends Schema.
|
|
18005
|
+
var PackageDecodeError = class extends Schema.TaggedError()("PackageDecodeError", {
|
|
17976
18006
|
/** The underlying `SchemaError`, preserved structurally rather than stringified. */
|
|
17977
18007
|
cause: Schema.Defect() }) {
|
|
17978
18008
|
get message() {
|
|
@@ -18229,7 +18259,7 @@ var Package = class Package extends Schema.Class("Package")({
|
|
|
18229
18259
|
};
|
|
18230
18260
|
|
|
18231
18261
|
//#endregion
|
|
18232
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18262
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspacePackage.js
|
|
18233
18263
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
18234
18264
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
18235
18265
|
/**
|
|
@@ -18273,7 +18303,7 @@ const DependencyMap$1 = Schema.Record(Schema.String, Schema.String).pipe(Schema.
|
|
|
18273
18303
|
*
|
|
18274
18304
|
* @public
|
|
18275
18305
|
*/
|
|
18276
|
-
var WorkspaceManifestError = class extends Schema.
|
|
18306
|
+
var WorkspaceManifestError = class extends Schema.TaggedError()("WorkspaceManifestError", {
|
|
18277
18307
|
/** Absolute path to the `package.json` that failed. */
|
|
18278
18308
|
packageJsonPath: Schema.String,
|
|
18279
18309
|
/** Whether the file could not be read, or read but not decoded. */
|
|
@@ -18509,7 +18539,7 @@ var WorkspacePackage = class WorkspacePackage extends Schema.Class("WorkspacePac
|
|
|
18509
18539
|
};
|
|
18510
18540
|
|
|
18511
18541
|
//#endregion
|
|
18512
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.
|
|
18542
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.4.0_@effected+glob@0.3.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/walker/Descend.js
|
|
18513
18543
|
/**
|
|
18514
18544
|
* Typed failure raised by {@link descend}: a directory mid-walk was unreadable
|
|
18515
18545
|
* (under `onUnreadable: "fail"`), or the walk descended past `maxDepth`. Depth
|
|
@@ -18518,7 +18548,7 @@ var WorkspacePackage = class WorkspacePackage extends Schema.Class("WorkspacePac
|
|
|
18518
18548
|
*
|
|
18519
18549
|
* @public
|
|
18520
18550
|
*/
|
|
18521
|
-
var DescendError = class extends Schema.
|
|
18551
|
+
var DescendError = class extends Schema.TaggedError()("DescendError", {
|
|
18522
18552
|
/** The glob pattern's source text. */
|
|
18523
18553
|
pattern: Schema.String,
|
|
18524
18554
|
reason: Schema.Literals(["unreadableDirectory", "depthExceeded"]),
|
|
@@ -18645,7 +18675,7 @@ const descend = Effect.fn("Walker.descend")(function* (pattern, options) {
|
|
|
18645
18675
|
});
|
|
18646
18676
|
|
|
18647
18677
|
//#endregion
|
|
18648
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.
|
|
18678
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.4.0_@effected+glob@0.3.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/walker/Expand.js
|
|
18649
18679
|
/**
|
|
18650
18680
|
* Typed failure raised by {@link compileAndExpand}: the single error the
|
|
18651
18681
|
* compile+expand recipe fails with, so a caller catches one tag rather than
|
|
@@ -18664,7 +18694,7 @@ const descend = Effect.fn("Walker.descend")(function* (pattern, options) {
|
|
|
18664
18694
|
*
|
|
18665
18695
|
* @public
|
|
18666
18696
|
*/
|
|
18667
|
-
var GlobExpansionError = class extends Schema.
|
|
18697
|
+
var GlobExpansionError = class extends Schema.TaggedError()("GlobExpansionError", {
|
|
18668
18698
|
/** The glob pattern's source text, as handed to {@link compileAndExpand}. */
|
|
18669
18699
|
pattern: Schema.String,
|
|
18670
18700
|
/** The underlying typed failure, intact: a compile guard trip or a descent failure. */
|
|
@@ -18736,7 +18766,7 @@ const compileAndExpand = Effect.fn("Walker.compileAndExpand")(function* (pattern
|
|
|
18736
18766
|
});
|
|
18737
18767
|
|
|
18738
18768
|
//#endregion
|
|
18739
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.
|
|
18769
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.4.0_@effected+glob@0.3.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/walker/Walker.js
|
|
18740
18770
|
const ascend = (start, options) => Effect.gen(function* () {
|
|
18741
18771
|
const path = yield* Path.Path;
|
|
18742
18772
|
const maxDepth = options?.maxDepth ?? 256;
|
|
@@ -18831,7 +18861,7 @@ var Walker$1 = class {
|
|
|
18831
18861
|
};
|
|
18832
18862
|
|
|
18833
18863
|
//#endregion
|
|
18834
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18864
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceRoot.js
|
|
18835
18865
|
/**
|
|
18836
18866
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
18837
18867
|
*
|
|
@@ -18847,7 +18877,7 @@ const WORKSPACE_MARKERS = ["pnpm-workspace.yaml", "package.json"];
|
|
|
18847
18877
|
*
|
|
18848
18878
|
* @public
|
|
18849
18879
|
*/
|
|
18850
|
-
var WorkspaceRootNotFoundError = class extends Schema.
|
|
18880
|
+
var WorkspaceRootNotFoundError = class extends Schema.TaggedError()("WorkspaceRootNotFoundError", {
|
|
18851
18881
|
/** The directory the ascent started from. */
|
|
18852
18882
|
searchPath: Schema.String,
|
|
18853
18883
|
/** The marker filenames probed at each ancestor. */
|
|
@@ -19019,7 +19049,7 @@ var WorkspaceRoot = class WorkspaceRoot extends Context.Service()("@effected/wor
|
|
|
19019
19049
|
};
|
|
19020
19050
|
|
|
19021
19051
|
//#endregion
|
|
19022
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19052
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/limits.js
|
|
19023
19053
|
/**
|
|
19024
19054
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
19025
19055
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -19038,7 +19068,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
19038
19068
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
19039
19069
|
|
|
19040
19070
|
//#endregion
|
|
19041
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19071
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/traverse.js
|
|
19042
19072
|
/** Directory names never descended into. */
|
|
19043
19073
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
19044
19074
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -19129,7 +19159,7 @@ var Traversal = class {
|
|
|
19129
19159
|
};
|
|
19130
19160
|
|
|
19131
19161
|
//#endregion
|
|
19132
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19162
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/enumerate.js
|
|
19133
19163
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
19134
19164
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
19135
19165
|
/**
|
|
@@ -19200,7 +19230,7 @@ const enumerate = (root, globs, options) => Effect.gen(function* () {
|
|
|
19200
19230
|
});
|
|
19201
19231
|
|
|
19202
19232
|
//#endregion
|
|
19203
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19233
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/patterns.js
|
|
19204
19234
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
19205
19235
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
19206
19236
|
const pnpmPatternsOf = (document) => {
|
|
@@ -19258,7 +19288,7 @@ const readPatterns = (root) => Effect.gen(function* () {
|
|
|
19258
19288
|
});
|
|
19259
19289
|
|
|
19260
19290
|
//#endregion
|
|
19261
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19291
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceDiscovery.js
|
|
19262
19292
|
/**
|
|
19263
19293
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
19264
19294
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -19269,7 +19299,7 @@ const readPatterns = (root) => Effect.gen(function* () {
|
|
|
19269
19299
|
*
|
|
19270
19300
|
* @public
|
|
19271
19301
|
*/
|
|
19272
|
-
var WorkspaceDiscoveryError = class extends Schema.
|
|
19302
|
+
var WorkspaceDiscoveryError = class extends Schema.TaggedError()("WorkspaceDiscoveryError", {
|
|
19273
19303
|
/** The workspace root discovery was running against. */
|
|
19274
19304
|
root: Schema.String,
|
|
19275
19305
|
/** The file that failed. */
|
|
@@ -19298,7 +19328,7 @@ var WorkspaceDiscoveryError = class extends Schema.TaggedErrorClass()("Workspace
|
|
|
19298
19328
|
*
|
|
19299
19329
|
* @public
|
|
19300
19330
|
*/
|
|
19301
|
-
var WorkspacePatternError = class extends Schema.
|
|
19331
|
+
var WorkspacePatternError = class extends Schema.TaggedError()("WorkspacePatternError", {
|
|
19302
19332
|
/** The workspace root the patterns were expanded against. */
|
|
19303
19333
|
root: Schema.String,
|
|
19304
19334
|
/** The offending pattern, verbatim. */
|
|
@@ -19328,7 +19358,7 @@ var WorkspacePatternError = class extends Schema.TaggedErrorClass()("WorkspacePa
|
|
|
19328
19358
|
*
|
|
19329
19359
|
* @public
|
|
19330
19360
|
*/
|
|
19331
|
-
var PackageNotFoundError = class extends Schema.
|
|
19361
|
+
var PackageNotFoundError = class extends Schema.TaggedError()("PackageNotFoundError", {
|
|
19332
19362
|
/** The name that was requested. */
|
|
19333
19363
|
name: Schema.String,
|
|
19334
19364
|
/** Every workspace package name that does exist. */
|
|
@@ -19715,7 +19745,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends Context.Service()("@ef
|
|
|
19715
19745
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
19716
19746
|
|
|
19717
19747
|
//#endregion
|
|
19718
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19748
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/DependencyGraph.js
|
|
19719
19749
|
/**
|
|
19720
19750
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
19721
19751
|
* because it contains a cycle.
|
|
@@ -19727,7 +19757,7 @@ const isStringRecord$2 = (value) => value !== null && typeof value === "object"
|
|
|
19727
19757
|
*
|
|
19728
19758
|
* @public
|
|
19729
19759
|
*/
|
|
19730
|
-
var CyclicDependencyError = class extends Schema.
|
|
19760
|
+
var CyclicDependencyError = class extends Schema.TaggedError()("CyclicDependencyError", {
|
|
19731
19761
|
/** The packages participating in the cycle. */
|
|
19732
19762
|
cycle: Schema.Array(Schema.String) }) {
|
|
19733
19763
|
/** Renders the cycle members into a one-line message. */
|
|
@@ -19949,7 +19979,7 @@ const kahn = (edges) => {
|
|
|
19949
19979
|
};
|
|
19950
19980
|
|
|
19951
19981
|
//#endregion
|
|
19952
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
19982
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/GitCommand.js
|
|
19953
19983
|
/** The mask every whole-value sensitive positional is replaced with. */
|
|
19954
19984
|
const REDACTED = "<redacted>";
|
|
19955
19985
|
const secretValue = (value) => ({
|
|
@@ -21033,7 +21063,7 @@ var GitCommand = class {
|
|
|
21033
21063
|
};
|
|
21034
21064
|
|
|
21035
21065
|
//#endregion
|
|
21036
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
21066
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/internal/run.js
|
|
21037
21067
|
/**
|
|
21038
21068
|
* Spawns `command` and collects its stdout, stderr, and exit code as a single
|
|
21039
21069
|
* triple.
|
|
@@ -21061,7 +21091,7 @@ const runCollected = (command) => Effect.scoped(Effect.gen(function* () {
|
|
|
21061
21091
|
}));
|
|
21062
21092
|
|
|
21063
21093
|
//#endregion
|
|
21064
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
21094
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/Git.js
|
|
21065
21095
|
/** git's own ceiling: a run that has not answered in 30s is not going to. */
|
|
21066
21096
|
const GIT_TIMEOUT = Duration.seconds(30);
|
|
21067
21097
|
/**
|
|
@@ -21080,7 +21110,7 @@ const GIT_TIMEOUT = Duration.seconds(30);
|
|
|
21080
21110
|
*
|
|
21081
21111
|
* @public
|
|
21082
21112
|
*/
|
|
21083
|
-
var GitCommandError = class extends Schema.
|
|
21113
|
+
var GitCommandError = class extends Schema.TaggedError()("GitCommandError", {
|
|
21084
21114
|
/**
|
|
21085
21115
|
* Discriminates a pre-spawn guard rejection from a genuine git failure.
|
|
21086
21116
|
* `"refused"` — a pre-spawn guard (an option-like ref) rejected the
|
|
@@ -21119,7 +21149,7 @@ var GitCommandError = class extends Schema.TaggedErrorClass()("GitCommandError",
|
|
|
21119
21149
|
*
|
|
21120
21150
|
* @public
|
|
21121
21151
|
*/
|
|
21122
|
-
var NotARepositoryError = class extends Schema.
|
|
21152
|
+
var NotARepositoryError = class extends Schema.TaggedError()("NotARepositoryError", {
|
|
21123
21153
|
/** The working directory that is not a git repository. */
|
|
21124
21154
|
cwd: Schema.String }) {
|
|
21125
21155
|
/** Renders the failing directory into a one-line message. */
|
|
@@ -21132,7 +21162,7 @@ cwd: Schema.String }) {
|
|
|
21132
21162
|
*
|
|
21133
21163
|
* @public
|
|
21134
21164
|
*/
|
|
21135
|
-
var UnknownRefError = class extends Schema.
|
|
21165
|
+
var UnknownRefError = class extends Schema.TaggedError()("UnknownRefError", {
|
|
21136
21166
|
/** The ref (or ref range) that failed to resolve. */
|
|
21137
21167
|
ref: Schema.String,
|
|
21138
21168
|
/** The working directory the ref was resolved against. */
|
|
@@ -21155,7 +21185,7 @@ var UnknownRefError = class extends Schema.TaggedErrorClass()("UnknownRefError",
|
|
|
21155
21185
|
*
|
|
21156
21186
|
* @public
|
|
21157
21187
|
*/
|
|
21158
|
-
var NonFastForwardError = class extends Schema.
|
|
21188
|
+
var NonFastForwardError = class extends Schema.TaggedError()("NonFastForwardError", {
|
|
21159
21189
|
/** The working directory the push ran in. */
|
|
21160
21190
|
cwd: Schema.String,
|
|
21161
21191
|
/** The refspec that was rejected, when the caller passed one. */
|
|
@@ -21179,7 +21209,7 @@ var NonFastForwardError = class extends Schema.TaggedErrorClass()("NonFastForwar
|
|
|
21179
21209
|
*
|
|
21180
21210
|
* @public
|
|
21181
21211
|
*/
|
|
21182
|
-
var MergeConflictError = class extends Schema.
|
|
21212
|
+
var MergeConflictError = class extends Schema.TaggedError()("MergeConflictError", {
|
|
21183
21213
|
/** The working directory the merge ran in. */
|
|
21184
21214
|
cwd: Schema.String }) {
|
|
21185
21215
|
/** Renders the conflicted merge into a one-line message. */
|
|
@@ -21200,7 +21230,7 @@ cwd: Schema.String }) {
|
|
|
21200
21230
|
*
|
|
21201
21231
|
* @public
|
|
21202
21232
|
*/
|
|
21203
|
-
var DirtyWorktreeError = class extends Schema.
|
|
21233
|
+
var DirtyWorktreeError = class extends Schema.TaggedError()("DirtyWorktreeError", {
|
|
21204
21234
|
/** The working directory whose local changes blocked the operation. */
|
|
21205
21235
|
cwd: Schema.String }) {
|
|
21206
21236
|
/** Renders the blocked operation into a one-line message. */
|
|
@@ -23211,7 +23241,7 @@ var Git = class Git extends Context.Service()("@effected/git/Git") {
|
|
|
23211
23241
|
};
|
|
23212
23242
|
|
|
23213
23243
|
//#endregion
|
|
23214
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
23244
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/ChangeDetector.js
|
|
23215
23245
|
/**
|
|
23216
23246
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
23217
23247
|
*
|
|
@@ -23259,7 +23289,7 @@ var ChangeDetectionOptions = class extends Schema.Class("ChangeDetectionOptions"
|
|
|
23259
23289
|
*
|
|
23260
23290
|
* @public
|
|
23261
23291
|
*/
|
|
23262
|
-
var ChangeDetectionError = class extends Schema.
|
|
23292
|
+
var ChangeDetectionError = class extends Schema.TaggedError()("ChangeDetectionError", {
|
|
23263
23293
|
/** The operation that could not run. */
|
|
23264
23294
|
operation: Schema.String,
|
|
23265
23295
|
/** The originating failure. */
|
|
@@ -23511,7 +23541,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
23511
23541
|
}
|
|
23512
23542
|
|
|
23513
23543
|
//#endregion
|
|
23514
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
23544
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/catalogs.js
|
|
23515
23545
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
23516
23546
|
const inlineCatalogs = (manifest) => {
|
|
23517
23547
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -23577,7 +23607,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
23577
23607
|
};
|
|
23578
23608
|
|
|
23579
23609
|
//#endregion
|
|
23580
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
23610
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/ConfigDependencyHooks.js
|
|
23581
23611
|
/** Whether `value` is a non-null, non-array object. */
|
|
23582
23612
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
23583
23613
|
/**
|
|
@@ -23989,7 +24019,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends Context.Service(
|
|
|
23989
24019
|
};
|
|
23990
24020
|
|
|
23991
24021
|
//#endregion
|
|
23992
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24022
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/PackageManagerName.js
|
|
23993
24023
|
/**
|
|
23994
24024
|
* The four package managers this package understands.
|
|
23995
24025
|
*
|
|
@@ -24073,7 +24103,7 @@ const corepackHint = (manifest) => {
|
|
|
24073
24103
|
*
|
|
24074
24104
|
* @public
|
|
24075
24105
|
*/
|
|
24076
|
-
var PackageManagerDetectionError = class extends Schema.
|
|
24106
|
+
var PackageManagerDetectionError = class extends Schema.TaggedError()("PackageManagerDetectionError", {
|
|
24077
24107
|
/** The workspace root that was probed. */
|
|
24078
24108
|
root: Schema.String,
|
|
24079
24109
|
/** The marker files probed, in the order they were probed. */
|
|
@@ -24318,7 +24348,7 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
24318
24348
|
};
|
|
24319
24349
|
|
|
24320
24350
|
//#endregion
|
|
24321
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24351
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/LockfileReader.js
|
|
24322
24352
|
/**
|
|
24323
24353
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
24324
24354
|
*
|
|
@@ -24328,7 +24358,7 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
24328
24358
|
*
|
|
24329
24359
|
* @public
|
|
24330
24360
|
*/
|
|
24331
|
-
var LockfileReadError = class extends Schema.
|
|
24361
|
+
var LockfileReadError = class extends Schema.TaggedError()("LockfileReadError", {
|
|
24332
24362
|
/** Absolute path to the lockfile that could not be read. */
|
|
24333
24363
|
lockfilePath: Schema.String,
|
|
24334
24364
|
/** The format the detected package manager implies. */
|
|
@@ -24499,7 +24529,7 @@ var LockfileReader = class LockfileReader extends Context.Service()("@effected/w
|
|
|
24499
24529
|
};
|
|
24500
24530
|
|
|
24501
24531
|
//#endregion
|
|
24502
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24532
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/Publishability.js
|
|
24503
24533
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
24504
24534
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
24505
24535
|
/**
|
|
@@ -24659,7 +24689,7 @@ var PublishabilityDetector = class extends Context.Service()("@effected/workspac
|
|
|
24659
24689
|
};
|
|
24660
24690
|
|
|
24661
24691
|
//#endregion
|
|
24662
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24692
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/importerVersions.js
|
|
24663
24693
|
/**
|
|
24664
24694
|
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
24665
24695
|
*
|
|
@@ -24746,7 +24776,7 @@ const unanimousVersionOf = (index, dependency) => {
|
|
|
24746
24776
|
};
|
|
24747
24777
|
|
|
24748
24778
|
//#endregion
|
|
24749
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24779
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceCatalogs.js
|
|
24750
24780
|
/**
|
|
24751
24781
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
24752
24782
|
* resolution semantic in the package.
|
|
@@ -25274,7 +25304,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends Context.Service()("@effe
|
|
|
25274
25304
|
};
|
|
25275
25305
|
|
|
25276
25306
|
//#endregion
|
|
25277
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25307
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceStateSnapshot.js
|
|
25278
25308
|
const EMPTY = Object.freeze(Object.create(null));
|
|
25279
25309
|
const DependencyMap = Schema.Record(Schema.String, Schema.String).pipe(Schema.withDecodingDefaultKey(Effect.succeed(EMPTY)), Schema.withConstructorDefault(Effect.succeed(EMPTY)));
|
|
25280
25310
|
/**
|
|
@@ -25498,7 +25528,7 @@ var WorkspaceStateSnapshot = class extends Schema.Class("WorkspaceStateSnapshot"
|
|
|
25498
25528
|
};
|
|
25499
25529
|
|
|
25500
25530
|
//#endregion
|
|
25501
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25531
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceSnapshots.js
|
|
25502
25532
|
/** Whether `value` is a non-null, non-array object. */
|
|
25503
25533
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25504
25534
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -25776,7 +25806,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends Context.Service()("@ef
|
|
|
25776
25806
|
};
|
|
25777
25807
|
|
|
25778
25808
|
//#endregion
|
|
25779
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25809
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/Workspaces.js
|
|
25780
25810
|
const compose = (options, catalogsFactory) => {
|
|
25781
25811
|
const roots = WorkspaceRoot.layer;
|
|
25782
25812
|
const detector = PackageManagerDetector.layer;
|
|
@@ -30295,14 +30325,15 @@ function markdownTable(table, options) {
|
|
|
30295
30325
|
const size = longestCellByColumn[columnIndex] - (sizes[columnIndex] || 0);
|
|
30296
30326
|
const code = alignments[columnIndex];
|
|
30297
30327
|
if (code === 114) before = " ".repeat(size);
|
|
30298
|
-
else if (code === 99)
|
|
30299
|
-
|
|
30300
|
-
|
|
30301
|
-
|
|
30302
|
-
|
|
30303
|
-
|
|
30304
|
-
|
|
30305
|
-
|
|
30328
|
+
else if (code === 99) {
|
|
30329
|
+
if (size % 2) {
|
|
30330
|
+
before = " ".repeat(size / 2 + .5);
|
|
30331
|
+
after = " ".repeat(size / 2 - .5);
|
|
30332
|
+
} else {
|
|
30333
|
+
before = " ".repeat(size / 2);
|
|
30334
|
+
after = before;
|
|
30335
|
+
}
|
|
30336
|
+
} else after = " ".repeat(size);
|
|
30306
30337
|
}
|
|
30307
30338
|
if (settings.delimiterStart !== false && !columnIndex) line.push("|");
|
|
30308
30339
|
if (settings.padding !== false && !(settings.alignDelimiters === false && cell === "") && (settings.delimiterStart !== false || columnIndex)) line.push(" ");
|
|
@@ -43260,19 +43291,21 @@ function resolveTable(events, context) {
|
|
|
43260
43291
|
}
|
|
43261
43292
|
cell[2] = index;
|
|
43262
43293
|
}
|
|
43263
|
-
} else if (token.type === "tableCellDivider")
|
|
43264
|
-
|
|
43265
|
-
|
|
43266
|
-
|
|
43267
|
-
|
|
43294
|
+
} else if (token.type === "tableCellDivider") {
|
|
43295
|
+
if (inFirstCellAwaitingPipe) inFirstCellAwaitingPipe = false;
|
|
43296
|
+
else {
|
|
43297
|
+
if (lastCell[1] !== 0) {
|
|
43298
|
+
cell[0] = cell[1];
|
|
43299
|
+
currentCell = flushCell(map, context, lastCell, rowKind, void 0, currentCell);
|
|
43300
|
+
}
|
|
43301
|
+
lastCell = cell;
|
|
43302
|
+
cell = [
|
|
43303
|
+
lastCell[1],
|
|
43304
|
+
index,
|
|
43305
|
+
0,
|
|
43306
|
+
0
|
|
43307
|
+
];
|
|
43268
43308
|
}
|
|
43269
|
-
lastCell = cell;
|
|
43270
|
-
cell = [
|
|
43271
|
-
lastCell[1],
|
|
43272
|
-
index,
|
|
43273
|
-
0,
|
|
43274
|
-
0
|
|
43275
|
-
];
|
|
43276
43309
|
}
|
|
43277
43310
|
} else if (token.type === "tableHead") {
|
|
43278
43311
|
afterHeadAwaitingFirstBodyRow = true;
|
|
@@ -45096,8 +45129,10 @@ function compiler(options) {
|
|
|
45096
45129
|
/** @type {Array<number>} */
|
|
45097
45130
|
const listStack = [];
|
|
45098
45131
|
let index = -1;
|
|
45099
|
-
while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered")
|
|
45100
|
-
|
|
45132
|
+
while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") {
|
|
45133
|
+
if (events[index][0] === "enter") listStack.push(index);
|
|
45134
|
+
else index = prepareList(events, listStack.pop(), index);
|
|
45135
|
+
}
|
|
45101
45136
|
index = -1;
|
|
45102
45137
|
while (++index < events.length) {
|
|
45103
45138
|
const handler = config[events[index][0]];
|
|
@@ -45287,8 +45322,10 @@ function compiler(options) {
|
|
|
45287
45322
|
start: token.start,
|
|
45288
45323
|
end: token.end
|
|
45289
45324
|
}) + "): it’s not open");
|
|
45290
|
-
else if (open[0].type !== token.type)
|
|
45291
|
-
|
|
45325
|
+
else if (open[0].type !== token.type) {
|
|
45326
|
+
if (onExitError) onExitError.call(this, token, open[0]);
|
|
45327
|
+
else (open[1] || defaultOnError).call(this, token, open[0]);
|
|
45328
|
+
}
|
|
45292
45329
|
node.position.end = point(token.end);
|
|
45293
45330
|
}
|
|
45294
45331
|
/**
|
|
@@ -46145,9 +46182,11 @@ function wrap(middleware, callback) {
|
|
|
46145
46182
|
if (fnExpectsCallback && called) throw exception;
|
|
46146
46183
|
return done(exception);
|
|
46147
46184
|
}
|
|
46148
|
-
if (!fnExpectsCallback)
|
|
46149
|
-
|
|
46150
|
-
|
|
46185
|
+
if (!fnExpectsCallback) {
|
|
46186
|
+
if (result && result.then && typeof result.then === "function") result.then(then, done);
|
|
46187
|
+
else if (result instanceof Error) done(result);
|
|
46188
|
+
else then(result);
|
|
46189
|
+
}
|
|
46151
46190
|
}
|
|
46152
46191
|
/**
|
|
46153
46192
|
* Call `callback`, only once.
|
|
@@ -46260,13 +46299,15 @@ var VFileMessage = class extends Error {
|
|
|
46260
46299
|
/** @type {Options} */
|
|
46261
46300
|
let options = {};
|
|
46262
46301
|
let legacyCause = false;
|
|
46263
|
-
if (optionsOrParentOrPlace)
|
|
46264
|
-
|
|
46265
|
-
|
|
46266
|
-
|
|
46267
|
-
|
|
46268
|
-
|
|
46269
|
-
|
|
46302
|
+
if (optionsOrParentOrPlace) {
|
|
46303
|
+
if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
|
|
46304
|
+
else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
|
|
46305
|
+
else if ("type" in optionsOrParentOrPlace) options = {
|
|
46306
|
+
ancestors: [optionsOrParentOrPlace],
|
|
46307
|
+
place: optionsOrParentOrPlace.position
|
|
46308
|
+
};
|
|
46309
|
+
else options = { ...optionsOrParentOrPlace };
|
|
46310
|
+
}
|
|
46270
46311
|
if (typeof causeOrReason === "string") reason = causeOrReason;
|
|
46271
46312
|
else if (!options.cause && causeOrReason) {
|
|
46272
46313
|
legacyCause = true;
|
|
@@ -47909,9 +47950,10 @@ var Processor = class Processor extends CallableInstance {
|
|
|
47909
47950
|
const namespace = this.namespace;
|
|
47910
47951
|
assertUnfrozen("use", this.frozen);
|
|
47911
47952
|
if (value === null || value === void 0) {} else if (typeof value === "function") addPlugin(value, parameters);
|
|
47912
|
-
else if (typeof value === "object")
|
|
47913
|
-
|
|
47914
|
-
|
|
47953
|
+
else if (typeof value === "object") {
|
|
47954
|
+
if (Array.isArray(value)) addList(value);
|
|
47955
|
+
else addPreset(value);
|
|
47956
|
+
} else throw new TypeError("Expected usable value, not `" + value + "`");
|
|
47915
47957
|
return this;
|
|
47916
47958
|
/**
|
|
47917
47959
|
* @param {Pluggable} value
|
|
@@ -47919,11 +47961,12 @@ var Processor = class Processor extends CallableInstance {
|
|
|
47919
47961
|
*/
|
|
47920
47962
|
function add(value) {
|
|
47921
47963
|
if (typeof value === "function") addPlugin(value, []);
|
|
47922
|
-
else if (typeof value === "object")
|
|
47923
|
-
|
|
47924
|
-
|
|
47925
|
-
|
|
47926
|
-
|
|
47964
|
+
else if (typeof value === "object") {
|
|
47965
|
+
if (Array.isArray(value)) {
|
|
47966
|
+
const [plugin, ...parameters] = value;
|
|
47967
|
+
addPlugin(plugin, parameters);
|
|
47968
|
+
} else addPreset(value);
|
|
47969
|
+
} else throw new TypeError("Expected usable value, not `" + value + "`");
|
|
47927
47970
|
}
|
|
47928
47971
|
/**
|
|
47929
47972
|
* @param {Preset} result
|
|
@@ -49284,10 +49327,12 @@ function formatChangelogEntry(entry, options) {
|
|
|
49284
49327
|
*/
|
|
49285
49328
|
function formatPRAndUserAttribution(pr, user, links) {
|
|
49286
49329
|
let prReference = "";
|
|
49287
|
-
if (pr)
|
|
49288
|
-
|
|
49289
|
-
|
|
49290
|
-
|
|
49330
|
+
if (pr) {
|
|
49331
|
+
if (links?.pull) {
|
|
49332
|
+
const pullUrl = extractUrlFromMarkdown(links.pull);
|
|
49333
|
+
prReference = ` [#${String(pr)}](${pullUrl})`;
|
|
49334
|
+
} else prReference = ` (#${String(pr)})`;
|
|
49335
|
+
}
|
|
49291
49336
|
if (user) {
|
|
49292
49337
|
if (links?.user) {
|
|
49293
49338
|
const userUrl = extractUrlFromMarkdown(links.user);
|
|
@@ -54414,10 +54459,12 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
54414
54459
|
}
|
|
54415
54460
|
return esc ? m : `\\${m}`;
|
|
54416
54461
|
});
|
|
54417
|
-
if (backslashes === true)
|
|
54418
|
-
|
|
54419
|
-
|
|
54420
|
-
|
|
54462
|
+
if (backslashes === true) {
|
|
54463
|
+
if (opts.unescape === true) output = output.replace(/\\/g, "");
|
|
54464
|
+
else output = output.replace(/\\+/g, (m) => {
|
|
54465
|
+
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
54466
|
+
});
|
|
54467
|
+
}
|
|
54421
54468
|
if (output === input && opts.contains === true) {
|
|
54422
54469
|
state.output = input;
|
|
54423
54470
|
return state;
|
|
@@ -55189,8 +55236,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
55189
55236
|
output = format ? format(input) : input;
|
|
55190
55237
|
match = output === glob;
|
|
55191
55238
|
}
|
|
55192
|
-
if (match === false || opts.capture === true)
|
|
55193
|
-
|
|
55239
|
+
if (match === false || opts.capture === true) {
|
|
55240
|
+
if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
|
|
55241
|
+
else match = regex.exec(output);
|
|
55242
|
+
}
|
|
55194
55243
|
return {
|
|
55195
55244
|
isMatch: Boolean(match),
|
|
55196
55245
|
match,
|
|
@@ -55900,9 +55949,10 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
55900
55949
|
function replaceNode(key, path, node) {
|
|
55901
55950
|
const parent = path[path.length - 1];
|
|
55902
55951
|
if (identity.isCollection(parent)) parent.items[key] = node;
|
|
55903
|
-
else if (identity.isPair(parent))
|
|
55904
|
-
|
|
55905
|
-
|
|
55952
|
+
else if (identity.isPair(parent)) {
|
|
55953
|
+
if (key === "key") parent.key = node;
|
|
55954
|
+
else parent.value = node;
|
|
55955
|
+
} else if (identity.isDocument(parent)) parent.contents = node;
|
|
55906
55956
|
else {
|
|
55907
55957
|
const pt = identity.isAlias(parent) ? "alias" : "scalar";
|
|
55908
55958
|
throw new Error(`Cannot replace node with ${pt} parent`);
|
|
@@ -56156,30 +56206,32 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56156
56206
|
* Includes extensions for handling Map and Set objects.
|
|
56157
56207
|
*/
|
|
56158
56208
|
function applyReviver(reviver, obj, key, val) {
|
|
56159
|
-
if (val && typeof val === "object")
|
|
56160
|
-
|
|
56161
|
-
|
|
56162
|
-
|
|
56163
|
-
|
|
56164
|
-
|
|
56165
|
-
|
|
56166
|
-
const
|
|
56167
|
-
|
|
56168
|
-
|
|
56169
|
-
|
|
56170
|
-
|
|
56171
|
-
|
|
56172
|
-
|
|
56173
|
-
|
|
56174
|
-
|
|
56175
|
-
|
|
56176
|
-
|
|
56177
|
-
|
|
56178
|
-
|
|
56179
|
-
|
|
56180
|
-
|
|
56181
|
-
|
|
56182
|
-
|
|
56209
|
+
if (val && typeof val === "object") {
|
|
56210
|
+
if (Array.isArray(val)) for (let i = 0, len = val.length; i < len; ++i) {
|
|
56211
|
+
const v0 = val[i];
|
|
56212
|
+
const v1 = applyReviver(reviver, val, String(i), v0);
|
|
56213
|
+
if (v1 === void 0) delete val[i];
|
|
56214
|
+
else if (v1 !== v0) val[i] = v1;
|
|
56215
|
+
}
|
|
56216
|
+
else if (val instanceof Map) for (const k of Array.from(val.keys())) {
|
|
56217
|
+
const v0 = val.get(k);
|
|
56218
|
+
const v1 = applyReviver(reviver, val, k, v0);
|
|
56219
|
+
if (v1 === void 0) val.delete(k);
|
|
56220
|
+
else if (v1 !== v0) val.set(k, v1);
|
|
56221
|
+
}
|
|
56222
|
+
else if (val instanceof Set) for (const v0 of Array.from(val)) {
|
|
56223
|
+
const v1 = applyReviver(reviver, val, v0, v0);
|
|
56224
|
+
if (v1 === void 0) val.delete(v0);
|
|
56225
|
+
else if (v1 !== v0) {
|
|
56226
|
+
val.delete(v0);
|
|
56227
|
+
val.add(v1);
|
|
56228
|
+
}
|
|
56229
|
+
}
|
|
56230
|
+
else for (const [k, v0] of Object.entries(val)) {
|
|
56231
|
+
const v1 = applyReviver(reviver, val, k, v0);
|
|
56232
|
+
if (v1 === void 0) delete val[k];
|
|
56233
|
+
else if (v1 !== v0) val[k] = v1;
|
|
56234
|
+
}
|
|
56183
56235
|
}
|
|
56184
56236
|
return reviver.call(obj, key, val);
|
|
56185
56237
|
}
|
|
@@ -56608,8 +56660,10 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56608
56660
|
const folds = [];
|
|
56609
56661
|
const escapedFolds = {};
|
|
56610
56662
|
let end = lineWidth - indent.length;
|
|
56611
|
-
if (typeof indentAtStart === "number")
|
|
56612
|
-
|
|
56663
|
+
if (typeof indentAtStart === "number") {
|
|
56664
|
+
if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
|
|
56665
|
+
else end = lineWidth - indentAtStart;
|
|
56666
|
+
}
|
|
56613
56667
|
let split = void 0;
|
|
56614
56668
|
let prev = void 0;
|
|
56615
56669
|
let overflow = false;
|
|
@@ -56646,23 +56700,25 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56646
56700
|
const next = text[i + 1];
|
|
56647
56701
|
if (next && next !== " " && next !== "\n" && next !== " ") split = i;
|
|
56648
56702
|
}
|
|
56649
|
-
if (i >= end)
|
|
56650
|
-
|
|
56651
|
-
|
|
56652
|
-
|
|
56653
|
-
|
|
56654
|
-
|
|
56655
|
-
prev
|
|
56656
|
-
|
|
56657
|
-
|
|
56658
|
-
|
|
56659
|
-
|
|
56660
|
-
|
|
56661
|
-
|
|
56662
|
-
|
|
56663
|
-
|
|
56664
|
-
|
|
56665
|
-
|
|
56703
|
+
if (i >= end) {
|
|
56704
|
+
if (split) {
|
|
56705
|
+
folds.push(split);
|
|
56706
|
+
end = split + endStep;
|
|
56707
|
+
split = void 0;
|
|
56708
|
+
} else if (mode === FOLD_QUOTED) {
|
|
56709
|
+
while (prev === " " || prev === " ") {
|
|
56710
|
+
prev = ch;
|
|
56711
|
+
ch = text[i += 1];
|
|
56712
|
+
overflow = true;
|
|
56713
|
+
}
|
|
56714
|
+
const j = i > escEnd + 1 ? i - 2 : escStart - 1;
|
|
56715
|
+
if (escapedFolds[j]) return text;
|
|
56716
|
+
folds.push(j);
|
|
56717
|
+
escapedFolds[j] = true;
|
|
56718
|
+
end = j + endStep;
|
|
56719
|
+
split = void 0;
|
|
56720
|
+
} else overflow = true;
|
|
56721
|
+
}
|
|
56666
56722
|
}
|
|
56667
56723
|
prev = ch;
|
|
56668
56724
|
}
|
|
@@ -57146,8 +57202,10 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
57146
57202
|
if (logLevel === "debug") console.log(...messages);
|
|
57147
57203
|
}
|
|
57148
57204
|
function warn(logLevel, warning) {
|
|
57149
|
-
if (logLevel === "debug" || logLevel === "warn")
|
|
57150
|
-
|
|
57205
|
+
if (logLevel === "debug" || logLevel === "warn") {
|
|
57206
|
+
if (typeof node_process$2.emitWarning === "function") node_process$2.emitWarning(warning);
|
|
57207
|
+
else console.warn(warning);
|
|
57208
|
+
}
|
|
57151
57209
|
}
|
|
57152
57210
|
exports.debug = debug;
|
|
57153
57211
|
exports.warn = warn;
|
|
@@ -58001,11 +58059,12 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58001
58059
|
if (iterable && Symbol.iterator in Object(iterable)) for (let it of iterable) {
|
|
58002
58060
|
if (typeof replacer === "function") it = replacer.call(iterable, String(i++), it);
|
|
58003
58061
|
let key, value;
|
|
58004
|
-
if (Array.isArray(it))
|
|
58005
|
-
|
|
58006
|
-
|
|
58007
|
-
|
|
58008
|
-
|
|
58062
|
+
if (Array.isArray(it)) {
|
|
58063
|
+
if (it.length === 2) {
|
|
58064
|
+
key = it[0];
|
|
58065
|
+
value = it[1];
|
|
58066
|
+
} else throw new TypeError(`Expected [key, value] tuple: ${it}`);
|
|
58067
|
+
} else if (it && it instanceof Object) {
|
|
58009
58068
|
const keys = Object.keys(it);
|
|
58010
58069
|
if (keys.length === 1) {
|
|
58011
58070
|
key = keys[0];
|
|
@@ -58082,8 +58141,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58082
58141
|
resolve(seq, onError) {
|
|
58083
58142
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
|
58084
58143
|
const seenKeys = [];
|
|
58085
|
-
for (const { key } of pairs$1.items) if (identity.isScalar(key))
|
|
58086
|
-
|
|
58144
|
+
for (const { key } of pairs$1.items) if (identity.isScalar(key)) {
|
|
58145
|
+
if (seenKeys.includes(key.value)) onError(`Ordered maps must not include duplicate keys: ${key.value}`);
|
|
58146
|
+
else seenKeys.push(key.value);
|
|
58147
|
+
}
|
|
58087
58148
|
return Object.assign(new YAMLOMap(), pairs$1);
|
|
58088
58149
|
},
|
|
58089
58150
|
createNode: (schema, iterable, ctx) => YAMLOMap.from(schema, iterable, ctx)
|
|
@@ -58299,9 +58360,10 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58299
58360
|
tag: "tag:yaml.org,2002:set",
|
|
58300
58361
|
createNode: (schema, iterable, ctx) => YAMLSet.from(schema, iterable, ctx),
|
|
58301
58362
|
resolve(map, onError) {
|
|
58302
|
-
if (identity.isMap(map))
|
|
58303
|
-
|
|
58304
|
-
|
|
58363
|
+
if (identity.isMap(map)) {
|
|
58364
|
+
if (map.hasAllNullValues(true)) return Object.assign(new YAMLSet(), map);
|
|
58365
|
+
else onError("Set items must all have null values");
|
|
58366
|
+
} else onError("Expected a mapping for this tag");
|
|
58305
58367
|
return map;
|
|
58306
58368
|
}
|
|
58307
58369
|
};
|
|
@@ -58497,10 +58559,12 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58497
58559
|
const schemaTags = schemas.get(schemaName);
|
|
58498
58560
|
if (schemaTags && !customTags) return addMergeTag && !schemaTags.includes(merge.merge) ? schemaTags.concat(merge.merge) : schemaTags.slice();
|
|
58499
58561
|
let tags = schemaTags;
|
|
58500
|
-
if (!tags)
|
|
58501
|
-
|
|
58502
|
-
|
|
58503
|
-
|
|
58562
|
+
if (!tags) {
|
|
58563
|
+
if (Array.isArray(customTags)) tags = [];
|
|
58564
|
+
else {
|
|
58565
|
+
const keys = Array.from(schemas.keys()).filter((key) => key !== "yaml11").map((key) => JSON.stringify(key)).join(", ");
|
|
58566
|
+
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
|
58567
|
+
}
|
|
58504
58568
|
}
|
|
58505
58569
|
if (Array.isArray(customTags)) for (const tag of customTags) tags = tags.concat(tag);
|
|
58506
58570
|
else if (typeof customTags === "function") tags = customTags(tags.slice());
|
|
@@ -58592,14 +58656,15 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58592
58656
|
if ((body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---") lines[lines.length - 1] = `--- ${body}`;
|
|
58593
58657
|
else lines.push(body);
|
|
58594
58658
|
} else lines.push(stringify.stringify(doc.contents, ctx));
|
|
58595
|
-
if (doc.directives?.docEnd)
|
|
58596
|
-
|
|
58597
|
-
|
|
58598
|
-
|
|
58599
|
-
|
|
58600
|
-
|
|
58601
|
-
|
|
58602
|
-
|
|
58659
|
+
if (doc.directives?.docEnd) {
|
|
58660
|
+
if (doc.comment) {
|
|
58661
|
+
const cs = commentString(doc.comment);
|
|
58662
|
+
if (cs.includes("\n")) {
|
|
58663
|
+
lines.push("...");
|
|
58664
|
+
lines.push(stringifyComment.indentComment(cs, ""));
|
|
58665
|
+
} else lines.push(`... ${cs}`);
|
|
58666
|
+
} else lines.push("...");
|
|
58667
|
+
} else {
|
|
58603
58668
|
let dc = doc.comment;
|
|
58604
58669
|
if (dc && chompKeep) dc = dc.replace(/^\n+/, "");
|
|
58605
58670
|
if (dc) {
|
|
@@ -59145,8 +59210,10 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59145
59210
|
}
|
|
59146
59211
|
if (!keyProps.anchor && !keyProps.tag && !sep) {
|
|
59147
59212
|
commentEnd = keyProps.end;
|
|
59148
|
-
if (keyProps.comment)
|
|
59149
|
-
|
|
59213
|
+
if (keyProps.comment) {
|
|
59214
|
+
if (map.comment) map.comment += "\n" + keyProps.comment;
|
|
59215
|
+
else map.comment = keyProps.comment;
|
|
59216
|
+
}
|
|
59150
59217
|
continue;
|
|
59151
59218
|
}
|
|
59152
59219
|
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key)) onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
@@ -59179,8 +59246,10 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59179
59246
|
map.items.push(pair);
|
|
59180
59247
|
} else {
|
|
59181
59248
|
if (implicitKey) onError(keyNode.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values");
|
|
59182
|
-
if (valueProps.comment)
|
|
59183
|
-
|
|
59249
|
+
if (valueProps.comment) {
|
|
59250
|
+
if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
|
|
59251
|
+
else keyNode.comment = valueProps.comment;
|
|
59252
|
+
}
|
|
59184
59253
|
const pair = new Pair.Pair(keyNode);
|
|
59185
59254
|
if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
|
|
59186
59255
|
map.items.push(pair);
|
|
@@ -59218,12 +59287,15 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59218
59287
|
parentIndent: bs.indent,
|
|
59219
59288
|
startOnNewline: true
|
|
59220
59289
|
});
|
|
59221
|
-
if (!props.found)
|
|
59222
|
-
|
|
59223
|
-
|
|
59224
|
-
|
|
59225
|
-
|
|
59226
|
-
|
|
59290
|
+
if (!props.found) {
|
|
59291
|
+
if (props.anchor || props.tag || value) {
|
|
59292
|
+
if (value?.type === "block-seq") onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
|
|
59293
|
+
else onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
|
|
59294
|
+
} else {
|
|
59295
|
+
commentEnd = props.end;
|
|
59296
|
+
if (props.comment) seq.comment = props.comment;
|
|
59297
|
+
continue;
|
|
59298
|
+
}
|
|
59227
59299
|
}
|
|
59228
59300
|
const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
|
|
59229
59301
|
if (ctx.schema.compat) utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError);
|
|
@@ -59317,8 +59389,10 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
|
|
|
59317
59389
|
if (!props.anchor && !props.tag && !sep && !value) {
|
|
59318
59390
|
if (i === 0 && props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
|
|
59319
59391
|
else if (i < fc.items.length - 1) onError(props.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${fcName}`);
|
|
59320
|
-
if (props.comment)
|
|
59321
|
-
|
|
59392
|
+
if (props.comment) {
|
|
59393
|
+
if (coll.comment) coll.comment += "\n" + props.comment;
|
|
59394
|
+
else coll.comment = props.comment;
|
|
59395
|
+
}
|
|
59322
59396
|
offset = props.end;
|
|
59323
59397
|
continue;
|
|
59324
59398
|
}
|
|
@@ -59378,13 +59452,17 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
|
|
|
59378
59452
|
}
|
|
59379
59453
|
if (props.start < valueProps.found.offset - 1024) onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
59380
59454
|
}
|
|
59381
|
-
} else if (value)
|
|
59382
|
-
|
|
59455
|
+
} else if (value) {
|
|
59456
|
+
if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
|
|
59457
|
+
else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
|
|
59458
|
+
}
|
|
59383
59459
|
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
|
|
59384
59460
|
if (valueNode) {
|
|
59385
59461
|
if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
59386
|
-
} else if (valueProps.comment)
|
|
59387
|
-
|
|
59462
|
+
} else if (valueProps.comment) {
|
|
59463
|
+
if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
|
|
59464
|
+
else keyNode.comment = valueProps.comment;
|
|
59465
|
+
}
|
|
59388
59466
|
const pair = new Pair.Pair(keyNode, valueNode);
|
|
59389
59467
|
if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
|
|
59390
59468
|
if (isMap) {
|
|
@@ -59418,8 +59496,10 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
|
|
|
59418
59496
|
}
|
|
59419
59497
|
if (ee.length > 0) {
|
|
59420
59498
|
const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError);
|
|
59421
|
-
if (end.comment)
|
|
59422
|
-
|
|
59499
|
+
if (end.comment) {
|
|
59500
|
+
if (coll.comment) coll.comment += "\n" + end.comment;
|
|
59501
|
+
else coll.comment = end.comment;
|
|
59502
|
+
}
|
|
59423
59503
|
coll.range = [
|
|
59424
59504
|
fc.offset,
|
|
59425
59505
|
cePos,
|
|
@@ -59569,9 +59649,10 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59569
59649
|
value += sep + indent.slice(trimIndent) + content;
|
|
59570
59650
|
sep = "\n";
|
|
59571
59651
|
prevMoreIndented = true;
|
|
59572
|
-
} else if (content === "")
|
|
59573
|
-
|
|
59574
|
-
|
|
59652
|
+
} else if (content === "") {
|
|
59653
|
+
if (sep === "\n") value += "\n";
|
|
59654
|
+
else sep = "\n";
|
|
59655
|
+
} else {
|
|
59575
59656
|
value += sep + content;
|
|
59576
59657
|
sep = " ";
|
|
59577
59658
|
prevMoreIndented = false;
|
|
@@ -59765,9 +59846,10 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59765
59846
|
let pos = first.lastIndex;
|
|
59766
59847
|
line.lastIndex = pos;
|
|
59767
59848
|
while (match = line.exec(source)) {
|
|
59768
|
-
if (match[1] === "")
|
|
59769
|
-
|
|
59770
|
-
|
|
59849
|
+
if (match[1] === "") {
|
|
59850
|
+
if (sep === "\n") res += sep;
|
|
59851
|
+
else sep = "\n";
|
|
59852
|
+
} else {
|
|
59771
59853
|
res += sep + match[1];
|
|
59772
59854
|
sep = " ";
|
|
59773
59855
|
}
|
|
@@ -59904,8 +59986,10 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59904
59986
|
function findScalarTagByName(schema, value, tagName, tagToken, onError) {
|
|
59905
59987
|
if (tagName === "!") return schema[identity.SCALAR];
|
|
59906
59988
|
const matchWithTest = [];
|
|
59907
|
-
for (const tag of schema.tags) if (!tag.collection && tag.tag === tagName)
|
|
59908
|
-
|
|
59989
|
+
for (const tag of schema.tags) if (!tag.collection && tag.tag === tagName) {
|
|
59990
|
+
if (tag.default && tag.test) matchWithTest.push(tag);
|
|
59991
|
+
else return tag;
|
|
59992
|
+
}
|
|
59909
59993
|
for (const tag of matchWithTest) if (tag.test?.test(value)) return tag;
|
|
59910
59994
|
const kt = schema.knownTags[tagName];
|
|
59911
59995
|
if (kt && !kt.collection) {
|
|
@@ -60005,8 +60089,10 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60005
60089
|
if (anchor && node.anchor === "") onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
60006
60090
|
if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) onError(tag ?? token, "NON_STRING_KEY", "With stringKeys, all keys must be strings");
|
|
60007
60091
|
if (spaceBefore) node.spaceBefore = true;
|
|
60008
|
-
if (comment)
|
|
60009
|
-
|
|
60092
|
+
if (comment) {
|
|
60093
|
+
if (token.type === "scalar" && token.source === "") node.comment = comment;
|
|
60094
|
+
else node.commentBefore = comment;
|
|
60095
|
+
}
|
|
60010
60096
|
if (ctx.options.keepSourceTokens && isSrcToken) node.srcToken = token;
|
|
60011
60097
|
return node;
|
|
60012
60098
|
}
|
|
@@ -61202,11 +61288,13 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61202
61288
|
end = i;
|
|
61203
61289
|
} else if (isEmpty(ch)) {
|
|
61204
61290
|
let next = this.buffer[i + 1];
|
|
61205
|
-
if (ch === "\r")
|
|
61206
|
-
|
|
61207
|
-
|
|
61208
|
-
|
|
61209
|
-
|
|
61291
|
+
if (ch === "\r") {
|
|
61292
|
+
if (next === "\n") {
|
|
61293
|
+
i += 1;
|
|
61294
|
+
ch = "\n";
|
|
61295
|
+
next = this.buffer[i + 1];
|
|
61296
|
+
} else end = i;
|
|
61297
|
+
}
|
|
61210
61298
|
if (next === "#" || inFlow && flowIndicatorChars.has(next)) break;
|
|
61211
61299
|
if (ch === "\n") {
|
|
61212
61300
|
const cs = this.continueScalar(i + 1);
|
|
@@ -61425,9 +61513,10 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61425
61513
|
for (const it of fc.items) if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) {
|
|
61426
61514
|
if (it.key) it.value = it.key;
|
|
61427
61515
|
delete it.key;
|
|
61428
|
-
if (isFlowToken(it.value))
|
|
61429
|
-
|
|
61430
|
-
|
|
61516
|
+
if (isFlowToken(it.value)) {
|
|
61517
|
+
if (it.value.end) arrayPushArray(it.value.end, it.sep);
|
|
61518
|
+
else it.value.end = it.sep;
|
|
61519
|
+
} else arrayPushArray(it.start, it.sep);
|
|
61431
61520
|
delete it.sep;
|
|
61432
61521
|
}
|
|
61433
61522
|
}
|
|
@@ -61862,58 +61951,60 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61862
61951
|
this.onKeyLine = true;
|
|
61863
61952
|
return;
|
|
61864
61953
|
case "map-value-ind":
|
|
61865
|
-
if (it.explicitKey)
|
|
61866
|
-
|
|
61867
|
-
|
|
61868
|
-
});
|
|
61869
|
-
else {
|
|
61870
|
-
const start = getFirstKeyStartProps(it.start);
|
|
61871
|
-
this.stack.push({
|
|
61872
|
-
type: "block-map",
|
|
61873
|
-
offset: this.offset,
|
|
61874
|
-
indent: this.indent,
|
|
61875
|
-
items: [{
|
|
61876
|
-
start,
|
|
61954
|
+
if (it.explicitKey) {
|
|
61955
|
+
if (!it.sep) {
|
|
61956
|
+
if (includesToken(it.start, "newline")) Object.assign(it, {
|
|
61877
61957
|
key: null,
|
|
61878
61958
|
sep: [this.sourceToken]
|
|
61879
|
-
}
|
|
61880
|
-
|
|
61881
|
-
|
|
61882
|
-
|
|
61883
|
-
|
|
61884
|
-
|
|
61885
|
-
|
|
61886
|
-
|
|
61887
|
-
|
|
61888
|
-
|
|
61889
|
-
|
|
61890
|
-
|
|
61891
|
-
|
|
61892
|
-
|
|
61959
|
+
});
|
|
61960
|
+
else {
|
|
61961
|
+
const start = getFirstKeyStartProps(it.start);
|
|
61962
|
+
this.stack.push({
|
|
61963
|
+
type: "block-map",
|
|
61964
|
+
offset: this.offset,
|
|
61965
|
+
indent: this.indent,
|
|
61966
|
+
items: [{
|
|
61967
|
+
start,
|
|
61968
|
+
key: null,
|
|
61969
|
+
sep: [this.sourceToken]
|
|
61970
|
+
}]
|
|
61971
|
+
});
|
|
61972
|
+
}
|
|
61973
|
+
} else if (it.value) map.items.push({
|
|
61974
|
+
start: [],
|
|
61893
61975
|
key: null,
|
|
61894
61976
|
sep: [this.sourceToken]
|
|
61895
|
-
}
|
|
61896
|
-
|
|
61897
|
-
else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
61898
|
-
const start = getFirstKeyStartProps(it.start);
|
|
61899
|
-
const key = it.key;
|
|
61900
|
-
const sep = it.sep;
|
|
61901
|
-
sep.push(this.sourceToken);
|
|
61902
|
-
delete it.key;
|
|
61903
|
-
delete it.sep;
|
|
61904
|
-
this.stack.push({
|
|
61977
|
+
});
|
|
61978
|
+
else if (includesToken(it.sep, "map-value-ind")) this.stack.push({
|
|
61905
61979
|
type: "block-map",
|
|
61906
61980
|
offset: this.offset,
|
|
61907
61981
|
indent: this.indent,
|
|
61908
61982
|
items: [{
|
|
61909
61983
|
start,
|
|
61910
|
-
key,
|
|
61911
|
-
sep
|
|
61984
|
+
key: null,
|
|
61985
|
+
sep: [this.sourceToken]
|
|
61912
61986
|
}]
|
|
61913
61987
|
});
|
|
61914
|
-
|
|
61915
|
-
|
|
61916
|
-
|
|
61988
|
+
else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
61989
|
+
const start = getFirstKeyStartProps(it.start);
|
|
61990
|
+
const key = it.key;
|
|
61991
|
+
const sep = it.sep;
|
|
61992
|
+
sep.push(this.sourceToken);
|
|
61993
|
+
delete it.key;
|
|
61994
|
+
delete it.sep;
|
|
61995
|
+
this.stack.push({
|
|
61996
|
+
type: "block-map",
|
|
61997
|
+
offset: this.offset,
|
|
61998
|
+
indent: this.indent,
|
|
61999
|
+
items: [{
|
|
62000
|
+
start,
|
|
62001
|
+
key,
|
|
62002
|
+
sep
|
|
62003
|
+
}]
|
|
62004
|
+
});
|
|
62005
|
+
} else if (start.length > 0) it.sep = it.sep.concat(start, this.sourceToken);
|
|
62006
|
+
else it.sep.push(this.sourceToken);
|
|
62007
|
+
} else if (!it.sep) Object.assign(it, {
|
|
61917
62008
|
key: null,
|
|
61918
62009
|
sep: [this.sourceToken]
|
|
61919
62010
|
});
|
|
@@ -62287,8 +62378,10 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
62287
62378
|
const doc = parseDocument(src, options);
|
|
62288
62379
|
if (!doc) return null;
|
|
62289
62380
|
doc.warnings.forEach((warning) => log.warn(doc.options.logLevel, warning));
|
|
62290
|
-
if (doc.errors.length > 0)
|
|
62291
|
-
|
|
62381
|
+
if (doc.errors.length > 0) {
|
|
62382
|
+
if (doc.options.logLevel !== "silent") throw doc.errors[0];
|
|
62383
|
+
else doc.errors = [];
|
|
62384
|
+
}
|
|
62292
62385
|
return doc.toJS(Object.assign({ reviver: _reviver }, options));
|
|
62293
62386
|
}
|
|
62294
62387
|
function stringify(value, replacer, options) {
|
|
@@ -62738,12 +62831,13 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62738
62831
|
chr = String.fromCharCode(parseInt(input.substr(position + 1, 4), 16));
|
|
62739
62832
|
position += 5;
|
|
62740
62833
|
}
|
|
62741
|
-
if (result.length)
|
|
62742
|
-
|
|
62743
|
-
|
|
62744
|
-
|
|
62745
|
-
|
|
62746
|
-
|
|
62834
|
+
if (result.length) {
|
|
62835
|
+
if (Uni.isIdentifierPart(chr)) result += chr;
|
|
62836
|
+
else {
|
|
62837
|
+
position--;
|
|
62838
|
+
return result;
|
|
62839
|
+
}
|
|
62840
|
+
} else if (Uni.isIdentifierStart(chr)) result += chr;
|
|
62747
62841
|
else return;
|
|
62748
62842
|
}
|
|
62749
62843
|
fail();
|
|
@@ -62873,9 +62967,10 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62873
62967
|
if (!Uni.isIdentifierPart(key[i])) return _stringify_str(key);
|
|
62874
62968
|
} else if (!Uni.isIdentifierStart(key[i])) return _stringify_str(key);
|
|
62875
62969
|
var chr = key.charCodeAt(i);
|
|
62876
|
-
if (options.ascii)
|
|
62877
|
-
|
|
62878
|
-
|
|
62970
|
+
if (options.ascii) {
|
|
62971
|
+
if (chr < 128) result += key[i];
|
|
62972
|
+
else result += "\\u" + ("0000" + chr.toString(16)).slice(-4);
|
|
62973
|
+
} else if (escapable.exec(key[i])) result += "\\u" + ("0000" + chr.toString(16)).slice(-4);
|
|
62879
62974
|
else result += key[i];
|
|
62880
62975
|
}
|
|
62881
62976
|
return result;
|
|
@@ -62886,22 +62981,27 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62886
62981
|
var result = "";
|
|
62887
62982
|
for (var i = 0; i < key.length; i++) {
|
|
62888
62983
|
var chr = key.charCodeAt(i);
|
|
62889
|
-
if (chr < 16)
|
|
62890
|
-
|
|
62891
|
-
|
|
62892
|
-
|
|
62893
|
-
|
|
62894
|
-
else
|
|
62895
|
-
|
|
62896
|
-
|
|
62897
|
-
else if (chr
|
|
62898
|
-
|
|
62899
|
-
|
|
62900
|
-
|
|
62901
|
-
|
|
62902
|
-
else if (
|
|
62903
|
-
|
|
62904
|
-
|
|
62984
|
+
if (chr < 16) {
|
|
62985
|
+
if (chr === 0 && json5) result += "\\0";
|
|
62986
|
+
else if (chr >= 8 && chr <= 13 && (json5 || chr !== 11)) result += special_chars[chr];
|
|
62987
|
+
else if (json5) result += "\\x0" + chr.toString(16);
|
|
62988
|
+
else result += "\\u000" + chr.toString(16);
|
|
62989
|
+
} else if (chr < 32) {
|
|
62990
|
+
if (json5) result += "\\x" + chr.toString(16);
|
|
62991
|
+
else result += "\\u00" + chr.toString(16);
|
|
62992
|
+
} else if (chr >= 32 && chr < 128) {
|
|
62993
|
+
if (chr === 47 && i && key[i - 1] === "<") result += "\\" + key[i];
|
|
62994
|
+
else if (chr === 92) result += "\\\\";
|
|
62995
|
+
else if (chr === quoteChr) result += "\\" + quote;
|
|
62996
|
+
else result += key[i];
|
|
62997
|
+
} else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) {
|
|
62998
|
+
if (chr < 256) {
|
|
62999
|
+
if (json5) result += "\\x" + chr.toString(16);
|
|
63000
|
+
else result += "\\u00" + chr.toString(16);
|
|
63001
|
+
} else if (chr < 4096) result += "\\u0" + chr.toString(16);
|
|
63002
|
+
else if (chr < 65536) result += "\\u" + chr.toString(16);
|
|
63003
|
+
else throw Error("weird codepoint");
|
|
63004
|
+
} else result += key[i];
|
|
62905
63005
|
}
|
|
62906
63006
|
return quote + result + quote;
|
|
62907
63007
|
}
|
|
@@ -62997,9 +63097,10 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62997
63097
|
if (typeof options.indent === "object") {
|
|
62998
63098
|
if (options.indent.constructor === Number || options.indent.constructor === Boolean || options.indent.constructor === String) options.indent = options.indent.valueOf();
|
|
62999
63099
|
}
|
|
63000
|
-
if (typeof options.indent === "number")
|
|
63001
|
-
|
|
63002
|
-
|
|
63100
|
+
if (typeof options.indent === "number") {
|
|
63101
|
+
if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(" ");
|
|
63102
|
+
else options.indent = false;
|
|
63103
|
+
} else if (typeof options.indent === "string") options.indent = options.indent.substr(0, 10);
|
|
63003
63104
|
if (options._splitMin == null) options._splitMin = 50;
|
|
63004
63105
|
if (options._splitMax == null) options._splitMax = 70;
|
|
63005
63106
|
return _stringify(object, options, 0, "");
|
|
@@ -63176,13 +63277,14 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
63176
63277
|
return Error("You can't " + (is_unset ? "unset" : "set") + " key '" + key + "'" + add);
|
|
63177
63278
|
}
|
|
63178
63279
|
if (!isObject(object)) throw error(" of an non-object");
|
|
63179
|
-
if (Array.isArray(object))
|
|
63180
|
-
|
|
63181
|
-
|
|
63182
|
-
|
|
63183
|
-
|
|
63184
|
-
|
|
63185
|
-
|
|
63280
|
+
if (Array.isArray(object)) {
|
|
63281
|
+
if (String(key).match(/^\d+$/)) {
|
|
63282
|
+
key = Number(String(key));
|
|
63283
|
+
if (object.length < key || is_unset && object.length === key) throw error(", out of bounds");
|
|
63284
|
+
else if (is_unset && object.length !== key + 1) throw error(" in the middle of an array");
|
|
63285
|
+
else return true;
|
|
63286
|
+
} else throw error(" of an array");
|
|
63287
|
+
} else return true;
|
|
63186
63288
|
}
|
|
63187
63289
|
Document.prototype.set = function(path, value) {
|
|
63188
63290
|
path = arg_to_path(path);
|
|
@@ -63198,9 +63300,10 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
63198
63300
|
}
|
|
63199
63301
|
if (i === path.length - 1) check_if_can_be_placed(path[i], data, value === void 0);
|
|
63200
63302
|
var new_key = !(path[i] in data);
|
|
63201
|
-
if (value === void 0)
|
|
63202
|
-
|
|
63203
|
-
|
|
63303
|
+
if (value === void 0) {
|
|
63304
|
+
if (Array.isArray(data)) data.pop();
|
|
63305
|
+
else delete data[path[i]];
|
|
63306
|
+
} else data[path[i]] = value;
|
|
63204
63307
|
}
|
|
63205
63308
|
if (!this._tokens.length) this._tokens = [{
|
|
63206
63309
|
raw: "",
|
|
@@ -63311,17 +63414,18 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
63311
63414
|
if (!isObject(new_data) || !isObject(old_data)) {
|
|
63312
63415
|
if (new_data !== old_data) self.set(path, new_data);
|
|
63313
63416
|
} else if (Array.isArray(new_data) != Array.isArray(old_data)) self.set(path, new_data);
|
|
63314
|
-
else if (Array.isArray(new_data))
|
|
63315
|
-
|
|
63316
|
-
|
|
63317
|
-
|
|
63318
|
-
|
|
63319
|
-
|
|
63320
|
-
|
|
63321
|
-
|
|
63322
|
-
|
|
63323
|
-
|
|
63324
|
-
|
|
63417
|
+
else if (Array.isArray(new_data)) {
|
|
63418
|
+
if (new_data.length > old_data.length) for (var i = 0; i < new_data.length; i++) {
|
|
63419
|
+
path.push(String(i));
|
|
63420
|
+
change(path, old_data[i], new_data[i]);
|
|
63421
|
+
path.pop();
|
|
63422
|
+
}
|
|
63423
|
+
else for (var i = old_data.length - 1; i >= 0; i--) {
|
|
63424
|
+
path.push(String(i));
|
|
63425
|
+
change(path, old_data[i], new_data[i]);
|
|
63426
|
+
path.pop();
|
|
63427
|
+
}
|
|
63428
|
+
} else {
|
|
63325
63429
|
for (var i in new_data) {
|
|
63326
63430
|
path.push(String(i));
|
|
63327
63431
|
change(path, old_data[i], new_data[i]);
|
|
@@ -66605,10 +66709,12 @@ codes.ERR_INVALID_ARG_TYPE = createError(
|
|
|
66605
66709
|
message += `an instance of ${formatList(instances, "or")}`;
|
|
66606
66710
|
if (other.length > 0) message += " or ";
|
|
66607
66711
|
}
|
|
66608
|
-
if (other.length > 0)
|
|
66609
|
-
|
|
66610
|
-
|
|
66611
|
-
|
|
66712
|
+
if (other.length > 0) {
|
|
66713
|
+
if (other.length > 1) message += `one of ${formatList(other, "or")}`;
|
|
66714
|
+
else {
|
|
66715
|
+
if (other[0].toLowerCase() !== other[0]) message += "an ";
|
|
66716
|
+
message += `${other[0]}`;
|
|
66717
|
+
}
|
|
66612
66718
|
}
|
|
66613
66719
|
message += `. Received ${determineSpecificType(actual)}`;
|
|
66614
66720
|
return message;
|
|
@@ -67307,12 +67413,14 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
67307
67413
|
}
|
|
67308
67414
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
67309
67415
|
}
|
|
67310
|
-
if (invalidSegmentRegEx.exec(target.slice(2)) !== null)
|
|
67311
|
-
if (
|
|
67312
|
-
|
|
67313
|
-
|
|
67314
|
-
|
|
67315
|
-
|
|
67416
|
+
if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
|
|
67417
|
+
if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
|
|
67418
|
+
if (!isPathMap) {
|
|
67419
|
+
const request = pattern ? match.replace("*", () => subpath) : match + subpath;
|
|
67420
|
+
emitInvalidSegmentDeprecation(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target, request, match, packageJsonUrl, internal, base, true);
|
|
67421
|
+
}
|
|
67422
|
+
} else throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
67423
|
+
}
|
|
67316
67424
|
const resolved = new URL(target, packageJsonUrl);
|
|
67317
67425
|
const resolvedPath = resolved.pathname;
|
|
67318
67426
|
const packagePath = new URL(".", packageJsonUrl).pathname;
|
|
@@ -67506,29 +67614,31 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
67506
67614
|
if (packageConfig.exists) {
|
|
67507
67615
|
packageJsonUrl = pathToFileURL(packageConfig.pjsonPath);
|
|
67508
67616
|
const imports = packageConfig.imports;
|
|
67509
|
-
if (imports)
|
|
67510
|
-
|
|
67511
|
-
|
|
67512
|
-
|
|
67513
|
-
|
|
67514
|
-
|
|
67515
|
-
|
|
67516
|
-
|
|
67517
|
-
|
|
67518
|
-
|
|
67519
|
-
|
|
67520
|
-
|
|
67521
|
-
|
|
67522
|
-
|
|
67523
|
-
bestMatch
|
|
67524
|
-
|
|
67617
|
+
if (imports) {
|
|
67618
|
+
if (own.call(imports, name) && !name.includes("*")) {
|
|
67619
|
+
const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], "", name, base, false, true, false, conditions);
|
|
67620
|
+
if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
|
|
67621
|
+
} else {
|
|
67622
|
+
let bestMatch = "";
|
|
67623
|
+
let bestMatchSubpath = "";
|
|
67624
|
+
const keys = Object.getOwnPropertyNames(imports);
|
|
67625
|
+
let i = -1;
|
|
67626
|
+
while (++i < keys.length) {
|
|
67627
|
+
const key = keys[i];
|
|
67628
|
+
const patternIndex = key.indexOf("*");
|
|
67629
|
+
if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) {
|
|
67630
|
+
const patternTrailer = key.slice(patternIndex + 1);
|
|
67631
|
+
if (name.length >= key.length && name.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf("*") === patternIndex) {
|
|
67632
|
+
bestMatch = key;
|
|
67633
|
+
bestMatchSubpath = name.slice(patternIndex, name.length - patternTrailer.length);
|
|
67634
|
+
}
|
|
67525
67635
|
}
|
|
67526
67636
|
}
|
|
67527
|
-
|
|
67528
|
-
|
|
67529
|
-
|
|
67530
|
-
|
|
67531
|
-
|
|
67637
|
+
if (bestMatch) {
|
|
67638
|
+
const target = imports[bestMatch];
|
|
67639
|
+
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions);
|
|
67640
|
+
if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
|
|
67641
|
+
}
|
|
67532
67642
|
}
|
|
67533
67643
|
}
|
|
67534
67644
|
}
|
|
@@ -67888,11 +67998,13 @@ function createScanner(text, ignoreTrivia = false) {
|
|
|
67888
67998
|
start = pos;
|
|
67889
67999
|
continue;
|
|
67890
68000
|
}
|
|
67891
|
-
if (ch >= 0 && ch <= 31)
|
|
67892
|
-
|
|
67893
|
-
|
|
67894
|
-
|
|
67895
|
-
|
|
68001
|
+
if (ch >= 0 && ch <= 31) {
|
|
68002
|
+
if (isLineBreak(ch)) {
|
|
68003
|
+
result += text.substring(start, pos);
|
|
68004
|
+
scanError = 2;
|
|
68005
|
+
break;
|
|
68006
|
+
} else scanError = 6;
|
|
68007
|
+
}
|
|
67896
68008
|
pos++;
|
|
67897
68009
|
}
|
|
67898
68010
|
return result;
|