@travetto/email-inky 6.0.0 → 7.0.0-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/email-inky",
3
- "version": "6.0.0",
3
+ "version": "7.0.0-rc.0",
4
4
  "description": "Email Inky templating module",
5
5
  "keywords": [
6
6
  "email",
@@ -27,14 +27,14 @@
27
27
  "directory": "module/email-inky"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/config": "^6.0.0",
31
- "@travetto/di": "^6.0.0",
32
- "@travetto/email": "^6.0.0",
33
- "@travetto/runtime": "^6.0.0",
30
+ "@travetto/config": "^7.0.0-rc.0",
31
+ "@travetto/di": "^7.0.0-rc.0",
32
+ "@travetto/email": "^7.0.0-rc.0",
33
+ "@travetto/runtime": "^7.0.0-rc.0",
34
34
  "foundation-emails": "^2.4.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@travetto/email-compiler": "^6.0.0"
37
+ "@travetto/email-compiler": "^7.0.0-rc.0"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/cli": {
@@ -84,7 +84,7 @@ export const Html: RenderProvider<RenderContext> = {
84
84
 
85
85
  let expander = '';
86
86
 
87
- const parent = stack[stack.length - 1];
87
+ const parent = stack.at(-1)!;
88
88
  const sibs = getKids(parent).filter(x => isOfType(x, 'Column'));
89
89
  const colCount = sibs.length || 1;
90
90
 
@@ -94,7 +94,7 @@ export const Html: RenderProvider<RenderContext> = {
94
94
  elParent.columnVisited = true;
95
95
  if (sibs.length) {
96
96
  sibs[0].props.className = classStr(sibs[0].props.className ?? '', 'first');
97
- sibs[sibs.length - 1].props.className = classStr(sibs[sibs.length - 1].props.className ?? '', 'last');
97
+ sibs.at(-1)!.props.className = classStr(sibs.at(-1)!.props.className ?? '', 'last');
98
98
  }
99
99
  }
100
100
  } else {