New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

functional-docs

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

functional-docs - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

55

index.js

@@ -34,3 +34,3 @@ var fs = require('fs'),

console.log("Finished running tests on " + srcDir);
callback(err);
return callback(err);
});

@@ -51,28 +51,31 @@ });

}
var doc = jsdom.jsdom(content);
readFiles[file] = doc;
async.parallel([
function(cb) {
preTest.checkMissingAltTag(file, doc, options, function(errors) {
checkForErrors(errors, stopOnFail, cb);
});
},
function(cb) {
preTest.checkBrokenExternalLink(file, doc, options, function(errors) {
checkForErrors(errors, stopOnFail, cb);
});
},
function(cb) {
postTest.checkMissingImage(file, doc, options, function(errors) {
checkForErrors(errors, stopOnFail, cb);
});
},
function(cb) {
postTest.checkBrokenLocalLink(file, doc, readFiles, options, function(errors) {
checkForErrors(errors, stopOnFail, cb);
});
}
], function(err, results) {
callback(err);
jsdom.env(content, function(err, window) {
doc = window.document;
readFiles[file] = doc;
async.parallel([
function(cb) {
preTest.checkMissingAltTag(file, doc, options, function(errors) {
checkForErrors(errors, stopOnFail, cb);
});
},
function(cb) {
preTest.checkBrokenExternalLink(file, doc, options, function(errors) {
checkForErrors(errors, stopOnFail, cb);
});
},
function(cb) {
postTest.checkMissingImage(file, doc, options, function(errors) {
checkForErrors(errors, stopOnFail, cb);
});
},
function(cb) {
postTest.checkBrokenLocalLink(file, doc, readFiles, options, function(errors) {
checkForErrors(errors, stopOnFail, cb);
});
}
], function(err, results) {
callback(err);
});
});

@@ -79,0 +82,0 @@ });

{
"name": "functional-docs",
"version": "0.1.4",
"version": "0.1.5",
"author": "Garen Torikian",

@@ -5,0 +5,0 @@ "keywords": ["documentation", "docs", "testing", "html"],

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