Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webtouch

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webtouch - npm Package Compare versions

Comparing version 0.4.0 to 0.4.2

tests/test-links-in-js.js

6

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc