@sitecore-jss/sitecore-jss-nextjs 21.4.0-canary.2 → 21.4.0-canary.4

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,7 +36,7 @@ query ${usesPersonalize ? 'PersonalizeSitemapQuery' : 'DefaultSitemapQuery'}(
36
36
  $language: String!
37
37
  $includedPaths: [String]
38
38
  $excludedPaths: [String]
39
- $pageSize: Int = 10
39
+ $pageSize: Int = 100
40
40
  $after: String
41
41
  ) {
42
42
  site {
@@ -132,7 +132,7 @@ class BaseGraphQLSitemapService {
132
132
  getTranformedPaths(siteName, languages, formatStaticPath) {
133
133
  return __awaiter(this, void 0, void 0, function* () {
134
134
  const paths = new Array();
135
- yield Promise.all(languages.map((language) => __awaiter(this, void 0, void 0, function* () {
135
+ for (const language of languages) {
136
136
  if (language === '') {
137
137
  throw new RangeError(languageEmptyError);
138
138
  }
@@ -140,7 +140,7 @@ class BaseGraphQLSitemapService {
140
140
  const results = yield this.fetchLanguageSitePaths(language, siteName);
141
141
  const transformedPaths = yield this.transformLanguageSitePaths(results, formatStaticPath, language);
142
142
  paths.push(...transformedPaths);
143
- })));
143
+ }
144
144
  return paths;
145
145
  });
146
146
  }
@@ -32,7 +32,7 @@ query ${usesPersonalize ? 'PersonalizeSitemapQuery' : 'DefaultSitemapQuery'}(
32
32
  $language: String!
33
33
  $includedPaths: [String]
34
34
  $excludedPaths: [String]
35
- $pageSize: Int = 10
35
+ $pageSize: Int = 100
36
36
  $after: String
37
37
  ) {
38
38
  site {
@@ -128,7 +128,7 @@ export class BaseGraphQLSitemapService {
128
128
  getTranformedPaths(siteName, languages, formatStaticPath) {
129
129
  return __awaiter(this, void 0, void 0, function* () {
130
130
  const paths = new Array();
131
- yield Promise.all(languages.map((language) => __awaiter(this, void 0, void 0, function* () {
131
+ for (const language of languages) {
132
132
  if (language === '') {
133
133
  throw new RangeError(languageEmptyError);
134
134
  }
@@ -136,7 +136,7 @@ export class BaseGraphQLSitemapService {
136
136
  const results = yield this.fetchLanguageSitePaths(language, siteName);
137
137
  const transformedPaths = yield this.transformLanguageSitePaths(results, formatStaticPath, language);
138
138
  paths.push(...transformedPaths);
139
- })));
139
+ }
140
140
  return paths;
141
141
  });
142
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-nextjs",
3
- "version": "21.4.0-canary.2",
3
+ "version": "21.4.0-canary.4",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -70,9 +70,9 @@
70
70
  "react-dom": "^18.2.0"
71
71
  },
72
72
  "dependencies": {
73
- "@sitecore-jss/sitecore-jss": "^21.4.0-canary.2",
74
- "@sitecore-jss/sitecore-jss-dev-tools": "^21.4.0-canary.2",
75
- "@sitecore-jss/sitecore-jss-react": "^21.4.0-canary.2",
73
+ "@sitecore-jss/sitecore-jss": "^21.4.0-canary.4",
74
+ "@sitecore-jss/sitecore-jss-dev-tools": "^21.4.0-canary.4",
75
+ "@sitecore-jss/sitecore-jss-react": "^21.4.0-canary.4",
76
76
  "@vercel/kv": "^0.2.1",
77
77
  "node-html-parser": "^6.1.4",
78
78
  "prop-types": "^15.8.1",
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "description": "",
83
83
  "types": "types/index.d.ts",
84
- "gitHead": "30d79c092ae7bee91d3f6a1a480a89c76e5b262c",
84
+ "gitHead": "1497636c70877969c967ab859357ec7151d63654",
85
85
  "files": [
86
86
  "dist",
87
87
  "types",
@@ -30,7 +30,7 @@ interface SiteRouteQueryVariables {
30
30
  /** common variable for all GraphQL queries
31
31
  * it will be used for every type of query to regulate result batch size
32
32
  * Optional. How many result items to fetch in each GraphQL call. This is needed for pagination.
33
- * @default 10
33
+ * @default 100
34
34
  */
35
35
  pageSize?: number;
36
36
  }