@builder.io/sdk-qwik 0.14.9 → 0.14.10
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/index.qwik.cjs +3 -2
- package/lib/browser/index.qwik.mjs +3 -2
- package/lib/edge/index.qwik.cjs +3 -2
- package/lib/edge/index.qwik.mjs +3 -2
- package/lib/node/index.qwik.cjs +3 -2
- package/lib/node/index.qwik.mjs +3 -2
- package/package.json +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/functions/get-content/types.d.ts +8 -0
|
@@ -4141,7 +4141,8 @@ async function fetchOneEntry(options) {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
const _fetchContent = async (options) => {
|
|
4143
4143
|
const url = generateContentUrl(options);
|
|
4144
|
-
const
|
|
4144
|
+
const _fetch = options.fetch ?? fetch$1;
|
|
4145
|
+
const res = await _fetch(url.href, options.fetchOptions);
|
|
4145
4146
|
const content = await res.json();
|
|
4146
4147
|
return content;
|
|
4147
4148
|
};
|
|
@@ -4394,7 +4395,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4394
4395
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4395
4396
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4396
4397
|
}
|
|
4397
|
-
const SDK_VERSION = "0.14.
|
|
4398
|
+
const SDK_VERSION = "0.14.10";
|
|
4398
4399
|
const registry = {};
|
|
4399
4400
|
function register(type, info) {
|
|
4400
4401
|
let typeList = registry[type];
|
|
@@ -4139,7 +4139,8 @@ async function fetchOneEntry(options) {
|
|
|
4139
4139
|
}
|
|
4140
4140
|
const _fetchContent = async (options) => {
|
|
4141
4141
|
const url = generateContentUrl(options);
|
|
4142
|
-
const
|
|
4142
|
+
const _fetch = options.fetch ?? fetch$1;
|
|
4143
|
+
const res = await _fetch(url.href, options.fetchOptions);
|
|
4143
4144
|
const content = await res.json();
|
|
4144
4145
|
return content;
|
|
4145
4146
|
};
|
|
@@ -4392,7 +4393,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4392
4393
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4393
4394
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4394
4395
|
}
|
|
4395
|
-
const SDK_VERSION = "0.14.
|
|
4396
|
+
const SDK_VERSION = "0.14.10";
|
|
4396
4397
|
const registry = {};
|
|
4397
4398
|
function register(type, info) {
|
|
4398
4399
|
let typeList = registry[type];
|
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -7372,7 +7372,8 @@ async function fetchOneEntry(options) {
|
|
|
7372
7372
|
}
|
|
7373
7373
|
const _fetchContent = async (options) => {
|
|
7374
7374
|
const url = generateContentUrl(options);
|
|
7375
|
-
const
|
|
7375
|
+
const _fetch = options.fetch ?? fetch$1;
|
|
7376
|
+
const res = await _fetch(url.href, options.fetchOptions);
|
|
7376
7377
|
const content = await res.json();
|
|
7377
7378
|
return content;
|
|
7378
7379
|
};
|
|
@@ -7625,7 +7626,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7625
7626
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
7626
7627
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
7627
7628
|
}
|
|
7628
|
-
const SDK_VERSION = "0.14.
|
|
7629
|
+
const SDK_VERSION = "0.14.10";
|
|
7629
7630
|
const registry = {};
|
|
7630
7631
|
function register(type, info) {
|
|
7631
7632
|
let typeList = registry[type];
|
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -7370,7 +7370,8 @@ async function fetchOneEntry(options) {
|
|
|
7370
7370
|
}
|
|
7371
7371
|
const _fetchContent = async (options) => {
|
|
7372
7372
|
const url = generateContentUrl(options);
|
|
7373
|
-
const
|
|
7373
|
+
const _fetch = options.fetch ?? fetch$1;
|
|
7374
|
+
const res = await _fetch(url.href, options.fetchOptions);
|
|
7374
7375
|
const content = await res.json();
|
|
7375
7376
|
return content;
|
|
7376
7377
|
};
|
|
@@ -7623,7 +7624,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7623
7624
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
7624
7625
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
7625
7626
|
}
|
|
7626
|
-
const SDK_VERSION = "0.14.
|
|
7627
|
+
const SDK_VERSION = "0.14.10";
|
|
7627
7628
|
const registry = {};
|
|
7628
7629
|
function register(type, info) {
|
|
7629
7630
|
let typeList = registry[type];
|
package/lib/node/index.qwik.cjs
CHANGED
|
@@ -4243,7 +4243,8 @@ async function fetchOneEntry(options) {
|
|
|
4243
4243
|
}
|
|
4244
4244
|
const _fetchContent = async (options) => {
|
|
4245
4245
|
const url = generateContentUrl(options);
|
|
4246
|
-
const
|
|
4246
|
+
const _fetch = options.fetch ?? fetch$1;
|
|
4247
|
+
const res = await _fetch(url.href, options.fetchOptions);
|
|
4247
4248
|
const content = await res.json();
|
|
4248
4249
|
return content;
|
|
4249
4250
|
};
|
|
@@ -4496,7 +4497,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4496
4497
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4497
4498
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4498
4499
|
}
|
|
4499
|
-
const SDK_VERSION = "0.14.
|
|
4500
|
+
const SDK_VERSION = "0.14.10";
|
|
4500
4501
|
const registry = {};
|
|
4501
4502
|
function register(type, info) {
|
|
4502
4503
|
let typeList = registry[type];
|
package/lib/node/index.qwik.mjs
CHANGED
|
@@ -4241,7 +4241,8 @@ async function fetchOneEntry(options) {
|
|
|
4241
4241
|
}
|
|
4242
4242
|
const _fetchContent = async (options) => {
|
|
4243
4243
|
const url = generateContentUrl(options);
|
|
4244
|
-
const
|
|
4244
|
+
const _fetch = options.fetch ?? fetch$1;
|
|
4245
|
+
const res = await _fetch(url.href, options.fetchOptions);
|
|
4245
4246
|
const content = await res.json();
|
|
4246
4247
|
return content;
|
|
4247
4248
|
};
|
|
@@ -4494,7 +4495,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4494
4495
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4495
4496
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4496
4497
|
}
|
|
4497
|
-
const SDK_VERSION = "0.14.
|
|
4498
|
+
const SDK_VERSION = "0.14.10";
|
|
4498
4499
|
const registry = {};
|
|
4499
4500
|
function register(type, info) {
|
|
4500
4501
|
let typeList = registry[type];
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.14.
|
|
1
|
+
export declare const SDK_VERSION = "0.14.10";
|
|
@@ -128,4 +128,12 @@ export interface GetContentOptions {
|
|
|
128
128
|
* draft mode and un-archived. Default is false.
|
|
129
129
|
*/
|
|
130
130
|
includeUnpublished?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Optional override of the `fetch` function. (Defaults to global `fetch`)
|
|
133
|
+
*/
|
|
134
|
+
fetch?: typeof global.fetch;
|
|
135
|
+
/**
|
|
136
|
+
* Optional fetch options to be passed to the `fetch` function.
|
|
137
|
+
*/
|
|
138
|
+
fetchOptions?: RequestInit;
|
|
131
139
|
}
|