@netlify/functions
Advanced tools
Comparing version 0.7.3-streaming.8 to 0.7.3-streaming.9
@@ -5,3 +5,3 @@ { | ||
"types": "./src/main.d.ts", | ||
"version": "0.7.3-streaming.8", | ||
"version": "0.7.3-streaming.9", | ||
"description": "JavaScript utilities for Netlify Functions", | ||
@@ -8,0 +8,0 @@ "files": [ |
@@ -20,5 +20,10 @@ /* eslint-disable no-underscore-dangle , promise/prefer-await-to-callbacks, */ | ||
const parsedUrl = new URL(url) | ||
const family = 4 | ||
const options = { | ||
lookup: (address, opts, callback) => { | ||
callback(null, ip) | ||
// eslint-disable-next-line default-param-last | ||
lookup: (address, opts = {}, callback) => { | ||
if (opts.all) { | ||
return callback(null, [{ address: ip, family }]) | ||
} | ||
return callback(null, ip, family) | ||
}, | ||
@@ -25,0 +30,0 @@ method: 'POST', |
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
14600
287