alis-request
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -49,4 +49,3 @@ 'use strict'; | ||
if (err) { | ||
callback(err); | ||
return; | ||
return callback(err); | ||
} | ||
@@ -64,3 +63,3 @@ callback(null, body); | ||
function getBooks($) { | ||
$('.article').each(function () { | ||
return $('.article').each(function () { | ||
ReadableStreamBooks.push($(this).text()); | ||
@@ -81,9 +80,7 @@ }); | ||
if (q.length === 0) { | ||
ReadableStreamBooks.push(null); | ||
return; | ||
return ReadableStreamBooks.push(null); | ||
} | ||
fn(q[0], jar, function (err, page) { | ||
if (err) { | ||
console.log(err); | ||
return; | ||
return err; | ||
} | ||
@@ -94,4 +91,3 @@ var $ = _cheerio2.default.load(page); | ||
if (nextPageUrl === 'undefined') { | ||
ReadableStreamBooks.push(null); | ||
return; | ||
return ReadableStreamBooks.push(null); | ||
} | ||
@@ -98,0 +94,0 @@ var remainingQueue = q.slice(1); |
{ | ||
"name": "alis-request", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Get books by year in alis library", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102433
6
80