@tryghost/referrer-parser 0.1.16 → 0.1.18

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.
package/dist/index.cjs CHANGED
@@ -9535,7 +9535,7 @@ var ReferrerParser = class {
9535
9535
  siteUrl;
9536
9536
  /**
9537
9537
  * Creates a new referrer parser instance
9538
- *
9538
+ *
9539
9539
  * @param options - Configuration options
9540
9540
  */
9541
9541
  constructor(options = {}) {
@@ -9544,7 +9544,7 @@ var ReferrerParser = class {
9544
9544
  }
9545
9545
  /**
9546
9546
  * Parse a referrer URL to get source, medium and hostname
9547
- *
9547
+ *
9548
9548
  * @param referrerUrlStr - URL of the referrer
9549
9549
  * @param referrerSource - Source of the referrer
9550
9550
  * @param referrerMedium - Medium of the referrer
@@ -9600,7 +9600,7 @@ var ReferrerParser = class {
9600
9600
  }
9601
9601
  /**
9602
9602
  * Fetches referrer data from known external URLs
9603
- *
9603
+ *
9604
9604
  * @param url - The URL to match against known referrers
9605
9605
  * @returns Matched referrer data or null if not found
9606
9606
  */
@@ -9616,7 +9616,7 @@ var ReferrerParser = class {
9616
9616
  }
9617
9617
  /**
9618
9618
  * Return URL object for provided URL string
9619
- *
9619
+ *
9620
9620
  * @param url - URL string to parse
9621
9621
  * @returns Parsed URL object or null if invalid
9622
9622
  */
@@ -9624,13 +9624,13 @@ var ReferrerParser = class {
9624
9624
  if (!url) return null;
9625
9625
  try {
9626
9626
  return new URL(url);
9627
- } catch (e) {
9627
+ } catch {
9628
9628
  return null;
9629
9629
  }
9630
9630
  }
9631
9631
  /**
9632
9632
  * Determine whether the provided URL is a link to the site
9633
- *
9633
+ *
9634
9634
  * @param url - URL to check
9635
9635
  * @returns True if the URL belongs to the configured site
9636
9636
  */
@@ -9649,13 +9649,13 @@ var ReferrerParser = class {
9649
9649
  return false;
9650
9650
  }
9651
9651
  return false;
9652
- } catch (e) {
9652
+ } catch {
9653
9653
  return false;
9654
9654
  }
9655
9655
  }
9656
9656
  /**
9657
9657
  * Determine whether referrer is a Ghost newsletter
9658
- *
9658
+ *
9659
9659
  * @param deps - Input parameters
9660
9660
  * @returns True if the referrer is a Ghost newsletter
9661
9661
  */
@@ -9665,7 +9665,7 @@ var ReferrerParser = class {
9665
9665
  }
9666
9666
  /**
9667
9667
  * Determine whether referrer is a Ghost.org URL
9668
- *
9668
+ *
9669
9669
  * @param referrerUrl - The referrer URL to check
9670
9670
  * @returns True if the referrer is from Ghost.org
9671
9671
  */
@@ -9675,7 +9675,7 @@ var ReferrerParser = class {
9675
9675
  }
9676
9676
  /**
9677
9677
  * Determine whether referrer is Ghost Explore
9678
- *
9678
+ *
9679
9679
  * @param deps - Input parameters
9680
9680
  * @returns True if the referrer is from Ghost Explore
9681
9681
  */