Comparing version 1.0.11 to 1.0.12
@@ -34,7 +34,8 @@ const fs = require('fs'); | ||
? Promise.resolve(fn) | ||
: self.opts.fetch(url).then(res => { | ||
: self.opts.fetch(url).then(res => new Promise((resolve, reject) => { | ||
const dest = fs.createWriteStream(fn); | ||
res.body.pipe(dest); | ||
return fn; | ||
}); | ||
res.body.pipe(dest, {end: true}); | ||
dest.on('close', () => resolve(fn)); | ||
dest.on('error', reject); | ||
})); | ||
}, | ||
@@ -41,0 +42,0 @@ zipExtract: (zip, fn = self.opts.xml, dest = self.opts.path) => { |
{ | ||
"name": "ofac", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"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
27092
286