@savvy-web/silk 3.2.0 → 3.2.2
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 +434 -140
- package/changesets-changelog.d.cts +85 -8
- package/changesets-changelog.d.ts +85 -8
- package/changesets-changelog.js +438 -143
- package/changesets-markdownlint.cjs +434 -140
- package/changesets-markdownlint.d.cts +85 -8
- package/changesets-markdownlint.d.ts +85 -8
- package/changesets-markdownlint.js +438 -143
- package/package.json +5 -5
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
package/changesets-changelog.cjs
CHANGED
|
@@ -419,7 +419,7 @@ const trimTrailingSlashes = (s) => {
|
|
|
419
419
|
return s.slice(0, end);
|
|
420
420
|
};
|
|
421
421
|
//#endregion
|
|
422
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
422
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/limits.js
|
|
423
423
|
/** Hard cap on pattern length. Upstream minimatch's MAX_PATTERN_LENGTH (64KB). */
|
|
424
424
|
const MAX_PATTERN_LENGTH = 1024 * 64;
|
|
425
425
|
/** Default brace-expansion output budget. Upstream brace-expansion's EXPANSION_MAX. */
|
|
@@ -453,7 +453,7 @@ const assertCap = (name, value) => {
|
|
|
453
453
|
return value;
|
|
454
454
|
};
|
|
455
455
|
//#endregion
|
|
456
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
456
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/unescape.js
|
|
457
457
|
/**
|
|
458
458
|
* Un-escape a string that has been escaped with `escape`.
|
|
459
459
|
*
|
|
@@ -476,11 +476,11 @@ const unescapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = true
|
|
|
476
476
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
477
477
|
};
|
|
478
478
|
//#endregion
|
|
479
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
479
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/types.js
|
|
480
480
|
/** The globstar marker in a compiled pattern set. */
|
|
481
481
|
const GLOBSTAR = Symbol("globstar **");
|
|
482
482
|
//#endregion
|
|
483
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
483
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/escape.js
|
|
484
484
|
/**
|
|
485
485
|
* Escape all magic characters in a glob pattern.
|
|
486
486
|
*
|
|
@@ -498,13 +498,13 @@ const escapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = false
|
|
|
498
498
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
499
499
|
};
|
|
500
500
|
//#endregion
|
|
501
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
501
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/assertValidPattern.js
|
|
502
502
|
const assertValidPattern = (pattern) => {
|
|
503
503
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
504
504
|
if (pattern.length > 65536) throw new GuardExceeded("PatternTooLong", MAX_PATTERN_LENGTH, pattern.length);
|
|
505
505
|
};
|
|
506
506
|
//#endregion
|
|
507
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
507
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/braceExpressions.js
|
|
508
508
|
const posixClasses = {
|
|
509
509
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
510
510
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -627,7 +627,7 @@ const parseClass = (glob, position) => {
|
|
|
627
627
|
];
|
|
628
628
|
};
|
|
629
629
|
//#endregion
|
|
630
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
630
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/ast.js
|
|
631
631
|
const types = /* @__PURE__ */ new Set([
|
|
632
632
|
"!",
|
|
633
633
|
"?",
|
|
@@ -1144,7 +1144,7 @@ var AST = class AST {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
};
|
|
1146
1146
|
//#endregion
|
|
1147
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
1147
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/balancedMatch.js
|
|
1148
1148
|
const maybeMatch = (reg, str) => {
|
|
1149
1149
|
const m = str.match(reg);
|
|
1150
1150
|
return m ? m[0] : null;
|
|
@@ -1202,7 +1202,7 @@ const range = (a, b, str) => {
|
|
|
1202
1202
|
return result;
|
|
1203
1203
|
};
|
|
1204
1204
|
//#endregion
|
|
1205
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
1205
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/braceExpansion.js
|
|
1206
1206
|
const escSlash = `\0SLASH${Math.random()}\0`;
|
|
1207
1207
|
const escOpen = `\0OPEN${Math.random()}\0`;
|
|
1208
1208
|
const escClose = `\0CLOSE${Math.random()}\0`;
|
|
@@ -1349,7 +1349,7 @@ function expand_(str, max, isTopInput, depth) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
1351
|
//#endregion
|
|
1352
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
1352
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/minimatch.js
|
|
1353
1353
|
const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
1354
1354
|
const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
|
|
1355
1355
|
const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
|
|
@@ -1920,7 +1920,7 @@ var Minimatch = class {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
};
|
|
1922
1922
|
//#endregion
|
|
1923
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
1923
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/GlobPattern.js
|
|
1924
1924
|
/**
|
|
1925
1925
|
* Typed failure raised when a glob pattern trips a compile-time guard:
|
|
1926
1926
|
* over-length, brace-expansion budget exhaustion, or nesting past the depth
|
|
@@ -2199,7 +2199,7 @@ var GlobPattern = class GlobPattern extends effect.Schema.Class("GlobPattern")(e
|
|
|
2199
2199
|
})));
|
|
2200
2200
|
};
|
|
2201
2201
|
//#endregion
|
|
2202
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
2202
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/GlobSet.js
|
|
2203
2203
|
const exclusionTarget = (pattern) => pattern.startsWith("!") ? pattern.slice(1) : void 0;
|
|
2204
2204
|
const allCompileUnderDefaults = (patterns) => {
|
|
2205
2205
|
for (const pattern of patterns) {
|
|
@@ -2353,7 +2353,7 @@ var GlobSet = class GlobSet extends effect.Schema.Class("GlobSet")(effect.Schema
|
|
|
2353
2353
|
}
|
|
2354
2354
|
};
|
|
2355
2355
|
//#endregion
|
|
2356
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
2356
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/BunExtension.js
|
|
2357
2357
|
/**
|
|
2358
2358
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2359
2359
|
* when the format is `"bun"`.
|
|
@@ -2374,7 +2374,7 @@ var BunExtension = class extends effect.Schema.Class("BunExtension")({
|
|
|
2374
2374
|
trustedDependencies: effect.Schema.optionalKey(effect.Schema.Array(effect.Schema.String))
|
|
2375
2375
|
}) {};
|
|
2376
2376
|
//#endregion
|
|
2377
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
2377
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.3.1_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/CatalogResolver.js
|
|
2378
2378
|
/**
|
|
2379
2379
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2380
2380
|
* version ranges.
|
|
@@ -2420,7 +2420,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
|
|
|
2420
2420
|
static noop = effect.Layer.succeed(CatalogResolver, { rangeOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2421
2421
|
};
|
|
2422
2422
|
//#endregion
|
|
2423
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
2423
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.3.1_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/WorkspaceResolver.js
|
|
2424
2424
|
/**
|
|
2425
2425
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2426
2426
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2481,7 +2481,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
|
|
|
2481
2481
|
static noop = effect.Layer.succeed(WorkspaceResolver, { versionOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2482
2482
|
};
|
|
2483
2483
|
//#endregion
|
|
2484
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
2484
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.3.1_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/CatalogAssemblyError.js
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2487
2487
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2525,7 +2525,7 @@ var CatalogAssemblyError = class extends effect.Schema.TaggedErrorClass()("Catal
|
|
|
2525
2525
|
}
|
|
2526
2526
|
};
|
|
2527
2527
|
//#endregion
|
|
2528
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
2528
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.3.1_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/DependencySection.js
|
|
2529
2529
|
/**
|
|
2530
2530
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2531
2531
|
* way consumers branch on it.
|
|
@@ -2557,7 +2557,7 @@ Object.fromEntries(Object.entries({
|
|
|
2557
2557
|
optional: "optionalDependencies"
|
|
2558
2558
|
}).map(([kind, field]) => [field, kind]));
|
|
2559
2559
|
//#endregion
|
|
2560
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
2560
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/desugar.js
|
|
2561
2561
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2562
2562
|
major,
|
|
2563
2563
|
minor,
|
|
@@ -2646,7 +2646,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2646
2646
|
return [comp(">=", lowerVersion)];
|
|
2647
2647
|
};
|
|
2648
2648
|
//#endregion
|
|
2649
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
2649
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/grammar.js
|
|
2650
2650
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2651
2651
|
var ParseFailure = class {
|
|
2652
2652
|
position;
|
|
@@ -3041,7 +3041,7 @@ const formatComparator = (c) => {
|
|
|
3041
3041
|
/** Print comparator sets as `a b || c d`. */
|
|
3042
3042
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
3043
3043
|
//#endregion
|
|
3044
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3044
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/order.js
|
|
3045
3045
|
/**
|
|
3046
3046
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
3047
3047
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3094,7 +3094,7 @@ const compareBuild = (a, b) => {
|
|
|
3094
3094
|
return 0;
|
|
3095
3095
|
};
|
|
3096
3096
|
//#endregion
|
|
3097
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3097
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/SemVer.js
|
|
3098
3098
|
/**
|
|
3099
3099
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3100
3100
|
*
|
|
@@ -3529,7 +3529,7 @@ var SemVerBump = class {
|
|
|
3529
3529
|
}
|
|
3530
3530
|
};
|
|
3531
3531
|
//#endregion
|
|
3532
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3532
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/Comparator.js
|
|
3533
3533
|
/**
|
|
3534
3534
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3535
3535
|
*
|
|
@@ -3663,7 +3663,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
|
|
|
3663
3663
|
}
|
|
3664
3664
|
};
|
|
3665
3665
|
//#endregion
|
|
3666
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3666
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/normalize.js
|
|
3667
3667
|
const operatorWeight = (op) => {
|
|
3668
3668
|
switch (op) {
|
|
3669
3669
|
case ">=": return 0;
|
|
@@ -3694,7 +3694,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3694
3694
|
/** Normalize every comparator set in a range: sort and deduplicate each independently. */
|
|
3695
3695
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3696
3696
|
//#endregion
|
|
3697
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3697
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/Range.js
|
|
3698
3698
|
/**
|
|
3699
3699
|
* Indicates that a string could not be parsed as a range expression.
|
|
3700
3700
|
*
|
|
@@ -4026,7 +4026,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4026
4026
|
return true;
|
|
4027
4027
|
};
|
|
4028
4028
|
//#endregion
|
|
4029
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
4029
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.3.1_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/DependencySpecifier.js
|
|
4030
4030
|
/**
|
|
4031
4031
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
4032
4032
|
*
|
|
@@ -4233,7 +4233,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4233
4233
|
FromString: fromString
|
|
4234
4234
|
});
|
|
4235
4235
|
//#endregion
|
|
4236
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
4236
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.3.1_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/IntegrityHash.js
|
|
4237
4237
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4238
4238
|
const COREPACK_RE = /^(sha1|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4239
4239
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4286,7 +4286,7 @@ const IntegrityHash = Object.assign(brandedIntegrity, {
|
|
|
4286
4286
|
decode: decode$2
|
|
4287
4287
|
});
|
|
4288
4288
|
//#endregion
|
|
4289
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
4289
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.3.1_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/ReleaseAgeGate.js
|
|
4290
4290
|
const MS_PER_MINUTE = 6e4;
|
|
4291
4291
|
/**
|
|
4292
4292
|
* A source's partial contribution to a {@link ReleaseAgeGate}: the effective
|
|
@@ -4454,7 +4454,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends effect.Schema.Class("ReleaseAg
|
|
|
4454
4454
|
}
|
|
4455
4455
|
};
|
|
4456
4456
|
//#endregion
|
|
4457
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4457
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/ImporterDependency.js
|
|
4458
4458
|
/**
|
|
4459
4459
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
4460
4460
|
*
|
|
@@ -4482,7 +4482,7 @@ var ImporterDependency = class extends effect.Schema.Class("ImporterDependency")
|
|
|
4482
4482
|
depType: DependencyField
|
|
4483
4483
|
}) {};
|
|
4484
4484
|
//#endregion
|
|
4485
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4485
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/LockfileImporter.js
|
|
4486
4486
|
/**
|
|
4487
4487
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
4488
4488
|
*
|
|
@@ -4506,7 +4506,7 @@ var LockfileImporter = class extends effect.Schema.Class("LockfileImporter")({
|
|
|
4506
4506
|
dependencies: effect.Schema.Array(ImporterDependency)
|
|
4507
4507
|
}) {};
|
|
4508
4508
|
//#endregion
|
|
4509
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4509
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/ResolvedPackage.js
|
|
4510
4510
|
const EMPTY_DEPENDENCIES = {};
|
|
4511
4511
|
/**
|
|
4512
4512
|
* A package resolved from a lockfile.
|
|
@@ -4541,7 +4541,7 @@ var ResolvedPackage = class extends effect.Schema.Class("ResolvedPackage")({
|
|
|
4541
4541
|
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)))
|
|
4542
4542
|
}) {};
|
|
4543
4543
|
//#endregion
|
|
4544
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4544
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/WorkspaceDependency.js
|
|
4545
4545
|
/**
|
|
4546
4546
|
* A directed dependency edge between two workspace packages as recorded in
|
|
4547
4547
|
* the lockfile.
|
|
@@ -4563,7 +4563,7 @@ var WorkspaceDependency = class extends effect.Schema.Class("WorkspaceDependency
|
|
|
4563
4563
|
constraint: effect.Schema.String
|
|
4564
4564
|
}) {};
|
|
4565
4565
|
//#endregion
|
|
4566
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4566
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/PnpmExtension.js
|
|
4567
4567
|
/**
|
|
4568
4568
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
4569
4569
|
* when the format is `"pnpm"`.
|
|
@@ -4588,7 +4588,7 @@ var PnpmExtension = class extends effect.Schema.Class("PnpmExtension")({
|
|
|
4588
4588
|
}))
|
|
4589
4589
|
}) {};
|
|
4590
4590
|
//#endregion
|
|
4591
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4591
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/LockfileFormat.js
|
|
4592
4592
|
/**
|
|
4593
4593
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
4594
4594
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -4622,7 +4622,7 @@ const FILENAMES = {
|
|
|
4622
4622
|
*/
|
|
4623
4623
|
const filenameFor = (format) => FILENAMES[format];
|
|
4624
4624
|
//#endregion
|
|
4625
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4625
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/internal/shared.js
|
|
4626
4626
|
/**
|
|
4627
4627
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
4628
4628
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -4748,7 +4748,7 @@ const extractWorkspaceDeps = (workspaces, workspaceNames) => {
|
|
|
4748
4748
|
return deps;
|
|
4749
4749
|
};
|
|
4750
4750
|
//#endregion
|
|
4751
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
4751
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/JsoncNode.js
|
|
4752
4752
|
/**
|
|
4753
4753
|
* Discriminator values for JSONC AST node types: the JSON value types
|
|
4754
4754
|
* (`string`/`number`/`boolean`/`null`), the structural types
|
|
@@ -4923,7 +4923,7 @@ function evaluateNode(node, depth) {
|
|
|
4923
4923
|
}
|
|
4924
4924
|
}
|
|
4925
4925
|
//#endregion
|
|
4926
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
4926
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/scanner.js
|
|
4927
4927
|
const isWhitespace = (ch) => ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 65279;
|
|
4928
4928
|
const isLineBreak$1 = (ch) => ch === 10 || ch === 13 || ch === 8232 || ch === 8233;
|
|
4929
4929
|
const isDigit$1 = (ch) => ch >= 48 && ch <= 57;
|
|
@@ -5219,7 +5219,7 @@ const createScanner$2 = (text, ignoreTrivia = false) => {
|
|
|
5219
5219
|
};
|
|
5220
5220
|
};
|
|
5221
5221
|
//#endregion
|
|
5222
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
5222
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/skip.js
|
|
5223
5223
|
/**
|
|
5224
5224
|
* Iteratively consume the value beginning at the cursor's current token and
|
|
5225
5225
|
* return its tight end offset (excludes trailing whitespace/comments).
|
|
@@ -5249,7 +5249,7 @@ const skipBalancedValue = (cursor) => {
|
|
|
5249
5249
|
return end;
|
|
5250
5250
|
};
|
|
5251
5251
|
//#endregion
|
|
5252
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
5252
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/parser.js
|
|
5253
5253
|
/**
|
|
5254
5254
|
* The public parse-error code vocabulary. The facade builds its `@public`
|
|
5255
5255
|
* `JsoncParseErrorCode` schema from this array; the parser produces these codes
|
|
@@ -5662,7 +5662,7 @@ const parseTree$2 = (text, flags) => {
|
|
|
5662
5662
|
};
|
|
5663
5663
|
};
|
|
5664
5664
|
//#endregion
|
|
5665
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
5665
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/Jsonc.js
|
|
5666
5666
|
/**
|
|
5667
5667
|
* The single public parse-error code vocabulary, appearing as the `code` field
|
|
5668
5668
|
* of {@link JsoncParseErrorDetail}.
|
|
@@ -6266,7 +6266,7 @@ var JsoncEdit = class extends effect.Schema.Class("JsoncEdit")({
|
|
|
6266
6266
|
}
|
|
6267
6267
|
};
|
|
6268
6268
|
//#endregion
|
|
6269
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
6269
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/navigate.js
|
|
6270
6270
|
/**
|
|
6271
6271
|
* Resolve `path` against `text`, returning where the target is (or where it
|
|
6272
6272
|
* would be inserted). `path` must be non-empty — the whole-document case is
|
|
@@ -6393,7 +6393,7 @@ function navigate(text, path) {
|
|
|
6393
6393
|
return { _tag: "NoOp" };
|
|
6394
6394
|
}
|
|
6395
6395
|
//#endregion
|
|
6396
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
6396
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/JsoncModifier.js
|
|
6397
6397
|
/**
|
|
6398
6398
|
* Raised when `JsoncModifier.modify` cannot navigate the requested path: the
|
|
6399
6399
|
* value at `depth` is not the container kind (`expected`) the next path segment
|
|
@@ -6521,7 +6521,7 @@ var JsoncModifier = class {
|
|
|
6521
6521
|
});
|
|
6522
6522
|
};
|
|
6523
6523
|
//#endregion
|
|
6524
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
6524
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/internal/bun.js
|
|
6525
6525
|
const DepRecord$2 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6526
6526
|
const BunWorkspaceEntry = effect.Schema.Struct({
|
|
6527
6527
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -6614,7 +6614,7 @@ const toFields$3 = (raw) => effect.Effect.gen(function* () {
|
|
|
6614
6614
|
};
|
|
6615
6615
|
});
|
|
6616
6616
|
//#endregion
|
|
6617
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
6617
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/internal/npm.js
|
|
6618
6618
|
const DepRecord$1 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6619
6619
|
const NpmPackageEntry = effect.Schema.Struct({
|
|
6620
6620
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -6712,7 +6712,7 @@ const toFields$2 = (raw) => effect.Effect.gen(function* () {
|
|
|
6712
6712
|
};
|
|
6713
6713
|
});
|
|
6714
6714
|
//#endregion
|
|
6715
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
6715
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/YamlNode.js
|
|
6716
6716
|
/**
|
|
6717
6717
|
* YAML scalar presentation styles.
|
|
6718
6718
|
*
|
|
@@ -7114,7 +7114,7 @@ function nodeToValue(node, anchors, budget, counting = false) {
|
|
|
7114
7114
|
return null;
|
|
7115
7115
|
}
|
|
7116
7116
|
//#endregion
|
|
7117
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
7117
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/diagnostics.js
|
|
7118
7118
|
/** Error codes emitted by the lexer stage. */
|
|
7119
7119
|
const YAML_LEX_ERROR_CODES = [
|
|
7120
7120
|
"UnexpectedCharacter",
|
|
@@ -7192,7 +7192,7 @@ function isFatalCode(code) {
|
|
|
7192
7192
|
return FATAL_CODES.has(code);
|
|
7193
7193
|
}
|
|
7194
7194
|
//#endregion
|
|
7195
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
7195
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/YamlDiagnostic.js
|
|
7196
7196
|
/**
|
|
7197
7197
|
* Error codes emitted by the lexer stage.
|
|
7198
7198
|
*
|
|
@@ -7313,7 +7313,7 @@ function lineChar(text, offset) {
|
|
|
7313
7313
|
};
|
|
7314
7314
|
}
|
|
7315
7315
|
//#endregion
|
|
7316
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
7316
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/anchors.js
|
|
7317
7317
|
/**
|
|
7318
7318
|
* Check if a pending anchor is being applied to an alias node (invalid in YAML 1.2 §3.2.2).
|
|
7319
7319
|
* Aliases represent references to existing anchored nodes and cannot have their own anchors.
|
|
@@ -7406,7 +7406,7 @@ function collectAnchors(node, anchors) {
|
|
|
7406
7406
|
}
|
|
7407
7407
|
}
|
|
7408
7408
|
//#endregion
|
|
7409
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
7409
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/lexer.js
|
|
7410
7410
|
/**
|
|
7411
7411
|
* Create a new YAML scanner for the given source text.
|
|
7412
7412
|
*
|
|
@@ -8363,7 +8363,7 @@ function lexAll(text) {
|
|
|
8363
8363
|
return tokens;
|
|
8364
8364
|
}
|
|
8365
8365
|
//#endregion
|
|
8366
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
8366
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/cst-parser.js
|
|
8367
8367
|
/**
|
|
8368
8368
|
* Hardening: cap CST nesting so hostile inputs cannot overflow the stack
|
|
8369
8369
|
* while the tree is being BUILT. Set slightly above the composer's
|
|
@@ -9075,7 +9075,7 @@ function parseCSTAll(text) {
|
|
|
9075
9075
|
return parseDocuments(lexAll(text), text);
|
|
9076
9076
|
}
|
|
9077
9077
|
//#endregion
|
|
9078
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
9078
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/state.js
|
|
9079
9079
|
let lineStartsText;
|
|
9080
9080
|
let lineStartsCache = [];
|
|
9081
9081
|
function getLineStarts(text) {
|
|
@@ -9181,7 +9181,7 @@ function exitNesting(state) {
|
|
|
9181
9181
|
state.depth--;
|
|
9182
9182
|
}
|
|
9183
9183
|
//#endregion
|
|
9184
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
9184
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/tags.js
|
|
9185
9185
|
/**
|
|
9186
9186
|
* Resolve a tag shorthand using the document's %TAG directives.
|
|
9187
9187
|
* For example, with `%TAG !! tag:example.com,2000:app/`, the tag `!!int`
|
|
@@ -9267,7 +9267,7 @@ function validateTagHandlesInDocument(docCst, state) {
|
|
|
9267
9267
|
}
|
|
9268
9268
|
}
|
|
9269
9269
|
//#endregion
|
|
9270
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
9270
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/scalars.js
|
|
9271
9271
|
const NULL_RE$1 = /^(?:null|Null|NULL|~)$/;
|
|
9272
9272
|
const TRUE_RE$1 = /^(?:true|True|TRUE)$/;
|
|
9273
9273
|
const FALSE_RE$1 = /^(?:false|False|FALSE)$/;
|
|
@@ -10145,7 +10145,7 @@ function shouldPreserveRaw(rawValue, value) {
|
|
|
10145
10145
|
return false;
|
|
10146
10146
|
}
|
|
10147
10147
|
//#endregion
|
|
10148
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
10148
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/block.js
|
|
10149
10149
|
/**
|
|
10150
10150
|
* Compose a block map from its CST children, with an optional external first key.
|
|
10151
10151
|
*
|
|
@@ -11293,7 +11293,7 @@ function composeFlatBlockMap(children, startIdx, parentCst, state, externalFirst
|
|
|
11293
11293
|
return map;
|
|
11294
11294
|
}
|
|
11295
11295
|
//#endregion
|
|
11296
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
11296
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/flow.js
|
|
11297
11297
|
/**
|
|
11298
11298
|
* Validate that flow collection entries are separated by commas.
|
|
11299
11299
|
*
|
|
@@ -11685,7 +11685,7 @@ function composeFlowSeqInner(cst, state, meta, parentBlockColumn) {
|
|
|
11685
11685
|
return seq;
|
|
11686
11686
|
}
|
|
11687
11687
|
//#endregion
|
|
11688
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
11688
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/document.js
|
|
11689
11689
|
/** The flow-composer dispatch wired into every state this module creates. */
|
|
11690
11690
|
const FLOW = {
|
|
11691
11691
|
composeFlowMap,
|
|
@@ -12351,7 +12351,7 @@ function composeAllDocuments(text, options) {
|
|
|
12351
12351
|
};
|
|
12352
12352
|
}
|
|
12353
12353
|
//#endregion
|
|
12354
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
12354
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/fold.js
|
|
12355
12355
|
/**
|
|
12356
12356
|
* Column-based line folding for a single logical scalar line (YAML 1.2 flow
|
|
12357
12357
|
* folding, §7.3 / §8.2.1). Breaks the content at "safe" single-space
|
|
@@ -12587,7 +12587,7 @@ function renderBlockFolded(s, indent) {
|
|
|
12587
12587
|
return `>${indentIndicator}${chomp}\n${outputLines.join("\n")}`;
|
|
12588
12588
|
}
|
|
12589
12589
|
//#endregion
|
|
12590
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
12590
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/stringifier.js
|
|
12591
12591
|
/**
|
|
12592
12592
|
* Thrown by the stringifier on its failure paths (circular references). The
|
|
12593
12593
|
* facade catches this and materializes the public stringify error.
|
|
@@ -13536,7 +13536,7 @@ function deepEqualValues(a, b) {
|
|
|
13536
13536
|
return false;
|
|
13537
13537
|
}
|
|
13538
13538
|
//#endregion
|
|
13539
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13539
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/internal/documents.js
|
|
13540
13540
|
/**
|
|
13541
13541
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
13542
13542
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -13606,7 +13606,7 @@ const selectSoleDocument = (content) => effect.Effect.gen(function* () {
|
|
|
13606
13606
|
};
|
|
13607
13607
|
});
|
|
13608
13608
|
//#endregion
|
|
13609
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13609
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/internal/pnpm.js
|
|
13610
13610
|
const PnpmImporterDeps = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Struct({
|
|
13611
13611
|
specifier: effect.Schema.String,
|
|
13612
13612
|
version: effect.Schema.String
|
|
@@ -13732,7 +13732,7 @@ const toFields$1 = (raw) => effect.Effect.gen(function* () {
|
|
|
13732
13732
|
};
|
|
13733
13733
|
});
|
|
13734
13734
|
//#endregion
|
|
13735
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13735
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/internal/yarn.js
|
|
13736
13736
|
const YarnLockfileRaw = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
|
|
13737
13737
|
const DepRecord = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
13738
13738
|
const YarnEntry = effect.Schema.Struct({
|
|
@@ -13855,7 +13855,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
13855
13855
|
return Object.fromEntries(Object.entries(deps).map(([name, value]) => [name, value.startsWith("npm:") ? value.slice(4) : value]));
|
|
13856
13856
|
};
|
|
13857
13857
|
//#endregion
|
|
13858
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13858
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/Lockfile.js
|
|
13859
13859
|
const EMPTY_IMPORTERS = [];
|
|
13860
13860
|
/**
|
|
13861
13861
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -14099,7 +14099,7 @@ var Lockfile = class Lockfile extends effect.Schema.Class("Lockfile")({
|
|
|
14099
14099
|
}
|
|
14100
14100
|
};
|
|
14101
14101
|
//#endregion
|
|
14102
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
14102
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.10_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0_baf93f2c33d0504f713f685ac5710e50/node_modules/@effected/lockfiles/LockfileIntegrity.js
|
|
14103
14103
|
/**
|
|
14104
14104
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
14105
14105
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -14215,7 +14215,7 @@ var LockfileIntegrity = class LockfileIntegrity extends effect.Schema.Class("Loc
|
|
|
14215
14215
|
}
|
|
14216
14216
|
};
|
|
14217
14217
|
//#endregion
|
|
14218
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
14218
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Dependency.js
|
|
14219
14219
|
/**
|
|
14220
14220
|
* A resolved dependency entry pairing a package name with its version
|
|
14221
14221
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -14279,7 +14279,7 @@ var Dependency = class extends effect.Schema.Class("Dependency")({
|
|
|
14279
14279
|
}
|
|
14280
14280
|
};
|
|
14281
14281
|
//#endregion
|
|
14282
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
14282
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/DevEngines.js
|
|
14283
14283
|
/**
|
|
14284
14284
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
14285
14285
|
*
|
|
@@ -14317,7 +14317,7 @@ const DevEnginesSchema = effect.Schema.Struct({
|
|
|
14317
14317
|
libc: effect.Schema.optionalKey(DevEngineOrArray)
|
|
14318
14318
|
});
|
|
14319
14319
|
//#endregion
|
|
14320
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
14320
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/licenseIds.js
|
|
14321
14321
|
/** @internal */
|
|
14322
14322
|
const ACTIVE_LICENSE_IDS = [
|
|
14323
14323
|
"0BSD",
|
|
@@ -15050,7 +15050,7 @@ const LICENSE_IDS = new Set(ACTIVE_LICENSE_IDS);
|
|
|
15050
15050
|
/** @internal */
|
|
15051
15051
|
const DEPRECATED_LICENSE_IDS = new Set(DEPRECATED_LICENSE_ID_LIST);
|
|
15052
15052
|
//#endregion
|
|
15053
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15053
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/License.js
|
|
15054
15054
|
/**
|
|
15055
15055
|
* Indicates that a string is not a valid SPDX expression fragment: an
|
|
15056
15056
|
* unrecognized license or exception identifier, or a malformed
|
|
@@ -15219,7 +15219,7 @@ var License = class License extends effect.Schema.Class("License")({
|
|
|
15219
15219
|
}
|
|
15220
15220
|
};
|
|
15221
15221
|
//#endregion
|
|
15222
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15222
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/exceptions.js
|
|
15223
15223
|
/** @internal */
|
|
15224
15224
|
const ACTIVE_EXCEPTION_IDS = [
|
|
15225
15225
|
"389-exception",
|
|
@@ -15296,7 +15296,7 @@ const EXCEPTION_IDS = new Set(ACTIVE_EXCEPTION_IDS);
|
|
|
15296
15296
|
/** @internal */
|
|
15297
15297
|
const DEPRECATED_EXCEPTION_IDS = new Set(DEPRECATED_EXCEPTION_ID_LIST);
|
|
15298
15298
|
//#endregion
|
|
15299
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15299
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/LicenseException.js
|
|
15300
15300
|
/**
|
|
15301
15301
|
* A validated SPDX license-exception identifier: an Effect `Schema.Class` whose
|
|
15302
15302
|
* `id` is a member of the SPDX exception list. The class doubles as its own
|
|
@@ -15416,7 +15416,7 @@ var LicenseException = class LicenseException extends effect.Schema.Class("Licen
|
|
|
15416
15416
|
}
|
|
15417
15417
|
};
|
|
15418
15418
|
//#endregion
|
|
15419
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15419
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/parser.js
|
|
15420
15420
|
const TOKEN_OPEN_PAREN = 0;
|
|
15421
15421
|
const TOKEN_CLOSE_PAREN = 1;
|
|
15422
15422
|
const TOKEN_PLUS = 2;
|
|
@@ -15645,7 +15645,7 @@ function parse$2(input) {
|
|
|
15645
15645
|
return node;
|
|
15646
15646
|
}
|
|
15647
15647
|
//#endregion
|
|
15648
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15648
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/SpdxExpression.js
|
|
15649
15649
|
/**
|
|
15650
15650
|
* Serialize a tagged SPDX AST node — a class instance OR its encoded POJO — to
|
|
15651
15651
|
* the canonical, fully-parenthesized SPDX string. This is the single source of
|
|
@@ -15834,7 +15834,7 @@ effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.Sch
|
|
|
15834
15834
|
encode: (expression) => effect.Effect.succeed(serialize$1(expression))
|
|
15835
15835
|
})));
|
|
15836
15836
|
//#endregion
|
|
15837
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
15837
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/License.js
|
|
15838
15838
|
/**
|
|
15839
15839
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
15840
15840
|
*
|
|
@@ -15869,7 +15869,7 @@ const isValidSpdx = (value) => {
|
|
|
15869
15869
|
*/
|
|
15870
15870
|
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"));
|
|
15871
15871
|
//#endregion
|
|
15872
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
15872
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageManager.js
|
|
15873
15873
|
const PACKAGE_MANAGER_RE = /^([a-z]+)@(\d+\.\d+\.\d+(?:-[a-zA-Z0-9._-]+)?)(?:\+(.+))?$/;
|
|
15874
15874
|
/**
|
|
15875
15875
|
* The `packageManager` field only ever carries corepack's `<algo>.<hex>`
|
|
@@ -15927,7 +15927,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
|
|
|
15927
15927
|
}
|
|
15928
15928
|
};
|
|
15929
15929
|
//#endregion
|
|
15930
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
15930
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageName.js
|
|
15931
15931
|
/**
|
|
15932
15932
|
* Indicates that a string could not be used as a valid npm package name.
|
|
15933
15933
|
*
|
|
@@ -15985,7 +15985,7 @@ const PackageName = Object.assign(effect.Schema.Union([ScopedPackageName, Unscop
|
|
|
15985
15985
|
isScoped
|
|
15986
15986
|
});
|
|
15987
15987
|
//#endregion
|
|
15988
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
15988
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Person.js
|
|
15989
15989
|
const parsePersonString = (input) => {
|
|
15990
15990
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
15991
15991
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -16128,7 +16128,7 @@ var Person = class Person extends effect.Schema.Class("Person")({
|
|
|
16128
16128
|
}
|
|
16129
16129
|
};
|
|
16130
16130
|
//#endregion
|
|
16131
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
16131
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/internal/format.js
|
|
16132
16132
|
const KEY_INDEX = new Map([
|
|
16133
16133
|
"$schema",
|
|
16134
16134
|
"name",
|
|
@@ -16351,7 +16351,7 @@ const renderJson = (raw, options) => {
|
|
|
16351
16351
|
return options.newline ? `${json}\n` : json;
|
|
16352
16352
|
};
|
|
16353
16353
|
//#endregion
|
|
16354
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
16354
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Package.js
|
|
16355
16355
|
const toHashMap = effect.SchemaTransformation.transform({
|
|
16356
16356
|
decode: (record) => effect.HashMap.fromIterable(Object.entries(record)),
|
|
16357
16357
|
encode: (map) => Object.fromEntries(effect.HashMap.toEntries(map))
|
|
@@ -16669,7 +16669,7 @@ var Package = class Package extends effect.Schema.Class("Package")({
|
|
|
16669
16669
|
}
|
|
16670
16670
|
};
|
|
16671
16671
|
//#endregion
|
|
16672
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
16672
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspacePackage.js
|
|
16673
16673
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
16674
16674
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
16675
16675
|
/**
|
|
@@ -16948,7 +16948,7 @@ var WorkspacePackage = class WorkspacePackage extends effect.Schema.Class("Works
|
|
|
16948
16948
|
}
|
|
16949
16949
|
};
|
|
16950
16950
|
//#endregion
|
|
16951
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.3.
|
|
16951
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.3.2_@effected+glob@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/walker/Descend.js
|
|
16952
16952
|
/**
|
|
16953
16953
|
* Typed failure raised by {@link descend}: a directory mid-walk was unreadable
|
|
16954
16954
|
* (under `onUnreadable: "fail"`), or the walk descended past `maxDepth`. Depth
|
|
@@ -17083,7 +17083,7 @@ const descend = effect.Effect.fn("Walker.descend")(function* (pattern, options)
|
|
|
17083
17083
|
return results;
|
|
17084
17084
|
});
|
|
17085
17085
|
//#endregion
|
|
17086
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.3.
|
|
17086
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.3.2_@effected+glob@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/walker/Expand.js
|
|
17087
17087
|
/**
|
|
17088
17088
|
* Typed failure raised by {@link compileAndExpand}: the single error the
|
|
17089
17089
|
* compile+expand recipe fails with, so a caller catches one tag rather than
|
|
@@ -17173,7 +17173,7 @@ const compileAndExpand = effect.Effect.fn("Walker.compileAndExpand")(function* (
|
|
|
17173
17173
|
})));
|
|
17174
17174
|
});
|
|
17175
17175
|
//#endregion
|
|
17176
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.3.
|
|
17176
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.3.2_@effected+glob@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/walker/Walker.js
|
|
17177
17177
|
/**
|
|
17178
17178
|
* Ascend from `start` toward the filesystem root, yielding each directory,
|
|
17179
17179
|
* nearest first.
|
|
@@ -17274,7 +17274,7 @@ const Walker$1 = {
|
|
|
17274
17274
|
findRoot: findRoot$1
|
|
17275
17275
|
};
|
|
17276
17276
|
//#endregion
|
|
17277
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17277
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceRoot.js
|
|
17278
17278
|
/**
|
|
17279
17279
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
17280
17280
|
*
|
|
@@ -17461,7 +17461,7 @@ var WorkspaceRoot = class WorkspaceRoot extends effect.Context.Service()("@effec
|
|
|
17461
17461
|
static layerTest = (root) => effect.Layer.effect(WorkspaceRoot, WorkspaceRoot.makeTest(root)).pipe(effect.Layer.provide(effect.Path.layer));
|
|
17462
17462
|
};
|
|
17463
17463
|
//#endregion
|
|
17464
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17464
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/limits.js
|
|
17465
17465
|
/**
|
|
17466
17466
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
17467
17467
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -17479,7 +17479,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
17479
17479
|
*/
|
|
17480
17480
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
17481
17481
|
//#endregion
|
|
17482
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17482
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/traverse.js
|
|
17483
17483
|
/** Directory names never descended into. */
|
|
17484
17484
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
17485
17485
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -17569,7 +17569,7 @@ var Traversal = class {
|
|
|
17569
17569
|
}
|
|
17570
17570
|
};
|
|
17571
17571
|
//#endregion
|
|
17572
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17572
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/enumerate.js
|
|
17573
17573
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
17574
17574
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
17575
17575
|
/**
|
|
@@ -17639,7 +17639,7 @@ const enumerate = (root, globs, options) => effect.Effect.gen(function* () {
|
|
|
17639
17639
|
return results;
|
|
17640
17640
|
});
|
|
17641
17641
|
//#endregion
|
|
17642
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17642
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/patterns.js
|
|
17643
17643
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
17644
17644
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
17645
17645
|
const pnpmPatternsOf = (document) => {
|
|
@@ -17696,7 +17696,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
|
|
|
17696
17696
|
return manifestPatternsOf(manifest);
|
|
17697
17697
|
});
|
|
17698
17698
|
//#endregion
|
|
17699
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17699
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceDiscovery.js
|
|
17700
17700
|
/**
|
|
17701
17701
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
17702
17702
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -18130,7 +18130,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends effect.Context.Service
|
|
|
18130
18130
|
};
|
|
18131
18131
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
18132
18132
|
//#endregion
|
|
18133
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18133
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/DependencyGraph.js
|
|
18134
18134
|
/**
|
|
18135
18135
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
18136
18136
|
* because it contains a cycle.
|
|
@@ -18365,7 +18365,7 @@ const kahn = (edges) => {
|
|
|
18365
18365
|
};
|
|
18366
18366
|
};
|
|
18367
18367
|
//#endregion
|
|
18368
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
18368
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.2_effect@4.0.0-beta.101/node_modules/@effected/git/GitCommand.js
|
|
18369
18369
|
/**
|
|
18370
18370
|
* Builds a `git` `ChildProcess.StandardCommand` with the argv this package
|
|
18371
18371
|
* classifies against.
|
|
@@ -18784,7 +18784,7 @@ const GitCommand = {
|
|
|
18784
18784
|
status
|
|
18785
18785
|
};
|
|
18786
18786
|
//#endregion
|
|
18787
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
18787
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.2_effect@4.0.0-beta.101/node_modules/@effected/git/internal/run.js
|
|
18788
18788
|
/**
|
|
18789
18789
|
* Spawns `command` and collects its stdout, stderr, and exit code as a single
|
|
18790
18790
|
* triple.
|
|
@@ -18811,7 +18811,7 @@ const runCollected = (command) => effect.Effect.scoped(effect.Effect.gen(functio
|
|
|
18811
18811
|
};
|
|
18812
18812
|
}));
|
|
18813
18813
|
//#endregion
|
|
18814
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
18814
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.2_effect@4.0.0-beta.101/node_modules/@effected/git/Git.js
|
|
18815
18815
|
/** git's own ceiling: a run that has not answered in 30s is not going to. */
|
|
18816
18816
|
const GIT_TIMEOUT = effect.Duration.seconds(30);
|
|
18817
18817
|
/**
|
|
@@ -19728,7 +19728,7 @@ var Git = class extends effect.Context.Service()("@effected/git/Git") {
|
|
|
19728
19728
|
}));
|
|
19729
19729
|
};
|
|
19730
19730
|
//#endregion
|
|
19731
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19731
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/ChangeDetector.js
|
|
19732
19732
|
/**
|
|
19733
19733
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
19734
19734
|
*
|
|
@@ -19858,7 +19858,7 @@ var ChangeDetector = class ChangeDetector extends effect.Context.Service()("@eff
|
|
|
19858
19858
|
};
|
|
19859
19859
|
`${process.platform}${process.arch}${process.version.split(".")[0].substring(1)}`;
|
|
19860
19860
|
//#endregion
|
|
19861
|
-
//#region ../../node_modules/.pnpm/@pnpm+error@1100.0
|
|
19861
|
+
//#region ../../node_modules/.pnpm/@pnpm+error@1100.1.0/node_modules/@pnpm/error/lib/index.js
|
|
19862
19862
|
var PnpmError = class extends Error {
|
|
19863
19863
|
code;
|
|
19864
19864
|
hint;
|
|
@@ -19873,7 +19873,7 @@ var PnpmError = class extends Error {
|
|
|
19873
19873
|
}
|
|
19874
19874
|
};
|
|
19875
19875
|
//#endregion
|
|
19876
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
19876
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.3/node_modules/@pnpm/catalogs.config/lib/getCatalogsFromWorkspaceManifest.js
|
|
19877
19877
|
function getCatalogsFromWorkspaceManifest(workspaceManifest) {
|
|
19878
19878
|
if (workspaceManifest == null) return {};
|
|
19879
19879
|
checkDefaultCatalogIsDefinedOnce(workspaceManifest);
|
|
@@ -19886,7 +19886,7 @@ function checkDefaultCatalogIsDefinedOnce(manifest) {
|
|
|
19886
19886
|
if (manifest.catalog != null && manifest.catalogs?.default != null) throw new PnpmError("INVALID_CATALOGS_CONFIGURATION", "The 'default' catalog was defined multiple times. Use the 'catalog' field or 'catalogs.default', but not both.");
|
|
19887
19887
|
}
|
|
19888
19888
|
//#endregion
|
|
19889
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
19889
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.3/node_modules/@pnpm/catalogs.config/lib/mergeCatalogs.js
|
|
19890
19890
|
/**
|
|
19891
19891
|
* Deep-merges catalog definitions, later arguments taking precedence over
|
|
19892
19892
|
* earlier ones at the individual entry level. Use it to fold the catalog
|
|
@@ -19924,7 +19924,7 @@ function mergeCatalogs(...catalogsList) {
|
|
|
19924
19924
|
return result;
|
|
19925
19925
|
}
|
|
19926
19926
|
//#endregion
|
|
19927
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.protocol-parser@1100.0.
|
|
19927
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.protocol-parser@1100.0.1/node_modules/@pnpm/catalogs.protocol-parser/lib/parseCatalogProtocol.js
|
|
19928
19928
|
const CATALOG_PROTOCOL = "catalog:";
|
|
19929
19929
|
/**
|
|
19930
19930
|
* Parse a package.json dependency specifier using the catalog: protocol.
|
|
@@ -19936,7 +19936,7 @@ function parseCatalogProtocol(bareSpecifier) {
|
|
|
19936
19936
|
return catalogNameRaw === "" ? "default" : catalogNameRaw;
|
|
19937
19937
|
}
|
|
19938
19938
|
//#endregion
|
|
19939
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.resolver@1100.0.
|
|
19939
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.resolver@1100.0.1/node_modules/@pnpm/catalogs.resolver/lib/matchCatalogResolveResult.js
|
|
19940
19940
|
function matchCatalogResolveResult(result, matcher) {
|
|
19941
19941
|
switch (result.type) {
|
|
19942
19942
|
case "found": return matcher.found(result);
|
|
@@ -19945,7 +19945,7 @@ function matchCatalogResolveResult(result, matcher) {
|
|
|
19945
19945
|
}
|
|
19946
19946
|
}
|
|
19947
19947
|
//#endregion
|
|
19948
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.resolver@1100.0.
|
|
19948
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.resolver@1100.0.1/node_modules/@pnpm/catalogs.resolver/lib/resolveFromCatalog.js
|
|
19949
19949
|
function resolveFromCatalog(catalogs, wantedDependency) {
|
|
19950
19950
|
const catalogName = parseCatalogProtocol(wantedDependency.bareSpecifier);
|
|
19951
19951
|
if (catalogName == null) return { type: "unused" };
|
|
@@ -19980,7 +19980,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
19980
19980
|
};
|
|
19981
19981
|
}
|
|
19982
19982
|
//#endregion
|
|
19983
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19983
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/catalogs.js
|
|
19984
19984
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
19985
19985
|
const inlineCatalogs = (manifest) => {
|
|
19986
19986
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -20044,7 +20044,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
20044
20044
|
});
|
|
20045
20045
|
};
|
|
20046
20046
|
//#endregion
|
|
20047
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20047
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/ConfigDependencyHooks.js
|
|
20048
20048
|
/** Whether `value` is a non-null, non-array object. */
|
|
20049
20049
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20050
20050
|
/**
|
|
@@ -20230,7 +20230,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
|
|
|
20230
20230
|
}) });
|
|
20231
20231
|
};
|
|
20232
20232
|
//#endregion
|
|
20233
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20233
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/PackageManagerName.js
|
|
20234
20234
|
/**
|
|
20235
20235
|
* The four package managers this package understands.
|
|
20236
20236
|
*
|
|
@@ -20472,7 +20472,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
20472
20472
|
static layer = effect.Layer.effect(PackageManagerDetector, PackageManagerDetector.make);
|
|
20473
20473
|
};
|
|
20474
20474
|
//#endregion
|
|
20475
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20475
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/LockfileReader.js
|
|
20476
20476
|
/**
|
|
20477
20477
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
20478
20478
|
*
|
|
@@ -20582,7 +20582,7 @@ var LockfileReader = class LockfileReader extends effect.Context.Service()("@eff
|
|
|
20582
20582
|
static layer = (options) => effect.Layer.effect(LockfileReader, LockfileReader.make(options));
|
|
20583
20583
|
};
|
|
20584
20584
|
//#endregion
|
|
20585
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20585
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/Publishability.js
|
|
20586
20586
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
20587
20587
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
20588
20588
|
/**
|
|
@@ -20682,7 +20682,93 @@ var PublishabilityDetector = class PublishabilityDetector extends effect.Context
|
|
|
20682
20682
|
}) });
|
|
20683
20683
|
};
|
|
20684
20684
|
//#endregion
|
|
20685
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20685
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/importerVersions.js
|
|
20686
|
+
/**
|
|
20687
|
+
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
20688
|
+
*
|
|
20689
|
+
* pnpm records an importer version as the resolved version followed by the peer
|
|
20690
|
+
* context it was resolved under — `4.0.0-beta.101(effect@4.0.0-beta.101)(ioredis@5.11.1(supports-color@8.1.1))`.
|
|
20691
|
+
* `@effected/lockfiles` stores that string verbatim (its `packages:` key parser
|
|
20692
|
+
* strips the suffix; the importer entries deliberately keep it), so the raw
|
|
20693
|
+
* value must never reach a consumer's dependency table — it would render the
|
|
20694
|
+
* whole parenthesized chain as the "version" a dependency moved to.
|
|
20695
|
+
*
|
|
20696
|
+
* Everything from the first `(` is dropped; a version with no suffix passes
|
|
20697
|
+
* through untouched.
|
|
20698
|
+
*/
|
|
20699
|
+
const stripPeerSuffix = (version) => {
|
|
20700
|
+
const paren = version.indexOf("(");
|
|
20701
|
+
return paren === -1 ? version : version.slice(0, paren);
|
|
20702
|
+
};
|
|
20703
|
+
/**
|
|
20704
|
+
* Whether a recorded importer version is a concrete version usable as a
|
|
20705
|
+
* resolution answer.
|
|
20706
|
+
*
|
|
20707
|
+
* A `link:` / `file:` entry records a filesystem edge rather than a version, and
|
|
20708
|
+
* an empty string is pnpm's "specifier only, nothing installed" marker. Both
|
|
20709
|
+
* would be worse than no answer at all: the fallback exists to report a concrete
|
|
20710
|
+
* version movement, and reporting `link:../foo` as a version is noise a
|
|
20711
|
+
* changeset would carry into release notes.
|
|
20712
|
+
*/
|
|
20713
|
+
const isConcreteVersion = (version) => version.length > 0 && !version.startsWith("link:") && !version.startsWith("file:");
|
|
20714
|
+
/**
|
|
20715
|
+
* Build the importer-path → dependency-name → version index a snapshot uses to
|
|
20716
|
+
* answer `catalog:` specifiers its catalog set cannot resolve.
|
|
20717
|
+
*
|
|
20718
|
+
* @remarks
|
|
20719
|
+
* Keyed by **name only** within each importer, deliberately across every
|
|
20720
|
+
* dependency field. The bug this fixes is a peer declared `catalog:effect:peers`
|
|
20721
|
+
* whose importer records no `peerDependencies` entry at all — pnpm writes peer
|
|
20722
|
+
* declarations into the importer block only when they are also installed, so the
|
|
20723
|
+
* concrete version lives on the package's `devDependencies` row for the same
|
|
20724
|
+
* name. Joining by name across fields is what finds it; joining by field, or by
|
|
20725
|
+
* matching the recorded specifier, would not.
|
|
20726
|
+
*
|
|
20727
|
+
* Only pnpm populates importer versions; bun and npm record resolved versions on
|
|
20728
|
+
* their package entries instead, so those formats yield an empty index and the
|
|
20729
|
+
* fallback is inert for them.
|
|
20730
|
+
*/
|
|
20731
|
+
const importerVersionsOf = (lockfile) => {
|
|
20732
|
+
const index = Object.create(null);
|
|
20733
|
+
for (const importer of lockfile.importers) {
|
|
20734
|
+
const versions = Object.create(null);
|
|
20735
|
+
for (const dependency of importer.dependencies) {
|
|
20736
|
+
const recorded = dependency.version;
|
|
20737
|
+
if (recorded === void 0) continue;
|
|
20738
|
+
const version = stripPeerSuffix(recorded);
|
|
20739
|
+
if (!isConcreteVersion(version)) continue;
|
|
20740
|
+
versions[dependency.name] ??= version;
|
|
20741
|
+
}
|
|
20742
|
+
index[importer.path] = versions;
|
|
20743
|
+
}
|
|
20744
|
+
return index;
|
|
20745
|
+
};
|
|
20746
|
+
/**
|
|
20747
|
+
* The version every importer agrees `dependency` resolved to, or `undefined`
|
|
20748
|
+
* when they disagree or none record it.
|
|
20749
|
+
*
|
|
20750
|
+
* @remarks
|
|
20751
|
+
* The unambiguity rule is what makes a workspace-wide answer safe from a
|
|
20752
|
+
* snapshot method that receives no importer context. Two packages in one
|
|
20753
|
+
* monorepo may legitimately hold different versions of the same dependency; in
|
|
20754
|
+
* that case there is no single correct answer, so this yields nothing and the
|
|
20755
|
+
* caller keeps today's behavior (no row) rather than inventing a wrong one.
|
|
20756
|
+
*/
|
|
20757
|
+
const unanimousVersionOf = (index, dependency) => {
|
|
20758
|
+
let agreed;
|
|
20759
|
+
for (const versions of Object.values(index)) {
|
|
20760
|
+
const version = versions[dependency];
|
|
20761
|
+
if (version === void 0) continue;
|
|
20762
|
+
if (agreed === void 0) {
|
|
20763
|
+
agreed = version;
|
|
20764
|
+
continue;
|
|
20765
|
+
}
|
|
20766
|
+
if (agreed !== version) return void 0;
|
|
20767
|
+
}
|
|
20768
|
+
return agreed;
|
|
20769
|
+
};
|
|
20770
|
+
//#endregion
|
|
20771
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceCatalogs.js
|
|
20686
20772
|
/**
|
|
20687
20773
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
20688
20774
|
* resolution semantic in the package.
|
|
@@ -21001,7 +21087,15 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21001
21087
|
}));
|
|
21002
21088
|
const assemble = effect.Effect.gen(function* () {
|
|
21003
21089
|
const root = yield* effect.Effect.suspend(() => roots.find(options?.cwd ?? process.cwd()));
|
|
21004
|
-
const
|
|
21090
|
+
const lockfileOutputs = yield* lockfiles.read().pipe(effect.Effect.map((lockfile) => ({
|
|
21091
|
+
catalogs: CatalogSet.fromLockfile(lockfile),
|
|
21092
|
+
importerVersions: importerVersionsOf(lockfile)
|
|
21093
|
+
})), effect.Effect.catch((_failure) => effect.Effect.succeed({
|
|
21094
|
+
catalogs: CatalogSet.empty(),
|
|
21095
|
+
importerVersions: {}
|
|
21096
|
+
})));
|
|
21097
|
+
const fromLockfile = lockfileOutputs.catalogs;
|
|
21098
|
+
const importerVersions = lockfileOutputs.importerVersions;
|
|
21005
21099
|
const workspaceYaml = path.join(root, "pnpm-workspace.yaml");
|
|
21006
21100
|
const hasPnpmWorkspace = yield* probeExists(workspaceYaml);
|
|
21007
21101
|
let inline;
|
|
@@ -21029,7 +21123,8 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21029
21123
|
const manifestPath = path.join(root, "package.json");
|
|
21030
21124
|
if (!(yield* probeExists(manifestPath))) return {
|
|
21031
21125
|
catalogs: fromLockfile,
|
|
21032
|
-
releaseAgeGate: ReleaseAgeGate.combine()
|
|
21126
|
+
releaseAgeGate: ReleaseAgeGate.combine(),
|
|
21127
|
+
importerVersions
|
|
21033
21128
|
};
|
|
21034
21129
|
const text = yield* fs.readFileString(manifestPath).pipe(effect.Effect.mapError((cause) => new CatalogAssemblyError({
|
|
21035
21130
|
source: "manifest",
|
|
@@ -21048,7 +21143,8 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21048
21143
|
}));
|
|
21049
21144
|
return {
|
|
21050
21145
|
catalogs: assembled,
|
|
21051
|
-
releaseAgeGate
|
|
21146
|
+
releaseAgeGate,
|
|
21147
|
+
importerVersions
|
|
21052
21148
|
};
|
|
21053
21149
|
});
|
|
21054
21150
|
const [resolveOnce, invalidate] = yield* effect.Effect.cachedInvalidateWithTTL(assemble, effect.Duration.infinity);
|
|
@@ -21062,6 +21158,9 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21062
21158
|
}),
|
|
21063
21159
|
releaseAgeGate: effect.Effect.fn("WorkspaceCatalogs.releaseAgeGate")(function* () {
|
|
21064
21160
|
return (yield* memo).releaseAgeGate;
|
|
21161
|
+
}),
|
|
21162
|
+
importerVersions: effect.Effect.fn("WorkspaceCatalogs.importerVersions")(function* () {
|
|
21163
|
+
return (yield* memo).importerVersions;
|
|
21065
21164
|
})
|
|
21066
21165
|
};
|
|
21067
21166
|
});
|
|
@@ -21112,7 +21211,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21112
21211
|
}));
|
|
21113
21212
|
};
|
|
21114
21213
|
//#endregion
|
|
21115
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
21214
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceStateSnapshot.js
|
|
21116
21215
|
const EMPTY = Object.freeze(Object.create(null));
|
|
21117
21216
|
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)));
|
|
21118
21217
|
/**
|
|
@@ -21196,7 +21295,19 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
21196
21295
|
/** Every workspace package captured at this moment. */
|
|
21197
21296
|
packages: effect.Schema.Array(PackageStateSnapshot),
|
|
21198
21297
|
/** The catalog set assembled at this moment. */
|
|
21199
|
-
catalogs: CatalogSet
|
|
21298
|
+
catalogs: CatalogSet,
|
|
21299
|
+
/**
|
|
21300
|
+
* Each importer's dependency-name → resolved-version map, as the manager's
|
|
21301
|
+
* lockfile recorded it at this moment.
|
|
21302
|
+
*
|
|
21303
|
+
* @remarks
|
|
21304
|
+
* Defaults to `{}`, so a `WorkspaceStateSnapshot` serialized before this field
|
|
21305
|
+
* existed still decodes — and an empty index simply makes the `catalog:`
|
|
21306
|
+
* fallback in {@link WorkspaceStateSnapshot.resolve} inert, which is exactly
|
|
21307
|
+
* the behavior those older values were captured under. Only pnpm records
|
|
21308
|
+
* importer versions; bun and npm yield an empty index.
|
|
21309
|
+
*/
|
|
21310
|
+
importerVersions: effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Record(effect.Schema.String, effect.Schema.String)))
|
|
21200
21311
|
}) {
|
|
21201
21312
|
#versionIndex;
|
|
21202
21313
|
#packageIndex;
|
|
@@ -21231,16 +21342,62 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
21231
21342
|
* unparseable string — is `Option.none()`, because there is no indirection to
|
|
21232
21343
|
* resolve. Total.
|
|
21233
21344
|
*
|
|
21345
|
+
* A `catalog:` specifier the catalog set cannot resolve falls back to this
|
|
21346
|
+
* snapshot's `importerVersions` — but only to a version
|
|
21347
|
+
* **every** importer recording that dependency agrees on. A catalog injected
|
|
21348
|
+
* by a config-dependency pnpmfile hook appears in no committed catalog source,
|
|
21349
|
+
* so without this fallback both sides of a before/after diff resolve it to the
|
|
21350
|
+
* same raw string and a real version movement produces no row. When importers
|
|
21351
|
+
* disagree there is no single correct answer, so this stays `Option.none()`
|
|
21352
|
+
* rather than inventing one; {@link WorkspaceStateSnapshot.resolveIn} answers
|
|
21353
|
+
* precisely for callers that know which importer is asking.
|
|
21354
|
+
*
|
|
21234
21355
|
* @param dependency - The dependency's package name (what `workspace:` /
|
|
21235
21356
|
* `catalog:` resolve for).
|
|
21236
21357
|
* @param specifier - The raw specifier string.
|
|
21237
21358
|
*/
|
|
21238
21359
|
resolve(dependency, specifier) {
|
|
21360
|
+
return this.#resolveWith(dependency, specifier, () => effect.Option.fromUndefinedOr(unanimousVersionOf(this.importerVersions ?? {}, dependency)));
|
|
21361
|
+
}
|
|
21362
|
+
/**
|
|
21363
|
+
* The concrete range or version a specifier resolved to AS OF this snapshot,
|
|
21364
|
+
* scoped to the importer that declared it.
|
|
21365
|
+
*
|
|
21366
|
+
* @remarks
|
|
21367
|
+
* Identical to {@link WorkspaceStateSnapshot.resolve} except in how an
|
|
21368
|
+
* unresolvable `catalog:` specifier falls back: this consults **only**
|
|
21369
|
+
* `importerPath`'s own recorded versions, so a monorepo whose packages hold
|
|
21370
|
+
* different versions of one dependency still gets an exact answer where
|
|
21371
|
+
* `resolve` must abstain. Prefer this whenever the caller knows the importer —
|
|
21372
|
+
* a consumer iterating `packages` has `relativePath` in hand, which is the
|
|
21373
|
+
* importer key (`"."` for the root package).
|
|
21374
|
+
*
|
|
21375
|
+
* An unknown `importerPath`, or one recording nothing for `dependency`, is
|
|
21376
|
+
* `Option.none()`. Total.
|
|
21377
|
+
*
|
|
21378
|
+
* @param importerPath - The importer's path relative to the workspace root,
|
|
21379
|
+
* `"."` for the root package — `PackageStateSnapshot.relativePath`.
|
|
21380
|
+
* @param dependency - The dependency's package name.
|
|
21381
|
+
* @param specifier - The raw specifier string.
|
|
21382
|
+
*/
|
|
21383
|
+
resolveIn(importerPath, dependency, specifier) {
|
|
21384
|
+
return this.#resolveWith(dependency, specifier, () => effect.Option.fromUndefinedOr(this.importerVersions?.[importerPath]?.[dependency]));
|
|
21385
|
+
}
|
|
21386
|
+
/**
|
|
21387
|
+
* The shared resolution path: classify, answer from the captured state, and
|
|
21388
|
+
* consult `onUnresolvedCatalog` only for a `catalog:` specifier the catalog set
|
|
21389
|
+
* could not answer. A plain range is already its own answer and must keep
|
|
21390
|
+
* resolving to `Option.none()` so the caller falls back to the raw string.
|
|
21391
|
+
*/
|
|
21392
|
+
#resolveWith(dependency, specifier, onUnresolvedCatalog) {
|
|
21239
21393
|
const exit = effect.Schema.decodeUnknownExit(DependencySpecifier.FromString)(specifier);
|
|
21240
21394
|
if (!effect.Exit.isSuccess(exit)) return effect.Option.none();
|
|
21241
21395
|
const classified = exit.value;
|
|
21242
21396
|
switch (classified._tag) {
|
|
21243
|
-
case "catalog":
|
|
21397
|
+
case "catalog": {
|
|
21398
|
+
const fromCatalogs = this.catalogs.rangeOf(dependency, classified.name);
|
|
21399
|
+
return effect.Option.isSome(fromCatalogs) ? fromCatalogs : onUnresolvedCatalog();
|
|
21400
|
+
}
|
|
21244
21401
|
case "workspace": return effect.Option.fromUndefinedOr(this.#versions().get(dependency));
|
|
21245
21402
|
default: return effect.Option.none();
|
|
21246
21403
|
}
|
|
@@ -21277,7 +21434,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
21277
21434
|
}
|
|
21278
21435
|
};
|
|
21279
21436
|
//#endregion
|
|
21280
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
21437
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceSnapshots.js
|
|
21281
21438
|
/** Whether `value` is a non-null, non-array object. */
|
|
21282
21439
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21283
21440
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -21331,6 +21488,11 @@ const bunInlineCatalogs = (manifest) => {
|
|
|
21331
21488
|
catalogs: workspaces.catalogs
|
|
21332
21489
|
});
|
|
21333
21490
|
};
|
|
21491
|
+
/** The contribution of an absent or malformed lockfile: nothing, on both counts. */
|
|
21492
|
+
const EMPTY_LOCKFILE_RECORD = {
|
|
21493
|
+
catalogs: CatalogSet.empty(),
|
|
21494
|
+
importerVersions: {}
|
|
21495
|
+
};
|
|
21334
21496
|
/**
|
|
21335
21497
|
* Reads workspace state at a git ref with no checkout, and the live worktree.
|
|
21336
21498
|
*
|
|
@@ -21363,10 +21525,17 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21363
21525
|
const roots = yield* WorkspaceRoot;
|
|
21364
21526
|
const discovery = yield* WorkspaceDiscovery;
|
|
21365
21527
|
const catalogsService = yield* WorkspaceCatalogs;
|
|
21366
|
-
/**
|
|
21367
|
-
|
|
21368
|
-
|
|
21369
|
-
|
|
21528
|
+
/**
|
|
21529
|
+
* What a manager's lockfile records at the ref: its catalog set and its
|
|
21530
|
+
* importer versions, from ONE parse. Empty on both counts when the
|
|
21531
|
+
* lockfile is absent or malformed.
|
|
21532
|
+
*/
|
|
21533
|
+
const lockfileRecord = (root, ref, format) => git.show(root, ref, `./${filenameFor(format)}`).pipe(effect.Effect.flatMap((content) => effect.Option.match(content, {
|
|
21534
|
+
onNone: () => effect.Effect.succeed(EMPTY_LOCKFILE_RECORD),
|
|
21535
|
+
onSome: (text) => Lockfile.parse(text, { format }).pipe(effect.Effect.map((lockfile) => ({
|
|
21536
|
+
catalogs: CatalogSet.fromLockfile(lockfile),
|
|
21537
|
+
importerVersions: importerVersionsOf(lockfile)
|
|
21538
|
+
})), effect.Effect.catch(() => effect.Effect.succeed(EMPTY_LOCKFILE_RECORD)))
|
|
21370
21539
|
})));
|
|
21371
21540
|
const computeAt = (root, ref) => effect.Effect.gen(function* () {
|
|
21372
21541
|
const pnpmWorkspaceText = yield* git.show(root, ref, "./pnpm-workspace.yaml");
|
|
@@ -21377,7 +21546,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21377
21546
|
});
|
|
21378
21547
|
let patterns;
|
|
21379
21548
|
let inline;
|
|
21380
|
-
let
|
|
21549
|
+
let recorded;
|
|
21381
21550
|
if (effect.Option.isSome(pnpmWorkspaceText)) {
|
|
21382
21551
|
const pnpmPatterns = pnpmPatternsOf(yield* Yaml.parse(pnpmWorkspaceText.value).pipe(effect.Effect.mapError((cause) => new CatalogAssemblyError({
|
|
21383
21552
|
source: "manifest",
|
|
@@ -21386,13 +21555,13 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21386
21555
|
}))));
|
|
21387
21556
|
patterns = pnpmPatterns.length > 0 ? pnpmPatterns : manifestPatternsOf(rootManifest);
|
|
21388
21557
|
inline = yield* CatalogSet.fromWorkspaceYaml(pnpmWorkspaceText.value);
|
|
21389
|
-
|
|
21558
|
+
recorded = yield* lockfileRecord(root, ref, "pnpm");
|
|
21390
21559
|
} else {
|
|
21391
21560
|
patterns = manifestPatternsOf(rootManifest);
|
|
21392
21561
|
inline = bunInlineCatalogs(rootManifest);
|
|
21393
|
-
|
|
21562
|
+
recorded = yield* lockfileRecord(root, ref, "bun");
|
|
21394
21563
|
}
|
|
21395
|
-
const catalogs = CatalogSet.merge(
|
|
21564
|
+
const catalogs = CatalogSet.merge(recorded.catalogs, inline);
|
|
21396
21565
|
const globs = yield* GlobSet.compile(patterns).pipe(effect.Effect.mapError((error) => new CatalogAssemblyError({
|
|
21397
21566
|
source: "manifest",
|
|
21398
21567
|
path: error.pattern,
|
|
@@ -21419,7 +21588,8 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21419
21588
|
for (const member of members) if (effect.Option.isSome(member)) packages.push(member.value);
|
|
21420
21589
|
return WorkspaceStateSnapshot.make({
|
|
21421
21590
|
packages,
|
|
21422
|
-
catalogs
|
|
21591
|
+
catalogs,
|
|
21592
|
+
importerVersions: recorded.importerVersions
|
|
21423
21593
|
});
|
|
21424
21594
|
});
|
|
21425
21595
|
const atCaches = /* @__PURE__ */ new Map();
|
|
@@ -21443,6 +21613,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21443
21613
|
worktree: effect.Effect.fn("WorkspaceSnapshots.worktree")(function* () {
|
|
21444
21614
|
const packages = yield* discovery.listPackages();
|
|
21445
21615
|
const catalogs = yield* catalogsService.set();
|
|
21616
|
+
const importerVersions = yield* catalogsService.importerVersions();
|
|
21446
21617
|
const snapshotPackages = packages.map((pkg) => PackageStateSnapshot.make({
|
|
21447
21618
|
name: pkg.name,
|
|
21448
21619
|
version: pkg.version,
|
|
@@ -21454,7 +21625,8 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21454
21625
|
}));
|
|
21455
21626
|
return WorkspaceStateSnapshot.make({
|
|
21456
21627
|
packages: snapshotPackages,
|
|
21457
|
-
catalogs
|
|
21628
|
+
catalogs,
|
|
21629
|
+
importerVersions
|
|
21458
21630
|
});
|
|
21459
21631
|
})
|
|
21460
21632
|
};
|
|
@@ -21469,7 +21641,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21469
21641
|
static layer = (options) => effect.Layer.effect(WorkspaceSnapshots, WorkspaceSnapshots.make(options));
|
|
21470
21642
|
};
|
|
21471
21643
|
//#endregion
|
|
21472
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
21644
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.7.0_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/Workspaces.js
|
|
21473
21645
|
/**
|
|
21474
21646
|
* Every service that needs only a filesystem: root, package-manager detection,
|
|
21475
21647
|
* discovery, lockfile reading, catalogs and publishability.
|
|
@@ -43160,6 +43332,80 @@ function isUint8Array(value) {
|
|
|
43160
43332
|
//#endregion
|
|
43161
43333
|
//#region ../silk-effects/dist/dev/pkg/changesets/utils/remark-pipeline.js
|
|
43162
43334
|
/**
|
|
43335
|
+
* Marker set on the `data` of a text node whose value must be written to
|
|
43336
|
+
* markdown verbatim rather than escaped.
|
|
43337
|
+
*
|
|
43338
|
+
* @remarks
|
|
43339
|
+
* `remark-stringify` escapes any character that could open a markdown
|
|
43340
|
+
* construct. Inside a dependency table that is always wrong: with
|
|
43341
|
+
* `remark-gfm` enabled `~` is the strikethrough delimiter, so the specifier
|
|
43342
|
+
* `~0.2.1` is written as `\~0.2.1`, and `_` in a package name becomes `\_`.
|
|
43343
|
+
* The corruption compounds on every re-serialization, and dependency-table
|
|
43344
|
+
* cells round-trip through consolidation and PR-body reconstruction.
|
|
43345
|
+
*
|
|
43346
|
+
* The marker is deliberately narrow. It is set only by the dependency-table
|
|
43347
|
+
* cell builder, whose cell vocabulary is closed — package name, dependency
|
|
43348
|
+
* type, action, version specifier, and the em-dash sentinel — and none of
|
|
43349
|
+
* those can legitimately carry markdown. Prose elsewhere in a changeset keeps
|
|
43350
|
+
* the default escaping.
|
|
43351
|
+
*
|
|
43352
|
+
* @internal
|
|
43353
|
+
*/
|
|
43354
|
+
const LITERAL_TEXT_MARKER = "silkLiteralText";
|
|
43355
|
+
/**
|
|
43356
|
+
* Mark a text node so {@link createRemarkProcessor} writes it verbatim.
|
|
43357
|
+
*
|
|
43358
|
+
* @param value - The literal cell text
|
|
43359
|
+
* @returns An MDAST `Text` node carrying the literal marker
|
|
43360
|
+
*
|
|
43361
|
+
* @internal
|
|
43362
|
+
*/
|
|
43363
|
+
function literalText(value) {
|
|
43364
|
+
return {
|
|
43365
|
+
type: "text",
|
|
43366
|
+
value,
|
|
43367
|
+
data: { [LITERAL_TEXT_MARKER]: true }
|
|
43368
|
+
};
|
|
43369
|
+
}
|
|
43370
|
+
/**
|
|
43371
|
+
* Whether a text node was marked by {@link literalText}.
|
|
43372
|
+
*
|
|
43373
|
+
* @internal
|
|
43374
|
+
*/
|
|
43375
|
+
function isLiteralText(node) {
|
|
43376
|
+
return node.data?.[LITERAL_TEXT_MARKER] === true;
|
|
43377
|
+
}
|
|
43378
|
+
/**
|
|
43379
|
+
* Escape the two characters that would otherwise corrupt the table grid.
|
|
43380
|
+
*
|
|
43381
|
+
* @remarks
|
|
43382
|
+
* A `|` would close the cell early and a `\` would be read as an escape
|
|
43383
|
+
* introducer, so both are escaped to keep the written cell parseable back to
|
|
43384
|
+
* its exact input. Every other character is emitted as-is. Because parsing
|
|
43385
|
+
* consumes the backslash, a value that already carries a legacy `\~` from the
|
|
43386
|
+
* old escaping path re-parses to its clean form rather than accumulating
|
|
43387
|
+
* another layer.
|
|
43388
|
+
*
|
|
43389
|
+
* @internal
|
|
43390
|
+
*/
|
|
43391
|
+
function escapeCellLiteral(value) {
|
|
43392
|
+
return value.replace(/[\\|]/g, "\\$&");
|
|
43393
|
+
}
|
|
43394
|
+
/**
|
|
43395
|
+
* `mdast-util-to-markdown` handler overrides used by the shared processor.
|
|
43396
|
+
*
|
|
43397
|
+
* @remarks
|
|
43398
|
+
* Replaces the default `text` handler — which is `state.safe(node.value, info)`
|
|
43399
|
+
* — with one that bypasses escaping for nodes marked by {@link literalText}
|
|
43400
|
+
* and delegates to the default behavior for everything else.
|
|
43401
|
+
*
|
|
43402
|
+
* @internal
|
|
43403
|
+
*/
|
|
43404
|
+
const literalTextHandlers = { text: (node, _parent, state, info) => {
|
|
43405
|
+
const text = node;
|
|
43406
|
+
return isLiteralText(text) ? escapeCellLiteral(text.value) : state.safe(text.value, info);
|
|
43407
|
+
} };
|
|
43408
|
+
/**
|
|
43163
43409
|
* Create a unified processor configured with remark-parse, remark-gfm,
|
|
43164
43410
|
* and remark-stringify.
|
|
43165
43411
|
*
|
|
@@ -43167,7 +43413,8 @@ function isUint8Array(value) {
|
|
|
43167
43413
|
* Each call creates a fresh processor instance. The plugin chain is:
|
|
43168
43414
|
* 1. `remark-parse` — markdown to MDAST
|
|
43169
43415
|
* 2. `remark-gfm` — GitHub Flavored Markdown extensions (tables, etc.)
|
|
43170
|
-
* 3. `remark-stringify` — MDAST back to markdown
|
|
43416
|
+
* 3. `remark-stringify` — MDAST back to markdown, with the
|
|
43417
|
+
* {@link literalText} handler override
|
|
43171
43418
|
*
|
|
43172
43419
|
* @privateRemarks
|
|
43173
43420
|
* Return type is intentionally inferred because the unified `Processor`
|
|
@@ -43178,7 +43425,7 @@ function isUint8Array(value) {
|
|
|
43178
43425
|
* @internal
|
|
43179
43426
|
*/
|
|
43180
43427
|
function createRemarkProcessor() {
|
|
43181
|
-
return unified().use(remarkParse).use(remarkGfm).use(remarkStringify);
|
|
43428
|
+
return unified().use(remarkParse).use(remarkGfm).use(remarkStringify, { handlers: literalTextHandlers });
|
|
43182
43429
|
}
|
|
43183
43430
|
/**
|
|
43184
43431
|
* Parse a markdown string into an MDAST AST synchronously.
|
|
@@ -43686,6 +43933,12 @@ function parseDependencyTable(table) {
|
|
|
43686
43933
|
/**
|
|
43687
43934
|
* Create a table cell with a text node.
|
|
43688
43935
|
*
|
|
43936
|
+
* @remarks
|
|
43937
|
+
* The cell text is marked literal, so stringification writes it verbatim
|
|
43938
|
+
* instead of escaping characters that could open a markdown construct. See
|
|
43939
|
+
* {@link literalText} — without it `~0.2.1` is written as `\~0.2.1` and
|
|
43940
|
+
* `some_pkg` as `some\_pkg`.
|
|
43941
|
+
*
|
|
43689
43942
|
* @param text - The cell text content
|
|
43690
43943
|
* @returns An MDAST `TableCell` node
|
|
43691
43944
|
*
|
|
@@ -43694,10 +43947,7 @@ function parseDependencyTable(table) {
|
|
|
43694
43947
|
function makeCell(text) {
|
|
43695
43948
|
return {
|
|
43696
43949
|
type: "tableCell",
|
|
43697
|
-
children: [
|
|
43698
|
-
type: "text",
|
|
43699
|
-
value: text
|
|
43700
|
-
}]
|
|
43950
|
+
children: [literalText(text)]
|
|
43701
43951
|
};
|
|
43702
43952
|
}
|
|
43703
43953
|
/**
|
|
@@ -43772,11 +44022,10 @@ function serializeDependencyTable(rows) {
|
|
|
43772
44022
|
* @internal
|
|
43773
44023
|
*/
|
|
43774
44024
|
function serializeDependencyTableToMarkdown(rows) {
|
|
43775
|
-
|
|
44025
|
+
return stringifyMarkdown({
|
|
43776
44026
|
type: "root",
|
|
43777
44027
|
children: [serializeDependencyTable(rows)]
|
|
43778
|
-
};
|
|
43779
|
-
return unified().use(remarkGfm).use(remarkStringify).stringify(tree).trim();
|
|
44028
|
+
}).trim();
|
|
43780
44029
|
}
|
|
43781
44030
|
/**
|
|
43782
44031
|
* Sort priority for dependency actions: removed first, then updated, then added.
|
|
@@ -46968,10 +47217,23 @@ const DEP_TYPE_MAP = [
|
|
|
46968
47217
|
["optionalDependencies", "optionalDependency"]
|
|
46969
47218
|
];
|
|
46970
47219
|
/**
|
|
46971
|
-
* Resolve a specifier against the snapshot it belongs to,
|
|
46972
|
-
*
|
|
46973
|
-
|
|
46974
|
-
|
|
47220
|
+
* Resolve a specifier against the snapshot it belongs to, scoped to the
|
|
47221
|
+
* importer that declared it, falling back to the raw specifier string when
|
|
47222
|
+
* the snapshot cannot resolve it.
|
|
47223
|
+
*
|
|
47224
|
+
* @remarks
|
|
47225
|
+
* Uses `resolveIn` rather than the workspace-wide `resolve`. Both consult the
|
|
47226
|
+
* ref's own lockfile importer entries when a `catalog:` specifier is not in the
|
|
47227
|
+
* catalog set — which is what makes hook-injected catalogs (`catalog:effect:peers`,
|
|
47228
|
+
* injected by a config-dependency pnpmfile and recorded in neither
|
|
47229
|
+
* `pnpm-workspace.yaml` nor the lockfile's `catalogs:` block) resolvable at all.
|
|
47230
|
+
* The workspace-wide form abstains whenever two importers disagree on a
|
|
47231
|
+
* dependency's version, which in a multi-package repo reproduces the original
|
|
47232
|
+
* defect: both sides fall back to the identical raw specifier, compare equal,
|
|
47233
|
+
* and emit no row. Scoping to the declaring importer answers precisely where
|
|
47234
|
+
* the workspace-wide form cannot.
|
|
47235
|
+
*/
|
|
47236
|
+
const resolveOrRaw = (snapshot, importerPath, dep, spec) => effect.Option.getOrElse(snapshot.resolveIn(importerPath, dep, spec), () => spec);
|
|
46975
47237
|
/**
|
|
46976
47238
|
* Drop no-net-change field moves: the same dependency removed from one field
|
|
46977
47239
|
* and added to another with an equal resolved version (e.g. a dep promoted
|
|
@@ -47016,13 +47278,15 @@ function computeWorkspaceDependencyDiffs(before, after) {
|
|
|
47016
47278
|
for (const afterPkg of after.packages) {
|
|
47017
47279
|
const beforePkg = effect.Option.getOrNull(before.package(afterPkg.name));
|
|
47018
47280
|
const rows = [];
|
|
47281
|
+
const afterImporter = afterPkg.relativePath;
|
|
47282
|
+
const beforeImporter = beforePkg?.relativePath ?? afterImporter;
|
|
47019
47283
|
for (const [field, type] of DEP_TYPE_MAP) {
|
|
47020
47284
|
const beforeRecord = beforePkg?.[field] ?? {};
|
|
47021
47285
|
const afterRecord = afterPkg[field];
|
|
47022
47286
|
const seen = /* @__PURE__ */ new Set();
|
|
47023
47287
|
for (const [name, beforeSpec] of Object.entries(beforeRecord)) {
|
|
47024
47288
|
seen.add(name);
|
|
47025
|
-
const from = resolveOrRaw(before, name, beforeSpec);
|
|
47289
|
+
const from = resolveOrRaw(before, beforeImporter, name, beforeSpec);
|
|
47026
47290
|
const afterSpec = afterRecord[name];
|
|
47027
47291
|
if (afterSpec === void 0) {
|
|
47028
47292
|
rows.push({
|
|
@@ -47034,7 +47298,7 @@ function computeWorkspaceDependencyDiffs(before, after) {
|
|
|
47034
47298
|
});
|
|
47035
47299
|
continue;
|
|
47036
47300
|
}
|
|
47037
|
-
const to = resolveOrRaw(after, name, afterSpec);
|
|
47301
|
+
const to = resolveOrRaw(after, afterImporter, name, afterSpec);
|
|
47038
47302
|
if (from !== to) rows.push({
|
|
47039
47303
|
dependency: name,
|
|
47040
47304
|
type,
|
|
@@ -47050,7 +47314,7 @@ function computeWorkspaceDependencyDiffs(before, after) {
|
|
|
47050
47314
|
type,
|
|
47051
47315
|
action: "added",
|
|
47052
47316
|
from: EM_DASH$1,
|
|
47053
|
-
to: resolveOrRaw(after, name, afterSpec)
|
|
47317
|
+
to: resolveOrRaw(after, afterImporter, name, afterSpec)
|
|
47054
47318
|
});
|
|
47055
47319
|
}
|
|
47056
47320
|
}
|
|
@@ -65196,8 +65460,38 @@ function getHeadingLevel(heading) {
|
|
|
65196
65460
|
return sequence ? sequence.text.length : 0;
|
|
65197
65461
|
}
|
|
65198
65462
|
/**
|
|
65463
|
+
* CommonMark backslash escapes: a backslash is literal unless it precedes an
|
|
65464
|
+
* ASCII punctuation character, in which case the pair denotes that character.
|
|
65465
|
+
*/
|
|
65466
|
+
const BACKSLASH_ESCAPE_RE = /\\([!-/:-@[-`{-~])/g;
|
|
65467
|
+
/**
|
|
65468
|
+
* Resolve CommonMark backslash escapes in raw micromark source text.
|
|
65469
|
+
*
|
|
65470
|
+
* @remarks
|
|
65471
|
+
* Every rule in this directory has a sibling remark implementation that reads
|
|
65472
|
+
* the parsed mdast tree, where the parser has already resolved escapes, via
|
|
65473
|
+
* `mdast-util-to-string`. Micromark tokens instead carry RAW source. Comparing
|
|
65474
|
+
* raw text against a value the parsed form would produce makes the two
|
|
65475
|
+
* implementations of one documented rule disagree about the same file
|
|
65476
|
+
* (issue #367).
|
|
65477
|
+
*
|
|
65478
|
+
* Applied at the shared extractors below so both implementations judge the
|
|
65479
|
+
* value a reader actually sees, rather than per-rule where the next extractor
|
|
65480
|
+
* added would silently reintroduce the split.
|
|
65481
|
+
*
|
|
65482
|
+
* @internal
|
|
65483
|
+
*/
|
|
65484
|
+
function unescapeMarkdown(raw) {
|
|
65485
|
+
return raw.replace(BACKSLASH_ESCAPE_RE, "$1");
|
|
65486
|
+
}
|
|
65487
|
+
/**
|
|
65199
65488
|
* Get the plain text content of an `atxHeading` token.
|
|
65200
65489
|
*
|
|
65490
|
+
* @remarks
|
|
65491
|
+
* Escape-resolved, so a heading compares equal to the same heading as the
|
|
65492
|
+
* remark rules see it. `getHeadingLevel` needs no equivalent — it counts
|
|
65493
|
+
* sequence characters rather than reading text.
|
|
65494
|
+
*
|
|
65201
65495
|
* @param heading - The `atxHeading` micromark token
|
|
65202
65496
|
* @returns The heading text, or empty string if no text token found
|
|
65203
65497
|
*
|
|
@@ -65205,7 +65499,7 @@ function getHeadingLevel(heading) {
|
|
|
65205
65499
|
*/
|
|
65206
65500
|
function getHeadingText(heading) {
|
|
65207
65501
|
const textToken = heading.children.find((c) => c.type === "atxHeadingText");
|
|
65208
|
-
return textToken ? textToken.text : "";
|
|
65502
|
+
return textToken ? unescapeMarkdown(textToken.text) : "";
|
|
65209
65503
|
}
|
|
65210
65504
|
//#endregion
|
|
65211
65505
|
//#region ../silk-effects/dist/dev/pkg/changesets/markdownlint/rules/content-structure.js
|
|
@@ -65330,13 +65624,13 @@ const EXPECTED_HEADERS = [
|
|
|
65330
65624
|
* The `tableContent` token has a `.text` property with the cell value.
|
|
65331
65625
|
*
|
|
65332
65626
|
* @param cell - A GFM table cell token (header or data)
|
|
65333
|
-
* @returns The trimmed text content of the cell, or an empty string
|
|
65627
|
+
* @returns The trimmed, escape-resolved text content of the cell, or an empty string
|
|
65334
65628
|
*
|
|
65335
65629
|
* @internal
|
|
65336
65630
|
*/
|
|
65337
65631
|
function getCellText(cell) {
|
|
65338
65632
|
const content = cell.children.find((c) => c.type === "tableContent");
|
|
65339
|
-
return content ? content.text.trim() : "";
|
|
65633
|
+
return content ? unescapeMarkdown(content.text.trim()) : "";
|
|
65340
65634
|
}
|
|
65341
65635
|
/**
|
|
65342
65636
|
* Extract all cell texts from a `tableRow` token.
|