@nitpicker/report-google-sheets 0.13.0 → 0.15.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.
@@ -111,6 +111,19 @@ export const createPageList = (reports) => {
111
111
  'og:article:published_time',
112
112
  'jsonld_count',
113
113
  'tags_providers',
114
+ 'main_content_selector',
115
+ 'main_content_word_count',
116
+ 'main_content_body_word_count',
117
+ 'main_content_heading_count',
118
+ 'main_content_image_count',
119
+ 'main_content_table_count',
120
+ 'main_content_button_count',
121
+ 'main_content_iframe_count',
122
+ 'main_content_video_count',
123
+ 'main_content_audio_count',
124
+ 'main_content_canvas_count',
125
+ 'scroll_height_desktop',
126
+ 'scroll_height_mobile',
114
127
  ];
115
128
  for (const report of reports) {
116
129
  if (report.pageData) {
@@ -258,6 +271,23 @@ export const createPageList = (reports) => {
258
271
  // for native Google Sheets list rendering.
259
272
  createCellData({ value: page.jsonldCount }, defaultCellFormat),
260
273
  createCellData({ value: page.tagsProvidersCsv }, defaultCellFormat),
274
+ // beholder MainContentsData / ScrollHeightData denormalised
275
+ // aggregates. `null` (page never fully rendered) or `0` (rendered,
276
+ // no main region / no elements of that kind found) render as
277
+ // blank / 0 respectively — no special-casing needed here.
278
+ createCellData({ value: page.mainContentSelector }, defaultCellFormat),
279
+ createCellData({ value: page.mainContentWordCount }, defaultCellFormat),
280
+ createCellData({ value: page.mainContentBodyWordCount }, defaultCellFormat),
281
+ createCellData({ value: page.mainContentHeadingCount }, defaultCellFormat),
282
+ createCellData({ value: page.mainContentImageCount }, defaultCellFormat),
283
+ createCellData({ value: page.mainContentTableCount }, defaultCellFormat),
284
+ createCellData({ value: page.mainContentButtonCount }, defaultCellFormat),
285
+ createCellData({ value: page.mainContentIframeCount }, defaultCellFormat),
286
+ createCellData({ value: page.mainContentVideoCount }, defaultCellFormat),
287
+ createCellData({ value: page.mainContentAudioCount }, defaultCellFormat),
288
+ createCellData({ value: page.mainContentCanvasCount }, defaultCellFormat),
289
+ createCellData({ value: page.scrollHeightDesktop }, defaultCellFormat),
290
+ createCellData({ value: page.scrollHeightMobile }, defaultCellFormat),
261
291
  ];
262
292
  for (const report of reportPageData) {
263
293
  const tableData = report.pageData.data[page.url.href];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitpicker/report-google-sheets",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Nitpicker reporter that outputs crawl and analysis results to Google Sheets",
5
5
  "author": "D-ZERO",
6
6
  "license": "Apache-2.0",
@@ -31,9 +31,9 @@
31
31
  "@d-zero/google-auth": "0.7.5",
32
32
  "@d-zero/google-sheets": "0.9.4",
33
33
  "@d-zero/shared": "0.22.2",
34
- "@nitpicker/crawler": "0.13.0",
35
- "@nitpicker/query": "0.13.0",
36
- "@nitpicker/types": "0.13.0",
34
+ "@nitpicker/crawler": "0.15.0",
35
+ "@nitpicker/query": "0.15.0",
36
+ "@nitpicker/types": "0.15.0",
37
37
  "ansi-colors": "4.1.3",
38
38
  "debug": "4.4.3",
39
39
  "enquirer": "2.4.1",
@@ -45,5 +45,5 @@
45
45
  "googleapis": "173.0.0",
46
46
  "vitest": "4.1.10"
47
47
  },
48
- "gitHead": "2cd462ea6b183f4462b7caba27b4db04aaba7c70"
48
+ "gitHead": "d1485df6e43375c6a44edfe07a0293fd39d7810d"
49
49
  }