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

Comparing version 0.1.10 to 0.1.11

4

index.js

@@ -55,3 +55,3 @@ var gutil = require('gulp-util');

} catch (e) {
return cb(new gutil.PluginError('gulp-bump', 'Problem parsing JSON file ' + file.path));
return cb(new gutil.PluginError('gulp-bump', 'Problem parsing JSON file', {fileName: file.path, showStack: true}));
}

@@ -72,3 +72,3 @@

else {
return cb(new gutil.PluginError('gulp-bump', 'Detected invalid semver ' + key + ' in file ' + file.path));
return cb(new gutil.PluginError('gulp-bump', 'Detected invalid semver ' + key, {fileName: file.path, showStack: false}));
}

@@ -75,0 +75,0 @@ file.contents = new Buffer(JSON.stringify(content, null, indent || space(json)) + possibleNewline(json));

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

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

"dependencies": {
"gulp-util": "^2.2.14",
"gulp-util": "^3.0.0",
"semver": "^2.2.1",

@@ -13,0 +13,0 @@ "through2": "^0.5.1"

@@ -131,4 +131,4 @@ var fs = require('fs');

should.exist(e);
e.name.should.equal('Error');
e.message.should.containEql('Detected invalid semver version in file ' + file);
e.message.should.equal('Detected invalid semver version');
e.fileName.should.containEql(file);
return done();

@@ -141,4 +141,6 @@ });

it('should fail when not detect a valid semver version and wrong key', function(done) {
var file = 'some-dir/dummyfile.js';
var fakeFile = new gutil.File({
contents: new Buffer('{ "version": "0.0.1" }')
path: file,
contents: new Buffer('{ "version": "0.0.1" }')
});

@@ -150,4 +152,4 @@

should.exist(e);
e.name.should.equal('Error');
e.message.should.containEql('Detected invalid semver appversion in file');
e.message.should.containEql('Detected invalid semver appversion');
e.fileName.should.containEql(file);
return done();

@@ -160,3 +162,5 @@ });

it('should fail when supplied with an invalid JSON', function(done) {
var file = 'some-dir/dummyfile.js';
var fakeFile = new gutil.File({
path: file,
contents: new Buffer('{ invalid json oh no!!!}')

@@ -171,2 +175,3 @@ });

e.message.should.containEql('Problem parsing JSON file');
e.fileName.should.containEql(file);
return done();

@@ -173,0 +178,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc