From 8b2696ddc7e772f07d06b43b4fd261ac95e83321 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Fri, 12 Jun 2020 09:42:23 +1000 Subject: [PATCH] Fix detections caching --- src/drivers/npm/driver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 4ad7143bb..0d2c54dfb 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -472,11 +472,11 @@ class Site { } } - this.onDetect(url, analyzeJs(js)) + this.onDetect(analyzeJs(js)) this.onDetect( - url, analyze({ + url, cookies, html, scripts, @@ -584,7 +584,7 @@ class Site { await this.batch(links, depth, batch + 1) } - onDetect(url, detections = [], language) { + onDetect(detections = [], language) { this.detections = this.detections.concat(detections) this.detections.filter(