@griddo/cx 1.75.38 → 1.75.40

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/gatsby-node.js CHANGED
@@ -210,6 +210,7 @@ exports.createPages = async ({ actions }) => {
210
210
  {
211
211
  rootPage: page,
212
212
  pages: utils.getList(distributorTemplate),
213
+ totalQueriedItems: distributorTemplate?.queriedItems,
213
214
  isRoot: false,
214
215
  defaultLang,
215
216
  distributorTemplate,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.75.38",
4
+ "version": "1.75.40",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -65,7 +65,7 @@
65
65
  "react-helmet": "^6.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@griddo/eslint-config-back": "^1.75.38",
68
+ "@griddo/eslint-config-back": "^1.75.40",
69
69
  "eslint": "^7.5.0",
70
70
  "eslint-plugin-node": "^11.1.0",
71
71
  "eslint-plugin-react": "7.14.3",
@@ -97,5 +97,5 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "gitHead": "bfcb7e9af57ed37884e7dd5e77e48fd89cc82ab8"
100
+ "gitHead": "b6e380b0d181b2203fb246bd1806e95cd341c011"
101
101
  }
@@ -124,11 +124,18 @@ async function renderSinglePage(page, additionalInfo, createPage) {
124
124
  }
125
125
 
126
126
  async function renderListPages(
127
- { rootPage, pages, isRoot, defaultLang, distributorTemplate },
127
+ {
128
+ rootPage,
129
+ pages,
130
+ isRoot,
131
+ defaultLang,
132
+ distributorTemplate,
133
+ totalQueriedItems,
134
+ },
128
135
  additionalInfo,
129
136
  createPage
130
137
  ) {
131
- await pages.forEach(async(dataInPage, idx) => {
138
+ await pages.forEach(async (dataInPage, idx) => {
132
139
  const isFirstPage = idx === 0;
133
140
  const pageNumber = idx + 1;
134
141
  const { domainUrl, compose } = rootPage.fullPath;
@@ -151,6 +158,7 @@ async function renderListPages(
151
158
  baseLink: `${domainUrl}${compose}`,
152
159
  queriedItems: dataInPage,
153
160
  queriedData: dataInPage,
161
+ totalQueriedItems: totalQueriedItems?.length,
154
162
  },
155
163
  isRoot,
156
164
  defaultLang,