@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.js CHANGED
@@ -1863,7 +1863,12 @@ var ShortUrlService = class {
1863
1863
  * Retrieves a shortened URL target mapping.
1864
1864
  */
1865
1865
  static async getUrl(shortUrlSuffix) {
1866
- return getShortUrl(shortUrlSuffix);
1866
+ const entry = await getShortUrl(shortUrlSuffix);
1867
+ if (!entry) return null;
1868
+ return {
1869
+ targetUrl: entry.targetUrl,
1870
+ expiresAt: entry.expiresAt
1871
+ };
1867
1872
  }
1868
1873
  };
1869
1874