@aranova/tracking-next 0.23.0 → 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.
- package/dist/blog-server.js +8 -1
- package/dist/blog-server.js.map +1 -1
- package/dist/blog-server.mjs +8 -1
- package/dist/blog-server.mjs.map +1 -1
- package/dist/blog.d.mts +8 -1
- package/dist/blog.d.ts +8 -1
- package/dist/blog.js +8 -1
- package/dist/blog.js.map +1 -1
- package/dist/blog.mjs +8 -1
- package/dist/blog.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/blog-server.mjs
CHANGED
|
@@ -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 {
|