@savvy-web/silk 3.0.3 → 3.0.4
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 +593 -374
- package/changesets-changelog.d.cts +18 -15
- package/changesets-changelog.d.ts +18 -15
- package/changesets-changelog.js +608 -378
- package/changesets-markdownlint.cjs +593 -374
- package/changesets-markdownlint.d.cts +18 -15
- package/changesets-markdownlint.d.ts +18 -15
- package/changesets-markdownlint.js +608 -378
- package/package.json +5 -5
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
|
@@ -56,7 +56,6 @@ let module$1 = require("module");
|
|
|
56
56
|
let semver_classes_range_js = require("semver/classes/range.js");
|
|
57
57
|
semver_classes_range_js = __toESM(semver_classes_range_js, 1);
|
|
58
58
|
let node_child_process = require("node:child_process");
|
|
59
|
-
node_child_process = __toESM(node_child_process, 1);
|
|
60
59
|
let node_stream_promises = require("node:stream/promises");
|
|
61
60
|
let node_stream = require("node:stream");
|
|
62
61
|
let node_readline = require("node:readline");
|
|
@@ -424,7 +423,7 @@ const trimTrailingSlashes = (s) => {
|
|
|
424
423
|
return s.slice(0, end);
|
|
425
424
|
};
|
|
426
425
|
//#endregion
|
|
427
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
426
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/limits.js
|
|
428
427
|
/** Hard cap on pattern length. Upstream minimatch's MAX_PATTERN_LENGTH (64KB). */
|
|
429
428
|
const MAX_PATTERN_LENGTH = 1024 * 64;
|
|
430
429
|
/** Default brace-expansion output budget. Upstream brace-expansion's EXPANSION_MAX. */
|
|
@@ -458,7 +457,7 @@ const assertCap = (name, value) => {
|
|
|
458
457
|
return value;
|
|
459
458
|
};
|
|
460
459
|
//#endregion
|
|
461
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
460
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/unescape.js
|
|
462
461
|
/**
|
|
463
462
|
* Un-escape a string that has been escaped with `escape`.
|
|
464
463
|
*
|
|
@@ -481,11 +480,11 @@ const unescapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = true
|
|
|
481
480
|
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
482
481
|
};
|
|
483
482
|
//#endregion
|
|
484
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
483
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/types.js
|
|
485
484
|
/** The globstar marker in a compiled pattern set. */
|
|
486
485
|
const GLOBSTAR = Symbol("globstar **");
|
|
487
486
|
//#endregion
|
|
488
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
487
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/escape.js
|
|
489
488
|
/**
|
|
490
489
|
* Escape all magic characters in a glob pattern.
|
|
491
490
|
*
|
|
@@ -503,13 +502,13 @@ const escapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = false
|
|
|
503
502
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
504
503
|
};
|
|
505
504
|
//#endregion
|
|
506
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
505
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/assertValidPattern.js
|
|
507
506
|
const assertValidPattern = (pattern) => {
|
|
508
507
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
509
508
|
if (pattern.length > 65536) throw new GuardExceeded("PatternTooLong", MAX_PATTERN_LENGTH, pattern.length);
|
|
510
509
|
};
|
|
511
510
|
//#endregion
|
|
512
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
511
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/braceExpressions.js
|
|
513
512
|
const posixClasses = {
|
|
514
513
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
515
514
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -632,7 +631,7 @@ const parseClass = (glob, position) => {
|
|
|
632
631
|
];
|
|
633
632
|
};
|
|
634
633
|
//#endregion
|
|
635
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
634
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/ast.js
|
|
636
635
|
const types = /* @__PURE__ */ new Set([
|
|
637
636
|
"!",
|
|
638
637
|
"?",
|
|
@@ -1149,7 +1148,7 @@ var AST = class AST {
|
|
|
1149
1148
|
}
|
|
1150
1149
|
};
|
|
1151
1150
|
//#endregion
|
|
1152
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
1151
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/balancedMatch.js
|
|
1153
1152
|
const maybeMatch = (reg, str) => {
|
|
1154
1153
|
const m = str.match(reg);
|
|
1155
1154
|
return m ? m[0] : null;
|
|
@@ -1207,7 +1206,7 @@ const range = (a, b, str) => {
|
|
|
1207
1206
|
return result;
|
|
1208
1207
|
};
|
|
1209
1208
|
//#endregion
|
|
1210
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
1209
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/braceExpansion.js
|
|
1211
1210
|
const escSlash = `\0SLASH${Math.random()}\0`;
|
|
1212
1211
|
const escOpen = `\0OPEN${Math.random()}\0`;
|
|
1213
1212
|
const escClose = `\0CLOSE${Math.random()}\0`;
|
|
@@ -1354,7 +1353,7 @@ function expand_(str, max, isTopInput, depth) {
|
|
|
1354
1353
|
}
|
|
1355
1354
|
}
|
|
1356
1355
|
//#endregion
|
|
1357
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
1356
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/minimatch.js
|
|
1358
1357
|
const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
1359
1358
|
const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
|
|
1360
1359
|
const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
|
|
@@ -1925,7 +1924,7 @@ var Minimatch = class {
|
|
|
1925
1924
|
}
|
|
1926
1925
|
};
|
|
1927
1926
|
//#endregion
|
|
1928
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
1927
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/GlobPattern.js
|
|
1929
1928
|
/**
|
|
1930
1929
|
* Typed failure raised when a glob pattern trips a compile-time guard:
|
|
1931
1930
|
* over-length, brace-expansion budget exhaustion, or nesting past the depth
|
|
@@ -2177,7 +2176,7 @@ var GlobPattern = class GlobPattern extends effect.Schema.Class("GlobPattern")(e
|
|
|
2177
2176
|
})));
|
|
2178
2177
|
};
|
|
2179
2178
|
//#endregion
|
|
2180
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
2179
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/GlobSet.js
|
|
2181
2180
|
const exclusionTarget = (pattern) => pattern.startsWith("!") ? pattern.slice(1) : void 0;
|
|
2182
2181
|
const allCompileUnderDefaults = (patterns) => {
|
|
2183
2182
|
for (const pattern of patterns) {
|
|
@@ -2305,7 +2304,7 @@ var GlobSet = class GlobSet extends effect.Schema.Class("GlobSet")(effect.Schema
|
|
|
2305
2304
|
}
|
|
2306
2305
|
};
|
|
2307
2306
|
//#endregion
|
|
2308
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
2307
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/BunExtension.js
|
|
2309
2308
|
/**
|
|
2310
2309
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2311
2310
|
* when the format is `"bun"`.
|
|
@@ -2326,7 +2325,7 @@ var BunExtension = class extends effect.Schema.Class("BunExtension")({
|
|
|
2326
2325
|
trustedDependencies: effect.Schema.optionalKey(effect.Schema.Array(effect.Schema.String))
|
|
2327
2326
|
}) {};
|
|
2328
2327
|
//#endregion
|
|
2329
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
2328
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/CatalogResolver.js
|
|
2330
2329
|
/**
|
|
2331
2330
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2332
2331
|
* version ranges.
|
|
@@ -2372,7 +2371,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
|
|
|
2372
2371
|
static noop = effect.Layer.succeed(CatalogResolver, { rangeOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2373
2372
|
};
|
|
2374
2373
|
//#endregion
|
|
2375
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
2374
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/WorkspaceResolver.js
|
|
2376
2375
|
/**
|
|
2377
2376
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2378
2377
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2433,7 +2432,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
|
|
|
2433
2432
|
static noop = effect.Layer.succeed(WorkspaceResolver, { versionOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2434
2433
|
};
|
|
2435
2434
|
//#endregion
|
|
2436
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
2435
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/CatalogAssemblyError.js
|
|
2437
2436
|
/**
|
|
2438
2437
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2439
2438
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2477,7 +2476,7 @@ var CatalogAssemblyError = class extends effect.Schema.TaggedErrorClass()("Catal
|
|
|
2477
2476
|
}
|
|
2478
2477
|
};
|
|
2479
2478
|
//#endregion
|
|
2480
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
2479
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/DependencySection.js
|
|
2481
2480
|
/**
|
|
2482
2481
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2483
2482
|
* way consumers branch on it.
|
|
@@ -2509,7 +2508,7 @@ Object.fromEntries(Object.entries({
|
|
|
2509
2508
|
optional: "optionalDependencies"
|
|
2510
2509
|
}).map(([kind, field]) => [field, kind]));
|
|
2511
2510
|
//#endregion
|
|
2512
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
2511
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/internal/desugar.js
|
|
2513
2512
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2514
2513
|
major,
|
|
2515
2514
|
minor,
|
|
@@ -2598,7 +2597,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2598
2597
|
return [comp(">=", lowerVersion)];
|
|
2599
2598
|
};
|
|
2600
2599
|
//#endregion
|
|
2601
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
2600
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/internal/grammar.js
|
|
2602
2601
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2603
2602
|
var ParseFailure = class {
|
|
2604
2603
|
position;
|
|
@@ -2993,7 +2992,7 @@ const formatComparator = (c) => {
|
|
|
2993
2992
|
/** Print comparator sets as `a b || c d`. */
|
|
2994
2993
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
2995
2994
|
//#endregion
|
|
2996
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
2995
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/internal/order.js
|
|
2997
2996
|
/**
|
|
2998
2997
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
2999
2998
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3046,7 +3045,7 @@ const compareBuild = (a, b) => {
|
|
|
3046
3045
|
return 0;
|
|
3047
3046
|
};
|
|
3048
3047
|
//#endregion
|
|
3049
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3048
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/SemVer.js
|
|
3050
3049
|
/**
|
|
3051
3050
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3052
3051
|
*
|
|
@@ -3447,7 +3446,7 @@ var SemVerBump = class {
|
|
|
3447
3446
|
}
|
|
3448
3447
|
};
|
|
3449
3448
|
//#endregion
|
|
3450
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3449
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/Comparator.js
|
|
3451
3450
|
/**
|
|
3452
3451
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3453
3452
|
*
|
|
@@ -3547,7 +3546,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
|
|
|
3547
3546
|
}
|
|
3548
3547
|
};
|
|
3549
3548
|
//#endregion
|
|
3550
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3549
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/internal/normalize.js
|
|
3551
3550
|
const operatorWeight = (op) => {
|
|
3552
3551
|
switch (op) {
|
|
3553
3552
|
case ">=": return 0;
|
|
@@ -3578,7 +3577,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3578
3577
|
/** Normalize every comparator set in a range: sort and deduplicate each independently. */
|
|
3579
3578
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3580
3579
|
//#endregion
|
|
3581
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3580
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/Range.js
|
|
3582
3581
|
/**
|
|
3583
3582
|
* Indicates that a string could not be parsed as a range expression.
|
|
3584
3583
|
*
|
|
@@ -3847,7 +3846,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
3847
3846
|
return true;
|
|
3848
3847
|
};
|
|
3849
3848
|
//#endregion
|
|
3850
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
3849
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/DependencySpecifier.js
|
|
3851
3850
|
/**
|
|
3852
3851
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
3853
3852
|
*
|
|
@@ -4054,7 +4053,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4054
4053
|
FromString: fromString
|
|
4055
4054
|
});
|
|
4056
4055
|
//#endregion
|
|
4057
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
4056
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/IntegrityHash.js
|
|
4058
4057
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4059
4058
|
const COREPACK_RE = /^(sha1|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4060
4059
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4107,7 +4106,7 @@ const IntegrityHash = Object.assign(brandedIntegrity, {
|
|
|
4107
4106
|
decode: decode$2
|
|
4108
4107
|
});
|
|
4109
4108
|
//#endregion
|
|
4110
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4109
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/ImporterDependency.js
|
|
4111
4110
|
/**
|
|
4112
4111
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
4113
4112
|
*
|
|
@@ -4135,7 +4134,7 @@ var ImporterDependency = class extends effect.Schema.Class("ImporterDependency")
|
|
|
4135
4134
|
depType: DependencyField
|
|
4136
4135
|
}) {};
|
|
4137
4136
|
//#endregion
|
|
4138
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4137
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/LockfileImporter.js
|
|
4139
4138
|
/**
|
|
4140
4139
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
4141
4140
|
*
|
|
@@ -4159,7 +4158,7 @@ var LockfileImporter = class extends effect.Schema.Class("LockfileImporter")({
|
|
|
4159
4158
|
dependencies: effect.Schema.Array(ImporterDependency)
|
|
4160
4159
|
}) {};
|
|
4161
4160
|
//#endregion
|
|
4162
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4161
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/ResolvedPackage.js
|
|
4163
4162
|
const EMPTY_DEPENDENCIES = {};
|
|
4164
4163
|
/**
|
|
4165
4164
|
* A package resolved from a lockfile.
|
|
@@ -4194,7 +4193,7 @@ var ResolvedPackage = class extends effect.Schema.Class("ResolvedPackage")({
|
|
|
4194
4193
|
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)))
|
|
4195
4194
|
}) {};
|
|
4196
4195
|
//#endregion
|
|
4197
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4196
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/WorkspaceDependency.js
|
|
4198
4197
|
/**
|
|
4199
4198
|
* A directed dependency edge between two workspace packages as recorded in
|
|
4200
4199
|
* the lockfile.
|
|
@@ -4216,7 +4215,7 @@ var WorkspaceDependency = class extends effect.Schema.Class("WorkspaceDependency
|
|
|
4216
4215
|
constraint: effect.Schema.String
|
|
4217
4216
|
}) {};
|
|
4218
4217
|
//#endregion
|
|
4219
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4218
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/PnpmExtension.js
|
|
4220
4219
|
/**
|
|
4221
4220
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
4222
4221
|
* when the format is `"pnpm"`.
|
|
@@ -4241,7 +4240,7 @@ var PnpmExtension = class extends effect.Schema.Class("PnpmExtension")({
|
|
|
4241
4240
|
}))
|
|
4242
4241
|
}) {};
|
|
4243
4242
|
//#endregion
|
|
4244
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4243
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/LockfileFormat.js
|
|
4245
4244
|
/**
|
|
4246
4245
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
4247
4246
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -4275,7 +4274,7 @@ const FILENAMES = {
|
|
|
4275
4274
|
*/
|
|
4276
4275
|
const filenameFor = (format) => FILENAMES[format];
|
|
4277
4276
|
//#endregion
|
|
4278
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4277
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/shared.js
|
|
4279
4278
|
/**
|
|
4280
4279
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
4281
4280
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -4401,7 +4400,7 @@ const extractWorkspaceDeps = (workspaces, workspaceNames) => {
|
|
|
4401
4400
|
return deps;
|
|
4402
4401
|
};
|
|
4403
4402
|
//#endregion
|
|
4404
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
4403
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/JsoncNode.js
|
|
4405
4404
|
/**
|
|
4406
4405
|
* Discriminator values for JSONC AST node types: the JSON value types
|
|
4407
4406
|
* (`string`/`number`/`boolean`/`null`), the structural types
|
|
@@ -4576,7 +4575,7 @@ function evaluateNode(node, depth) {
|
|
|
4576
4575
|
}
|
|
4577
4576
|
}
|
|
4578
4577
|
//#endregion
|
|
4579
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
4578
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/internal/scanner.js
|
|
4580
4579
|
const isWhitespace = (ch) => ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 65279;
|
|
4581
4580
|
const isLineBreak$1 = (ch) => ch === 10 || ch === 13 || ch === 8232 || ch === 8233;
|
|
4582
4581
|
const isDigit$1 = (ch) => ch >= 48 && ch <= 57;
|
|
@@ -4872,7 +4871,7 @@ const createScanner$2 = (text, ignoreTrivia = false) => {
|
|
|
4872
4871
|
};
|
|
4873
4872
|
};
|
|
4874
4873
|
//#endregion
|
|
4875
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
4874
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/internal/skip.js
|
|
4876
4875
|
/**
|
|
4877
4876
|
* Iteratively consume the value beginning at the cursor's current token and
|
|
4878
4877
|
* return its tight end offset (excludes trailing whitespace/comments).
|
|
@@ -4902,7 +4901,7 @@ const skipBalancedValue = (cursor) => {
|
|
|
4902
4901
|
return end;
|
|
4903
4902
|
};
|
|
4904
4903
|
//#endregion
|
|
4905
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
4904
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/internal/parser.js
|
|
4906
4905
|
/**
|
|
4907
4906
|
* The public parse-error code vocabulary. The facade builds its `@public`
|
|
4908
4907
|
* `JsoncParseErrorCode` schema from this array; the parser produces these codes
|
|
@@ -5315,7 +5314,7 @@ const parseTree$2 = (text, flags) => {
|
|
|
5315
5314
|
};
|
|
5316
5315
|
};
|
|
5317
5316
|
//#endregion
|
|
5318
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
5317
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/Jsonc.js
|
|
5319
5318
|
/**
|
|
5320
5319
|
* The single public parse-error code vocabulary, appearing as the `code` field
|
|
5321
5320
|
* of {@link JsoncParseErrorDetail}.
|
|
@@ -5360,6 +5359,47 @@ effect.Schema.Class("JsoncParseOptions")({
|
|
|
5360
5359
|
allowTrailingComma: effect.Schema.optionalKey(effect.Schema.Boolean),
|
|
5361
5360
|
allowEmptyContent: effect.Schema.optionalKey(effect.Schema.Boolean)
|
|
5362
5361
|
});
|
|
5362
|
+
/**
|
|
5363
|
+
* The public stringify-error code vocabulary, appearing as the `code` field of
|
|
5364
|
+
* {@link JsoncStringifyError}:
|
|
5365
|
+
*
|
|
5366
|
+
* - `CircularReference` — the value contains a reference cycle, so no finite
|
|
5367
|
+
* JSON text exists for it.
|
|
5368
|
+
* - `BigIntValue` — the value contains a `bigint` (anywhere, top-level or
|
|
5369
|
+
* nested), which JSON cannot represent.
|
|
5370
|
+
* - `TopLevelUnrepresentable` — the top-level value (`undefined`, a function
|
|
5371
|
+
* or a symbol) serializes to no output at all.
|
|
5372
|
+
*
|
|
5373
|
+
* @public
|
|
5374
|
+
*/
|
|
5375
|
+
const JsoncStringifyErrorCode = effect.Schema.Literals([
|
|
5376
|
+
"CircularReference",
|
|
5377
|
+
"BigIntValue",
|
|
5378
|
+
"TopLevelUnrepresentable"
|
|
5379
|
+
]);
|
|
5380
|
+
effect.Schema.Class("JsoncStringifyOptions")({
|
|
5381
|
+
tabSize: effect.Schema.optionalKey(effect.Schema.Number),
|
|
5382
|
+
insertSpaces: effect.Schema.optionalKey(effect.Schema.Boolean)
|
|
5383
|
+
});
|
|
5384
|
+
/**
|
|
5385
|
+
* Stringification failure: a `JsoncStringifyErrorCode` naming the
|
|
5386
|
+
* failure mode, a human-readable `detail` (the engine's message for thrown
|
|
5387
|
+
* cases — on V8 the circular-reference message includes the offending property
|
|
5388
|
+
* path), and the offending `value`. Raised by {@link Jsonc.stringify},
|
|
5389
|
+
* {@link Jsonc.stringifyResult} and the encode direction of the schema
|
|
5390
|
+
* factories.
|
|
5391
|
+
*
|
|
5392
|
+
* @public
|
|
5393
|
+
*/
|
|
5394
|
+
var JsoncStringifyError = class extends effect.Schema.TaggedErrorClass()("JsoncStringifyError", {
|
|
5395
|
+
code: JsoncStringifyErrorCode,
|
|
5396
|
+
detail: effect.Schema.String,
|
|
5397
|
+
value: effect.Schema.Unknown
|
|
5398
|
+
}) {
|
|
5399
|
+
get message() {
|
|
5400
|
+
return `JSONC stringify failed: ${this.code} — ${this.detail}`;
|
|
5401
|
+
}
|
|
5402
|
+
};
|
|
5363
5403
|
const toFlags = (options) => options === void 0 ? {} : {
|
|
5364
5404
|
disallowComments: options.disallowComments,
|
|
5365
5405
|
allowTrailingComma: options.allowTrailingComma,
|
|
@@ -5519,6 +5559,95 @@ var Jsonc = class Jsonc {
|
|
|
5519
5559
|
return root !== void 0 ? effect.Option.some(root) : effect.Option.none();
|
|
5520
5560
|
});
|
|
5521
5561
|
/**
|
|
5562
|
+
* Stringify a plain JavaScript value as JSON text, synchronously, returning
|
|
5563
|
+
* a `Result` instead of an `Effect`. With no options the output is
|
|
5564
|
+
* byte-identical to `JSON.stringify(value, null, 2)`.
|
|
5565
|
+
*
|
|
5566
|
+
* Plain JSON emission: JSONC comments exist only in the document/edit layer
|
|
5567
|
+
* (`JsoncNode`, `JsoncEdit`, `JsoncFormatter`), so no comment survives — or
|
|
5568
|
+
* can be produced by — value-level stringification.
|
|
5569
|
+
*
|
|
5570
|
+
* Nested unrepresentable values follow `JSON.stringify`'s documented
|
|
5571
|
+
* semantics: `undefined`, functions and symbols are dropped from objects and
|
|
5572
|
+
* become `null` in arrays. The typed failure channel covers only the cases
|
|
5573
|
+
* where output would be absent or an exception thrown — see
|
|
5574
|
+
* `JsoncStringifyErrorCode`. A throwing `toJSON` method or getter is
|
|
5575
|
+
* caller code failing and rethrows as a defect, never a typed error.
|
|
5576
|
+
*
|
|
5577
|
+
* @remarks
|
|
5578
|
+
* {@link Jsonc.stringify} is defined in terms of this function; the two
|
|
5579
|
+
* never diverge. Reach for the `Effect` variant inside Effect code — it
|
|
5580
|
+
* carries the `Jsonc.stringify` tracing span — and for this one at
|
|
5581
|
+
* synchronous boundaries.
|
|
5582
|
+
*
|
|
5583
|
+
* @example
|
|
5584
|
+
* ```ts
|
|
5585
|
+
* import { Jsonc } from "@effected/jsonc";
|
|
5586
|
+
* import { Result } from "effect";
|
|
5587
|
+
*
|
|
5588
|
+
* const ok = Jsonc.stringifyResult({ port: 3000 });
|
|
5589
|
+
* if (Result.isSuccess(ok)) {
|
|
5590
|
+
* console.log(ok.success); // => '{\n "port": 3000\n}'
|
|
5591
|
+
* }
|
|
5592
|
+
*
|
|
5593
|
+
* const bad = Jsonc.stringifyResult(0n);
|
|
5594
|
+
* if (Result.isFailure(bad)) {
|
|
5595
|
+
* console.log(bad.failure.code); // => "BigIntValue"
|
|
5596
|
+
* }
|
|
5597
|
+
* ```
|
|
5598
|
+
*
|
|
5599
|
+
* @param value - The plain JavaScript value to stringify.
|
|
5600
|
+
* @param options - Optional {@link JsoncStringifyOptions}; defaults apply
|
|
5601
|
+
* for omitted fields.
|
|
5602
|
+
* @returns A `Result` succeeding with the JSON text, or failing with a
|
|
5603
|
+
* {@link JsoncStringifyError}.
|
|
5604
|
+
*/
|
|
5605
|
+
static stringifyResult(value, options) {
|
|
5606
|
+
const space = options?.insertSpaces === false ? " " : options?.tabSize ?? 2;
|
|
5607
|
+
let text;
|
|
5608
|
+
try {
|
|
5609
|
+
text = JSON.stringify(value, null, space);
|
|
5610
|
+
} catch (defect) {
|
|
5611
|
+
if (defect instanceof TypeError) {
|
|
5612
|
+
if (/circular|cyclic/i.test(defect.message)) return effect.Result.fail(new JsoncStringifyError({
|
|
5613
|
+
code: "CircularReference",
|
|
5614
|
+
detail: defect.message,
|
|
5615
|
+
value
|
|
5616
|
+
}));
|
|
5617
|
+
if (/bigint/i.test(defect.message)) return effect.Result.fail(new JsoncStringifyError({
|
|
5618
|
+
code: "BigIntValue",
|
|
5619
|
+
detail: defect.message,
|
|
5620
|
+
value
|
|
5621
|
+
}));
|
|
5622
|
+
}
|
|
5623
|
+
throw defect;
|
|
5624
|
+
}
|
|
5625
|
+
if (text === void 0) return effect.Result.fail(new JsoncStringifyError({
|
|
5626
|
+
code: "TopLevelUnrepresentable",
|
|
5627
|
+
detail: "the top-level value (undefined, a function or a symbol) has no JSON representation",
|
|
5628
|
+
value
|
|
5629
|
+
}));
|
|
5630
|
+
return effect.Result.succeed(text);
|
|
5631
|
+
}
|
|
5632
|
+
/**
|
|
5633
|
+
* Stringify a plain JavaScript value as JSON text. With no options the
|
|
5634
|
+
* output is byte-identical to `JSON.stringify(value, null, 2)`. Fails with
|
|
5635
|
+
* {@link JsoncStringifyError} on circular references, `bigint` values and a
|
|
5636
|
+
* top-level value with no JSON representation; nested `undefined`, functions
|
|
5637
|
+
* and symbols follow `JSON.stringify`'s documented semantics (dropped from
|
|
5638
|
+
* objects, `null` in arrays). Comments are a document/edit-layer concern —
|
|
5639
|
+
* value-level stringification never emits them. Defined in terms of
|
|
5640
|
+
* {@link Jsonc.stringifyResult} — synchronous callers can use that variant
|
|
5641
|
+
* directly.
|
|
5642
|
+
*
|
|
5643
|
+
* @param value - The plain JavaScript value to stringify.
|
|
5644
|
+
* @param options - Optional {@link JsoncStringifyOptions}; defaults apply
|
|
5645
|
+
* for omitted fields.
|
|
5646
|
+
* @returns An `Effect` that succeeds with the JSON text, or fails with a
|
|
5647
|
+
* {@link JsoncStringifyError}.
|
|
5648
|
+
*/
|
|
5649
|
+
static stringify = effect.Effect.fn("Jsonc.stringify")((value, options) => effect.Effect.fromResult(Jsonc.stringifyResult(value, options)));
|
|
5650
|
+
/**
|
|
5522
5651
|
* Remove all comments from JSONC, producing valid JSON. Pass a `replaceCh`
|
|
5523
5652
|
* (e.g. `" "`) to replace each comment character instead of deleting it,
|
|
5524
5653
|
* keeping all offsets stable (line breaks inside block comments are kept).
|
|
@@ -5585,8 +5714,11 @@ var Jsonc = class Jsonc {
|
|
|
5585
5714
|
}
|
|
5586
5715
|
/**
|
|
5587
5716
|
* A `Schema<unknown, string>` decoding JSONC with the given `options`
|
|
5588
|
-
* (defaults when omitted). Encoding is
|
|
5589
|
-
*
|
|
5717
|
+
* (defaults when omitted). Encoding is {@link Jsonc.stringifyResult} with
|
|
5718
|
+
* default options (2-space indent, byte-identical to
|
|
5719
|
+
* `JSON.stringify(value, null, 2)`), so comments do not survive a
|
|
5720
|
+
* round-trip encode; a {@link JsoncStringifyError} on the encode side
|
|
5721
|
+
* surfaces as a schema issue.
|
|
5590
5722
|
*
|
|
5591
5723
|
* @remarks
|
|
5592
5724
|
* Schema-producing: each call returns a fresh schema whose derivation caches
|
|
@@ -5613,7 +5745,7 @@ var Jsonc = class Jsonc {
|
|
|
5613
5745
|
}
|
|
5614
5746
|
return effect.Effect.succeed(value);
|
|
5615
5747
|
},
|
|
5616
|
-
encode: (value) => effect.Effect.
|
|
5748
|
+
encode: (value) => effect.Effect.fromResult(Jsonc.stringifyResult(value)).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(effect.Option.some(value), { message: error.message })))
|
|
5617
5749
|
})));
|
|
5618
5750
|
}
|
|
5619
5751
|
/**
|
|
@@ -5639,6 +5771,49 @@ var Jsonc = class Jsonc {
|
|
|
5639
5771
|
static schema(target, options) {
|
|
5640
5772
|
return Jsonc.fromString(options).pipe(effect.Schema.decodeTo(target));
|
|
5641
5773
|
}
|
|
5774
|
+
/**
|
|
5775
|
+
* Bind a target schema to the JSONC codec once, yielding the composed
|
|
5776
|
+
* schema plus pre-derived `decode`/`encode` directions — the
|
|
5777
|
+
* {@link Jsonc.schema} composition without the generic `Schema` machinery
|
|
5778
|
+
* at every use site. Binds the plain form only: default
|
|
5779
|
+
* {@link JsoncParseOptions} on decode, default stringify options on encode.
|
|
5780
|
+
*
|
|
5781
|
+
* Both directions fail with `Schema.SchemaError`, exactly as
|
|
5782
|
+
* `Schema.decodeEffect`/`Schema.encodeEffect` over {@link Jsonc.schema}
|
|
5783
|
+
* would; the target's decoding/encoding service requirements flow through.
|
|
5784
|
+
*
|
|
5785
|
+
* @remarks
|
|
5786
|
+
* Schema-producing: each call composes a fresh schema and derives both
|
|
5787
|
+
* directions from it. Bind the result to a `const` — that single binding is
|
|
5788
|
+
* the point.
|
|
5789
|
+
*
|
|
5790
|
+
* @example
|
|
5791
|
+
* ```ts
|
|
5792
|
+
* import { Jsonc } from "@effected/jsonc";
|
|
5793
|
+
* import { Effect, Schema } from "effect";
|
|
5794
|
+
*
|
|
5795
|
+
* const Config = Schema.Struct({ port: Schema.Number });
|
|
5796
|
+
* const config = Jsonc.bind(Config);
|
|
5797
|
+
*
|
|
5798
|
+
* const program = Effect.gen(function* () {
|
|
5799
|
+
* const value = yield* config.decode('{ "port": 3000 // dev\n }');
|
|
5800
|
+
* const text = yield* config.encode(value);
|
|
5801
|
+
* return [value, text] as const;
|
|
5802
|
+
* });
|
|
5803
|
+
* ```
|
|
5804
|
+
*
|
|
5805
|
+
* @param target - The domain schema decoded values must satisfy.
|
|
5806
|
+
* @returns A {@link JsoncBoundCodec} carrying the composed schema and its
|
|
5807
|
+
* two pre-bound directions.
|
|
5808
|
+
*/
|
|
5809
|
+
static bind(target) {
|
|
5810
|
+
const schema = Jsonc.schema(target);
|
|
5811
|
+
return {
|
|
5812
|
+
schema,
|
|
5813
|
+
decode: effect.Schema.decodeEffect(schema),
|
|
5814
|
+
encode: effect.Schema.encodeEffect(schema)
|
|
5815
|
+
};
|
|
5816
|
+
}
|
|
5642
5817
|
};
|
|
5643
5818
|
effect.Schema.Class("JsoncRange")({
|
|
5644
5819
|
offset: effect.Schema.Number,
|
|
@@ -5682,7 +5857,8 @@ var JsoncEdit = class extends effect.Schema.Class("JsoncEdit")({
|
|
|
5682
5857
|
/**
|
|
5683
5858
|
* Apply `edits` to `text`, producing a new string. Edits are applied in
|
|
5684
5859
|
* reverse-offset order so earlier offsets stay valid; the input `edits`
|
|
5685
|
-
* array is not mutated.
|
|
5860
|
+
* array is not mutated. Overlapping edits are a programmer error and throw
|
|
5861
|
+
* as a defect — `JsoncFormatter` never produces them.
|
|
5686
5862
|
*
|
|
5687
5863
|
* @param text - The source text to edit.
|
|
5688
5864
|
* @param edits - The edits to apply, in any order.
|
|
@@ -5690,13 +5866,18 @@ var JsoncEdit = class extends effect.Schema.Class("JsoncEdit")({
|
|
|
5690
5866
|
*/
|
|
5691
5867
|
static applyAll(text, edits) {
|
|
5692
5868
|
const sorted = [...edits].sort((a, b) => b.offset - a.offset);
|
|
5869
|
+
for (let i = 0; i + 1 < sorted.length; i++) {
|
|
5870
|
+
const upper = sorted[i];
|
|
5871
|
+
const lower = sorted[i + 1];
|
|
5872
|
+
if (lower.offset + lower.length > upper.offset) throw new Error(`JsoncEdit.applyAll received overlapping edits at offsets ${lower.offset} and ${upper.offset} — overlapping edits are a programmer error`);
|
|
5873
|
+
}
|
|
5693
5874
|
let result = text;
|
|
5694
5875
|
for (const edit of sorted) result = result.substring(0, edit.offset) + edit.content + result.substring(edit.offset + edit.length);
|
|
5695
5876
|
return result;
|
|
5696
5877
|
}
|
|
5697
5878
|
};
|
|
5698
5879
|
//#endregion
|
|
5699
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
5880
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/internal/navigate.js
|
|
5700
5881
|
/**
|
|
5701
5882
|
* Resolve `path` against `text`, returning where the target is (or where it
|
|
5702
5883
|
* would be inserted). `path` must be non-empty — the whole-document case is
|
|
@@ -5823,7 +6004,7 @@ function navigate(text, path) {
|
|
|
5823
6004
|
return { _tag: "NoOp" };
|
|
5824
6005
|
}
|
|
5825
6006
|
//#endregion
|
|
5826
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6007
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/JsoncModifier.js
|
|
5827
6008
|
/**
|
|
5828
6009
|
* Raised when `JsoncModifier.modify` cannot navigate the requested path: the
|
|
5829
6010
|
* value at `depth` is not the container kind (`expected`) the next path segment
|
|
@@ -5951,7 +6132,7 @@ var JsoncModifier = class {
|
|
|
5951
6132
|
});
|
|
5952
6133
|
};
|
|
5953
6134
|
//#endregion
|
|
5954
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
6135
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/bun.js
|
|
5955
6136
|
const DepRecord$2 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
5956
6137
|
const BunWorkspaceEntry = effect.Schema.Struct({
|
|
5957
6138
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -6044,7 +6225,7 @@ const toFields$3 = (raw) => effect.Effect.gen(function* () {
|
|
|
6044
6225
|
};
|
|
6045
6226
|
});
|
|
6046
6227
|
//#endregion
|
|
6047
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
6228
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/npm.js
|
|
6048
6229
|
const DepRecord$1 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6049
6230
|
const NpmPackageEntry = effect.Schema.Struct({
|
|
6050
6231
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -6142,7 +6323,7 @@ const toFields$2 = (raw) => effect.Effect.gen(function* () {
|
|
|
6142
6323
|
};
|
|
6143
6324
|
});
|
|
6144
6325
|
//#endregion
|
|
6145
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
6326
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/YamlNode.js
|
|
6146
6327
|
/**
|
|
6147
6328
|
* YAML scalar presentation styles.
|
|
6148
6329
|
*
|
|
@@ -6534,7 +6715,7 @@ function nodeToValue(node, anchors, budget, counting = false) {
|
|
|
6534
6715
|
return null;
|
|
6535
6716
|
}
|
|
6536
6717
|
//#endregion
|
|
6537
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
6718
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/diagnostics.js
|
|
6538
6719
|
/** Error codes emitted by the lexer stage. */
|
|
6539
6720
|
const YAML_LEX_ERROR_CODES = [
|
|
6540
6721
|
"UnexpectedCharacter",
|
|
@@ -6612,7 +6793,7 @@ function isFatalCode(code) {
|
|
|
6612
6793
|
return FATAL_CODES.has(code);
|
|
6613
6794
|
}
|
|
6614
6795
|
//#endregion
|
|
6615
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
6796
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/YamlDiagnostic.js
|
|
6616
6797
|
/**
|
|
6617
6798
|
* Error codes emitted by the lexer stage.
|
|
6618
6799
|
*
|
|
@@ -6733,7 +6914,7 @@ function lineChar(text, offset) {
|
|
|
6733
6914
|
};
|
|
6734
6915
|
}
|
|
6735
6916
|
//#endregion
|
|
6736
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
6917
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/anchors.js
|
|
6737
6918
|
/**
|
|
6738
6919
|
* Check if a pending anchor is being applied to an alias node (invalid in YAML 1.2 §3.2.2).
|
|
6739
6920
|
* Aliases represent references to existing anchored nodes and cannot have their own anchors.
|
|
@@ -6826,7 +7007,7 @@ function collectAnchors(node, anchors) {
|
|
|
6826
7007
|
}
|
|
6827
7008
|
}
|
|
6828
7009
|
//#endregion
|
|
6829
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
7010
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/lexer.js
|
|
6830
7011
|
/**
|
|
6831
7012
|
* Create a new YAML scanner for the given source text.
|
|
6832
7013
|
*
|
|
@@ -7783,7 +7964,7 @@ function lexAll(text) {
|
|
|
7783
7964
|
return tokens;
|
|
7784
7965
|
}
|
|
7785
7966
|
//#endregion
|
|
7786
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
7967
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/cst-parser.js
|
|
7787
7968
|
/**
|
|
7788
7969
|
* Hardening: cap CST nesting so hostile inputs cannot overflow the stack
|
|
7789
7970
|
* while the tree is being BUILT. Set slightly above the composer's
|
|
@@ -8495,7 +8676,7 @@ function parseCSTAll(text) {
|
|
|
8495
8676
|
return parseDocuments(lexAll(text), text);
|
|
8496
8677
|
}
|
|
8497
8678
|
//#endregion
|
|
8498
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8679
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/state.js
|
|
8499
8680
|
let lineStartsText;
|
|
8500
8681
|
let lineStartsCache = [];
|
|
8501
8682
|
function getLineStarts(text) {
|
|
@@ -8601,7 +8782,7 @@ function exitNesting(state) {
|
|
|
8601
8782
|
state.depth--;
|
|
8602
8783
|
}
|
|
8603
8784
|
//#endregion
|
|
8604
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8785
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/tags.js
|
|
8605
8786
|
/**
|
|
8606
8787
|
* Resolve a tag shorthand using the document's %TAG directives.
|
|
8607
8788
|
* For example, with `%TAG !! tag:example.com,2000:app/`, the tag `!!int`
|
|
@@ -8687,7 +8868,7 @@ function validateTagHandlesInDocument(docCst, state) {
|
|
|
8687
8868
|
}
|
|
8688
8869
|
}
|
|
8689
8870
|
//#endregion
|
|
8690
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8871
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/scalars.js
|
|
8691
8872
|
const NULL_RE$1 = /^(?:null|Null|NULL|~)$/;
|
|
8692
8873
|
const TRUE_RE$1 = /^(?:true|True|TRUE)$/;
|
|
8693
8874
|
const FALSE_RE$1 = /^(?:false|False|FALSE)$/;
|
|
@@ -9565,7 +9746,7 @@ function shouldPreserveRaw(rawValue, value) {
|
|
|
9565
9746
|
return false;
|
|
9566
9747
|
}
|
|
9567
9748
|
//#endregion
|
|
9568
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
9749
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/block.js
|
|
9569
9750
|
/**
|
|
9570
9751
|
* Compose a block map from its CST children, with an optional external first key.
|
|
9571
9752
|
*
|
|
@@ -10713,7 +10894,7 @@ function composeFlatBlockMap(children, startIdx, parentCst, state, externalFirst
|
|
|
10713
10894
|
return map;
|
|
10714
10895
|
}
|
|
10715
10896
|
//#endregion
|
|
10716
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
10897
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/flow.js
|
|
10717
10898
|
/**
|
|
10718
10899
|
* Validate that flow collection entries are separated by commas.
|
|
10719
10900
|
*
|
|
@@ -11105,7 +11286,7 @@ function composeFlowSeqInner(cst, state, meta, parentBlockColumn) {
|
|
|
11105
11286
|
return seq;
|
|
11106
11287
|
}
|
|
11107
11288
|
//#endregion
|
|
11108
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
11289
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/document.js
|
|
11109
11290
|
/** The flow-composer dispatch wired into every state this module creates. */
|
|
11110
11291
|
const FLOW = {
|
|
11111
11292
|
composeFlowMap,
|
|
@@ -11771,7 +11952,7 @@ function composeAllDocuments(text, options) {
|
|
|
11771
11952
|
};
|
|
11772
11953
|
}
|
|
11773
11954
|
//#endregion
|
|
11774
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
11955
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/fold.js
|
|
11775
11956
|
/**
|
|
11776
11957
|
* Column-based line folding for a single logical scalar line (YAML 1.2 flow
|
|
11777
11958
|
* folding, §7.3 / §8.2.1). Breaks the content at "safe" single-space
|
|
@@ -12007,7 +12188,7 @@ function renderBlockFolded(s, indent) {
|
|
|
12007
12188
|
return `>${indentIndicator}${chomp}\n${outputLines.join("\n")}`;
|
|
12008
12189
|
}
|
|
12009
12190
|
//#endregion
|
|
12010
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
12191
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/stringifier.js
|
|
12011
12192
|
/**
|
|
12012
12193
|
* Thrown by the stringifier on its failure paths (circular references). The
|
|
12013
12194
|
* facade catches this and materializes the public stringify error.
|
|
@@ -12831,6 +13012,51 @@ var Yaml = class Yaml {
|
|
|
12831
13012
|
static schema(target, options) {
|
|
12832
13013
|
return Yaml.fromString(options).pipe(effect.Schema.decodeTo(target));
|
|
12833
13014
|
}
|
|
13015
|
+
/**
|
|
13016
|
+
* Bind a target schema to the YAML codec once, yielding the composed
|
|
13017
|
+
* schema plus pre-derived `decode`/`encode` directions — the
|
|
13018
|
+
* {@link Yaml.schema} composition without the generic `Schema` machinery
|
|
13019
|
+
* at every use site. Binds the plain single-document form only: default
|
|
13020
|
+
* {@link YamlParseOptions} on decode, default stringify options on encode;
|
|
13021
|
+
* for multi-document streams compose over {@link Yaml.allFromString}
|
|
13022
|
+
* directly.
|
|
13023
|
+
*
|
|
13024
|
+
* Both directions fail with `Schema.SchemaError`, exactly as
|
|
13025
|
+
* `Schema.decodeEffect`/`Schema.encodeEffect` over {@link Yaml.schema}
|
|
13026
|
+
* would; the target's decoding/encoding service requirements flow through.
|
|
13027
|
+
*
|
|
13028
|
+
* @remarks
|
|
13029
|
+
* Schema-producing: each call composes a fresh schema and derives both
|
|
13030
|
+
* directions from it. Bind the result to a `const` — that single binding is
|
|
13031
|
+
* the point.
|
|
13032
|
+
*
|
|
13033
|
+
* @example
|
|
13034
|
+
* ```ts
|
|
13035
|
+
* import { Yaml } from "@effected/yaml";
|
|
13036
|
+
* import { Effect, Schema } from "effect";
|
|
13037
|
+
*
|
|
13038
|
+
* const Config = Schema.Struct({ port: Schema.Number });
|
|
13039
|
+
* const config = Yaml.bind(Config);
|
|
13040
|
+
*
|
|
13041
|
+
* const program = Effect.gen(function* () {
|
|
13042
|
+
* const value = yield* config.decode("port: 3000");
|
|
13043
|
+
* const text = yield* config.encode(value);
|
|
13044
|
+
* return [value, text] as const;
|
|
13045
|
+
* });
|
|
13046
|
+
* ```
|
|
13047
|
+
*
|
|
13048
|
+
* @param target - The domain schema decoded values must satisfy.
|
|
13049
|
+
* @returns A {@link YamlBoundCodec} carrying the composed schema and its
|
|
13050
|
+
* two pre-bound directions.
|
|
13051
|
+
*/
|
|
13052
|
+
static bind(target) {
|
|
13053
|
+
const schema = Yaml.schema(target);
|
|
13054
|
+
return {
|
|
13055
|
+
schema,
|
|
13056
|
+
decode: effect.Schema.decodeEffect(schema),
|
|
13057
|
+
encode: effect.Schema.encodeEffect(schema)
|
|
13058
|
+
};
|
|
13059
|
+
}
|
|
12834
13060
|
};
|
|
12835
13061
|
/**
|
|
12836
13062
|
* Parse for `equals`/`equalsValue`: any recorded error — fatal or not — or a
|
|
@@ -12883,7 +13109,7 @@ function deepEqualValues(a, b) {
|
|
|
12883
13109
|
return false;
|
|
12884
13110
|
}
|
|
12885
13111
|
//#endregion
|
|
12886
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13112
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/documents.js
|
|
12887
13113
|
/**
|
|
12888
13114
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
12889
13115
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -12953,7 +13179,7 @@ const selectSoleDocument = (content) => effect.Effect.gen(function* () {
|
|
|
12953
13179
|
};
|
|
12954
13180
|
});
|
|
12955
13181
|
//#endregion
|
|
12956
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13182
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/pnpm.js
|
|
12957
13183
|
const PnpmImporterDeps = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Struct({
|
|
12958
13184
|
specifier: effect.Schema.String,
|
|
12959
13185
|
version: effect.Schema.String
|
|
@@ -13079,7 +13305,7 @@ const toFields$1 = (raw) => effect.Effect.gen(function* () {
|
|
|
13079
13305
|
};
|
|
13080
13306
|
});
|
|
13081
13307
|
//#endregion
|
|
13082
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13308
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/yarn.js
|
|
13083
13309
|
const YarnLockfileRaw = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
|
|
13084
13310
|
const DepRecord = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
13085
13311
|
const YarnEntry = effect.Schema.Struct({
|
|
@@ -13202,7 +13428,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
13202
13428
|
return Object.fromEntries(Object.entries(deps).map(([name, value]) => [name, value.startsWith("npm:") ? value.slice(4) : value]));
|
|
13203
13429
|
};
|
|
13204
13430
|
//#endregion
|
|
13205
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13431
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/Lockfile.js
|
|
13206
13432
|
const EMPTY_IMPORTERS = [];
|
|
13207
13433
|
/**
|
|
13208
13434
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -13446,7 +13672,7 @@ var Lockfile = class Lockfile extends effect.Schema.Class("Lockfile")({
|
|
|
13446
13672
|
}
|
|
13447
13673
|
};
|
|
13448
13674
|
//#endregion
|
|
13449
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13675
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/LockfileIntegrity.js
|
|
13450
13676
|
/**
|
|
13451
13677
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
13452
13678
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -13562,7 +13788,7 @@ var LockfileIntegrity = class LockfileIntegrity extends effect.Schema.Class("Loc
|
|
|
13562
13788
|
}
|
|
13563
13789
|
};
|
|
13564
13790
|
//#endregion
|
|
13565
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
13791
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/Dependency.js
|
|
13566
13792
|
/**
|
|
13567
13793
|
* A resolved dependency entry pairing a package name with its version
|
|
13568
13794
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -13626,7 +13852,7 @@ var Dependency = class extends effect.Schema.Class("Dependency")({
|
|
|
13626
13852
|
}
|
|
13627
13853
|
};
|
|
13628
13854
|
//#endregion
|
|
13629
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
13855
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/DevEngines.js
|
|
13630
13856
|
/**
|
|
13631
13857
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
13632
13858
|
*
|
|
@@ -14651,7 +14877,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14651
14877
|
};
|
|
14652
14878
|
}));
|
|
14653
14879
|
//#endregion
|
|
14654
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
14880
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/License.js
|
|
14655
14881
|
var import_spdx_expression_parse = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14656
14882
|
var scan = require_scan$1();
|
|
14657
14883
|
var parse = require_parse$2();
|
|
@@ -14698,7 +14924,7 @@ const isValidSpdx = (value) => {
|
|
|
14698
14924
|
*/
|
|
14699
14925
|
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"));
|
|
14700
14926
|
//#endregion
|
|
14701
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
14927
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/PackageManager.js
|
|
14702
14928
|
const PACKAGE_MANAGER_RE = /^([a-z]+)@(\d+\.\d+\.\d+(?:-[a-zA-Z0-9._-]+)?)(?:\+(.+))?$/;
|
|
14703
14929
|
/**
|
|
14704
14930
|
* The `packageManager` field only ever carries corepack's `<algo>.<hex>`
|
|
@@ -14756,7 +14982,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
|
|
|
14756
14982
|
}
|
|
14757
14983
|
};
|
|
14758
14984
|
//#endregion
|
|
14759
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
14985
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/PackageName.js
|
|
14760
14986
|
/**
|
|
14761
14987
|
* Indicates that a string could not be used as a valid npm package name.
|
|
14762
14988
|
*
|
|
@@ -14814,7 +15040,7 @@ const PackageName = Object.assign(effect.Schema.Union([ScopedPackageName, Unscop
|
|
|
14814
15040
|
isScoped
|
|
14815
15041
|
});
|
|
14816
15042
|
//#endregion
|
|
14817
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15043
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/Person.js
|
|
14818
15044
|
const parsePersonString = (input) => {
|
|
14819
15045
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
14820
15046
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -14861,7 +15087,7 @@ var Person = class Person extends effect.Schema.Class("Person")({
|
|
|
14861
15087
|
static FromValue = effect.Schema.Union([Person, Person.FromString]);
|
|
14862
15088
|
};
|
|
14863
15089
|
//#endregion
|
|
14864
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15090
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/internal/format.js
|
|
14865
15091
|
const KEY_INDEX = new Map([
|
|
14866
15092
|
"$schema",
|
|
14867
15093
|
"name",
|
|
@@ -15084,7 +15310,7 @@ const renderJson = (raw, options) => {
|
|
|
15084
15310
|
return options.newline ? `${json}\n` : json;
|
|
15085
15311
|
};
|
|
15086
15312
|
//#endregion
|
|
15087
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15313
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/Package.js
|
|
15088
15314
|
const toHashMap = effect.SchemaTransformation.transform({
|
|
15089
15315
|
decode: (record) => effect.HashMap.fromIterable(Object.entries(record)),
|
|
15090
15316
|
encode: (map) => Object.fromEntries(effect.HashMap.toEntries(map))
|
|
@@ -15402,7 +15628,7 @@ var Package = class Package extends effect.Schema.Class("Package")({
|
|
|
15402
15628
|
}
|
|
15403
15629
|
};
|
|
15404
15630
|
//#endregion
|
|
15405
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
15631
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspacePackage.js
|
|
15406
15632
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
15407
15633
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
15408
15634
|
/**
|
|
@@ -15664,7 +15890,7 @@ var WorkspacePackage = class WorkspacePackage extends effect.Schema.Class("Works
|
|
|
15664
15890
|
}
|
|
15665
15891
|
};
|
|
15666
15892
|
//#endregion
|
|
15667
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.2.
|
|
15893
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.2.2_@effected+glob@0.1.2_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/walker/Descend.js
|
|
15668
15894
|
/**
|
|
15669
15895
|
* Typed failure raised by {@link descend}: a directory mid-walk was unreadable
|
|
15670
15896
|
* (under `onUnreadable: "fail"`), or the walk descended past `maxDepth`. Depth
|
|
@@ -15799,7 +16025,7 @@ const descend = effect.Effect.fn("Walker.descend")(function* (pattern, options)
|
|
|
15799
16025
|
return results;
|
|
15800
16026
|
});
|
|
15801
16027
|
//#endregion
|
|
15802
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.2.
|
|
16028
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.2.2_@effected+glob@0.1.2_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/walker/Walker.js
|
|
15803
16029
|
/**
|
|
15804
16030
|
* Ascend from `start` toward the filesystem root, yielding each directory,
|
|
15805
16031
|
* nearest first.
|
|
@@ -15889,7 +16115,7 @@ const Walker$1 = {
|
|
|
15889
16115
|
findRoot: findRoot$1
|
|
15890
16116
|
};
|
|
15891
16117
|
//#endregion
|
|
15892
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16118
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceRoot.js
|
|
15893
16119
|
/**
|
|
15894
16120
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
15895
16121
|
*
|
|
@@ -15974,7 +16200,7 @@ var WorkspaceRoot = class WorkspaceRoot extends effect.Context.Service()("@effec
|
|
|
15974
16200
|
static layer = effect.Layer.effect(WorkspaceRoot, WorkspaceRoot.make);
|
|
15975
16201
|
};
|
|
15976
16202
|
//#endregion
|
|
15977
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16203
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/limits.js
|
|
15978
16204
|
/**
|
|
15979
16205
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
15980
16206
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -15992,7 +16218,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
15992
16218
|
*/
|
|
15993
16219
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
15994
16220
|
//#endregion
|
|
15995
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16221
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/traverse.js
|
|
15996
16222
|
/** Directory names never descended into. */
|
|
15997
16223
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
15998
16224
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -16082,7 +16308,7 @@ var Traversal = class {
|
|
|
16082
16308
|
}
|
|
16083
16309
|
};
|
|
16084
16310
|
//#endregion
|
|
16085
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16311
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/enumerate.js
|
|
16086
16312
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
16087
16313
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
16088
16314
|
/**
|
|
@@ -16152,7 +16378,7 @@ const enumerate = (root, globs, options) => effect.Effect.gen(function* () {
|
|
|
16152
16378
|
return results;
|
|
16153
16379
|
});
|
|
16154
16380
|
//#endregion
|
|
16155
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16381
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/patterns.js
|
|
16156
16382
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
16157
16383
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
16158
16384
|
const pnpmPatternsOf = (document) => {
|
|
@@ -16209,7 +16435,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
|
|
|
16209
16435
|
return manifestPatternsOf(manifest);
|
|
16210
16436
|
});
|
|
16211
16437
|
//#endregion
|
|
16212
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16438
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceDiscovery.js
|
|
16213
16439
|
/**
|
|
16214
16440
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
16215
16441
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -16641,7 +16867,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends effect.Context.Service
|
|
|
16641
16867
|
};
|
|
16642
16868
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
16643
16869
|
//#endregion
|
|
16644
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16870
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/DependencyGraph.js
|
|
16645
16871
|
/**
|
|
16646
16872
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
16647
16873
|
* because it contains a cycle.
|
|
@@ -16876,7 +17102,7 @@ const kahn = (edges) => {
|
|
|
16876
17102
|
};
|
|
16877
17103
|
};
|
|
16878
17104
|
//#endregion
|
|
16879
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
17105
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.1_effect@4.0.0-beta.99/node_modules/@effected/git/GitCommand.js
|
|
16880
17106
|
/**
|
|
16881
17107
|
* Builds a `git` `ChildProcess.StandardCommand` with the argv this package
|
|
16882
17108
|
* classifies against.
|
|
@@ -17295,7 +17521,7 @@ const GitCommand = {
|
|
|
17295
17521
|
status
|
|
17296
17522
|
};
|
|
17297
17523
|
//#endregion
|
|
17298
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
17524
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.1_effect@4.0.0-beta.99/node_modules/@effected/git/internal/run.js
|
|
17299
17525
|
/**
|
|
17300
17526
|
* Spawns `command` and collects its stdout, stderr, and exit code as a single
|
|
17301
17527
|
* triple.
|
|
@@ -17322,7 +17548,7 @@ const runCollected = (command) => effect.Effect.scoped(effect.Effect.gen(functio
|
|
|
17322
17548
|
};
|
|
17323
17549
|
}));
|
|
17324
17550
|
//#endregion
|
|
17325
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
17551
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.1_effect@4.0.0-beta.99/node_modules/@effected/git/Git.js
|
|
17326
17552
|
/** git's own ceiling: a run that has not answered in 30s is not going to. */
|
|
17327
17553
|
const GIT_TIMEOUT = effect.Duration.seconds(30);
|
|
17328
17554
|
/**
|
|
@@ -17334,7 +17560,7 @@ const GIT_TIMEOUT = effect.Duration.seconds(30);
|
|
|
17334
17560
|
* `exitCode` and `stderr` are populated when git actually ran. `detail`
|
|
17335
17561
|
* carries a human-readable explanation of an absorbed spawn-level
|
|
17336
17562
|
* `PlatformError` or a per-run timeout — the two cases where git never
|
|
17337
|
-
* produced an exit code at all.
|
|
17563
|
+
* produced an exit code at all. `kind`
|
|
17338
17564
|
* discriminates a pre-spawn guard rejection (`"refused"`) from a genuine git
|
|
17339
17565
|
* failure (`"failed"`) structurally, so composed retry/fallback logic never has
|
|
17340
17566
|
* to parse the prose in `message` or `detail`.
|
|
@@ -18239,7 +18465,7 @@ var Git = class extends effect.Context.Service()("@effected/git/Git") {
|
|
|
18239
18465
|
}));
|
|
18240
18466
|
};
|
|
18241
18467
|
//#endregion
|
|
18242
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
18468
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/ChangeDetector.js
|
|
18243
18469
|
/**
|
|
18244
18470
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
18245
18471
|
*
|
|
@@ -18491,7 +18717,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
18491
18717
|
};
|
|
18492
18718
|
}
|
|
18493
18719
|
//#endregion
|
|
18494
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
18720
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/catalogs.js
|
|
18495
18721
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
18496
18722
|
const inlineCatalogs = (manifest) => {
|
|
18497
18723
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -18555,7 +18781,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
18555
18781
|
});
|
|
18556
18782
|
};
|
|
18557
18783
|
//#endregion
|
|
18558
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
18784
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/ConfigDependencyHooks.js
|
|
18559
18785
|
/** Whether `value` is a non-null, non-array object. */
|
|
18560
18786
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
18561
18787
|
/**
|
|
@@ -18700,7 +18926,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
|
|
|
18700
18926
|
}) });
|
|
18701
18927
|
};
|
|
18702
18928
|
//#endregion
|
|
18703
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
18929
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/PackageManagerName.js
|
|
18704
18930
|
/**
|
|
18705
18931
|
* The four package managers this package understands.
|
|
18706
18932
|
*
|
|
@@ -18942,7 +19168,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
18942
19168
|
static layer = effect.Layer.effect(PackageManagerDetector, PackageManagerDetector.make);
|
|
18943
19169
|
};
|
|
18944
19170
|
//#endregion
|
|
18945
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19171
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/LockfileReader.js
|
|
18946
19172
|
/**
|
|
18947
19173
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
18948
19174
|
*
|
|
@@ -19052,7 +19278,7 @@ var LockfileReader = class LockfileReader extends effect.Context.Service()("@eff
|
|
|
19052
19278
|
static layer = (options) => effect.Layer.effect(LockfileReader, LockfileReader.make(options));
|
|
19053
19279
|
};
|
|
19054
19280
|
//#endregion
|
|
19055
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19281
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/Publishability.js
|
|
19056
19282
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
19057
19283
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
19058
19284
|
/**
|
|
@@ -19152,7 +19378,7 @@ var PublishabilityDetector = class PublishabilityDetector extends effect.Context
|
|
|
19152
19378
|
}) });
|
|
19153
19379
|
};
|
|
19154
19380
|
//#endregion
|
|
19155
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19381
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceCatalogs.js
|
|
19156
19382
|
/**
|
|
19157
19383
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
19158
19384
|
* resolution semantic in the package.
|
|
@@ -19536,7 +19762,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
19536
19762
|
}));
|
|
19537
19763
|
};
|
|
19538
19764
|
//#endregion
|
|
19539
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19765
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceStateSnapshot.js
|
|
19540
19766
|
const EMPTY = Object.freeze(Object.create(null));
|
|
19541
19767
|
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)));
|
|
19542
19768
|
/**
|
|
@@ -19701,7 +19927,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
19701
19927
|
}
|
|
19702
19928
|
};
|
|
19703
19929
|
//#endregion
|
|
19704
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19930
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceSnapshots.js
|
|
19705
19931
|
/** Whether `value` is a non-null, non-array object. */
|
|
19706
19932
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19707
19933
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -19893,7 +20119,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
19893
20119
|
static layer = (options) => effect.Layer.effect(WorkspaceSnapshots, WorkspaceSnapshots.make(options));
|
|
19894
20120
|
};
|
|
19895
20121
|
//#endregion
|
|
19896
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
20122
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/Workspaces.js
|
|
19897
20123
|
/**
|
|
19898
20124
|
* Every service that needs only a filesystem: root, package-manager detection,
|
|
19899
20125
|
* discovery, lockfile reading, catalogs and publishability.
|
|
@@ -21670,7 +21896,7 @@ function validateChangesetOptions(input) {
|
|
|
21670
21896
|
})));
|
|
21671
21897
|
}
|
|
21672
21898
|
//#endregion
|
|
21673
|
-
//#region ../../node_modules/.pnpm/@changesets+get-github-info@1.0.0-next.
|
|
21899
|
+
//#region ../../node_modules/.pnpm/@changesets+get-github-info@1.0.0-next.4/node_modules/@changesets/get-github-info/dist/index.mjs
|
|
21674
21900
|
var import_dataloader = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
21675
21901
|
/**
|
|
21676
21902
|
* Copyright (c) 2019-present, GraphQL Foundation
|
|
@@ -23424,7 +23650,7 @@ function normalizeIdentifier(value) {
|
|
|
23424
23650
|
return value.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
23425
23651
|
}
|
|
23426
23652
|
//#endregion
|
|
23427
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm-footnote@2.1.
|
|
23653
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0_supports-color@8.1.1/node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
23428
23654
|
/**
|
|
23429
23655
|
* @import {
|
|
23430
23656
|
* CompileContext,
|
|
@@ -23616,7 +23842,7 @@ function mapAll(line, index, blank) {
|
|
|
23616
23842
|
return (blank ? "" : " ") + line;
|
|
23617
23843
|
}
|
|
23618
23844
|
//#endregion
|
|
23619
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.
|
|
23845
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0_supports-color@8.1.1/node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
23620
23846
|
/**
|
|
23621
23847
|
* @typedef {import('mdast').Delete} Delete
|
|
23622
23848
|
*
|
|
@@ -28667,7 +28893,7 @@ function safeBound(value, config) {
|
|
|
28667
28893
|
return safe(this, value, config);
|
|
28668
28894
|
}
|
|
28669
28895
|
//#endregion
|
|
28670
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm-table@2.0.
|
|
28896
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm-table@2.0.0_supports-color@8.1.1/node_modules/mdast-util-gfm-table/lib/index.js
|
|
28671
28897
|
/**
|
|
28672
28898
|
* @typedef {import('mdast').InlineCode} InlineCode
|
|
28673
28899
|
* @typedef {import('mdast').Table} Table
|
|
@@ -28931,7 +29157,7 @@ function gfmTableToMarkdown(options) {
|
|
|
28931
29157
|
}
|
|
28932
29158
|
}
|
|
28933
29159
|
//#endregion
|
|
28934
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.
|
|
29160
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0_supports-color@8.1.1/node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
28935
29161
|
/**
|
|
28936
29162
|
* @typedef {import('mdast').ListItem} ListItem
|
|
28937
29163
|
* @typedef {import('mdast').Paragraph} Paragraph
|
|
@@ -29041,7 +29267,7 @@ function listItemWithTaskListItem(node, parent, state, info) {
|
|
|
29041
29267
|
}
|
|
29042
29268
|
}
|
|
29043
29269
|
//#endregion
|
|
29044
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm@3.1.
|
|
29270
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm@3.1.0_supports-color@8.1.1/node_modules/mdast-util-gfm/lib/index.js
|
|
29045
29271
|
/**
|
|
29046
29272
|
* @import {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'
|
|
29047
29273
|
* @import {Options} from 'mdast-util-gfm'
|
|
@@ -37125,7 +37351,7 @@ function gfm(options) {
|
|
|
37125
37351
|
]);
|
|
37126
37352
|
}
|
|
37127
37353
|
//#endregion
|
|
37128
|
-
//#region ../../node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
|
|
37354
|
+
//#region ../../node_modules/.pnpm/remark-gfm@4.0.1_supports-color@8.1.1/node_modules/remark-gfm/lib/index.js
|
|
37129
37355
|
/**
|
|
37130
37356
|
* @import {Root} from 'mdast'
|
|
37131
37357
|
* @import {Options} from 'remark-gfm'
|
|
@@ -37156,7 +37382,7 @@ function remarkGfm(options) {
|
|
|
37156
37382
|
toMarkdownExtensions.push(gfmToMarkdown(settings));
|
|
37157
37383
|
}
|
|
37158
37384
|
//#endregion
|
|
37159
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
37385
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/initialize/content.js
|
|
37160
37386
|
/**
|
|
37161
37387
|
* @import {
|
|
37162
37388
|
* InitialConstruct,
|
|
@@ -37223,7 +37449,7 @@ function initializeContent(effects) {
|
|
|
37223
37449
|
}
|
|
37224
37450
|
}
|
|
37225
37451
|
//#endregion
|
|
37226
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
37452
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/initialize/document.js
|
|
37227
37453
|
/**
|
|
37228
37454
|
* @import {
|
|
37229
37455
|
* Construct,
|
|
@@ -37439,7 +37665,7 @@ function tokenizeContainer(effects, ok, nok) {
|
|
|
37439
37665
|
return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok, nok), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
37440
37666
|
}
|
|
37441
37667
|
//#endregion
|
|
37442
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
37668
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/initialize/flow.js
|
|
37443
37669
|
/**
|
|
37444
37670
|
* @import {
|
|
37445
37671
|
* InitialConstruct,
|
|
@@ -37486,7 +37712,7 @@ function initializeFlow(effects) {
|
|
|
37486
37712
|
}
|
|
37487
37713
|
}
|
|
37488
37714
|
//#endregion
|
|
37489
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
37715
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/initialize/text.js
|
|
37490
37716
|
/**
|
|
37491
37717
|
* @import {
|
|
37492
37718
|
* Code,
|
|
@@ -37663,7 +37889,7 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
37663
37889
|
return events;
|
|
37664
37890
|
}
|
|
37665
37891
|
//#endregion
|
|
37666
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
37892
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/constructs.js
|
|
37667
37893
|
/**
|
|
37668
37894
|
* @import {Extension} from 'micromark-util-types'
|
|
37669
37895
|
*/
|
|
@@ -37741,7 +37967,7 @@ const attentionMarkers = { null: [42, 95] };
|
|
|
37741
37967
|
/** @satisfies {Extension['disable']} */
|
|
37742
37968
|
const disable = { null: [] };
|
|
37743
37969
|
//#endregion
|
|
37744
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
37970
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/create-tokenizer.js
|
|
37745
37971
|
/**
|
|
37746
37972
|
* @import {
|
|
37747
37973
|
* Chunk,
|
|
@@ -38210,7 +38436,7 @@ function serializeChunks(chunks, expandTabs) {
|
|
|
38210
38436
|
return result.join("");
|
|
38211
38437
|
}
|
|
38212
38438
|
//#endregion
|
|
38213
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38439
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/parse.js
|
|
38214
38440
|
/**
|
|
38215
38441
|
* @import {
|
|
38216
38442
|
* Create,
|
|
@@ -38254,7 +38480,7 @@ function parse$1(options) {
|
|
|
38254
38480
|
}
|
|
38255
38481
|
}
|
|
38256
38482
|
//#endregion
|
|
38257
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38483
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/postprocess.js
|
|
38258
38484
|
/**
|
|
38259
38485
|
* @import {Event} from 'micromark-util-types'
|
|
38260
38486
|
*/
|
|
@@ -38269,7 +38495,7 @@ function postprocess(events) {
|
|
|
38269
38495
|
return events;
|
|
38270
38496
|
}
|
|
38271
38497
|
//#endregion
|
|
38272
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38498
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/preprocess.js
|
|
38273
38499
|
/**
|
|
38274
38500
|
* @import {Chunk, Code, Encoding, Value} from 'micromark-util-types'
|
|
38275
38501
|
*/
|
|
@@ -38434,7 +38660,7 @@ function index(value) {
|
|
|
38434
38660
|
return value && typeof value === "number" ? value : 1;
|
|
38435
38661
|
}
|
|
38436
38662
|
//#endregion
|
|
38437
|
-
//#region ../../node_modules/.pnpm/mdast-util-from-markdown@2.0.
|
|
38663
|
+
//#region ../../node_modules/.pnpm/mdast-util-from-markdown@2.0.3_supports-color@8.1.1/node_modules/mdast-util-from-markdown/lib/index.js
|
|
38438
38664
|
/**
|
|
38439
38665
|
* @import {
|
|
38440
38666
|
* Break,
|
|
@@ -39400,7 +39626,7 @@ function defaultOnError(left, right) {
|
|
|
39400
39626
|
}) + ") is still open");
|
|
39401
39627
|
}
|
|
39402
39628
|
//#endregion
|
|
39403
|
-
//#region ../../node_modules/.pnpm/remark-parse@11.0.
|
|
39629
|
+
//#region ../../node_modules/.pnpm/remark-parse@11.0.0_supports-color@8.1.1/node_modules/remark-parse/lib/index.js
|
|
39404
39630
|
/**
|
|
39405
39631
|
* @typedef {import('mdast').Root} Root
|
|
39406
39632
|
* @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions
|
|
@@ -57681,7 +57907,7 @@ function validatePackages(packages) {
|
|
|
57681
57907
|
}
|
|
57682
57908
|
}
|
|
57683
57909
|
//#endregion
|
|
57684
|
-
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.
|
|
57910
|
+
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.7/node_modules/@changesets/get-dependents-graph/dist/index.mjs
|
|
57685
57911
|
var src_default = new Proxy({}, { get(target, color) {
|
|
57686
57912
|
target[color] ??= (text) => (0, node_util.styleText)(color, text);
|
|
57687
57913
|
return target[color];
|
|
@@ -57801,14 +58027,14 @@ function getDependentsGraph(packages, opts) {
|
|
|
57801
58027
|
return simplifiedDependentsGraph;
|
|
57802
58028
|
}
|
|
57803
58029
|
//#endregion
|
|
57804
|
-
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.
|
|
58030
|
+
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.7/node_modules/@changesets/should-skip-package/dist/index.mjs
|
|
57805
58031
|
function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
57806
58032
|
if (ignore.includes(packageJson.name)) return true;
|
|
57807
58033
|
if (packageJson.private && !allowPrivatePackages) return true;
|
|
57808
58034
|
return !packageJson.version;
|
|
57809
58035
|
}
|
|
57810
58036
|
//#endregion
|
|
57811
|
-
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.
|
|
58037
|
+
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.7/node_modules/@changesets/config/dist/index.mjs
|
|
57812
58038
|
const DEFAULT_CONFIG = {
|
|
57813
58039
|
lang: void 0,
|
|
57814
58040
|
message: void 0,
|
|
@@ -58720,7 +58946,7 @@ async function readConfig(cwd, packages) {
|
|
|
58720
58946
|
packages ??= await getPackages(cwd);
|
|
58721
58947
|
return validateConfig(JSON.parse(await node_fs_promises.readFile(node_path.join(packages.rootDir, ".changeset", "config.json"), "utf8")), packages);
|
|
58722
58948
|
}
|
|
58723
|
-
var version = "4.0.0-next.
|
|
58949
|
+
var version = "4.0.0-next.7";
|
|
58724
58950
|
const defaultConfig = normalizeWrittenConfig({
|
|
58725
58951
|
packageNames: [],
|
|
58726
58952
|
writtenConfig: parse(WrittenConfigSchema, {
|
|
@@ -59443,228 +59669,6 @@ function isMetadataYarnClassic(metadataPath) {
|
|
|
59443
59669
|
return metadataPath.endsWith(".yarn_integrity");
|
|
59444
59670
|
}
|
|
59445
59671
|
//#endregion
|
|
59446
|
-
//#region ../../node_modules/.pnpm/@changesets+format@0.1.0/node_modules/@changesets/format/dist/index.js
|
|
59447
|
-
/**
|
|
59448
|
-
* Traverse upwards from `startDir` to `stopDir` (inclusive), calling `cb` in each directory. If
|
|
59449
|
-
* `cb` returns a non-null value, it'll stop and return that value.
|
|
59450
|
-
*/
|
|
59451
|
-
function traverseUpwards(startDir, stopDir, cb) {
|
|
59452
|
-
let dir = startDir;
|
|
59453
|
-
while (dir) {
|
|
59454
|
-
const result = cb(dir);
|
|
59455
|
-
if (result !== void 0) return result;
|
|
59456
|
-
if (dir === stopDir) break;
|
|
59457
|
-
const nextDir = node_path.dirname(dir);
|
|
59458
|
-
if (nextDir === dir) break;
|
|
59459
|
-
dir = nextDir;
|
|
59460
|
-
}
|
|
59461
|
-
}
|
|
59462
|
-
async function packageManagerExecute(packageManager, args, cwd) {
|
|
59463
|
-
const cmd = resolveCommand(packageManager, "execute-local", args) ?? {
|
|
59464
|
-
command: "npx",
|
|
59465
|
-
args
|
|
59466
|
-
};
|
|
59467
|
-
return await spawnProcess(cmd.command, cmd.args, cwd);
|
|
59468
|
-
}
|
|
59469
|
-
async function spawnProcess(command, args, cwd) {
|
|
59470
|
-
return new Promise((resolve, reject) => {
|
|
59471
|
-
const child = node_child_process.spawn(command, args, { cwd });
|
|
59472
|
-
let stderr = "";
|
|
59473
|
-
child.stderr.on("data", (data) => {
|
|
59474
|
-
stderr += data.toString();
|
|
59475
|
-
});
|
|
59476
|
-
child.on("exit", (code) => {
|
|
59477
|
-
if (code === 0) resolve();
|
|
59478
|
-
else reject(/* @__PURE__ */ new Error(`${command} exited with code ${code}. Stderr:\n${stderr}`));
|
|
59479
|
-
});
|
|
59480
|
-
child.on("error", (err) => {
|
|
59481
|
-
reject(err);
|
|
59482
|
-
});
|
|
59483
|
-
});
|
|
59484
|
-
}
|
|
59485
|
-
const formatters = {
|
|
59486
|
-
prettier: {
|
|
59487
|
-
name: "prettier",
|
|
59488
|
-
packageName: "prettier",
|
|
59489
|
-
configFiles: [
|
|
59490
|
-
".prettierrc",
|
|
59491
|
-
".prettierrc.json",
|
|
59492
|
-
".prettierrc.yml",
|
|
59493
|
-
".prettierrc.yaml",
|
|
59494
|
-
".prettierrc.json5",
|
|
59495
|
-
".prettierrc.js",
|
|
59496
|
-
"prettier.config.js",
|
|
59497
|
-
".prettierrc.ts",
|
|
59498
|
-
"prettier.config.ts",
|
|
59499
|
-
".prettierrc.mjs",
|
|
59500
|
-
"prettier.config.mjs",
|
|
59501
|
-
".prettierrc.mts",
|
|
59502
|
-
"prettier.config.mts",
|
|
59503
|
-
".prettierrc.cjs",
|
|
59504
|
-
"prettier.config.cjs",
|
|
59505
|
-
".prettierrc.cts",
|
|
59506
|
-
"prettier.config.cts",
|
|
59507
|
-
".prettierrc.toml",
|
|
59508
|
-
{
|
|
59509
|
-
file: "package.json",
|
|
59510
|
-
key: "prettier"
|
|
59511
|
-
}
|
|
59512
|
-
],
|
|
59513
|
-
async format(files, ctx) {
|
|
59514
|
-
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
59515
|
-
"prettier",
|
|
59516
|
-
"--write",
|
|
59517
|
-
...files
|
|
59518
|
-
], ctx.cwd);
|
|
59519
|
-
}
|
|
59520
|
-
},
|
|
59521
|
-
biome: {
|
|
59522
|
-
name: "biome",
|
|
59523
|
-
packageName: "@biomejs/biome",
|
|
59524
|
-
configFiles: [
|
|
59525
|
-
"biome.json",
|
|
59526
|
-
"biome.jsonc",
|
|
59527
|
-
".biome.json",
|
|
59528
|
-
".biome.jsonc"
|
|
59529
|
-
],
|
|
59530
|
-
async format(files, ctx) {
|
|
59531
|
-
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
59532
|
-
"@biomejs/biome",
|
|
59533
|
-
"format",
|
|
59534
|
-
"--write",
|
|
59535
|
-
...files
|
|
59536
|
-
], ctx.cwd);
|
|
59537
|
-
}
|
|
59538
|
-
},
|
|
59539
|
-
oxfmt: {
|
|
59540
|
-
name: "oxfmt",
|
|
59541
|
-
packageName: "oxfmt",
|
|
59542
|
-
configFiles: [
|
|
59543
|
-
".oxfmtrc.json",
|
|
59544
|
-
".oxfmtrc.jsonc",
|
|
59545
|
-
"oxfmt.config.ts"
|
|
59546
|
-
],
|
|
59547
|
-
async format(files, ctx) {
|
|
59548
|
-
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
59549
|
-
"oxfmt",
|
|
59550
|
-
"--write",
|
|
59551
|
-
...files
|
|
59552
|
-
], ctx.cwd);
|
|
59553
|
-
}
|
|
59554
|
-
},
|
|
59555
|
-
deno: {
|
|
59556
|
-
name: "deno",
|
|
59557
|
-
configFiles: [
|
|
59558
|
-
"deno.json",
|
|
59559
|
-
"deno.jsonc",
|
|
59560
|
-
{
|
|
59561
|
-
file: "deno.json",
|
|
59562
|
-
key: "fmt"
|
|
59563
|
-
}
|
|
59564
|
-
],
|
|
59565
|
-
async format(files, ctx) {
|
|
59566
|
-
await spawnProcess("deno", ["fmt", ...files], ctx.cwd);
|
|
59567
|
-
}
|
|
59568
|
-
},
|
|
59569
|
-
dprint: {
|
|
59570
|
-
name: "dprint",
|
|
59571
|
-
packageName: "dprint",
|
|
59572
|
-
configFiles: [
|
|
59573
|
-
"dprint.json",
|
|
59574
|
-
"dprint.jsonc",
|
|
59575
|
-
".dprint.json",
|
|
59576
|
-
".dprint.jsonc"
|
|
59577
|
-
],
|
|
59578
|
-
async format(files, ctx) {
|
|
59579
|
-
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
59580
|
-
"dprint",
|
|
59581
|
-
"fmt",
|
|
59582
|
-
...files
|
|
59583
|
-
], ctx.cwd);
|
|
59584
|
-
}
|
|
59585
|
-
}
|
|
59586
|
-
};
|
|
59587
|
-
const defaultDetectOrder = Object.freeze([
|
|
59588
|
-
"dprint",
|
|
59589
|
-
"deno",
|
|
59590
|
-
"oxfmt",
|
|
59591
|
-
"biome",
|
|
59592
|
-
"prettier"
|
|
59593
|
-
]);
|
|
59594
|
-
/**
|
|
59595
|
-
* Detect the preferred formatter used in the project.
|
|
59596
|
-
*/
|
|
59597
|
-
async function detect(options = {}) {
|
|
59598
|
-
const cwd = options.cwd ? node_path.resolve(options.cwd) : process.cwd();
|
|
59599
|
-
const stopDir = options.stopDir ? node_path.resolve(cwd, options.stopDir) : void 0;
|
|
59600
|
-
const order = options.order ?? defaultDetectOrder;
|
|
59601
|
-
let found = traverseUpwards(cwd, stopDir, (dir) => {
|
|
59602
|
-
for (const formatterName of order) {
|
|
59603
|
-
const formatter = formatters[formatterName];
|
|
59604
|
-
for (const configFile of formatter.configFiles) if (typeof configFile === "string") {
|
|
59605
|
-
const configFilePath = node_path.join(dir, configFile);
|
|
59606
|
-
if (node_fs.existsSync(configFilePath)) return formatter.name;
|
|
59607
|
-
} else if (checkConfigFileWithKeyExists(node_path.join(dir, configFile.file), configFile.key)) return formatter.name;
|
|
59608
|
-
}
|
|
59609
|
-
});
|
|
59610
|
-
found ??= traverseUpwards(cwd, stopDir, (dir) => {
|
|
59611
|
-
for (const formatterName of order) {
|
|
59612
|
-
const formatter = formatters[formatterName];
|
|
59613
|
-
if (formatter.packageName) {
|
|
59614
|
-
const packagePath = node_path.join(dir, "node_modules", formatter.packageName);
|
|
59615
|
-
if (node_fs.existsSync(packagePath)) return formatter.name;
|
|
59616
|
-
}
|
|
59617
|
-
}
|
|
59618
|
-
});
|
|
59619
|
-
return found;
|
|
59620
|
-
}
|
|
59621
|
-
function checkConfigFileWithKeyExists(configFile, key) {
|
|
59622
|
-
try {
|
|
59623
|
-
const content = node_fs.readFileSync(configFile, "utf-8");
|
|
59624
|
-
return key in JSON.parse(content);
|
|
59625
|
-
} catch {
|
|
59626
|
-
return false;
|
|
59627
|
-
}
|
|
59628
|
-
}
|
|
59629
|
-
/**
|
|
59630
|
-
* Format the given patterns with a specified or auto-detected formatter. It returns `true` if a
|
|
59631
|
-
* formatter is found and the formatting process passes, otherwise returns `false`.
|
|
59632
|
-
*/
|
|
59633
|
-
async function format$1(patterns, options = {}) {
|
|
59634
|
-
const formatterName = options.formatter ?? await detect({
|
|
59635
|
-
cwd: options.cwd,
|
|
59636
|
-
stopDir: options.stopDir
|
|
59637
|
-
});
|
|
59638
|
-
if (!formatterName) return false;
|
|
59639
|
-
const formatter = formatters[formatterName];
|
|
59640
|
-
const ctx = {
|
|
59641
|
-
cwd: options.cwd ? node_path.resolve(options.cwd) : process.cwd(),
|
|
59642
|
-
async getPackageManager() {
|
|
59643
|
-
if (options.packageManager) return options.packageManager;
|
|
59644
|
-
return (await detect$1({
|
|
59645
|
-
cwd: options.cwd,
|
|
59646
|
-
stopDir: options.stopDir
|
|
59647
|
-
}))?.agent ?? "npm";
|
|
59648
|
-
}
|
|
59649
|
-
};
|
|
59650
|
-
await formatter.format(patterns, ctx);
|
|
59651
|
-
return true;
|
|
59652
|
-
}
|
|
59653
|
-
//#endregion
|
|
59654
|
-
//#region ../../node_modules/.pnpm/@changesets+errors@1.0.0-next.3/node_modules/@changesets/errors/dist/index.mjs
|
|
59655
|
-
var GitError = class extends Error {
|
|
59656
|
-
code;
|
|
59657
|
-
constructor(code, message) {
|
|
59658
|
-
super(`${message}, exit code: ${code}`);
|
|
59659
|
-
this.code = code;
|
|
59660
|
-
}
|
|
59661
|
-
};
|
|
59662
|
-
var InternalError = class extends Error {
|
|
59663
|
-
constructor(message) {
|
|
59664
|
-
super(message);
|
|
59665
|
-
}
|
|
59666
|
-
};
|
|
59667
|
-
//#endregion
|
|
59668
59672
|
//#region ../../node_modules/.pnpm/tinyexec@1.2.4/node_modules/tinyexec/dist/main.mjs
|
|
59669
59673
|
const h = /^path$/i;
|
|
59670
59674
|
const g = {
|
|
@@ -59991,7 +59995,219 @@ const R = (e, t, n) => {
|
|
|
59991
59995
|
};
|
|
59992
59996
|
const z = R;
|
|
59993
59997
|
//#endregion
|
|
59994
|
-
//#region ../../node_modules/.pnpm/@changesets+
|
|
59998
|
+
//#region ../../node_modules/.pnpm/@changesets+format@0.1.1/node_modules/@changesets/format/dist/index.js
|
|
59999
|
+
/**
|
|
60000
|
+
* Traverse upwards from `startDir` to `stopDir` (inclusive), calling `cb` in each directory. If
|
|
60001
|
+
* `cb` returns a non-null value, it'll stop and return that value.
|
|
60002
|
+
*/
|
|
60003
|
+
function traverseUpwards(startDir, stopDir, cb) {
|
|
60004
|
+
let dir = startDir;
|
|
60005
|
+
while (dir) {
|
|
60006
|
+
const result = cb(dir);
|
|
60007
|
+
if (result !== void 0) return result;
|
|
60008
|
+
if (dir === stopDir) break;
|
|
60009
|
+
const nextDir = node_path.dirname(dir);
|
|
60010
|
+
if (nextDir === dir) break;
|
|
60011
|
+
dir = nextDir;
|
|
60012
|
+
}
|
|
60013
|
+
}
|
|
60014
|
+
async function packageManagerExecute(packageManager, args, cwd) {
|
|
60015
|
+
const cmd = resolveCommand(packageManager, "execute-local", args) ?? {
|
|
60016
|
+
command: "npx",
|
|
60017
|
+
args
|
|
60018
|
+
};
|
|
60019
|
+
return await spawnProcess(cmd.command, cmd.args, cwd);
|
|
60020
|
+
}
|
|
60021
|
+
async function spawnProcess(command, args, cwd) {
|
|
60022
|
+
await z(command, args, {
|
|
60023
|
+
nodeOptions: { cwd },
|
|
60024
|
+
throwOnError: true
|
|
60025
|
+
});
|
|
60026
|
+
}
|
|
60027
|
+
const formatters = {
|
|
60028
|
+
prettier: {
|
|
60029
|
+
name: "prettier",
|
|
60030
|
+
packageName: "prettier",
|
|
60031
|
+
configFiles: [
|
|
60032
|
+
".prettierrc",
|
|
60033
|
+
".prettierrc.json",
|
|
60034
|
+
".prettierrc.yml",
|
|
60035
|
+
".prettierrc.yaml",
|
|
60036
|
+
".prettierrc.json5",
|
|
60037
|
+
".prettierrc.js",
|
|
60038
|
+
"prettier.config.js",
|
|
60039
|
+
".prettierrc.ts",
|
|
60040
|
+
"prettier.config.ts",
|
|
60041
|
+
".prettierrc.mjs",
|
|
60042
|
+
"prettier.config.mjs",
|
|
60043
|
+
".prettierrc.mts",
|
|
60044
|
+
"prettier.config.mts",
|
|
60045
|
+
".prettierrc.cjs",
|
|
60046
|
+
"prettier.config.cjs",
|
|
60047
|
+
".prettierrc.cts",
|
|
60048
|
+
"prettier.config.cts",
|
|
60049
|
+
".prettierrc.toml",
|
|
60050
|
+
{
|
|
60051
|
+
file: "package.json",
|
|
60052
|
+
key: "prettier"
|
|
60053
|
+
}
|
|
60054
|
+
],
|
|
60055
|
+
async format(files, ctx) {
|
|
60056
|
+
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60057
|
+
"prettier",
|
|
60058
|
+
"--write",
|
|
60059
|
+
...files
|
|
60060
|
+
], ctx.cwd);
|
|
60061
|
+
}
|
|
60062
|
+
},
|
|
60063
|
+
biome: {
|
|
60064
|
+
name: "biome",
|
|
60065
|
+
packageName: "@biomejs/biome",
|
|
60066
|
+
configFiles: [
|
|
60067
|
+
"biome.json",
|
|
60068
|
+
"biome.jsonc",
|
|
60069
|
+
".biome.json",
|
|
60070
|
+
".biome.jsonc"
|
|
60071
|
+
],
|
|
60072
|
+
async format(files, ctx) {
|
|
60073
|
+
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60074
|
+
"@biomejs/biome",
|
|
60075
|
+
"format",
|
|
60076
|
+
"--write",
|
|
60077
|
+
...files
|
|
60078
|
+
], ctx.cwd);
|
|
60079
|
+
}
|
|
60080
|
+
},
|
|
60081
|
+
oxfmt: {
|
|
60082
|
+
name: "oxfmt",
|
|
60083
|
+
packageName: "oxfmt",
|
|
60084
|
+
configFiles: [
|
|
60085
|
+
".oxfmtrc.json",
|
|
60086
|
+
".oxfmtrc.jsonc",
|
|
60087
|
+
"oxfmt.config.ts"
|
|
60088
|
+
],
|
|
60089
|
+
async format(files, ctx) {
|
|
60090
|
+
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60091
|
+
"oxfmt",
|
|
60092
|
+
"--write",
|
|
60093
|
+
...files
|
|
60094
|
+
], ctx.cwd);
|
|
60095
|
+
}
|
|
60096
|
+
},
|
|
60097
|
+
deno: {
|
|
60098
|
+
name: "deno",
|
|
60099
|
+
configFiles: [
|
|
60100
|
+
"deno.json",
|
|
60101
|
+
"deno.jsonc",
|
|
60102
|
+
{
|
|
60103
|
+
file: "deno.json",
|
|
60104
|
+
key: "fmt"
|
|
60105
|
+
}
|
|
60106
|
+
],
|
|
60107
|
+
async format(files, ctx) {
|
|
60108
|
+
await spawnProcess("deno", ["fmt", ...files], ctx.cwd);
|
|
60109
|
+
}
|
|
60110
|
+
},
|
|
60111
|
+
dprint: {
|
|
60112
|
+
name: "dprint",
|
|
60113
|
+
packageName: "dprint",
|
|
60114
|
+
configFiles: [
|
|
60115
|
+
"dprint.json",
|
|
60116
|
+
"dprint.jsonc",
|
|
60117
|
+
".dprint.json",
|
|
60118
|
+
".dprint.jsonc"
|
|
60119
|
+
],
|
|
60120
|
+
async format(files, ctx) {
|
|
60121
|
+
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60122
|
+
"dprint",
|
|
60123
|
+
"fmt",
|
|
60124
|
+
...files
|
|
60125
|
+
], ctx.cwd);
|
|
60126
|
+
}
|
|
60127
|
+
}
|
|
60128
|
+
};
|
|
60129
|
+
const defaultDetectOrder = Object.freeze([
|
|
60130
|
+
"dprint",
|
|
60131
|
+
"deno",
|
|
60132
|
+
"oxfmt",
|
|
60133
|
+
"biome",
|
|
60134
|
+
"prettier"
|
|
60135
|
+
]);
|
|
60136
|
+
/**
|
|
60137
|
+
* Detect the preferred formatter used in the project.
|
|
60138
|
+
*/
|
|
60139
|
+
async function detect(options = {}) {
|
|
60140
|
+
const cwd = options.cwd ? node_path.resolve(options.cwd) : process.cwd();
|
|
60141
|
+
const stopDir = options.stopDir ? node_path.resolve(cwd, options.stopDir) : void 0;
|
|
60142
|
+
const order = options.order ?? defaultDetectOrder;
|
|
60143
|
+
let found = traverseUpwards(cwd, stopDir, (dir) => {
|
|
60144
|
+
for (const formatterName of order) {
|
|
60145
|
+
const formatter = formatters[formatterName];
|
|
60146
|
+
for (const configFile of formatter.configFiles) if (typeof configFile === "string") {
|
|
60147
|
+
const configFilePath = node_path.join(dir, configFile);
|
|
60148
|
+
if (node_fs.existsSync(configFilePath)) return formatter.name;
|
|
60149
|
+
} else if (checkConfigFileWithKeyExists(node_path.join(dir, configFile.file), configFile.key)) return formatter.name;
|
|
60150
|
+
}
|
|
60151
|
+
});
|
|
60152
|
+
found ??= traverseUpwards(cwd, stopDir, (dir) => {
|
|
60153
|
+
for (const formatterName of order) {
|
|
60154
|
+
const formatter = formatters[formatterName];
|
|
60155
|
+
if (formatter.packageName) {
|
|
60156
|
+
const packagePath = node_path.join(dir, "node_modules", formatter.packageName);
|
|
60157
|
+
if (node_fs.existsSync(packagePath)) return formatter.name;
|
|
60158
|
+
}
|
|
60159
|
+
}
|
|
60160
|
+
});
|
|
60161
|
+
return found;
|
|
60162
|
+
}
|
|
60163
|
+
function checkConfigFileWithKeyExists(configFile, key) {
|
|
60164
|
+
try {
|
|
60165
|
+
const content = node_fs.readFileSync(configFile, "utf-8");
|
|
60166
|
+
return key in JSON.parse(content);
|
|
60167
|
+
} catch {
|
|
60168
|
+
return false;
|
|
60169
|
+
}
|
|
60170
|
+
}
|
|
60171
|
+
/**
|
|
60172
|
+
* Format the given patterns with a specified or auto-detected formatter. It returns `true` if a
|
|
60173
|
+
* formatter is found and the formatting process passes, otherwise returns `false`.
|
|
60174
|
+
*/
|
|
60175
|
+
async function format$1(patterns, options = {}) {
|
|
60176
|
+
const formatterName = options.formatter ?? await detect({
|
|
60177
|
+
cwd: options.cwd,
|
|
60178
|
+
stopDir: options.stopDir
|
|
60179
|
+
});
|
|
60180
|
+
if (!formatterName) return false;
|
|
60181
|
+
const formatter = formatters[formatterName];
|
|
60182
|
+
const ctx = {
|
|
60183
|
+
cwd: options.cwd ? node_path.resolve(options.cwd) : process.cwd(),
|
|
60184
|
+
async getPackageManager() {
|
|
60185
|
+
if (options.packageManager) return options.packageManager;
|
|
60186
|
+
return (await detect$1({
|
|
60187
|
+
cwd: options.cwd,
|
|
60188
|
+
stopDir: options.stopDir
|
|
60189
|
+
}))?.agent ?? "npm";
|
|
60190
|
+
}
|
|
60191
|
+
};
|
|
60192
|
+
await formatter.format(patterns, ctx);
|
|
60193
|
+
return true;
|
|
60194
|
+
}
|
|
60195
|
+
//#endregion
|
|
60196
|
+
//#region ../../node_modules/.pnpm/@changesets+errors@1.0.0-next.4/node_modules/@changesets/errors/dist/index.mjs
|
|
60197
|
+
var GitError = class extends Error {
|
|
60198
|
+
code;
|
|
60199
|
+
constructor(code, message) {
|
|
60200
|
+
super(`${message}, exit code: ${code}`);
|
|
60201
|
+
this.code = code;
|
|
60202
|
+
}
|
|
60203
|
+
};
|
|
60204
|
+
var InternalError = class extends Error {
|
|
60205
|
+
constructor(message) {
|
|
60206
|
+
super(message);
|
|
60207
|
+
}
|
|
60208
|
+
};
|
|
60209
|
+
//#endregion
|
|
60210
|
+
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.7/node_modules/@changesets/git/dist/index.mjs
|
|
59995
60211
|
async function getDivergedCommit(cwd, ref) {
|
|
59996
60212
|
const cmd = await z("git", [
|
|
59997
60213
|
"merge-base",
|
|
@@ -62138,7 +62354,7 @@ function applyEdits(text, edits) {
|
|
|
62138
62354
|
return text;
|
|
62139
62355
|
}
|
|
62140
62356
|
//#endregion
|
|
62141
|
-
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.
|
|
62357
|
+
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.8/node_modules/@changesets/apply-release-plan/dist/index.mjs
|
|
62142
62358
|
/**
|
|
62143
62359
|
* A simple JSON editing utility that preserves formatting. They specified operation keys
|
|
62144
62360
|
* must exist in the JSON for this implementation.
|
|
@@ -62279,13 +62495,8 @@ const DEPENDENCY_TYPES = [
|
|
|
62279
62495
|
"peerDependencies",
|
|
62280
62496
|
"optionalDependencies"
|
|
62281
62497
|
];
|
|
62282
|
-
function
|
|
62498
|
+
function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateInternalDependencies, onlyUpdatePeerDependentsWhenOutOfRange, bumpVersionsWithWorkspaceProtocolOnly, snapshot }) {
|
|
62283
62499
|
const pkgJsonEdits = [];
|
|
62284
|
-
const { newVersion, packageJson } = release;
|
|
62285
|
-
pkgJsonEdits.push({
|
|
62286
|
-
keys: ["version"],
|
|
62287
|
-
value: newVersion
|
|
62288
|
-
});
|
|
62289
62500
|
for (const depType of DEPENDENCY_TYPES) {
|
|
62290
62501
|
const deps = packageJson[depType];
|
|
62291
62502
|
if (deps) for (const { name, version, oldVersion, type, dir } of versionsToUpdate) {
|
|
@@ -62319,10 +62530,7 @@ function versionPackage(release, versionsToUpdate, { cwd, updateInternalDependen
|
|
|
62319
62530
|
}
|
|
62320
62531
|
}
|
|
62321
62532
|
}
|
|
62322
|
-
return
|
|
62323
|
-
...release,
|
|
62324
|
-
pkgJsonEdits
|
|
62325
|
-
};
|
|
62533
|
+
return pkgJsonEdits;
|
|
62326
62534
|
}
|
|
62327
62535
|
function getVersionRangeType(versionRange) {
|
|
62328
62536
|
if (versionRange.charAt(0) === "^") return "^";
|
|
@@ -62352,6 +62560,13 @@ async function getFormatter(config, cwd) {
|
|
|
62352
62560
|
});
|
|
62353
62561
|
};
|
|
62354
62562
|
}
|
|
62563
|
+
async function updatePackageJson(dir, edits) {
|
|
62564
|
+
if (edits.length === 0) return;
|
|
62565
|
+
const pkgJsonPath = node_path.resolve(dir, "package.json");
|
|
62566
|
+
const pkgUpdated = editJson(await node_fs_promises.readFile(pkgJsonPath, "utf8"), edits);
|
|
62567
|
+
await node_fs_promises.writeFile(pkgJsonPath, pkgUpdated);
|
|
62568
|
+
return pkgJsonPath;
|
|
62569
|
+
}
|
|
62355
62570
|
async function applyReleasePlan(releasePlan, packages, config = defaultConfig, snapshot, contextDir = __dirname) {
|
|
62356
62571
|
const cwd = packages.rootDir;
|
|
62357
62572
|
const touchedFiles = [];
|
|
@@ -62380,22 +62595,21 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
62380
62595
|
type,
|
|
62381
62596
|
dir: packagesByName.get(name).dir
|
|
62382
62597
|
}));
|
|
62383
|
-
const
|
|
62384
|
-
|
|
62385
|
-
|
|
62386
|
-
|
|
62387
|
-
|
|
62388
|
-
|
|
62389
|
-
|
|
62390
|
-
});
|
|
62391
|
-
});
|
|
62598
|
+
const dependencyUpdateOptions = {
|
|
62599
|
+
cwd,
|
|
62600
|
+
updateInternalDependencies: config.updateInternalDependencies,
|
|
62601
|
+
onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange,
|
|
62602
|
+
bumpVersionsWithWorkspaceProtocolOnly: config.bumpVersionsWithWorkspaceProtocolOnly,
|
|
62603
|
+
snapshot
|
|
62604
|
+
};
|
|
62392
62605
|
const filesToFormat = [];
|
|
62393
|
-
for (const release of
|
|
62394
|
-
const { changelog,
|
|
62395
|
-
const pkgJsonPath =
|
|
62396
|
-
|
|
62397
|
-
|
|
62398
|
-
|
|
62606
|
+
for (const release of releaseWithChangelogs) {
|
|
62607
|
+
const { changelog, dir, name, newVersion, packageJson } = release;
|
|
62608
|
+
const pkgJsonPath = await updatePackageJson(dir, [{
|
|
62609
|
+
keys: ["version"],
|
|
62610
|
+
value: newVersion
|
|
62611
|
+
}, ...getDependencyVersionEdits(packageJson, versionsToUpdate, dependencyUpdateOptions)]);
|
|
62612
|
+
if (pkgJsonPath) touchedFiles.push(pkgJsonPath);
|
|
62399
62613
|
if (changelog && changelog.length > 0) {
|
|
62400
62614
|
const changelogPath = node_path.resolve(dir, "CHANGELOG.md");
|
|
62401
62615
|
await updateChangelog(changelogPath, changelog, name);
|
|
@@ -62403,6 +62617,11 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
62403
62617
|
filesToFormat.push(changelogPath);
|
|
62404
62618
|
}
|
|
62405
62619
|
}
|
|
62620
|
+
if (packages.rootPackage) {
|
|
62621
|
+
const pkgJsonEdits = getDependencyVersionEdits(packages.rootPackage.packageJson, versionsToUpdate, dependencyUpdateOptions);
|
|
62622
|
+
const pkgJsonPath = await updatePackageJson(packages.rootPackage.dir, pkgJsonEdits);
|
|
62623
|
+
if (pkgJsonPath) touchedFiles.push(pkgJsonPath);
|
|
62624
|
+
}
|
|
62406
62625
|
if (filesToFormat.length > 0) await (await getFormatter(config.format, cwd))(filesToFormat);
|
|
62407
62626
|
if (releasePlan.preState == null || releasePlan.preState.mode === "exit") {
|
|
62408
62627
|
const changesetFolder = node_path.resolve(cwd, ".changeset");
|
|
@@ -62493,7 +62712,7 @@ async function updateChangelog(changelogPath, changelog, name) {
|
|
|
62493
62712
|
await node_fs_promises.writeFile(changelogPath, newChangelog);
|
|
62494
62713
|
}
|
|
62495
62714
|
//#endregion
|
|
62496
|
-
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.
|
|
62715
|
+
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.8/node_modules/@changesets/assemble-release-plan/dist/index.mjs
|
|
62497
62716
|
function getHighestReleaseType(releases) {
|
|
62498
62717
|
if (releases.length === 0) throw new Error(`Large internal Changesets error when calculating highest release type in the set of releases. Please contact the maintainers`);
|
|
62499
62718
|
let highestReleaseType = "none";
|
|
@@ -62839,7 +63058,7 @@ function getPreInfo(changesets, packagesByName, config, preState) {
|
|
|
62839
63058
|
};
|
|
62840
63059
|
}
|
|
62841
63060
|
//#endregion
|
|
62842
|
-
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.
|
|
63061
|
+
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.7/node_modules/@changesets/pre/dist/index.mjs
|
|
62843
63062
|
async function outputFile(filePath, content) {
|
|
62844
63063
|
await node_fs_promises.mkdir(node_path.dirname(filePath), { recursive: true });
|
|
62845
63064
|
await node_fs_promises.writeFile(filePath, content, "utf8");
|
|
@@ -62868,7 +63087,7 @@ async function migratePreState(rootDir, preState) {
|
|
|
62868
63087
|
return preState;
|
|
62869
63088
|
}
|
|
62870
63089
|
//#endregion
|
|
62871
|
-
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.
|
|
63090
|
+
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.8/node_modules/@changesets/parse/dist/index.mjs
|
|
62872
63091
|
const mdRegex = /\s*---([^]*?)\r?\n\s*---(\s*(?:\n|$)[^]*)/;
|
|
62873
63092
|
const EXAMPLE_FORMAT = `---\n"package-name": patch\n---`;
|
|
62874
63093
|
const validVersionTypes = [
|
|
@@ -62921,7 +63140,7 @@ YAML error: ${e instanceof Error ? e.message : String(e)}\nFrontmatter content:\
|
|
|
62921
63140
|
};
|
|
62922
63141
|
}
|
|
62923
63142
|
//#endregion
|
|
62924
|
-
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.
|
|
63143
|
+
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.8/node_modules/@changesets/read/dist/index.mjs
|
|
62925
63144
|
const ignoredMdFiles = [
|
|
62926
63145
|
/^README\.md$/i,
|
|
62927
63146
|
"AGENTS.md",
|
|
@@ -62954,7 +63173,7 @@ async function readChangesets(rootDir, sinceRef) {
|
|
|
62954
63173
|
return await Promise.all(changesetContents);
|
|
62955
63174
|
}
|
|
62956
63175
|
//#endregion
|
|
62957
|
-
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.
|
|
63176
|
+
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.8/node_modules/@changesets/get-release-plan/dist/index.mjs
|
|
62958
63177
|
async function getReleasePlan(cwd, sinceRef, passedConfig) {
|
|
62959
63178
|
const packages = await getPackages(cwd);
|
|
62960
63179
|
const configResult = await readConfig(packages.rootDir, packages);
|