Socket
Socket
Sign inDemoInstall

prettier-plugin-svelte

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-svelte - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

4

CHANGELOG.md
# prettier-plugin-svelte changelog
## 2.1.4
* Don't print an empty line at the end of code embedded inside Markdown (further fixes) ([#202](https://github.com/sveltejs/prettier-plugin-svelte/issues/202))
## 2.1.3

@@ -4,0 +8,0 @@

2

package.json
{
"name": "prettier-plugin-svelte",
"version": "2.1.3",
"version": "2.1.4",
"description": "Svelte plugin for prettier",

@@ -5,0 +5,0 @@ "main": "plugin.js",

@@ -317,4 +317,9 @@ 'use strict';

function getParts(doc) {
if (typeof doc === 'object' && (doc.type === 'fill' || doc.type === 'concat')) {
return doc.parts;
if (typeof doc === 'object') {
if (doc.type === 'fill' || doc.type === 'concat') {
return doc.parts;
}
if (doc.type === 'group') {
return getParts(doc.contents);
}
}

@@ -321,0 +326,0 @@ }

Sorry, the diff of this file is not supported yet

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