@doccov/sdk 0.25.3 → 0.25.5
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/analysis/index.d.ts +42 -42
- package/dist/analysis/index.js +1 -1
- package/dist/index.d.ts +148 -172
- package/dist/index.js +397 -3533
- package/dist/shared/{chunk-e9mvnrys.js → chunk-03yx6qfs.js} +1 -16
- package/package.json +2 -2
|
@@ -801,15 +801,6 @@ function createSourceFile(filePath) {
|
|
|
801
801
|
import ts2 from "typescript";
|
|
802
802
|
|
|
803
803
|
// src/utils/builtin-detection.ts
|
|
804
|
-
function isBuiltInTypeName(name) {
|
|
805
|
-
if (name.length === 1 && /^[A-Z]$/.test(name)) {
|
|
806
|
-
return true;
|
|
807
|
-
}
|
|
808
|
-
if (name.startsWith("__")) {
|
|
809
|
-
return true;
|
|
810
|
-
}
|
|
811
|
-
return BUILTIN_TYPE_NAMES.has(name) || LIBRARY_INTERNAL_PATTERNS.some((re) => re.test(name));
|
|
812
|
-
}
|
|
813
804
|
function isBuiltInIdentifier(identifier) {
|
|
814
805
|
return BUILTIN_GLOBALS.has(identifier);
|
|
815
806
|
}
|
|
@@ -981,12 +972,6 @@ var BUILTIN_GLOBALS = new Set([
|
|
|
981
972
|
"__filename",
|
|
982
973
|
"import"
|
|
983
974
|
]);
|
|
984
|
-
var LIBRARY_INTERNAL_PATTERNS = [
|
|
985
|
-
/^T[A-Z][a-zA-Z]*$/,
|
|
986
|
-
/^Zod[A-Z][a-zA-Z]*$/,
|
|
987
|
-
/^(Union|Intersect|Object|Array)Static$/,
|
|
988
|
-
/^Static(Decode|Encode)$/
|
|
989
|
-
];
|
|
990
975
|
|
|
991
976
|
// src/analysis/drift/utils.ts
|
|
992
977
|
function extractParamFromTag(text) {
|
|
@@ -3000,4 +2985,4 @@ function getExtendedTrend(spec, cwd, options) {
|
|
|
3000
2985
|
};
|
|
3001
2986
|
}
|
|
3002
2987
|
|
|
3003
|
-
export { isFixableDrift, generateFix, generateFixesForExport, mergeFixes, categorizeDrifts, ts, parseJSDocToPatch, applyPatchToJSDoc, serializeJSDoc, findJSDocLocation, applyEdits, createSourceFile,
|
|
2988
|
+
export { isFixableDrift, generateFix, generateFixesForExport, mergeFixes, categorizeDrifts, ts, parseJSDocToPatch, applyPatchToJSDoc, serializeJSDoc, findJSDocLocation, applyEdits, createSourceFile, isBuiltInIdentifier, detectExampleRuntimeErrors, parseAssertions, hasNonAssertionComments, detectExampleAssertionFailures, buildExportRegistry, computeDrift, computeExportDrift, buildDocCovSpec, DRIFT_CATEGORIES2 as DRIFT_CATEGORIES, DRIFT_CATEGORY_LABELS, DRIFT_CATEGORY_DESCRIPTIONS, categorizeDrift, groupDriftsByCategory, getDriftSummary, formatDriftSummaryLine, calculateAggregateCoverage, ensureSpecCoverage, getExportAnalysis, getExportScore, getExportDrift, getExportMissing, isExportFullyDocumented, generateReport, generateReportFromDocCov, loadCachedReport, saveReport, isCachedReportValid, renderApiSurface, isStandardJSONSchema, resolveCompiledPath, extractStandardSchemas, extractStandardSchemasFromProject, detectRuntimeSchemas, HISTORY_DIR, RETENTION_DAYS, computeSnapshot, saveSnapshot, loadSnapshots, getTrend, renderSparkline, formatDelta, pruneHistory, pruneByTier, loadSnapshotsForDays, generateWeeklySummaries, getExtendedTrend };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doccov/sdk",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.5",
|
|
4
4
|
"description": "DocCov SDK - Documentation coverage and drift detection for TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@doccov/spec": "^0.24.1",
|
|
51
|
-
"@openpkg-ts/extract": "^0.
|
|
51
|
+
"@openpkg-ts/extract": "^0.14.0",
|
|
52
52
|
"@openpkg-ts/spec": "^0.12.0",
|
|
53
53
|
"@vercel/sandbox": "^1.0.3",
|
|
54
54
|
"mdast": "^3.0.0",
|