git-apply-pr
Advanced tools
Comparing version 1.2.3 to 1.2.4
var util = require('util'); | ||
var os = require('os'); | ||
var assert = require('assert'); | ||
@@ -77,4 +78,15 @@ var Transform = require('stream').Transform; | ||
exports.formatReviewedByMetaData = formatReviewedByMetaData; | ||
function formatReviewedByMetaData(reviewer) { | ||
return util.format('%s <%s>', reviewer.name, reviewer.email); | ||
var formattedComponents = []; | ||
assert(typeof (reviewer.name) === 'string', 'reviewer name must be a string'); | ||
formattedComponents.push(util.format('%s', reviewer.name)); | ||
if (reviewer.email) { | ||
formattedComponents.push(util.format('<%s>', reviewer.email)); | ||
} | ||
return formattedComponents.join(' ').trim(); | ||
} | ||
@@ -81,0 +93,0 @@ |
{ | ||
"name": "git-apply-pr", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Apply GitHub Pull Requests", | ||
@@ -5,0 +5,0 @@ "main": "apply-pr.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16093
11
379
2