@aranova/tracking-next 0.22.4 → 0.23.1

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.
@@ -8,6 +8,13 @@ function registerCapability(capability) {
8
8
  registered.add(capability);
9
9
  }
10
10
 
11
+ // ../tracking-core/src/phone.ts
12
+ import { AsYouType, parsePhoneNumberFromString } from "libphonenumber-js";
13
+
14
+ // ../tracking-core/src/resources/tracking-config-runtime.ts
15
+ var DEFAULT_CDN_BASE_URL = "https://demos.aranova.io";
16
+ var RETRY_MAX_MS = 5 * 6e4;
17
+
11
18
  // ../tracking-core/src/resources/blog/schema.ts
12
19
  import { z as z2 } from "zod";
13
20
 
@@ -347,7 +354,7 @@ function parseBlogPostContent(raw) {
347
354
  // ../tracking-core/src/resources/blog/client.ts
348
355
  function createBlogClient(config) {
349
356
  registerCapability("blog_rendering");
350
- const base = config.cdnBaseUrl.replace(/\/+$/, "");
357
+ const base = (config.cdnBaseUrl.trim() || DEFAULT_CDN_BASE_URL).replace(/\/+$/, "");
351
358
  const doFetch = (...args) => (config.fetchImpl ?? fetch)(...args);
352
359
  async function fetchJson(url, init) {
353
360
  try {