@builder.io/sdk-qwik 0.16.24 → 0.17.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.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/browser/functions/get-content/index.qwik.cjs +10 -15
- package/lib/browser/functions/get-content/index.qwik.mjs +10 -15
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/functions/get-content/index.qwik.cjs +10 -15
- package/lib/edge/functions/get-content/index.qwik.mjs +10 -15
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/functions/get-content/index.qwik.cjs +10 -15
- package/lib/node/functions/get-content/index.qwik.mjs +10 -15
- package/package.json +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/functions/get-content/index.d.ts +1 -1
|
@@ -54,22 +54,17 @@ const _processContentResult = async (options, content, url = generateContentUrl.
|
|
|
54
54
|
return content.results;
|
|
55
55
|
};
|
|
56
56
|
async function fetchEntries(options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
return _processContentResult(options, content);
|
|
69
|
-
} catch (error) {
|
|
70
|
-
logger.logger.error("Error fetching data. ", error);
|
|
71
|
-
return null;
|
|
57
|
+
const url = generateContentUrl.generateContentUrl(options);
|
|
58
|
+
const content = await _fetchContent(options);
|
|
59
|
+
if (!checkContentHasResults(content)) {
|
|
60
|
+
logger.logger.error("Error fetching data. ", {
|
|
61
|
+
url,
|
|
62
|
+
content,
|
|
63
|
+
options
|
|
64
|
+
});
|
|
65
|
+
throw content;
|
|
72
66
|
}
|
|
67
|
+
return _processContentResult(options, content);
|
|
73
68
|
}
|
|
74
69
|
exports._processContentResult = _processContentResult;
|
|
75
70
|
exports.fetchEntries = fetchEntries;
|
|
@@ -52,22 +52,17 @@ const _processContentResult = async (options, content, url = generateContentUrl(
|
|
|
52
52
|
return content.results;
|
|
53
53
|
};
|
|
54
54
|
async function fetchEntries(options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
return _processContentResult(options, content);
|
|
67
|
-
} catch (error) {
|
|
68
|
-
logger.error("Error fetching data. ", error);
|
|
69
|
-
return null;
|
|
55
|
+
const url = generateContentUrl(options);
|
|
56
|
+
const content = await _fetchContent(options);
|
|
57
|
+
if (!checkContentHasResults(content)) {
|
|
58
|
+
logger.error("Error fetching data. ", {
|
|
59
|
+
url,
|
|
60
|
+
content,
|
|
61
|
+
options
|
|
62
|
+
});
|
|
63
|
+
throw content;
|
|
70
64
|
}
|
|
65
|
+
return _processContentResult(options, content);
|
|
71
66
|
}
|
|
72
67
|
export {
|
|
73
68
|
_processContentResult,
|
|
@@ -54,22 +54,17 @@ const _processContentResult = async (options, content, url = generateContentUrl.
|
|
|
54
54
|
return content.results;
|
|
55
55
|
};
|
|
56
56
|
async function fetchEntries(options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
return _processContentResult(options, content);
|
|
69
|
-
} catch (error) {
|
|
70
|
-
logger.logger.error("Error fetching data. ", error);
|
|
71
|
-
return null;
|
|
57
|
+
const url = generateContentUrl.generateContentUrl(options);
|
|
58
|
+
const content = await _fetchContent(options);
|
|
59
|
+
if (!checkContentHasResults(content)) {
|
|
60
|
+
logger.logger.error("Error fetching data. ", {
|
|
61
|
+
url,
|
|
62
|
+
content,
|
|
63
|
+
options
|
|
64
|
+
});
|
|
65
|
+
throw content;
|
|
72
66
|
}
|
|
67
|
+
return _processContentResult(options, content);
|
|
73
68
|
}
|
|
74
69
|
exports._processContentResult = _processContentResult;
|
|
75
70
|
exports.fetchEntries = fetchEntries;
|
|
@@ -52,22 +52,17 @@ const _processContentResult = async (options, content, url = generateContentUrl(
|
|
|
52
52
|
return content.results;
|
|
53
53
|
};
|
|
54
54
|
async function fetchEntries(options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
return _processContentResult(options, content);
|
|
67
|
-
} catch (error) {
|
|
68
|
-
logger.error("Error fetching data. ", error);
|
|
69
|
-
return null;
|
|
55
|
+
const url = generateContentUrl(options);
|
|
56
|
+
const content = await _fetchContent(options);
|
|
57
|
+
if (!checkContentHasResults(content)) {
|
|
58
|
+
logger.error("Error fetching data. ", {
|
|
59
|
+
url,
|
|
60
|
+
content,
|
|
61
|
+
options
|
|
62
|
+
});
|
|
63
|
+
throw content;
|
|
70
64
|
}
|
|
65
|
+
return _processContentResult(options, content);
|
|
71
66
|
}
|
|
72
67
|
export {
|
|
73
68
|
_processContentResult,
|
|
@@ -54,22 +54,17 @@ const _processContentResult = async (options, content, url = generateContentUrl.
|
|
|
54
54
|
return content.results;
|
|
55
55
|
};
|
|
56
56
|
async function fetchEntries(options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
return _processContentResult(options, content);
|
|
69
|
-
} catch (error) {
|
|
70
|
-
logger.logger.error("Error fetching data. ", error);
|
|
71
|
-
return null;
|
|
57
|
+
const url = generateContentUrl.generateContentUrl(options);
|
|
58
|
+
const content = await _fetchContent(options);
|
|
59
|
+
if (!checkContentHasResults(content)) {
|
|
60
|
+
logger.logger.error("Error fetching data. ", {
|
|
61
|
+
url,
|
|
62
|
+
content,
|
|
63
|
+
options
|
|
64
|
+
});
|
|
65
|
+
throw content;
|
|
72
66
|
}
|
|
67
|
+
return _processContentResult(options, content);
|
|
73
68
|
}
|
|
74
69
|
exports._processContentResult = _processContentResult;
|
|
75
70
|
exports.fetchEntries = fetchEntries;
|
|
@@ -52,22 +52,17 @@ const _processContentResult = async (options, content, url = generateContentUrl(
|
|
|
52
52
|
return content.results;
|
|
53
53
|
};
|
|
54
54
|
async function fetchEntries(options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
return _processContentResult(options, content);
|
|
67
|
-
} catch (error) {
|
|
68
|
-
logger.error("Error fetching data. ", error);
|
|
69
|
-
return null;
|
|
55
|
+
const url = generateContentUrl(options);
|
|
56
|
+
const content = await _fetchContent(options);
|
|
57
|
+
if (!checkContentHasResults(content)) {
|
|
58
|
+
logger.error("Error fetching data. ", {
|
|
59
|
+
url,
|
|
60
|
+
content,
|
|
61
|
+
options
|
|
62
|
+
});
|
|
63
|
+
throw content;
|
|
70
64
|
}
|
|
65
|
+
return _processContentResult(options, content);
|
|
71
66
|
}
|
|
72
67
|
export {
|
|
73
68
|
_processContentResult,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.17.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 {};
|