diff --git a/sitemapper.d.ts b/sitemapper.d.ts index 67dc261..c44a09c 100644 --- a/sitemapper.d.ts +++ b/sitemapper.d.ts @@ -34,6 +34,13 @@ declare class Sitemapper { * @param url URL to the sitemap.xml file */ fetch(url?: string): Promise; + + /** + * Requests the URL and uses parseStringPromise to parse through and find the data + * + * @param url URL to the sitemap.xml file + */ + parse(url?: string): Promise; } export default Sitemapper; diff --git a/src/assets/sitemapper.js b/src/assets/sitemapper.js index 811f443..e7a98c7 100644 --- a/src/assets/sitemapper.js +++ b/src/assets/sitemapper.js @@ -173,7 +173,7 @@ export default class Sitemapper { /** * Requests the URL and uses parseStringPromise to parse through and find the data * - * @private + * @public * @param {string} [url] - the Sitemaps url (e.g https://wp.seantburke.com/sitemap.xml) * @returns {Promise} */