This commit is contained in:
syuilo 2017-03-31 20:22:21 +09:00
parent 97fd66f546
commit fd0a55cd84
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2.0.2 / Unreleased
------------------
* Bug fix
2.0.1 / 2017-03-11
------------------
* Update some dependencies

View File

@ -64,6 +64,10 @@ export default async (url: string, options?: Options): Promise<Result> => {
// Get summary
const summary = await (match ? match.summarize : general)(_url);
if (summary == null) {
throw 'failed summarize';
}
return Object.assign(summary, {
url: actualUrl
});