Skip to content

Commit

Permalink
Merge pull request #366 from TrySound/upgrade-cheerio
Browse files Browse the repository at this point in the history
Upgrade to cheerio v1
  • Loading branch information
jrit committed Jul 8, 2020
2 parents ec41c65 + 4178da6 commit 1f82379
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 90 deletions.
4 changes: 2 additions & 2 deletions lib/cheerio.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ var cheerio = require('cheerio');
var utils = require('./utils');

var cheerioLoad = function(html, options, encodeEntities) {
options = Object.assign({decodeEntities: false}, options);
options = Object.assign({decodeEntities: false, _useHtmlParser2:true}, options);
html = encodeEntities(html);
return cheerio.load(html,options);
return cheerio.load(html, options);
};

var createEntityConverters = function () {
Expand Down
128 changes: 42 additions & 86 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"types": "juice.d.ts",
"dependencies": {
"cheerio": "^0.22.0",
"cheerio": "^1.0.0-rc.3",
"commander": "^2.15.1",
"mensch": "^0.3.4",
"slick": "^1.12.2",
Expand All @@ -40,7 +40,7 @@
"cross-spawn": "^6.0.5",
"mocha": "^5.2.0",
"should": "^11.1.1",
"typescript": "^2.9.1"
"typescript": "^3.9.6"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 1f82379

Please sign in to comment.