Skip to content

Commit c651797

Browse files
committed
Save readme data to cache
1 parent a405501 commit c651797

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/get-readme-data.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = async apiKey => {
1111
if (response.error) {
1212
throw new Error(response.error);
1313
}
14+
module.exports.cachedReadmeData[apiKey] = response;
1415
} catch (e) {
1516
throw new Error('Invalid ReadMe API Key');
1617
}

0 commit comments

Comments
 (0)