svelte-docinfo 0.5.4 → 0.5.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.
Files changed (52) hide show
  1. package/README.md +19 -19
  2. package/dist/analyze-core.d.ts.map +1 -1
  3. package/dist/analyze-core.js +11 -11
  4. package/dist/analyze.d.ts.map +1 -1
  5. package/dist/analyze.js +8 -8
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +4 -4
  8. package/dist/declaration-build.d.ts.map +1 -1
  9. package/dist/declaration-helpers.d.ts.map +1 -1
  10. package/dist/dep-resolver.js +2 -2
  11. package/dist/diagnostics.d.ts.map +1 -1
  12. package/dist/diagnostics.js +18 -18
  13. package/dist/discovery.d.ts.map +1 -1
  14. package/dist/discovery.js +2 -2
  15. package/dist/exports.d.ts.map +1 -1
  16. package/dist/exports.js +3 -3
  17. package/dist/files.d.ts.map +1 -1
  18. package/dist/files.js +2 -2
  19. package/dist/index.d.ts +6 -6
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +4 -4
  22. package/dist/logo.js +3 -3
  23. package/dist/postprocess.d.ts.map +1 -1
  24. package/dist/postprocess.js +12 -12
  25. package/dist/session.d.ts.map +1 -1
  26. package/dist/session.js +14 -14
  27. package/dist/source-config.d.ts.map +1 -1
  28. package/dist/source-config.js +2 -2
  29. package/dist/svelte.d.ts.map +1 -1
  30. package/dist/svelte.js +176 -158
  31. package/dist/tsdoc.d.ts.map +1 -1
  32. package/dist/tsdoc.js +1 -1
  33. package/dist/types.d.ts.map +1 -1
  34. package/dist/types.js +29 -29
  35. package/dist/typescript-exports.d.ts.map +1 -1
  36. package/dist/typescript-exports.js +18 -18
  37. package/dist/typescript-extract-class.d.ts.map +1 -1
  38. package/dist/typescript-extract-class.js +5 -5
  39. package/dist/typescript-extract-function.d.ts.map +1 -1
  40. package/dist/typescript-extract-function.js +3 -3
  41. package/dist/typescript-extract-shared.d.ts.map +1 -1
  42. package/dist/typescript-extract-shared.js +6 -6
  43. package/dist/typescript-extract-type-properties.d.ts.map +1 -1
  44. package/dist/typescript-extract-type-properties.js +6 -5
  45. package/dist/typescript-extract-type.d.ts.map +1 -1
  46. package/dist/typescript-extract-type.js +8 -8
  47. package/dist/typescript-program.d.ts.map +1 -1
  48. package/dist/typescript-program.js +4 -4
  49. package/dist/vite.d.ts.map +1 -1
  50. package/dist/vite.js +10 -10
  51. package/package.json +14 -13
  52. package/virtual-svelte-docinfo.d.ts +1 -1
package/dist/files.js CHANGED
@@ -38,7 +38,7 @@ export const loadFile = async (path, projectRoot) => {
38
38
  const content = await readFile(absolutePath, 'utf-8');
39
39
  return {
40
40
  id: toPosixPath(absolutePath),
41
- content,
41
+ content
42
42
  };
43
43
  };
44
44
  /**
@@ -84,7 +84,7 @@ export const globFiles = async (options) => {
84
84
  const filePaths = await glob(include, {
85
85
  cwd: projectRoot,
86
86
  ignore: exclude,
87
- absolute: true,
87
+ absolute: true
88
88
  });
89
89
  // Bounded concurrency to keep FD pressure under the typical ulimit on
90
90
  // large projects. See `concurrency.ts`.
package/dist/index.d.ts CHANGED
@@ -13,19 +13,19 @@ export type { AnalyzeOptions, AnalyzeFromFilesOptions } from './analyze.js';
13
13
  export { throwOnDuplicates, AnalyzeResultJson } from './analyze-core.js';
14
14
  export type { AnalyzeResultJsonWire, OnDuplicates, OnDuplicatesCallback } from './analyze-core.js';
15
15
  export { createAnalysisSession } from './session.js';
16
- export type { AnalysisSession, AnalysisSessionOptions, SetFileOptions, SetFileResult, SetFilesResult, QueryOptions, } from './session.js';
16
+ export type { AnalysisSession, AnalysisSessionOptions, SetFileOptions, SetFileResult, SetFilesResult, QueryOptions } from './session.js';
17
17
  export { normalizeResolveImport } from './dep-resolver.js';
18
18
  export type { ImportResolver, ResolveImport, ResolveImportFn } from './dep-resolver.js';
19
- export { DeclarationKind, DeclarationModifier, MemberKind, Reactivity, GenericParamJson, ParameterJson, ComponentPropJson, OverloadJson, FunctionMemberJson, VariableMemberJson, ConstructorMemberJson, MemberJson, FunctionDeclarationJson, ClassDeclarationJson, InterfaceDeclarationJson, TypeDeclarationJson, VariableDeclarationJson, EnumDeclarationJson, ComponentDeclarationJson, SnippetDeclarationJson, NamespaceDeclarationJson, DeclarationJson, ReExportJson, ExternalReExportJson, ModuleJson, } from './types.js';
20
- export { getDisplayName, generateImport, compactReplacer, isKind, findTypeReferences, buildTypeReferencePatterns, } from './declaration-helpers.js';
19
+ export { DeclarationKind, DeclarationModifier, MemberKind, Reactivity, GenericParamJson, ParameterJson, ComponentPropJson, OverloadJson, FunctionMemberJson, VariableMemberJson, ConstructorMemberJson, MemberJson, FunctionDeclarationJson, ClassDeclarationJson, InterfaceDeclarationJson, TypeDeclarationJson, VariableDeclarationJson, EnumDeclarationJson, ComponentDeclarationJson, SnippetDeclarationJson, NamespaceDeclarationJson, DeclarationJson, ReExportJson, ExternalReExportJson, ModuleJson } from './types.js';
20
+ export { getDisplayName, generateImport, compactReplacer, isKind, findTypeReferences, buildTypeReferencePatterns } from './declaration-helpers.js';
21
21
  export type { SourceFileInfo, AnalyzerType } from './source.js';
22
22
  export { createSourceOptions, DEFAULT_SOURCE_OPTIONS } from './source-config.js';
23
23
  export type { ModuleSourceOptions, SourceOptionsDefaults } from './source-config.js';
24
- export { findDuplicates, mergeReExports, resolveComponentAliases, resolveExportSurface, } from './postprocess.js';
24
+ export { findDuplicates, mergeReExports, resolveComponentAliases, resolveExportSurface } from './postprocess.js';
25
25
  export type { DuplicateDeclaration, ExportSurface, ExportSurfaceEntry } from './postprocess.js';
26
26
  export { deriveIncludePatterns } from './files.js';
27
27
  export { discoverSourceFiles } from './discovery.js';
28
- export type { Discovery, DiscoverSourceFilesOptions, DiscoverSourceFilesResult, } from './discovery.js';
29
- export { hasErrors, hasWarnings, errorsOf, warningsOf, byKind, formatDiagnostic, DiagnosticSeverity, DiagnosticKind, Diagnostic, } from './diagnostics.js';
28
+ export type { Discovery, DiscoverSourceFilesOptions, DiscoverSourceFilesResult } from './discovery.js';
29
+ export { hasErrors, hasWarnings, errorsOf, warningsOf, byKind, formatDiagnostic, DiagnosticSeverity, DiagnosticKind, Diagnostic } from './diagnostics.js';
30
30
  export type { AnalysisLog } from './log.js';
31
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EAAC,OAAO,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AACvD,YAAY,EAAC,cAAc,EAAE,uBAAuB,EAAC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACvE,YAAY,EAAC,qBAAqB,EAAE,YAAY,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAC,qBAAqB,EAAC,MAAM,cAAc,CAAC;AACnD,YAAY,EACX,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,cAAc,EACd,YAAY,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAC,cAAc,EAAE,aAAa,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAItF,OAAO,EACN,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACV,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,UAAU,GACV,MAAM,YAAY,CAAC;AAIpB,OAAO,EACN,cAAc,EACd,cAAc,E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AC1B,yBAAyB,EACzB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EACN,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -14,16 +14,16 @@ export { throwOnDuplicates, AnalyzeResultJson } from './analyze-core.js';
14
14
  export { createAnalysisSession } from './session.js';
15
15
  export { normalizeResolveImport } from './dep-resolver.js';
16
16
  // Types (Zod schemas + TypeScript interfaces)
17
- export { DeclarationKind, DeclarationModifier, MemberKind, Reactivity, GenericParamJson, ParameterJson, ComponentPropJson, OverloadJson, FunctionMemberJson, VariableMemberJson, ConstructorMemberJson, MemberJson, FunctionDeclarationJson, ClassDeclarationJson, InterfaceDeclarationJson, TypeDeclarationJson, VariableDeclarationJson, EnumDeclarationJson, ComponentDeclarationJson, SnippetDeclarationJson, NamespaceDeclarationJson, DeclarationJson, ReExportJson, ExternalReExportJson, ModuleJson, } from './types.js';
17
+ export { DeclarationKind, DeclarationModifier, MemberKind, Reactivity, GenericParamJson, ParameterJson, ComponentPropJson, OverloadJson, FunctionMemberJson, VariableMemberJson, ConstructorMemberJson, MemberJson, FunctionDeclarationJson, ClassDeclarationJson, InterfaceDeclarationJson, TypeDeclarationJson, VariableDeclarationJson, EnumDeclarationJson, ComponentDeclarationJson, SnippetDeclarationJson, NamespaceDeclarationJson, DeclarationJson, ReExportJson, ExternalReExportJson, ModuleJson } from './types.js';
18
18
  // Declaration helpers
19
- export { getDisplayName, generateImport, compactReplacer, isKind, findTypeReferences, buildTypeReferencePatterns, } from './declaration-helpers.js';
19
+ export { getDisplayName, generateImport, compactReplacer, isKind, findTypeReferences, buildTypeReferencePatterns } from './declaration-helpers.js';
20
20
  // Source options
21
21
  export { createSourceOptions, DEFAULT_SOURCE_OPTIONS } from './source-config.js';
22
22
  // Post-processing
23
- export { findDuplicates, mergeReExports, resolveComponentAliases, resolveExportSurface, } from './postprocess.js';
23
+ export { findDuplicates, mergeReExports, resolveComponentAliases, resolveExportSurface } from './postprocess.js';
24
24
  // File system constants
25
25
  export { deriveIncludePatterns } from './files.js';
26
26
  // File discovery
27
27
  export { discoverSourceFiles } from './discovery.js';
28
28
  // Diagnostics
29
- export { hasErrors, hasWarnings, errorsOf, warningsOf, byKind, formatDiagnostic, DiagnosticSeverity, DiagnosticKind, Diagnostic, } from './diagnostics.js';
29
+ export { hasErrors, hasWarnings, errorsOf, warningsOf, byKind, formatDiagnostic, DiagnosticSeverity, DiagnosticKind, Diagnostic } from './diagnostics.js';
package/dist/logo.js CHANGED
@@ -3,7 +3,7 @@ export const logo_svelte_docinfo = {
3
3
  fill: '#1ec3d2',
4
4
  paths: [
5
5
  {
6
- d: 'M 83,80.28 c -9.75,-34.41 2.18,-52.33 -3.76,-70 -2.31,-7.66 -48.25,-12 -70.25,-6 -12,6 -10,24 4,24 6,0 5.51,-13.67 6,-18 0,0 -1.43,59.52 5.13,80.21 1.2,3.8 2.91,5.28 4,5.92 3.93,2.31 63.48,3.74 68.01,0.54 1.18,-0.84 3.11,-5.38 2.63,-8.75 -0.42,-2.94 -3.27,-5.78 -5.28,-6.26 -1.74,-0.41 -0.62,-0.79 -5.37,-0.59 C 77.2,81.96 71.49,85.44 47.57,84.25 41.58,84.09 11.04,79.77 64.12,56.73 51.2,46.21 46.99,49.36 37.77,43.13 37.39,42.87 55,45.85 66.37,56.98 -10.84,93.94 82.99,80.29 82.99,80.29 Z',
7
- },
8
- ],
6
+ d: 'M 83,80.28 c -9.75,-34.41 2.18,-52.33 -3.76,-70 -2.31,-7.66 -48.25,-12 -70.25,-6 -12,6 -10,24 4,24 6,0 5.51,-13.67 6,-18 0,0 -1.43,59.52 5.13,80.21 1.2,3.8 2.91,5.28 4,5.92 3.93,2.31 63.48,3.74 68.01,0.54 1.18,-0.84 3.11,-5.38 2.63,-8.75 -0.42,-2.94 -3.27,-5.78 -5.28,-6.26 -1.74,-0.41 -0.62,-0.79 -5.37,-0.59 C 77.2,81.96 71.49,85.44 47.57,84.25 41.58,84.09 11.04,79.77 64.12,56.73 51.2,46.21 46.99,49.36 37.77,43.13 37.39,42.87 55,45.85 66.37,56.98 -10.84,93.94 82.99,80.29 82.99,80.29 Z'
7
+ }
8
+ ]
9
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"postprocess.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/postprocess.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAA2B,eAAe,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AACtF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAuBhD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,qCAAqC;IACrC,WAAW,EAAE,eAAe,CAAC;IAC7B,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC;CACf;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,cAAc,GAC1B,SAAS,KAAK,CAAC,UAAU,CAAC,KACxB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAwCzC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,MAMrD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,KAAK,CAAC,UAAU,CAAC,KAAG,KAAK,CAAC,UAAU,CAExE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,KAAK,CAAC,UAAU,CAAC,KAAG,IAmC3D,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,GAAI,SAAS,KAA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,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IACtD,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,oFAAoF;IACpF,OAAO,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACnC;;;OAGG;IACH,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC;;;OAGG;IACH,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,oBAAoB,GAChC,SAAS,KAAK,CAAC,UAAU,CAAC,EAC1B,MAAM,MAAM,KACV,aAAa,GAAG,IA+IlB,CAAC"}
@@ -118,7 +118,7 @@ export const findDuplicates = (modules) => {
118
118
  allOccurrences.get(declaration.name).push({
119
119
  declaration,
120
120
  module: mod.path,
121
- canonical: resolveCanonical(mod.path, declaration),
121
+ canonical: resolveCanonical(mod.path, declaration)
122
122
  });
123
123
  }
124
124
  }
@@ -344,7 +344,7 @@ export const computeDependents = (files) => {
344
344
  return {
345
345
  ...file,
346
346
  id: posixId,
347
- dependencies: posixDeps,
347
+ dependencies: posixDeps
348
348
  };
349
349
  });
350
350
  // Build a map of file id -> dependents (computed from dependencies)
@@ -377,7 +377,7 @@ export const computeDependents = (files) => {
377
377
  const dependents = Array.from(computed).sort(compareStrings);
378
378
  return {
379
379
  ...file,
380
- dependents,
380
+ dependents
381
381
  };
382
382
  });
383
383
  };
@@ -427,7 +427,7 @@ export const resolveExportSurface = (modules, path) => {
427
427
  const emptySurface = () => ({
428
428
  entries: new Map(),
429
429
  unresolvedStars: new Set(),
430
- externalStars: new Set(),
430
+ externalStars: new Set()
431
431
  });
432
432
  // Only surfaces resolved without hitting a cycle back-edge are memoized.
433
433
  // A surface computed while one of its star ancestors is mid-resolution is
@@ -463,9 +463,9 @@ export const resolveExportSurface = (modules, path) => {
463
463
  via: 'declaration',
464
464
  module: modulePath,
465
465
  declaration,
466
- ...(matchingEdge?.typeOnly ? { typeOnly: true } : {}),
466
+ ...(matchingEdge?.typeOnly ? { typeOnly: true } : {})
467
467
  },
468
- identity: resolveCanonicalIdentity(byIdentity, modulePath, declaration),
468
+ identity: resolveCanonicalIdentity(byIdentity, modulePath, declaration)
469
469
  });
470
470
  }
471
471
  // 2. Same-name re-export edges not already covered by a declaration.
@@ -482,11 +482,11 @@ export const resolveExportSurface = (modules, path) => {
482
482
  via: 'reExport',
483
483
  module: edge.module,
484
484
  ...(canonical ? { declaration: canonical } : {}),
485
- ...(edge.typeOnly ? { typeOnly: true } : {}),
485
+ ...(edge.typeOnly ? { typeOnly: true } : {})
486
486
  },
487
487
  identity: canonical
488
488
  ? resolveCanonicalIdentity(byIdentity, edge.module, canonical)
489
- : `${edge.module}\n${edge.name}`,
489
+ : `${edge.module}\n${edge.name}`
490
490
  });
491
491
  }
492
492
  // 3. Direct external re-exports
@@ -499,9 +499,9 @@ export const resolveExportSurface = (modules, path) => {
499
499
  via: 'external',
500
500
  specifier: external.specifier,
501
501
  ...(external.originalName !== undefined ? { originalName: external.originalName } : {}),
502
- ...(external.typeOnly ? { typeOnly: true } : {}),
502
+ ...(external.typeOnly ? { typeOnly: true } : {})
503
503
  },
504
- identity: `ext\n${external.specifier}\n${external.originalName ?? external.name}`,
504
+ identity: `ext\n${external.specifier}\n${external.originalName ?? external.name}`
505
505
  });
506
506
  }
507
507
  // 4. External stars — names unknowable, surface incompleteness recorded
@@ -545,7 +545,7 @@ export const resolveExportSurface = (modules, path) => {
545
545
  }
546
546
  entries.set(entry.name, {
547
547
  entry: { ...entry, via: 'star', starFrom: target },
548
- identity,
548
+ identity
549
549
  });
550
550
  }
551
551
  }
@@ -560,6 +560,6 @@ export const resolveExportSurface = (modules, path) => {
560
560
  .map(({ entry }) => entry)
561
561
  .sort((a, b) => compareStrings(a.name, b.name)),
562
562
  unresolvedStarExports: Array.from(resolved.unresolvedStars).sort(compareStrings),
563
- externalStarExports: Array.from(resolved.externalStars).sort(compareStrings),
563
+ externalStarExports: Array.from(resolved.externalStars).sort(compareStrings)
564
564
  };
565
565
  };
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAIN,KAAK,8BAA8B,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAE1C,OAAO,EAEN,KAAK,aAAa,EAMlB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,KAAK,mBAAmB,EAAmC,MAAM,oBAAoB,CAAC;AAG9F,OAAO,EAGN,iBAAiB,EACjB,KAAK,YAAY,EACjB,MAAM,mBAAmB,CAAC;AAG3B;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC9B;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,aAAa;IAC7B,qFAAqF;IACrF,OAAO,EAAE,OAAO,CAAC;IACjB,oEAAoE;IACpE,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,MAAM,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,WAAW,CAAC;CAClB;AA+FD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,qBAAqB,GAAI,SAAS,sBAAsB,KAAG,eAsdvE,CAAC"}
package/dist/session.js CHANGED
@@ -28,14 +28,14 @@
28
28
  *
29
29
  * @module
30
30
  */
31
- import { createAnalysisLanguageService, loadTsconfig, } from './typescript-program.js';
31
+ import { createAnalysisLanguageService, loadTsconfig } from './typescript-program.js';
32
32
  import { to_error_message } from './error.js';
33
33
  import { transformSvelteSource } from './svelte.js';
34
- import { createDefaultResolver, ensureLexerReady, isNodeBuiltin, lexImports, normalizeResolveImport, } from './dep-resolver.js';
34
+ import { createDefaultResolver, ensureLexerReady, isNodeBuiltin, lexImports, normalizeResolveImport } from './dep-resolver.js';
35
35
  import { isSource, normalizeSourceOptions } from './source-config.js';
36
36
  import { toPosixPath } from './paths.js';
37
37
  import { MAX_RESOLVE_CONCURRENCY, map_concurrent } from './concurrency.js';
38
- import { analyzeCore, normalizeDiagnosticPaths, AnalyzeResultJson, } from './analyze-core.js';
38
+ import { analyzeCore, normalizeDiagnosticPaths, AnalyzeResultJson } from './analyze-core.js';
39
39
  import { computeDependents } from './postprocess.js';
40
40
  /**
41
41
  * Element-wise equality on two readonly string arrays. Used for the
@@ -91,7 +91,7 @@ export const createAnalysisSession = (options) => {
91
91
  projectRoot: sourceOptions.projectRoot,
92
92
  tsconfig: options.tsconfig,
93
93
  compilerOptions: options.compilerOptions,
94
- documentRegistry: options.documentRegistry,
94
+ documentRegistry: options.documentRegistry
95
95
  }, options.log);
96
96
  const owned = new Map();
97
97
  // TODO: the owned-entry cache is in-memory only, so cold one-shot runs
@@ -118,7 +118,7 @@ export const createAnalysisSession = (options) => {
118
118
  const { compilerOptions } = loadTsconfig({
119
119
  projectRoot: sourceOptions.projectRoot,
120
120
  tsconfig: options.tsconfig,
121
- compilerOptions: options.compilerOptions,
121
+ compilerOptions: options.compilerOptions
122
122
  }, options.log);
123
123
  lazyDefault = createDefaultResolver(compilerOptions, sourceOptions.projectRoot);
124
124
  return lazyDefault;
@@ -175,7 +175,7 @@ export const createAnalysisSession = (options) => {
175
175
  resolverIdentity: undefined,
176
176
  cacheHit: true,
177
177
  previousVirtualPath: undefined,
178
- preResolvedDeps: usePreResolved ? preResolvedDeps : undefined,
178
+ preResolvedDeps: usePreResolved ? preResolvedDeps : undefined
179
179
  };
180
180
  }
181
181
  // Capture the prior virtual path before we replace the entry. If the new
@@ -216,7 +216,7 @@ export const createAnalysisSession = (options) => {
216
216
  kind: 'import_parse_failed',
217
217
  file: file.id,
218
218
  message: `Failed to parse imports: ${to_error_message(err)}`,
219
- severity: 'warning',
219
+ severity: 'warning'
220
220
  });
221
221
  }
222
222
  }
@@ -229,7 +229,7 @@ export const createAnalysisSession = (options) => {
229
229
  resolverIdentity: resolver?.identity,
230
230
  cacheHit: false,
231
231
  previousVirtualPath,
232
- preResolvedDeps: usePreResolved ? preResolvedDeps : undefined,
232
+ preResolvedDeps: usePreResolved ? preResolvedDeps : undefined
233
233
  };
234
234
  };
235
235
  // Phase 3: serial per-file LS push + entry write
@@ -282,7 +282,7 @@ export const createAnalysisSession = (options) => {
282
282
  virtual: pending.virtual,
283
283
  unfilteredDeps,
284
284
  preResolvedDepsSnapshot: pending.preResolvedDeps.slice(),
285
- ingestDiagnostics: pending.ingestDiagnostics,
285
+ ingestDiagnostics: pending.ingestDiagnostics
286
286
  }
287
287
  : {
288
288
  mode: 'lex+resolve',
@@ -292,7 +292,7 @@ export const createAnalysisSession = (options) => {
292
292
  // Non-null assert: lex+resolve branch implies the batch picked a
293
293
  // resolver, so phase 1 stored its identity on the pending entry.
294
294
  resolverIdentity: pending.resolverIdentity,
295
- ingestDiagnostics: pending.ingestDiagnostics,
295
+ ingestDiagnostics: pending.ingestDiagnostics
296
296
  };
297
297
  if (pending.transformFailed)
298
298
  entry.transformFailed = true;
@@ -379,14 +379,14 @@ export const createAnalysisSession = (options) => {
379
379
  return {
380
380
  ...t,
381
381
  resolved: resolved === null ? null : toPosixPath(resolved),
382
- error: undefined,
382
+ error: undefined
383
383
  };
384
384
  }
385
385
  catch (err) {
386
386
  return {
387
387
  ...t,
388
388
  resolved: null,
389
- error: to_error_message(err),
389
+ error: to_error_message(err)
390
390
  };
391
391
  }
392
392
  });
@@ -416,7 +416,7 @@ export const createAnalysisSession = (options) => {
416
416
  file: pending.file.id,
417
417
  message: `Import resolver threw for "${r.specifier}": ${r.error}`,
418
418
  severity: 'warning',
419
- specifier: r.specifier,
419
+ specifier: r.specifier
420
420
  });
421
421
  }
422
422
  // Phase 3: serial per-file LS push + entry write. Single LS mutator
@@ -495,7 +495,7 @@ export const createAnalysisSession = (options) => {
495
495
  svelteVirtualFiles,
496
496
  transformFailedIds,
497
497
  onDuplicates: opts?.onDuplicates,
498
- log: opts?.log ?? options.log,
498
+ log: opts?.log ?? options.log
499
499
  });
500
500
  return result;
501
501
  };
@@ -1 +1 @@
1
- {"version":3,"file":"source-config.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/source-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,EAAC,KAAK,YAAY,EAAE,KAAK,cAAc,EAAqB,MAAM,aAAa,CAAC;AAIvF;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;;;;;;;;;;;;OAeG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;OAcG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,YAAY,GAAG,IAAI,CAAC;CACvD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AS,mBAAmB,KAAG,OAwBrE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,GAC/B,YAAY,cAAc,GAAG;IAAE,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAAE,EACnE,SAAS,mBAAmB,KAC1B;IAAE,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CA2B1D,CAAC"}
@@ -30,7 +30,7 @@ import { compareStrings } from './postprocess.js';
30
30
  export const DEFAULT_SOURCE_OPTIONS = {
31
31
  sourcePaths: ['src/lib'],
32
32
  exclude: ['**/*.test.ts', '**/*.spec.ts'],
33
- getAnalyzerType: getDefaultAnalyzer,
33
+ getAnalyzerType: getDefaultAnalyzer
34
34
  };
35
35
  /**
36
36
  * Create complete, normalized, validated source options from project root and optional overrides.
@@ -70,7 +70,7 @@ export const DEFAULT_SOURCE_OPTIONS = {
70
70
  export const createSourceOptions = (projectRoot, overrides) => normalizeSourceOptions({
71
71
  projectRoot,
72
72
  ...DEFAULT_SOURCE_OPTIONS,
73
- ...overrides,
73
+ ...overrides
74
74
  });
75
75
  /**
76
76
  * Normalize and validate `ModuleSourceOptions`, returning a new options object.
@@ -1 +1 @@
1
- {"version":3,"file":"svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAC,QAAQ,EAAsB,MAAM,2BAA2B,CAAC;AAGxE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,KAAK,EAA2C,kBAAkB,EAAC,MAAM,YAAY,CAAC;AAC7F,OAAO,KAAK,EAGX,cAAc,EACd,MAAM,wBAAwB,CAAC;AAShC,OAAO,EAAC,KAAK,cAAc,EAA0C,MAAM,aAAa,CAAC;AACzF,OAAO,EAAC,KAAK,mBAAmB,EAAsB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