js-beautify
Advanced tools
Comparing version 1.13.5 to 1.13.7
# Changelog | ||
## v1.13.7 | ||
### Description | ||
### Closed Issues | ||
* Support short PHP tags ([#1840](https://github.com/beautify-web/js-beautify/issues/1840)) | ||
## v1.13.6 | ||
### Description | ||
### Closed Issues | ||
* Fix space-before-conditional: false to work on switch-case statement ([#1881](https://github.com/beautify-web/js-beautify/pull/1881)) | ||
* Optional chaining obj?.[expr] ([#1801](https://github.com/beautify-web/js-beautify/issues/1801)) | ||
## v1.13.5 | ||
@@ -3,0 +22,0 @@ |
@@ -60,3 +60,3 @@ /*jshint node:true */ | ||
handlebars: pattern.starting_with(/{{/).until_after(/}}/), | ||
php: pattern.starting_with(/<\?(?:[=]|php)/).until_after(/\?>/), | ||
php: pattern.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/), | ||
erb: pattern.starting_with(/<%[^%]/).until_after(/[^%]%>/), | ||
@@ -63,0 +63,0 @@ // django coflicts with handlebars a bit. |
@@ -549,3 +549,3 @@ /*jshint node:true */ | ||
if (!in_array(this._flags.last_token.type, [TOKEN.START_EXPR, TOKEN.END_EXPR, TOKEN.WORD, TOKEN.OPERATOR])) { | ||
if (!in_array(this._flags.last_token.type, [TOKEN.START_EXPR, TOKEN.END_EXPR, TOKEN.WORD, TOKEN.OPERATOR, TOKEN.DOT])) { | ||
this._output.space_before_token = true; | ||
@@ -558,3 +558,3 @@ } | ||
next_mode = MODE.ForInitializer; | ||
} else if (in_array(this._flags.last_token.text, ['if', 'while'])) { | ||
} else if (in_array(this._flags.last_token.text, ['if', 'while', 'switch'])) { | ||
this._output.space_before_token = this._options.space_before_conditional; | ||
@@ -561,0 +561,0 @@ next_mode = MODE.Conditional; |
{ | ||
"name": "js-beautify", | ||
"version": "1.13.5", | ||
"version": "1.13.7", | ||
"description": "beautifier.io for node", | ||
@@ -65,4 +65,4 @@ "main": "js/index.js", | ||
"mustache": "^4.0.1", | ||
"requirejs": "^2.3.6", | ||
"serve": "^11.3.2", | ||
"requirejs": "^2.3.6", | ||
"webpack": "^4.44.1", | ||
@@ -69,0 +69,0 @@ "webpack-cli": "^3.3.12" |
@@ -64,13 +64,13 @@ # JS Beautifier | ||
```html | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.5/beautify.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.5/beautify-css.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.5/beautify-html.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.7/beautify.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.7/beautify-css.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.7/beautify-html.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.5/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.5/beautify-css.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.5/beautify-html.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.7/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.7/beautify-css.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.7/beautify-html.min.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.5/js/lib/beautify.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.5/js/lib/beautify-css.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.5/js/lib/beautify-html.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.7/js/lib/beautify.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.7/js/lib/beautify-css.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.7/js/lib/beautify-html.js"></script> | ||
``` | ||
@@ -408,2 +408,2 @@ | ||
(README.md: js-beautify@1.13.5) | ||
(README.md: js-beautify@1.13.7) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1021201