Comparing version 0.4.0 to 0.4.2
@@ -78,3 +78,3 @@ var cheerio = require('cheerio') | ||
if (resp.statusCode !== 200) return cb(new Error('statusCode is not 200. received '+resp.statusCode+' in '+_url )) | ||
if (resp.headers['content-type'].indexOf('text/html') !== -1) { | ||
if (resp.headers['content-type'] && resp.headers['content-type'].indexOf('text/html') !== -1) { | ||
var $ = cheerio.load(body) | ||
@@ -111,3 +111,3 @@ , links = [] | ||
_walk(links, _url, cb) | ||
} else if (resp.headers['content-type'].indexOf('text/css') !== -1) { | ||
} else if (resp.headers['content-type'] && resp.headers['content-type'].indexOf('text/css') !== -1) { | ||
_walk(_css(body, _url), _url, cb) | ||
@@ -145,2 +145,2 @@ } else { | ||
module.exports = webtouch | ||
module.exports = webtouch |
{ | ||
"name": "webtouch", | ||
"version": "0.4.0", | ||
"version": "0.4.2", | ||
"description": "Validate that a web site and all its required resources are available.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
233
9372
4