astro-tractstack 2.0.25 → 2.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-tractstack",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "Astro integration for TractStack - redeeming the web from boring experiences",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -518,11 +518,9 @@ export function extractClassesFromNodes(dirtyNodes: BaseNode[]): string[] {
518
518
  }
519
519
 
520
520
  // Extract from gridCss arrays
521
- if ('gridCss' in node && Array.isArray(node.gridCss)) {
522
- node.gridCss.forEach((classString: string) => {
523
- classString.split(' ').forEach((className: string) => {
524
- if (className.trim()) uniqueClasses.add(className.trim());
525
- });
521
+ if ('gridCss' in node && typeof node.gridCss === 'string') {
522
+ node.gridCss.split(' ').forEach((className: string) => {
523
+ if (className.trim()) uniqueClasses.add(className.trim());
526
524
  });
527
525
  }
528
526
  });