Comparing version 1.0.14 to 1.0.15
14
index.js
@@ -130,3 +130,5 @@ const fs = require('fs'); | ||
o.each(o => typeof o == 'string' ? o.toLowerCase() : o); | ||
Object.keys(o).forEach(k => { | ||
if (typeof o[k] == 'string') o[k] = o[k].toLowerCase(); | ||
}); | ||
for (var k of 'firstName/lastName'.split('/')) | ||
@@ -183,11 +185,1 @@ if (o[k]) o[k] = (o[k] || '').replace(/\W/g, ' '); | ||
}; | ||
if (!Object.prototype.keys) | ||
Object.prototype.keys = function() { | ||
return Object.keys(this); | ||
} | ||
if (!Object.prototype.each) | ||
Object.prototype.each = function(fn) { | ||
this.keys().map(k => this[k] = fn(this[k], k)); | ||
} |
{ | ||
"name": "ofac", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "A module to facilitate local OFAC searches", | ||
@@ -5,0 +5,0 @@ "main": "index.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
924991
9
311