qdb-api-plus
Advanced tools
Comparing version 1.4.4 to 1.4.5
{ | ||
"name": "qdb-api-plus", | ||
"description": "A better API wrapper for Quote Database", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"main": "src/qdb-api.js", | ||
@@ -6,0 +6,0 @@ "author": "Victor Veytsman", |
@@ -28,2 +28,5 @@ const http = require('http'); | ||
if ($('center font').text().includes('not exist')) { | ||
reject("That quote does not exist"); | ||
} | ||
const quote = { | ||
@@ -73,7 +76,3 @@ id: $('.quote a b') | ||
const quotes = []; | ||
if ( | ||
$('center font') | ||
.text() | ||
.includes('No results') | ||
) { | ||
if ($('center font').text().includes('No results')) { | ||
reject('No results returned.'); | ||
@@ -80,0 +79,0 @@ } else { |
8656
193