Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-erb

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-erb - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

6

CHANGELOG.md

@@ -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 @@

5

lib/formatter.js

@@ -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;

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc