Skip to content

Commit

Permalink
2.3.1; fix bad build
Browse files Browse the repository at this point in the history
  • Loading branch information
justincy committed Apr 26, 2016
1 parent 08de6e2 commit 9b522e5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 47 deletions.
74 changes: 28 additions & 46 deletions gensearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ var sites = {
'geni': _dereq_('./sites/geni.js'),
'google': _dereq_('./sites/google.js'),
'nlatrove': _dereq_('./sites/nlatrove.js'),
'mocavo': _dereq_('./sites/mocavo.js'),
'myheritage': _dereq_('./sites/myheritage.js'),
'newspapers': _dereq_('./sites/newspapers.js'),
'openarchives': _dereq_('./sites/openarchives.js'),
Expand Down Expand Up @@ -69,7 +68,7 @@ gensearch.config = function(site, siteConfig){
*/
gensearch.sites = sites;

},{"./sites/americanancestors.js":2,"./sites/ancestry.js":3,"./sites/archives.js":4,"./sites/billiongraves.js":5,"./sites/chroniclingamerica.js":6,"./sites/familysearch.js":7,"./sites/findagrave.js":8,"./sites/findmypast.co.uk.js":9,"./sites/findmypast.com.js":10,"./sites/fold3.js":12,"./sites/genealogieonline.js":13,"./sites/genealogybank.js":14,"./sites/geneanet.en.js":15,"./sites/gengophers.js":16,"./sites/geni.js":17,"./sites/google.js":18,"./sites/mocavo.js":19,"./sites/myheritage.js":20,"./sites/newspapers.js":21,"./sites/nlatrove.js":22,"./sites/openarchives.js":23,"./sites/usgenweb.js":24,"./sites/werelate.js":25,"./sites/wikitree.js":26,"./sites/worldvitalrecords.js":27,"./utils.js":28}],2:[function(_dereq_,module,exports){
},{"./sites/americanancestors.js":2,"./sites/ancestry.js":3,"./sites/archives.js":4,"./sites/billiongraves.js":5,"./sites/chroniclingamerica.js":6,"./sites/familysearch.js":7,"./sites/findagrave.js":8,"./sites/findmypast.co.uk.js":9,"./sites/findmypast.com.js":10,"./sites/fold3.js":12,"./sites/genealogieonline.js":13,"./sites/genealogybank.js":14,"./sites/geneanet.en.js":15,"./sites/gengophers.js":16,"./sites/geni.js":17,"./sites/google.js":18,"./sites/myheritage.js":19,"./sites/newspapers.js":20,"./sites/nlatrove.js":21,"./sites/openarchives.js":22,"./sites/usgenweb.js":23,"./sites/werelate.js":24,"./sites/wikitree.js":25,"./sites/worldvitalrecords.js":26,"./utils.js":27}],2:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand Down Expand Up @@ -101,7 +100,7 @@ module.exports = function(config, data){

return url + utils.queryString(params);
};
},{"../utils.js":28}],3:[function(_dereq_,module,exports){
},{"../utils.js":27}],3:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand Down Expand Up @@ -146,7 +145,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],4:[function(_dereq_,module,exports){
},{"../utils.js":27}],4:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -180,7 +179,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],5:[function(_dereq_,module,exports){
},{"../utils.js":27}],5:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -213,7 +212,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],6:[function(_dereq_,module,exports){
},{"../utils.js":27}],6:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand Down Expand Up @@ -243,7 +242,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],7:[function(_dereq_,module,exports){
},{"../utils.js":27}],7:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -332,7 +331,7 @@ function addQueryParam(query, queryParam, paramValue) {
}
return query;
};
},{"../utils.js":28}],8:[function(_dereq_,module,exports){
},{"../utils.js":27}],8:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -349,19 +348,18 @@ module.exports = function(config, data){

if( data.birthDate ) {
query = utils.addQueryParam(query, 'GSbyrel', 'in');
query = utils.addQueryParam(query, 'GSby', (new Date(data.birthDate)).getFullYear());
query = utils.addQueryParam(query, 'GSby', utils.getYear(data.birthDate));
}

if( data.deathDate ) {
query = utils.addQueryParam(query, 'GSdyrel', 'in');
query = utils.addQueryParam(query, 'GSdy', (new Date(data.deathDate)).getFullYear());
query = utils.addQueryParam(query, 'GSdy', utils.getYear(data.deathDate));
}

return url + query;

};

},{"../utils.js":28}],9:[function(_dereq_,module,exports){
},{"../utils.js":27}],9:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js'),
fmp = _dereq_('./findmypast.js');

Expand All @@ -375,7 +373,7 @@ module.exports = function(config, data){
config = utils.defaults(config, defaultConfig);
return fmp(config, data, 'co.uk');
};
},{"../utils.js":28,"./findmypast.js":11}],10:[function(_dereq_,module,exports){
},{"../utils.js":27,"./findmypast.js":11}],10:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js'),
fmp = _dereq_('./findmypast.js');

Expand All @@ -389,7 +387,7 @@ module.exports = function(config, data){
config = utils.defaults(config, defaultConfig);
return fmp(config, data, 'com');
};
},{"../utils.js":28,"./findmypast.js":11}],11:[function(_dereq_,module,exports){
},{"../utils.js":27,"./findmypast.js":11}],11:[function(_dereq_,module,exports){
/**
* This is not a site config. It is a common util for
* the findmypast sites that only differ in the TLD.
Expand Down Expand Up @@ -461,7 +459,7 @@ module.exports = function(config, data, tld){
return baseUrl + query;

};
},{"../utils.js":28}],12:[function(_dereq_,module,exports){
},{"../utils.js":27}],12:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -487,7 +485,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],13:[function(_dereq_,module,exports){
},{"../utils.js":27}],13:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -544,7 +542,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],14:[function(_dereq_,module,exports){
},{"../utils.js":27}],14:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -607,7 +605,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],15:[function(_dereq_,module,exports){
},{"../utils.js":27}],15:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -648,7 +646,7 @@ module.exports = function(config, data){
return url + query;

};
},{"../utils.js":28}],16:[function(_dereq_,module,exports){
},{"../utils.js":27}],16:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -668,7 +666,7 @@ module.exports = function(config, data){

return url + utils.queryString(params);;
};
},{"../utils.js":28}],17:[function(_dereq_,module,exports){
},{"../utils.js":27}],17:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -694,7 +692,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],18:[function(_dereq_,module,exports){
},{"../utils.js":27}],18:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -715,23 +713,7 @@ module.exports = function(config, data){

return url += encodeURIComponent(searchWords.join(' '));
};
},{"../utils.js":28}],19:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){

var url = 'http://www.mocavo.com/search?start=0';

if(data.givenName) {
url += '&plus_fname%5B%5D=' + encodeURIComponent(data.givenName);
}
if(data.familyName) {
url += '&plus_lname%5B%5D=' + encodeURIComponent(data.familyName);
}

return url;
};
},{"../utils.js":28}],20:[function(_dereq_,module,exports){
},{"../utils.js":27}],19:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand Down Expand Up @@ -830,7 +812,7 @@ function fixSpace(str){
return str.replace(/ /g, '%2F3');
}

},{"../utils.js":28}],21:[function(_dereq_,module,exports){
},{"../utils.js":27}],20:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -900,7 +882,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],22:[function(_dereq_,module,exports){
},{"../utils.js":27}],21:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -917,7 +899,7 @@ module.exports = function(config, data){

return url + encodeURIComponent(parts.join(' '));
};
},{"../utils.js":28}],23:[function(_dereq_,module,exports){
},{"../utils.js":27}],22:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -942,7 +924,7 @@ module.exports = function(config, data){
return url + query;

};
},{"../utils.js":28}],24:[function(_dereq_,module,exports){
},{"../utils.js":27}],23:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -964,7 +946,7 @@ module.exports = function(config, data){
return url + query;

};
},{"../utils.js":28}],25:[function(_dereq_,module,exports){
},{"../utils.js":27}],24:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -1013,7 +995,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],26:[function(_dereq_,module,exports){
},{"../utils.js":27}],25:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

module.exports = function(config, data){
Expand All @@ -1031,7 +1013,7 @@ module.exports = function(config, data){

return url += encodeURIComponent(searchWords.join(' '));
};
},{"../utils.js":28}],27:[function(_dereq_,module,exports){
},{"../utils.js":27}],26:[function(_dereq_,module,exports){
var utils = _dereq_('../utils.js');

var defaultConfig = {
Expand Down Expand Up @@ -1071,7 +1053,7 @@ module.exports = function(config, data){

};

},{"../utils.js":28}],28:[function(_dereq_,module,exports){
},{"../utils.js":27}],27:[function(_dereq_,module,exports){
var utils = {};

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gen-search",
"version": "2.3.0",
"version": "2.3.1",
"description": "Generate search links for genealogy websites",
"repository": {
"type": "git",
Expand Down

0 comments on commit 9b522e5

Please sign in to comment.