sweet-data
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "sweet-data", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": "Vadim Kiryukhin <vkiryukhin@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "plugin to pretty-print or minify XML, JSON, CSS and SQL files, fork of pretty-data by Vadim Kiryukhin <vkiryukhin@gmail.com>", |
@@ -7,3 +7,8 @@ function pp(steps = 2, stepChar = ' ') { | ||
this.shift = ['\n']; // array of shifts | ||
this.stepChar = stepChar.length > 0 ? stepChar : ' '; | ||
switch(stepChar){ | ||
case 'SPACE': this.stepChar = ' '; | ||
case 'TAB': this.stepChar = ' '; | ||
default: this.stepChar = stepChar.length > 0 ? stepChar : ' '; | ||
} | ||
@@ -10,0 +15,0 @@ if ( isNaN(parseInt(steps)) ) { |
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
15349
295