/*! Copyright (c) the purl authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** * @fileoverview Main entry point for the socket-packageurl-js library. * * This library provides a complete implementation of the Package URL (purl) specification. * Package URLs are used to identify and locate software packages in a standardized way * across different package management systems and ecosystems. * * Core exports: * - PackageURL: Main class for parsing and constructing package URLs * - PurlBuilder: Builder pattern for constructing package URLs * - PurlType: Type-specific normalization and validation rules * - PurlComponent: Component encoding/decoding utilities * - PurlQualifierNames: Known qualifier names from the specification * * Utility exports: * - UrlConverter: Convert between purls and repository/download URLs * - Result utilities: Functional error handling with Ok/Err pattern * - Parsers: Modular parsers for ecosystem-specific package specifiers */ export type { PURLString } from '@socketsecurity/lib/types'; export { PURL_Type } from '@socketsecurity/lib/types'; export type { DownloadUrl, PackageURLComponentValue, PackageURLObject, ParsedPurlComponents, RepositoryUrl, Result, } from './package-url.js'; export type { ComponentEncoder, ComponentNormalizer, ComponentValidator, QualifiersObject, QualifiersValue, } from './purl-component.js'; export type { NpmPackageComponents } from './purl-types/npm.js'; export { Err, err, Ok, ok, PackageURL, PurlComponent, PurlQualifierNames, PurlType, ResultUtils, UrlConverter, } from './package-url.js'; export { PurlBuilder } from './package-url-builder.js'; export { PurlError, PurlInjectionError } from './error.js'; export { compare, createMatcher, equals, matches } from './compare.js'; export { parseNpmSpecifier } from './purl-types/npm.js'; export type { ExistsOptions, ExistsResult } from './purl-types/npm.js'; export { containsInjectionCharacters, findInjectionCharCode, formatInjectionChar, } from './strings.js'; export { stringify, stringifySpec } from './stringify.js'; export { Vers } from './vers.js'; export type { VersComparator, VersConstraint, VersWildcard } from './vers.js';