Socket
Socket
Sign inDemoInstall

gulp-bump

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-bump - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

9

index.js

@@ -33,3 +33,10 @@ 'use strict';

}
file.contents = new Buffer(res);
file.contents = new Buffer(res.str);
if (!opts.quiet) {
log('Bumped', log.colors.cyan(res.prev),
'to', log.colors.magenta(res.new),
'with type:', log.colors.cyan(res.type));
}
file.bumpData = res;
cb(null, file);

@@ -36,0 +43,0 @@ });

6

package.json
{
"name": "gulp-bump",
"description": "Bump npm versions with Gulp (gulpjs.com)",
"version": "2.0.1",
"version": "2.1.0",
"homepage": "http://github.com/stevelacy/gulp-bump",

@@ -10,7 +10,7 @@ "repository": "git://github.com/stevelacy/gulp-bump.git",

"dependencies": {
"bump-regex": "^2.0.0",
"plugin-error": "^0.1.2",
"plugin-log": "^0.1.0",
"semver": "^5.0.3",
"through2": "^0.5.1",
"bump-regex": "^1.0.0"
"through2": "^0.5.1"
},

@@ -17,0 +17,0 @@ "devDependencies": {

@@ -137,2 +137,23 @@ 'use strict';

});
it('should return bumpData', function(done) {
var fakeFile = new File({
contents: new Buffer('{ "version": "0.1.0-zeta.1"}'),
path: 'test/fixtures/test.json'
});
var bumpS = bump({type: 'minor'});
bumpS.once('data', function(newFile) {
should.exist(newFile);
should.exist(newFile.contents);
should.exist(newFile.bumpData);
should.exist(newFile.bumpData.new);
should.exist(newFile.bumpData.prev);
should.exist(newFile.bumpData.type);
return done();
});
bumpS.write(fakeFile);
bumpS.end();
});
});
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