gulp-bump
Advanced tools
Comparing version 0.1.8 to 0.1.9
15
index.js
@@ -33,8 +33,6 @@ var gutil = require('gulp-util'); | ||
if (file.isNull()) { | ||
this.push(file); | ||
return cb(); | ||
return cb(null, file); | ||
} | ||
if (file.isStream()) { | ||
this.emit('error', new gutil.PluginError('gulp-bump', 'Streaming not supported')); | ||
return cb(); | ||
return cb(new gutil.PluginError('gulp-bump', 'Streaming not supported')); | ||
} | ||
@@ -45,4 +43,3 @@ | ||
} catch (e) { | ||
this.emit('error', new gutil.PluginError('gulp-bump', 'Problem parsing JSON file ' + file.path)); | ||
return cb(); | ||
return cb(new gutil.PluginError('gulp-bump', 'Problem parsing JSON file ' + file.path)); | ||
} | ||
@@ -63,4 +60,3 @@ | ||
else { | ||
this.emit('error', new gutil.PluginError('gulp-bump', 'Detected invalid semver ' + key + ' in file ' + file.path)); | ||
return cb(); | ||
return cb(new gutil.PluginError('gulp-bump', 'Detected invalid semver ' + key + ' in file ' + file.path)); | ||
} | ||
@@ -71,5 +67,4 @@ | ||
gutil.log('Bumped ' + gutil.colors.magenta(key) + ' to: ' + gutil.colors.cyan(json[key])); | ||
this.push(file); | ||
return cb(); | ||
cb(null, file); | ||
}); | ||
}; |
{ | ||
"name": "gulp-bump", | ||
"description": "Bump npm versions with Gulp (gulpjs.com)", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"homepage": "http://github.com/stevelacy/gulp-bump", | ||
@@ -12,3 +12,3 @@ "repository": "git://github.com/stevelacy/gulp-bump.git", | ||
"semver": "^2.2.1", | ||
"through2": "^0.4.1" | ||
"through2": "^0.5.1" | ||
}, | ||
@@ -15,0 +15,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
24302
516
- Removedobject-keys@0.4.0(transitive)
- Removedthrough2@0.4.2(transitive)
- Removedxtend@2.1.2(transitive)
Updatedthrough2@^0.5.1