gulp-json-editor
Advanced tools
Comparing version 2.1.0 to 2.1.1
12
index.js
@@ -8,3 +8,3 @@ /* jshint node: true */ | ||
module.exports = function (editor, jsbeautifyOption) { | ||
module.exports = function (editor, jsbeautifyOptions) { | ||
@@ -33,3 +33,3 @@ /* | ||
*/ | ||
jsbeautifyOption = jsbeautifyOption || {}; | ||
jsbeautifyOptions = jsbeautifyOptions || {}; | ||
@@ -40,5 +40,5 @@ // always beautify output | ||
// set default value for backword compatibility | ||
jsbeautifyOption.indent_size = jsbeautifyOption.indent_size || 2; | ||
jsbeautifyOption.indent_char = jsbeautifyOption.indent_char || ' '; | ||
jsbeautifyOption.brace_style = jsbeautifyOption.brace_style || 'collapse'; | ||
jsbeautifyOptions.indent_size = jsbeautifyOptions.indent_size || 2; | ||
jsbeautifyOptions.indent_char = jsbeautifyOptions.indent_char || ' '; | ||
jsbeautifyOptions.brace_style = jsbeautifyOptions.brace_style || 'collapse'; | ||
@@ -68,3 +68,3 @@ /* | ||
if (beautify) { | ||
json = jsbeautify(json, jsbeautifyOption); | ||
json = jsbeautify(json, jsbeautifyOptions); | ||
} | ||
@@ -71,0 +71,0 @@ |
{ | ||
"name": "gulp-json-editor", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A gulp plugin to edit JSON object", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
"through2": "~0.5.0", | ||
"js-beautify": "~1.4.2", | ||
"js-beautify": "~1.5.4", | ||
"deepmerge": "~0.2.7" | ||
@@ -32,0 +32,0 @@ }, |
@@ -47,3 +47,3 @@ # gulp-json-editor | ||
## API | ||
### jeditor(editorObject, [jsBeautifyOption]) | ||
### jeditor(editorObject, [jsBeautifyOptions]) | ||
#### editorObject | ||
@@ -54,3 +54,3 @@ Type: `JSON object` | ||
#### jsBeautifyOption | ||
#### jsBeautifyOptions | ||
Type: `object` | ||
@@ -60,3 +60,3 @@ | ||
### jeditor(editorFunction, [jsBeautifyOption]) | ||
### jeditor(editorFunction, [jsBeautifyOptions]) | ||
#### editorFunction | ||
@@ -67,3 +67,3 @@ Type: `function` | ||
#### jsBeautifyOption | ||
#### jsBeautifyOptions | ||
Type: `object` | ||
@@ -70,0 +70,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14373
0
+ Addedjs-beautify@1.5.10(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednopt@3.0.6(transitive)
- Removedjs-beautify@1.4.2(transitive)
- Removedmkdirp@0.3.5(transitive)
- Removednopt@2.1.2(transitive)
Updatedjs-beautify@~1.5.4