gulp-json-editor
Advanced tools
+2
-2
@@ -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 |
+1
-1
| { | ||
| "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", |
+2
-2
@@ -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 @@ }); |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
10849
-0.11%