js-beautify
Advanced tools
Comparing version 1.14.5 to 1.14.6
@@ -66,2 +66,15 @@ #!/usr/bin/env node | ||
}; | ||
nopt.typeDefs.glob = { | ||
type: "glob", | ||
validate: function(data, key, val) { | ||
if (typeof val === 'string' && glob.hasMagic(val)) { | ||
// Preserve value if it contains glob magic | ||
data[key] = val; | ||
return true; | ||
} else { | ||
// Otherwise validate it as regular path | ||
return nopt.typeDefs.path.validate(data, key, val); | ||
} | ||
} | ||
}; | ||
var path = require('path'), | ||
@@ -116,3 +129,3 @@ editorconfig = require('editorconfig'), | ||
"help": Boolean, | ||
"files": [path, Array], | ||
"files": ["glob", Array], | ||
"outfile": path, | ||
@@ -119,0 +132,0 @@ "replace": Boolean, |
@@ -66,2 +66,15 @@ #!/usr/bin/env node | ||
}; | ||
nopt.typeDefs.glob = { | ||
type: "glob", | ||
validate: function(data, key, val) { | ||
if (typeof val === 'string' && glob.hasMagic(val)) { | ||
// Preserve value if it contains glob magic | ||
data[key] = val; | ||
return true; | ||
} else { | ||
// Otherwise validate it as regular path | ||
return nopt.typeDefs.path.validate(data, key, val); | ||
} | ||
} | ||
}; | ||
var path = require('path'), | ||
@@ -116,3 +129,3 @@ editorconfig = require('editorconfig'), | ||
"help": Boolean, | ||
"files": [path, Array], | ||
"files": ["glob", Array], | ||
"outfile": path, | ||
@@ -119,0 +132,0 @@ "replace": Boolean, |
{ | ||
"name": "js-beautify", | ||
"version": "1.14.5", | ||
"version": "1.14.6", | ||
"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/beautify-web/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.14.5/beautify.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.5/beautify-css.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.5/beautify-html.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify-css.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify-html.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.5/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.5/beautify-css.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.5/beautify-html.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify-css.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.6/beautify-html.min.js"></script> | ||
``` | ||
@@ -401,2 +401,2 @@ | ||
(README.md: js-beautify@1.14.5) | ||
(README.md: js-beautify@1.14.6) |
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
962916
19869