js-beautify
Advanced tools
Comparing version 1.15.0 to 1.15.1
@@ -575,5 +575,5 @@ /* AUTO-GENERATED. DO NOT MODIFY. */ | ||
// valid templating languages ['django', 'erb', 'handlebars', 'php', 'smarty', 'angular'] | ||
// For now, 'auto' = all off for javascript, all on for html (and inline javascript). | ||
// For now, 'auto' = all off for javascript, all except angular on for html (and inline javascript/css). | ||
// other values ignored | ||
this.templating = this._get_selection_list('templating', ['auto', 'none', 'django', 'erb', 'handlebars', 'php', 'smarty', 'angular'], ['auto']); | ||
this.templating = this._get_selection_list('templating', ['auto', 'none', 'angular', 'django', 'erb', 'handlebars', 'php', 'smarty'], ['auto']); | ||
} | ||
@@ -580,0 +580,0 @@ |
@@ -202,3 +202,3 @@ #!/usr/bin/env node | ||
// no shorthand for "indent_empty_lines" | ||
// not shorthad for "templating" | ||
// no shorthad for "templating" | ||
}); | ||
@@ -374,3 +374,4 @@ | ||
' --indent-empty-lines Keep indentation on empty lines', | ||
' --templating List of templating languages (auto,none,django,erb,handlebars,php,smarty,angular) ["auto"] auto = none in JavaScript, all in html', | ||
' --templating List of templating languages (auto,none,angular,django,erb,handlebars,php,smarty)', | ||
' ["auto", auto = none in JavaScript, auto = all except angular in html (and inline javascript/css)]', | ||
' --editorconfig Use EditorConfig to set up the options' | ||
@@ -414,3 +415,3 @@ ]; | ||
msg.push(' -E, --extra_liners List of tags (defaults to [head,body,/html] that should have an extra newline'); | ||
msg.push(' --unformatted_content_delimiter Keep text content together between this string [""]'); | ||
msg.push(' --unformatted_content_delimiter Keep text content together between this string [""]'); | ||
break; | ||
@@ -417,0 +418,0 @@ case "css": |
@@ -202,3 +202,3 @@ #!/usr/bin/env node | ||
// no shorthand for "indent_empty_lines" | ||
// not shorthad for "templating" | ||
// no shorthad for "templating" | ||
}); | ||
@@ -374,3 +374,4 @@ | ||
' --indent-empty-lines Keep indentation on empty lines', | ||
' --templating List of templating languages (auto,none,django,erb,handlebars,php,smarty,angular) ["auto"] auto = none in JavaScript, all in html', | ||
' --templating List of templating languages (auto,none,angular,django,erb,handlebars,php,smarty)', | ||
' ["auto", auto = none in JavaScript, auto = all except angular in html (and inline javascript/css)]', | ||
' --editorconfig Use EditorConfig to set up the options' | ||
@@ -414,3 +415,3 @@ ]; | ||
msg.push(' -E, --extra_liners List of tags (defaults to [head,body,/html] that should have an extra newline'); | ||
msg.push(' --unformatted_content_delimiter Keep text content together between this string [""]'); | ||
msg.push(' --unformatted_content_delimiter Keep text content together between this string [""]'); | ||
break; | ||
@@ -417,0 +418,0 @@ case "css": |
@@ -71,5 +71,5 @@ /*jshint node:true */ | ||
// valid templating languages ['django', 'erb', 'handlebars', 'php', 'smarty', 'angular'] | ||
// For now, 'auto' = all off for javascript, all on for html (and inline javascript). | ||
// For now, 'auto' = all off for javascript, all except angular on for html (and inline javascript/css). | ||
// other values ignored | ||
this.templating = this._get_selection_list('templating', ['auto', 'none', 'django', 'erb', 'handlebars', 'php', 'smarty', 'angular'], ['auto']); | ||
this.templating = this._get_selection_list('templating', ['auto', 'none', 'angular', 'django', 'erb', 'handlebars', 'php', 'smarty'], ['auto']); | ||
} | ||
@@ -76,0 +76,0 @@ |
@@ -36,3 +36,3 @@ /*jshint node:true */ | ||
if (this.templating.length === 1 && this.templating[0] === 'auto') { | ||
this.templating = ['django', 'erb', 'handlebars', 'php', 'angular']; | ||
this.templating = ['django', 'erb', 'handlebars', 'php']; | ||
} | ||
@@ -39,0 +39,0 @@ |
{ | ||
"name": "js-beautify", | ||
"version": "1.15.0", | ||
"version": "1.15.1", | ||
"description": "beautifier.io for node", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
@@ -61,9 +61,9 @@ <p align="center"><img src="https://raw.githubusercontent.com/beautifier/js-beautify/7db71fc/web/wordmark-light.svg" height="200px" align="center" alt="JS Beautifier"/></p> | ||
```html | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.0/beautify.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.0/beautify-css.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.0/beautify-html.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify-css.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify-html.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.0/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.0/beautify-css.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.0/beautify-html.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify-css.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify-html.min.js"></script> | ||
``` | ||
@@ -80,3 +80,3 @@ | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.0/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify.min.js"></script> | ||
<script src="script.js"></script> | ||
@@ -439,2 +439,2 @@ </body> | ||
(README.md: js-beautify@1.15.0) | ||
(README.md: js-beautify@1.15.1) |
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
978255
20226