@builder.io/sdk-svelte 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/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/browser/functions/get-content/generate-content-url.js +2 -2
- package/lib/browser/functions/get-content/types.d.ts +2 -2
- package/lib/browser/types/api-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/edge/functions/get-content/generate-content-url.js +2 -2
- package/lib/edge/functions/get-content/types.d.ts +2 -2
- package/lib/edge/types/api-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/lib/node/functions/get-content/generate-content-url.js +2 -2
- package/lib/node/functions/get-content/types.d.ts +2 -2
- package/lib/node/types/api-version.d.ts +1 -1
- package/package.json +1 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/get-content/generate-content-url.ts +2 -2
- package/src/functions/get-content/types.ts +2 -2
- package/src/types/api-version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.13.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.13.0";
|
|
@@ -8,8 +8,8 @@ export const generateContentUrl = (options) => {
|
|
|
8
8
|
if (!apiKey) {
|
|
9
9
|
throw new Error('Missing API key');
|
|
10
10
|
}
|
|
11
|
-
if (!['
|
|
12
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
11
|
+
if (!['v3'].includes(apiVersion)) {
|
|
12
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
13
13
|
}
|
|
14
14
|
// Set noTraverse=true if NOT already passed by user, for query performance
|
|
15
15
|
if ((options.limit === undefined || options.limit > 1) && !('noTraverse' in options)) {
|
|
@@ -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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.13.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.13.0";
|
|
@@ -8,8 +8,8 @@ export const generateContentUrl = (options) => {
|
|
|
8
8
|
if (!apiKey) {
|
|
9
9
|
throw new Error('Missing API key');
|
|
10
10
|
}
|
|
11
|
-
if (!['
|
|
12
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
11
|
+
if (!['v3'].includes(apiVersion)) {
|
|
12
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
13
13
|
}
|
|
14
14
|
// Set noTraverse=true if NOT already passed by user, for query performance
|
|
15
15
|
if ((options.limit === undefined || options.limit > 1) && !('noTraverse' in options)) {
|
|
@@ -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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.13.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.13.0";
|
|
@@ -8,8 +8,8 @@ export const generateContentUrl = (options) => {
|
|
|
8
8
|
if (!apiKey) {
|
|
9
9
|
throw new Error('Missing API key');
|
|
10
10
|
}
|
|
11
|
-
if (!['
|
|
12
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
11
|
+
if (!['v3'].includes(apiVersion)) {
|
|
12
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
13
13
|
}
|
|
14
14
|
// Set noTraverse=true if NOT already passed by user, for query performance
|
|
15
15
|
if ((options.limit === undefined || options.limit > 1) && !('noTraverse' in options)) {
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.13.0"
|
|
@@ -28,8 +28,8 @@ export const generateContentUrl = (options: GetContentOptions): URL => {
|
|
|
28
28
|
if (!apiKey) {
|
|
29
29
|
throw new Error('Missing API key');
|
|
30
30
|
}
|
|
31
|
-
if (!['
|
|
32
|
-
throw new Error(`Invalid apiVersion: expected '
|
|
31
|
+
if (!['v3'].includes(apiVersion)) {
|
|
32
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${apiVersion}'`);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Set noTraverse=true if NOT already passed by user, for query performance
|
|
@@ -88,9 +88,9 @@ export interface GetContentOptions {
|
|
|
88
88
|
/**
|
|
89
89
|
* If provided, sets the Builder API version used to fetch content.
|
|
90
90
|
*
|
|
91
|
-
*
|
|
91
|
+
* Currently, the only available API version is `v3`.
|
|
92
92
|
*/
|
|
93
|
-
apiVersion?: '
|
|
93
|
+
apiVersion?: 'v3';
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* Only include these fields.
|
package/src/types/api-version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type ApiVersion = '
|
|
1
|
+
export type ApiVersion = 'v3';
|
|
2
2
|
export const DEFAULT_API_VERSION: ApiVersion = 'v3'
|