Skip to content

Commit

Permalink
Bump to jsdom@10
Browse files Browse the repository at this point in the history
jsdom@10 introduces a new API, but I don't want to deal with that yet
and being on an old API on a newer codebase is better than just
straight up being on an old codebase. So we just switch the
`require()` to use the legacy API.
  • Loading branch information
strugee committed May 6, 2018
1 parent 0bd61b1 commit ddd4c10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/scrubber.js
Expand Up @@ -20,7 +20,7 @@

var _ = require("lodash"),
validator = require("validator"),
jsdom = require("jsdom"),
jsdom = require("jsdom/lib/old-api.js"),
window = jsdom.jsdom("", {
features: {
FetchExternalResources: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -45,7 +45,7 @@
"import-fresh": "^2.0.0",
"jade": "^1.11.0",
"jankyqueue": "0.1.x",
"jsdom": "^9.12.0",
"jsdom": "^10.1.0",
"lodash": "^4.17.4",
"method-override": "^2.3.6",
"mkdirp": "0.5.x",
Expand Down

0 comments on commit ddd4c10

Please sign in to comment.