create-sitecore-jss 22.4.0-canary.10 → 22.4.0-canary.12
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.
|
@@ -37,7 +37,7 @@ const sitemapApi = async (
|
|
|
37
37
|
const fetcher = new NativeDataFetcher();
|
|
38
38
|
const response = await fetcher.fetch(sitemapUrl);
|
|
39
39
|
|
|
40
|
-
const reader = response.
|
|
40
|
+
const reader = (response?.data as ReadableStream<Uint8Array>).getReader();
|
|
41
41
|
if (reader) {
|
|
42
42
|
while (true) {
|
|
43
43
|
const { done, value } = await reader.read();
|
|
@@ -22,7 +22,7 @@ class PreviewModePlugin implements Plugin {
|
|
|
22
22
|
if (!context.preview) return props;
|
|
23
23
|
|
|
24
24
|
if (isComponentLibraryPreviewData(context.previewData)) {
|
|
25
|
-
const { itemId, componentUid, site, language, renderingId, dataSourceId, version
|
|
25
|
+
const { itemId, componentUid, site, language, renderingId, dataSourceId, version } =
|
|
26
26
|
context.previewData;
|
|
27
27
|
|
|
28
28
|
const componentService = new RestComponentLayoutService({
|
|
@@ -39,7 +39,6 @@ class PreviewModePlugin implements Plugin {
|
|
|
39
39
|
componentUid,
|
|
40
40
|
renderingId,
|
|
41
41
|
dataSourceId,
|
|
42
|
-
variant,
|
|
43
42
|
version,
|
|
44
43
|
});
|
|
45
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sitecore-jss",
|
|
3
|
-
"version": "22.4.0-canary.
|
|
3
|
+
"version": "22.4.0-canary.12",
|
|
4
4
|
"description": "Sitecore JSS initializer",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"ts-node": "^10.9.1",
|
|
66
66
|
"typescript": "~5.6.3"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "9b7de9b9aa889adf1ccd445542ed903e3d5df54e"
|
|
69
69
|
}
|