Skip to content

Commit 40ec43e

Browse files
committed
chore: upgrade juice to v11.1.1
1 parent cfcb695 commit 40ec43e

File tree

4 files changed

+33
-64
lines changed

4 files changed

+33
-64
lines changed

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"es-toolkit": "^1.45.1",
4747
"html-to-image": "^1.11.13",
4848
"jszip": "^3.10.1",
49-
"juice": "11.0.3",
49+
"juice": "^11.1.1",
5050
"lucide-vue-next": "^1.0.0",
5151
"marked": "^18.0.0",
5252
"pinia": "^3.0.4",

patches/juice@11.1.1.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/lib/inline.js b/lib/inline.js
2+
index 083b8c58eb90184d0190cd0e3361a39638e4981b..bdec79c1e0a7f1f64b22ed5e097dc4bae12cb6ec 100644
3+
--- a/lib/inline.js
4+
+++ b/lib/inline.js
5+
@@ -117,7 +117,10 @@ module.exports = function makeJuiceClient(juiceClient) {
6+
? decode(styleAttributeValue)
7+
: styleAttributeValue;
8+
var cssText = '* { ' + cssStyleAttributeValue + ' } ';
9+
- addProps(utils.parseCSS(cssText)[0][1], new utils.Selector('<style>', true));
10+
+ var parsedInlineStyle = utils.parseCSS(cssText);
11+
+ if (parsedInlineStyle[0]) {
12+
+ addProps(parsedInlineStyle[0][1], new utils.Selector('<style>', true));
13+
+ }
14+
}
15+
16+
// store reference to an element we need to compile style="" attr for

pnpm-lock.yaml

Lines changed: 15 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ overrides:
2020
glob@<8: ^10.5.0
2121
glob@^10: ^10.5.0
2222
inflight: npm:@hishprorg/voluptates-laborum@^2.0.0
23-
juice: 11.0.3
2423
lodash-es: ^4.17.23
2524
markdown-it: ^14.1.1
2625
minimatch: ^10.2.4
@@ -40,3 +39,4 @@ overrides:
4039

4140
patchedDependencies:
4241
'@codemirror/view@6.41.0': patches/@codemirror__view@6.41.0.patch
42+
juice@11.1.1: patches/juice@11.1.1.patch

0 commit comments

Comments
 (0)