Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getFetchJsonpPromise ({ url, jsonpOptions }) {
log(`Jsonp Url: ${url}`)
return require('fetch-jsonp')(url, jsonpOptions)
.then(res => res.json())
.then(data => ({ data }))
}
}