Socket
Socket
Sign inDemoInstall

node-readability

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-readability - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

package.json
{
"name": "node-readability",
"version": "0.3.1",
"version": "0.3.2",
"author": "Zihua Li",

@@ -5,0 +5,0 @@ "description": "Turning any web page into a clean view.",

@@ -41,3 +41,3 @@ var url = require("url");

frames.forEach(function (frame) {
Array.prototype.slice.call(frames, 0).forEach(function (frame) {
var frameSize = frame.offsetWidth + frame.offsetHeight;

@@ -44,0 +44,0 @@ var canAccessFrame = false;

@@ -8,4 +8,6 @@ require('./mock-helpers.js');

read('<html><body>Hello world!</body></html>', function(err, read) {
read.document.body.innerHTML.should.include('Hello world!');
done();
setTimeout(function() {
read.document.body.innerHTML.should.include('Hello world!');
done();
}, 0);
});

@@ -12,0 +14,0 @@ });

@@ -21,3 +21,10 @@ require('./mock-helpers.js');

});
it('should handle frames', function(done) {
read('<html><body><frame /><frame />Hello world!</body></html>', function(err, read){
read.document.body.innerHTML.should.include('Hello world!');
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