Comparing version 1.0.5 to 1.0.6
@@ -55,2 +55,3 @@ const fs = require('fs'); | ||
search: (cust, fn = self.db) => { | ||
if (!fn) fn = self.db = self.fn(self.opts.xml); | ||
if (!cust.search_type) cust.search_type = 'individual'; | ||
@@ -57,0 +58,0 @@ // input data clean |
{ | ||
"name": "ofac", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A module to facilitate OFAC searches", | ||
@@ -14,4 +14,3 @@ "main": "index.js", | ||
"keywords": [ | ||
"ofac", | ||
"kyc" | ||
"ofac", "kyc", "compliance" | ||
], | ||
@@ -18,0 +17,0 @@ "author": "ekkis <e@arix.com>", |
@@ -44,4 +44,6 @@ var fs = require('fs'); | ||
var actual = await ofac.zipExtract(zip, fn, '/tmp'); | ||
assert.equal(actual, path, 'Extracted a different file'); | ||
assert.ok(fs.existsSync(path), 'Extract file does not exist'); | ||
var stats = fs.statSync(path); | ||
@@ -52,2 +54,7 @@ assert.equal(stats.size, 10128, 'File incomplete') | ||
describe('Search', () => { | ||
it('Uses internal path', async () => { | ||
var cust = {id: 'J287011', country: 'Colombia'}; | ||
var actual = await ofac.search(cust); | ||
assert.deepEqual(actual, expected); | ||
}) | ||
it('Searched by id/country', async () => { | ||
@@ -54,0 +61,0 @@ var cust = {id: 'J287011', country: 'Colombia'}; |
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
19114
234