gatsby-core-theme 44.13.3 → 44.13.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [44.13.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.13.3...v44.13.4) (2026-02-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add padStart zero on dates and day strings ([649bf28](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/649bf28df54b6e4b81e3bbeb47f727695ff37b15))
7
+ * fix error when opertor relation no exist ([0f59843](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0f5984350f681b807d27dbac59db6ea9cbad26f6))
8
+
1
9
  ## [44.13.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.13.2...v44.13.3) (2026-02-05)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.13.3",
3
+ "version": "44.13.4",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -41,8 +41,8 @@ export function generateTrackerLink(operator, trackerType, provider = false) {
41
41
 
42
42
  export function generatePlaceholderString(string = "", translations, data) {
43
43
  const date = new Date();
44
- const day = date.getDate();
45
- const month = date.getMonth() + 1;
44
+ const day = String(date.getDate()).padStart(2, "0");
45
+ const month = String(date.getMonth() + 1).padStart(2, "0");
46
46
  const year = date.getFullYear();
47
47
  const regex = generatorsConstant.generatorsPlaceholderRegex;
48
48
 
@@ -392,17 +392,22 @@ export function processTopListModule(
392
392
  }
393
393
 
394
394
  listItem.items = listItem.items
395
- ? listItem.items.map((item) => {
396
- const operatorRelation = cloneDeep(
397
- Object.values(relations.operator).find(
398
- (operator) =>
399
- operator.operator_id === item.operator_id &&
400
- operator.market === listItem.market &&
401
- type === operator.type
402
- )
403
- );
395
+ ? listItem.items
396
+ .map((item) => {
397
+ const operatorRelation = cloneDeep(
398
+ Object.values(relations.operator).find(
399
+ (operator) =>
400
+ operator.operator_id === item.operator_id &&
401
+ operator.market === listItem.market &&
402
+ type === operator.type
403
+ )
404
+ );
405
+
406
+ // If we can't find a matching operator relation, skip this toplist item
407
+ if (!operatorRelation) {
408
+ return null;
409
+ }
404
410
 
405
- if (operatorRelation) {
406
411
  operatorRelation.ribbons =
407
412
  item.ribbon_ids && item.ribbon_ids.length === 0
408
413
  ? operatorRelation.ribbons
@@ -412,58 +417,58 @@ export function processTopListModule(
412
417
  item.selling_points && item.selling_points.length === 0
413
418
  ? operatorRelation.selling_points
414
419
  : item.selling_points;
415
- }
416
-
417
- operatorRelation.updated_at = item.updated_at;
418
- operatorRelation.toplist_bonus = item.bonus_name;
419
- operatorRelation.toplist_item_tracker_name = item.tracker_name;
420
-
421
- const operatorPage =
422
- pages && pages.operator && operatorRelation
423
- ? pages.operator.filter(
424
- (page) =>
425
- page.relation &&
426
- page.relation.operator_id ===
427
- operatorRelation.operator_id &&
428
- page.relation.type === operatorRelation.type
429
- )
430
- : [];
431
-
432
- const reviewLink =
433
- process.env.DMS_REVIEW_LINKS_ENABLED === "true"
434
- ? stripDomainAndLeadingSlash(operatorRelation?.review_link)
435
- : operatorPage[0]?.path;
436
-
437
- const authorTitle =
438
- operatorPage[0] && operatorPage[0]?.author?.author_title;
439
420
 
440
- const clone = sanitizeOperatorData(
441
- cloneDeep(operatorRelation),
442
- operatorPage,
443
- data,
444
- toplists && toplists[listItem.id].label
445
- );
446
-
447
- const socialAuthorLinks = [
448
- "facebook_profile",
449
- "twitter_profile",
450
- "instagram_profile",
451
- "linkedin_profile",
452
- ];
453
- if (filterEnabled) {
454
- buildToplistFilter(filters, clone);
455
- }
456
- return Object.assign(clone, {
457
- review_link: reviewLink,
458
- author_title: authorTitle,
459
- author_same_as:
460
- operatorPage[0] &&
461
- operatorPage[0]?.author &&
462
- socialAuthorLinks
463
- .map((socialLink) => operatorPage[0]?.author?.[socialLink])
464
- .filter((socialLink) => socialLink),
465
- });
466
- })
421
+ operatorRelation.updated_at = item.updated_at;
422
+ operatorRelation.toplist_bonus = item.bonus_name;
423
+ operatorRelation.toplist_item_tracker_name = item.tracker_name;
424
+
425
+ const operatorPage =
426
+ pages && pages.operator && operatorRelation
427
+ ? pages.operator.filter(
428
+ (page) =>
429
+ page.relation &&
430
+ page.relation.operator_id ===
431
+ operatorRelation.operator_id &&
432
+ page.relation.type === operatorRelation.type
433
+ )
434
+ : [];
435
+
436
+ const reviewLink =
437
+ process.env.DMS_REVIEW_LINKS_ENABLED === "true"
438
+ ? stripDomainAndLeadingSlash(operatorRelation?.review_link)
439
+ : operatorPage[0]?.path;
440
+
441
+ const authorTitle =
442
+ operatorPage[0] && operatorPage[0]?.author?.author_title;
443
+
444
+ const clone = sanitizeOperatorData(
445
+ cloneDeep(operatorRelation),
446
+ operatorPage,
447
+ data,
448
+ toplists && toplists[listItem.id].label
449
+ );
450
+
451
+ const socialAuthorLinks = [
452
+ "facebook_profile",
453
+ "twitter_profile",
454
+ "instagram_profile",
455
+ "linkedin_profile",
456
+ ];
457
+ if (filterEnabled) {
458
+ buildToplistFilter(filters, clone);
459
+ }
460
+ return Object.assign(clone, {
461
+ review_link: reviewLink,
462
+ author_title: authorTitle,
463
+ author_same_as:
464
+ operatorPage[0] &&
465
+ operatorPage[0]?.author &&
466
+ socialAuthorLinks
467
+ .map((socialLink) => operatorPage[0]?.author?.[socialLink])
468
+ .filter((socialLink) => socialLink),
469
+ });
470
+ })
471
+ .filter((item) => item)
467
472
  : [];
468
473
  const latestItems = listItem.items
469
474
  .map((toplist) => ({