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

@prettier/plugin-pug

Package Overview
Dependencies
Maintainers
12
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prettier/plugin-pug - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

10

CHANGELOG.md
# Next
[diff](https://github.com/prettier/plugin-pug/compare/1.1.2...master)
[diff](https://github.com/prettier/plugin-pug/compare/1.1.3...master)
# 1.1.3
[diff](https://github.com/prettier/plugin-pug/compare/1.1.2...1.1.3)
- Fix valid backslash escaping ([#59])
[#59]: https://github.com/prettier/plugin-pug/issues/59
# 1.1.2

@@ -6,0 +14,0 @@

10

package.json
{
"name": "@prettier/plugin-pug",
"version": "1.1.2",
"version": "1.1.3",
"description": "Prettier Pug Plugin",

@@ -35,6 +35,6 @@ "main": "dist/index.js",

"@types/jest": "~24.0.25",
"@types/node": "~13.1.4",
"@types/node": "~13.1.6",
"@types/prettier": "~1.19.0",
"@typescript-eslint/eslint-plugin": "~2.14.0",
"@typescript-eslint/parser": "~2.14.0",
"@typescript-eslint/eslint-plugin": "~2.15.0",
"@typescript-eslint/parser": "~2.15.0",
"eslint": "~6.8.0",

@@ -46,3 +46,3 @@ "eslint-config-prettier": "~6.9.0",

"prettier": "1.19.1",
"ts-jest": "~24.2.0",
"ts-jest": "~24.3.0",
"typescript": "~3.7.4"

@@ -49,0 +49,0 @@ },

@@ -169,2 +169,5 @@ <p align="center">

As mentioned in [pugjs.org Attribute Interpolation](https://pugjs.org/language/attributes.html#attribute-interpolation) (2.),
you should prefere ES2015 template strings to simplify your attributes.
[Issue 54](https://github.com/prettier/plugin-pug/issues/54)

@@ -171,0 +174,0 @@

@@ -480,6 +480,6 @@ import { Doc, FastPath, format, Options, Parser, ParserOptions, Plugin, util } from 'prettier';

val = formatText(val, singleQuote);
val = val.replace(/#(\{|\[)/g, '\\#$1');
}
val = val.replace(/^#(\{|\[)/g, '\\#$1');
if (

@@ -486,0 +486,0 @@ ['tag', 'id', 'interpolation', 'call', '&attributes', 'filter'].includes(

Sorry, the diff of this file is too big to display

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