Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ofac

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ofac - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

1

index.js

@@ -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

5

package.json
{
"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'};

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc