@outreach/extensibility-sdk
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -11,3 +11,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
* @type {string} | ||
* @memberof Manifest | ||
* @memberof ManifestApp | ||
*/ | ||
@@ -25,4 +25,4 @@ this.identifier = ''; | ||
* | ||
* @type {AddonCategory[]} | ||
* @memberof Manifest | ||
* @type {Category[]} | ||
* @memberof ManifestApp | ||
*/ | ||
@@ -37,3 +37,3 @@ this.categories = []; | ||
* @type {ManifestMedia} | ||
* @memberof Manifest | ||
* @memberof ManifestApp | ||
*/ | ||
@@ -40,0 +40,0 @@ this.medias = []; |
@@ -9,3 +9,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
* | ||
* @param {Manifest} application | ||
* @param {Application} application | ||
* @returns {string[]} list of validation issues (if any) | ||
@@ -49,2 +49,6 @@ */ | ||
else { | ||
if (!utils_1.utils.emailValidation(application.app.author.email)) { | ||
issues.push('Author e-mail is invalid e-mail. Value: ' + | ||
application.app.author.email); | ||
} | ||
if (!utils_1.utils.urlValidation(application.app.author.websiteUrl)) { | ||
@@ -115,2 +119,18 @@ issues.push('Author website url is invalid url. Value: ' + | ||
} | ||
if (!application.app.headline) { | ||
issues.push('Headline section is missing.'); | ||
} | ||
else { | ||
if (!application.app.headline.en) { | ||
issues.push('Headline section is missing English entry.'); | ||
} | ||
} | ||
if (!application.app.icon) { | ||
issues.push('Application icon is missing.'); | ||
} | ||
else { | ||
if (!utils_1.utils.urlValidation(application.app.icon)) { | ||
issues.push('Application icon url is invalid url. Value: ' + application.app.icon); | ||
} | ||
} | ||
if (!application.app.identifier) { | ||
@@ -117,0 +137,0 @@ issues.push('Manifest identifier definition is missing.'); |
@@ -138,2 +138,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}; | ||
utils.emailValidation = function (email) { | ||
if (!email) { | ||
return false; | ||
} | ||
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email); | ||
}; | ||
return utils; | ||
@@ -140,0 +146,0 @@ }()); |
{ | ||
"name": "@outreach/extensibility-sdk", | ||
"license": "MIT", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
8167
1
479887
163