UNPKG

sitemap

Version:
23 lines (22 loc) • 2.25 kB
/*! * Sitemap * Copyright(c) 2011 Eugene Kalinin * MIT Licensed */ export { SitemapItemStream, } from './lib/sitemap-item-stream.js'; export { IndexTagNames, SitemapIndexStream, SitemapAndIndexStream, } from './lib/sitemap-index-stream.js'; export { streamToPromise, SitemapStream, } from './lib/sitemap-stream.js'; // Listed explicitly, like the types below, so a new error class is public // only once it is added here export { NoURLError, NoConfigError, ChangeFreqInvalidError, PriorityInvalidError, InvalidVideoFormat, InvalidVideoDuration, InvalidVideoDescription, InvalidVideoRating, InvalidAttrValue, InvalidAttr, InvalidNewsFormat, InvalidNewsAccessValue, XMLLintUnavailable, InvalidVideoTitle, InvalidVideoViewCount, InvalidVideoTagCount, InvalidVideoCategory, InvalidVideoFamilyFriendly, InvalidVideoYesNo, InvalidLinkHreflang, InvalidVideoRestriction, InvalidVideoRestrictionRelationship, InvalidVideoPriceType, InvalidVideoResolution, InvalidVideoPriceCurrency, EmptyStream, EmptySitemap, InvalidPathError, InvalidHostnameError, InvalidURLError, InvalidLimitError, InvalidPublicBasePathError, InvalidXSLUrlError, InvalidXMLAttributeNameError, } from './lib/errors.js'; // Listed explicitly rather than `export *`, so types.ts can hold internal types // (such as SitemapFileOptions) without making them public API. IndexTagNames // and the parser options are exported with their modules below. export { EnumChangefreq, EnumYesNo, EnumAllowDeny, ErrorLevel, TagNames, } from './lib/types.js'; export { lineSeparatedURLsToSitemapOptions, mergeStreams, normalizeURL, ReadlineStream, } from './lib/utils.js'; export { xmlLint } from './lib/xmllint.js'; export { parseSitemap, XMLToSitemapItemStream, ObjectStreamToJSON, } from './lib/sitemap-parser.js'; export { parseSitemapIndex, XMLToSitemapIndexStream, IndexObjectStreamToJSON, } from './lib/sitemap-index-parser.js'; export { simpleSitemapAndIndex, } from './lib/sitemap-simple.js'; export { validateSMIOptions, validateURL, validatePath, validateLimit, validatePublicBasePath, validateXSLUrl, validators, isPriceType, isResolution, isValidChangeFreq, isValidYesNo, isAllowDeny, } from './lib/validation.js'; export { LIMITS, DEFAULT_SITEMAP_ITEM_LIMIT } from './lib/constants.js';