Comparing version 2.4.3 to 2.4.4
{ | ||
"name": "bse-admin", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -15,2 +15,3 @@ var util = require('util'), | ||
.setTitle(person) | ||
.setEmail(person) | ||
.processRoute(parent, { | ||
@@ -40,2 +41,15 @@ conditions: { | ||
/** | ||
* Gets email for node | ||
* @param {Object} person - object data for person | ||
* @returns {PersonNode} | ||
*/ | ||
PersonNode.prototype.setEmail = function (person) { | ||
this.email = utility.getLanguages().reduce(function (prev, lang) { | ||
prev[lang] = person[lang].email[0] || ''; | ||
return prev; | ||
}, {}); | ||
return this; | ||
}; | ||
/** | ||
* Sets view for node | ||
@@ -42,0 +56,0 @@ * @returns {PersonNode} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
184741
4464
1