prettier-plugin-erb
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -5,2 +5,8 @@ # Changelog | ||
## v0.4.0 - 24 June 2021 | ||
### Bug fixes | ||
- Fix `[object Object]` | ||
## v0.3.0 - 3 June 2021 | ||
@@ -7,0 +13,0 @@ |
@@ -77,3 +77,6 @@ const { concat, indent, hardline, group, line } = require('prettier').doc.builders; | ||
// maybe it will be achievable with 2.3 prettier compability | ||
if (token.inElement && typeof token.content === 'object') { | ||
if ( | ||
(token.inElement || token.inElementWithoutNeedToEncode || token.inScript) && | ||
typeof token.content === 'object' | ||
) { | ||
const { formatted } = printDocToString(token.content, { ...options }); | ||
@@ -80,0 +83,0 @@ token.content = formatted; |
{ | ||
"name": "prettier-plugin-erb", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Prettier plugin for .html.erb files", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45380
520