@@ -22,33 +22,66 @@ SOFTWARE.
2222
2323/**
2424 * @fileoverview Main entry point for the socket-packageurl-js library.
25- * Provides exports for PackageURL, PurlComponent, PurlQualifierNames, and PurlType.
25+ *
26+ * This library provides a complete implementation of the Package URL (purl) specification.
27+ * Package URLs are used to identify and locate software packages in a standardized way
28+ * across different package management systems and ecosystems.
29+ *
30+ * Core exports:
31+ * - PackageURL: Main class for parsing and constructing package URLs
32+ * - PackageURLBuilder: Builder pattern for constructing package URLs
33+ * - PurlType: Type-specific normalization and validation rules
34+ * - PurlComponent: Component encoding/decoding utilities
35+ * - PurlQualifierNames: Known qualifier names from the specification
36+ *
37+ * Utility exports:
38+ * - UrlConverter: Convert between purls and repository/download URLs
39+ * - Result utilities: Functional error handling with Ok/Err pattern
2640 */
2741
28- /* c8 ignore start - Re-export only file, no logic to test. */
42+ /* c8 ignore start - Re-export only file, no logic to test */
43+
44+ // ============================================================================
45+ // Core Classes and Functions
46+ // ============================================================================
2947export {
30- Err ,
31- Ok ,
3248 PackageURL ,
3349 PurlComponent ,
3450 PurlQualifierNames ,
3551 PurlType ,
36- ResultUtils ,
52+ } from './package-url.js'
53+
54+ export { PackageURLBuilder } from './package-url-builder.js'
55+
56+ // ============================================================================
57+ // Utility Classes and Functions
58+ // ============================================================================
59+ export {
3760 UrlConverter ,
61+ } from './package-url.js'
62+
63+ export {
64+ Err ,
65+ Ok ,
66+ ResultUtils ,
3867 err ,
3968 ok ,
4069} from './package-url.js'
4170
42- // Import PackageURLBuilder separately to avoid circular dependency
43- export { PackageURLBuilder } from './package-url-builder.js'
44-
71+ // ============================================================================
72+ // TypeScript Type Definitions
73+ // ============================================================================
4574export type {
4675 DownloadUrl ,
4776 RepositoryUrl ,
4877 Result ,
4978} from './package-url.js'
5079
80+ // ============================================================================
81+ // Registry Integration
82+ // ============================================================================
5183// Re-export PURL types from socket-registry for consistency
5284export { PURL_Type } from '@socketsecurity/registry'
5385export type { EcosystemString } from '@socketsecurity/registry'
86+
5487/* c8 ignore stop */
0 commit comments