@maizzle/framework 5.4.0-0 → 5.4.1

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": "5.4.0-0",
3
+ "version": "5.4.1",
4
4
  "description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -63,7 +63,7 @@
63
63
  "html-crush": "^6.0.19",
64
64
  "is-url-superb": "^6.1.0",
65
65
  "istextorbinary": "^9.5.0",
66
- "juice": "next",
66
+ "juice": "^11.1.0",
67
67
  "lodash-es": "^4.17.21",
68
68
  "morphdom": "^2.7.4",
69
69
  "ora": "^8.1.0",
@@ -30,7 +30,7 @@ const modulo = (content, attribute) => Number.parseFloat(content) % Number.parse
30
30
 
31
31
  const multiply = (content, attribute) => Number.parseFloat(content) * Number.parseFloat(attribute)
32
32
 
33
- const newlineToBr = content => content.replace(/\n/g, '<br>')
33
+ const newlineToBr = content => content.replace(/\r?\n/g, '<br>')
34
34
 
35
35
  const plus = (content, attribute) => Number.parseFloat(content) + Number.parseFloat(attribute)
36
36
 
@@ -76,7 +76,7 @@ const slice = (content, attribute) => {
76
76
  return content.slice(start, end)
77
77
  }
78
78
 
79
- const stripNewlines = content => content.replace(/\n/g, '')
79
+ const stripNewlines = content => content.replace(/\r?\n/g, '')
80
80
 
81
81
  const trim = content => content.trim()
82
82