Socket
Socket
Sign inDemoInstall

cheerio

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheerio - npm Package Compare versions

Comparing version 0.13.0 to 0.13.1

7

History.md
0.13.1 / 2014-01-07
==================
* Fix select with context in Cheerio function (@jugglinmike)
* Remove unecessary DOM maintenance logic (@jugglinmike)
* Deprecate support for node 0.6
0.13.0 / 2013-12-30

@@ -3,0 +10,0 @@ ==================

5

lib/api/manipulation.js

@@ -68,4 +68,2 @@ var _ = require('underscore'),

updateDOM(siblings, parent);
parent.children = siblings;
});

@@ -97,4 +95,2 @@

updateDOM(siblings, parent);
parent.children = siblings;
});

@@ -126,3 +122,2 @@

updateDOM(siblings, parent);
parent.children = siblings;
});

@@ -129,0 +124,0 @@

4

lib/cheerio.js

@@ -52,3 +52,5 @@ /*

if (Array.isArray(selector)) {
_.defaults(this, selector);
_.forEach(selector, function(elem, idx) {
this[idx] = elem;
}, this);
this.length = selector.length;

@@ -55,0 +57,0 @@ return this;

@@ -11,3 +11,3 @@ {

],
"version": "0.13.0",
"version": "0.13.1",
"repository": {

@@ -23,3 +23,3 @@ "type": "git",

"htmlparser2": "~3.4.0",
"underscore": "~1.4",
"underscore": "~1.5",
"entities": "0.x",

@@ -26,0 +26,0 @@ "CSSselect": "~0.4.0"

@@ -35,2 +35,9 @@ var expect = require('expect.js'),

it('$(node) : should override previously-loaded nodes', function() {
var C = $.load('<div><span></span></div>');
var spanNode = C('span')[0];
var $span = C(spanNode);
expect($span[0]).to.equal(spanNode);
});
it('should be able to create html without a root or context', function() {

@@ -37,0 +44,0 @@ var $h2 = $('<h2>');

Sorry, the diff of this file is not supported yet

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