@builder.io/sdk-svelte 2.0.31 → 3.0.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/index.d.ts +1 -1
- package/lib/browser/functions/get-content/index.js +10 -16
- 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/index.d.ts +1 -1
- package/lib/edge/functions/get-content/index.js +10 -16
- 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/index.d.ts +1 -1
- package/lib/node/functions/get-content/index.js +10 -16
- package/package.json +1 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/get-content/index.ts +10 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "3.0.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "3.0.0";
|
|
@@ -14,5 +14,5 @@ export declare const _processContentResult: (options: GetContentOptions, content
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns a paginated array of entries that match the given options.
|
|
16
16
|
*/
|
|
17
|
-
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]
|
|
17
|
+
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
|
|
18
18
|
export {};
|
|
@@ -78,21 +78,15 @@ export const _processContentResult = async (options, content, url = generateCont
|
|
|
78
78
|
* Returns a paginated array of entries that match the given options.
|
|
79
79
|
*/
|
|
80
80
|
export async function fetchEntries(options) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
return _processContentResult(options, content);
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
logger.error('Error fetching data. ', error);
|
|
96
|
-
return null;
|
|
81
|
+
const url = generateContentUrl(options);
|
|
82
|
+
const content = await _fetchContent(options);
|
|
83
|
+
if (!checkContentHasResults(content)) {
|
|
84
|
+
logger.error('Error fetching data. ', {
|
|
85
|
+
url,
|
|
86
|
+
content,
|
|
87
|
+
options
|
|
88
|
+
});
|
|
89
|
+
throw content;
|
|
97
90
|
}
|
|
91
|
+
return _processContentResult(options, content);
|
|
98
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "3.0.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "3.0.0";
|
|
@@ -14,5 +14,5 @@ export declare const _processContentResult: (options: GetContentOptions, content
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns a paginated array of entries that match the given options.
|
|
16
16
|
*/
|
|
17
|
-
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]
|
|
17
|
+
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
|
|
18
18
|
export {};
|
|
@@ -78,21 +78,15 @@ export const _processContentResult = async (options, content, url = generateCont
|
|
|
78
78
|
* Returns a paginated array of entries that match the given options.
|
|
79
79
|
*/
|
|
80
80
|
export async function fetchEntries(options) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
return _processContentResult(options, content);
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
logger.error('Error fetching data. ', error);
|
|
96
|
-
return null;
|
|
81
|
+
const url = generateContentUrl(options);
|
|
82
|
+
const content = await _fetchContent(options);
|
|
83
|
+
if (!checkContentHasResults(content)) {
|
|
84
|
+
logger.error('Error fetching data. ', {
|
|
85
|
+
url,
|
|
86
|
+
content,
|
|
87
|
+
options
|
|
88
|
+
});
|
|
89
|
+
throw content;
|
|
97
90
|
}
|
|
91
|
+
return _processContentResult(options, content);
|
|
98
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "3.0.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "3.0.0";
|
|
@@ -14,5 +14,5 @@ export declare const _processContentResult: (options: GetContentOptions, content
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns a paginated array of entries that match the given options.
|
|
16
16
|
*/
|
|
17
|
-
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]
|
|
17
|
+
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
|
|
18
18
|
export {};
|
|
@@ -78,21 +78,15 @@ export const _processContentResult = async (options, content, url = generateCont
|
|
|
78
78
|
* Returns a paginated array of entries that match the given options.
|
|
79
79
|
*/
|
|
80
80
|
export async function fetchEntries(options) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
return _processContentResult(options, content);
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
logger.error('Error fetching data. ', error);
|
|
96
|
-
return null;
|
|
81
|
+
const url = generateContentUrl(options);
|
|
82
|
+
const content = await _fetchContent(options);
|
|
83
|
+
if (!checkContentHasResults(content)) {
|
|
84
|
+
logger.error('Error fetching data. ', {
|
|
85
|
+
url,
|
|
86
|
+
content,
|
|
87
|
+
options
|
|
88
|
+
});
|
|
89
|
+
throw content;
|
|
97
90
|
}
|
|
91
|
+
return _processContentResult(options, content);
|
|
98
92
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "3.0.0"
|
|
@@ -88,20 +88,15 @@ export const _processContentResult = async (options: GetContentOptions, content:
|
|
|
88
88
|
* Returns a paginated array of entries that match the given options.
|
|
89
89
|
*/
|
|
90
90
|
export async function fetchEntries(options: GetContentOptions) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
return _processContentResult(options, content);
|
|
103
|
-
} catch (error) {
|
|
104
|
-
logger.error('Error fetching data. ', error);
|
|
105
|
-
return null;
|
|
91
|
+
const url = generateContentUrl(options);
|
|
92
|
+
const content = await _fetchContent(options);
|
|
93
|
+
if (!checkContentHasResults(content)) {
|
|
94
|
+
logger.error('Error fetching data. ', {
|
|
95
|
+
url,
|
|
96
|
+
content,
|
|
97
|
+
options
|
|
98
|
+
});
|
|
99
|
+
throw content;
|
|
106
100
|
}
|
|
101
|
+
return _processContentResult(options, content);
|
|
107
102
|
}
|