@ariestools/toolchain 8.7.27 → 8.7.28
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/dist/actions/analyze.d.ts +27 -9
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts +12 -4
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +9 -3
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts.map +1 -1
- package/dist/actions/api-exposure/apiExposure.d.ts +9 -3
- package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
- package/dist/actions/api-exposure/config.d.ts +12 -4
- package/dist/actions/api-exposure/config.d.ts.map +1 -1
- package/dist/actions/api-exposure/installStrategy.d.ts +6 -2
- package/dist/actions/api-exposure/installStrategy.d.ts.map +1 -1
- package/dist/actions/api-exposure/reporters.d.ts +3 -1
- package/dist/actions/api-exposure/reporters.d.ts.map +1 -1
- package/dist/actions/api-exposure/scoring.d.ts +3 -1
- package/dist/actions/api-exposure/scoring.d.ts.map +1 -1
- package/dist/actions/api-exposure/types.d.ts +48 -16
- package/dist/actions/api-exposure/types.d.ts.map +1 -1
- package/dist/actions/barrel/index.d.ts +0 -1
- package/dist/actions/barrel/index.d.ts.map +1 -1
- package/dist/actions/barrel/restrictionHelpers.d.ts +0 -19
- package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -1
- package/dist/actions/compile.d.ts +9 -3
- package/dist/actions/compile.d.ts.map +1 -1
- package/dist/actions/dead/analyzePackage.d.ts +18 -6
- package/dist/actions/dead/analyzePackage.d.ts.map +1 -1
- package/dist/actions/dead/collectSymbols.d.ts +12 -4
- package/dist/actions/dead/collectSymbols.d.ts.map +1 -1
- package/dist/actions/dead/evaluateRules.d.ts +3 -1
- package/dist/actions/dead/evaluateRules.d.ts.map +1 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts +3 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -1
- package/dist/actions/dead/ruleNames.d.ts +3 -1
- package/dist/actions/dead/ruleNames.d.ts.map +1 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts +3 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -1
- package/dist/actions/dead/sourceEdits.d.ts +3 -1
- package/dist/actions/dead/sourceEdits.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts +3 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +6 -2
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
- package/dist/actions/deplint/collectPickRows.d.ts +24 -8
- package/dist/actions/deplint/collectPickRows.d.ts.map +1 -1
- package/dist/actions/deplint/deplint.d.ts +9 -3
- package/dist/actions/deplint/deplint.d.ts.map +1 -1
- package/dist/actions/deplint/deplintPick.d.ts +3 -1
- package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
- package/dist/actions/deplint/editXyConfigPackages.d.ts +9 -3
- package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
- package/dist/actions/deplint/fetchPackageManifest.d.ts +6 -2
- package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts +6 -2
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/interactivePick.d.ts +3 -1
- package/dist/actions/deplint/interactivePick.d.ts.map +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts +12 -4
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +3 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -1
- package/dist/actions/deplint/snapshot.d.ts +24 -8
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/sourceFileCache.d.ts +3 -1
- package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +66 -22
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/gitignore.d.ts +3 -1
- package/dist/actions/gitignore.d.ts.map +1 -1
- package/dist/actions/lint.d.ts +15 -5
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintNext.d.ts +6 -2
- package/dist/actions/lintNext.d.ts.map +1 -1
- package/dist/actions/lintNextWorker.d.ts +36 -12
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/lintPackageFilter.d.ts +15 -5
- package/dist/actions/lintPackageFilter.d.ts.map +1 -1
- package/dist/actions/package/clean-outputs.d.ts +3 -1
- package/dist/actions/package/clean-outputs.d.ts.map +1 -1
- package/dist/actions/package/clean-typescript.d.ts +3 -1
- package/dist/actions/package/clean-typescript.d.ts.map +1 -1
- package/dist/actions/package/cleanGitignore.d.ts +6 -2
- package/dist/actions/package/cleanGitignore.d.ts.map +1 -1
- package/dist/actions/package/cleanPlan.d.ts +6 -2
- package/dist/actions/package/cleanPlan.d.ts.map +1 -1
- package/dist/actions/package/cleanRules.d.ts +15 -5
- package/dist/actions/package/cleanRules.d.ts.map +1 -1
- package/dist/actions/package/compile/ApiExposureConfig.d.ts +24 -8
- package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/CleanConfig.d.ts +3 -1
- package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/MonolithConfig.d.ts +39 -13
- package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/PublintConfig.d.ts +6 -2
- package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +162 -54
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/createProgramFromConfig.d.ts +18 -6
- package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/inputs.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +3 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileLayout.d.ts +15 -5
- package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCopyEntries.d.ts +6 -2
- package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithReexport.d.ts +12 -4
- package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/recompile.d.ts +3 -1
- package/dist/actions/recompile.d.ts.map +1 -1
- package/dist/actions/skills/defaults.d.ts +14 -6
- package/dist/actions/skills/defaults.d.ts.map +1 -1
- package/dist/actions/skills/skillRules.d.ts +4 -2
- package/dist/actions/skills/skillRules.d.ts.map +1 -1
- package/dist/actions/tsc-validate/sharedValidate.d.ts +6 -2
- package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -1
- package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +9 -3
- package/dist/actions/work/github.d.ts.map +1 -1
- package/dist/actions/work/helpers.d.ts +3 -1
- package/dist/actions/work/helpers.d.ts.map +1 -1
- package/dist/actions/work/index.d.ts +6 -2
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/list.d.ts +6 -2
- package/dist/actions/work/list.d.ts.map +1 -1
- package/dist/actions/work/move.d.ts +3 -1
- package/dist/actions/work/move.d.ts.map +1 -1
- package/dist/actions/work/store.d.ts +3 -1
- package/dist/actions/work/store.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts +15 -5
- package/dist/actions/work/sync.d.ts.map +1 -1
- package/dist/actions/work/workspace.d.ts +15 -5
- package/dist/actions/work/workspace.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +269 -185
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +137 -96
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +149 -100
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +16 -14
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +16 -14
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +4 -3
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +4 -3
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +4 -3
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +220 -165
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +173 -108
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +4 -3
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +97 -71
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/run-or-exec.mjs +8 -4
- package/dist/bin/run-or-exec.mjs.map +1 -1
- package/dist/bin/skills.mjs +494 -222
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/xy.mjs +2029 -1992
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/copyAssetFiles.d.ts +3 -1
- package/dist/lib/copyAssetFiles.d.ts.map +1 -1
- package/dist/lib/licenseCheck/checkLicenses.d.ts +18 -6
- package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +9 -3
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/readPackageLicense.d.ts +6 -2
- package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -1
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/lib/match.d.ts +6 -2
- package/dist/lib/match.d.ts.map +1 -1
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +12 -4
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -1
- package/dist/lib/safeExit.d.ts +3 -1
- package/dist/lib/safeExit.d.ts.map +1 -1
- package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -1
- package/dist/lib/updo/interactiveSelect.d.ts +6 -2
- package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
- package/dist/lib/updo/interfaces.d.ts +15 -5
- package/dist/lib/updo/interfaces.d.ts.map +1 -1
- package/dist/lib/updo/resolveVersions.d.ts +15 -5
- package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
- package/dist/lib/updo/runUpdo.d.ts +12 -4
- package/dist/lib/updo/runUpdo.d.ts.map +1 -1
- package/dist/pm/PackageManager.d.ts +45 -15
- package/dist/pm/PackageManager.d.ts.map +1 -1
- package/dist/xy/common/work/options.d.ts +3 -1
- package/dist/xy/common/work/options.d.ts.map +1 -1
- package/package.json +18 -18
|
@@ -1237,8 +1237,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1237
1237
|
let pairHasKey = false;
|
|
1238
1238
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
1239
1239
|
let pairKey;
|
|
1240
|
-
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey))
|
|
1241
|
-
|
|
1240
|
+
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
|
|
1241
|
+
if (!pairHasKey) pairHasKey = true;
|
|
1242
|
+
else return false;
|
|
1243
|
+
}
|
|
1242
1244
|
if (!pairHasKey) return false;
|
|
1243
1245
|
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
1244
1246
|
else return false;
|
|
@@ -1578,9 +1580,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1578
1580
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
1579
1581
|
keyNode = String(keyNode);
|
|
1580
1582
|
if (_result === null) _result = {};
|
|
1581
|
-
if (keyTag === "tag:yaml.org,2002:merge")
|
|
1582
|
-
|
|
1583
|
-
|
|
1583
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
1584
|
+
if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
1585
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
1586
|
+
} else {
|
|
1584
1587
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
1585
1588
|
state.line = startLine || state.line;
|
|
1586
1589
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -1865,14 +1868,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1865
1868
|
state.result = "";
|
|
1866
1869
|
while (ch !== 0) {
|
|
1867
1870
|
ch = state.input.charCodeAt(++state.position);
|
|
1868
|
-
if (ch === 43 || ch === 45)
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
else if (
|
|
1872
|
-
|
|
1873
|
-
detectedIndent
|
|
1874
|
-
|
|
1875
|
-
|
|
1871
|
+
if (ch === 43 || ch === 45) {
|
|
1872
|
+
if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
1873
|
+
else throwError(state, "repeat of a chomping mode identifier");
|
|
1874
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
1875
|
+
if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
1876
|
+
else if (!detectedIndent) {
|
|
1877
|
+
textIndent = nodeIndent + tmp - 1;
|
|
1878
|
+
detectedIndent = true;
|
|
1879
|
+
} else throwError(state, "repeat of an indentation width identifier");
|
|
1880
|
+
} else break;
|
|
1876
1881
|
}
|
|
1877
1882
|
if (isWhiteSpace(ch)) {
|
|
1878
1883
|
do
|
|
@@ -1903,16 +1908,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1903
1908
|
}
|
|
1904
1909
|
break;
|
|
1905
1910
|
}
|
|
1906
|
-
if (folding)
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
atMoreIndented
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
if (
|
|
1914
|
-
|
|
1915
|
-
|
|
1911
|
+
if (folding) {
|
|
1912
|
+
if (isWhiteSpace(ch)) {
|
|
1913
|
+
atMoreIndented = true;
|
|
1914
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
1915
|
+
} else if (atMoreIndented) {
|
|
1916
|
+
atMoreIndented = false;
|
|
1917
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
1918
|
+
} else if (emptyLines === 0) {
|
|
1919
|
+
if (didReadContent) state.result += " ";
|
|
1920
|
+
} else state.result += common.repeat("\n", emptyLines);
|
|
1921
|
+
} else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
1916
1922
|
didReadContent = true;
|
|
1917
1923
|
detectedIndent = true;
|
|
1918
1924
|
emptyLines = 0;
|
|
@@ -2041,8 +2047,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2041
2047
|
_keyLineStart = state.lineStart;
|
|
2042
2048
|
_keyPos = state.position;
|
|
2043
2049
|
}
|
|
2044
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
2045
|
-
|
|
2050
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
2051
|
+
if (atExplicitKey) keyNode = state.result;
|
|
2052
|
+
else valueNode = state.result;
|
|
2053
|
+
}
|
|
2046
2054
|
if (!atExplicitKey) {
|
|
2047
2055
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
2048
2056
|
keyTag = keyNode = valueNode = null;
|
|
@@ -2090,12 +2098,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2090
2098
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
2091
2099
|
} else {
|
|
2092
2100
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
2093
|
-
if (ch === 33)
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2101
|
+
if (ch === 33) {
|
|
2102
|
+
if (!isNamed) {
|
|
2103
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
2104
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
2105
|
+
isNamed = true;
|
|
2106
|
+
_position = state.position + 1;
|
|
2107
|
+
} else throwError(state, "tag suffix cannot contain exclamation marks");
|
|
2108
|
+
}
|
|
2099
2109
|
ch = state.input.charCodeAt(++state.position);
|
|
2100
2110
|
}
|
|
2101
2111
|
tagName = state.input.slice(_position, state.position);
|
|
@@ -2199,21 +2209,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2199
2209
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
2200
2210
|
else flowIndent = parentIndent + 1;
|
|
2201
2211
|
blockIndent = state.position - state.lineStart;
|
|
2202
|
-
if (indentStatus === 1)
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2212
|
+
if (indentStatus === 1) {
|
|
2213
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
2214
|
+
else {
|
|
2215
|
+
const ch = state.input.charCodeAt(state.position);
|
|
2216
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
2217
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
2218
|
+
else if (readAlias(state)) {
|
|
2219
|
+
hasContent = true;
|
|
2220
|
+
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
2221
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
2222
|
+
hasContent = true;
|
|
2223
|
+
if (state.tag === null) state.tag = "?";
|
|
2224
|
+
}
|
|
2225
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
2213
2226
|
}
|
|
2214
|
-
|
|
2215
|
-
}
|
|
2216
|
-
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
2227
|
+
} else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
2217
2228
|
}
|
|
2218
2229
|
if (state.tag === null) {
|
|
2219
2230
|
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
@@ -2719,8 +2730,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2719
2730
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
2720
2731
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
2721
2732
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
2722
|
-
if (explicitPair)
|
|
2723
|
-
|
|
2733
|
+
if (explicitPair) {
|
|
2734
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
2735
|
+
else pairBuffer += "? ";
|
|
2736
|
+
}
|
|
2724
2737
|
pairBuffer += state.dump;
|
|
2725
2738
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
2726
2739
|
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
|
|
@@ -2737,9 +2750,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2737
2750
|
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
2738
2751
|
const type = typeList[index];
|
|
2739
2752
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
2740
|
-
if (explicit)
|
|
2741
|
-
|
|
2742
|
-
|
|
2753
|
+
if (explicit) {
|
|
2754
|
+
if (type.multi && type.representName) state.tag = type.representName(object);
|
|
2755
|
+
else state.tag = type.tag;
|
|
2756
|
+
} else state.tag = "?";
|
|
2743
2757
|
if (type.represent) {
|
|
2744
2758
|
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
2745
2759
|
let _result;
|
|
@@ -2771,22 +2785,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2771
2785
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
|
|
2772
2786
|
else {
|
|
2773
2787
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
2774
|
-
if (type === "[object Object]")
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2788
|
+
if (type === "[object Object]") {
|
|
2789
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
2790
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
2791
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
2792
|
+
} else {
|
|
2793
|
+
writeFlowMapping(state, level, state.dump);
|
|
2794
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
2795
|
+
}
|
|
2796
|
+
} else if (type === "[object Array]") {
|
|
2797
|
+
if (block && state.dump.length !== 0) {
|
|
2798
|
+
if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
|
|
2799
|
+
else writeBlockSequence(state, level, state.dump, compact);
|
|
2800
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
2801
|
+
} else {
|
|
2802
|
+
writeFlowSequence(state, level, state.dump);
|
|
2803
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
2804
|
+
}
|
|
2805
|
+
} else if (type === "[object String]") {
|
|
2790
2806
|
if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
|
|
2791
2807
|
} else if (type === "[object Undefined]") return false;
|
|
2792
2808
|
else {
|
|
@@ -3780,7 +3796,9 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3780
3796
|
})))();
|
|
3781
3797
|
const configState = {
|
|
3782
3798
|
config: void 0,
|
|
3783
|
-
/**
|
|
3799
|
+
/**
|
|
3800
|
+
In-flight root load so concurrent callers share one cosmiconfig search.
|
|
3801
|
+
*/
|
|
3784
3802
|
loadPromise: void 0,
|
|
3785
3803
|
rootConfigPath: void 0
|
|
3786
3804
|
};
|
|
@@ -3824,7 +3842,9 @@ function normalizeReexportTargets(value) {
|
|
|
3824
3842
|
if (value === void 0) return [];
|
|
3825
3843
|
return Array.isArray(value) ? value : [value];
|
|
3826
3844
|
}
|
|
3827
|
-
/**
|
|
3845
|
+
/**
|
|
3846
|
+
Configured `reexport` targets for a module, if any.
|
|
3847
|
+
*/
|
|
3828
3848
|
function moduleReexportTargets(mod) {
|
|
3829
3849
|
return normalizeReexportTargets(mod.reexport);
|
|
3830
3850
|
}
|
|
@@ -3853,7 +3873,9 @@ function moduleShimTargets(mod) {
|
|
|
3853
3873
|
if (fromReexport.length > 0) return fromReexport;
|
|
3854
3874
|
return [`#${mod.name}`];
|
|
3855
3875
|
}
|
|
3856
|
-
/**
|
|
3876
|
+
/**
|
|
3877
|
+
Builds a pure star-reexport TypeScript (or mjs) source body (no header).
|
|
3878
|
+
*/
|
|
3857
3879
|
function buildStarReexportLines(targets, options = {}) {
|
|
3858
3880
|
const semi = options.semi === false ? "" : ";";
|
|
3859
3881
|
return `${targets.map((target) => `export * from '${target}'${semi}`).join("\n")}\n`;
|
|
@@ -3936,7 +3958,9 @@ function buildModelTs(modules) {
|
|
|
3936
3958
|
function buildModuleShim(mod) {
|
|
3937
3959
|
return `${GENERATED_HEADER}${buildStarReexportLines(moduleShimTargets(mod), { semi: false })}`;
|
|
3938
3960
|
}
|
|
3939
|
-
/**
|
|
3961
|
+
/**
|
|
3962
|
+
Generated module body for facade modules with `reexport` targets.
|
|
3963
|
+
*/
|
|
3940
3964
|
function buildModuleReexportIndex(mod) {
|
|
3941
3965
|
return `${GENERATED_HEADER}${buildStarReexportLines(moduleReexportTargets(mod), { semi: false })}`;
|
|
3942
3966
|
}
|
|
@@ -3952,7 +3976,9 @@ function buildPlatformShim(target) {
|
|
|
3952
3976
|
return `${GENERATED_HEADER}export * from '${target}'
|
|
3953
3977
|
`;
|
|
3954
3978
|
}
|
|
3955
|
-
/**
|
|
3979
|
+
/**
|
|
3980
|
+
True when the package publishes a type-only model barrel (`src/model.ts`).
|
|
3981
|
+
*/
|
|
3956
3982
|
function monolithHasModelBarrel(config) {
|
|
3957
3983
|
return config.modules.some((mod) => mod.model ?? false);
|
|
3958
3984
|
}
|