@builder.io/sdk-qwik 0.12.8 → 0.13.0
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 +2 -3
- package/lib/browser/index.qwik.mjs +2 -3
- package/lib/edge/index.qwik.cjs +2 -3
- package/lib/edge/index.qwik.mjs +2 -3
- package/lib/node/index.qwik.cjs +2 -3
- package/lib/node/index.qwik.mjs +2 -3
- package/package.json +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/functions/get-content/types.d.ts +2 -2
- package/types/src/types/api-version.d.ts +1 -1
|
@@ -3253,10 +3253,9 @@ const generateContentUrl = (options) => {
|
|
|
3253
3253
|
if (!apiKey)
|
|
3254
3254
|
throw new Error("Missing API key");
|
|
3255
3255
|
if (![
|
|
3256
|
-
"v2",
|
|
3257
3256
|
"v3"
|
|
3258
3257
|
].includes(apiVersion))
|
|
3259
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
3258
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
3260
3259
|
if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options))
|
|
3261
3260
|
noTraverse = true;
|
|
3262
3261
|
const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
|
|
@@ -3562,7 +3561,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
3562
3561
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
3563
3562
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
3564
3563
|
}
|
|
3565
|
-
const SDK_VERSION = "0.
|
|
3564
|
+
const SDK_VERSION = "0.13.0";
|
|
3566
3565
|
const registry = {};
|
|
3567
3566
|
function register(type, info) {
|
|
3568
3567
|
let typeList = registry[type];
|
|
@@ -3251,10 +3251,9 @@ const generateContentUrl = (options) => {
|
|
|
3251
3251
|
if (!apiKey)
|
|
3252
3252
|
throw new Error("Missing API key");
|
|
3253
3253
|
if (![
|
|
3254
|
-
"v2",
|
|
3255
3254
|
"v3"
|
|
3256
3255
|
].includes(apiVersion))
|
|
3257
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
3256
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
3258
3257
|
if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options))
|
|
3259
3258
|
noTraverse = true;
|
|
3260
3259
|
const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
|
|
@@ -3560,7 +3559,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
3560
3559
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
3561
3560
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
3562
3561
|
}
|
|
3563
|
-
const SDK_VERSION = "0.
|
|
3562
|
+
const SDK_VERSION = "0.13.0";
|
|
3564
3563
|
const registry = {};
|
|
3565
3564
|
function register(type, info) {
|
|
3566
3565
|
let typeList = registry[type];
|
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -6484,10 +6484,9 @@ const generateContentUrl = (options) => {
|
|
|
6484
6484
|
if (!apiKey)
|
|
6485
6485
|
throw new Error("Missing API key");
|
|
6486
6486
|
if (![
|
|
6487
|
-
"v2",
|
|
6488
6487
|
"v3"
|
|
6489
6488
|
].includes(apiVersion))
|
|
6490
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
6489
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
6491
6490
|
if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options))
|
|
6492
6491
|
noTraverse = true;
|
|
6493
6492
|
const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
|
|
@@ -6793,7 +6792,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
6793
6792
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
6794
6793
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
6795
6794
|
}
|
|
6796
|
-
const SDK_VERSION = "0.
|
|
6795
|
+
const SDK_VERSION = "0.13.0";
|
|
6797
6796
|
const registry = {};
|
|
6798
6797
|
function register(type, info) {
|
|
6799
6798
|
let typeList = registry[type];
|
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -6482,10 +6482,9 @@ const generateContentUrl = (options) => {
|
|
|
6482
6482
|
if (!apiKey)
|
|
6483
6483
|
throw new Error("Missing API key");
|
|
6484
6484
|
if (![
|
|
6485
|
-
"v2",
|
|
6486
6485
|
"v3"
|
|
6487
6486
|
].includes(apiVersion))
|
|
6488
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
6487
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
6489
6488
|
if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options))
|
|
6490
6489
|
noTraverse = true;
|
|
6491
6490
|
const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
|
|
@@ -6791,7 +6790,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
6791
6790
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
6792
6791
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
6793
6792
|
}
|
|
6794
|
-
const SDK_VERSION = "0.
|
|
6793
|
+
const SDK_VERSION = "0.13.0";
|
|
6795
6794
|
const registry = {};
|
|
6796
6795
|
function register(type, info) {
|
|
6797
6796
|
let typeList = registry[type];
|
package/lib/node/index.qwik.cjs
CHANGED
|
@@ -3354,10 +3354,9 @@ const generateContentUrl = (options) => {
|
|
|
3354
3354
|
if (!apiKey)
|
|
3355
3355
|
throw new Error("Missing API key");
|
|
3356
3356
|
if (![
|
|
3357
|
-
"v2",
|
|
3358
3357
|
"v3"
|
|
3359
3358
|
].includes(apiVersion))
|
|
3360
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
3359
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
3361
3360
|
if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options))
|
|
3362
3361
|
noTraverse = true;
|
|
3363
3362
|
const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
|
|
@@ -3663,7 +3662,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
3663
3662
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
3664
3663
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
3665
3664
|
}
|
|
3666
|
-
const SDK_VERSION = "0.
|
|
3665
|
+
const SDK_VERSION = "0.13.0";
|
|
3667
3666
|
const registry = {};
|
|
3668
3667
|
function register(type, info) {
|
|
3669
3668
|
let typeList = registry[type];
|
package/lib/node/index.qwik.mjs
CHANGED
|
@@ -3352,10 +3352,9 @@ const generateContentUrl = (options) => {
|
|
|
3352
3352
|
if (!apiKey)
|
|
3353
3353
|
throw new Error("Missing API key");
|
|
3354
3354
|
if (![
|
|
3355
|
-
"v2",
|
|
3356
3355
|
"v3"
|
|
3357
3356
|
].includes(apiVersion))
|
|
3358
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
3357
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
3359
3358
|
if ((options.limit === void 0 || options.limit > 1) && !("noTraverse" in options))
|
|
3360
3359
|
noTraverse = true;
|
|
3361
3360
|
const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ""}${enrich ? `&enrich=${enrich}` : ""}`);
|
|
@@ -3661,7 +3660,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
3661
3660
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
3662
3661
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
3663
3662
|
}
|
|
3664
|
-
const SDK_VERSION = "0.
|
|
3663
|
+
const SDK_VERSION = "0.13.0";
|
|
3665
3664
|
const registry = {};
|
|
3666
3665
|
function register(type, info) {
|
|
3667
3666
|
let typeList = registry[type];
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.13.0";
|
|
@@ -76,9 +76,9 @@ export interface GetContentOptions {
|
|
|
76
76
|
/**
|
|
77
77
|
* If provided, sets the Builder API version used to fetch content.
|
|
78
78
|
*
|
|
79
|
-
*
|
|
79
|
+
* Currently, the only available API version is `v3`.
|
|
80
80
|
*/
|
|
81
|
-
apiVersion?: '
|
|
81
|
+
apiVersion?: 'v3';
|
|
82
82
|
/**
|
|
83
83
|
* Only include these fields.
|
|
84
84
|
* Note: 'omit' takes precedence over 'fields'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type ApiVersion = '
|
|
1
|
+
export type ApiVersion = 'v3';
|
|
2
2
|
export declare const DEFAULT_API_VERSION: ApiVersion;
|