Huge News!Announcing our $40M Series B led by Abstract Ventures.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.0.1 to 2.0.2

4

index.js

@@ -27,4 +27,4 @@ /* jshint node: true */

else if (typeof editor === 'object') editByXXX = editByObject;
else if (typeof editor === 'undefined') throw new PluginError('gulp-json-editor', 'missing "editor function" option');
else throw new PluginError('gulp-json-editor', '"editor function" option must be function');
else if (typeof editor === 'undefined') throw new PluginError('gulp-json-editor', 'missing "editor" option');
else throw new PluginError('gulp-json-editor', '"editor" option must be a function or object');

@@ -31,0 +31,0 @@ // create through object

{
"name": "gulp-json-editor",
"version": "2.0.1",
"version": "2.0.2",
"description": "A gulp plugin to edit JSON object",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -11,3 +11,3 @@ /* jshint node: true */

it('should raise error when missing option', function(done) {
should(function(){jedit();}).throw('missing "editor function" option');
should(function(){jedit();}).throw('missing "editor" option');
done();

@@ -18,3 +18,3 @@ });

it('should raise error when invalid type of option', function(done) {
should(function(){jedit(1);}).throw('"editor function" option must be function');
should(function(){jedit(1);}).throw('"editor" option must be a function or object');
done();

@@ -21,0 +21,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