You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

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 @@ });