@builder.io/sdk-solid 1.0.14 → 1.0.15

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/index.d.ts CHANGED
@@ -921,6 +921,14 @@ interface GetContentOptions {
921
921
  * draft mode and un-archived. Default is false.
922
922
  */
923
923
  includeUnpublished?: boolean;
924
+ /**
925
+ * Optional override of the `fetch` function. (Defaults to global `fetch`)
926
+ */
927
+ fetch?: typeof global.fetch;
928
+ /**
929
+ * Optional fetch options to be passed to the `fetch` function.
930
+ */
931
+ fetchOptions?: RequestInit;
924
932
  }
925
933
 
926
934
  type GetBuilderPropsOptions = (Omit<GetContentOptions, 'model'> & {
@@ -4135,7 +4135,8 @@ async function fetchOneEntry(options) {
4135
4135
  }
4136
4136
  var _fetchContent = async (options) => {
4137
4137
  const url = generateContentUrl(options);
4138
- const res = await fetch2(url.href);
4138
+ const _fetch = options.fetch ?? fetch2;
4139
+ const res = await _fetch(url.href, options.fetchOptions);
4139
4140
  const content = await res.json();
4140
4141
  return content;
4141
4142
  };
@@ -4446,7 +4447,7 @@ function isFromTrustedHost(trustedHosts, e) {
4446
4447
  }
4447
4448
 
4448
4449
  // src/constants/sdk-version.ts
4449
- var SDK_VERSION = "1.0.14";
4450
+ var SDK_VERSION = "1.0.15";
4450
4451
 
4451
4452
  // src/functions/register.ts
4452
4453
  var registry = {};
@@ -3718,7 +3718,8 @@ async function fetchOneEntry(options) {
3718
3718
  }
3719
3719
  var _fetchContent = async (options) => {
3720
3720
  const url = generateContentUrl(options);
3721
- const res = await fetch2(url.href);
3721
+ const _fetch = options.fetch ?? fetch2;
3722
+ const res = await _fetch(url.href, options.fetchOptions);
3722
3723
  const content = await res.json();
3723
3724
  return content;
3724
3725
  };
@@ -4029,7 +4030,7 @@ function isFromTrustedHost(trustedHosts, e) {
4029
4030
  }
4030
4031
 
4031
4032
  // src/constants/sdk-version.ts
4032
- var SDK_VERSION = "1.0.14";
4033
+ var SDK_VERSION = "1.0.15";
4033
4034
 
4034
4035
  // src/functions/register.ts
4035
4036
  var registry = {};
@@ -4123,7 +4123,8 @@ async function fetchOneEntry(options) {
4123
4123
  }
4124
4124
  var _fetchContent = async (options) => {
4125
4125
  const url = generateContentUrl(options);
4126
- const res = await fetch2(url.href);
4126
+ const _fetch = options.fetch ?? fetch2;
4127
+ const res = await _fetch(url.href, options.fetchOptions);
4127
4128
  const content = await res.json();
4128
4129
  return content;
4129
4130
  };
@@ -4431,7 +4432,7 @@ function isFromTrustedHost(trustedHosts, e) {
4431
4432
  }
4432
4433
 
4433
4434
  // src/constants/sdk-version.ts
4434
- var SDK_VERSION = "1.0.14";
4435
+ var SDK_VERSION = "1.0.15";
4435
4436
 
4436
4437
  // src/functions/register.ts
4437
4438
  var registry = {};
@@ -3706,7 +3706,8 @@ async function fetchOneEntry(options) {
3706
3706
  }
3707
3707
  var _fetchContent = async (options) => {
3708
3708
  const url = generateContentUrl(options);
3709
- const res = await fetch2(url.href);
3709
+ const _fetch = options.fetch ?? fetch2;
3710
+ const res = await _fetch(url.href, options.fetchOptions);
3710
3711
  const content = await res.json();
3711
3712
  return content;
3712
3713
  };
@@ -4014,7 +4015,7 @@ function isFromTrustedHost(trustedHosts, e) {
4014
4015
  }
4015
4016
 
4016
4017
  // src/constants/sdk-version.ts
4017
- var SDK_VERSION = "1.0.14";
4018
+ var SDK_VERSION = "1.0.15";
4018
4019
 
4019
4020
  // src/functions/register.ts
4020
4021
  var registry = {};
package/lib/edge/dev.js CHANGED
@@ -7288,7 +7288,8 @@ async function fetchOneEntry(options) {
7288
7288
  }
7289
7289
  var _fetchContent = async (options) => {
7290
7290
  const url = generateContentUrl(options);
7291
- const res = await fetch2(url.href);
7291
+ const _fetch = options.fetch ?? fetch2;
7292
+ const res = await _fetch(url.href, options.fetchOptions);
7292
7293
  const content = await res.json();
7293
7294
  return content;
7294
7295
  };
@@ -7599,7 +7600,7 @@ function isFromTrustedHost(trustedHosts, e) {
7599
7600
  }
7600
7601
 
7601
7602
  // src/constants/sdk-version.ts
7602
- var SDK_VERSION = "1.0.14";
7603
+ var SDK_VERSION = "1.0.15";
7603
7604
 
7604
7605
  // src/functions/register.ts
7605
7606
  var registry = {};
package/lib/edge/dev.jsx CHANGED
@@ -6873,7 +6873,8 @@ async function fetchOneEntry(options) {
6873
6873
  }
6874
6874
  var _fetchContent = async (options) => {
6875
6875
  const url = generateContentUrl(options);
6876
- const res = await fetch2(url.href);
6876
+ const _fetch = options.fetch ?? fetch2;
6877
+ const res = await _fetch(url.href, options.fetchOptions);
6877
6878
  const content = await res.json();
6878
6879
  return content;
6879
6880
  };
@@ -7184,7 +7185,7 @@ function isFromTrustedHost(trustedHosts, e) {
7184
7185
  }
7185
7186
 
7186
7187
  // src/constants/sdk-version.ts
7187
- var SDK_VERSION = "1.0.14";
7188
+ var SDK_VERSION = "1.0.15";
7188
7189
 
7189
7190
  // src/functions/register.ts
7190
7191
  var registry = {};
package/lib/edge/index.js CHANGED
@@ -7276,7 +7276,8 @@ async function fetchOneEntry(options) {
7276
7276
  }
7277
7277
  var _fetchContent = async (options) => {
7278
7278
  const url = generateContentUrl(options);
7279
- const res = await fetch2(url.href);
7279
+ const _fetch = options.fetch ?? fetch2;
7280
+ const res = await _fetch(url.href, options.fetchOptions);
7280
7281
  const content = await res.json();
7281
7282
  return content;
7282
7283
  };
@@ -7584,7 +7585,7 @@ function isFromTrustedHost(trustedHosts, e) {
7584
7585
  }
7585
7586
 
7586
7587
  // src/constants/sdk-version.ts
7587
- var SDK_VERSION = "1.0.14";
7588
+ var SDK_VERSION = "1.0.15";
7588
7589
 
7589
7590
  // src/functions/register.ts
7590
7591
  var registry = {};
@@ -6861,7 +6861,8 @@ async function fetchOneEntry(options) {
6861
6861
  }
6862
6862
  var _fetchContent = async (options) => {
6863
6863
  const url = generateContentUrl(options);
6864
- const res = await fetch2(url.href);
6864
+ const _fetch = options.fetch ?? fetch2;
6865
+ const res = await _fetch(url.href, options.fetchOptions);
6865
6866
  const content = await res.json();
6866
6867
  return content;
6867
6868
  };
@@ -7169,7 +7170,7 @@ function isFromTrustedHost(trustedHosts, e) {
7169
7170
  }
7170
7171
 
7171
7172
  // src/constants/sdk-version.ts
7172
- var SDK_VERSION = "1.0.14";
7173
+ var SDK_VERSION = "1.0.15";
7173
7174
 
7174
7175
  // src/functions/register.ts
7175
7176
  var registry = {};
package/lib/node/dev.js CHANGED
@@ -4260,7 +4260,8 @@ async function fetchOneEntry(options) {
4260
4260
  }
4261
4261
  var _fetchContent = async (options) => {
4262
4262
  const url = generateContentUrl(options);
4263
- const res = await fetch2(url.href);
4263
+ const _fetch = options.fetch ?? fetch2;
4264
+ const res = await _fetch(url.href, options.fetchOptions);
4264
4265
  const content = await res.json();
4265
4266
  return content;
4266
4267
  };
@@ -4571,7 +4572,7 @@ function isFromTrustedHost(trustedHosts, e) {
4571
4572
  }
4572
4573
 
4573
4574
  // src/constants/sdk-version.ts
4574
- var SDK_VERSION = "1.0.14";
4575
+ var SDK_VERSION = "1.0.15";
4575
4576
 
4576
4577
  // src/functions/register.ts
4577
4578
  var registry = {};
package/lib/node/dev.jsx CHANGED
@@ -3845,7 +3845,8 @@ async function fetchOneEntry(options) {
3845
3845
  }
3846
3846
  var _fetchContent = async (options) => {
3847
3847
  const url = generateContentUrl(options);
3848
- const res = await fetch2(url.href);
3848
+ const _fetch = options.fetch ?? fetch2;
3849
+ const res = await _fetch(url.href, options.fetchOptions);
3849
3850
  const content = await res.json();
3850
3851
  return content;
3851
3852
  };
@@ -4156,7 +4157,7 @@ function isFromTrustedHost(trustedHosts, e) {
4156
4157
  }
4157
4158
 
4158
4159
  // src/constants/sdk-version.ts
4159
- var SDK_VERSION = "1.0.14";
4160
+ var SDK_VERSION = "1.0.15";
4160
4161
 
4161
4162
  // src/functions/register.ts
4162
4163
  var registry = {};
package/lib/node/index.js CHANGED
@@ -4247,7 +4247,8 @@ async function fetchOneEntry(options) {
4247
4247
  }
4248
4248
  var _fetchContent = async (options) => {
4249
4249
  const url = generateContentUrl(options);
4250
- const res = await fetch2(url.href);
4250
+ const _fetch = options.fetch ?? fetch2;
4251
+ const res = await _fetch(url.href, options.fetchOptions);
4251
4252
  const content = await res.json();
4252
4253
  return content;
4253
4254
  };
@@ -4555,7 +4556,7 @@ function isFromTrustedHost(trustedHosts, e) {
4555
4556
  }
4556
4557
 
4557
4558
  // src/constants/sdk-version.ts
4558
- var SDK_VERSION = "1.0.14";
4559
+ var SDK_VERSION = "1.0.15";
4559
4560
 
4560
4561
  // src/functions/register.ts
4561
4562
  var registry = {};
@@ -3832,7 +3832,8 @@ async function fetchOneEntry(options) {
3832
3832
  }
3833
3833
  var _fetchContent = async (options) => {
3834
3834
  const url = generateContentUrl(options);
3835
- const res = await fetch2(url.href);
3835
+ const _fetch = options.fetch ?? fetch2;
3836
+ const res = await _fetch(url.href, options.fetchOptions);
3836
3837
  const content = await res.json();
3837
3838
  return content;
3838
3839
  };
@@ -4140,7 +4141,7 @@ function isFromTrustedHost(trustedHosts, e) {
4140
4141
  }
4141
4142
 
4142
4143
  // src/constants/sdk-version.ts
4143
- var SDK_VERSION = "1.0.14";
4144
+ var SDK_VERSION = "1.0.15";
4144
4145
 
4145
4146
  // src/functions/register.ts
4146
4147
  var registry = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",