create-sitecore-jss 22.5.0-canary.4 → 22.6.0-canary.1

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.
@@ -36,24 +36,12 @@ const sitemapApi = async (
36
36
 
37
37
  try {
38
38
  const fetcher = new NativeDataFetcher();
39
- const response = await fetcher.fetch<ReadableStream<Uint8Array>>(sitemapUrl);
39
+ const xmlResponse = await fetcher.fetch<string>(sitemapUrl);
40
40
 
41
- const reader = response.data.getReader();
42
- if (reader) {
43
- while (true) {
44
- const { done, value } = await reader.read();
45
-
46
- if (done) break;
47
- if (value) res.write(value);
48
- }
49
- }
50
-
51
- res.end();
41
+ return res.send(xmlResponse.data);
52
42
  } catch (error) {
53
43
  return res.redirect('/404');
54
44
  }
55
-
56
- return;
57
45
  }
58
46
 
59
47
  // index /sitemap.xml that includes links to all sitemaps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sitecore-jss",
3
- "version": "22.5.0-canary.4",
3
+ "version": "22.6.0-canary.1",
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": "9b0b19aaeb6c756fee9c1a603cb875120d285d3a"
68
+ "gitHead": "582aae74ef08bf73f000eebcd25f87067893810a"
69
69
  }