@amogads/ui 1.1.4 → 1.1.6

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/services.mjs CHANGED
@@ -1805,7 +1805,12 @@ var ShortUrlService = class {
1805
1805
  * Retrieves a shortened URL target mapping.
1806
1806
  */
1807
1807
  static async getUrl(shortUrlSuffix) {
1808
- return getShortUrl(shortUrlSuffix);
1808
+ const entry = await getShortUrl(shortUrlSuffix);
1809
+ if (!entry) return null;
1810
+ return {
1811
+ targetUrl: entry.targetUrl,
1812
+ expiresAt: entry.expiresAt
1813
+ };
1809
1814
  }
1810
1815
  };
1811
1816