@builder.io/sdk-svelte 0.4.3 → 0.4.4

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-svelte",
3
3
  "description": "Builder.io SDK for Svelte",
4
- "version": "0.4.3",
4
+ "version": "0.4.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "package",
@@ -1,4 +1,5 @@
1
1
  ### 0.4.3
2
+
2
3
  - Fix: SSR A/B test environment check (`isHydrationTarget`) now accurately checks current environment.
3
4
 
4
5
  ### 0.4.2
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.4.3";
1
+ export declare const SDK_VERSION = "0.4.4";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.4.3";
1
+ export const SDK_VERSION = "0.4.4";
@@ -43,7 +43,7 @@ export async function _track(eventProps) {
43
43
  if (!(isBrowser() || TARGET === 'reactNative')) {
44
44
  return;
45
45
  }
46
- return fetch(`https://builder.io/api/v1/track`, {
46
+ return fetch(`https://cdn.builder.io/api/v1/track`, {
47
47
  method: 'POST',
48
48
  body: JSON.stringify({
49
49
  events: [await createEvent(eventProps)],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-svelte",
3
3
  "description": "Builder.io SDK for Svelte",
4
- "version": "0.4.3",
4
+ "version": "0.4.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "package",
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.4.3"
1
+ export const SDK_VERSION = "0.4.4"
@@ -118,7 +118,7 @@ export async function _track(eventProps: EventProps) {
118
118
  return;
119
119
  }
120
120
 
121
- return fetch(`https://builder.io/api/v1/track`, {
121
+ return fetch(`https://cdn.builder.io/api/v1/track`, {
122
122
  method: 'POST',
123
123
  body: JSON.stringify({
124
124
  events: [await createEvent(eventProps)],