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

link-check

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

link-check - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

1

index.js

@@ -44,2 +44,3 @@ "use strict";

},
maxRedirects: 8,
strictSSL: false

@@ -46,0 +47,0 @@ };

2

package.json
{
"name": "link-check",
"version": "3.0.0",
"version": "3.0.1",
"description": "checks whether a hyperlink is alive (200 OK) or dead",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,2 +28,6 @@ 'use strict';

});
app.get('/loop', function (req, res) {
res.redirect('/loop');
});

@@ -135,2 +139,13 @@ var server = http.createServer(app);

});
it('should handle redirect loops', function (done) {
linkCheck(baseUrl + '/loop', function (err, result) {
expect(err).to.be(null);
expect(result.link).to.be(baseUrl + '/loop');
expect(result.status).to.be('dead');
expect(result.statusCode).to.be(0);
expect(result.err.message).to.contain('Exceeded maxRedirects.');
done();
});
});
});
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