@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
|
@@ -423,7 +423,7 @@ const trimTrailingSlashes = (s) => {
|
|
|
423
423
|
return s.slice(0, end);
|
|
424
424
|
};
|
|
425
425
|
//#endregion
|
|
426
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
426
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/limits.js
|
|
427
427
|
/** Hard cap on pattern length. Upstream minimatch's MAX_PATTERN_LENGTH (64KB). */
|
|
428
428
|
const MAX_PATTERN_LENGTH = 1024 * 64;
|
|
429
429
|
/** Default brace-expansion output budget. Upstream brace-expansion's EXPANSION_MAX. */
|
|
@@ -457,7 +457,7 @@ const assertCap = (name, value) => {
|
|
|
457
457
|
return value;
|
|
458
458
|
};
|
|
459
459
|
//#endregion
|
|
460
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
460
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/unescape.js
|
|
461
461
|
/**
|
|
462
462
|
* Un-escape a string that has been escaped with `escape`.
|
|
463
463
|
*
|
|
@@ -480,11 +480,11 @@ const unescapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = true
|
|
|
480
480
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
481
481
|
};
|
|
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/types.js
|
|
484
484
|
/** The globstar marker in a compiled pattern set. */
|
|
485
485
|
const GLOBSTAR = Symbol("globstar **");
|
|
486
486
|
//#endregion
|
|
487
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
487
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/escape.js
|
|
488
488
|
/**
|
|
489
489
|
* Escape all magic characters in a glob pattern.
|
|
490
490
|
*
|
|
@@ -502,13 +502,13 @@ const escapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = false
|
|
|
502
502
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
503
503
|
};
|
|
504
504
|
//#endregion
|
|
505
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
505
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/assertValidPattern.js
|
|
506
506
|
const assertValidPattern = (pattern) => {
|
|
507
507
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
508
508
|
if (pattern.length > 65536) throw new GuardExceeded("PatternTooLong", MAX_PATTERN_LENGTH, pattern.length);
|
|
509
509
|
};
|
|
510
510
|
//#endregion
|
|
511
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
511
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/braceExpressions.js
|
|
512
512
|
const posixClasses = {
|
|
513
513
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
514
514
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -631,7 +631,7 @@ const parseClass = (glob, position) => {
|
|
|
631
631
|
];
|
|
632
632
|
};
|
|
633
633
|
//#endregion
|
|
634
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
634
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/ast.js
|
|
635
635
|
const types = /* @__PURE__ */ new Set([
|
|
636
636
|
"!",
|
|
637
637
|
"?",
|
|
@@ -1148,7 +1148,7 @@ var AST = class AST {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
};
|
|
1150
1150
|
//#endregion
|
|
1151
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
1151
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/balancedMatch.js
|
|
1152
1152
|
const maybeMatch = (reg, str) => {
|
|
1153
1153
|
const m = str.match(reg);
|
|
1154
1154
|
return m ? m[0] : null;
|
|
@@ -1206,7 +1206,7 @@ const range = (a, b, str) => {
|
|
|
1206
1206
|
return result;
|
|
1207
1207
|
};
|
|
1208
1208
|
//#endregion
|
|
1209
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
1209
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/braceExpansion.js
|
|
1210
1210
|
const escSlash = `\0SLASH${Math.random()}\0`;
|
|
1211
1211
|
const escOpen = `\0OPEN${Math.random()}\0`;
|
|
1212
1212
|
const escClose = `\0CLOSE${Math.random()}\0`;
|
|
@@ -1353,7 +1353,7 @@ function expand_(str, max, isTopInput, depth) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
//#endregion
|
|
1356
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
1356
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/minimatch.js
|
|
1357
1357
|
const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
1358
1358
|
const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
|
|
1359
1359
|
const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
|
|
@@ -1924,7 +1924,7 @@ var Minimatch = class {
|
|
|
1924
1924
|
}
|
|
1925
1925
|
};
|
|
1926
1926
|
//#endregion
|
|
1927
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
1927
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/GlobPattern.js
|
|
1928
1928
|
/**
|
|
1929
1929
|
* Typed failure raised when a glob pattern trips a compile-time guard:
|
|
1930
1930
|
* over-length, brace-expansion budget exhaustion, or nesting past the depth
|
|
@@ -2203,7 +2203,7 @@ var GlobPattern = class GlobPattern extends effect.Schema.Class("GlobPattern")(e
|
|
|
2203
2203
|
})));
|
|
2204
2204
|
};
|
|
2205
2205
|
//#endregion
|
|
2206
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.2.
|
|
2206
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/glob/GlobSet.js
|
|
2207
2207
|
const exclusionTarget = (pattern) => pattern.startsWith("!") ? pattern.slice(1) : void 0;
|
|
2208
2208
|
const allCompileUnderDefaults = (patterns) => {
|
|
2209
2209
|
for (const pattern of patterns) {
|
|
@@ -2357,7 +2357,7 @@ var GlobSet = class GlobSet extends effect.Schema.Class("GlobSet")(effect.Schema
|
|
|
2357
2357
|
}
|
|
2358
2358
|
};
|
|
2359
2359
|
//#endregion
|
|
2360
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
2360
|
+
//#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
|
|
2361
2361
|
/**
|
|
2362
2362
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2363
2363
|
* when the format is `"bun"`.
|
|
@@ -2378,7 +2378,7 @@ var BunExtension = class extends effect.Schema.Class("BunExtension")({
|
|
|
2378
2378
|
trustedDependencies: effect.Schema.optionalKey(effect.Schema.Array(effect.Schema.String))
|
|
2379
2379
|
}) {};
|
|
2380
2380
|
//#endregion
|
|
2381
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
2381
|
+
//#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
|
|
2382
2382
|
/**
|
|
2383
2383
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2384
2384
|
* version ranges.
|
|
@@ -2424,7 +2424,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
|
|
|
2424
2424
|
static noop = effect.Layer.succeed(CatalogResolver, { rangeOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2425
2425
|
};
|
|
2426
2426
|
//#endregion
|
|
2427
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
2427
|
+
//#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
|
|
2428
2428
|
/**
|
|
2429
2429
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2430
2430
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2485,7 +2485,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
|
|
|
2485
2485
|
static noop = effect.Layer.succeed(WorkspaceResolver, { versionOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2486
2486
|
};
|
|
2487
2487
|
//#endregion
|
|
2488
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
2488
|
+
//#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
|
|
2489
2489
|
/**
|
|
2490
2490
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2491
2491
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2529,7 +2529,7 @@ var CatalogAssemblyError = class extends effect.Schema.TaggedErrorClass()("Catal
|
|
|
2529
2529
|
}
|
|
2530
2530
|
};
|
|
2531
2531
|
//#endregion
|
|
2532
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
2532
|
+
//#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
|
|
2533
2533
|
/**
|
|
2534
2534
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2535
2535
|
* way consumers branch on it.
|
|
@@ -2561,7 +2561,7 @@ Object.fromEntries(Object.entries({
|
|
|
2561
2561
|
optional: "optionalDependencies"
|
|
2562
2562
|
}).map(([kind, field]) => [field, kind]));
|
|
2563
2563
|
//#endregion
|
|
2564
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
2564
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/desugar.js
|
|
2565
2565
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2566
2566
|
major,
|
|
2567
2567
|
minor,
|
|
@@ -2650,7 +2650,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2650
2650
|
return [comp(">=", lowerVersion)];
|
|
2651
2651
|
};
|
|
2652
2652
|
//#endregion
|
|
2653
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
2653
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/grammar.js
|
|
2654
2654
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2655
2655
|
var ParseFailure = class {
|
|
2656
2656
|
position;
|
|
@@ -3045,7 +3045,7 @@ const formatComparator = (c) => {
|
|
|
3045
3045
|
/** Print comparator sets as `a b || c d`. */
|
|
3046
3046
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
3047
3047
|
//#endregion
|
|
3048
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3048
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/order.js
|
|
3049
3049
|
/**
|
|
3050
3050
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
3051
3051
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3098,7 +3098,7 @@ const compareBuild = (a, b) => {
|
|
|
3098
3098
|
return 0;
|
|
3099
3099
|
};
|
|
3100
3100
|
//#endregion
|
|
3101
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3101
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/SemVer.js
|
|
3102
3102
|
/**
|
|
3103
3103
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3104
3104
|
*
|
|
@@ -3533,7 +3533,7 @@ var SemVerBump = class {
|
|
|
3533
3533
|
}
|
|
3534
3534
|
};
|
|
3535
3535
|
//#endregion
|
|
3536
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3536
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/Comparator.js
|
|
3537
3537
|
/**
|
|
3538
3538
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3539
3539
|
*
|
|
@@ -3667,7 +3667,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
|
|
|
3667
3667
|
}
|
|
3668
3668
|
};
|
|
3669
3669
|
//#endregion
|
|
3670
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3670
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/normalize.js
|
|
3671
3671
|
const operatorWeight = (op) => {
|
|
3672
3672
|
switch (op) {
|
|
3673
3673
|
case ">=": return 0;
|
|
@@ -3698,7 +3698,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3698
3698
|
/** Normalize every comparator set in a range: sort and deduplicate each independently. */
|
|
3699
3699
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3700
3700
|
//#endregion
|
|
3701
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.2.
|
|
3701
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.2.1_effect@4.0.0-beta.101/node_modules/@effected/semver/Range.js
|
|
3702
3702
|
/**
|
|
3703
3703
|
* Indicates that a string could not be parsed as a range expression.
|
|
3704
3704
|
*
|
|
@@ -4030,7 +4030,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4030
4030
|
return true;
|
|
4031
4031
|
};
|
|
4032
4032
|
//#endregion
|
|
4033
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
4033
|
+
//#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
|
|
4034
4034
|
/**
|
|
4035
4035
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
4036
4036
|
*
|
|
@@ -4237,7 +4237,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4237
4237
|
FromString: fromString
|
|
4238
4238
|
});
|
|
4239
4239
|
//#endregion
|
|
4240
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
4240
|
+
//#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
|
|
4241
4241
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4242
4242
|
const COREPACK_RE = /^(sha1|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4243
4243
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4290,7 +4290,7 @@ const IntegrityHash = Object.assign(brandedIntegrity, {
|
|
|
4290
4290
|
decode: decode$2
|
|
4291
4291
|
});
|
|
4292
4292
|
//#endregion
|
|
4293
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.3.
|
|
4293
|
+
//#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
|
|
4294
4294
|
const MS_PER_MINUTE = 6e4;
|
|
4295
4295
|
/**
|
|
4296
4296
|
* A source's partial contribution to a {@link ReleaseAgeGate}: the effective
|
|
@@ -4458,7 +4458,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends effect.Schema.Class("ReleaseAg
|
|
|
4458
4458
|
}
|
|
4459
4459
|
};
|
|
4460
4460
|
//#endregion
|
|
4461
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4461
|
+
//#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
|
|
4462
4462
|
/**
|
|
4463
4463
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
4464
4464
|
*
|
|
@@ -4486,7 +4486,7 @@ var ImporterDependency = class extends effect.Schema.Class("ImporterDependency")
|
|
|
4486
4486
|
depType: DependencyField
|
|
4487
4487
|
}) {};
|
|
4488
4488
|
//#endregion
|
|
4489
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4489
|
+
//#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
|
|
4490
4490
|
/**
|
|
4491
4491
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
4492
4492
|
*
|
|
@@ -4510,7 +4510,7 @@ var LockfileImporter = class extends effect.Schema.Class("LockfileImporter")({
|
|
|
4510
4510
|
dependencies: effect.Schema.Array(ImporterDependency)
|
|
4511
4511
|
}) {};
|
|
4512
4512
|
//#endregion
|
|
4513
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4513
|
+
//#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
|
|
4514
4514
|
const EMPTY_DEPENDENCIES = {};
|
|
4515
4515
|
/**
|
|
4516
4516
|
* A package resolved from a lockfile.
|
|
@@ -4545,7 +4545,7 @@ var ResolvedPackage = class extends effect.Schema.Class("ResolvedPackage")({
|
|
|
4545
4545
|
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)))
|
|
4546
4546
|
}) {};
|
|
4547
4547
|
//#endregion
|
|
4548
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4548
|
+
//#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
|
|
4549
4549
|
/**
|
|
4550
4550
|
* A directed dependency edge between two workspace packages as recorded in
|
|
4551
4551
|
* the lockfile.
|
|
@@ -4567,7 +4567,7 @@ var WorkspaceDependency = class extends effect.Schema.Class("WorkspaceDependency
|
|
|
4567
4567
|
constraint: effect.Schema.String
|
|
4568
4568
|
}) {};
|
|
4569
4569
|
//#endregion
|
|
4570
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4570
|
+
//#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
|
|
4571
4571
|
/**
|
|
4572
4572
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
4573
4573
|
* when the format is `"pnpm"`.
|
|
@@ -4592,7 +4592,7 @@ var PnpmExtension = class extends effect.Schema.Class("PnpmExtension")({
|
|
|
4592
4592
|
}))
|
|
4593
4593
|
}) {};
|
|
4594
4594
|
//#endregion
|
|
4595
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4595
|
+
//#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
|
|
4596
4596
|
/**
|
|
4597
4597
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
4598
4598
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -4626,7 +4626,7 @@ const FILENAMES = {
|
|
|
4626
4626
|
*/
|
|
4627
4627
|
const filenameFor = (format) => FILENAMES[format];
|
|
4628
4628
|
//#endregion
|
|
4629
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4629
|
+
//#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
|
|
4630
4630
|
/**
|
|
4631
4631
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
4632
4632
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -4752,7 +4752,7 @@ const extractWorkspaceDeps = (workspaces, workspaceNames) => {
|
|
|
4752
4752
|
return deps;
|
|
4753
4753
|
};
|
|
4754
4754
|
//#endregion
|
|
4755
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
4755
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/JsoncNode.js
|
|
4756
4756
|
/**
|
|
4757
4757
|
* Discriminator values for JSONC AST node types: the JSON value types
|
|
4758
4758
|
* (`string`/`number`/`boolean`/`null`), the structural types
|
|
@@ -4927,7 +4927,7 @@ function evaluateNode(node, depth) {
|
|
|
4927
4927
|
}
|
|
4928
4928
|
}
|
|
4929
4929
|
//#endregion
|
|
4930
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
4930
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/scanner.js
|
|
4931
4931
|
const isWhitespace = (ch) => ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 65279;
|
|
4932
4932
|
const isLineBreak$1 = (ch) => ch === 10 || ch === 13 || ch === 8232 || ch === 8233;
|
|
4933
4933
|
const isDigit$1 = (ch) => ch >= 48 && ch <= 57;
|
|
@@ -5223,7 +5223,7 @@ const createScanner$2 = (text, ignoreTrivia = false) => {
|
|
|
5223
5223
|
};
|
|
5224
5224
|
};
|
|
5225
5225
|
//#endregion
|
|
5226
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
5226
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/skip.js
|
|
5227
5227
|
/**
|
|
5228
5228
|
* Iteratively consume the value beginning at the cursor's current token and
|
|
5229
5229
|
* return its tight end offset (excludes trailing whitespace/comments).
|
|
@@ -5253,7 +5253,7 @@ const skipBalancedValue = (cursor) => {
|
|
|
5253
5253
|
return end;
|
|
5254
5254
|
};
|
|
5255
5255
|
//#endregion
|
|
5256
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
5256
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/parser.js
|
|
5257
5257
|
/**
|
|
5258
5258
|
* The public parse-error code vocabulary. The facade builds its `@public`
|
|
5259
5259
|
* `JsoncParseErrorCode` schema from this array; the parser produces these codes
|
|
@@ -5666,7 +5666,7 @@ const parseTree$2 = (text, flags) => {
|
|
|
5666
5666
|
};
|
|
5667
5667
|
};
|
|
5668
5668
|
//#endregion
|
|
5669
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
5669
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/Jsonc.js
|
|
5670
5670
|
/**
|
|
5671
5671
|
* The single public parse-error code vocabulary, appearing as the `code` field
|
|
5672
5672
|
* of {@link JsoncParseErrorDetail}.
|
|
@@ -6270,7 +6270,7 @@ var JsoncEdit = class extends effect.Schema.Class("JsoncEdit")({
|
|
|
6270
6270
|
}
|
|
6271
6271
|
};
|
|
6272
6272
|
//#endregion
|
|
6273
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
6273
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/navigate.js
|
|
6274
6274
|
/**
|
|
6275
6275
|
* Resolve `path` against `text`, returning where the target is (or where it
|
|
6276
6276
|
* would be inserted). `path` must be non-empty — the whole-document case is
|
|
@@ -6397,7 +6397,7 @@ function navigate(text, path) {
|
|
|
6397
6397
|
return { _tag: "NoOp" };
|
|
6398
6398
|
}
|
|
6399
6399
|
//#endregion
|
|
6400
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.
|
|
6400
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/jsonc/JsoncModifier.js
|
|
6401
6401
|
/**
|
|
6402
6402
|
* Raised when `JsoncModifier.modify` cannot navigate the requested path: the
|
|
6403
6403
|
* value at `depth` is not the container kind (`expected`) the next path segment
|
|
@@ -6525,7 +6525,7 @@ var JsoncModifier = class {
|
|
|
6525
6525
|
});
|
|
6526
6526
|
};
|
|
6527
6527
|
//#endregion
|
|
6528
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
6528
|
+
//#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
|
|
6529
6529
|
const DepRecord$2 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6530
6530
|
const BunWorkspaceEntry = effect.Schema.Struct({
|
|
6531
6531
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -6618,7 +6618,7 @@ const toFields$3 = (raw) => effect.Effect.gen(function* () {
|
|
|
6618
6618
|
};
|
|
6619
6619
|
});
|
|
6620
6620
|
//#endregion
|
|
6621
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
6621
|
+
//#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
|
|
6622
6622
|
const DepRecord$1 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6623
6623
|
const NpmPackageEntry = effect.Schema.Struct({
|
|
6624
6624
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -6716,7 +6716,7 @@ const toFields$2 = (raw) => effect.Effect.gen(function* () {
|
|
|
6716
6716
|
};
|
|
6717
6717
|
});
|
|
6718
6718
|
//#endregion
|
|
6719
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
6719
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/YamlNode.js
|
|
6720
6720
|
/**
|
|
6721
6721
|
* YAML scalar presentation styles.
|
|
6722
6722
|
*
|
|
@@ -7118,7 +7118,7 @@ function nodeToValue(node, anchors, budget, counting = false) {
|
|
|
7118
7118
|
return null;
|
|
7119
7119
|
}
|
|
7120
7120
|
//#endregion
|
|
7121
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
7121
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/diagnostics.js
|
|
7122
7122
|
/** Error codes emitted by the lexer stage. */
|
|
7123
7123
|
const YAML_LEX_ERROR_CODES = [
|
|
7124
7124
|
"UnexpectedCharacter",
|
|
@@ -7196,7 +7196,7 @@ function isFatalCode(code) {
|
|
|
7196
7196
|
return FATAL_CODES.has(code);
|
|
7197
7197
|
}
|
|
7198
7198
|
//#endregion
|
|
7199
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
7199
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/YamlDiagnostic.js
|
|
7200
7200
|
/**
|
|
7201
7201
|
* Error codes emitted by the lexer stage.
|
|
7202
7202
|
*
|
|
@@ -7317,7 +7317,7 @@ function lineChar(text, offset) {
|
|
|
7317
7317
|
};
|
|
7318
7318
|
}
|
|
7319
7319
|
//#endregion
|
|
7320
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
7320
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/anchors.js
|
|
7321
7321
|
/**
|
|
7322
7322
|
* Check if a pending anchor is being applied to an alias node (invalid in YAML 1.2 §3.2.2).
|
|
7323
7323
|
* Aliases represent references to existing anchored nodes and cannot have their own anchors.
|
|
@@ -7410,7 +7410,7 @@ function collectAnchors(node, anchors) {
|
|
|
7410
7410
|
}
|
|
7411
7411
|
}
|
|
7412
7412
|
//#endregion
|
|
7413
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
7413
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/lexer.js
|
|
7414
7414
|
/**
|
|
7415
7415
|
* Create a new YAML scanner for the given source text.
|
|
7416
7416
|
*
|
|
@@ -8367,7 +8367,7 @@ function lexAll(text) {
|
|
|
8367
8367
|
return tokens;
|
|
8368
8368
|
}
|
|
8369
8369
|
//#endregion
|
|
8370
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
8370
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/cst-parser.js
|
|
8371
8371
|
/**
|
|
8372
8372
|
* Hardening: cap CST nesting so hostile inputs cannot overflow the stack
|
|
8373
8373
|
* while the tree is being BUILT. Set slightly above the composer's
|
|
@@ -9079,7 +9079,7 @@ function parseCSTAll(text) {
|
|
|
9079
9079
|
return parseDocuments(lexAll(text), text);
|
|
9080
9080
|
}
|
|
9081
9081
|
//#endregion
|
|
9082
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
9082
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/state.js
|
|
9083
9083
|
let lineStartsText;
|
|
9084
9084
|
let lineStartsCache = [];
|
|
9085
9085
|
function getLineStarts(text) {
|
|
@@ -9185,7 +9185,7 @@ function exitNesting(state) {
|
|
|
9185
9185
|
state.depth--;
|
|
9186
9186
|
}
|
|
9187
9187
|
//#endregion
|
|
9188
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
9188
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/tags.js
|
|
9189
9189
|
/**
|
|
9190
9190
|
* Resolve a tag shorthand using the document's %TAG directives.
|
|
9191
9191
|
* For example, with `%TAG !! tag:example.com,2000:app/`, the tag `!!int`
|
|
@@ -9271,7 +9271,7 @@ function validateTagHandlesInDocument(docCst, state) {
|
|
|
9271
9271
|
}
|
|
9272
9272
|
}
|
|
9273
9273
|
//#endregion
|
|
9274
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
9274
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/scalars.js
|
|
9275
9275
|
const NULL_RE$1 = /^(?:null|Null|NULL|~)$/;
|
|
9276
9276
|
const TRUE_RE$1 = /^(?:true|True|TRUE)$/;
|
|
9277
9277
|
const FALSE_RE$1 = /^(?:false|False|FALSE)$/;
|
|
@@ -10149,7 +10149,7 @@ function shouldPreserveRaw(rawValue, value) {
|
|
|
10149
10149
|
return false;
|
|
10150
10150
|
}
|
|
10151
10151
|
//#endregion
|
|
10152
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
10152
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/block.js
|
|
10153
10153
|
/**
|
|
10154
10154
|
* Compose a block map from its CST children, with an optional external first key.
|
|
10155
10155
|
*
|
|
@@ -11297,7 +11297,7 @@ function composeFlatBlockMap(children, startIdx, parentCst, state, externalFirst
|
|
|
11297
11297
|
return map;
|
|
11298
11298
|
}
|
|
11299
11299
|
//#endregion
|
|
11300
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
11300
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/flow.js
|
|
11301
11301
|
/**
|
|
11302
11302
|
* Validate that flow collection entries are separated by commas.
|
|
11303
11303
|
*
|
|
@@ -11689,7 +11689,7 @@ function composeFlowSeqInner(cst, state, meta, parentBlockColumn) {
|
|
|
11689
11689
|
return seq;
|
|
11690
11690
|
}
|
|
11691
11691
|
//#endregion
|
|
11692
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
11692
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/document.js
|
|
11693
11693
|
/** The flow-composer dispatch wired into every state this module creates. */
|
|
11694
11694
|
const FLOW = {
|
|
11695
11695
|
composeFlowMap,
|
|
@@ -12355,7 +12355,7 @@ function composeAllDocuments(text, options) {
|
|
|
12355
12355
|
};
|
|
12356
12356
|
}
|
|
12357
12357
|
//#endregion
|
|
12358
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
12358
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/fold.js
|
|
12359
12359
|
/**
|
|
12360
12360
|
* Column-based line folding for a single logical scalar line (YAML 1.2 flow
|
|
12361
12361
|
* folding, §7.3 / §8.2.1). Breaks the content at "safe" single-space
|
|
@@ -12591,7 +12591,7 @@ function renderBlockFolded(s, indent) {
|
|
|
12591
12591
|
return `>${indentIndicator}${chomp}\n${outputLines.join("\n")}`;
|
|
12592
12592
|
}
|
|
12593
12593
|
//#endregion
|
|
12594
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.
|
|
12594
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/stringifier.js
|
|
12595
12595
|
/**
|
|
12596
12596
|
* Thrown by the stringifier on its failure paths (circular references). The
|
|
12597
12597
|
* facade catches this and materializes the public stringify error.
|
|
@@ -13540,7 +13540,7 @@ function deepEqualValues(a, b) {
|
|
|
13540
13540
|
return false;
|
|
13541
13541
|
}
|
|
13542
13542
|
//#endregion
|
|
13543
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13543
|
+
//#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
|
|
13544
13544
|
/**
|
|
13545
13545
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
13546
13546
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -13610,7 +13610,7 @@ const selectSoleDocument = (content) => effect.Effect.gen(function* () {
|
|
|
13610
13610
|
};
|
|
13611
13611
|
});
|
|
13612
13612
|
//#endregion
|
|
13613
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13613
|
+
//#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
|
|
13614
13614
|
const PnpmImporterDeps = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Struct({
|
|
13615
13615
|
specifier: effect.Schema.String,
|
|
13616
13616
|
version: effect.Schema.String
|
|
@@ -13736,7 +13736,7 @@ const toFields$1 = (raw) => effect.Effect.gen(function* () {
|
|
|
13736
13736
|
};
|
|
13737
13737
|
});
|
|
13738
13738
|
//#endregion
|
|
13739
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13739
|
+
//#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
|
|
13740
13740
|
const YarnLockfileRaw = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
|
|
13741
13741
|
const DepRecord = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
13742
13742
|
const YarnEntry = effect.Schema.Struct({
|
|
@@ -13859,7 +13859,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
13859
13859
|
return Object.fromEntries(Object.entries(deps).map(([name, value]) => [name, value.startsWith("npm:") ? value.slice(4) : value]));
|
|
13860
13860
|
};
|
|
13861
13861
|
//#endregion
|
|
13862
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13862
|
+
//#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
|
|
13863
13863
|
const EMPTY_IMPORTERS = [];
|
|
13864
13864
|
/**
|
|
13865
13865
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -14103,7 +14103,7 @@ var Lockfile = class Lockfile extends effect.Schema.Class("Lockfile")({
|
|
|
14103
14103
|
}
|
|
14104
14104
|
};
|
|
14105
14105
|
//#endregion
|
|
14106
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
14106
|
+
//#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
|
|
14107
14107
|
/**
|
|
14108
14108
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
14109
14109
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -14219,7 +14219,7 @@ var LockfileIntegrity = class LockfileIntegrity extends effect.Schema.Class("Loc
|
|
|
14219
14219
|
}
|
|
14220
14220
|
};
|
|
14221
14221
|
//#endregion
|
|
14222
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
14222
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Dependency.js
|
|
14223
14223
|
/**
|
|
14224
14224
|
* A resolved dependency entry pairing a package name with its version
|
|
14225
14225
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -14283,7 +14283,7 @@ var Dependency = class extends effect.Schema.Class("Dependency")({
|
|
|
14283
14283
|
}
|
|
14284
14284
|
};
|
|
14285
14285
|
//#endregion
|
|
14286
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
14286
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/DevEngines.js
|
|
14287
14287
|
/**
|
|
14288
14288
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
14289
14289
|
*
|
|
@@ -14321,7 +14321,7 @@ const DevEnginesSchema = effect.Schema.Struct({
|
|
|
14321
14321
|
libc: effect.Schema.optionalKey(DevEngineOrArray)
|
|
14322
14322
|
});
|
|
14323
14323
|
//#endregion
|
|
14324
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
14324
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/licenseIds.js
|
|
14325
14325
|
/** @internal */
|
|
14326
14326
|
const ACTIVE_LICENSE_IDS = [
|
|
14327
14327
|
"0BSD",
|
|
@@ -15054,7 +15054,7 @@ const LICENSE_IDS = new Set(ACTIVE_LICENSE_IDS);
|
|
|
15054
15054
|
/** @internal */
|
|
15055
15055
|
const DEPRECATED_LICENSE_IDS = new Set(DEPRECATED_LICENSE_ID_LIST);
|
|
15056
15056
|
//#endregion
|
|
15057
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15057
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/License.js
|
|
15058
15058
|
/**
|
|
15059
15059
|
* Indicates that a string is not a valid SPDX expression fragment: an
|
|
15060
15060
|
* unrecognized license or exception identifier, or a malformed
|
|
@@ -15223,7 +15223,7 @@ var License = class License extends effect.Schema.Class("License")({
|
|
|
15223
15223
|
}
|
|
15224
15224
|
};
|
|
15225
15225
|
//#endregion
|
|
15226
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15226
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/exceptions.js
|
|
15227
15227
|
/** @internal */
|
|
15228
15228
|
const ACTIVE_EXCEPTION_IDS = [
|
|
15229
15229
|
"389-exception",
|
|
@@ -15300,7 +15300,7 @@ const EXCEPTION_IDS = new Set(ACTIVE_EXCEPTION_IDS);
|
|
|
15300
15300
|
/** @internal */
|
|
15301
15301
|
const DEPRECATED_EXCEPTION_IDS = new Set(DEPRECATED_EXCEPTION_ID_LIST);
|
|
15302
15302
|
//#endregion
|
|
15303
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15303
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/LicenseException.js
|
|
15304
15304
|
/**
|
|
15305
15305
|
* A validated SPDX license-exception identifier: an Effect `Schema.Class` whose
|
|
15306
15306
|
* `id` is a member of the SPDX exception list. The class doubles as its own
|
|
@@ -15420,7 +15420,7 @@ var LicenseException = class LicenseException extends effect.Schema.Class("Licen
|
|
|
15420
15420
|
}
|
|
15421
15421
|
};
|
|
15422
15422
|
//#endregion
|
|
15423
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15423
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/parser.js
|
|
15424
15424
|
const TOKEN_OPEN_PAREN = 0;
|
|
15425
15425
|
const TOKEN_CLOSE_PAREN = 1;
|
|
15426
15426
|
const TOKEN_PLUS = 2;
|
|
@@ -15649,7 +15649,7 @@ function parse$2(input) {
|
|
|
15649
15649
|
return node;
|
|
15650
15650
|
}
|
|
15651
15651
|
//#endregion
|
|
15652
|
-
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.
|
|
15652
|
+
//#region ../../node_modules/.pnpm/@effected+spdx@0.1.1_effect@4.0.0-beta.101/node_modules/@effected/spdx/SpdxExpression.js
|
|
15653
15653
|
/**
|
|
15654
15654
|
* Serialize a tagged SPDX AST node — a class instance OR its encoded POJO — to
|
|
15655
15655
|
* the canonical, fully-parenthesized SPDX string. This is the single source of
|
|
@@ -15838,7 +15838,7 @@ effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.Sch
|
|
|
15838
15838
|
encode: (expression) => effect.Effect.succeed(serialize$1(expression))
|
|
15839
15839
|
})));
|
|
15840
15840
|
//#endregion
|
|
15841
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
15841
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/License.js
|
|
15842
15842
|
/**
|
|
15843
15843
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
15844
15844
|
*
|
|
@@ -15873,7 +15873,7 @@ const isValidSpdx = (value) => {
|
|
|
15873
15873
|
*/
|
|
15874
15874
|
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"));
|
|
15875
15875
|
//#endregion
|
|
15876
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
15876
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageManager.js
|
|
15877
15877
|
const PACKAGE_MANAGER_RE = /^([a-z]+)@(\d+\.\d+\.\d+(?:-[a-zA-Z0-9._-]+)?)(?:\+(.+))?$/;
|
|
15878
15878
|
/**
|
|
15879
15879
|
* The `packageManager` field only ever carries corepack's `<algo>.<hex>`
|
|
@@ -15931,7 +15931,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
|
|
|
15931
15931
|
}
|
|
15932
15932
|
};
|
|
15933
15933
|
//#endregion
|
|
15934
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
15934
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageName.js
|
|
15935
15935
|
/**
|
|
15936
15936
|
* Indicates that a string could not be used as a valid npm package name.
|
|
15937
15937
|
*
|
|
@@ -15989,7 +15989,7 @@ const PackageName = Object.assign(effect.Schema.Union([ScopedPackageName, Unscop
|
|
|
15989
15989
|
isScoped
|
|
15990
15990
|
});
|
|
15991
15991
|
//#endregion
|
|
15992
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
15992
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Person.js
|
|
15993
15993
|
const parsePersonString = (input) => {
|
|
15994
15994
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
15995
15995
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -16132,7 +16132,7 @@ var Person = class Person extends effect.Schema.Class("Person")({
|
|
|
16132
16132
|
}
|
|
16133
16133
|
};
|
|
16134
16134
|
//#endregion
|
|
16135
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
16135
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/internal/format.js
|
|
16136
16136
|
const KEY_INDEX = new Map([
|
|
16137
16137
|
"$schema",
|
|
16138
16138
|
"name",
|
|
@@ -16355,7 +16355,7 @@ const renderJson = (raw, options) => {
|
|
|
16355
16355
|
return options.newline ? `${json}\n` : json;
|
|
16356
16356
|
};
|
|
16357
16357
|
//#endregion
|
|
16358
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.
|
|
16358
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.5.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Package.js
|
|
16359
16359
|
const toHashMap = effect.SchemaTransformation.transform({
|
|
16360
16360
|
decode: (record) => effect.HashMap.fromIterable(Object.entries(record)),
|
|
16361
16361
|
encode: (map) => Object.fromEntries(effect.HashMap.toEntries(map))
|
|
@@ -16673,7 +16673,7 @@ var Package = class Package extends effect.Schema.Class("Package")({
|
|
|
16673
16673
|
}
|
|
16674
16674
|
};
|
|
16675
16675
|
//#endregion
|
|
16676
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
16676
|
+
//#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
|
|
16677
16677
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
16678
16678
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
16679
16679
|
/**
|
|
@@ -16952,7 +16952,7 @@ var WorkspacePackage = class WorkspacePackage extends effect.Schema.Class("Works
|
|
|
16952
16952
|
}
|
|
16953
16953
|
};
|
|
16954
16954
|
//#endregion
|
|
16955
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.3.
|
|
16955
|
+
//#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
|
|
16956
16956
|
/**
|
|
16957
16957
|
* Typed failure raised by {@link descend}: a directory mid-walk was unreadable
|
|
16958
16958
|
* (under `onUnreadable: "fail"`), or the walk descended past `maxDepth`. Depth
|
|
@@ -17087,7 +17087,7 @@ const descend = effect.Effect.fn("Walker.descend")(function* (pattern, options)
|
|
|
17087
17087
|
return results;
|
|
17088
17088
|
});
|
|
17089
17089
|
//#endregion
|
|
17090
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.3.
|
|
17090
|
+
//#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
|
|
17091
17091
|
/**
|
|
17092
17092
|
* Typed failure raised by {@link compileAndExpand}: the single error the
|
|
17093
17093
|
* compile+expand recipe fails with, so a caller catches one tag rather than
|
|
@@ -17177,7 +17177,7 @@ const compileAndExpand = effect.Effect.fn("Walker.compileAndExpand")(function* (
|
|
|
17177
17177
|
})));
|
|
17178
17178
|
});
|
|
17179
17179
|
//#endregion
|
|
17180
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.3.
|
|
17180
|
+
//#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
|
|
17181
17181
|
/**
|
|
17182
17182
|
* Ascend from `start` toward the filesystem root, yielding each directory,
|
|
17183
17183
|
* nearest first.
|
|
@@ -17278,7 +17278,7 @@ const Walker$1 = {
|
|
|
17278
17278
|
findRoot: findRoot$1
|
|
17279
17279
|
};
|
|
17280
17280
|
//#endregion
|
|
17281
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17281
|
+
//#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
|
|
17282
17282
|
/**
|
|
17283
17283
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
17284
17284
|
*
|
|
@@ -17465,7 +17465,7 @@ var WorkspaceRoot = class WorkspaceRoot extends effect.Context.Service()("@effec
|
|
|
17465
17465
|
static layerTest = (root) => effect.Layer.effect(WorkspaceRoot, WorkspaceRoot.makeTest(root)).pipe(effect.Layer.provide(effect.Path.layer));
|
|
17466
17466
|
};
|
|
17467
17467
|
//#endregion
|
|
17468
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17468
|
+
//#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
|
|
17469
17469
|
/**
|
|
17470
17470
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
17471
17471
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -17483,7 +17483,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
17483
17483
|
*/
|
|
17484
17484
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
17485
17485
|
//#endregion
|
|
17486
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17486
|
+
//#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
|
|
17487
17487
|
/** Directory names never descended into. */
|
|
17488
17488
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
17489
17489
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -17573,7 +17573,7 @@ var Traversal = class {
|
|
|
17573
17573
|
}
|
|
17574
17574
|
};
|
|
17575
17575
|
//#endregion
|
|
17576
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17576
|
+
//#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
|
|
17577
17577
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
17578
17578
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
17579
17579
|
/**
|
|
@@ -17643,7 +17643,7 @@ const enumerate = (root, globs, options) => effect.Effect.gen(function* () {
|
|
|
17643
17643
|
return results;
|
|
17644
17644
|
});
|
|
17645
17645
|
//#endregion
|
|
17646
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17646
|
+
//#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
|
|
17647
17647
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
17648
17648
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
17649
17649
|
const pnpmPatternsOf = (document) => {
|
|
@@ -17700,7 +17700,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
|
|
|
17700
17700
|
return manifestPatternsOf(manifest);
|
|
17701
17701
|
});
|
|
17702
17702
|
//#endregion
|
|
17703
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
17703
|
+
//#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
|
|
17704
17704
|
/**
|
|
17705
17705
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
17706
17706
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -18134,7 +18134,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends effect.Context.Service
|
|
|
18134
18134
|
};
|
|
18135
18135
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
18136
18136
|
//#endregion
|
|
18137
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
18137
|
+
//#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
|
|
18138
18138
|
/**
|
|
18139
18139
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
18140
18140
|
* because it contains a cycle.
|
|
@@ -18369,7 +18369,7 @@ const kahn = (edges) => {
|
|
|
18369
18369
|
};
|
|
18370
18370
|
};
|
|
18371
18371
|
//#endregion
|
|
18372
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
18372
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.2_effect@4.0.0-beta.101/node_modules/@effected/git/GitCommand.js
|
|
18373
18373
|
/**
|
|
18374
18374
|
* Builds a `git` `ChildProcess.StandardCommand` with the argv this package
|
|
18375
18375
|
* classifies against.
|
|
@@ -18788,7 +18788,7 @@ const GitCommand = {
|
|
|
18788
18788
|
status
|
|
18789
18789
|
};
|
|
18790
18790
|
//#endregion
|
|
18791
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
18791
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.2_effect@4.0.0-beta.101/node_modules/@effected/git/internal/run.js
|
|
18792
18792
|
/**
|
|
18793
18793
|
* Spawns `command` and collects its stdout, stderr, and exit code as a single
|
|
18794
18794
|
* triple.
|
|
@@ -18815,7 +18815,7 @@ const runCollected = (command) => effect.Effect.scoped(effect.Effect.gen(functio
|
|
|
18815
18815
|
};
|
|
18816
18816
|
}));
|
|
18817
18817
|
//#endregion
|
|
18818
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
18818
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.2_effect@4.0.0-beta.101/node_modules/@effected/git/Git.js
|
|
18819
18819
|
/** git's own ceiling: a run that has not answered in 30s is not going to. */
|
|
18820
18820
|
const GIT_TIMEOUT = effect.Duration.seconds(30);
|
|
18821
18821
|
/**
|
|
@@ -19732,7 +19732,7 @@ var Git = class extends effect.Context.Service()("@effected/git/Git") {
|
|
|
19732
19732
|
}));
|
|
19733
19733
|
};
|
|
19734
19734
|
//#endregion
|
|
19735
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19735
|
+
//#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
|
|
19736
19736
|
/**
|
|
19737
19737
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
19738
19738
|
*
|
|
@@ -19862,7 +19862,7 @@ var ChangeDetector = class ChangeDetector extends effect.Context.Service()("@eff
|
|
|
19862
19862
|
};
|
|
19863
19863
|
`${process.platform}${process.arch}${process.version.split(".")[0].substring(1)}`;
|
|
19864
19864
|
//#endregion
|
|
19865
|
-
//#region ../../node_modules/.pnpm/@pnpm+error@1100.0
|
|
19865
|
+
//#region ../../node_modules/.pnpm/@pnpm+error@1100.1.0/node_modules/@pnpm/error/lib/index.js
|
|
19866
19866
|
var PnpmError = class extends Error {
|
|
19867
19867
|
code;
|
|
19868
19868
|
hint;
|
|
@@ -19877,7 +19877,7 @@ var PnpmError = class extends Error {
|
|
|
19877
19877
|
}
|
|
19878
19878
|
};
|
|
19879
19879
|
//#endregion
|
|
19880
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
19880
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.3/node_modules/@pnpm/catalogs.config/lib/getCatalogsFromWorkspaceManifest.js
|
|
19881
19881
|
function getCatalogsFromWorkspaceManifest(workspaceManifest) {
|
|
19882
19882
|
if (workspaceManifest == null) return {};
|
|
19883
19883
|
checkDefaultCatalogIsDefinedOnce(workspaceManifest);
|
|
@@ -19890,7 +19890,7 @@ function checkDefaultCatalogIsDefinedOnce(manifest) {
|
|
|
19890
19890
|
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.");
|
|
19891
19891
|
}
|
|
19892
19892
|
//#endregion
|
|
19893
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
19893
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.3/node_modules/@pnpm/catalogs.config/lib/mergeCatalogs.js
|
|
19894
19894
|
/**
|
|
19895
19895
|
* Deep-merges catalog definitions, later arguments taking precedence over
|
|
19896
19896
|
* earlier ones at the individual entry level. Use it to fold the catalog
|
|
@@ -19928,7 +19928,7 @@ function mergeCatalogs(...catalogsList) {
|
|
|
19928
19928
|
return result;
|
|
19929
19929
|
}
|
|
19930
19930
|
//#endregion
|
|
19931
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.protocol-parser@1100.0.
|
|
19931
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.protocol-parser@1100.0.1/node_modules/@pnpm/catalogs.protocol-parser/lib/parseCatalogProtocol.js
|
|
19932
19932
|
const CATALOG_PROTOCOL = "catalog:";
|
|
19933
19933
|
/**
|
|
19934
19934
|
* Parse a package.json dependency specifier using the catalog: protocol.
|
|
@@ -19940,7 +19940,7 @@ function parseCatalogProtocol(bareSpecifier) {
|
|
|
19940
19940
|
return catalogNameRaw === "" ? "default" : catalogNameRaw;
|
|
19941
19941
|
}
|
|
19942
19942
|
//#endregion
|
|
19943
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.resolver@1100.0.
|
|
19943
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.resolver@1100.0.1/node_modules/@pnpm/catalogs.resolver/lib/matchCatalogResolveResult.js
|
|
19944
19944
|
function matchCatalogResolveResult(result, matcher) {
|
|
19945
19945
|
switch (result.type) {
|
|
19946
19946
|
case "found": return matcher.found(result);
|
|
@@ -19949,7 +19949,7 @@ function matchCatalogResolveResult(result, matcher) {
|
|
|
19949
19949
|
}
|
|
19950
19950
|
}
|
|
19951
19951
|
//#endregion
|
|
19952
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.resolver@1100.0.
|
|
19952
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.resolver@1100.0.1/node_modules/@pnpm/catalogs.resolver/lib/resolveFromCatalog.js
|
|
19953
19953
|
function resolveFromCatalog(catalogs, wantedDependency) {
|
|
19954
19954
|
const catalogName = parseCatalogProtocol(wantedDependency.bareSpecifier);
|
|
19955
19955
|
if (catalogName == null) return { type: "unused" };
|
|
@@ -19984,7 +19984,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
19984
19984
|
};
|
|
19985
19985
|
}
|
|
19986
19986
|
//#endregion
|
|
19987
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
19987
|
+
//#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
|
|
19988
19988
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
19989
19989
|
const inlineCatalogs = (manifest) => {
|
|
19990
19990
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -20048,7 +20048,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
20048
20048
|
});
|
|
20049
20049
|
};
|
|
20050
20050
|
//#endregion
|
|
20051
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20051
|
+
//#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
|
|
20052
20052
|
/** Whether `value` is a non-null, non-array object. */
|
|
20053
20053
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20054
20054
|
/**
|
|
@@ -20234,7 +20234,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
|
|
|
20234
20234
|
}) });
|
|
20235
20235
|
};
|
|
20236
20236
|
//#endregion
|
|
20237
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20237
|
+
//#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
|
|
20238
20238
|
/**
|
|
20239
20239
|
* The four package managers this package understands.
|
|
20240
20240
|
*
|
|
@@ -20476,7 +20476,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
20476
20476
|
static layer = effect.Layer.effect(PackageManagerDetector, PackageManagerDetector.make);
|
|
20477
20477
|
};
|
|
20478
20478
|
//#endregion
|
|
20479
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20479
|
+
//#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
|
|
20480
20480
|
/**
|
|
20481
20481
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
20482
20482
|
*
|
|
@@ -20586,7 +20586,7 @@ var LockfileReader = class LockfileReader extends effect.Context.Service()("@eff
|
|
|
20586
20586
|
static layer = (options) => effect.Layer.effect(LockfileReader, LockfileReader.make(options));
|
|
20587
20587
|
};
|
|
20588
20588
|
//#endregion
|
|
20589
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20589
|
+
//#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
|
|
20590
20590
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
20591
20591
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
20592
20592
|
/**
|
|
@@ -20686,7 +20686,93 @@ var PublishabilityDetector = class PublishabilityDetector extends effect.Context
|
|
|
20686
20686
|
}) });
|
|
20687
20687
|
};
|
|
20688
20688
|
//#endregion
|
|
20689
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
20689
|
+
//#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
|
|
20690
|
+
/**
|
|
20691
|
+
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
20692
|
+
*
|
|
20693
|
+
* pnpm records an importer version as the resolved version followed by the peer
|
|
20694
|
+
* 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))`.
|
|
20695
|
+
* `@effected/lockfiles` stores that string verbatim (its `packages:` key parser
|
|
20696
|
+
* strips the suffix; the importer entries deliberately keep it), so the raw
|
|
20697
|
+
* value must never reach a consumer's dependency table — it would render the
|
|
20698
|
+
* whole parenthesized chain as the "version" a dependency moved to.
|
|
20699
|
+
*
|
|
20700
|
+
* Everything from the first `(` is dropped; a version with no suffix passes
|
|
20701
|
+
* through untouched.
|
|
20702
|
+
*/
|
|
20703
|
+
const stripPeerSuffix = (version) => {
|
|
20704
|
+
const paren = version.indexOf("(");
|
|
20705
|
+
return paren === -1 ? version : version.slice(0, paren);
|
|
20706
|
+
};
|
|
20707
|
+
/**
|
|
20708
|
+
* Whether a recorded importer version is a concrete version usable as a
|
|
20709
|
+
* resolution answer.
|
|
20710
|
+
*
|
|
20711
|
+
* A `link:` / `file:` entry records a filesystem edge rather than a version, and
|
|
20712
|
+
* an empty string is pnpm's "specifier only, nothing installed" marker. Both
|
|
20713
|
+
* would be worse than no answer at all: the fallback exists to report a concrete
|
|
20714
|
+
* version movement, and reporting `link:../foo` as a version is noise a
|
|
20715
|
+
* changeset would carry into release notes.
|
|
20716
|
+
*/
|
|
20717
|
+
const isConcreteVersion = (version) => version.length > 0 && !version.startsWith("link:") && !version.startsWith("file:");
|
|
20718
|
+
/**
|
|
20719
|
+
* Build the importer-path → dependency-name → version index a snapshot uses to
|
|
20720
|
+
* answer `catalog:` specifiers its catalog set cannot resolve.
|
|
20721
|
+
*
|
|
20722
|
+
* @remarks
|
|
20723
|
+
* Keyed by **name only** within each importer, deliberately across every
|
|
20724
|
+
* dependency field. The bug this fixes is a peer declared `catalog:effect:peers`
|
|
20725
|
+
* whose importer records no `peerDependencies` entry at all — pnpm writes peer
|
|
20726
|
+
* declarations into the importer block only when they are also installed, so the
|
|
20727
|
+
* concrete version lives on the package's `devDependencies` row for the same
|
|
20728
|
+
* name. Joining by name across fields is what finds it; joining by field, or by
|
|
20729
|
+
* matching the recorded specifier, would not.
|
|
20730
|
+
*
|
|
20731
|
+
* Only pnpm populates importer versions; bun and npm record resolved versions on
|
|
20732
|
+
* their package entries instead, so those formats yield an empty index and the
|
|
20733
|
+
* fallback is inert for them.
|
|
20734
|
+
*/
|
|
20735
|
+
const importerVersionsOf = (lockfile) => {
|
|
20736
|
+
const index = Object.create(null);
|
|
20737
|
+
for (const importer of lockfile.importers) {
|
|
20738
|
+
const versions = Object.create(null);
|
|
20739
|
+
for (const dependency of importer.dependencies) {
|
|
20740
|
+
const recorded = dependency.version;
|
|
20741
|
+
if (recorded === void 0) continue;
|
|
20742
|
+
const version = stripPeerSuffix(recorded);
|
|
20743
|
+
if (!isConcreteVersion(version)) continue;
|
|
20744
|
+
versions[dependency.name] ??= version;
|
|
20745
|
+
}
|
|
20746
|
+
index[importer.path] = versions;
|
|
20747
|
+
}
|
|
20748
|
+
return index;
|
|
20749
|
+
};
|
|
20750
|
+
/**
|
|
20751
|
+
* The version every importer agrees `dependency` resolved to, or `undefined`
|
|
20752
|
+
* when they disagree or none record it.
|
|
20753
|
+
*
|
|
20754
|
+
* @remarks
|
|
20755
|
+
* The unambiguity rule is what makes a workspace-wide answer safe from a
|
|
20756
|
+
* snapshot method that receives no importer context. Two packages in one
|
|
20757
|
+
* monorepo may legitimately hold different versions of the same dependency; in
|
|
20758
|
+
* that case there is no single correct answer, so this yields nothing and the
|
|
20759
|
+
* caller keeps today's behavior (no row) rather than inventing a wrong one.
|
|
20760
|
+
*/
|
|
20761
|
+
const unanimousVersionOf = (index, dependency) => {
|
|
20762
|
+
let agreed;
|
|
20763
|
+
for (const versions of Object.values(index)) {
|
|
20764
|
+
const version = versions[dependency];
|
|
20765
|
+
if (version === void 0) continue;
|
|
20766
|
+
if (agreed === void 0) {
|
|
20767
|
+
agreed = version;
|
|
20768
|
+
continue;
|
|
20769
|
+
}
|
|
20770
|
+
if (agreed !== version) return void 0;
|
|
20771
|
+
}
|
|
20772
|
+
return agreed;
|
|
20773
|
+
};
|
|
20774
|
+
//#endregion
|
|
20775
|
+
//#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
|
|
20690
20776
|
/**
|
|
20691
20777
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
20692
20778
|
* resolution semantic in the package.
|
|
@@ -21005,7 +21091,15 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21005
21091
|
}));
|
|
21006
21092
|
const assemble = effect.Effect.gen(function* () {
|
|
21007
21093
|
const root = yield* effect.Effect.suspend(() => roots.find(options?.cwd ?? process.cwd()));
|
|
21008
|
-
const
|
|
21094
|
+
const lockfileOutputs = yield* lockfiles.read().pipe(effect.Effect.map((lockfile) => ({
|
|
21095
|
+
catalogs: CatalogSet.fromLockfile(lockfile),
|
|
21096
|
+
importerVersions: importerVersionsOf(lockfile)
|
|
21097
|
+
})), effect.Effect.catch((_failure) => effect.Effect.succeed({
|
|
21098
|
+
catalogs: CatalogSet.empty(),
|
|
21099
|
+
importerVersions: {}
|
|
21100
|
+
})));
|
|
21101
|
+
const fromLockfile = lockfileOutputs.catalogs;
|
|
21102
|
+
const importerVersions = lockfileOutputs.importerVersions;
|
|
21009
21103
|
const workspaceYaml = path.join(root, "pnpm-workspace.yaml");
|
|
21010
21104
|
const hasPnpmWorkspace = yield* probeExists(workspaceYaml);
|
|
21011
21105
|
let inline;
|
|
@@ -21033,7 +21127,8 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21033
21127
|
const manifestPath = path.join(root, "package.json");
|
|
21034
21128
|
if (!(yield* probeExists(manifestPath))) return {
|
|
21035
21129
|
catalogs: fromLockfile,
|
|
21036
|
-
releaseAgeGate: ReleaseAgeGate.combine()
|
|
21130
|
+
releaseAgeGate: ReleaseAgeGate.combine(),
|
|
21131
|
+
importerVersions
|
|
21037
21132
|
};
|
|
21038
21133
|
const text = yield* fs.readFileString(manifestPath).pipe(effect.Effect.mapError((cause) => new CatalogAssemblyError({
|
|
21039
21134
|
source: "manifest",
|
|
@@ -21052,7 +21147,8 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21052
21147
|
}));
|
|
21053
21148
|
return {
|
|
21054
21149
|
catalogs: assembled,
|
|
21055
|
-
releaseAgeGate
|
|
21150
|
+
releaseAgeGate,
|
|
21151
|
+
importerVersions
|
|
21056
21152
|
};
|
|
21057
21153
|
});
|
|
21058
21154
|
const [resolveOnce, invalidate] = yield* effect.Effect.cachedInvalidateWithTTL(assemble, effect.Duration.infinity);
|
|
@@ -21066,6 +21162,9 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21066
21162
|
}),
|
|
21067
21163
|
releaseAgeGate: effect.Effect.fn("WorkspaceCatalogs.releaseAgeGate")(function* () {
|
|
21068
21164
|
return (yield* memo).releaseAgeGate;
|
|
21165
|
+
}),
|
|
21166
|
+
importerVersions: effect.Effect.fn("WorkspaceCatalogs.importerVersions")(function* () {
|
|
21167
|
+
return (yield* memo).importerVersions;
|
|
21069
21168
|
})
|
|
21070
21169
|
};
|
|
21071
21170
|
});
|
|
@@ -21116,7 +21215,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
21116
21215
|
}));
|
|
21117
21216
|
};
|
|
21118
21217
|
//#endregion
|
|
21119
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
21218
|
+
//#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
|
|
21120
21219
|
const EMPTY = Object.freeze(Object.create(null));
|
|
21121
21220
|
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)));
|
|
21122
21221
|
/**
|
|
@@ -21200,7 +21299,19 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
21200
21299
|
/** Every workspace package captured at this moment. */
|
|
21201
21300
|
packages: effect.Schema.Array(PackageStateSnapshot),
|
|
21202
21301
|
/** The catalog set assembled at this moment. */
|
|
21203
|
-
catalogs: CatalogSet
|
|
21302
|
+
catalogs: CatalogSet,
|
|
21303
|
+
/**
|
|
21304
|
+
* Each importer's dependency-name → resolved-version map, as the manager's
|
|
21305
|
+
* lockfile recorded it at this moment.
|
|
21306
|
+
*
|
|
21307
|
+
* @remarks
|
|
21308
|
+
* Defaults to `{}`, so a `WorkspaceStateSnapshot` serialized before this field
|
|
21309
|
+
* existed still decodes — and an empty index simply makes the `catalog:`
|
|
21310
|
+
* fallback in {@link WorkspaceStateSnapshot.resolve} inert, which is exactly
|
|
21311
|
+
* the behavior those older values were captured under. Only pnpm records
|
|
21312
|
+
* importer versions; bun and npm yield an empty index.
|
|
21313
|
+
*/
|
|
21314
|
+
importerVersions: effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Record(effect.Schema.String, effect.Schema.String)))
|
|
21204
21315
|
}) {
|
|
21205
21316
|
#versionIndex;
|
|
21206
21317
|
#packageIndex;
|
|
@@ -21235,16 +21346,62 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
21235
21346
|
* unparseable string — is `Option.none()`, because there is no indirection to
|
|
21236
21347
|
* resolve. Total.
|
|
21237
21348
|
*
|
|
21349
|
+
* A `catalog:` specifier the catalog set cannot resolve falls back to this
|
|
21350
|
+
* snapshot's `importerVersions` — but only to a version
|
|
21351
|
+
* **every** importer recording that dependency agrees on. A catalog injected
|
|
21352
|
+
* by a config-dependency pnpmfile hook appears in no committed catalog source,
|
|
21353
|
+
* so without this fallback both sides of a before/after diff resolve it to the
|
|
21354
|
+
* same raw string and a real version movement produces no row. When importers
|
|
21355
|
+
* disagree there is no single correct answer, so this stays `Option.none()`
|
|
21356
|
+
* rather than inventing one; {@link WorkspaceStateSnapshot.resolveIn} answers
|
|
21357
|
+
* precisely for callers that know which importer is asking.
|
|
21358
|
+
*
|
|
21238
21359
|
* @param dependency - The dependency's package name (what `workspace:` /
|
|
21239
21360
|
* `catalog:` resolve for).
|
|
21240
21361
|
* @param specifier - The raw specifier string.
|
|
21241
21362
|
*/
|
|
21242
21363
|
resolve(dependency, specifier) {
|
|
21364
|
+
return this.#resolveWith(dependency, specifier, () => effect.Option.fromUndefinedOr(unanimousVersionOf(this.importerVersions ?? {}, dependency)));
|
|
21365
|
+
}
|
|
21366
|
+
/**
|
|
21367
|
+
* The concrete range or version a specifier resolved to AS OF this snapshot,
|
|
21368
|
+
* scoped to the importer that declared it.
|
|
21369
|
+
*
|
|
21370
|
+
* @remarks
|
|
21371
|
+
* Identical to {@link WorkspaceStateSnapshot.resolve} except in how an
|
|
21372
|
+
* unresolvable `catalog:` specifier falls back: this consults **only**
|
|
21373
|
+
* `importerPath`'s own recorded versions, so a monorepo whose packages hold
|
|
21374
|
+
* different versions of one dependency still gets an exact answer where
|
|
21375
|
+
* `resolve` must abstain. Prefer this whenever the caller knows the importer —
|
|
21376
|
+
* a consumer iterating `packages` has `relativePath` in hand, which is the
|
|
21377
|
+
* importer key (`"."` for the root package).
|
|
21378
|
+
*
|
|
21379
|
+
* An unknown `importerPath`, or one recording nothing for `dependency`, is
|
|
21380
|
+
* `Option.none()`. Total.
|
|
21381
|
+
*
|
|
21382
|
+
* @param importerPath - The importer's path relative to the workspace root,
|
|
21383
|
+
* `"."` for the root package — `PackageStateSnapshot.relativePath`.
|
|
21384
|
+
* @param dependency - The dependency's package name.
|
|
21385
|
+
* @param specifier - The raw specifier string.
|
|
21386
|
+
*/
|
|
21387
|
+
resolveIn(importerPath, dependency, specifier) {
|
|
21388
|
+
return this.#resolveWith(dependency, specifier, () => effect.Option.fromUndefinedOr(this.importerVersions?.[importerPath]?.[dependency]));
|
|
21389
|
+
}
|
|
21390
|
+
/**
|
|
21391
|
+
* The shared resolution path: classify, answer from the captured state, and
|
|
21392
|
+
* consult `onUnresolvedCatalog` only for a `catalog:` specifier the catalog set
|
|
21393
|
+
* could not answer. A plain range is already its own answer and must keep
|
|
21394
|
+
* resolving to `Option.none()` so the caller falls back to the raw string.
|
|
21395
|
+
*/
|
|
21396
|
+
#resolveWith(dependency, specifier, onUnresolvedCatalog) {
|
|
21243
21397
|
const exit = effect.Schema.decodeUnknownExit(DependencySpecifier.FromString)(specifier);
|
|
21244
21398
|
if (!effect.Exit.isSuccess(exit)) return effect.Option.none();
|
|
21245
21399
|
const classified = exit.value;
|
|
21246
21400
|
switch (classified._tag) {
|
|
21247
|
-
case "catalog":
|
|
21401
|
+
case "catalog": {
|
|
21402
|
+
const fromCatalogs = this.catalogs.rangeOf(dependency, classified.name);
|
|
21403
|
+
return effect.Option.isSome(fromCatalogs) ? fromCatalogs : onUnresolvedCatalog();
|
|
21404
|
+
}
|
|
21248
21405
|
case "workspace": return effect.Option.fromUndefinedOr(this.#versions().get(dependency));
|
|
21249
21406
|
default: return effect.Option.none();
|
|
21250
21407
|
}
|
|
@@ -21281,7 +21438,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
21281
21438
|
}
|
|
21282
21439
|
};
|
|
21283
21440
|
//#endregion
|
|
21284
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
21441
|
+
//#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
|
|
21285
21442
|
/** Whether `value` is a non-null, non-array object. */
|
|
21286
21443
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21287
21444
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -21335,6 +21492,11 @@ const bunInlineCatalogs = (manifest) => {
|
|
|
21335
21492
|
catalogs: workspaces.catalogs
|
|
21336
21493
|
});
|
|
21337
21494
|
};
|
|
21495
|
+
/** The contribution of an absent or malformed lockfile: nothing, on both counts. */
|
|
21496
|
+
const EMPTY_LOCKFILE_RECORD = {
|
|
21497
|
+
catalogs: CatalogSet.empty(),
|
|
21498
|
+
importerVersions: {}
|
|
21499
|
+
};
|
|
21338
21500
|
/**
|
|
21339
21501
|
* Reads workspace state at a git ref with no checkout, and the live worktree.
|
|
21340
21502
|
*
|
|
@@ -21367,10 +21529,17 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21367
21529
|
const roots = yield* WorkspaceRoot;
|
|
21368
21530
|
const discovery = yield* WorkspaceDiscovery;
|
|
21369
21531
|
const catalogsService = yield* WorkspaceCatalogs;
|
|
21370
|
-
/**
|
|
21371
|
-
|
|
21372
|
-
|
|
21373
|
-
|
|
21532
|
+
/**
|
|
21533
|
+
* What a manager's lockfile records at the ref: its catalog set and its
|
|
21534
|
+
* importer versions, from ONE parse. Empty on both counts when the
|
|
21535
|
+
* lockfile is absent or malformed.
|
|
21536
|
+
*/
|
|
21537
|
+
const lockfileRecord = (root, ref, format) => git.show(root, ref, `./${filenameFor(format)}`).pipe(effect.Effect.flatMap((content) => effect.Option.match(content, {
|
|
21538
|
+
onNone: () => effect.Effect.succeed(EMPTY_LOCKFILE_RECORD),
|
|
21539
|
+
onSome: (text) => Lockfile.parse(text, { format }).pipe(effect.Effect.map((lockfile) => ({
|
|
21540
|
+
catalogs: CatalogSet.fromLockfile(lockfile),
|
|
21541
|
+
importerVersions: importerVersionsOf(lockfile)
|
|
21542
|
+
})), effect.Effect.catch(() => effect.Effect.succeed(EMPTY_LOCKFILE_RECORD)))
|
|
21374
21543
|
})));
|
|
21375
21544
|
const computeAt = (root, ref) => effect.Effect.gen(function* () {
|
|
21376
21545
|
const pnpmWorkspaceText = yield* git.show(root, ref, "./pnpm-workspace.yaml");
|
|
@@ -21381,7 +21550,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21381
21550
|
});
|
|
21382
21551
|
let patterns;
|
|
21383
21552
|
let inline;
|
|
21384
|
-
let
|
|
21553
|
+
let recorded;
|
|
21385
21554
|
if (effect.Option.isSome(pnpmWorkspaceText)) {
|
|
21386
21555
|
const pnpmPatterns = pnpmPatternsOf(yield* Yaml.parse(pnpmWorkspaceText.value).pipe(effect.Effect.mapError((cause) => new CatalogAssemblyError({
|
|
21387
21556
|
source: "manifest",
|
|
@@ -21390,13 +21559,13 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21390
21559
|
}))));
|
|
21391
21560
|
patterns = pnpmPatterns.length > 0 ? pnpmPatterns : manifestPatternsOf(rootManifest);
|
|
21392
21561
|
inline = yield* CatalogSet.fromWorkspaceYaml(pnpmWorkspaceText.value);
|
|
21393
|
-
|
|
21562
|
+
recorded = yield* lockfileRecord(root, ref, "pnpm");
|
|
21394
21563
|
} else {
|
|
21395
21564
|
patterns = manifestPatternsOf(rootManifest);
|
|
21396
21565
|
inline = bunInlineCatalogs(rootManifest);
|
|
21397
|
-
|
|
21566
|
+
recorded = yield* lockfileRecord(root, ref, "bun");
|
|
21398
21567
|
}
|
|
21399
|
-
const catalogs = CatalogSet.merge(
|
|
21568
|
+
const catalogs = CatalogSet.merge(recorded.catalogs, inline);
|
|
21400
21569
|
const globs = yield* GlobSet.compile(patterns).pipe(effect.Effect.mapError((error) => new CatalogAssemblyError({
|
|
21401
21570
|
source: "manifest",
|
|
21402
21571
|
path: error.pattern,
|
|
@@ -21423,7 +21592,8 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21423
21592
|
for (const member of members) if (effect.Option.isSome(member)) packages.push(member.value);
|
|
21424
21593
|
return WorkspaceStateSnapshot.make({
|
|
21425
21594
|
packages,
|
|
21426
|
-
catalogs
|
|
21595
|
+
catalogs,
|
|
21596
|
+
importerVersions: recorded.importerVersions
|
|
21427
21597
|
});
|
|
21428
21598
|
});
|
|
21429
21599
|
const atCaches = /* @__PURE__ */ new Map();
|
|
@@ -21447,6 +21617,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21447
21617
|
worktree: effect.Effect.fn("WorkspaceSnapshots.worktree")(function* () {
|
|
21448
21618
|
const packages = yield* discovery.listPackages();
|
|
21449
21619
|
const catalogs = yield* catalogsService.set();
|
|
21620
|
+
const importerVersions = yield* catalogsService.importerVersions();
|
|
21450
21621
|
const snapshotPackages = packages.map((pkg) => PackageStateSnapshot.make({
|
|
21451
21622
|
name: pkg.name,
|
|
21452
21623
|
version: pkg.version,
|
|
@@ -21458,7 +21629,8 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21458
21629
|
}));
|
|
21459
21630
|
return WorkspaceStateSnapshot.make({
|
|
21460
21631
|
packages: snapshotPackages,
|
|
21461
|
-
catalogs
|
|
21632
|
+
catalogs,
|
|
21633
|
+
importerVersions
|
|
21462
21634
|
});
|
|
21463
21635
|
})
|
|
21464
21636
|
};
|
|
@@ -21473,7 +21645,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
21473
21645
|
static layer = (options) => effect.Layer.effect(WorkspaceSnapshots, WorkspaceSnapshots.make(options));
|
|
21474
21646
|
};
|
|
21475
21647
|
//#endregion
|
|
21476
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
21648
|
+
//#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
|
|
21477
21649
|
/**
|
|
21478
21650
|
* Every service that needs only a filesystem: root, package-manager detection,
|
|
21479
21651
|
* discovery, lockfile reading, catalogs and publishability.
|
|
@@ -43164,6 +43336,80 @@ function isUint8Array(value) {
|
|
|
43164
43336
|
//#endregion
|
|
43165
43337
|
//#region ../silk-effects/dist/dev/pkg/changesets/utils/remark-pipeline.js
|
|
43166
43338
|
/**
|
|
43339
|
+
* Marker set on the `data` of a text node whose value must be written to
|
|
43340
|
+
* markdown verbatim rather than escaped.
|
|
43341
|
+
*
|
|
43342
|
+
* @remarks
|
|
43343
|
+
* `remark-stringify` escapes any character that could open a markdown
|
|
43344
|
+
* construct. Inside a dependency table that is always wrong: with
|
|
43345
|
+
* `remark-gfm` enabled `~` is the strikethrough delimiter, so the specifier
|
|
43346
|
+
* `~0.2.1` is written as `\~0.2.1`, and `_` in a package name becomes `\_`.
|
|
43347
|
+
* The corruption compounds on every re-serialization, and dependency-table
|
|
43348
|
+
* cells round-trip through consolidation and PR-body reconstruction.
|
|
43349
|
+
*
|
|
43350
|
+
* The marker is deliberately narrow. It is set only by the dependency-table
|
|
43351
|
+
* cell builder, whose cell vocabulary is closed — package name, dependency
|
|
43352
|
+
* type, action, version specifier, and the em-dash sentinel — and none of
|
|
43353
|
+
* those can legitimately carry markdown. Prose elsewhere in a changeset keeps
|
|
43354
|
+
* the default escaping.
|
|
43355
|
+
*
|
|
43356
|
+
* @internal
|
|
43357
|
+
*/
|
|
43358
|
+
const LITERAL_TEXT_MARKER = "silkLiteralText";
|
|
43359
|
+
/**
|
|
43360
|
+
* Mark a text node so {@link createRemarkProcessor} writes it verbatim.
|
|
43361
|
+
*
|
|
43362
|
+
* @param value - The literal cell text
|
|
43363
|
+
* @returns An MDAST `Text` node carrying the literal marker
|
|
43364
|
+
*
|
|
43365
|
+
* @internal
|
|
43366
|
+
*/
|
|
43367
|
+
function literalText(value) {
|
|
43368
|
+
return {
|
|
43369
|
+
type: "text",
|
|
43370
|
+
value,
|
|
43371
|
+
data: { [LITERAL_TEXT_MARKER]: true }
|
|
43372
|
+
};
|
|
43373
|
+
}
|
|
43374
|
+
/**
|
|
43375
|
+
* Whether a text node was marked by {@link literalText}.
|
|
43376
|
+
*
|
|
43377
|
+
* @internal
|
|
43378
|
+
*/
|
|
43379
|
+
function isLiteralText(node) {
|
|
43380
|
+
return node.data?.[LITERAL_TEXT_MARKER] === true;
|
|
43381
|
+
}
|
|
43382
|
+
/**
|
|
43383
|
+
* Escape the two characters that would otherwise corrupt the table grid.
|
|
43384
|
+
*
|
|
43385
|
+
* @remarks
|
|
43386
|
+
* A `|` would close the cell early and a `\` would be read as an escape
|
|
43387
|
+
* introducer, so both are escaped to keep the written cell parseable back to
|
|
43388
|
+
* its exact input. Every other character is emitted as-is. Because parsing
|
|
43389
|
+
* consumes the backslash, a value that already carries a legacy `\~` from the
|
|
43390
|
+
* old escaping path re-parses to its clean form rather than accumulating
|
|
43391
|
+
* another layer.
|
|
43392
|
+
*
|
|
43393
|
+
* @internal
|
|
43394
|
+
*/
|
|
43395
|
+
function escapeCellLiteral(value) {
|
|
43396
|
+
return value.replace(/[\\|]/g, "\\$&");
|
|
43397
|
+
}
|
|
43398
|
+
/**
|
|
43399
|
+
* `mdast-util-to-markdown` handler overrides used by the shared processor.
|
|
43400
|
+
*
|
|
43401
|
+
* @remarks
|
|
43402
|
+
* Replaces the default `text` handler — which is `state.safe(node.value, info)`
|
|
43403
|
+
* — with one that bypasses escaping for nodes marked by {@link literalText}
|
|
43404
|
+
* and delegates to the default behavior for everything else.
|
|
43405
|
+
*
|
|
43406
|
+
* @internal
|
|
43407
|
+
*/
|
|
43408
|
+
const literalTextHandlers = { text: (node, _parent, state, info) => {
|
|
43409
|
+
const text = node;
|
|
43410
|
+
return isLiteralText(text) ? escapeCellLiteral(text.value) : state.safe(text.value, info);
|
|
43411
|
+
} };
|
|
43412
|
+
/**
|
|
43167
43413
|
* Create a unified processor configured with remark-parse, remark-gfm,
|
|
43168
43414
|
* and remark-stringify.
|
|
43169
43415
|
*
|
|
@@ -43171,7 +43417,8 @@ function isUint8Array(value) {
|
|
|
43171
43417
|
* Each call creates a fresh processor instance. The plugin chain is:
|
|
43172
43418
|
* 1. `remark-parse` — markdown to MDAST
|
|
43173
43419
|
* 2. `remark-gfm` — GitHub Flavored Markdown extensions (tables, etc.)
|
|
43174
|
-
* 3. `remark-stringify` — MDAST back to markdown
|
|
43420
|
+
* 3. `remark-stringify` — MDAST back to markdown, with the
|
|
43421
|
+
* {@link literalText} handler override
|
|
43175
43422
|
*
|
|
43176
43423
|
* @privateRemarks
|
|
43177
43424
|
* Return type is intentionally inferred because the unified `Processor`
|
|
@@ -43182,7 +43429,7 @@ function isUint8Array(value) {
|
|
|
43182
43429
|
* @internal
|
|
43183
43430
|
*/
|
|
43184
43431
|
function createRemarkProcessor() {
|
|
43185
|
-
return unified().use(remarkParse).use(remarkGfm).use(remarkStringify);
|
|
43432
|
+
return unified().use(remarkParse).use(remarkGfm).use(remarkStringify, { handlers: literalTextHandlers });
|
|
43186
43433
|
}
|
|
43187
43434
|
/**
|
|
43188
43435
|
* Parse a markdown string into an MDAST AST synchronously.
|
|
@@ -43690,6 +43937,12 @@ function parseDependencyTable(table) {
|
|
|
43690
43937
|
/**
|
|
43691
43938
|
* Create a table cell with a text node.
|
|
43692
43939
|
*
|
|
43940
|
+
* @remarks
|
|
43941
|
+
* The cell text is marked literal, so stringification writes it verbatim
|
|
43942
|
+
* instead of escaping characters that could open a markdown construct. See
|
|
43943
|
+
* {@link literalText} — without it `~0.2.1` is written as `\~0.2.1` and
|
|
43944
|
+
* `some_pkg` as `some\_pkg`.
|
|
43945
|
+
*
|
|
43693
43946
|
* @param text - The cell text content
|
|
43694
43947
|
* @returns An MDAST `TableCell` node
|
|
43695
43948
|
*
|
|
@@ -43698,10 +43951,7 @@ function parseDependencyTable(table) {
|
|
|
43698
43951
|
function makeCell(text) {
|
|
43699
43952
|
return {
|
|
43700
43953
|
type: "tableCell",
|
|
43701
|
-
children: [
|
|
43702
|
-
type: "text",
|
|
43703
|
-
value: text
|
|
43704
|
-
}]
|
|
43954
|
+
children: [literalText(text)]
|
|
43705
43955
|
};
|
|
43706
43956
|
}
|
|
43707
43957
|
/**
|
|
@@ -43776,11 +44026,10 @@ function serializeDependencyTable(rows) {
|
|
|
43776
44026
|
* @internal
|
|
43777
44027
|
*/
|
|
43778
44028
|
function serializeDependencyTableToMarkdown(rows) {
|
|
43779
|
-
|
|
44029
|
+
return stringifyMarkdown({
|
|
43780
44030
|
type: "root",
|
|
43781
44031
|
children: [serializeDependencyTable(rows)]
|
|
43782
|
-
};
|
|
43783
|
-
return unified().use(remarkGfm).use(remarkStringify).stringify(tree).trim();
|
|
44032
|
+
}).trim();
|
|
43784
44033
|
}
|
|
43785
44034
|
/**
|
|
43786
44035
|
* Sort priority for dependency actions: removed first, then updated, then added.
|
|
@@ -46972,10 +47221,23 @@ const DEP_TYPE_MAP = [
|
|
|
46972
47221
|
["optionalDependencies", "optionalDependency"]
|
|
46973
47222
|
];
|
|
46974
47223
|
/**
|
|
46975
|
-
* Resolve a specifier against the snapshot it belongs to,
|
|
46976
|
-
*
|
|
46977
|
-
|
|
46978
|
-
|
|
47224
|
+
* Resolve a specifier against the snapshot it belongs to, scoped to the
|
|
47225
|
+
* importer that declared it, falling back to the raw specifier string when
|
|
47226
|
+
* the snapshot cannot resolve it.
|
|
47227
|
+
*
|
|
47228
|
+
* @remarks
|
|
47229
|
+
* Uses `resolveIn` rather than the workspace-wide `resolve`. Both consult the
|
|
47230
|
+
* ref's own lockfile importer entries when a `catalog:` specifier is not in the
|
|
47231
|
+
* catalog set — which is what makes hook-injected catalogs (`catalog:effect:peers`,
|
|
47232
|
+
* injected by a config-dependency pnpmfile and recorded in neither
|
|
47233
|
+
* `pnpm-workspace.yaml` nor the lockfile's `catalogs:` block) resolvable at all.
|
|
47234
|
+
* The workspace-wide form abstains whenever two importers disagree on a
|
|
47235
|
+
* dependency's version, which in a multi-package repo reproduces the original
|
|
47236
|
+
* defect: both sides fall back to the identical raw specifier, compare equal,
|
|
47237
|
+
* and emit no row. Scoping to the declaring importer answers precisely where
|
|
47238
|
+
* the workspace-wide form cannot.
|
|
47239
|
+
*/
|
|
47240
|
+
const resolveOrRaw = (snapshot, importerPath, dep, spec) => effect.Option.getOrElse(snapshot.resolveIn(importerPath, dep, spec), () => spec);
|
|
46979
47241
|
/**
|
|
46980
47242
|
* Drop no-net-change field moves: the same dependency removed from one field
|
|
46981
47243
|
* and added to another with an equal resolved version (e.g. a dep promoted
|
|
@@ -47020,13 +47282,15 @@ function computeWorkspaceDependencyDiffs(before, after) {
|
|
|
47020
47282
|
for (const afterPkg of after.packages) {
|
|
47021
47283
|
const beforePkg = effect.Option.getOrNull(before.package(afterPkg.name));
|
|
47022
47284
|
const rows = [];
|
|
47285
|
+
const afterImporter = afterPkg.relativePath;
|
|
47286
|
+
const beforeImporter = beforePkg?.relativePath ?? afterImporter;
|
|
47023
47287
|
for (const [field, type] of DEP_TYPE_MAP) {
|
|
47024
47288
|
const beforeRecord = beforePkg?.[field] ?? {};
|
|
47025
47289
|
const afterRecord = afterPkg[field];
|
|
47026
47290
|
const seen = /* @__PURE__ */ new Set();
|
|
47027
47291
|
for (const [name, beforeSpec] of Object.entries(beforeRecord)) {
|
|
47028
47292
|
seen.add(name);
|
|
47029
|
-
const from = resolveOrRaw(before, name, beforeSpec);
|
|
47293
|
+
const from = resolveOrRaw(before, beforeImporter, name, beforeSpec);
|
|
47030
47294
|
const afterSpec = afterRecord[name];
|
|
47031
47295
|
if (afterSpec === void 0) {
|
|
47032
47296
|
rows.push({
|
|
@@ -47038,7 +47302,7 @@ function computeWorkspaceDependencyDiffs(before, after) {
|
|
|
47038
47302
|
});
|
|
47039
47303
|
continue;
|
|
47040
47304
|
}
|
|
47041
|
-
const to = resolveOrRaw(after, name, afterSpec);
|
|
47305
|
+
const to = resolveOrRaw(after, afterImporter, name, afterSpec);
|
|
47042
47306
|
if (from !== to) rows.push({
|
|
47043
47307
|
dependency: name,
|
|
47044
47308
|
type,
|
|
@@ -47054,7 +47318,7 @@ function computeWorkspaceDependencyDiffs(before, after) {
|
|
|
47054
47318
|
type,
|
|
47055
47319
|
action: "added",
|
|
47056
47320
|
from: EM_DASH$1,
|
|
47057
|
-
to: resolveOrRaw(after, name, afterSpec)
|
|
47321
|
+
to: resolveOrRaw(after, afterImporter, name, afterSpec)
|
|
47058
47322
|
});
|
|
47059
47323
|
}
|
|
47060
47324
|
}
|
|
@@ -65200,8 +65464,38 @@ function getHeadingLevel(heading) {
|
|
|
65200
65464
|
return sequence ? sequence.text.length : 0;
|
|
65201
65465
|
}
|
|
65202
65466
|
/**
|
|
65467
|
+
* CommonMark backslash escapes: a backslash is literal unless it precedes an
|
|
65468
|
+
* ASCII punctuation character, in which case the pair denotes that character.
|
|
65469
|
+
*/
|
|
65470
|
+
const BACKSLASH_ESCAPE_RE = /\\([!-/:-@[-`{-~])/g;
|
|
65471
|
+
/**
|
|
65472
|
+
* Resolve CommonMark backslash escapes in raw micromark source text.
|
|
65473
|
+
*
|
|
65474
|
+
* @remarks
|
|
65475
|
+
* Every rule in this directory has a sibling remark implementation that reads
|
|
65476
|
+
* the parsed mdast tree, where the parser has already resolved escapes, via
|
|
65477
|
+
* `mdast-util-to-string`. Micromark tokens instead carry RAW source. Comparing
|
|
65478
|
+
* raw text against a value the parsed form would produce makes the two
|
|
65479
|
+
* implementations of one documented rule disagree about the same file
|
|
65480
|
+
* (issue #367).
|
|
65481
|
+
*
|
|
65482
|
+
* Applied at the shared extractors below so both implementations judge the
|
|
65483
|
+
* value a reader actually sees, rather than per-rule where the next extractor
|
|
65484
|
+
* added would silently reintroduce the split.
|
|
65485
|
+
*
|
|
65486
|
+
* @internal
|
|
65487
|
+
*/
|
|
65488
|
+
function unescapeMarkdown(raw) {
|
|
65489
|
+
return raw.replace(BACKSLASH_ESCAPE_RE, "$1");
|
|
65490
|
+
}
|
|
65491
|
+
/**
|
|
65203
65492
|
* Get the plain text content of an `atxHeading` token.
|
|
65204
65493
|
*
|
|
65494
|
+
* @remarks
|
|
65495
|
+
* Escape-resolved, so a heading compares equal to the same heading as the
|
|
65496
|
+
* remark rules see it. `getHeadingLevel` needs no equivalent — it counts
|
|
65497
|
+
* sequence characters rather than reading text.
|
|
65498
|
+
*
|
|
65205
65499
|
* @param heading - The `atxHeading` micromark token
|
|
65206
65500
|
* @returns The heading text, or empty string if no text token found
|
|
65207
65501
|
*
|
|
@@ -65209,7 +65503,7 @@ function getHeadingLevel(heading) {
|
|
|
65209
65503
|
*/
|
|
65210
65504
|
function getHeadingText(heading) {
|
|
65211
65505
|
const textToken = heading.children.find((c) => c.type === "atxHeadingText");
|
|
65212
|
-
return textToken ? textToken.text : "";
|
|
65506
|
+
return textToken ? unescapeMarkdown(textToken.text) : "";
|
|
65213
65507
|
}
|
|
65214
65508
|
//#endregion
|
|
65215
65509
|
//#region ../silk-effects/dist/dev/pkg/changesets/markdownlint/rules/content-structure.js
|
|
@@ -65334,13 +65628,13 @@ const EXPECTED_HEADERS = [
|
|
|
65334
65628
|
* The `tableContent` token has a `.text` property with the cell value.
|
|
65335
65629
|
*
|
|
65336
65630
|
* @param cell - A GFM table cell token (header or data)
|
|
65337
|
-
* @returns The trimmed text content of the cell, or an empty string
|
|
65631
|
+
* @returns The trimmed, escape-resolved text content of the cell, or an empty string
|
|
65338
65632
|
*
|
|
65339
65633
|
* @internal
|
|
65340
65634
|
*/
|
|
65341
65635
|
function getCellText(cell) {
|
|
65342
65636
|
const content = cell.children.find((c) => c.type === "tableContent");
|
|
65343
|
-
return content ? content.text.trim() : "";
|
|
65637
|
+
return content ? unescapeMarkdown(content.text.trim()) : "";
|
|
65344
65638
|
}
|
|
65345
65639
|
/**
|
|
65346
65640
|
* Extract all cell texts from a `tableRow` token.
|