New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.9 to 1.0.10

1

index.js

@@ -49,2 +49,3 @@ const fs = require('fs');

return new Promise((resolve, reject) => {
var ret = {zip, fn: dest + '/' + fn};
z.on('error', (err) => {

@@ -51,0 +52,0 @@ reject(Object.assign(ret, {src: 'on', err}));

2

package.json
{
"name": "ofac",
"version": "1.0.9",
"version": "1.0.10",
"description": "A module to facilitate local OFAC searches",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -57,2 +57,24 @@ var fs = require('fs');

})
it('File does not exist', () => {
return ofac.zipExtract(zip + '-fail', fn, '/tmp')
.then(() => {
assert.ok(false, 'Should have failed')
})
.catch(e => {
var expected = {
zip: "t/sdn.xml.zip-fail",
fn: "/tmp/sdn.xml",
src: "on",
err: {
errno: -2,
code: "ENOENT",
syscall: "open",
path: "t/sdn.xml.zip-fail"
}
};
e = JSON.parse(JSON.stringify(e)) // errors stringify differently
assert.deepEqual(e, expected, 'Did not fail when it should have')
})
})
it('Extraction', async () => {

@@ -59,0 +81,0 @@ var path = '/tmp/' + fn;

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