js-beautify
Advanced tools
Comparing version 1.13.13 to 1.14.0
@@ -1459,3 +1459,3 @@ /* AUTO-GENERATED. DO NOT MODIFY. */ | ||
this.eatWhitespace(true); | ||
if (this._options.selector_separator_newline && !insidePropertyValue && parenLevel === 0 && !insideAtImport) { | ||
if (this._options.selector_separator_newline && !insidePropertyValue && parenLevel === 0 && !insideAtImport && !insideAtExtend) { | ||
this._output.add_new_line(); | ||
@@ -1462,0 +1462,0 @@ } else { |
@@ -43,3 +43,2 @@ #!/usr/bin/env node | ||
beautify = require('../index'), | ||
mkdirp = require('mkdirp'), | ||
nopt = require('nopt'), | ||
@@ -489,3 +488,3 @@ glob = require('glob'); | ||
if (outfile) { | ||
mkdirp.sync(path.dirname(outfile)); | ||
fs.mkdirSync(path.dirname(outfile), { recursive: true }); | ||
@@ -492,0 +491,0 @@ if (isFileDifferent(outfile, pretty)) { |
@@ -43,3 +43,2 @@ #!/usr/bin/env node | ||
beautify = require('../index'), | ||
mkdirp = require('mkdirp'), | ||
nopt = require('nopt'), | ||
@@ -489,3 +488,3 @@ glob = require('glob'); | ||
if (outfile) { | ||
mkdirp.sync(path.dirname(outfile)); | ||
fs.mkdirSync(path.dirname(outfile), { recursive: true }); | ||
@@ -492,0 +491,0 @@ if (isFileDifferent(outfile, pretty)) { |
@@ -436,3 +436,3 @@ /*jshint node:true */ | ||
this.eatWhitespace(true); | ||
if (this._options.selector_separator_newline && !insidePropertyValue && parenLevel === 0 && !insideAtImport) { | ||
if (this._options.selector_separator_newline && !insidePropertyValue && parenLevel === 0 && !insideAtImport && !insideAtExtend) { | ||
this._output.add_new_line(); | ||
@@ -439,0 +439,0 @@ } else { |
@@ -69,3 +69,3 @@ /*jshint node:true */ | ||
var number_pattern = /0[xX][0123456789abcdefABCDEF]*|0[oO][01234567]*|0[bB][01]*|\d+n|(?:\.\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?/; | ||
var number_pattern = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/; | ||
@@ -72,0 +72,0 @@ var digit = /[0-9]/; |
{ | ||
"name": "js-beautify", | ||
"version": "1.13.13", | ||
"version": "1.14.0", | ||
"description": "beautifier.io for node", | ||
@@ -55,3 +55,2 @@ "main": "js/index.js", | ||
"glob": "^7.1.3", | ||
"mkdirp": "^1.0.4", | ||
"nopt": "^5.0.0" | ||
@@ -58,0 +57,0 @@ }, |
@@ -64,13 +64,13 @@ # JS Beautifier | ||
```html | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.13/beautify.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.13/beautify-css.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.13/beautify-html.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.0/beautify.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.0/beautify-css.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.0/beautify-html.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.13/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.13/beautify-css.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.13.13/beautify-html.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.0/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.0/beautify-css.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.0/beautify-html.min.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.13/js/lib/beautify.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.13/js/lib/beautify-css.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.13.13/js/lib/beautify-html.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.14.0/js/lib/beautify.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.14.0/js/lib/beautify-css.js"></script> | ||
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.14.0/js/lib/beautify-html.js"></script> | ||
``` | ||
@@ -408,2 +408,2 @@ | ||
(README.md: js-beautify@1.13.13) | ||
(README.md: js-beautify@1.14.0) |
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
4
949993
46
19629
- Removedmkdirp@^1.0.4
- Removedmkdirp@1.0.4(transitive)