Socket
Socket
Sign inDemoInstall

@prettier/plugin-xml

Package Overview
Dependencies
Maintainers
12
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prettier/plugin-xml - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

9

CHANGELOG.md

@@ -9,2 +9,8 @@ # Changelog

## [1.2.0] - 2021-12-23
### Added
- Support formatting `.xsl` files.
## [1.1.0] - 2021-09-26

@@ -165,3 +171,4 @@

[unreleased]: https://github.com/prettier/plugin-xml/compare/v1.1.0...HEAD
[unreleased]: https://github.com/prettier/plugin-xml/compare/v1.2.0...HEAD
[1.2.0]: https://github.com/prettier/plugin-xml/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/prettier/plugin-xml/compare/v1.0.2...v1.1.0

@@ -168,0 +175,0 @@ [1.0.2]: https://github.com/prettier/plugin-xml/compare/v1.0.1...v1.0.2

2

dist/parser.js

@@ -6,3 +6,3 @@ "use strict";

parse(text) {
const { lexErrors, parseErrors, cst } = parser_1.parse(text);
const { lexErrors, parseErrors, cst } = (0, parser_1.parse)(text);
if (lexErrors.length > 0 || parseErrors.length > 0) {

@@ -9,0 +9,0 @@ throw Error("Error parsing XML");

@@ -150,2 +150,4 @@ "use strict";

".xsd",
".xsl",
".xslt",
".xspec",

@@ -152,0 +154,0 @@ ".xul",

{
"name": "@prettier/plugin-xml",
"version": "1.1.0",
"version": "1.2.0",
"description": "prettier plugin for XML",

@@ -28,7 +28,7 @@ "main": "dist/plugin.js",

"@types/jest": "^27.0.0",
"@types/node": "^16.0.0",
"@types/node": "^17.0.4",
"@types/prettier": "^2.3.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.0.0",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.0.0",

@@ -35,0 +35,0 @@ "jest": "^27.0.1",

@@ -47,3 +47,3 @@ <h1 align="center">Prettier for XML</h1>

Below are the options (from [`src/plugin.js`](src/plugin.js)) that `@prettier/plugin-xml` currently supports:
Below are the options (from [`src/plugin.ts`](src/plugin.ts)) that `@prettier/plugin-xml` currently supports:

@@ -55,2 +55,3 @@ | API Option | CLI Option | Default | Description |

| `tabWidth` | `--tab-width` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)). |
| `xmlSelfClosingSpace` | `--xml-self-closing-space` | `true` | Adds a space before self-closing tags. |
| `xmlWhitespaceSensitivity` | `--xml-whitespace-sensitivity` | `"strict"` | Options are `"strict"` and `"ignore"`. You may want `"ignore"`, [see below](#whitespace). |

@@ -57,0 +58,0 @@

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