fpad-rand-cert
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -25,8 +25,9 @@ 'use strict'; | ||
function randomOrganization(data) { | ||
var name = data.name || faker.name.firstName() + ' ' + faker.name.lastName(); | ||
var temp = data.contacts ? data.contacts[0].name : undefined; | ||
var name = temp || faker.name.firstName() + ' ' + faker.name.lastName(); | ||
// TODO: currently making up a last name. | ||
// if (name.split(' ').length === 1) name = name+' '+faker.name.lastName(); | ||
// if (name.split(' ').length === 1) name = name + ' ' + faker.name.lastName(); | ||
return { | ||
name: name.split(' ')[name.split(' ').length - 1] + ' ' + randomEntry(farmNames), | ||
contacts: [{ name: name }], | ||
name: data.name || name.split(' ')[name.split(' ').length - 1] + ' ' + randomEntry(farmNames), | ||
contacts: data.contacts || [{ name: name }], | ||
location: randomLocation(data.location || {}), | ||
@@ -33,0 +34,0 @@ //TODO: didn't have time. let this be optional |
{ | ||
"name": "fpad-rand-cert", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/gg-audit-randomize.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
12627
243