diff options
author | Florrie <towerofni@gmail.com> | 2017-08-03 03:19:59 +0400 |
---|---|---|
committer | Florrie <towerofni@gmail.com> | 2017-08-03 03:19:59 +0400 |
commit | b94845e008931bfaee56b91db1f892af7a6d339f (patch) | |
tree | ca6e40afdaea5b12493fbf236a4aa532bffa11f7 | |
parent | bb1a0d08e408f949d3b94206f8b5883a659f4d0d (diff) |
Fix HTTP crawler outputting {..., items: {items: [...]}}
-rwxr-xr-x | src/crawl-http.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crawl-http.js b/src/crawl-http.js index e776b9c..7308f3f 100755 --- a/src/crawl-http.js +++ b/src/crawl-http.js @@ -77,7 +77,7 @@ function crawl(absURL, opts = {}, internals = {}) { verboseLog("[Dir] " + linkURL) return crawl(linkURL, opts, Object.assign({}, internals)) - .then(items => ({name, items})) + .then(({ items }) => ({name, items})) } else { // It's a file! |