git-branch-description
Advanced tools
| var parser = require('../util/parser'); | ||
| module.exports = function({branch, description}) { | ||
| var descConfig = parser.read(); | ||
| descConfig[branch] = description; | ||
| parser.write(descConfig); | ||
| } |
+4
-4
@@ -15,3 +15,3 @@ #!/usr/bin/env node | ||
| var conflict = require('../command/conflict'); | ||
| var add = require('../command/add'); | ||
| var edit = require('../command/edit'); | ||
@@ -54,4 +54,4 @@ var check = require('../util/check'); | ||
| program.command('add') | ||
| .description('add branch description') | ||
| program.command('edit') | ||
| .description('edit branch description') | ||
| .action(function() { | ||
@@ -83,3 +83,3 @@ var currentBranch = exec('git rev-parse --abbrev-ref HEAD').toString().trim(); | ||
| }]).then(function(answers) { | ||
| add(answers); | ||
| edit(answers); | ||
| }) | ||
@@ -86,0 +86,0 @@ }) |
+1
-1
| { | ||
| "name": "git-branch-description", | ||
| "version": "1.1.5", | ||
| "version": "1.1.7", | ||
| "description": "manage branch description via branch-description.properties", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+1
-1
@@ -28,4 +28,4 @@ # git-branch-description | ||
| conflict resolve conflicts in properites file after branch merge | ||
| add add branch description | ||
| edit edit branch description | ||
+3
-2
@@ -35,5 +35,6 @@ var fs = require('fs'); | ||
| if (desc && Object.keys(desc).length) { | ||
| fs.writeFileSync(filePath, properties.stringify(desc), {encoding: 'utf8'}); | ||
| if (!desc) { | ||
| desc = {}; | ||
| } | ||
| fs.writeFileSync(filePath, properties.stringify(desc), {encoding: 'utf8'}); | ||
| } | ||
@@ -40,0 +41,0 @@ exports.writeContents = function(contents) { |
| var parser = require('../util/parser'); | ||
| module.exports = function({branch, description}) { | ||
| var descConfig = parser.read(); | ||
| descConfig[branch] = description; | ||
| parser.write(descConfig); | ||
| } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
266
0.38%10850
-0.06%