Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chg

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chg - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

CHANGELOG.md

@@ -9,2 +9,6 @@ CHANGELOG

## 0.1.4 (2014-01-27)
* Added line and version args to grunt cli commands
* Made grunt commands async
## 0.1.3 (2014-01-27)

@@ -11,0 +15,0 @@ * Added grunt as a dependency

@@ -41,2 +41,3 @@ 'use strict';

// These plugins provide necessary tasks.
grunt.loadTasks('./tasks')
grunt.loadNpmTasks('grunt-contrib-nodeunit');

@@ -43,0 +44,0 @@ grunt.loadNpmTasks('grunt-contrib-jshint');

2

package.json
{
"name": "chg",
"version": "0.1.3",
"version": "0.1.4",
"main": "lib/changelog.js",

@@ -5,0 +5,0 @@ "description": "simple changelog/release history manager",

@@ -17,7 +17,10 @@ /*

function callback(err, success){
if (err) {
return grunt.log.error(err);
} else if (success) {
grunt.log.writeln(success);
function getCallback(done) {
return function(err, success){
if (err) {
return grunt.log.error(err);
} else if (success) {
grunt.log.writeln(success);
done();
}
}

@@ -27,16 +30,20 @@ }

grunt.registerTask('chg-init', 'Create the CHANGELOG.md file', function() {
commands.init({}, callback);
var done = this.async();
commands.init({}, getCallback(done));
});
grunt.registerTask('chg-add', 'Add a line to the changelog', function() {
commands.add(null, {}, callback);
grunt.registerTask('chg-add', 'Add a line to the changelog', function(line) {
var done = this.async();
commands.add(line, {}, getCallback(done));
});
grunt.registerTask('chg-release', 'Add a new release and move unrleased changes under it', function() {
commands.release(null, {}, callback);
grunt.registerTask('chg-release', 'Add a new release and move unrleased changes under it', function(version) {
var done = this.async();
commands.release(version, {}, getCallback(done));
});
grunt.registerTask('chg-delete', 'Delete the changelog', function() {
commands.release({}, callback);
var done = this.async();
commands.release({}, getCallback(done));
});
};
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