Skip to content

Commit

Permalink
Fixed similary -> similarity key in Source
Browse files Browse the repository at this point in the history
Well that was awkward to realize when I pulled in v2.0 in my own source
code. Apparently I typo'd in the Source type which affected the return
of the data from the lib as well. It was still being mapped to the API
result properly, but people implementing would have to have edited their
code without this, whoops?

Typos be gone (╯°□°)╯︵ ┻━┻

Signed-off-by: Jeroen Claassens <[email protected]>
  • Loading branch information
favna authored and Ovyerus committed Aug 10, 2019
1 parent 68978ce commit d2ce09b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sagiri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class Sagiri {
url: data.url,
site: data.name,
index: data.id.toString(),
similary: parseFloat(result.header.similarity),
similarity: parseFloat(result.header.similarity),
thumbnail: result.header.thumbnail,
authorName: result.data.author_name,
authorUrl: result.data.author_url,
Expand Down
2 changes: 1 addition & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type Source = {
url: string;
site: string;
index: string;
similary: number;
similarity: number;
thumbnail: string;
rating: string;
authorName: string;
Expand Down

0 comments on commit d2ce09b

Please sign in to comment.