New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-json-editor

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-json-editor - npm Package Compare versions

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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc