@builder.io/sdk-solid 2.0.24 → 2.0.25
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/lib/browser/dev.js +20 -5
- package/lib/browser/dev.jsx +20 -5
- package/lib/browser/index.js +20 -5
- package/lib/browser/index.jsx +20 -5
- package/lib/edge/dev.js +20 -5
- package/lib/edge/dev.jsx +20 -5
- package/lib/edge/index.js +20 -5
- package/lib/edge/index.jsx +20 -5
- package/lib/node/dev.js +20 -5
- package/lib/node/dev.jsx +20 -5
- package/lib/node/index.js +20 -5
- package/lib/node/index.jsx +20 -5
- package/package.json +1 -1
package/lib/browser/dev.js
CHANGED
|
@@ -4765,6 +4765,16 @@ function getPreviewContent(_searchParams) {
|
|
|
4765
4765
|
return void 0;
|
|
4766
4766
|
}
|
|
4767
4767
|
|
|
4768
|
+
// src/constants/sdk-version.ts
|
|
4769
|
+
var SDK_VERSION = "2.0.25";
|
|
4770
|
+
|
|
4771
|
+
// src/helpers/sdk-headers.ts
|
|
4772
|
+
var getSdkHeaders = () => ({
|
|
4773
|
+
"X-Builder-SDK": TARGET,
|
|
4774
|
+
"X-Builder-SDK-GEN": "2",
|
|
4775
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
4776
|
+
});
|
|
4777
|
+
|
|
4768
4778
|
// src/functions/get-global-this.ts
|
|
4769
4779
|
function getGlobalThis() {
|
|
4770
4780
|
if (typeof globalThis !== "undefined") {
|
|
@@ -4947,7 +4957,14 @@ async function fetchOneEntry(options) {
|
|
|
4947
4957
|
var _fetchContent = async (options) => {
|
|
4948
4958
|
const url = generateContentUrl(options);
|
|
4949
4959
|
const _fetch = options.fetch ?? fetch2;
|
|
4950
|
-
const
|
|
4960
|
+
const fetchOptions = {
|
|
4961
|
+
...options.fetchOptions,
|
|
4962
|
+
headers: {
|
|
4963
|
+
...options.fetchOptions?.headers,
|
|
4964
|
+
...getSdkHeaders()
|
|
4965
|
+
}
|
|
4966
|
+
};
|
|
4967
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
4951
4968
|
const content = await res.json();
|
|
4952
4969
|
return content;
|
|
4953
4970
|
};
|
|
@@ -5178,7 +5195,8 @@ async function _track(eventProps) {
|
|
|
5178
5195
|
events: [await createEvent(eventProps)]
|
|
5179
5196
|
}),
|
|
5180
5197
|
headers: {
|
|
5181
|
-
"content-type": "application/json"
|
|
5198
|
+
"content-type": "application/json",
|
|
5199
|
+
...getSdkHeaders()
|
|
5182
5200
|
},
|
|
5183
5201
|
mode: "cors"
|
|
5184
5202
|
}).catch((err) => {
|
|
@@ -5258,9 +5276,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5258
5276
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5259
5277
|
}
|
|
5260
5278
|
|
|
5261
|
-
// src/constants/sdk-version.ts
|
|
5262
|
-
var SDK_VERSION = "2.0.24";
|
|
5263
|
-
|
|
5264
5279
|
// src/functions/register.ts
|
|
5265
5280
|
var registry = {};
|
|
5266
5281
|
function register(type, info) {
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -4253,6 +4253,16 @@ function getPreviewContent(_searchParams) {
|
|
|
4253
4253
|
return void 0;
|
|
4254
4254
|
}
|
|
4255
4255
|
|
|
4256
|
+
// src/constants/sdk-version.ts
|
|
4257
|
+
var SDK_VERSION = "2.0.25";
|
|
4258
|
+
|
|
4259
|
+
// src/helpers/sdk-headers.ts
|
|
4260
|
+
var getSdkHeaders = () => ({
|
|
4261
|
+
"X-Builder-SDK": TARGET,
|
|
4262
|
+
"X-Builder-SDK-GEN": "2",
|
|
4263
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
4264
|
+
});
|
|
4265
|
+
|
|
4256
4266
|
// src/functions/get-global-this.ts
|
|
4257
4267
|
function getGlobalThis() {
|
|
4258
4268
|
if (typeof globalThis !== "undefined") {
|
|
@@ -4435,7 +4445,14 @@ async function fetchOneEntry(options) {
|
|
|
4435
4445
|
var _fetchContent = async (options) => {
|
|
4436
4446
|
const url = generateContentUrl(options);
|
|
4437
4447
|
const _fetch = options.fetch ?? fetch2;
|
|
4438
|
-
const
|
|
4448
|
+
const fetchOptions = {
|
|
4449
|
+
...options.fetchOptions,
|
|
4450
|
+
headers: {
|
|
4451
|
+
...options.fetchOptions?.headers,
|
|
4452
|
+
...getSdkHeaders()
|
|
4453
|
+
}
|
|
4454
|
+
};
|
|
4455
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
4439
4456
|
const content = await res.json();
|
|
4440
4457
|
return content;
|
|
4441
4458
|
};
|
|
@@ -4666,7 +4683,8 @@ async function _track(eventProps) {
|
|
|
4666
4683
|
events: [await createEvent(eventProps)]
|
|
4667
4684
|
}),
|
|
4668
4685
|
headers: {
|
|
4669
|
-
"content-type": "application/json"
|
|
4686
|
+
"content-type": "application/json",
|
|
4687
|
+
...getSdkHeaders()
|
|
4670
4688
|
},
|
|
4671
4689
|
mode: "cors"
|
|
4672
4690
|
}).catch((err) => {
|
|
@@ -4746,9 +4764,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4746
4764
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4747
4765
|
}
|
|
4748
4766
|
|
|
4749
|
-
// src/constants/sdk-version.ts
|
|
4750
|
-
var SDK_VERSION = "2.0.24";
|
|
4751
|
-
|
|
4752
4767
|
// src/functions/register.ts
|
|
4753
4768
|
var registry = {};
|
|
4754
4769
|
function register(type, info) {
|
package/lib/browser/index.js
CHANGED
|
@@ -4755,6 +4755,16 @@ function getPreviewContent(_searchParams) {
|
|
|
4755
4755
|
return void 0;
|
|
4756
4756
|
}
|
|
4757
4757
|
|
|
4758
|
+
// src/constants/sdk-version.ts
|
|
4759
|
+
var SDK_VERSION = "2.0.25";
|
|
4760
|
+
|
|
4761
|
+
// src/helpers/sdk-headers.ts
|
|
4762
|
+
var getSdkHeaders = () => ({
|
|
4763
|
+
"X-Builder-SDK": TARGET,
|
|
4764
|
+
"X-Builder-SDK-GEN": "2",
|
|
4765
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
4766
|
+
});
|
|
4767
|
+
|
|
4758
4768
|
// src/functions/get-global-this.ts
|
|
4759
4769
|
function getGlobalThis() {
|
|
4760
4770
|
if (typeof globalThis !== "undefined") {
|
|
@@ -4935,7 +4945,14 @@ async function fetchOneEntry(options) {
|
|
|
4935
4945
|
var _fetchContent = async (options) => {
|
|
4936
4946
|
const url = generateContentUrl(options);
|
|
4937
4947
|
const _fetch = options.fetch ?? fetch2;
|
|
4938
|
-
const
|
|
4948
|
+
const fetchOptions = {
|
|
4949
|
+
...options.fetchOptions,
|
|
4950
|
+
headers: {
|
|
4951
|
+
...options.fetchOptions?.headers,
|
|
4952
|
+
...getSdkHeaders()
|
|
4953
|
+
}
|
|
4954
|
+
};
|
|
4955
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
4939
4956
|
const content = await res.json();
|
|
4940
4957
|
return content;
|
|
4941
4958
|
};
|
|
@@ -5164,7 +5181,8 @@ async function _track(eventProps) {
|
|
|
5164
5181
|
events: [await createEvent(eventProps)]
|
|
5165
5182
|
}),
|
|
5166
5183
|
headers: {
|
|
5167
|
-
"content-type": "application/json"
|
|
5184
|
+
"content-type": "application/json",
|
|
5185
|
+
...getSdkHeaders()
|
|
5168
5186
|
},
|
|
5169
5187
|
mode: "cors"
|
|
5170
5188
|
}).catch((err) => {
|
|
@@ -5243,9 +5261,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5243
5261
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5244
5262
|
}
|
|
5245
5263
|
|
|
5246
|
-
// src/constants/sdk-version.ts
|
|
5247
|
-
var SDK_VERSION = "2.0.24";
|
|
5248
|
-
|
|
5249
5264
|
// src/functions/register.ts
|
|
5250
5265
|
var registry = {};
|
|
5251
5266
|
function register(type, info) {
|
package/lib/browser/index.jsx
CHANGED
|
@@ -4243,6 +4243,16 @@ function getPreviewContent(_searchParams) {
|
|
|
4243
4243
|
return void 0;
|
|
4244
4244
|
}
|
|
4245
4245
|
|
|
4246
|
+
// src/constants/sdk-version.ts
|
|
4247
|
+
var SDK_VERSION = "2.0.25";
|
|
4248
|
+
|
|
4249
|
+
// src/helpers/sdk-headers.ts
|
|
4250
|
+
var getSdkHeaders = () => ({
|
|
4251
|
+
"X-Builder-SDK": TARGET,
|
|
4252
|
+
"X-Builder-SDK-GEN": "2",
|
|
4253
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
4254
|
+
});
|
|
4255
|
+
|
|
4246
4256
|
// src/functions/get-global-this.ts
|
|
4247
4257
|
function getGlobalThis() {
|
|
4248
4258
|
if (typeof globalThis !== "undefined") {
|
|
@@ -4423,7 +4433,14 @@ async function fetchOneEntry(options) {
|
|
|
4423
4433
|
var _fetchContent = async (options) => {
|
|
4424
4434
|
const url = generateContentUrl(options);
|
|
4425
4435
|
const _fetch = options.fetch ?? fetch2;
|
|
4426
|
-
const
|
|
4436
|
+
const fetchOptions = {
|
|
4437
|
+
...options.fetchOptions,
|
|
4438
|
+
headers: {
|
|
4439
|
+
...options.fetchOptions?.headers,
|
|
4440
|
+
...getSdkHeaders()
|
|
4441
|
+
}
|
|
4442
|
+
};
|
|
4443
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
4427
4444
|
const content = await res.json();
|
|
4428
4445
|
return content;
|
|
4429
4446
|
};
|
|
@@ -4652,7 +4669,8 @@ async function _track(eventProps) {
|
|
|
4652
4669
|
events: [await createEvent(eventProps)]
|
|
4653
4670
|
}),
|
|
4654
4671
|
headers: {
|
|
4655
|
-
"content-type": "application/json"
|
|
4672
|
+
"content-type": "application/json",
|
|
4673
|
+
...getSdkHeaders()
|
|
4656
4674
|
},
|
|
4657
4675
|
mode: "cors"
|
|
4658
4676
|
}).catch((err) => {
|
|
@@ -4731,9 +4749,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4731
4749
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4732
4750
|
}
|
|
4733
4751
|
|
|
4734
|
-
// src/constants/sdk-version.ts
|
|
4735
|
-
var SDK_VERSION = "2.0.24";
|
|
4736
|
-
|
|
4737
4752
|
// src/functions/register.ts
|
|
4738
4753
|
var registry = {};
|
|
4739
4754
|
function register(type, info) {
|
package/lib/edge/dev.js
CHANGED
|
@@ -7948,6 +7948,16 @@ function getPreviewContent(_searchParams) {
|
|
|
7948
7948
|
return void 0;
|
|
7949
7949
|
}
|
|
7950
7950
|
|
|
7951
|
+
// src/constants/sdk-version.ts
|
|
7952
|
+
var SDK_VERSION = "2.0.25";
|
|
7953
|
+
|
|
7954
|
+
// src/helpers/sdk-headers.ts
|
|
7955
|
+
var getSdkHeaders = () => ({
|
|
7956
|
+
"X-Builder-SDK": TARGET,
|
|
7957
|
+
"X-Builder-SDK-GEN": "2",
|
|
7958
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
7959
|
+
});
|
|
7960
|
+
|
|
7951
7961
|
// src/functions/get-global-this.ts
|
|
7952
7962
|
function getGlobalThis() {
|
|
7953
7963
|
if (typeof globalThis !== "undefined") {
|
|
@@ -8130,7 +8140,14 @@ async function fetchOneEntry(options) {
|
|
|
8130
8140
|
var _fetchContent = async (options) => {
|
|
8131
8141
|
const url = generateContentUrl(options);
|
|
8132
8142
|
const _fetch = options.fetch ?? fetch2;
|
|
8133
|
-
const
|
|
8143
|
+
const fetchOptions = {
|
|
8144
|
+
...options.fetchOptions,
|
|
8145
|
+
headers: {
|
|
8146
|
+
...options.fetchOptions?.headers,
|
|
8147
|
+
...getSdkHeaders()
|
|
8148
|
+
}
|
|
8149
|
+
};
|
|
8150
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
8134
8151
|
const content = await res.json();
|
|
8135
8152
|
return content;
|
|
8136
8153
|
};
|
|
@@ -8361,7 +8378,8 @@ async function _track(eventProps) {
|
|
|
8361
8378
|
events: [await createEvent(eventProps)]
|
|
8362
8379
|
}),
|
|
8363
8380
|
headers: {
|
|
8364
|
-
"content-type": "application/json"
|
|
8381
|
+
"content-type": "application/json",
|
|
8382
|
+
...getSdkHeaders()
|
|
8365
8383
|
},
|
|
8366
8384
|
mode: "cors"
|
|
8367
8385
|
}).catch((err) => {
|
|
@@ -8441,9 +8459,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8441
8459
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8442
8460
|
}
|
|
8443
8461
|
|
|
8444
|
-
// src/constants/sdk-version.ts
|
|
8445
|
-
var SDK_VERSION = "2.0.24";
|
|
8446
|
-
|
|
8447
8462
|
// src/functions/register.ts
|
|
8448
8463
|
var registry = {};
|
|
8449
8464
|
function register(type, info) {
|
package/lib/edge/dev.jsx
CHANGED
|
@@ -7438,6 +7438,16 @@ function getPreviewContent(_searchParams) {
|
|
|
7438
7438
|
return void 0;
|
|
7439
7439
|
}
|
|
7440
7440
|
|
|
7441
|
+
// src/constants/sdk-version.ts
|
|
7442
|
+
var SDK_VERSION = "2.0.25";
|
|
7443
|
+
|
|
7444
|
+
// src/helpers/sdk-headers.ts
|
|
7445
|
+
var getSdkHeaders = () => ({
|
|
7446
|
+
"X-Builder-SDK": TARGET,
|
|
7447
|
+
"X-Builder-SDK-GEN": "2",
|
|
7448
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
7449
|
+
});
|
|
7450
|
+
|
|
7441
7451
|
// src/functions/get-global-this.ts
|
|
7442
7452
|
function getGlobalThis() {
|
|
7443
7453
|
if (typeof globalThis !== "undefined") {
|
|
@@ -7620,7 +7630,14 @@ async function fetchOneEntry(options) {
|
|
|
7620
7630
|
var _fetchContent = async (options) => {
|
|
7621
7631
|
const url = generateContentUrl(options);
|
|
7622
7632
|
const _fetch = options.fetch ?? fetch2;
|
|
7623
|
-
const
|
|
7633
|
+
const fetchOptions = {
|
|
7634
|
+
...options.fetchOptions,
|
|
7635
|
+
headers: {
|
|
7636
|
+
...options.fetchOptions?.headers,
|
|
7637
|
+
...getSdkHeaders()
|
|
7638
|
+
}
|
|
7639
|
+
};
|
|
7640
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
7624
7641
|
const content = await res.json();
|
|
7625
7642
|
return content;
|
|
7626
7643
|
};
|
|
@@ -7851,7 +7868,8 @@ async function _track(eventProps) {
|
|
|
7851
7868
|
events: [await createEvent(eventProps)]
|
|
7852
7869
|
}),
|
|
7853
7870
|
headers: {
|
|
7854
|
-
"content-type": "application/json"
|
|
7871
|
+
"content-type": "application/json",
|
|
7872
|
+
...getSdkHeaders()
|
|
7855
7873
|
},
|
|
7856
7874
|
mode: "cors"
|
|
7857
7875
|
}).catch((err) => {
|
|
@@ -7931,9 +7949,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7931
7949
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
7932
7950
|
}
|
|
7933
7951
|
|
|
7934
|
-
// src/constants/sdk-version.ts
|
|
7935
|
-
var SDK_VERSION = "2.0.24";
|
|
7936
|
-
|
|
7937
7952
|
// src/functions/register.ts
|
|
7938
7953
|
var registry = {};
|
|
7939
7954
|
function register(type, info) {
|
package/lib/edge/index.js
CHANGED
|
@@ -7938,6 +7938,16 @@ function getPreviewContent(_searchParams) {
|
|
|
7938
7938
|
return void 0;
|
|
7939
7939
|
}
|
|
7940
7940
|
|
|
7941
|
+
// src/constants/sdk-version.ts
|
|
7942
|
+
var SDK_VERSION = "2.0.25";
|
|
7943
|
+
|
|
7944
|
+
// src/helpers/sdk-headers.ts
|
|
7945
|
+
var getSdkHeaders = () => ({
|
|
7946
|
+
"X-Builder-SDK": TARGET,
|
|
7947
|
+
"X-Builder-SDK-GEN": "2",
|
|
7948
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
7949
|
+
});
|
|
7950
|
+
|
|
7941
7951
|
// src/functions/get-global-this.ts
|
|
7942
7952
|
function getGlobalThis() {
|
|
7943
7953
|
if (typeof globalThis !== "undefined") {
|
|
@@ -8118,7 +8128,14 @@ async function fetchOneEntry(options) {
|
|
|
8118
8128
|
var _fetchContent = async (options) => {
|
|
8119
8129
|
const url = generateContentUrl(options);
|
|
8120
8130
|
const _fetch = options.fetch ?? fetch2;
|
|
8121
|
-
const
|
|
8131
|
+
const fetchOptions = {
|
|
8132
|
+
...options.fetchOptions,
|
|
8133
|
+
headers: {
|
|
8134
|
+
...options.fetchOptions?.headers,
|
|
8135
|
+
...getSdkHeaders()
|
|
8136
|
+
}
|
|
8137
|
+
};
|
|
8138
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
8122
8139
|
const content = await res.json();
|
|
8123
8140
|
return content;
|
|
8124
8141
|
};
|
|
@@ -8347,7 +8364,8 @@ async function _track(eventProps) {
|
|
|
8347
8364
|
events: [await createEvent(eventProps)]
|
|
8348
8365
|
}),
|
|
8349
8366
|
headers: {
|
|
8350
|
-
"content-type": "application/json"
|
|
8367
|
+
"content-type": "application/json",
|
|
8368
|
+
...getSdkHeaders()
|
|
8351
8369
|
},
|
|
8352
8370
|
mode: "cors"
|
|
8353
8371
|
}).catch((err) => {
|
|
@@ -8426,9 +8444,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8426
8444
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8427
8445
|
}
|
|
8428
8446
|
|
|
8429
|
-
// src/constants/sdk-version.ts
|
|
8430
|
-
var SDK_VERSION = "2.0.24";
|
|
8431
|
-
|
|
8432
8447
|
// src/functions/register.ts
|
|
8433
8448
|
var registry = {};
|
|
8434
8449
|
function register(type, info) {
|
package/lib/edge/index.jsx
CHANGED
|
@@ -7428,6 +7428,16 @@ function getPreviewContent(_searchParams) {
|
|
|
7428
7428
|
return void 0;
|
|
7429
7429
|
}
|
|
7430
7430
|
|
|
7431
|
+
// src/constants/sdk-version.ts
|
|
7432
|
+
var SDK_VERSION = "2.0.25";
|
|
7433
|
+
|
|
7434
|
+
// src/helpers/sdk-headers.ts
|
|
7435
|
+
var getSdkHeaders = () => ({
|
|
7436
|
+
"X-Builder-SDK": TARGET,
|
|
7437
|
+
"X-Builder-SDK-GEN": "2",
|
|
7438
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
7439
|
+
});
|
|
7440
|
+
|
|
7431
7441
|
// src/functions/get-global-this.ts
|
|
7432
7442
|
function getGlobalThis() {
|
|
7433
7443
|
if (typeof globalThis !== "undefined") {
|
|
@@ -7608,7 +7618,14 @@ async function fetchOneEntry(options) {
|
|
|
7608
7618
|
var _fetchContent = async (options) => {
|
|
7609
7619
|
const url = generateContentUrl(options);
|
|
7610
7620
|
const _fetch = options.fetch ?? fetch2;
|
|
7611
|
-
const
|
|
7621
|
+
const fetchOptions = {
|
|
7622
|
+
...options.fetchOptions,
|
|
7623
|
+
headers: {
|
|
7624
|
+
...options.fetchOptions?.headers,
|
|
7625
|
+
...getSdkHeaders()
|
|
7626
|
+
}
|
|
7627
|
+
};
|
|
7628
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
7612
7629
|
const content = await res.json();
|
|
7613
7630
|
return content;
|
|
7614
7631
|
};
|
|
@@ -7837,7 +7854,8 @@ async function _track(eventProps) {
|
|
|
7837
7854
|
events: [await createEvent(eventProps)]
|
|
7838
7855
|
}),
|
|
7839
7856
|
headers: {
|
|
7840
|
-
"content-type": "application/json"
|
|
7857
|
+
"content-type": "application/json",
|
|
7858
|
+
...getSdkHeaders()
|
|
7841
7859
|
},
|
|
7842
7860
|
mode: "cors"
|
|
7843
7861
|
}).catch((err) => {
|
|
@@ -7916,9 +7934,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7916
7934
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
7917
7935
|
}
|
|
7918
7936
|
|
|
7919
|
-
// src/constants/sdk-version.ts
|
|
7920
|
-
var SDK_VERSION = "2.0.24";
|
|
7921
|
-
|
|
7922
7937
|
// src/functions/register.ts
|
|
7923
7938
|
var registry = {};
|
|
7924
7939
|
function register(type, info) {
|
package/lib/node/dev.js
CHANGED
|
@@ -4935,6 +4935,16 @@ function getPreviewContent(_searchParams) {
|
|
|
4935
4935
|
return void 0;
|
|
4936
4936
|
}
|
|
4937
4937
|
|
|
4938
|
+
// src/constants/sdk-version.ts
|
|
4939
|
+
var SDK_VERSION = "2.0.25";
|
|
4940
|
+
|
|
4941
|
+
// src/helpers/sdk-headers.ts
|
|
4942
|
+
var getSdkHeaders = () => ({
|
|
4943
|
+
"X-Builder-SDK": TARGET,
|
|
4944
|
+
"X-Builder-SDK-GEN": "2",
|
|
4945
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
4946
|
+
});
|
|
4947
|
+
|
|
4938
4948
|
// src/functions/get-global-this.ts
|
|
4939
4949
|
function getGlobalThis() {
|
|
4940
4950
|
if (typeof globalThis !== "undefined") {
|
|
@@ -5117,7 +5127,14 @@ async function fetchOneEntry(options) {
|
|
|
5117
5127
|
var _fetchContent = async (options) => {
|
|
5118
5128
|
const url = generateContentUrl(options);
|
|
5119
5129
|
const _fetch = options.fetch ?? fetch2;
|
|
5120
|
-
const
|
|
5130
|
+
const fetchOptions = {
|
|
5131
|
+
...options.fetchOptions,
|
|
5132
|
+
headers: {
|
|
5133
|
+
...options.fetchOptions?.headers,
|
|
5134
|
+
...getSdkHeaders()
|
|
5135
|
+
}
|
|
5136
|
+
};
|
|
5137
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
5121
5138
|
const content = await res.json();
|
|
5122
5139
|
return content;
|
|
5123
5140
|
};
|
|
@@ -5348,7 +5365,8 @@ async function _track(eventProps) {
|
|
|
5348
5365
|
events: [await createEvent(eventProps)]
|
|
5349
5366
|
}),
|
|
5350
5367
|
headers: {
|
|
5351
|
-
"content-type": "application/json"
|
|
5368
|
+
"content-type": "application/json",
|
|
5369
|
+
...getSdkHeaders()
|
|
5352
5370
|
},
|
|
5353
5371
|
mode: "cors"
|
|
5354
5372
|
}).catch((err) => {
|
|
@@ -5428,9 +5446,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5428
5446
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5429
5447
|
}
|
|
5430
5448
|
|
|
5431
|
-
// src/constants/sdk-version.ts
|
|
5432
|
-
var SDK_VERSION = "2.0.24";
|
|
5433
|
-
|
|
5434
5449
|
// src/functions/register.ts
|
|
5435
5450
|
var registry = {};
|
|
5436
5451
|
function register(type, info) {
|
package/lib/node/dev.jsx
CHANGED
|
@@ -4425,6 +4425,16 @@ function getPreviewContent(_searchParams) {
|
|
|
4425
4425
|
return void 0;
|
|
4426
4426
|
}
|
|
4427
4427
|
|
|
4428
|
+
// src/constants/sdk-version.ts
|
|
4429
|
+
var SDK_VERSION = "2.0.25";
|
|
4430
|
+
|
|
4431
|
+
// src/helpers/sdk-headers.ts
|
|
4432
|
+
var getSdkHeaders = () => ({
|
|
4433
|
+
"X-Builder-SDK": TARGET,
|
|
4434
|
+
"X-Builder-SDK-GEN": "2",
|
|
4435
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
4436
|
+
});
|
|
4437
|
+
|
|
4428
4438
|
// src/functions/get-global-this.ts
|
|
4429
4439
|
function getGlobalThis() {
|
|
4430
4440
|
if (typeof globalThis !== "undefined") {
|
|
@@ -4607,7 +4617,14 @@ async function fetchOneEntry(options) {
|
|
|
4607
4617
|
var _fetchContent = async (options) => {
|
|
4608
4618
|
const url = generateContentUrl(options);
|
|
4609
4619
|
const _fetch = options.fetch ?? fetch2;
|
|
4610
|
-
const
|
|
4620
|
+
const fetchOptions = {
|
|
4621
|
+
...options.fetchOptions,
|
|
4622
|
+
headers: {
|
|
4623
|
+
...options.fetchOptions?.headers,
|
|
4624
|
+
...getSdkHeaders()
|
|
4625
|
+
}
|
|
4626
|
+
};
|
|
4627
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
4611
4628
|
const content = await res.json();
|
|
4612
4629
|
return content;
|
|
4613
4630
|
};
|
|
@@ -4838,7 +4855,8 @@ async function _track(eventProps) {
|
|
|
4838
4855
|
events: [await createEvent(eventProps)]
|
|
4839
4856
|
}),
|
|
4840
4857
|
headers: {
|
|
4841
|
-
"content-type": "application/json"
|
|
4858
|
+
"content-type": "application/json",
|
|
4859
|
+
...getSdkHeaders()
|
|
4842
4860
|
},
|
|
4843
4861
|
mode: "cors"
|
|
4844
4862
|
}).catch((err) => {
|
|
@@ -4918,9 +4936,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4918
4936
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4919
4937
|
}
|
|
4920
4938
|
|
|
4921
|
-
// src/constants/sdk-version.ts
|
|
4922
|
-
var SDK_VERSION = "2.0.24";
|
|
4923
|
-
|
|
4924
4939
|
// src/functions/register.ts
|
|
4925
4940
|
var registry = {};
|
|
4926
4941
|
function register(type, info) {
|
package/lib/node/index.js
CHANGED
|
@@ -4925,6 +4925,16 @@ function getPreviewContent(_searchParams) {
|
|
|
4925
4925
|
return void 0;
|
|
4926
4926
|
}
|
|
4927
4927
|
|
|
4928
|
+
// src/constants/sdk-version.ts
|
|
4929
|
+
var SDK_VERSION = "2.0.25";
|
|
4930
|
+
|
|
4931
|
+
// src/helpers/sdk-headers.ts
|
|
4932
|
+
var getSdkHeaders = () => ({
|
|
4933
|
+
"X-Builder-SDK": TARGET,
|
|
4934
|
+
"X-Builder-SDK-GEN": "2",
|
|
4935
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
4936
|
+
});
|
|
4937
|
+
|
|
4928
4938
|
// src/functions/get-global-this.ts
|
|
4929
4939
|
function getGlobalThis() {
|
|
4930
4940
|
if (typeof globalThis !== "undefined") {
|
|
@@ -5105,7 +5115,14 @@ async function fetchOneEntry(options) {
|
|
|
5105
5115
|
var _fetchContent = async (options) => {
|
|
5106
5116
|
const url = generateContentUrl(options);
|
|
5107
5117
|
const _fetch = options.fetch ?? fetch2;
|
|
5108
|
-
const
|
|
5118
|
+
const fetchOptions = {
|
|
5119
|
+
...options.fetchOptions,
|
|
5120
|
+
headers: {
|
|
5121
|
+
...options.fetchOptions?.headers,
|
|
5122
|
+
...getSdkHeaders()
|
|
5123
|
+
}
|
|
5124
|
+
};
|
|
5125
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
5109
5126
|
const content = await res.json();
|
|
5110
5127
|
return content;
|
|
5111
5128
|
};
|
|
@@ -5334,7 +5351,8 @@ async function _track(eventProps) {
|
|
|
5334
5351
|
events: [await createEvent(eventProps)]
|
|
5335
5352
|
}),
|
|
5336
5353
|
headers: {
|
|
5337
|
-
"content-type": "application/json"
|
|
5354
|
+
"content-type": "application/json",
|
|
5355
|
+
...getSdkHeaders()
|
|
5338
5356
|
},
|
|
5339
5357
|
mode: "cors"
|
|
5340
5358
|
}).catch((err) => {
|
|
@@ -5413,9 +5431,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5413
5431
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5414
5432
|
}
|
|
5415
5433
|
|
|
5416
|
-
// src/constants/sdk-version.ts
|
|
5417
|
-
var SDK_VERSION = "2.0.24";
|
|
5418
|
-
|
|
5419
5434
|
// src/functions/register.ts
|
|
5420
5435
|
var registry = {};
|
|
5421
5436
|
function register(type, info) {
|
package/lib/node/index.jsx
CHANGED
|
@@ -4415,6 +4415,16 @@ function getPreviewContent(_searchParams) {
|
|
|
4415
4415
|
return void 0;
|
|
4416
4416
|
}
|
|
4417
4417
|
|
|
4418
|
+
// src/constants/sdk-version.ts
|
|
4419
|
+
var SDK_VERSION = "2.0.25";
|
|
4420
|
+
|
|
4421
|
+
// src/helpers/sdk-headers.ts
|
|
4422
|
+
var getSdkHeaders = () => ({
|
|
4423
|
+
"X-Builder-SDK": TARGET,
|
|
4424
|
+
"X-Builder-SDK-GEN": "2",
|
|
4425
|
+
"X-Builder-SDK-Version": SDK_VERSION
|
|
4426
|
+
});
|
|
4427
|
+
|
|
4418
4428
|
// src/functions/get-global-this.ts
|
|
4419
4429
|
function getGlobalThis() {
|
|
4420
4430
|
if (typeof globalThis !== "undefined") {
|
|
@@ -4595,7 +4605,14 @@ async function fetchOneEntry(options) {
|
|
|
4595
4605
|
var _fetchContent = async (options) => {
|
|
4596
4606
|
const url = generateContentUrl(options);
|
|
4597
4607
|
const _fetch = options.fetch ?? fetch2;
|
|
4598
|
-
const
|
|
4608
|
+
const fetchOptions = {
|
|
4609
|
+
...options.fetchOptions,
|
|
4610
|
+
headers: {
|
|
4611
|
+
...options.fetchOptions?.headers,
|
|
4612
|
+
...getSdkHeaders()
|
|
4613
|
+
}
|
|
4614
|
+
};
|
|
4615
|
+
const res = await _fetch(url.href, fetchOptions);
|
|
4599
4616
|
const content = await res.json();
|
|
4600
4617
|
return content;
|
|
4601
4618
|
};
|
|
@@ -4824,7 +4841,8 @@ async function _track(eventProps) {
|
|
|
4824
4841
|
events: [await createEvent(eventProps)]
|
|
4825
4842
|
}),
|
|
4826
4843
|
headers: {
|
|
4827
|
-
"content-type": "application/json"
|
|
4844
|
+
"content-type": "application/json",
|
|
4845
|
+
...getSdkHeaders()
|
|
4828
4846
|
},
|
|
4829
4847
|
mode: "cors"
|
|
4830
4848
|
}).catch((err) => {
|
|
@@ -4903,9 +4921,6 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4903
4921
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4904
4922
|
}
|
|
4905
4923
|
|
|
4906
|
-
// src/constants/sdk-version.ts
|
|
4907
|
-
var SDK_VERSION = "2.0.24";
|
|
4908
|
-
|
|
4909
4924
|
// src/functions/register.ts
|
|
4910
4925
|
var registry = {};
|
|
4911
4926
|
function register(type, info) {
|