@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
|
@@ -403,7 +403,7 @@ const trimTrailingSlashes = (s) => {
|
|
|
403
403
|
return s.slice(0, end);
|
|
404
404
|
};
|
|
405
405
|
//#endregion
|
|
406
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
406
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/limits.js
|
|
407
407
|
/** Hard cap on pattern length. Upstream minimatch's MAX_PATTERN_LENGTH (64KB). */
|
|
408
408
|
const MAX_PATTERN_LENGTH = 65536;
|
|
409
409
|
/** Default brace-expansion output budget. Upstream brace-expansion's EXPANSION_MAX. */
|
|
@@ -437,7 +437,7 @@ const assertCap = (name, value) => {
|
|
|
437
437
|
return value;
|
|
438
438
|
};
|
|
439
439
|
//#endregion
|
|
440
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
440
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/unescape.js
|
|
441
441
|
/**
|
|
442
442
|
* Un-escape a string that has been escaped with `escape`.
|
|
443
443
|
*
|
|
@@ -460,11 +460,11 @@ const unescapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = true
|
|
|
460
460
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
461
461
|
};
|
|
462
462
|
//#endregion
|
|
463
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
463
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/types.js
|
|
464
464
|
/** The globstar marker in a compiled pattern set. */
|
|
465
465
|
const GLOBSTAR = Symbol("globstar **");
|
|
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/escape.js
|
|
468
468
|
/**
|
|
469
469
|
* Escape all magic characters in a glob pattern.
|
|
470
470
|
*
|
|
@@ -482,13 +482,13 @@ const escapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = false
|
|
|
482
482
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
483
483
|
};
|
|
484
484
|
//#endregion
|
|
485
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
485
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/assertValidPattern.js
|
|
486
486
|
const assertValidPattern = (pattern) => {
|
|
487
487
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
488
488
|
if (pattern.length > 65536) throw new GuardExceeded("PatternTooLong", MAX_PATTERN_LENGTH, pattern.length);
|
|
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/braceExpressions.js
|
|
492
492
|
const posixClasses = {
|
|
493
493
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
494
494
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -611,7 +611,7 @@ const parseClass = (glob, position) => {
|
|
|
611
611
|
];
|
|
612
612
|
};
|
|
613
613
|
//#endregion
|
|
614
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
614
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/ast.js
|
|
615
615
|
const types = /* @__PURE__ */ new Set([
|
|
616
616
|
"!",
|
|
617
617
|
"?",
|
|
@@ -1128,7 +1128,7 @@ var AST = class AST {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
};
|
|
1130
1130
|
//#endregion
|
|
1131
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
1131
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/balancedMatch.js
|
|
1132
1132
|
const maybeMatch = (reg, str) => {
|
|
1133
1133
|
const m = str.match(reg);
|
|
1134
1134
|
return m ? m[0] : null;
|
|
@@ -1186,7 +1186,7 @@ const range = (a, b, str) => {
|
|
|
1186
1186
|
return result;
|
|
1187
1187
|
};
|
|
1188
1188
|
//#endregion
|
|
1189
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
1189
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/braceExpansion.js
|
|
1190
1190
|
const escSlash = `\0SLASH${Math.random()}\0`;
|
|
1191
1191
|
const escOpen = `\0OPEN${Math.random()}\0`;
|
|
1192
1192
|
const escClose = `\0CLOSE${Math.random()}\0`;
|
|
@@ -1333,7 +1333,7 @@ function expand_(str, max, isTopInput, depth) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
//#endregion
|
|
1336
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
1336
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/minimatch.js
|
|
1337
1337
|
const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
1338
1338
|
const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
|
|
1339
1339
|
const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
|
|
@@ -1846,9 +1846,10 @@ var Minimatch = class {
|
|
|
1846
1846
|
const next = pp[i + 1];
|
|
1847
1847
|
const prev = pp[i - 1];
|
|
1848
1848
|
if (p !== GLOBSTAR || prev === GLOBSTAR) return;
|
|
1849
|
-
if (prev === void 0)
|
|
1850
|
-
|
|
1851
|
-
|
|
1849
|
+
if (prev === void 0) {
|
|
1850
|
+
if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = `(?:\\/|${twoStar}\\/)?${next}`;
|
|
1851
|
+
else pp[i] = twoStar;
|
|
1852
|
+
} else if (next === void 0) pp[i - 1] = `${prev}(?:\\/|\\/${twoStar})?`;
|
|
1852
1853
|
else if (next !== GLOBSTAR) {
|
|
1853
1854
|
pp[i - 1] = `${prev}(?:\\/|\\/${twoStar}\\/)${next}`;
|
|
1854
1855
|
pp[i + 1] = GLOBSTAR;
|
|
@@ -1905,7 +1906,7 @@ var Minimatch = class {
|
|
|
1905
1906
|
}
|
|
1906
1907
|
};
|
|
1907
1908
|
//#endregion
|
|
1908
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
1909
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/GlobPattern.js
|
|
1909
1910
|
/**
|
|
1910
1911
|
* Typed failure raised when a glob pattern trips a compile-time guard:
|
|
1911
1912
|
* over-length, brace-expansion budget exhaustion, or nesting past the depth
|
|
@@ -1915,7 +1916,7 @@ var Minimatch = class {
|
|
|
1915
1916
|
*
|
|
1916
1917
|
* @public
|
|
1917
1918
|
*/
|
|
1918
|
-
var GlobPatternError = class extends effect.Schema.
|
|
1919
|
+
var GlobPatternError = class extends effect.Schema.TaggedError()("GlobPatternError", {
|
|
1919
1920
|
pattern: effect.Schema.String,
|
|
1920
1921
|
reason: effect.Schema.Literals([
|
|
1921
1922
|
"PatternTooLong",
|
|
@@ -2184,7 +2185,7 @@ var GlobPattern = class GlobPattern extends effect.Schema.Class("GlobPattern")(e
|
|
|
2184
2185
|
})));
|
|
2185
2186
|
};
|
|
2186
2187
|
//#endregion
|
|
2187
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.
|
|
2188
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/GlobSet.js
|
|
2188
2189
|
const exclusionTarget = (pattern) => pattern.startsWith("!") ? pattern.slice(1) : void 0;
|
|
2189
2190
|
const allCompileUnderDefaults = (patterns) => {
|
|
2190
2191
|
for (const pattern of patterns) {
|
|
@@ -2338,7 +2339,7 @@ var GlobSet = class GlobSet extends effect.Schema.Class("GlobSet")(effect.Schema
|
|
|
2338
2339
|
}
|
|
2339
2340
|
};
|
|
2340
2341
|
//#endregion
|
|
2341
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
2342
|
+
//#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
|
|
2342
2343
|
/**
|
|
2343
2344
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2344
2345
|
* when the format is `"bun"`.
|
|
@@ -2359,7 +2360,7 @@ var BunExtension = class extends effect.Schema.Class("BunExtension")({
|
|
|
2359
2360
|
trustedDependencies: effect.Schema.optionalKey(effect.Schema.Array(effect.Schema.String))
|
|
2360
2361
|
}) {};
|
|
2361
2362
|
//#endregion
|
|
2362
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2363
|
+
//#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
|
|
2363
2364
|
/**
|
|
2364
2365
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2365
2366
|
* version ranges.
|
|
@@ -2405,7 +2406,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
|
|
|
2405
2406
|
static noop = effect.Layer.succeed(CatalogResolver, { rangeOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2406
2407
|
};
|
|
2407
2408
|
//#endregion
|
|
2408
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2409
|
+
//#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
|
|
2409
2410
|
/**
|
|
2410
2411
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2411
2412
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2419,7 +2420,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
|
|
|
2419
2420
|
*
|
|
2420
2421
|
* @public
|
|
2421
2422
|
*/
|
|
2422
|
-
var DependencyResolutionError = class extends effect.Schema.
|
|
2423
|
+
var DependencyResolutionError = class extends effect.Schema.TaggedError()("DependencyResolutionError", {
|
|
2423
2424
|
specifier: effect.Schema.String,
|
|
2424
2425
|
cause: effect.Schema.Defect()
|
|
2425
2426
|
}) {
|
|
@@ -2466,7 +2467,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
|
|
|
2466
2467
|
static noop = effect.Layer.succeed(WorkspaceResolver, { versionOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2467
2468
|
};
|
|
2468
2469
|
//#endregion
|
|
2469
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2470
|
+
//#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
|
|
2470
2471
|
/**
|
|
2471
2472
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2472
2473
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2488,7 +2489,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
|
|
|
2488
2489
|
*
|
|
2489
2490
|
* @public
|
|
2490
2491
|
*/
|
|
2491
|
-
var CatalogAssemblyError = class extends effect.Schema.
|
|
2492
|
+
var CatalogAssemblyError = class extends effect.Schema.TaggedError()("CatalogAssemblyError", {
|
|
2492
2493
|
/**
|
|
2493
2494
|
* Which input failed: `manifest` for a file-level or top-level shape problem,
|
|
2494
2495
|
* `catalog` for a malformed catalog block or the double-default duplication,
|
|
@@ -2510,7 +2511,7 @@ var CatalogAssemblyError = class extends effect.Schema.TaggedErrorClass()("Catal
|
|
|
2510
2511
|
}
|
|
2511
2512
|
};
|
|
2512
2513
|
//#endregion
|
|
2513
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2514
|
+
//#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
|
|
2514
2515
|
/**
|
|
2515
2516
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2516
2517
|
* way consumers branch on it.
|
|
@@ -2542,7 +2543,7 @@ Object.fromEntries(Object.entries({
|
|
|
2542
2543
|
optional: "optionalDependencies"
|
|
2543
2544
|
}).map(([kind, field]) => [field, kind]));
|
|
2544
2545
|
//#endregion
|
|
2545
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
2546
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/desugar.js
|
|
2546
2547
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2547
2548
|
major,
|
|
2548
2549
|
minor,
|
|
@@ -2631,7 +2632,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2631
2632
|
return [comp(">=", lowerVersion)];
|
|
2632
2633
|
};
|
|
2633
2634
|
//#endregion
|
|
2634
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
2635
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/grammar.js
|
|
2635
2636
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2636
2637
|
var ParseFailure = class {
|
|
2637
2638
|
position;
|
|
@@ -3031,7 +3032,7 @@ const formatComparator = (c) => {
|
|
|
3031
3032
|
/** Print comparator sets as `a b || c d`. */
|
|
3032
3033
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
3033
3034
|
//#endregion
|
|
3034
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3035
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/order.js
|
|
3035
3036
|
/**
|
|
3036
3037
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
3037
3038
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3084,7 +3085,7 @@ const compareBuild = (a, b) => {
|
|
|
3084
3085
|
return 0;
|
|
3085
3086
|
};
|
|
3086
3087
|
//#endregion
|
|
3087
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3088
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/SemVer.js
|
|
3088
3089
|
/**
|
|
3089
3090
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3090
3091
|
*
|
|
@@ -3096,7 +3097,7 @@ const compareBuild = (a, b) => {
|
|
|
3096
3097
|
* @see {@link https://semver.org | SemVer 2.0.0 Specification}
|
|
3097
3098
|
* @public
|
|
3098
3099
|
*/
|
|
3099
|
-
var InvalidVersionError = class extends effect.Schema.
|
|
3100
|
+
var InvalidVersionError = class extends effect.Schema.TaggedError()("InvalidVersionError", {
|
|
3100
3101
|
/** The raw input string that failed to parse. */
|
|
3101
3102
|
input: effect.Schema.String,
|
|
3102
3103
|
/** The character position where parsing failed, if available. */
|
|
@@ -3160,7 +3161,7 @@ var SemVer = class SemVer extends effect.Schema.Class("SemVer")({
|
|
|
3160
3161
|
static FromString = effect.Schema.String.pipe(effect.Schema.decodeTo(SemVer, effect.SchemaTransformation.transformOrFail({
|
|
3161
3162
|
decode: (input) => {
|
|
3162
3163
|
const result = parseVersion(input);
|
|
3163
|
-
return result.ok ? effect.Effect.succeed(result.value) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(
|
|
3164
|
+
return result.ok ? effect.Effect.succeed(result.value) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: `Invalid version string: "${result.input}" at position ${result.position}` }, input));
|
|
3164
3165
|
},
|
|
3165
3166
|
encode: (parts) => effect.Effect.succeed(formatVersion(parts))
|
|
3166
3167
|
})));
|
|
@@ -3595,7 +3596,7 @@ var SemVerBump = class {
|
|
|
3595
3596
|
}
|
|
3596
3597
|
};
|
|
3597
3598
|
//#endregion
|
|
3598
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3599
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/Comparator.js
|
|
3599
3600
|
/**
|
|
3600
3601
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3601
3602
|
*
|
|
@@ -3605,7 +3606,7 @@ var SemVerBump = class {
|
|
|
3605
3606
|
*
|
|
3606
3607
|
* @public
|
|
3607
3608
|
*/
|
|
3608
|
-
var InvalidComparatorError = class extends effect.Schema.
|
|
3609
|
+
var InvalidComparatorError = class extends effect.Schema.TaggedError()("InvalidComparatorError", {
|
|
3609
3610
|
/** The raw input string that failed to parse. */
|
|
3610
3611
|
input: effect.Schema.String,
|
|
3611
3612
|
/** The character position where parsing failed, if available. */
|
|
@@ -3658,7 +3659,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
|
|
|
3658
3659
|
static FromString = effect.Schema.String.pipe(effect.Schema.decodeTo(Comparator, effect.SchemaTransformation.transformOrFail({
|
|
3659
3660
|
decode: (input) => {
|
|
3660
3661
|
const result = parseComparator(input);
|
|
3661
|
-
return result.ok ? effect.Effect.succeed(result.value) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(
|
|
3662
|
+
return result.ok ? effect.Effect.succeed(result.value) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: `Invalid comparator: "${result.input}" at position ${result.position}` }, input));
|
|
3662
3663
|
},
|
|
3663
3664
|
encode: (parts) => effect.Effect.succeed(formatComparator(parts))
|
|
3664
3665
|
})));
|
|
@@ -3729,7 +3730,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
|
|
|
3729
3730
|
}
|
|
3730
3731
|
};
|
|
3731
3732
|
//#endregion
|
|
3732
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3733
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/normalize.js
|
|
3733
3734
|
const operatorWeight = (op) => {
|
|
3734
3735
|
switch (op) {
|
|
3735
3736
|
case ">=": return 0;
|
|
@@ -3760,7 +3761,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3760
3761
|
/** Normalize every comparator set in a range: sort and deduplicate each independently. */
|
|
3761
3762
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3762
3763
|
//#endregion
|
|
3763
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.
|
|
3764
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/Range.js
|
|
3764
3765
|
/**
|
|
3765
3766
|
* Indicates that a string could not be parsed as a range expression.
|
|
3766
3767
|
*
|
|
@@ -3771,7 +3772,7 @@ const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
|
3771
3772
|
*
|
|
3772
3773
|
* @public
|
|
3773
3774
|
*/
|
|
3774
|
-
var InvalidRangeError = class extends effect.Schema.
|
|
3775
|
+
var InvalidRangeError = class extends effect.Schema.TaggedError()("InvalidRangeError", {
|
|
3775
3776
|
/** The raw input string that failed to parse. */
|
|
3776
3777
|
input: effect.Schema.String,
|
|
3777
3778
|
/** The character position where parsing failed, if available. */
|
|
@@ -3816,7 +3817,7 @@ sets: effect.Schema.Array(effect.Schema.Array(Comparator)) }) {
|
|
|
3816
3817
|
static FromString = effect.Schema.String.pipe(effect.Schema.decodeTo(Range, effect.SchemaTransformation.transformOrFail({
|
|
3817
3818
|
decode: (input) => {
|
|
3818
3819
|
const result = parseRange$1(input);
|
|
3819
|
-
return result.ok ? effect.Effect.succeed({ sets: normalizeSets(result.value) }) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(
|
|
3820
|
+
return result.ok ? effect.Effect.succeed({ sets: normalizeSets(result.value) }) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: `Invalid range expression: "${result.input}" at position ${result.position}` }, input));
|
|
3820
3821
|
},
|
|
3821
3822
|
encode: (parts) => effect.Effect.succeed(formatRange(parts.sets))
|
|
3822
3823
|
})));
|
|
@@ -4038,7 +4039,7 @@ sets: effect.Schema.Array(effect.Schema.Array(Comparator)) }) {
|
|
|
4038
4039
|
*
|
|
4039
4040
|
* @public
|
|
4040
4041
|
*/
|
|
4041
|
-
var UnsatisfiableConstraintError = class extends effect.Schema.
|
|
4042
|
+
var UnsatisfiableConstraintError = class extends effect.Schema.TaggedError()("UnsatisfiableConstraintError", {
|
|
4042
4043
|
/** The ranges whose intersection is empty. */
|
|
4043
4044
|
constraints: effect.Schema.Array(Range$2) }) {
|
|
4044
4045
|
get message() {
|
|
@@ -4125,7 +4126,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4125
4126
|
return true;
|
|
4126
4127
|
};
|
|
4127
4128
|
//#endregion
|
|
4128
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
4129
|
+
//#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
|
|
4129
4130
|
/**
|
|
4130
4131
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
4131
4132
|
*
|
|
@@ -4134,7 +4135,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4134
4135
|
*
|
|
4135
4136
|
* @public
|
|
4136
4137
|
*/
|
|
4137
|
-
var InvalidDependencySpecifierError = class extends effect.Schema.
|
|
4138
|
+
var InvalidDependencySpecifierError = class extends effect.Schema.TaggedError()("InvalidDependencySpecifierError", {
|
|
4138
4139
|
/** The raw input string that failed validation. */
|
|
4139
4140
|
input: effect.Schema.String }) {
|
|
4140
4141
|
get message() {
|
|
@@ -4297,7 +4298,7 @@ const classify$1 = (value) => {
|
|
|
4297
4298
|
return RawSpecifier.make({ raw: value });
|
|
4298
4299
|
};
|
|
4299
4300
|
const fromString = effect.Schema.String.pipe(effect.Schema.decodeTo(Classified, effect.SchemaTransformation.transformOrFail({
|
|
4300
|
-
decode: (input) => isValidDependencySpecifier(input) ? effect.Effect.succeed(classify$1(input)) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(
|
|
4301
|
+
decode: (input) => isValidDependencySpecifier(input) ? effect.Effect.succeed(classify$1(input)) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: `Invalid dependency specifier: "${input}"` }, input)),
|
|
4301
4302
|
encode: (classified) => effect.Effect.succeed(classified.raw)
|
|
4302
4303
|
})));
|
|
4303
4304
|
const brandedSpecifier = effect.Schema.String.pipe(effect.Schema.check(effect.Schema.makeFilter((value) => isValidDependencySpecifier(value) ? void 0 : "Expected a valid dependency specifier")), effect.Schema.brand("DependencySpecifier"));
|
|
@@ -4332,7 +4333,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4332
4333
|
FromString: fromString
|
|
4333
4334
|
});
|
|
4334
4335
|
//#endregion
|
|
4335
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
4336
|
+
//#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
|
|
4336
4337
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4337
4338
|
const COREPACK_RE = /^(sha1|sha224|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4338
4339
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4359,7 +4360,7 @@ const algorithmOf = (value) => {
|
|
|
4359
4360
|
*
|
|
4360
4361
|
* @public
|
|
4361
4362
|
*/
|
|
4362
|
-
var InvalidIntegrityHashError = class extends effect.Schema.
|
|
4363
|
+
var InvalidIntegrityHashError = class extends effect.Schema.TaggedError()("InvalidIntegrityHashError", {
|
|
4363
4364
|
/** The raw input string that failed validation. */
|
|
4364
4365
|
input: effect.Schema.String }) {
|
|
4365
4366
|
get message() {
|
|
@@ -4542,7 +4543,7 @@ var ExecContext = class extends effect.Schema.Class("ExecContext")({
|
|
|
4542
4543
|
*
|
|
4543
4544
|
* @public
|
|
4544
4545
|
*/
|
|
4545
|
-
var LocalExecError = class extends effect.Schema.
|
|
4546
|
+
var LocalExecError = class extends effect.Schema.TaggedError()("LocalExecError", {
|
|
4546
4547
|
/** The directory whose context could not be determined, when one is known. */
|
|
4547
4548
|
directory: effect.Schema.optionalKey(effect.Schema.String),
|
|
4548
4549
|
/** The underlying failure. */
|
|
@@ -4631,7 +4632,7 @@ var LocalExec = class LocalExec extends effect.Context.Service()("@effected/comm
|
|
|
4631
4632
|
static layerTest = (overrides = {}) => effect.Layer.succeed(LocalExec, LocalExec.makeTest(overrides));
|
|
4632
4633
|
};
|
|
4633
4634
|
//#endregion
|
|
4634
|
-
//#region ../../node_modules/.pnpm/@effected+commands@0.
|
|
4635
|
+
//#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/Redaction.js
|
|
4635
4636
|
/**
|
|
4636
4637
|
* Argument tokens whose *following* positional (or `=`-joined value) is a
|
|
4637
4638
|
* secret. Lowercase; matching is case-insensitive.
|
|
@@ -4754,7 +4755,7 @@ var Redaction = class {
|
|
|
4754
4755
|
static SECRET_FLAGS = SECRET_FLAGS;
|
|
4755
4756
|
};
|
|
4756
4757
|
//#endregion
|
|
4757
|
-
//#region ../../node_modules/.pnpm/@effected+commands@0.
|
|
4758
|
+
//#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/internal/capture.js
|
|
4758
4759
|
/**
|
|
4759
4760
|
* Raised when a captured stream exceeds its byte budget.
|
|
4760
4761
|
*
|
|
@@ -4781,7 +4782,7 @@ const collectBounded = (stream, limit) => effect.Effect.gen(function* () {
|
|
|
4781
4782
|
return yield* effect.Stream.mkString(effect.Stream.decodeText(bounded));
|
|
4782
4783
|
});
|
|
4783
4784
|
//#endregion
|
|
4784
|
-
//#region ../../node_modules/.pnpm/@effected+commands@0.
|
|
4785
|
+
//#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/Run.js
|
|
4785
4786
|
/**
|
|
4786
4787
|
* Default ceiling on captured bytes per stream (16 MiB).
|
|
4787
4788
|
*
|
|
@@ -4850,7 +4851,7 @@ const tail = (text) => {
|
|
|
4850
4851
|
*
|
|
4851
4852
|
* @public
|
|
4852
4853
|
*/
|
|
4853
|
-
var CommandFailedError = class CommandFailedError extends effect.Schema.
|
|
4854
|
+
var CommandFailedError = class CommandFailedError extends effect.Schema.TaggedError()("CommandFailedError", {
|
|
4854
4855
|
/** Why it failed. */
|
|
4855
4856
|
kind: effect.Schema.Literals([
|
|
4856
4857
|
"nonZero",
|
|
@@ -4936,7 +4937,7 @@ var CommandFailedError = class CommandFailedError extends effect.Schema.TaggedEr
|
|
|
4936
4937
|
*
|
|
4937
4938
|
* @public
|
|
4938
4939
|
*/
|
|
4939
|
-
var CommandOutputError = class extends effect.Schema.
|
|
4940
|
+
var CommandOutputError = class extends effect.Schema.TaggedError()("CommandOutputError", {
|
|
4940
4941
|
/** Which way the output was unusable. */
|
|
4941
4942
|
kind: effect.Schema.Literals([
|
|
4942
4943
|
"notJson",
|
|
@@ -5302,7 +5303,7 @@ var Run = class {
|
|
|
5302
5303
|
static REDACTED = "***";
|
|
5303
5304
|
};
|
|
5304
5305
|
//#endregion
|
|
5305
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
5306
|
+
//#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
|
|
5306
5307
|
const MS_PER_MINUTE = 6e4;
|
|
5307
5308
|
/**
|
|
5308
5309
|
* A source's partial contribution to a {@link ReleaseAgeGate}: the effective
|
|
@@ -5472,7 +5473,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends effect.Schema.Class("ReleaseAg
|
|
|
5472
5473
|
}
|
|
5473
5474
|
};
|
|
5474
5475
|
//#endregion
|
|
5475
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5476
|
+
//#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
|
|
5476
5477
|
/**
|
|
5477
5478
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
5478
5479
|
*
|
|
@@ -5510,7 +5511,7 @@ var ImporterDependency = class extends effect.Schema.Class("ImporterDependency")
|
|
|
5510
5511
|
depType: DependencyField
|
|
5511
5512
|
}) {};
|
|
5512
5513
|
//#endregion
|
|
5513
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5514
|
+
//#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
|
|
5514
5515
|
/**
|
|
5515
5516
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
5516
5517
|
*
|
|
@@ -5534,7 +5535,7 @@ var LockfileImporter = class extends effect.Schema.Class("LockfileImporter")({
|
|
|
5534
5535
|
dependencies: effect.Schema.Array(ImporterDependency)
|
|
5535
5536
|
}) {};
|
|
5536
5537
|
//#endregion
|
|
5537
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5538
|
+
//#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
|
|
5538
5539
|
const EMPTY_DEPENDENCIES = {};
|
|
5539
5540
|
/**
|
|
5540
5541
|
* A package resolved from a lockfile.
|
|
@@ -5569,7 +5570,7 @@ var ResolvedPackage = class extends effect.Schema.Class("ResolvedPackage")({
|
|
|
5569
5570
|
dependencies: effect.Schema.Record(effect.Schema.String, effect.Schema.String).pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(EMPTY_DEPENDENCIES)), effect.Schema.withConstructorDefault(effect.Effect.succeed(EMPTY_DEPENDENCIES)))
|
|
5570
5571
|
}) {};
|
|
5571
5572
|
//#endregion
|
|
5572
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5573
|
+
//#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
|
|
5573
5574
|
/**
|
|
5574
5575
|
* A directed dependency edge between two workspace packages as recorded in
|
|
5575
5576
|
* the lockfile.
|
|
@@ -5591,7 +5592,7 @@ var WorkspaceDependency = class extends effect.Schema.Class("WorkspaceDependency
|
|
|
5591
5592
|
constraint: effect.Schema.String
|
|
5592
5593
|
}) {};
|
|
5593
5594
|
//#endregion
|
|
5594
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5595
|
+
//#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
|
|
5595
5596
|
/**
|
|
5596
5597
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
5597
5598
|
* when the format is `"pnpm"`.
|
|
@@ -5616,7 +5617,7 @@ var PnpmExtension = class extends effect.Schema.Class("PnpmExtension")({
|
|
|
5616
5617
|
}))
|
|
5617
5618
|
}) {};
|
|
5618
5619
|
//#endregion
|
|
5619
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5620
|
+
//#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
|
|
5620
5621
|
/**
|
|
5621
5622
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
5622
5623
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -5654,7 +5655,7 @@ const FILENAMES = {
|
|
|
5654
5655
|
*/
|
|
5655
5656
|
const filenameFor = (format) => FILENAMES[format][0];
|
|
5656
5657
|
//#endregion
|
|
5657
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
5658
|
+
//#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
|
|
5658
5659
|
/**
|
|
5659
5660
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
5660
5661
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -5812,7 +5813,7 @@ const extractWorkspaceDeps = (workspaces, workspaceNames) => {
|
|
|
5812
5813
|
return deps;
|
|
5813
5814
|
};
|
|
5814
5815
|
//#endregion
|
|
5815
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
5816
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/JsoncNode.js
|
|
5816
5817
|
/**
|
|
5817
5818
|
* Discriminator values for JSONC AST node types: the JSON value types
|
|
5818
5819
|
* (`string`/`number`/`boolean`/`null`), the structural types
|
|
@@ -5987,7 +5988,7 @@ function evaluateNode(node, depth) {
|
|
|
5987
5988
|
}
|
|
5988
5989
|
}
|
|
5989
5990
|
//#endregion
|
|
5990
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
5991
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/scanner.js
|
|
5991
5992
|
const isWhitespace = (ch) => ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 65279;
|
|
5992
5993
|
const isLineBreak$1 = (ch) => ch === 10 || ch === 13 || ch === 8232 || ch === 8233;
|
|
5993
5994
|
const isDigit$1 = (ch) => ch >= 48 && ch <= 57;
|
|
@@ -6281,7 +6282,7 @@ const createScanner$2 = (text, ignoreTrivia = false) => {
|
|
|
6281
6282
|
};
|
|
6282
6283
|
};
|
|
6283
6284
|
//#endregion
|
|
6284
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6285
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/skip.js
|
|
6285
6286
|
/**
|
|
6286
6287
|
* Iteratively consume the value beginning at the cursor's current token and
|
|
6287
6288
|
* return its tight end offset (excludes trailing whitespace/comments).
|
|
@@ -6311,7 +6312,7 @@ const skipBalancedValue = (cursor) => {
|
|
|
6311
6312
|
return end;
|
|
6312
6313
|
};
|
|
6313
6314
|
//#endregion
|
|
6314
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6315
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/parser.js
|
|
6315
6316
|
/**
|
|
6316
6317
|
* The public parse-error code vocabulary. The facade builds its `@public`
|
|
6317
6318
|
* `JsoncParseErrorCode` schema from this array; the parser produces these codes
|
|
@@ -6724,7 +6725,7 @@ const parseTree$2 = (text, flags) => {
|
|
|
6724
6725
|
};
|
|
6725
6726
|
};
|
|
6726
6727
|
//#endregion
|
|
6727
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6728
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/Jsonc.js
|
|
6728
6729
|
/**
|
|
6729
6730
|
* The single public parse-error code vocabulary, appearing as the `code` field
|
|
6730
6731
|
* of {@link JsoncParseErrorDetail}.
|
|
@@ -6754,7 +6755,7 @@ var JsoncParseErrorDetail = class extends effect.Schema.Class("JsoncParseErrorDe
|
|
|
6754
6755
|
*
|
|
6755
6756
|
* @public
|
|
6756
6757
|
*/
|
|
6757
|
-
var JsoncParseError = class extends effect.Schema.
|
|
6758
|
+
var JsoncParseError = class extends effect.Schema.TaggedError()("JsoncParseError", {
|
|
6758
6759
|
errors: effect.Schema.Array(JsoncParseErrorDetail),
|
|
6759
6760
|
input: effect.Schema.String
|
|
6760
6761
|
}) {
|
|
@@ -6801,7 +6802,7 @@ effect.Schema.Class("JsoncStringifyOptions")({
|
|
|
6801
6802
|
*
|
|
6802
6803
|
* @public
|
|
6803
6804
|
*/
|
|
6804
|
-
var JsoncStringifyError = class extends effect.Schema.
|
|
6805
|
+
var JsoncStringifyError = class extends effect.Schema.TaggedError()("JsoncStringifyError", {
|
|
6805
6806
|
code: JsoncStringifyErrorCode,
|
|
6806
6807
|
detail: effect.Schema.String,
|
|
6807
6808
|
value: effect.Schema.Unknown
|
|
@@ -7192,11 +7193,11 @@ var Jsonc = class Jsonc {
|
|
|
7192
7193
|
errors: toDetails(input, errors),
|
|
7193
7194
|
input
|
|
7194
7195
|
});
|
|
7195
|
-
return effect.Effect.fail(new effect.SchemaIssue.InvalidValue(
|
|
7196
|
+
return effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: aggregate.message }, input));
|
|
7196
7197
|
}
|
|
7197
7198
|
return effect.Effect.succeed(value);
|
|
7198
7199
|
},
|
|
7199
|
-
encode: (value) => effect.Effect.fromResult(Jsonc.stringifyResult(value)).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(
|
|
7200
|
+
encode: (value) => effect.Effect.fromResult(Jsonc.stringifyResult(value)).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, value)))
|
|
7200
7201
|
})));
|
|
7201
7202
|
}
|
|
7202
7203
|
/**
|
|
@@ -7328,7 +7329,7 @@ var JsoncEdit = class extends effect.Schema.Class("JsoncEdit")({
|
|
|
7328
7329
|
}
|
|
7329
7330
|
};
|
|
7330
7331
|
//#endregion
|
|
7331
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
7332
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/navigate.js
|
|
7332
7333
|
/**
|
|
7333
7334
|
* Resolve `path` against `text`, returning where the target is (or where it
|
|
7334
7335
|
* would be inserted). `path` must be non-empty — the whole-document case is
|
|
@@ -7455,7 +7456,7 @@ function navigate(text, path) {
|
|
|
7455
7456
|
return { _tag: "NoOp" };
|
|
7456
7457
|
}
|
|
7457
7458
|
//#endregion
|
|
7458
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
7459
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/JsoncModifier.js
|
|
7459
7460
|
/**
|
|
7460
7461
|
* Raised when `JsoncModifier.modify` cannot navigate the requested path: the
|
|
7461
7462
|
* value at `depth` is not the container kind (`expected`) the next path segment
|
|
@@ -7479,7 +7480,7 @@ function navigate(text, path) {
|
|
|
7479
7480
|
*
|
|
7480
7481
|
* @public
|
|
7481
7482
|
*/
|
|
7482
|
-
var JsoncModificationError = class extends effect.Schema.
|
|
7483
|
+
var JsoncModificationError = class extends effect.Schema.TaggedError()("JsoncModificationError", {
|
|
7483
7484
|
path: effect.Schema.Array(effect.Schema.Union([effect.Schema.String, effect.Schema.Number])),
|
|
7484
7485
|
expected: effect.Schema.Literals(["object", "array"]),
|
|
7485
7486
|
depth: effect.Schema.Number,
|
|
@@ -7583,7 +7584,7 @@ var JsoncModifier = class {
|
|
|
7583
7584
|
});
|
|
7584
7585
|
};
|
|
7585
7586
|
//#endregion
|
|
7586
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
7587
|
+
//#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
|
|
7587
7588
|
const DepRecord$2 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
7588
7589
|
const BunWorkspaceEntry = effect.Schema.Struct({
|
|
7589
7590
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -7676,7 +7677,7 @@ const toFields$3 = (raw) => effect.Effect.gen(function* () {
|
|
|
7676
7677
|
};
|
|
7677
7678
|
});
|
|
7678
7679
|
//#endregion
|
|
7679
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
7680
|
+
//#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
|
|
7680
7681
|
const DepRecord$1 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
7681
7682
|
const NpmPackageEntry = effect.Schema.Struct({
|
|
7682
7683
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -7774,7 +7775,7 @@ const toFields$2 = (raw) => effect.Effect.gen(function* () {
|
|
|
7774
7775
|
};
|
|
7775
7776
|
});
|
|
7776
7777
|
//#endregion
|
|
7777
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
7778
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/YamlNode.js
|
|
7778
7779
|
/**
|
|
7779
7780
|
* YAML scalar presentation styles.
|
|
7780
7781
|
*
|
|
@@ -8176,7 +8177,7 @@ function nodeToValue(node, anchors, budget, counting = false) {
|
|
|
8176
8177
|
return null;
|
|
8177
8178
|
}
|
|
8178
8179
|
//#endregion
|
|
8179
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8180
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/diagnostics.js
|
|
8180
8181
|
/** Error codes emitted by the lexer stage. */
|
|
8181
8182
|
const YAML_LEX_ERROR_CODES = [
|
|
8182
8183
|
"UnexpectedCharacter",
|
|
@@ -8254,7 +8255,7 @@ function isFatalCode(code) {
|
|
|
8254
8255
|
return FATAL_CODES.has(code);
|
|
8255
8256
|
}
|
|
8256
8257
|
//#endregion
|
|
8257
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8258
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/YamlDiagnostic.js
|
|
8258
8259
|
/**
|
|
8259
8260
|
* Error codes emitted by the lexer stage.
|
|
8260
8261
|
*
|
|
@@ -8375,7 +8376,7 @@ function lineChar(text, offset) {
|
|
|
8375
8376
|
};
|
|
8376
8377
|
}
|
|
8377
8378
|
//#endregion
|
|
8378
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8379
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/anchors.js
|
|
8379
8380
|
/**
|
|
8380
8381
|
* Check if a pending anchor is being applied to an alias node (invalid in YAML 1.2 §3.2.2).
|
|
8381
8382
|
* Aliases represent references to existing anchored nodes and cannot have their own anchors.
|
|
@@ -8468,7 +8469,7 @@ function collectAnchors(node, anchors) {
|
|
|
8468
8469
|
}
|
|
8469
8470
|
}
|
|
8470
8471
|
//#endregion
|
|
8471
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8472
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/lexer.js
|
|
8472
8473
|
/**
|
|
8473
8474
|
* Create a new YAML scanner for the given source text.
|
|
8474
8475
|
*
|
|
@@ -8686,14 +8687,15 @@ function createScanner$1(text) {
|
|
|
8686
8687
|
let value = "";
|
|
8687
8688
|
while (pos < text.length) {
|
|
8688
8689
|
const ch = peek();
|
|
8689
|
-
if (ch === "'")
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8690
|
+
if (ch === "'") {
|
|
8691
|
+
if (peek(1) === "'") {
|
|
8692
|
+
value += "'";
|
|
8693
|
+
advance(2);
|
|
8694
|
+
} else {
|
|
8695
|
+
advance();
|
|
8696
|
+
return makeToken("scalar", value, start, sLine, sCol, pos - start);
|
|
8697
|
+
}
|
|
8698
|
+
} else if (ch === "\n" || ch === "\r" && peek(1) === "\n") {
|
|
8697
8699
|
value += " ";
|
|
8698
8700
|
if (ch === "\r") advance(2);
|
|
8699
8701
|
else advance();
|
|
@@ -8872,13 +8874,17 @@ function createScanner$1(text) {
|
|
|
8872
8874
|
hadHeaderWhitespace = true;
|
|
8873
8875
|
advance();
|
|
8874
8876
|
}
|
|
8875
|
-
if (pos < text.length && !isNewline(peek()) && peek() !== "")
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8877
|
+
if (pos < text.length && !isNewline(peek()) && peek() !== "") {
|
|
8878
|
+
if (peek() === "#" && hadHeaderWhitespace) while (pos < text.length && !isNewline(peek())) advance();
|
|
8879
|
+
else {
|
|
8880
|
+
while (pos < text.length && !isNewline(peek())) advance();
|
|
8881
|
+
return makeToken("error", text.slice(start, pos), start, sLine, sCol);
|
|
8882
|
+
}
|
|
8883
|
+
}
|
|
8884
|
+
if (pos < text.length && isNewline(peek())) {
|
|
8885
|
+
if (peek() === "\r" && peek(1) === "\n") advance(2);
|
|
8886
|
+
else advance();
|
|
8879
8887
|
}
|
|
8880
|
-
if (pos < text.length && isNewline(peek())) if (peek() === "\r" && peek(1) === "\n") advance(2);
|
|
8881
|
-
else advance();
|
|
8882
8888
|
let contentIndent = explicitIndent;
|
|
8883
8889
|
let foundContent = explicitIndent > 0;
|
|
8884
8890
|
if (explicitIndent > 0) {
|
|
@@ -9034,9 +9040,10 @@ function createScanner$1(text) {
|
|
|
9034
9040
|
prevMoreIndented = isMoreIndented;
|
|
9035
9041
|
hadContent = true;
|
|
9036
9042
|
} else {
|
|
9037
|
-
if (result[result.length - 1] === "\n")
|
|
9038
|
-
|
|
9039
|
-
|
|
9043
|
+
if (result[result.length - 1] === "\n") {
|
|
9044
|
+
if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
|
|
9045
|
+
else result += ln;
|
|
9046
|
+
} else if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
|
|
9040
9047
|
else result += ` ${ln}`;
|
|
9041
9048
|
prevMoreIndented = isMoreIndented;
|
|
9042
9049
|
}
|
|
@@ -9425,7 +9432,7 @@ function lexAll(text) {
|
|
|
9425
9432
|
return tokens;
|
|
9426
9433
|
}
|
|
9427
9434
|
//#endregion
|
|
9428
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
9435
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/cst-parser.js
|
|
9429
9436
|
/**
|
|
9430
9437
|
* Hardening: cap CST nesting so hostile inputs cannot overflow the stack
|
|
9431
9438
|
* while the tree is being BUILT. Set slightly above the composer's
|
|
@@ -9711,12 +9718,14 @@ function parseBlockMappingInner(state, indent) {
|
|
|
9711
9718
|
continue;
|
|
9712
9719
|
}
|
|
9713
9720
|
if (token.kind === "block-map-key") {
|
|
9721
|
+
if (token.column < indent && children.length > 0) break;
|
|
9714
9722
|
sawExplicitKey = true;
|
|
9715
9723
|
const leaf = consumeLeafToken(state);
|
|
9716
9724
|
if (leaf) children.push(leaf);
|
|
9717
9725
|
continue;
|
|
9718
9726
|
}
|
|
9719
9727
|
if (token.kind === "block-map-value") {
|
|
9728
|
+
if (token.column < indent && children.length > 0) break;
|
|
9720
9729
|
const leaf = consumeLeafToken(state);
|
|
9721
9730
|
if (leaf) children.push(leaf);
|
|
9722
9731
|
children.push(...parseBlockValue(state, indent, sawExplicitKey));
|
|
@@ -9782,7 +9791,7 @@ function parseBlockMappingInner(state, indent) {
|
|
|
9782
9791
|
/**
|
|
9783
9792
|
* Parse the value part after a ":" in a block mapping.
|
|
9784
9793
|
*/
|
|
9785
|
-
function parseBlockValue(state,
|
|
9794
|
+
function parseBlockValue(state, parentIndent, explicitKey = false) {
|
|
9786
9795
|
const nodes = [];
|
|
9787
9796
|
while (!atEnd(state)) {
|
|
9788
9797
|
const token = peek(state);
|
|
@@ -9810,6 +9819,10 @@ function parseBlockValue(state, _parentIndent, explicitKey = false) {
|
|
|
9810
9819
|
nodes.push(parseBlockSequence(state, seqIndent));
|
|
9811
9820
|
break;
|
|
9812
9821
|
}
|
|
9822
|
+
if (explicitKey && token.kind === "scalar" && !isBlockScalarToken(state) && hasImplicitMapAhead(state, parentIndent)) {
|
|
9823
|
+
nodes.push(parseImplicitBlockMapping(state, parentIndent));
|
|
9824
|
+
break;
|
|
9825
|
+
}
|
|
9813
9826
|
if (token.kind === "scalar" || token.kind === "anchor" || token.kind === "alias" || token.kind === "tag") {
|
|
9814
9827
|
const leaf = consumeLeafToken(state);
|
|
9815
9828
|
if (leaf) nodes.push(leaf);
|
|
@@ -9965,11 +9978,13 @@ function parseImplicitBlockMappingInner(state, seqIndent) {
|
|
|
9965
9978
|
if (!token) break;
|
|
9966
9979
|
if (isDocumentBoundary(token)) break;
|
|
9967
9980
|
if (token.kind === "block-seq-entry" && token.column <= seqIndent) break;
|
|
9981
|
+
if (token.kind === "block-map-key" && token.column <= seqIndent) break;
|
|
9968
9982
|
if (isTrivia(token)) {
|
|
9969
9983
|
children.push(...consumeTrivia(state));
|
|
9970
9984
|
continue;
|
|
9971
9985
|
}
|
|
9972
9986
|
if (token.kind === "block-map-value") {
|
|
9987
|
+
if (token.column <= seqIndent && children.length > 0) break;
|
|
9973
9988
|
const leaf = consumeLeafToken(state);
|
|
9974
9989
|
if (leaf) children.push(leaf);
|
|
9975
9990
|
children.push(...parseBlockValue(state, seqIndent));
|
|
@@ -10137,7 +10152,7 @@ function parseCSTAll(text) {
|
|
|
10137
10152
|
return parseDocuments(lexAll(text), text);
|
|
10138
10153
|
}
|
|
10139
10154
|
//#endregion
|
|
10140
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
10155
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/state.js
|
|
10141
10156
|
let lineStartsText;
|
|
10142
10157
|
let lineStartsCache = [];
|
|
10143
10158
|
function getLineStarts(text) {
|
|
@@ -10243,7 +10258,7 @@ function exitNesting(state) {
|
|
|
10243
10258
|
state.depth--;
|
|
10244
10259
|
}
|
|
10245
10260
|
//#endregion
|
|
10246
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
10261
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/tags.js
|
|
10247
10262
|
/**
|
|
10248
10263
|
* Resolve a tag shorthand using the document's %TAG directives.
|
|
10249
10264
|
* For example, with `%TAG !! tag:example.com,2000:app/`, the tag `!!int`
|
|
@@ -10329,7 +10344,7 @@ function validateTagHandlesInDocument(docCst, state) {
|
|
|
10329
10344
|
}
|
|
10330
10345
|
}
|
|
10331
10346
|
//#endregion
|
|
10332
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
10347
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/scalars.js
|
|
10333
10348
|
const NULL_RE$1 = /^(?:null|Null|NULL|~)$/;
|
|
10334
10349
|
const TRUE_RE$1 = /^(?:true|True|TRUE)$/;
|
|
10335
10350
|
const FALSE_RE$1 = /^(?:false|False|FALSE)$/;
|
|
@@ -10591,10 +10606,11 @@ function foldFlowLines(text) {
|
|
|
10591
10606
|
}
|
|
10592
10607
|
const isLast = i === lines.length - 1;
|
|
10593
10608
|
const trimmed = isLast ? line.trimStart() : line.trim();
|
|
10594
|
-
if (trimmed === "")
|
|
10595
|
-
if (
|
|
10596
|
-
|
|
10597
|
-
|
|
10609
|
+
if (trimmed === "") {
|
|
10610
|
+
if (isLast) {
|
|
10611
|
+
if (result.length === 0 || result[result.length - 1] !== "\n") result += " ";
|
|
10612
|
+
} else result += "\n";
|
|
10613
|
+
} else {
|
|
10598
10614
|
if (result.length > 0 && result[result.length - 1] !== "\n") result += " ";
|
|
10599
10615
|
result += trimmed;
|
|
10600
10616
|
}
|
|
@@ -11007,8 +11023,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
|
|
|
11007
11023
|
} else break;
|
|
11008
11024
|
}
|
|
11009
11025
|
while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
|
|
11010
|
-
if (i < raw.length)
|
|
11011
|
-
|
|
11026
|
+
if (i < raw.length) {
|
|
11027
|
+
if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
|
|
11028
|
+
else i++;
|
|
11029
|
+
}
|
|
11012
11030
|
let contentIndent = explicitIndent;
|
|
11013
11031
|
let foundContent = explicitIndent > 0;
|
|
11014
11032
|
if (explicitIndent > 0 && fullText !== void 0 && nodeOffset !== void 0) {
|
|
@@ -11071,8 +11089,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
|
|
|
11071
11089
|
trailingNewlines.length = 0;
|
|
11072
11090
|
lines.push(" ".repeat(spaces - contentIndent));
|
|
11073
11091
|
} else trailingNewlines.push("");
|
|
11074
|
-
if (i < raw.length)
|
|
11075
|
-
|
|
11092
|
+
if (i < raw.length) {
|
|
11093
|
+
if (raw[i] === "\r" && i + 1 < raw.length && raw[i + 1] === "\n") i += 2;
|
|
11094
|
+
else i++;
|
|
11095
|
+
}
|
|
11076
11096
|
continue;
|
|
11077
11097
|
}
|
|
11078
11098
|
if (spaces < contentIndent) break;
|
|
@@ -11082,8 +11102,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
|
|
|
11082
11102
|
const contentStart = i;
|
|
11083
11103
|
while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
|
|
11084
11104
|
lines.push(extra + raw.slice(contentStart, i));
|
|
11085
|
-
if (i < raw.length)
|
|
11086
|
-
|
|
11105
|
+
if (i < raw.length) {
|
|
11106
|
+
if (raw[i] === "\r" && i + 1 < raw.length && raw[i + 1] === "\n") i += 2;
|
|
11107
|
+
else i++;
|
|
11108
|
+
}
|
|
11087
11109
|
}
|
|
11088
11110
|
let value;
|
|
11089
11111
|
if (isFolded) {
|
|
@@ -11099,9 +11121,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
|
|
|
11099
11121
|
prevMoreIndented = isMoreIndented;
|
|
11100
11122
|
hadContent = true;
|
|
11101
11123
|
} else {
|
|
11102
|
-
if (result[result.length - 1] === "\n")
|
|
11103
|
-
|
|
11104
|
-
|
|
11124
|
+
if (result[result.length - 1] === "\n") {
|
|
11125
|
+
if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
|
|
11126
|
+
else result += ln;
|
|
11127
|
+
} else if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
|
|
11105
11128
|
else result += ` ${ln}`;
|
|
11106
11129
|
prevMoreIndented = isMoreIndented;
|
|
11107
11130
|
}
|
|
@@ -11135,8 +11158,10 @@ function validateBlockScalarLeadingEmpties(cst, state) {
|
|
|
11135
11158
|
const raw = cst.source;
|
|
11136
11159
|
let i = 0;
|
|
11137
11160
|
while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
|
|
11138
|
-
if (i < raw.length)
|
|
11139
|
-
|
|
11161
|
+
if (i < raw.length) {
|
|
11162
|
+
if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
|
|
11163
|
+
else i++;
|
|
11164
|
+
}
|
|
11140
11165
|
const emptyIndents = [];
|
|
11141
11166
|
while (i < raw.length) {
|
|
11142
11167
|
const lineStart = i;
|
|
@@ -11150,8 +11175,10 @@ function validateBlockScalarLeadingEmpties(cst, state) {
|
|
|
11150
11175
|
indent: spaces,
|
|
11151
11176
|
offsetInRaw: lineStart
|
|
11152
11177
|
});
|
|
11153
|
-
if (i < raw.length)
|
|
11154
|
-
|
|
11178
|
+
if (i < raw.length) {
|
|
11179
|
+
if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
|
|
11180
|
+
else i++;
|
|
11181
|
+
}
|
|
11155
11182
|
continue;
|
|
11156
11183
|
}
|
|
11157
11184
|
const contentIndent = spaces;
|
|
@@ -11207,7 +11234,7 @@ function shouldPreserveRaw(rawValue, value) {
|
|
|
11207
11234
|
return false;
|
|
11208
11235
|
}
|
|
11209
11236
|
//#endregion
|
|
11210
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
11237
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/block.js
|
|
11211
11238
|
/**
|
|
11212
11239
|
* Compose a block map from its CST children, with an optional external first key.
|
|
11213
11240
|
*
|
|
@@ -11705,7 +11732,7 @@ function buildPairs(items, pairs, text) {
|
|
|
11705
11732
|
const nullKey = new YamlScalar({
|
|
11706
11733
|
value: null,
|
|
11707
11734
|
style: "plain",
|
|
11708
|
-
offset:
|
|
11735
|
+
offset: valueSepOffset,
|
|
11709
11736
|
length: 0
|
|
11710
11737
|
});
|
|
11711
11738
|
pairs.push(new YamlPair({
|
|
@@ -11717,7 +11744,7 @@ function buildPairs(items, pairs, text) {
|
|
|
11717
11744
|
const nullKey = new YamlScalar({
|
|
11718
11745
|
value: null,
|
|
11719
11746
|
style: "plain",
|
|
11720
|
-
offset:
|
|
11747
|
+
offset: valueSepOffset,
|
|
11721
11748
|
length: 0
|
|
11722
11749
|
});
|
|
11723
11750
|
pairs.push(new YamlPair({
|
|
@@ -12355,7 +12382,7 @@ function composeFlatBlockMap(children, startIdx, parentCst, state, externalFirst
|
|
|
12355
12382
|
return map;
|
|
12356
12383
|
}
|
|
12357
12384
|
//#endregion
|
|
12358
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
12385
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/flow.js
|
|
12359
12386
|
/**
|
|
12360
12387
|
* Validate that flow collection entries are separated by commas.
|
|
12361
12388
|
*
|
|
@@ -12747,7 +12774,7 @@ function composeFlowSeqInner(cst, state, meta, parentBlockColumn) {
|
|
|
12747
12774
|
return seq;
|
|
12748
12775
|
}
|
|
12749
12776
|
//#endregion
|
|
12750
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
12777
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/document.js
|
|
12751
12778
|
/** The flow-composer dispatch wired into every state this module creates. */
|
|
12752
12779
|
const FLOW = {
|
|
12753
12780
|
composeFlowMap,
|
|
@@ -13413,7 +13440,7 @@ function composeAllDocuments(text, options) {
|
|
|
13413
13440
|
};
|
|
13414
13441
|
}
|
|
13415
13442
|
//#endregion
|
|
13416
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
13443
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/fold.js
|
|
13417
13444
|
/**
|
|
13418
13445
|
* Column-based line folding for a single logical scalar line (YAML 1.2 flow
|
|
13419
13446
|
* folding, §7.3 / §8.2.1). Breaks the content at "safe" single-space
|
|
@@ -13649,7 +13676,7 @@ function renderBlockFolded(s, indent) {
|
|
|
13649
13676
|
return `>${indentIndicator}${chomp}\n${outputLines.join("\n")}`;
|
|
13650
13677
|
}
|
|
13651
13678
|
//#endregion
|
|
13652
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
13679
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/stringifier.js
|
|
13653
13680
|
/**
|
|
13654
13681
|
* Thrown by the stringifier on its failure paths (circular references). The
|
|
13655
13682
|
* facade catches this and materializes the public stringify error.
|
|
@@ -13746,10 +13773,12 @@ function requiresQuoting(s, ignoreType = false) {
|
|
|
13746
13773
|
if (!ignoreType && wouldBeResolved(s)) return true;
|
|
13747
13774
|
const first = s[0];
|
|
13748
13775
|
if (first === " " || first === " ") return true;
|
|
13749
|
-
if (first !== void 0 && INDICATOR_CHARS.has(first))
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13776
|
+
if (first !== void 0 && INDICATOR_CHARS.has(first)) {
|
|
13777
|
+
if (first === ":" || first === "?" || first === "-") {
|
|
13778
|
+
const second = s[1];
|
|
13779
|
+
if (s.length === 1 || second === " " || second === " ") return true;
|
|
13780
|
+
} else return true;
|
|
13781
|
+
}
|
|
13753
13782
|
if (s.startsWith("---") || s.startsWith("...")) return true;
|
|
13754
13783
|
if (s.includes(": ") || s.includes(": ") || s.endsWith(":")) return true;
|
|
13755
13784
|
if (s.includes(" #") || s.includes(" #")) return true;
|
|
@@ -13780,14 +13809,15 @@ function renderDoubleQuoted(s, canonical = false) {
|
|
|
13780
13809
|
let result = "";
|
|
13781
13810
|
for (let i = 0; i < escaped.length; i++) {
|
|
13782
13811
|
const code = escaped.charCodeAt(i);
|
|
13783
|
-
if (isControlChar(code))
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13789
|
-
|
|
13790
|
-
|
|
13812
|
+
if (isControlChar(code)) {
|
|
13813
|
+
if (code === 0) result += "\\0";
|
|
13814
|
+
else if (code === 7) result += "\\a";
|
|
13815
|
+
else if (code === 8) result += "\\b";
|
|
13816
|
+
else if (code === 11) result += "\\v";
|
|
13817
|
+
else if (code === 12) result += "\\f";
|
|
13818
|
+
else if (code === 27) result += "\\e";
|
|
13819
|
+
else result += `\\x${code.toString(16).padStart(2, "0")}`;
|
|
13820
|
+
} else if (canonical && code > 126) {
|
|
13791
13821
|
if (code >= 55296 && code <= 56319 && i + 1 < escaped.length) {
|
|
13792
13822
|
const low = escaped.charCodeAt(i + 1);
|
|
13793
13823
|
if (low >= 56320 && low <= 57343) {
|
|
@@ -14067,7 +14097,7 @@ effect.Schema.Class("YamlStringifyOptions")({
|
|
|
14067
14097
|
*
|
|
14068
14098
|
* @public
|
|
14069
14099
|
*/
|
|
14070
|
-
var YamlParseError = class extends effect.Schema.
|
|
14100
|
+
var YamlParseError = class extends effect.Schema.TaggedError()("YamlParseError", {
|
|
14071
14101
|
diagnostics: effect.Schema.Array(YamlDiagnostic),
|
|
14072
14102
|
input: effect.Schema.String
|
|
14073
14103
|
}) {
|
|
@@ -14085,7 +14115,7 @@ var YamlParseError = class extends effect.Schema.TaggedErrorClass()("YamlParseEr
|
|
|
14085
14115
|
*
|
|
14086
14116
|
* @public
|
|
14087
14117
|
*/
|
|
14088
|
-
var YamlStringifyError = class extends effect.Schema.
|
|
14118
|
+
var YamlStringifyError = class extends effect.Schema.TaggedError()("YamlStringifyError", {
|
|
14089
14119
|
diagnostics: effect.Schema.Array(YamlDiagnostic),
|
|
14090
14120
|
value: effect.Schema.Unknown
|
|
14091
14121
|
}) {
|
|
@@ -14457,8 +14487,8 @@ var Yaml = class Yaml {
|
|
|
14457
14487
|
*/
|
|
14458
14488
|
static fromString(options) {
|
|
14459
14489
|
return effect.Schema.String.pipe(effect.Schema.decodeTo(effect.Schema.Unknown, effect.SchemaTransformation.transformOrFail({
|
|
14460
|
-
decode: (input) => Yaml.parse(input, options).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(
|
|
14461
|
-
encode: (value) => stringifyOrFail(value).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(
|
|
14490
|
+
decode: (input) => Yaml.parse(input, options).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, input))),
|
|
14491
|
+
encode: (value) => stringifyOrFail(value).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, value)))
|
|
14462
14492
|
})));
|
|
14463
14493
|
}
|
|
14464
14494
|
/**
|
|
@@ -14477,12 +14507,12 @@ var Yaml = class Yaml {
|
|
|
14477
14507
|
*/
|
|
14478
14508
|
static allFromString(options) {
|
|
14479
14509
|
return effect.Schema.String.pipe(effect.Schema.decodeTo(effect.Schema.Array(effect.Schema.Unknown), effect.SchemaTransformation.transformOrFail({
|
|
14480
|
-
decode: (input) => Yaml.parseAll(input, options).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(
|
|
14510
|
+
decode: (input) => Yaml.parseAll(input, options).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, input))),
|
|
14481
14511
|
encode: (values) => effect.Effect.gen(function* () {
|
|
14482
14512
|
if (values.length === 0) return "";
|
|
14483
14513
|
const parts = [];
|
|
14484
14514
|
for (let index = 0; index < values.length; index++) {
|
|
14485
|
-
const yaml = yield* stringifyOrFail(values[index]).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(
|
|
14515
|
+
const yaml = yield* stringifyOrFail(values[index]).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, values)));
|
|
14486
14516
|
parts.push(index > 0 ? `---\n${yaml}` : yaml);
|
|
14487
14517
|
}
|
|
14488
14518
|
return parts.join("");
|
|
@@ -14598,7 +14628,7 @@ function deepEqualValues(a, b) {
|
|
|
14598
14628
|
return false;
|
|
14599
14629
|
}
|
|
14600
14630
|
//#endregion
|
|
14601
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
14631
|
+
//#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
|
|
14602
14632
|
/**
|
|
14603
14633
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
14604
14634
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -14668,7 +14698,7 @@ const selectSoleDocument = (content) => effect.Effect.gen(function* () {
|
|
|
14668
14698
|
};
|
|
14669
14699
|
});
|
|
14670
14700
|
//#endregion
|
|
14671
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
14701
|
+
//#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
|
|
14672
14702
|
const PnpmImporterDeps = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Struct({
|
|
14673
14703
|
specifier: effect.Schema.String,
|
|
14674
14704
|
version: effect.Schema.String
|
|
@@ -14793,7 +14823,7 @@ const toFields$1 = (raw) => effect.Effect.gen(function* () {
|
|
|
14793
14823
|
};
|
|
14794
14824
|
});
|
|
14795
14825
|
//#endregion
|
|
14796
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
14826
|
+
//#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
|
|
14797
14827
|
const YarnLockfileRaw = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
|
|
14798
14828
|
const DepRecord = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
14799
14829
|
const YarnEntry = effect.Schema.Struct({
|
|
@@ -14916,7 +14946,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
14916
14946
|
return Object.fromEntries(Object.entries(deps).map(([name, value]) => [name, value.startsWith("npm:") ? value.slice(4) : value]));
|
|
14917
14947
|
};
|
|
14918
14948
|
//#endregion
|
|
14919
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
14949
|
+
//#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
|
|
14920
14950
|
const EMPTY_IMPORTERS = [];
|
|
14921
14951
|
/**
|
|
14922
14952
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -14936,7 +14966,7 @@ const EMPTY_IMPORTERS = [];
|
|
|
14936
14966
|
*
|
|
14937
14967
|
* @public
|
|
14938
14968
|
*/
|
|
14939
|
-
var LockfileParseError = class extends effect.Schema.
|
|
14969
|
+
var LockfileParseError = class extends effect.Schema.TaggedError()("LockfileParseError", {
|
|
14940
14970
|
format: LockfileFormat,
|
|
14941
14971
|
stage: effect.Schema.Literals(["syntax", "validation"]),
|
|
14942
14972
|
cause: effect.Schema.Defect()
|
|
@@ -14977,7 +15007,7 @@ var LockfileParseError = class extends effect.Schema.TaggedErrorClass()("Lockfil
|
|
|
14977
15007
|
*
|
|
14978
15008
|
* @public
|
|
14979
15009
|
*/
|
|
14980
|
-
var LockfileFramingError = class extends effect.Schema.
|
|
15010
|
+
var LockfileFramingError = class extends effect.Schema.TaggedError()("LockfileFramingError", {
|
|
14981
15011
|
format: LockfileFormat,
|
|
14982
15012
|
reason: effect.Schema.Literals([
|
|
14983
15013
|
"noLockfileDocument",
|
|
@@ -15160,7 +15190,7 @@ var Lockfile = class Lockfile extends effect.Schema.Class("Lockfile")({
|
|
|
15160
15190
|
}
|
|
15161
15191
|
};
|
|
15162
15192
|
//#endregion
|
|
15163
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.
|
|
15193
|
+
//#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
|
|
15164
15194
|
/**
|
|
15165
15195
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
15166
15196
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -15276,7 +15306,7 @@ var LockfileIntegrity = class LockfileIntegrity extends effect.Schema.Class("Loc
|
|
|
15276
15306
|
}
|
|
15277
15307
|
};
|
|
15278
15308
|
//#endregion
|
|
15279
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
15309
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Dependency.js
|
|
15280
15310
|
/**
|
|
15281
15311
|
* A resolved dependency entry pairing a package name with its version
|
|
15282
15312
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -15340,7 +15370,7 @@ var Dependency = class extends effect.Schema.Class("Dependency")({
|
|
|
15340
15370
|
}
|
|
15341
15371
|
};
|
|
15342
15372
|
//#endregion
|
|
15343
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
15373
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/DevEngines.js
|
|
15344
15374
|
/**
|
|
15345
15375
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
15346
15376
|
*
|
|
@@ -15378,7 +15408,7 @@ const DevEnginesSchema = effect.Schema.Struct({
|
|
|
15378
15408
|
libc: effect.Schema.optionalKey(DevEngineOrArray)
|
|
15379
15409
|
});
|
|
15380
15410
|
//#endregion
|
|
15381
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
15411
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/licenseIds.js
|
|
15382
15412
|
/** @internal */
|
|
15383
15413
|
const ACTIVE_LICENSE_IDS = [
|
|
15384
15414
|
"0BSD",
|
|
@@ -16111,7 +16141,7 @@ const LICENSE_IDS = new Set(ACTIVE_LICENSE_IDS);
|
|
|
16111
16141
|
/** @internal */
|
|
16112
16142
|
const DEPRECATED_LICENSE_IDS = new Set(DEPRECATED_LICENSE_ID_LIST);
|
|
16113
16143
|
//#endregion
|
|
16114
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16144
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/License.js
|
|
16115
16145
|
/**
|
|
16116
16146
|
* Indicates that a string is not a valid SPDX expression fragment: an
|
|
16117
16147
|
* unrecognized license or exception identifier, or a malformed
|
|
@@ -16126,7 +16156,7 @@ const DEPRECATED_LICENSE_IDS = new Set(DEPRECATED_LICENSE_ID_LIST);
|
|
|
16126
16156
|
* @see {@link https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/ | SPDX License Expressions}
|
|
16127
16157
|
* @public
|
|
16128
16158
|
*/
|
|
16129
|
-
var InvalidSpdxExpressionError = class extends effect.Schema.
|
|
16159
|
+
var InvalidSpdxExpressionError = class extends effect.Schema.TaggedError()("InvalidSpdxExpressionError", {
|
|
16130
16160
|
/** The raw input string that failed to validate. */
|
|
16131
16161
|
input: effect.Schema.String }) {
|
|
16132
16162
|
get message() {
|
|
@@ -16280,7 +16310,7 @@ var License = class License extends effect.Schema.Class("License")({
|
|
|
16280
16310
|
}
|
|
16281
16311
|
};
|
|
16282
16312
|
//#endregion
|
|
16283
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16313
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/exceptions.js
|
|
16284
16314
|
/** @internal */
|
|
16285
16315
|
const ACTIVE_EXCEPTION_IDS = [
|
|
16286
16316
|
"389-exception",
|
|
@@ -16357,7 +16387,7 @@ const EXCEPTION_IDS = new Set(ACTIVE_EXCEPTION_IDS);
|
|
|
16357
16387
|
/** @internal */
|
|
16358
16388
|
const DEPRECATED_EXCEPTION_IDS = new Set(DEPRECATED_EXCEPTION_ID_LIST);
|
|
16359
16389
|
//#endregion
|
|
16360
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16390
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/LicenseException.js
|
|
16361
16391
|
/**
|
|
16362
16392
|
* A validated SPDX license-exception identifier: an Effect `Schema.Class` whose
|
|
16363
16393
|
* `id` is a member of the SPDX exception list. The class doubles as its own
|
|
@@ -16477,7 +16507,7 @@ var LicenseException = class LicenseException extends effect.Schema.Class("Licen
|
|
|
16477
16507
|
}
|
|
16478
16508
|
};
|
|
16479
16509
|
//#endregion
|
|
16480
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16510
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/parser.js
|
|
16481
16511
|
const TOKEN_OPEN_PAREN = 0;
|
|
16482
16512
|
const TOKEN_CLOSE_PAREN = 1;
|
|
16483
16513
|
const TOKEN_PLUS = 2;
|
|
@@ -16706,7 +16736,7 @@ function parse$2(input) {
|
|
|
16706
16736
|
return node;
|
|
16707
16737
|
}
|
|
16708
16738
|
//#endregion
|
|
16709
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.
|
|
16739
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/SpdxExpression.js
|
|
16710
16740
|
/**
|
|
16711
16741
|
* Serialize a tagged SPDX AST node — a class instance OR its encoded POJO — to
|
|
16712
16742
|
* the canonical, fully-parenthesized SPDX string. This is the single source of
|
|
@@ -16890,12 +16920,12 @@ effect.Effect.fn("SpdxExpression.parse")((input) => effect.Effect.fromResult(par
|
|
|
16890
16920
|
effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.SchemaTransformation.transformOrFail({
|
|
16891
16921
|
decode: (input) => {
|
|
16892
16922
|
const result = parseResult(input);
|
|
16893
|
-
return effect.Result.isSuccess(result) ? effect.Effect.succeed(result.success) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(
|
|
16923
|
+
return effect.Result.isSuccess(result) ? effect.Effect.succeed(result.success) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: result.failure.message }, input));
|
|
16894
16924
|
},
|
|
16895
16925
|
encode: (expression) => effect.Effect.succeed(serialize$1(expression))
|
|
16896
16926
|
})));
|
|
16897
16927
|
//#endregion
|
|
16898
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
16928
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/License.js
|
|
16899
16929
|
/**
|
|
16900
16930
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
16901
16931
|
*
|
|
@@ -16904,7 +16934,7 @@ effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.Sch
|
|
|
16904
16934
|
*
|
|
16905
16935
|
* @public
|
|
16906
16936
|
*/
|
|
16907
|
-
var InvalidSpdxLicenseError = class extends effect.Schema.
|
|
16937
|
+
var InvalidSpdxLicenseError = class extends effect.Schema.TaggedError()("InvalidSpdxLicenseError", {
|
|
16908
16938
|
/** The raw input string that failed validation. */
|
|
16909
16939
|
input: effect.Schema.String }) {
|
|
16910
16940
|
get message() {
|
|
@@ -16930,9 +16960,9 @@ const isValidSpdx = (value) => {
|
|
|
16930
16960
|
*/
|
|
16931
16961
|
const SpdxLicense = effect.Schema.String.pipe(effect.Schema.check(effect.Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), effect.Schema.brand("SpdxLicense"));
|
|
16932
16962
|
//#endregion
|
|
16933
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
16963
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageManager.js
|
|
16934
16964
|
const PACKAGE_MANAGER_NAME_RE = /^[a-z]+$/;
|
|
16935
|
-
const invalid$1 = (input, message) => effect.Effect.fail(new effect.SchemaIssue.InvalidValue(
|
|
16965
|
+
const invalid$1 = (input, message) => effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message }, input));
|
|
16936
16966
|
/**
|
|
16937
16967
|
* A structured `packageManager` value with `name`, `version` and an optional
|
|
16938
16968
|
* `integrity` hash.
|
|
@@ -17041,7 +17071,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
|
|
|
17041
17071
|
}
|
|
17042
17072
|
};
|
|
17043
17073
|
//#endregion
|
|
17044
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17074
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageName.js
|
|
17045
17075
|
/**
|
|
17046
17076
|
* Indicates that a string could not be used as a valid npm package name.
|
|
17047
17077
|
*
|
|
@@ -17050,7 +17080,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
|
|
|
17050
17080
|
*
|
|
17051
17081
|
* @public
|
|
17052
17082
|
*/
|
|
17053
|
-
var InvalidPackageNameError = class extends effect.Schema.
|
|
17083
|
+
var InvalidPackageNameError = class extends effect.Schema.TaggedError()("InvalidPackageNameError", {
|
|
17054
17084
|
/** The raw input string that failed validation. */
|
|
17055
17085
|
input: effect.Schema.String }) {
|
|
17056
17086
|
get message() {
|
|
@@ -17099,7 +17129,7 @@ const PackageName = Object.assign(effect.Schema.Union([ScopedPackageName, Unscop
|
|
|
17099
17129
|
isScoped
|
|
17100
17130
|
});
|
|
17101
17131
|
//#endregion
|
|
17102
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17132
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Person.js
|
|
17103
17133
|
const parsePersonString = (input) => {
|
|
17104
17134
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
17105
17135
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -17245,7 +17275,7 @@ var Person = class Person extends effect.Schema.Class("Person")({
|
|
|
17245
17275
|
}
|
|
17246
17276
|
};
|
|
17247
17277
|
//#endregion
|
|
17248
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17278
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Repository.js
|
|
17249
17279
|
/** The shorthand hosts npm resolves without a scheme. */
|
|
17250
17280
|
const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
|
|
17251
17281
|
["github", "https://github.com"],
|
|
@@ -17420,7 +17450,7 @@ var Bugs = class Bugs extends effect.Schema.Class("Bugs")({
|
|
|
17420
17450
|
})));
|
|
17421
17451
|
};
|
|
17422
17452
|
//#endregion
|
|
17423
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17453
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/internal/format.js
|
|
17424
17454
|
const KEY_INDEX = new Map([
|
|
17425
17455
|
"$schema",
|
|
17426
17456
|
"name",
|
|
@@ -17643,7 +17673,7 @@ const renderJson = (raw, options) => {
|
|
|
17643
17673
|
return options.newline ? `${json}\n` : json;
|
|
17644
17674
|
};
|
|
17645
17675
|
//#endregion
|
|
17646
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.
|
|
17676
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Package.js
|
|
17647
17677
|
const toHashMap = effect.SchemaTransformation.transform({
|
|
17648
17678
|
decode: (record) => effect.HashMap.fromIterable(Object.entries(record)),
|
|
17649
17679
|
encode: (map) => Object.fromEntries(effect.HashMap.toEntries(map))
|
|
@@ -17703,7 +17733,7 @@ effect.Schema.Union([effect.Schema.String, effect.Schema.Record(effect.Schema.St
|
|
|
17703
17733
|
*
|
|
17704
17734
|
* @public
|
|
17705
17735
|
*/
|
|
17706
|
-
var PackageDecodeError = class extends effect.Schema.
|
|
17736
|
+
var PackageDecodeError = class extends effect.Schema.TaggedError()("PackageDecodeError", {
|
|
17707
17737
|
/** The underlying `SchemaError`, preserved structurally rather than stringified. */
|
|
17708
17738
|
cause: effect.Schema.Defect() }) {
|
|
17709
17739
|
get message() {
|
|
@@ -17959,7 +17989,7 @@ var Package = class Package extends effect.Schema.Class("Package")({
|
|
|
17959
17989
|
}
|
|
17960
17990
|
};
|
|
17961
17991
|
//#endregion
|
|
17962
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17992
|
+
//#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
|
|
17963
17993
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
17964
17994
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
17965
17995
|
/**
|
|
@@ -18003,7 +18033,7 @@ const DependencyMap$1 = effect.Schema.Record(effect.Schema.String, effect.Schema
|
|
|
18003
18033
|
*
|
|
18004
18034
|
* @public
|
|
18005
18035
|
*/
|
|
18006
|
-
var WorkspaceManifestError = class extends effect.Schema.
|
|
18036
|
+
var WorkspaceManifestError = class extends effect.Schema.TaggedError()("WorkspaceManifestError", {
|
|
18007
18037
|
/** Absolute path to the `package.json` that failed. */
|
|
18008
18038
|
packageJsonPath: effect.Schema.String,
|
|
18009
18039
|
/** Whether the file could not be read, or read but not decoded. */
|
|
@@ -18238,7 +18268,7 @@ var WorkspacePackage = class WorkspacePackage extends effect.Schema.Class("Works
|
|
|
18238
18268
|
}
|
|
18239
18269
|
};
|
|
18240
18270
|
//#endregion
|
|
18241
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.
|
|
18271
|
+
//#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
|
|
18242
18272
|
/**
|
|
18243
18273
|
* Typed failure raised by {@link descend}: a directory mid-walk was unreadable
|
|
18244
18274
|
* (under `onUnreadable: "fail"`), or the walk descended past `maxDepth`. Depth
|
|
@@ -18247,7 +18277,7 @@ var WorkspacePackage = class WorkspacePackage extends effect.Schema.Class("Works
|
|
|
18247
18277
|
*
|
|
18248
18278
|
* @public
|
|
18249
18279
|
*/
|
|
18250
|
-
var DescendError = class extends effect.Schema.
|
|
18280
|
+
var DescendError = class extends effect.Schema.TaggedError()("DescendError", {
|
|
18251
18281
|
/** The glob pattern's source text. */
|
|
18252
18282
|
pattern: effect.Schema.String,
|
|
18253
18283
|
reason: effect.Schema.Literals(["unreadableDirectory", "depthExceeded"]),
|
|
@@ -18373,7 +18403,7 @@ const descend = effect.Effect.fn("Walker.descend")(function* (pattern, options)
|
|
|
18373
18403
|
return results;
|
|
18374
18404
|
});
|
|
18375
18405
|
//#endregion
|
|
18376
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.
|
|
18406
|
+
//#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
|
|
18377
18407
|
/**
|
|
18378
18408
|
* Typed failure raised by {@link compileAndExpand}: the single error the
|
|
18379
18409
|
* compile+expand recipe fails with, so a caller catches one tag rather than
|
|
@@ -18392,7 +18422,7 @@ const descend = effect.Effect.fn("Walker.descend")(function* (pattern, options)
|
|
|
18392
18422
|
*
|
|
18393
18423
|
* @public
|
|
18394
18424
|
*/
|
|
18395
|
-
var GlobExpansionError = class extends effect.Schema.
|
|
18425
|
+
var GlobExpansionError = class extends effect.Schema.TaggedError()("GlobExpansionError", {
|
|
18396
18426
|
/** The glob pattern's source text, as handed to {@link compileAndExpand}. */
|
|
18397
18427
|
pattern: effect.Schema.String,
|
|
18398
18428
|
/** The underlying typed failure, intact: a compile guard trip or a descent failure. */
|
|
@@ -18463,7 +18493,7 @@ const compileAndExpand = effect.Effect.fn("Walker.compileAndExpand")(function* (
|
|
|
18463
18493
|
})));
|
|
18464
18494
|
});
|
|
18465
18495
|
//#endregion
|
|
18466
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.
|
|
18496
|
+
//#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
|
|
18467
18497
|
const ascend = (start, options) => effect.Effect.gen(function* () {
|
|
18468
18498
|
const path = yield* effect.Path.Path;
|
|
18469
18499
|
const maxDepth = options?.maxDepth ?? 256;
|
|
@@ -18557,7 +18587,7 @@ var Walker$1 = class {
|
|
|
18557
18587
|
static findRoot = findRoot$1;
|
|
18558
18588
|
};
|
|
18559
18589
|
//#endregion
|
|
18560
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18590
|
+
//#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
|
|
18561
18591
|
/**
|
|
18562
18592
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
18563
18593
|
*
|
|
@@ -18573,7 +18603,7 @@ const WORKSPACE_MARKERS = ["pnpm-workspace.yaml", "package.json"];
|
|
|
18573
18603
|
*
|
|
18574
18604
|
* @public
|
|
18575
18605
|
*/
|
|
18576
|
-
var WorkspaceRootNotFoundError = class extends effect.Schema.
|
|
18606
|
+
var WorkspaceRootNotFoundError = class extends effect.Schema.TaggedError()("WorkspaceRootNotFoundError", {
|
|
18577
18607
|
/** The directory the ascent started from. */
|
|
18578
18608
|
searchPath: effect.Schema.String,
|
|
18579
18609
|
/** The marker filenames probed at each ancestor. */
|
|
@@ -18744,7 +18774,7 @@ var WorkspaceRoot = class WorkspaceRoot extends effect.Context.Service()("@effec
|
|
|
18744
18774
|
static layerTest = (root) => effect.Layer.effect(WorkspaceRoot, WorkspaceRoot.makeTest(root)).pipe(effect.Layer.provide(effect.Path.layer));
|
|
18745
18775
|
};
|
|
18746
18776
|
//#endregion
|
|
18747
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18777
|
+
//#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
|
|
18748
18778
|
/**
|
|
18749
18779
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
18750
18780
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -18762,7 +18792,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
18762
18792
|
*/
|
|
18763
18793
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
18764
18794
|
//#endregion
|
|
18765
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18795
|
+
//#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
|
|
18766
18796
|
/** Directory names never descended into. */
|
|
18767
18797
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
18768
18798
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -18852,7 +18882,7 @@ var Traversal = class {
|
|
|
18852
18882
|
}
|
|
18853
18883
|
};
|
|
18854
18884
|
//#endregion
|
|
18855
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18885
|
+
//#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
|
|
18856
18886
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
18857
18887
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
18858
18888
|
/**
|
|
@@ -18922,7 +18952,7 @@ const enumerate = (root, globs, options) => effect.Effect.gen(function* () {
|
|
|
18922
18952
|
return results;
|
|
18923
18953
|
});
|
|
18924
18954
|
//#endregion
|
|
18925
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18955
|
+
//#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
|
|
18926
18956
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
18927
18957
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
18928
18958
|
const pnpmPatternsOf = (document) => {
|
|
@@ -18979,7 +19009,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
|
|
|
18979
19009
|
return manifestPatternsOf(manifest);
|
|
18980
19010
|
});
|
|
18981
19011
|
//#endregion
|
|
18982
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19012
|
+
//#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
|
|
18983
19013
|
/**
|
|
18984
19014
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
18985
19015
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -18990,7 +19020,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
|
|
|
18990
19020
|
*
|
|
18991
19021
|
* @public
|
|
18992
19022
|
*/
|
|
18993
|
-
var WorkspaceDiscoveryError = class extends effect.Schema.
|
|
19023
|
+
var WorkspaceDiscoveryError = class extends effect.Schema.TaggedError()("WorkspaceDiscoveryError", {
|
|
18994
19024
|
/** The workspace root discovery was running against. */
|
|
18995
19025
|
root: effect.Schema.String,
|
|
18996
19026
|
/** The file that failed. */
|
|
@@ -19019,7 +19049,7 @@ var WorkspaceDiscoveryError = class extends effect.Schema.TaggedErrorClass()("Wo
|
|
|
19019
19049
|
*
|
|
19020
19050
|
* @public
|
|
19021
19051
|
*/
|
|
19022
|
-
var WorkspacePatternError = class extends effect.Schema.
|
|
19052
|
+
var WorkspacePatternError = class extends effect.Schema.TaggedError()("WorkspacePatternError", {
|
|
19023
19053
|
/** The workspace root the patterns were expanded against. */
|
|
19024
19054
|
root: effect.Schema.String,
|
|
19025
19055
|
/** The offending pattern, verbatim. */
|
|
@@ -19049,7 +19079,7 @@ var WorkspacePatternError = class extends effect.Schema.TaggedErrorClass()("Work
|
|
|
19049
19079
|
*
|
|
19050
19080
|
* @public
|
|
19051
19081
|
*/
|
|
19052
|
-
var PackageNotFoundError = class extends effect.Schema.
|
|
19082
|
+
var PackageNotFoundError = class extends effect.Schema.TaggedError()("PackageNotFoundError", {
|
|
19053
19083
|
/** The name that was requested. */
|
|
19054
19084
|
name: effect.Schema.String,
|
|
19055
19085
|
/** Every workspace package name that does exist. */
|
|
@@ -19435,7 +19465,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends effect.Context.Service
|
|
|
19435
19465
|
};
|
|
19436
19466
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
19437
19467
|
//#endregion
|
|
19438
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19468
|
+
//#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
|
|
19439
19469
|
/**
|
|
19440
19470
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
19441
19471
|
* because it contains a cycle.
|
|
@@ -19447,7 +19477,7 @@ const isStringRecord$2 = (value) => value !== null && typeof value === "object"
|
|
|
19447
19477
|
*
|
|
19448
19478
|
* @public
|
|
19449
19479
|
*/
|
|
19450
|
-
var CyclicDependencyError = class extends effect.Schema.
|
|
19480
|
+
var CyclicDependencyError = class extends effect.Schema.TaggedError()("CyclicDependencyError", {
|
|
19451
19481
|
/** The packages participating in the cycle. */
|
|
19452
19482
|
cycle: effect.Schema.Array(effect.Schema.String) }) {
|
|
19453
19483
|
/** Renders the cycle members into a one-line message. */
|
|
@@ -19668,7 +19698,7 @@ const kahn = (edges) => {
|
|
|
19668
19698
|
};
|
|
19669
19699
|
};
|
|
19670
19700
|
//#endregion
|
|
19671
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
19701
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/GitCommand.js
|
|
19672
19702
|
/** The mask every whole-value sensitive positional is replaced with. */
|
|
19673
19703
|
const REDACTED = "<redacted>";
|
|
19674
19704
|
const secretValue = (value) => ({
|
|
@@ -20751,7 +20781,7 @@ var GitCommand = class {
|
|
|
20751
20781
|
static lsFiles = lsFiles;
|
|
20752
20782
|
};
|
|
20753
20783
|
//#endregion
|
|
20754
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
20784
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/internal/run.js
|
|
20755
20785
|
/**
|
|
20756
20786
|
* Spawns `command` and collects its stdout, stderr, and exit code as a single
|
|
20757
20787
|
* triple.
|
|
@@ -20778,7 +20808,7 @@ const runCollected = (command) => effect.Effect.scoped(effect.Effect.gen(functio
|
|
|
20778
20808
|
};
|
|
20779
20809
|
}));
|
|
20780
20810
|
//#endregion
|
|
20781
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.
|
|
20811
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/Git.js
|
|
20782
20812
|
/** git's own ceiling: a run that has not answered in 30s is not going to. */
|
|
20783
20813
|
const GIT_TIMEOUT = effect.Duration.seconds(30);
|
|
20784
20814
|
/**
|
|
@@ -20797,7 +20827,7 @@ const GIT_TIMEOUT = effect.Duration.seconds(30);
|
|
|
20797
20827
|
*
|
|
20798
20828
|
* @public
|
|
20799
20829
|
*/
|
|
20800
|
-
var GitCommandError = class extends effect.Schema.
|
|
20830
|
+
var GitCommandError = class extends effect.Schema.TaggedError()("GitCommandError", {
|
|
20801
20831
|
/**
|
|
20802
20832
|
* Discriminates a pre-spawn guard rejection from a genuine git failure.
|
|
20803
20833
|
* `"refused"` — a pre-spawn guard (an option-like ref) rejected the
|
|
@@ -20836,7 +20866,7 @@ var GitCommandError = class extends effect.Schema.TaggedErrorClass()("GitCommand
|
|
|
20836
20866
|
*
|
|
20837
20867
|
* @public
|
|
20838
20868
|
*/
|
|
20839
|
-
var NotARepositoryError = class extends effect.Schema.
|
|
20869
|
+
var NotARepositoryError = class extends effect.Schema.TaggedError()("NotARepositoryError", {
|
|
20840
20870
|
/** The working directory that is not a git repository. */
|
|
20841
20871
|
cwd: effect.Schema.String }) {
|
|
20842
20872
|
/** Renders the failing directory into a one-line message. */
|
|
@@ -20849,7 +20879,7 @@ cwd: effect.Schema.String }) {
|
|
|
20849
20879
|
*
|
|
20850
20880
|
* @public
|
|
20851
20881
|
*/
|
|
20852
|
-
var UnknownRefError = class extends effect.Schema.
|
|
20882
|
+
var UnknownRefError = class extends effect.Schema.TaggedError()("UnknownRefError", {
|
|
20853
20883
|
/** The ref (or ref range) that failed to resolve. */
|
|
20854
20884
|
ref: effect.Schema.String,
|
|
20855
20885
|
/** The working directory the ref was resolved against. */
|
|
@@ -20872,7 +20902,7 @@ var UnknownRefError = class extends effect.Schema.TaggedErrorClass()("UnknownRef
|
|
|
20872
20902
|
*
|
|
20873
20903
|
* @public
|
|
20874
20904
|
*/
|
|
20875
|
-
var NonFastForwardError = class extends effect.Schema.
|
|
20905
|
+
var NonFastForwardError = class extends effect.Schema.TaggedError()("NonFastForwardError", {
|
|
20876
20906
|
/** The working directory the push ran in. */
|
|
20877
20907
|
cwd: effect.Schema.String,
|
|
20878
20908
|
/** The refspec that was rejected, when the caller passed one. */
|
|
@@ -20896,7 +20926,7 @@ var NonFastForwardError = class extends effect.Schema.TaggedErrorClass()("NonFas
|
|
|
20896
20926
|
*
|
|
20897
20927
|
* @public
|
|
20898
20928
|
*/
|
|
20899
|
-
var MergeConflictError = class extends effect.Schema.
|
|
20929
|
+
var MergeConflictError = class extends effect.Schema.TaggedError()("MergeConflictError", {
|
|
20900
20930
|
/** The working directory the merge ran in. */
|
|
20901
20931
|
cwd: effect.Schema.String }) {
|
|
20902
20932
|
/** Renders the conflicted merge into a one-line message. */
|
|
@@ -20917,7 +20947,7 @@ cwd: effect.Schema.String }) {
|
|
|
20917
20947
|
*
|
|
20918
20948
|
* @public
|
|
20919
20949
|
*/
|
|
20920
|
-
var DirtyWorktreeError = class extends effect.Schema.
|
|
20950
|
+
var DirtyWorktreeError = class extends effect.Schema.TaggedError()("DirtyWorktreeError", {
|
|
20921
20951
|
/** The working directory whose local changes blocked the operation. */
|
|
20922
20952
|
cwd: effect.Schema.String }) {
|
|
20923
20953
|
/** Renders the blocked operation into a one-line message. */
|
|
@@ -22927,7 +22957,7 @@ var Git = class Git extends effect.Context.Service()("@effected/git/Git") {
|
|
|
22927
22957
|
static layerTest = (overrides = {}) => effect.Layer.succeed(Git, Git.makeTest(overrides));
|
|
22928
22958
|
};
|
|
22929
22959
|
//#endregion
|
|
22930
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
22960
|
+
//#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
|
|
22931
22961
|
/**
|
|
22932
22962
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
22933
22963
|
*
|
|
@@ -22962,7 +22992,7 @@ var ChangeDetectionOptions = class extends effect.Schema.Class("ChangeDetectionO
|
|
|
22962
22992
|
*/
|
|
22963
22993
|
includeUncommitted: effect.Schema.Boolean.pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(false)), effect.Schema.withConstructorDefault(effect.Effect.succeed(false)))
|
|
22964
22994
|
}) {};
|
|
22965
|
-
effect.Schema.
|
|
22995
|
+
effect.Schema.TaggedError()("ChangeDetectionError", {
|
|
22966
22996
|
/** The operation that could not run. */
|
|
22967
22997
|
operation: effect.Schema.String,
|
|
22968
22998
|
/** The originating failure. */
|
|
@@ -23183,7 +23213,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
23183
23213
|
};
|
|
23184
23214
|
}
|
|
23185
23215
|
//#endregion
|
|
23186
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
23216
|
+
//#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
|
|
23187
23217
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
23188
23218
|
const inlineCatalogs = (manifest) => {
|
|
23189
23219
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -23247,7 +23277,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
23247
23277
|
});
|
|
23248
23278
|
};
|
|
23249
23279
|
//#endregion
|
|
23250
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
23280
|
+
//#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
|
|
23251
23281
|
/** Whether `value` is a non-null, non-array object. */
|
|
23252
23282
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
23253
23283
|
/**
|
|
@@ -23658,7 +23688,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
|
|
|
23658
23688
|
}));
|
|
23659
23689
|
};
|
|
23660
23690
|
//#endregion
|
|
23661
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
23691
|
+
//#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
|
|
23662
23692
|
/**
|
|
23663
23693
|
* The four package managers this package understands.
|
|
23664
23694
|
*
|
|
@@ -23742,7 +23772,7 @@ const corepackHint = (manifest) => {
|
|
|
23742
23772
|
*
|
|
23743
23773
|
* @public
|
|
23744
23774
|
*/
|
|
23745
|
-
var PackageManagerDetectionError = class extends effect.Schema.
|
|
23775
|
+
var PackageManagerDetectionError = class extends effect.Schema.TaggedError()("PackageManagerDetectionError", {
|
|
23746
23776
|
/** The workspace root that was probed. */
|
|
23747
23777
|
root: effect.Schema.String,
|
|
23748
23778
|
/** The marker files probed, in the order they were probed. */
|
|
@@ -23986,7 +24016,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
23986
24016
|
static layerTest = (overrides = {}) => effect.Layer.succeed(PackageManagerDetector, PackageManagerDetector.makeTest(overrides));
|
|
23987
24017
|
};
|
|
23988
24018
|
//#endregion
|
|
23989
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24019
|
+
//#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
|
|
23990
24020
|
/**
|
|
23991
24021
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
23992
24022
|
*
|
|
@@ -23996,7 +24026,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
23996
24026
|
*
|
|
23997
24027
|
* @public
|
|
23998
24028
|
*/
|
|
23999
|
-
var LockfileReadError = class extends effect.Schema.
|
|
24029
|
+
var LockfileReadError = class extends effect.Schema.TaggedError()("LockfileReadError", {
|
|
24000
24030
|
/** Absolute path to the lockfile that could not be read. */
|
|
24001
24031
|
lockfilePath: effect.Schema.String,
|
|
24002
24032
|
/** The format the detected package manager implies. */
|
|
@@ -24166,7 +24196,7 @@ var LockfileReader = class LockfileReader extends effect.Context.Service()("@eff
|
|
|
24166
24196
|
static layerTest = (overrides = {}) => effect.Layer.succeed(LockfileReader, LockfileReader.makeTest(overrides));
|
|
24167
24197
|
};
|
|
24168
24198
|
//#endregion
|
|
24169
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24199
|
+
//#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
|
|
24170
24200
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
24171
24201
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
24172
24202
|
/**
|
|
@@ -24325,7 +24355,7 @@ var PublishabilityDetector = class extends effect.Context.Service()("@effected/w
|
|
|
24325
24355
|
static layerNone = effect.Layer.succeed(this, this.none);
|
|
24326
24356
|
};
|
|
24327
24357
|
//#endregion
|
|
24328
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24358
|
+
//#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
|
|
24329
24359
|
/**
|
|
24330
24360
|
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
24331
24361
|
*
|
|
@@ -24411,7 +24441,7 @@ const unanimousVersionOf = (index, dependency) => {
|
|
|
24411
24441
|
return agreed;
|
|
24412
24442
|
};
|
|
24413
24443
|
//#endregion
|
|
24414
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24444
|
+
//#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
|
|
24415
24445
|
/**
|
|
24416
24446
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
24417
24447
|
* resolution semantic in the package.
|
|
@@ -24938,7 +24968,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
24938
24968
|
}));
|
|
24939
24969
|
};
|
|
24940
24970
|
//#endregion
|
|
24941
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
24971
|
+
//#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
|
|
24942
24972
|
const EMPTY = Object.freeze(Object.create(null));
|
|
24943
24973
|
const DependencyMap = effect.Schema.Record(effect.Schema.String, effect.Schema.String).pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(EMPTY)), effect.Schema.withConstructorDefault(effect.Effect.succeed(EMPTY)));
|
|
24944
24974
|
/**
|
|
@@ -25161,7 +25191,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
25161
25191
|
}
|
|
25162
25192
|
};
|
|
25163
25193
|
//#endregion
|
|
25164
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25194
|
+
//#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
|
|
25165
25195
|
/** Whether `value` is a non-null, non-array object. */
|
|
25166
25196
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25167
25197
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -25438,7 +25468,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
25438
25468
|
static layerTest = (overrides = {}) => effect.Layer.succeed(WorkspaceSnapshots, WorkspaceSnapshots.makeTest(overrides));
|
|
25439
25469
|
};
|
|
25440
25470
|
//#endregion
|
|
25441
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
25471
|
+
//#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
|
|
25442
25472
|
const compose = (options, catalogsFactory) => {
|
|
25443
25473
|
const roots = WorkspaceRoot.layer;
|
|
25444
25474
|
const detector = PackageManagerDetector.layer;
|
|
@@ -29916,14 +29946,15 @@ function markdownTable(table, options) {
|
|
|
29916
29946
|
const size = longestCellByColumn[columnIndex] - (sizes[columnIndex] || 0);
|
|
29917
29947
|
const code = alignments[columnIndex];
|
|
29918
29948
|
if (code === 114) before = " ".repeat(size);
|
|
29919
|
-
else if (code === 99)
|
|
29920
|
-
|
|
29921
|
-
|
|
29922
|
-
|
|
29923
|
-
|
|
29924
|
-
|
|
29925
|
-
|
|
29926
|
-
|
|
29949
|
+
else if (code === 99) {
|
|
29950
|
+
if (size % 2) {
|
|
29951
|
+
before = " ".repeat(size / 2 + .5);
|
|
29952
|
+
after = " ".repeat(size / 2 - .5);
|
|
29953
|
+
} else {
|
|
29954
|
+
before = " ".repeat(size / 2);
|
|
29955
|
+
after = before;
|
|
29956
|
+
}
|
|
29957
|
+
} else after = " ".repeat(size);
|
|
29927
29958
|
}
|
|
29928
29959
|
if (settings.delimiterStart !== false && !columnIndex) line.push("|");
|
|
29929
29960
|
if (settings.padding !== false && !(settings.alignDelimiters === false && cell === "") && (settings.delimiterStart !== false || columnIndex)) line.push(" ");
|
|
@@ -42781,19 +42812,21 @@ function resolveTable(events, context) {
|
|
|
42781
42812
|
}
|
|
42782
42813
|
cell[2] = index;
|
|
42783
42814
|
}
|
|
42784
|
-
} else if (token.type === "tableCellDivider")
|
|
42785
|
-
|
|
42786
|
-
|
|
42787
|
-
|
|
42788
|
-
|
|
42815
|
+
} else if (token.type === "tableCellDivider") {
|
|
42816
|
+
if (inFirstCellAwaitingPipe) inFirstCellAwaitingPipe = false;
|
|
42817
|
+
else {
|
|
42818
|
+
if (lastCell[1] !== 0) {
|
|
42819
|
+
cell[0] = cell[1];
|
|
42820
|
+
currentCell = flushCell(map, context, lastCell, rowKind, void 0, currentCell);
|
|
42821
|
+
}
|
|
42822
|
+
lastCell = cell;
|
|
42823
|
+
cell = [
|
|
42824
|
+
lastCell[1],
|
|
42825
|
+
index,
|
|
42826
|
+
0,
|
|
42827
|
+
0
|
|
42828
|
+
];
|
|
42789
42829
|
}
|
|
42790
|
-
lastCell = cell;
|
|
42791
|
-
cell = [
|
|
42792
|
-
lastCell[1],
|
|
42793
|
-
index,
|
|
42794
|
-
0,
|
|
42795
|
-
0
|
|
42796
|
-
];
|
|
42797
42830
|
}
|
|
42798
42831
|
} else if (token.type === "tableHead") {
|
|
42799
42832
|
afterHeadAwaitingFirstBodyRow = true;
|
|
@@ -44603,8 +44636,10 @@ function compiler(options) {
|
|
|
44603
44636
|
/** @type {Array<number>} */
|
|
44604
44637
|
const listStack = [];
|
|
44605
44638
|
let index = -1;
|
|
44606
|
-
while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered")
|
|
44607
|
-
|
|
44639
|
+
while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") {
|
|
44640
|
+
if (events[index][0] === "enter") listStack.push(index);
|
|
44641
|
+
else index = prepareList(events, listStack.pop(), index);
|
|
44642
|
+
}
|
|
44608
44643
|
index = -1;
|
|
44609
44644
|
while (++index < events.length) {
|
|
44610
44645
|
const handler = config[events[index][0]];
|
|
@@ -44794,8 +44829,10 @@ function compiler(options) {
|
|
|
44794
44829
|
start: token.start,
|
|
44795
44830
|
end: token.end
|
|
44796
44831
|
}) + "): it’s not open");
|
|
44797
|
-
else if (open[0].type !== token.type)
|
|
44798
|
-
|
|
44832
|
+
else if (open[0].type !== token.type) {
|
|
44833
|
+
if (onExitError) onExitError.call(this, token, open[0]);
|
|
44834
|
+
else (open[1] || defaultOnError).call(this, token, open[0]);
|
|
44835
|
+
}
|
|
44799
44836
|
node.position.end = point(token.end);
|
|
44800
44837
|
}
|
|
44801
44838
|
/**
|
|
@@ -45646,9 +45683,11 @@ function wrap(middleware, callback) {
|
|
|
45646
45683
|
if (fnExpectsCallback && called) throw exception;
|
|
45647
45684
|
return done(exception);
|
|
45648
45685
|
}
|
|
45649
|
-
if (!fnExpectsCallback)
|
|
45650
|
-
|
|
45651
|
-
|
|
45686
|
+
if (!fnExpectsCallback) {
|
|
45687
|
+
if (result && result.then && typeof result.then === "function") result.then(then, done);
|
|
45688
|
+
else if (result instanceof Error) done(result);
|
|
45689
|
+
else then(result);
|
|
45690
|
+
}
|
|
45652
45691
|
}
|
|
45653
45692
|
/**
|
|
45654
45693
|
* Call `callback`, only once.
|
|
@@ -45760,13 +45799,15 @@ var VFileMessage = class extends Error {
|
|
|
45760
45799
|
/** @type {Options} */
|
|
45761
45800
|
let options = {};
|
|
45762
45801
|
let legacyCause = false;
|
|
45763
|
-
if (optionsOrParentOrPlace)
|
|
45764
|
-
|
|
45765
|
-
|
|
45766
|
-
|
|
45767
|
-
|
|
45768
|
-
|
|
45769
|
-
|
|
45802
|
+
if (optionsOrParentOrPlace) {
|
|
45803
|
+
if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
|
|
45804
|
+
else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
|
|
45805
|
+
else if ("type" in optionsOrParentOrPlace) options = {
|
|
45806
|
+
ancestors: [optionsOrParentOrPlace],
|
|
45807
|
+
place: optionsOrParentOrPlace.position
|
|
45808
|
+
};
|
|
45809
|
+
else options = { ...optionsOrParentOrPlace };
|
|
45810
|
+
}
|
|
45770
45811
|
if (typeof causeOrReason === "string") reason = causeOrReason;
|
|
45771
45812
|
else if (!options.cause && causeOrReason) {
|
|
45772
45813
|
legacyCause = true;
|
|
@@ -47409,9 +47450,10 @@ const unified = new class Processor extends CallableInstance {
|
|
|
47409
47450
|
const namespace = this.namespace;
|
|
47410
47451
|
assertUnfrozen("use", this.frozen);
|
|
47411
47452
|
if (value === null || value === void 0) {} else if (typeof value === "function") addPlugin(value, parameters);
|
|
47412
|
-
else if (typeof value === "object")
|
|
47413
|
-
|
|
47414
|
-
|
|
47453
|
+
else if (typeof value === "object") {
|
|
47454
|
+
if (Array.isArray(value)) addList(value);
|
|
47455
|
+
else addPreset(value);
|
|
47456
|
+
} else throw new TypeError("Expected usable value, not `" + value + "`");
|
|
47415
47457
|
return this;
|
|
47416
47458
|
/**
|
|
47417
47459
|
* @param {Pluggable} value
|
|
@@ -47419,11 +47461,12 @@ const unified = new class Processor extends CallableInstance {
|
|
|
47419
47461
|
*/
|
|
47420
47462
|
function add(value) {
|
|
47421
47463
|
if (typeof value === "function") addPlugin(value, []);
|
|
47422
|
-
else if (typeof value === "object")
|
|
47423
|
-
|
|
47424
|
-
|
|
47425
|
-
|
|
47426
|
-
|
|
47464
|
+
else if (typeof value === "object") {
|
|
47465
|
+
if (Array.isArray(value)) {
|
|
47466
|
+
const [plugin, ...parameters] = value;
|
|
47467
|
+
addPlugin(plugin, parameters);
|
|
47468
|
+
} else addPreset(value);
|
|
47469
|
+
} else throw new TypeError("Expected usable value, not `" + value + "`");
|
|
47427
47470
|
}
|
|
47428
47471
|
/**
|
|
47429
47472
|
* @param {Preset} result
|
|
@@ -48746,10 +48789,12 @@ function formatChangelogEntry(entry, options) {
|
|
|
48746
48789
|
*/
|
|
48747
48790
|
function formatPRAndUserAttribution(pr, user, links) {
|
|
48748
48791
|
let prReference = "";
|
|
48749
|
-
if (pr)
|
|
48750
|
-
|
|
48751
|
-
|
|
48752
|
-
|
|
48792
|
+
if (pr) {
|
|
48793
|
+
if (links?.pull) {
|
|
48794
|
+
const pullUrl = extractUrlFromMarkdown(links.pull);
|
|
48795
|
+
prReference = ` [#${String(pr)}](${pullUrl})`;
|
|
48796
|
+
} else prReference = ` (#${String(pr)})`;
|
|
48797
|
+
}
|
|
48753
48798
|
if (user) {
|
|
48754
48799
|
if (links?.user) {
|
|
48755
48800
|
const userUrl = extractUrlFromMarkdown(links.user);
|
|
@@ -53826,10 +53871,12 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
53826
53871
|
}
|
|
53827
53872
|
return esc ? m : `\\${m}`;
|
|
53828
53873
|
});
|
|
53829
|
-
if (backslashes === true)
|
|
53830
|
-
|
|
53831
|
-
|
|
53832
|
-
|
|
53874
|
+
if (backslashes === true) {
|
|
53875
|
+
if (opts.unescape === true) output = output.replace(/\\/g, "");
|
|
53876
|
+
else output = output.replace(/\\+/g, (m) => {
|
|
53877
|
+
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
53878
|
+
});
|
|
53879
|
+
}
|
|
53833
53880
|
if (output === input && opts.contains === true) {
|
|
53834
53881
|
state.output = input;
|
|
53835
53882
|
return state;
|
|
@@ -54600,8 +54647,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
54600
54647
|
output = format ? format(input) : input;
|
|
54601
54648
|
match = output === glob;
|
|
54602
54649
|
}
|
|
54603
|
-
if (match === false || opts.capture === true)
|
|
54604
|
-
|
|
54650
|
+
if (match === false || opts.capture === true) {
|
|
54651
|
+
if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
|
|
54652
|
+
else match = regex.exec(output);
|
|
54653
|
+
}
|
|
54605
54654
|
return {
|
|
54606
54655
|
isMatch: Boolean(match),
|
|
54607
54656
|
match,
|
|
@@ -55304,9 +55353,10 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
55304
55353
|
function replaceNode(key, path, node) {
|
|
55305
55354
|
const parent = path[path.length - 1];
|
|
55306
55355
|
if (identity.isCollection(parent)) parent.items[key] = node;
|
|
55307
|
-
else if (identity.isPair(parent))
|
|
55308
|
-
|
|
55309
|
-
|
|
55356
|
+
else if (identity.isPair(parent)) {
|
|
55357
|
+
if (key === "key") parent.key = node;
|
|
55358
|
+
else parent.value = node;
|
|
55359
|
+
} else if (identity.isDocument(parent)) parent.contents = node;
|
|
55310
55360
|
else {
|
|
55311
55361
|
const pt = identity.isAlias(parent) ? "alias" : "scalar";
|
|
55312
55362
|
throw new Error(`Cannot replace node with ${pt} parent`);
|
|
@@ -55557,30 +55607,32 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
55557
55607
|
* Includes extensions for handling Map and Set objects.
|
|
55558
55608
|
*/
|
|
55559
55609
|
function applyReviver(reviver, obj, key, val) {
|
|
55560
|
-
if (val && typeof val === "object")
|
|
55561
|
-
|
|
55562
|
-
|
|
55563
|
-
|
|
55564
|
-
|
|
55565
|
-
|
|
55566
|
-
|
|
55567
|
-
const
|
|
55568
|
-
|
|
55569
|
-
|
|
55570
|
-
|
|
55571
|
-
|
|
55572
|
-
|
|
55573
|
-
|
|
55574
|
-
|
|
55575
|
-
|
|
55576
|
-
|
|
55577
|
-
|
|
55578
|
-
|
|
55579
|
-
|
|
55580
|
-
|
|
55581
|
-
|
|
55582
|
-
|
|
55583
|
-
|
|
55610
|
+
if (val && typeof val === "object") {
|
|
55611
|
+
if (Array.isArray(val)) for (let i = 0, len = val.length; i < len; ++i) {
|
|
55612
|
+
const v0 = val[i];
|
|
55613
|
+
const v1 = applyReviver(reviver, val, String(i), v0);
|
|
55614
|
+
if (v1 === void 0) delete val[i];
|
|
55615
|
+
else if (v1 !== v0) val[i] = v1;
|
|
55616
|
+
}
|
|
55617
|
+
else if (val instanceof Map) for (const k of Array.from(val.keys())) {
|
|
55618
|
+
const v0 = val.get(k);
|
|
55619
|
+
const v1 = applyReviver(reviver, val, k, v0);
|
|
55620
|
+
if (v1 === void 0) val.delete(k);
|
|
55621
|
+
else if (v1 !== v0) val.set(k, v1);
|
|
55622
|
+
}
|
|
55623
|
+
else if (val instanceof Set) for (const v0 of Array.from(val)) {
|
|
55624
|
+
const v1 = applyReviver(reviver, val, v0, v0);
|
|
55625
|
+
if (v1 === void 0) val.delete(v0);
|
|
55626
|
+
else if (v1 !== v0) {
|
|
55627
|
+
val.delete(v0);
|
|
55628
|
+
val.add(v1);
|
|
55629
|
+
}
|
|
55630
|
+
}
|
|
55631
|
+
else for (const [k, v0] of Object.entries(val)) {
|
|
55632
|
+
const v1 = applyReviver(reviver, val, k, v0);
|
|
55633
|
+
if (v1 === void 0) delete val[k];
|
|
55634
|
+
else if (v1 !== v0) val[k] = v1;
|
|
55635
|
+
}
|
|
55584
55636
|
}
|
|
55585
55637
|
return reviver.call(obj, key, val);
|
|
55586
55638
|
}
|
|
@@ -56001,8 +56053,10 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56001
56053
|
const folds = [];
|
|
56002
56054
|
const escapedFolds = {};
|
|
56003
56055
|
let end = lineWidth - indent.length;
|
|
56004
|
-
if (typeof indentAtStart === "number")
|
|
56005
|
-
|
|
56056
|
+
if (typeof indentAtStart === "number") {
|
|
56057
|
+
if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
|
|
56058
|
+
else end = lineWidth - indentAtStart;
|
|
56059
|
+
}
|
|
56006
56060
|
let split = void 0;
|
|
56007
56061
|
let prev = void 0;
|
|
56008
56062
|
let overflow = false;
|
|
@@ -56039,23 +56093,25 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56039
56093
|
const next = text[i + 1];
|
|
56040
56094
|
if (next && next !== " " && next !== "\n" && next !== " ") split = i;
|
|
56041
56095
|
}
|
|
56042
|
-
if (i >= end)
|
|
56043
|
-
|
|
56044
|
-
|
|
56045
|
-
|
|
56046
|
-
|
|
56047
|
-
|
|
56048
|
-
prev
|
|
56049
|
-
|
|
56050
|
-
|
|
56051
|
-
|
|
56052
|
-
|
|
56053
|
-
|
|
56054
|
-
|
|
56055
|
-
|
|
56056
|
-
|
|
56057
|
-
|
|
56058
|
-
|
|
56096
|
+
if (i >= end) {
|
|
56097
|
+
if (split) {
|
|
56098
|
+
folds.push(split);
|
|
56099
|
+
end = split + endStep;
|
|
56100
|
+
split = void 0;
|
|
56101
|
+
} else if (mode === FOLD_QUOTED) {
|
|
56102
|
+
while (prev === " " || prev === " ") {
|
|
56103
|
+
prev = ch;
|
|
56104
|
+
ch = text[i += 1];
|
|
56105
|
+
overflow = true;
|
|
56106
|
+
}
|
|
56107
|
+
const j = i > escEnd + 1 ? i - 2 : escStart - 1;
|
|
56108
|
+
if (escapedFolds[j]) return text;
|
|
56109
|
+
folds.push(j);
|
|
56110
|
+
escapedFolds[j] = true;
|
|
56111
|
+
end = j + endStep;
|
|
56112
|
+
split = void 0;
|
|
56113
|
+
} else overflow = true;
|
|
56114
|
+
}
|
|
56059
56115
|
}
|
|
56060
56116
|
prev = ch;
|
|
56061
56117
|
}
|
|
@@ -56535,8 +56591,10 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
56535
56591
|
if (logLevel === "debug") console.log(...messages);
|
|
56536
56592
|
}
|
|
56537
56593
|
function warn(logLevel, warning) {
|
|
56538
|
-
if (logLevel === "debug" || logLevel === "warn")
|
|
56539
|
-
|
|
56594
|
+
if (logLevel === "debug" || logLevel === "warn") {
|
|
56595
|
+
if (typeof node_process$3.emitWarning === "function") node_process$3.emitWarning(warning);
|
|
56596
|
+
else console.warn(warning);
|
|
56597
|
+
}
|
|
56540
56598
|
}
|
|
56541
56599
|
exports.debug = debug;
|
|
56542
56600
|
exports.warn = warn;
|
|
@@ -57363,11 +57421,12 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
57363
57421
|
if (iterable && Symbol.iterator in Object(iterable)) for (let it of iterable) {
|
|
57364
57422
|
if (typeof replacer === "function") it = replacer.call(iterable, String(i++), it);
|
|
57365
57423
|
let key, value;
|
|
57366
|
-
if (Array.isArray(it))
|
|
57367
|
-
|
|
57368
|
-
|
|
57369
|
-
|
|
57370
|
-
|
|
57424
|
+
if (Array.isArray(it)) {
|
|
57425
|
+
if (it.length === 2) {
|
|
57426
|
+
key = it[0];
|
|
57427
|
+
value = it[1];
|
|
57428
|
+
} else throw new TypeError(`Expected [key, value] tuple: ${it}`);
|
|
57429
|
+
} else if (it && it instanceof Object) {
|
|
57371
57430
|
const keys = Object.keys(it);
|
|
57372
57431
|
if (keys.length === 1) {
|
|
57373
57432
|
key = keys[0];
|
|
@@ -57443,8 +57502,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
57443
57502
|
resolve(seq, onError) {
|
|
57444
57503
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
|
57445
57504
|
const seenKeys = [];
|
|
57446
|
-
for (const { key } of pairs$1.items) if (identity.isScalar(key))
|
|
57447
|
-
|
|
57505
|
+
for (const { key } of pairs$1.items) if (identity.isScalar(key)) {
|
|
57506
|
+
if (seenKeys.includes(key.value)) onError(`Ordered maps must not include duplicate keys: ${key.value}`);
|
|
57507
|
+
else seenKeys.push(key.value);
|
|
57508
|
+
}
|
|
57448
57509
|
return Object.assign(new YAMLOMap(), pairs$1);
|
|
57449
57510
|
},
|
|
57450
57511
|
createNode: (schema, iterable, ctx) => YAMLOMap.from(schema, iterable, ctx)
|
|
@@ -57655,9 +57716,10 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
57655
57716
|
tag: "tag:yaml.org,2002:set",
|
|
57656
57717
|
createNode: (schema, iterable, ctx) => YAMLSet.from(schema, iterable, ctx),
|
|
57657
57718
|
resolve(map, onError) {
|
|
57658
|
-
if (identity.isMap(map))
|
|
57659
|
-
|
|
57660
|
-
|
|
57719
|
+
if (identity.isMap(map)) {
|
|
57720
|
+
if (map.hasAllNullValues(true)) return Object.assign(new YAMLSet(), map);
|
|
57721
|
+
else onError("Set items must all have null values");
|
|
57722
|
+
} else onError("Expected a mapping for this tag");
|
|
57661
57723
|
return map;
|
|
57662
57724
|
}
|
|
57663
57725
|
};
|
|
@@ -57849,10 +57911,12 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
57849
57911
|
const schemaTags = schemas.get(schemaName);
|
|
57850
57912
|
if (schemaTags && !customTags) return addMergeTag && !schemaTags.includes(merge.merge) ? schemaTags.concat(merge.merge) : schemaTags.slice();
|
|
57851
57913
|
let tags = schemaTags;
|
|
57852
|
-
if (!tags)
|
|
57853
|
-
|
|
57854
|
-
|
|
57855
|
-
|
|
57914
|
+
if (!tags) {
|
|
57915
|
+
if (Array.isArray(customTags)) tags = [];
|
|
57916
|
+
else {
|
|
57917
|
+
const keys = Array.from(schemas.keys()).filter((key) => key !== "yaml11").map((key) => JSON.stringify(key)).join(", ");
|
|
57918
|
+
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
|
57919
|
+
}
|
|
57856
57920
|
}
|
|
57857
57921
|
if (Array.isArray(customTags)) for (const tag of customTags) tags = tags.concat(tag);
|
|
57858
57922
|
else if (typeof customTags === "function") tags = customTags(tags.slice());
|
|
@@ -57941,14 +58005,15 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
57941
58005
|
if ((body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---") lines[lines.length - 1] = `--- ${body}`;
|
|
57942
58006
|
else lines.push(body);
|
|
57943
58007
|
} else lines.push(stringify.stringify(doc.contents, ctx));
|
|
57944
|
-
if (doc.directives?.docEnd)
|
|
57945
|
-
|
|
57946
|
-
|
|
57947
|
-
|
|
57948
|
-
|
|
57949
|
-
|
|
57950
|
-
|
|
57951
|
-
|
|
58008
|
+
if (doc.directives?.docEnd) {
|
|
58009
|
+
if (doc.comment) {
|
|
58010
|
+
const cs = commentString(doc.comment);
|
|
58011
|
+
if (cs.includes("\n")) {
|
|
58012
|
+
lines.push("...");
|
|
58013
|
+
lines.push(stringifyComment.indentComment(cs, ""));
|
|
58014
|
+
} else lines.push(`... ${cs}`);
|
|
58015
|
+
} else lines.push("...");
|
|
58016
|
+
} else {
|
|
57952
58017
|
let dc = doc.comment;
|
|
57953
58018
|
if (dc && chompKeep) dc = dc.replace(/^\n+/, "");
|
|
57954
58019
|
if (dc) {
|
|
@@ -58487,8 +58552,10 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58487
58552
|
}
|
|
58488
58553
|
if (!keyProps.anchor && !keyProps.tag && !sep) {
|
|
58489
58554
|
commentEnd = keyProps.end;
|
|
58490
|
-
if (keyProps.comment)
|
|
58491
|
-
|
|
58555
|
+
if (keyProps.comment) {
|
|
58556
|
+
if (map.comment) map.comment += "\n" + keyProps.comment;
|
|
58557
|
+
else map.comment = keyProps.comment;
|
|
58558
|
+
}
|
|
58492
58559
|
continue;
|
|
58493
58560
|
}
|
|
58494
58561
|
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key)) onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
@@ -58521,8 +58588,10 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58521
58588
|
map.items.push(pair);
|
|
58522
58589
|
} else {
|
|
58523
58590
|
if (implicitKey) onError(keyNode.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values");
|
|
58524
|
-
if (valueProps.comment)
|
|
58525
|
-
|
|
58591
|
+
if (valueProps.comment) {
|
|
58592
|
+
if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
|
|
58593
|
+
else keyNode.comment = valueProps.comment;
|
|
58594
|
+
}
|
|
58526
58595
|
const pair = new Pair.Pair(keyNode);
|
|
58527
58596
|
if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
|
|
58528
58597
|
map.items.push(pair);
|
|
@@ -58559,12 +58628,15 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58559
58628
|
parentIndent: bs.indent,
|
|
58560
58629
|
startOnNewline: true
|
|
58561
58630
|
});
|
|
58562
|
-
if (!props.found)
|
|
58563
|
-
|
|
58564
|
-
|
|
58565
|
-
|
|
58566
|
-
|
|
58567
|
-
|
|
58631
|
+
if (!props.found) {
|
|
58632
|
+
if (props.anchor || props.tag || value) {
|
|
58633
|
+
if (value?.type === "block-seq") onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
|
|
58634
|
+
else onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
|
|
58635
|
+
} else {
|
|
58636
|
+
commentEnd = props.end;
|
|
58637
|
+
if (props.comment) seq.comment = props.comment;
|
|
58638
|
+
continue;
|
|
58639
|
+
}
|
|
58568
58640
|
}
|
|
58569
58641
|
const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
|
|
58570
58642
|
if (ctx.schema.compat) utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError);
|
|
@@ -58656,8 +58728,10 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
|
|
|
58656
58728
|
if (!props.anchor && !props.tag && !sep && !value) {
|
|
58657
58729
|
if (i === 0 && props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
|
|
58658
58730
|
else if (i < fc.items.length - 1) onError(props.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${fcName}`);
|
|
58659
|
-
if (props.comment)
|
|
58660
|
-
|
|
58731
|
+
if (props.comment) {
|
|
58732
|
+
if (coll.comment) coll.comment += "\n" + props.comment;
|
|
58733
|
+
else coll.comment = props.comment;
|
|
58734
|
+
}
|
|
58661
58735
|
offset = props.end;
|
|
58662
58736
|
continue;
|
|
58663
58737
|
}
|
|
@@ -58717,13 +58791,17 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
|
|
|
58717
58791
|
}
|
|
58718
58792
|
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");
|
|
58719
58793
|
}
|
|
58720
|
-
} else if (value)
|
|
58721
|
-
|
|
58794
|
+
} else if (value) {
|
|
58795
|
+
if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
|
|
58796
|
+
else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
|
|
58797
|
+
}
|
|
58722
58798
|
const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
|
|
58723
58799
|
if (valueNode) {
|
|
58724
58800
|
if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
58725
|
-
} else if (valueProps.comment)
|
|
58726
|
-
|
|
58801
|
+
} else if (valueProps.comment) {
|
|
58802
|
+
if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
|
|
58803
|
+
else keyNode.comment = valueProps.comment;
|
|
58804
|
+
}
|
|
58727
58805
|
const pair = new Pair.Pair(keyNode, valueNode);
|
|
58728
58806
|
if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
|
|
58729
58807
|
if (isMap) {
|
|
@@ -58757,8 +58835,10 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
|
|
|
58757
58835
|
}
|
|
58758
58836
|
if (ee.length > 0) {
|
|
58759
58837
|
const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError);
|
|
58760
|
-
if (end.comment)
|
|
58761
|
-
|
|
58838
|
+
if (end.comment) {
|
|
58839
|
+
if (coll.comment) coll.comment += "\n" + end.comment;
|
|
58840
|
+
else coll.comment = end.comment;
|
|
58841
|
+
}
|
|
58762
58842
|
coll.range = [
|
|
58763
58843
|
fc.offset,
|
|
58764
58844
|
cePos,
|
|
@@ -58906,9 +58986,10 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
58906
58986
|
value += sep + indent.slice(trimIndent) + content;
|
|
58907
58987
|
sep = "\n";
|
|
58908
58988
|
prevMoreIndented = true;
|
|
58909
|
-
} else if (content === "")
|
|
58910
|
-
|
|
58911
|
-
|
|
58989
|
+
} else if (content === "") {
|
|
58990
|
+
if (sep === "\n") value += "\n";
|
|
58991
|
+
else sep = "\n";
|
|
58992
|
+
} else {
|
|
58912
58993
|
value += sep + content;
|
|
58913
58994
|
sep = " ";
|
|
58914
58995
|
prevMoreIndented = false;
|
|
@@ -59101,9 +59182,10 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59101
59182
|
let pos = first.lastIndex;
|
|
59102
59183
|
line.lastIndex = pos;
|
|
59103
59184
|
while (match = line.exec(source)) {
|
|
59104
|
-
if (match[1] === "")
|
|
59105
|
-
|
|
59106
|
-
|
|
59185
|
+
if (match[1] === "") {
|
|
59186
|
+
if (sep === "\n") res += sep;
|
|
59187
|
+
else sep = "\n";
|
|
59188
|
+
} else {
|
|
59107
59189
|
res += sep + match[1];
|
|
59108
59190
|
sep = " ";
|
|
59109
59191
|
}
|
|
@@ -59239,8 +59321,10 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59239
59321
|
function findScalarTagByName(schema, value, tagName, tagToken, onError) {
|
|
59240
59322
|
if (tagName === "!") return schema[identity.SCALAR];
|
|
59241
59323
|
const matchWithTest = [];
|
|
59242
|
-
for (const tag of schema.tags) if (!tag.collection && tag.tag === tagName)
|
|
59243
|
-
|
|
59324
|
+
for (const tag of schema.tags) if (!tag.collection && tag.tag === tagName) {
|
|
59325
|
+
if (tag.default && tag.test) matchWithTest.push(tag);
|
|
59326
|
+
else return tag;
|
|
59327
|
+
}
|
|
59244
59328
|
for (const tag of matchWithTest) if (tag.test?.test(value)) return tag;
|
|
59245
59329
|
const kt = schema.knownTags[tagName];
|
|
59246
59330
|
if (kt && !kt.collection) {
|
|
@@ -59338,8 +59422,10 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59338
59422
|
if (anchor && node.anchor === "") onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
59339
59423
|
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");
|
|
59340
59424
|
if (spaceBefore) node.spaceBefore = true;
|
|
59341
|
-
if (comment)
|
|
59342
|
-
|
|
59425
|
+
if (comment) {
|
|
59426
|
+
if (token.type === "scalar" && token.source === "") node.comment = comment;
|
|
59427
|
+
else node.commentBefore = comment;
|
|
59428
|
+
}
|
|
59343
59429
|
if (ctx.options.keepSourceTokens && isSrcToken) node.srcToken = token;
|
|
59344
59430
|
return node;
|
|
59345
59431
|
}
|
|
@@ -60528,11 +60614,13 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60528
60614
|
end = i;
|
|
60529
60615
|
} else if (isEmpty(ch)) {
|
|
60530
60616
|
let next = this.buffer[i + 1];
|
|
60531
|
-
if (ch === "\r")
|
|
60532
|
-
|
|
60533
|
-
|
|
60534
|
-
|
|
60535
|
-
|
|
60617
|
+
if (ch === "\r") {
|
|
60618
|
+
if (next === "\n") {
|
|
60619
|
+
i += 1;
|
|
60620
|
+
ch = "\n";
|
|
60621
|
+
next = this.buffer[i + 1];
|
|
60622
|
+
} else end = i;
|
|
60623
|
+
}
|
|
60536
60624
|
if (next === "#" || inFlow && flowIndicatorChars.has(next)) break;
|
|
60537
60625
|
if (ch === "\n") {
|
|
60538
60626
|
const cs = this.continueScalar(i + 1);
|
|
@@ -60749,9 +60837,10 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
60749
60837
|
for (const it of fc.items) if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) {
|
|
60750
60838
|
if (it.key) it.value = it.key;
|
|
60751
60839
|
delete it.key;
|
|
60752
|
-
if (isFlowToken(it.value))
|
|
60753
|
-
|
|
60754
|
-
|
|
60840
|
+
if (isFlowToken(it.value)) {
|
|
60841
|
+
if (it.value.end) arrayPushArray(it.value.end, it.sep);
|
|
60842
|
+
else it.value.end = it.sep;
|
|
60843
|
+
} else arrayPushArray(it.start, it.sep);
|
|
60755
60844
|
delete it.sep;
|
|
60756
60845
|
}
|
|
60757
60846
|
}
|
|
@@ -61186,58 +61275,60 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61186
61275
|
this.onKeyLine = true;
|
|
61187
61276
|
return;
|
|
61188
61277
|
case "map-value-ind":
|
|
61189
|
-
if (it.explicitKey)
|
|
61190
|
-
|
|
61191
|
-
|
|
61192
|
-
});
|
|
61193
|
-
else {
|
|
61194
|
-
const start = getFirstKeyStartProps(it.start);
|
|
61195
|
-
this.stack.push({
|
|
61196
|
-
type: "block-map",
|
|
61197
|
-
offset: this.offset,
|
|
61198
|
-
indent: this.indent,
|
|
61199
|
-
items: [{
|
|
61200
|
-
start,
|
|
61278
|
+
if (it.explicitKey) {
|
|
61279
|
+
if (!it.sep) {
|
|
61280
|
+
if (includesToken(it.start, "newline")) Object.assign(it, {
|
|
61201
61281
|
key: null,
|
|
61202
61282
|
sep: [this.sourceToken]
|
|
61203
|
-
}
|
|
61204
|
-
|
|
61205
|
-
|
|
61206
|
-
|
|
61207
|
-
|
|
61208
|
-
|
|
61209
|
-
|
|
61210
|
-
|
|
61211
|
-
|
|
61212
|
-
|
|
61213
|
-
|
|
61214
|
-
|
|
61215
|
-
|
|
61216
|
-
|
|
61283
|
+
});
|
|
61284
|
+
else {
|
|
61285
|
+
const start = getFirstKeyStartProps(it.start);
|
|
61286
|
+
this.stack.push({
|
|
61287
|
+
type: "block-map",
|
|
61288
|
+
offset: this.offset,
|
|
61289
|
+
indent: this.indent,
|
|
61290
|
+
items: [{
|
|
61291
|
+
start,
|
|
61292
|
+
key: null,
|
|
61293
|
+
sep: [this.sourceToken]
|
|
61294
|
+
}]
|
|
61295
|
+
});
|
|
61296
|
+
}
|
|
61297
|
+
} else if (it.value) map.items.push({
|
|
61298
|
+
start: [],
|
|
61217
61299
|
key: null,
|
|
61218
61300
|
sep: [this.sourceToken]
|
|
61219
|
-
}
|
|
61220
|
-
|
|
61221
|
-
else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
61222
|
-
const start = getFirstKeyStartProps(it.start);
|
|
61223
|
-
const key = it.key;
|
|
61224
|
-
const sep = it.sep;
|
|
61225
|
-
sep.push(this.sourceToken);
|
|
61226
|
-
delete it.key;
|
|
61227
|
-
delete it.sep;
|
|
61228
|
-
this.stack.push({
|
|
61301
|
+
});
|
|
61302
|
+
else if (includesToken(it.sep, "map-value-ind")) this.stack.push({
|
|
61229
61303
|
type: "block-map",
|
|
61230
61304
|
offset: this.offset,
|
|
61231
61305
|
indent: this.indent,
|
|
61232
61306
|
items: [{
|
|
61233
61307
|
start,
|
|
61234
|
-
key,
|
|
61235
|
-
sep
|
|
61308
|
+
key: null,
|
|
61309
|
+
sep: [this.sourceToken]
|
|
61236
61310
|
}]
|
|
61237
61311
|
});
|
|
61238
|
-
|
|
61239
|
-
|
|
61240
|
-
|
|
61312
|
+
else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
61313
|
+
const start = getFirstKeyStartProps(it.start);
|
|
61314
|
+
const key = it.key;
|
|
61315
|
+
const sep = it.sep;
|
|
61316
|
+
sep.push(this.sourceToken);
|
|
61317
|
+
delete it.key;
|
|
61318
|
+
delete it.sep;
|
|
61319
|
+
this.stack.push({
|
|
61320
|
+
type: "block-map",
|
|
61321
|
+
offset: this.offset,
|
|
61322
|
+
indent: this.indent,
|
|
61323
|
+
items: [{
|
|
61324
|
+
start,
|
|
61325
|
+
key,
|
|
61326
|
+
sep
|
|
61327
|
+
}]
|
|
61328
|
+
});
|
|
61329
|
+
} else if (start.length > 0) it.sep = it.sep.concat(start, this.sourceToken);
|
|
61330
|
+
else it.sep.push(this.sourceToken);
|
|
61331
|
+
} else if (!it.sep) Object.assign(it, {
|
|
61241
61332
|
key: null,
|
|
61242
61333
|
sep: [this.sourceToken]
|
|
61243
61334
|
});
|
|
@@ -61610,8 +61701,10 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61610
61701
|
const doc = parseDocument(src, options);
|
|
61611
61702
|
if (!doc) return null;
|
|
61612
61703
|
doc.warnings.forEach((warning) => log.warn(doc.options.logLevel, warning));
|
|
61613
|
-
if (doc.errors.length > 0)
|
|
61614
|
-
|
|
61704
|
+
if (doc.errors.length > 0) {
|
|
61705
|
+
if (doc.options.logLevel !== "silent") throw doc.errors[0];
|
|
61706
|
+
else doc.errors = [];
|
|
61707
|
+
}
|
|
61615
61708
|
return doc.toJS(Object.assign({ reviver: _reviver }, options));
|
|
61616
61709
|
}
|
|
61617
61710
|
function stringify(value, replacer, options) {
|
|
@@ -62058,12 +62151,13 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62058
62151
|
chr = String.fromCharCode(parseInt(input.substr(position + 1, 4), 16));
|
|
62059
62152
|
position += 5;
|
|
62060
62153
|
}
|
|
62061
|
-
if (result.length)
|
|
62062
|
-
|
|
62063
|
-
|
|
62064
|
-
|
|
62065
|
-
|
|
62066
|
-
|
|
62154
|
+
if (result.length) {
|
|
62155
|
+
if (Uni.isIdentifierPart(chr)) result += chr;
|
|
62156
|
+
else {
|
|
62157
|
+
position--;
|
|
62158
|
+
return result;
|
|
62159
|
+
}
|
|
62160
|
+
} else if (Uni.isIdentifierStart(chr)) result += chr;
|
|
62067
62161
|
else return;
|
|
62068
62162
|
}
|
|
62069
62163
|
fail();
|
|
@@ -62192,9 +62286,10 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62192
62286
|
if (!Uni.isIdentifierPart(key[i])) return _stringify_str(key);
|
|
62193
62287
|
} else if (!Uni.isIdentifierStart(key[i])) return _stringify_str(key);
|
|
62194
62288
|
var chr = key.charCodeAt(i);
|
|
62195
|
-
if (options.ascii)
|
|
62196
|
-
|
|
62197
|
-
|
|
62289
|
+
if (options.ascii) {
|
|
62290
|
+
if (chr < 128) result += key[i];
|
|
62291
|
+
else result += "\\u" + ("0000" + chr.toString(16)).slice(-4);
|
|
62292
|
+
} else if (escapable.exec(key[i])) result += "\\u" + ("0000" + chr.toString(16)).slice(-4);
|
|
62198
62293
|
else result += key[i];
|
|
62199
62294
|
}
|
|
62200
62295
|
return result;
|
|
@@ -62205,22 +62300,27 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62205
62300
|
var result = "";
|
|
62206
62301
|
for (var i = 0; i < key.length; i++) {
|
|
62207
62302
|
var chr = key.charCodeAt(i);
|
|
62208
|
-
if (chr < 16)
|
|
62209
|
-
|
|
62210
|
-
|
|
62211
|
-
|
|
62212
|
-
|
|
62213
|
-
else
|
|
62214
|
-
|
|
62215
|
-
|
|
62216
|
-
else if (chr
|
|
62217
|
-
|
|
62218
|
-
|
|
62219
|
-
|
|
62220
|
-
|
|
62221
|
-
else if (
|
|
62222
|
-
|
|
62223
|
-
|
|
62303
|
+
if (chr < 16) {
|
|
62304
|
+
if (chr === 0 && json5) result += "\\0";
|
|
62305
|
+
else if (chr >= 8 && chr <= 13 && (json5 || chr !== 11)) result += special_chars[chr];
|
|
62306
|
+
else if (json5) result += "\\x0" + chr.toString(16);
|
|
62307
|
+
else result += "\\u000" + chr.toString(16);
|
|
62308
|
+
} else if (chr < 32) {
|
|
62309
|
+
if (json5) result += "\\x" + chr.toString(16);
|
|
62310
|
+
else result += "\\u00" + chr.toString(16);
|
|
62311
|
+
} else if (chr >= 32 && chr < 128) {
|
|
62312
|
+
if (chr === 47 && i && key[i - 1] === "<") result += "\\" + key[i];
|
|
62313
|
+
else if (chr === 92) result += "\\\\";
|
|
62314
|
+
else if (chr === quoteChr) result += "\\" + quote;
|
|
62315
|
+
else result += key[i];
|
|
62316
|
+
} else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) {
|
|
62317
|
+
if (chr < 256) {
|
|
62318
|
+
if (json5) result += "\\x" + chr.toString(16);
|
|
62319
|
+
else result += "\\u00" + chr.toString(16);
|
|
62320
|
+
} else if (chr < 4096) result += "\\u0" + chr.toString(16);
|
|
62321
|
+
else if (chr < 65536) result += "\\u" + chr.toString(16);
|
|
62322
|
+
else throw Error("weird codepoint");
|
|
62323
|
+
} else result += key[i];
|
|
62224
62324
|
}
|
|
62225
62325
|
return quote + result + quote;
|
|
62226
62326
|
}
|
|
@@ -62316,9 +62416,10 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62316
62416
|
if (typeof options.indent === "object") {
|
|
62317
62417
|
if (options.indent.constructor === Number || options.indent.constructor === Boolean || options.indent.constructor === String) options.indent = options.indent.valueOf();
|
|
62318
62418
|
}
|
|
62319
|
-
if (typeof options.indent === "number")
|
|
62320
|
-
|
|
62321
|
-
|
|
62419
|
+
if (typeof options.indent === "number") {
|
|
62420
|
+
if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(" ");
|
|
62421
|
+
else options.indent = false;
|
|
62422
|
+
} else if (typeof options.indent === "string") options.indent = options.indent.substr(0, 10);
|
|
62322
62423
|
if (options._splitMin == null) options._splitMin = 50;
|
|
62323
62424
|
if (options._splitMax == null) options._splitMax = 70;
|
|
62324
62425
|
return _stringify(object, options, 0, "");
|
|
@@ -62493,13 +62594,14 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62493
62594
|
return Error("You can't " + (is_unset ? "unset" : "set") + " key '" + key + "'" + add);
|
|
62494
62595
|
}
|
|
62495
62596
|
if (!isObject(object)) throw error(" of an non-object");
|
|
62496
|
-
if (Array.isArray(object))
|
|
62497
|
-
|
|
62498
|
-
|
|
62499
|
-
|
|
62500
|
-
|
|
62501
|
-
|
|
62502
|
-
|
|
62597
|
+
if (Array.isArray(object)) {
|
|
62598
|
+
if (String(key).match(/^\d+$/)) {
|
|
62599
|
+
key = Number(String(key));
|
|
62600
|
+
if (object.length < key || is_unset && object.length === key) throw error(", out of bounds");
|
|
62601
|
+
else if (is_unset && object.length !== key + 1) throw error(" in the middle of an array");
|
|
62602
|
+
else return true;
|
|
62603
|
+
} else throw error(" of an array");
|
|
62604
|
+
} else return true;
|
|
62503
62605
|
}
|
|
62504
62606
|
Document.prototype.set = function(path, value) {
|
|
62505
62607
|
path = arg_to_path(path);
|
|
@@ -62515,9 +62617,10 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62515
62617
|
}
|
|
62516
62618
|
if (i === path.length - 1) check_if_can_be_placed(path[i], data, value === void 0);
|
|
62517
62619
|
var new_key = !(path[i] in data);
|
|
62518
|
-
if (value === void 0)
|
|
62519
|
-
|
|
62520
|
-
|
|
62620
|
+
if (value === void 0) {
|
|
62621
|
+
if (Array.isArray(data)) data.pop();
|
|
62622
|
+
else delete data[path[i]];
|
|
62623
|
+
} else data[path[i]] = value;
|
|
62521
62624
|
}
|
|
62522
62625
|
if (!this._tokens.length) this._tokens = [{
|
|
62523
62626
|
raw: "",
|
|
@@ -62628,17 +62731,18 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62628
62731
|
if (!isObject(new_data) || !isObject(old_data)) {
|
|
62629
62732
|
if (new_data !== old_data) self.set(path, new_data);
|
|
62630
62733
|
} else if (Array.isArray(new_data) != Array.isArray(old_data)) self.set(path, new_data);
|
|
62631
|
-
else if (Array.isArray(new_data))
|
|
62632
|
-
|
|
62633
|
-
|
|
62634
|
-
|
|
62635
|
-
|
|
62636
|
-
|
|
62637
|
-
|
|
62638
|
-
|
|
62639
|
-
|
|
62640
|
-
|
|
62641
|
-
|
|
62734
|
+
else if (Array.isArray(new_data)) {
|
|
62735
|
+
if (new_data.length > old_data.length) for (var i = 0; i < new_data.length; i++) {
|
|
62736
|
+
path.push(String(i));
|
|
62737
|
+
change(path, old_data[i], new_data[i]);
|
|
62738
|
+
path.pop();
|
|
62739
|
+
}
|
|
62740
|
+
else for (var i = old_data.length - 1; i >= 0; i--) {
|
|
62741
|
+
path.push(String(i));
|
|
62742
|
+
change(path, old_data[i], new_data[i]);
|
|
62743
|
+
path.pop();
|
|
62744
|
+
}
|
|
62745
|
+
} else {
|
|
62642
62746
|
for (var i in new_data) {
|
|
62643
62747
|
path.push(String(i));
|
|
62644
62748
|
change(path, old_data[i], new_data[i]);
|
|
@@ -65905,10 +66009,12 @@ codes.ERR_INVALID_ARG_TYPE = createError(
|
|
|
65905
66009
|
message += `an instance of ${formatList(instances, "or")}`;
|
|
65906
66010
|
if (other.length > 0) message += " or ";
|
|
65907
66011
|
}
|
|
65908
|
-
if (other.length > 0)
|
|
65909
|
-
|
|
65910
|
-
|
|
65911
|
-
|
|
66012
|
+
if (other.length > 0) {
|
|
66013
|
+
if (other.length > 1) message += `one of ${formatList(other, "or")}`;
|
|
66014
|
+
else {
|
|
66015
|
+
if (other[0].toLowerCase() !== other[0]) message += "an ";
|
|
66016
|
+
message += `${other[0]}`;
|
|
66017
|
+
}
|
|
65912
66018
|
}
|
|
65913
66019
|
message += `. Received ${determineSpecificType(actual)}`;
|
|
65914
66020
|
return message;
|
|
@@ -66603,12 +66709,14 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
66603
66709
|
}
|
|
66604
66710
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
66605
66711
|
}
|
|
66606
|
-
if (invalidSegmentRegEx.exec(target.slice(2)) !== null)
|
|
66607
|
-
if (
|
|
66608
|
-
|
|
66609
|
-
|
|
66610
|
-
|
|
66611
|
-
|
|
66712
|
+
if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
|
|
66713
|
+
if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
|
|
66714
|
+
if (!isPathMap) {
|
|
66715
|
+
const request = pattern ? match.replace("*", () => subpath) : match + subpath;
|
|
66716
|
+
emitInvalidSegmentDeprecation(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target, request, match, packageJsonUrl, internal, base, true);
|
|
66717
|
+
}
|
|
66718
|
+
} else throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
66719
|
+
}
|
|
66612
66720
|
const resolved = new URL(target, packageJsonUrl);
|
|
66613
66721
|
const resolvedPath = resolved.pathname;
|
|
66614
66722
|
const packagePath = new URL(".", packageJsonUrl).pathname;
|
|
@@ -66802,29 +66910,31 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
66802
66910
|
if (packageConfig.exists) {
|
|
66803
66911
|
packageJsonUrl = (0, node_url.pathToFileURL)(packageConfig.pjsonPath);
|
|
66804
66912
|
const imports = packageConfig.imports;
|
|
66805
|
-
if (imports)
|
|
66806
|
-
|
|
66807
|
-
|
|
66808
|
-
|
|
66809
|
-
|
|
66810
|
-
|
|
66811
|
-
|
|
66812
|
-
|
|
66813
|
-
|
|
66814
|
-
|
|
66815
|
-
|
|
66816
|
-
|
|
66817
|
-
|
|
66818
|
-
|
|
66819
|
-
bestMatch
|
|
66820
|
-
|
|
66913
|
+
if (imports) {
|
|
66914
|
+
if (own.call(imports, name) && !name.includes("*")) {
|
|
66915
|
+
const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], "", name, base, false, true, false, conditions);
|
|
66916
|
+
if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
|
|
66917
|
+
} else {
|
|
66918
|
+
let bestMatch = "";
|
|
66919
|
+
let bestMatchSubpath = "";
|
|
66920
|
+
const keys = Object.getOwnPropertyNames(imports);
|
|
66921
|
+
let i = -1;
|
|
66922
|
+
while (++i < keys.length) {
|
|
66923
|
+
const key = keys[i];
|
|
66924
|
+
const patternIndex = key.indexOf("*");
|
|
66925
|
+
if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) {
|
|
66926
|
+
const patternTrailer = key.slice(patternIndex + 1);
|
|
66927
|
+
if (name.length >= key.length && name.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf("*") === patternIndex) {
|
|
66928
|
+
bestMatch = key;
|
|
66929
|
+
bestMatchSubpath = name.slice(patternIndex, name.length - patternTrailer.length);
|
|
66930
|
+
}
|
|
66821
66931
|
}
|
|
66822
66932
|
}
|
|
66823
|
-
|
|
66824
|
-
|
|
66825
|
-
|
|
66826
|
-
|
|
66827
|
-
|
|
66933
|
+
if (bestMatch) {
|
|
66934
|
+
const target = imports[bestMatch];
|
|
66935
|
+
const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions);
|
|
66936
|
+
if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
|
|
66937
|
+
}
|
|
66828
66938
|
}
|
|
66829
66939
|
}
|
|
66830
66940
|
}
|
|
@@ -67182,11 +67292,13 @@ function createScanner(text, ignoreTrivia = false) {
|
|
|
67182
67292
|
start = pos;
|
|
67183
67293
|
continue;
|
|
67184
67294
|
}
|
|
67185
|
-
if (ch >= 0 && ch <= 31)
|
|
67186
|
-
|
|
67187
|
-
|
|
67188
|
-
|
|
67189
|
-
|
|
67295
|
+
if (ch >= 0 && ch <= 31) {
|
|
67296
|
+
if (isLineBreak(ch)) {
|
|
67297
|
+
result += text.substring(start, pos);
|
|
67298
|
+
scanError = 2;
|
|
67299
|
+
break;
|
|
67300
|
+
} else scanError = 6;
|
|
67301
|
+
}
|
|
67190
67302
|
pos++;
|
|
67191
67303
|
}
|
|
67192
67304
|
return result;
|