We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a2001 commit fec3d9eCopy full SHA for fec3d9e
lib/support.js
@@ -150,14 +150,18 @@ function downloadSupportData (supportablePackages, cb) {
150
var cached = cache.get(url)
151
if (cached) {
152
return setImmediate(function () {
153
- cb(null, {cached: true}, cached)
+ cb(null, { cached: true }, cached)
154
})
155
}
156
simpleGet.concat({
157
url: url,
158
json: true,
159
headers: headers
160
- }, cb)
+ }, function (err, response, data) {
161
+ if (err) return cb(err)
162
+ cache.set(url, data)
163
+ cb(null, response, data)
164
+ })
165
166
167
0 commit comments