@maizzle/framework 4.4.6 → 4.5.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": "@maizzle/framework",
3
- "version": "4.4.6",
3
+ "version": "4.5.0",
4
4
  "description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
5
5
  "license": "MIT",
6
6
  "main": "src/index.js",
@@ -78,7 +78,7 @@
78
78
  },
79
79
  "devDependencies": {
80
80
  "ava": "^5.2.0",
81
- "c8": "^7.13.0",
81
+ "c8": "^8.0.0",
82
82
  "np": "*",
83
83
  "xo": "0.39.1"
84
84
  },
@@ -233,7 +233,7 @@ module.exports = async (env, spinner, config) => {
233
233
  }
234
234
 
235
235
  if (config.events && typeof config.events.afterBuild === 'function') {
236
- await config.events.afterBuild(files)
236
+ await config.events.afterBuild(files, config)
237
237
  }
238
238
 
239
239
  return {
@@ -14,14 +14,20 @@ module.exports = async (html, config = {}, direct = false) => {
14
14
  table: {
15
15
  cellpadding: 0,
16
16
  cellspacing: 0,
17
- role: 'presentation'
17
+ role: 'none'
18
18
  },
19
19
  img: {
20
20
  alt: ''
21
21
  }
22
22
  }
23
23
 
24
- attributes = direct ? {...attributes, ...config} : (isObject(config.extraAttributes) ? {...attributes, ...config.extraAttributes} : attributes)
24
+ attributes = direct
25
+ ? {...attributes, ...config}
26
+ : (
27
+ isObject(config.extraAttributes)
28
+ ? {...attributes, ...config.extraAttributes}
29
+ : attributes
30
+ )
25
31
 
26
32
  return posthtml([addAttributes({attributes})]).process(html, posthtmlOptions).then(result => result.html)
27
33
  }