Skip to content

Commit a985f22

Browse files
authored
Merge 1abd7ec into bd40aba
2 parents bd40aba + 1abd7ec commit a985f22

File tree

3 files changed

+84
-10
lines changed

3 files changed

+84
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"isomorphic-fetch": "2.2.1",
124124
"jed": "1.1.1",
125125
"join-url": "2.0.0",
126-
"jsdom": "9.12.0",
126+
"jsdom": "11.1.0",
127127
"localforage": "1.5.0",
128128
"moment": "2.18.1",
129129
"mozilla-version-comparator": "1.0.2",

src/core/window.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
import { jsdom } from 'jsdom';
1+
import { JSDOM } from 'jsdom';
22

3-
export default jsdom('', {
3+
const jsDomDocument = new JSDOM('', {
44
features: {
5-
FetchExternalResources: false, // disables resource loading over HTTP / filesystem
6-
ProcessExternalResources: false, // do not execute JS within script blocks
5+
// disables resource loading over HTTP / filesystem
6+
FetchExternalResources: false,
7+
// do not execute JS within script blocks
8+
ProcessExternalResources: false,
79
},
8-
}).defaultView;
10+
});
11+
12+
export default jsDomDocument.window;

yarn.lock

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# yarn lockfile v1
33

44

5+
"@types/node@^6.0.46":
6+
version "6.0.79"
7+
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.79.tgz#5efe7d4a6d8c453c7e9eaf55d931f4a22fac5169"
8+
59
"@types/react@^15.0.22":
610
version "15.0.34"
711
resolved "https://registry.yarnpkg.com/@types/react/-/react-15.0.34.tgz#c4f7235f3d245216a706887b7d1ffedaf5b1dc06"
@@ -4235,7 +4239,33 @@ jsbn@~0.1.0:
42354239
version "0.1.1"
42364240
resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
42374241

4238-
jsdom@9.12.0, jsdom@^9.12.0:
4242+
jsdom@11.1.0:
4243+
version "11.1.0"
4244+
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.1.0.tgz#6c48d7a48ffc5c300283c312904d15da8360509b"
4245+
dependencies:
4246+
abab "^1.0.3"
4247+
acorn "^4.0.4"
4248+
acorn-globals "^3.1.0"
4249+
array-equal "^1.0.0"
4250+
content-type-parser "^1.0.1"
4251+
cssom ">= 0.3.2 < 0.4.0"
4252+
cssstyle ">= 0.2.37 < 0.3.0"
4253+
escodegen "^1.6.1"
4254+
html-encoding-sniffer "^1.0.1"
4255+
nwmatcher "^1.4.1"
4256+
parse5 "^3.0.2"
4257+
pn "^1.0.0"
4258+
request "^2.79.0"
4259+
request-promise-native "^1.0.3"
4260+
sax "^1.2.1"
4261+
symbol-tree "^3.2.1"
4262+
tough-cookie "^2.3.2"
4263+
webidl-conversions "^4.0.0"
4264+
whatwg-encoding "^1.0.1"
4265+
whatwg-url "^6.1.0"
4266+
xml-name-validator "^2.0.1"
4267+
4268+
jsdom@^9.12.0:
42394269
version "9.12.0"
42404270
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4"
42414271
dependencies:
@@ -4610,6 +4640,10 @@ lodash.some@^4.4.0:
46104640
version "4.6.0"
46114641
resolved "https://registry.yarnpkg.com/lodash.some/-/lodash.some-4.6.0.tgz#1bb9f314ef6b8baded13b549169b2a945eb68e4d"
46124642

4643+
lodash.sortby@^4.7.0:
4644+
version "4.7.0"
4645+
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
4646+
46134647
lodash.tail@^4.1.1:
46144648
version "4.1.1"
46154649
resolved "https://registry.yarnpkg.com/lodash.tail/-/lodash.tail-4.1.1.tgz#d2333a36d9e7717c8ad2f7cacafec7c32b444664"
@@ -5154,7 +5188,7 @@ number-is-nan@^1.0.0:
51545188
version "1.0.1"
51555189
resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
51565190

5157-
"nwmatcher@>= 1.3.9 < 2.0.0":
5191+
"nwmatcher@>= 1.3.9 < 2.0.0", nwmatcher@^1.4.1:
51585192
version "1.4.1"
51595193
resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.4.1.tgz#7ae9b07b0ea804db7e25f05cb5fe4097d4e4949f"
51605194

@@ -5360,6 +5394,12 @@ parse5@^1.5.1:
53605394
version "1.5.1"
53615395
resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94"
53625396

5397+
parse5@^3.0.2:
5398+
version "3.0.2"
5399+
resolved "https://registry.yarnpkg.com/parse5/-/parse5-3.0.2.tgz#05eff57f0ef4577fb144a79f8b9a967a6cc44510"
5400+
dependencies:
5401+
"@types/node" "^6.0.46"
5402+
53635403
parseurl@^1.3.1, parseurl@~1.3.1:
53645404
version "1.3.1"
53655405
resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.1.tgz#c8ab8c9223ba34888aa64a297b28853bec18da56"
@@ -5495,6 +5535,10 @@ pluralize@^1.2.1:
54955535
version "1.2.1"
54965536
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45"
54975537

5538+
pn@^1.0.0:
5539+
version "1.0.0"
5540+
resolved "https://registry.yarnpkg.com/pn/-/pn-1.0.0.tgz#1cf5a30b0d806cd18f88fc41a6b5d4ad615b3ba9"
5541+
54985542
po2json@^0.4.5:
54995543
version "0.4.5"
55005544
resolved "https://registry.yarnpkg.com/po2json/-/po2json-0.4.5.tgz#47bb2952da32d58a1be2f256a598eebc0b745118"
@@ -6422,6 +6466,20 @@ repeating@^2.0.0:
64226466
dependencies:
64236467
is-finite "^1.0.0"
64246468

6469+
request-promise-core@1.1.1:
6470+
version "1.1.1"
6471+
resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6"
6472+
dependencies:
6473+
lodash "^4.13.1"
6474+
6475+
request-promise-native@^1.0.3:
6476+
version "1.0.4"
6477+
resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.4.tgz#86988ec8eee408e45579fce83bfd05b3adf9a155"
6478+
dependencies:
6479+
request-promise-core "1.1.1"
6480+
stealthy-require "^1.1.0"
6481+
tough-cookie ">=2.3.0"
6482+
64256483
request@2, request@^2.79.0, request@^2.81.0:
64266484
version "2.81.0"
64276485
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
@@ -6968,6 +7026,10 @@ stdout-stream@^1.4.0:
69687026
dependencies:
69697027
readable-stream "^2.0.1"
69707028

7029+
stealthy-require@^1.1.0:
7030+
version "1.1.1"
7031+
resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b"
7032+
69717033
stream-browserify@^2.0.1:
69727034
version "2.0.1"
69737035
resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db"
@@ -7346,7 +7408,7 @@ tosource@^1.0.0:
73467408
version "1.0.0"
73477409
resolved "https://registry.yarnpkg.com/tosource/-/tosource-1.0.0.tgz#42d88dd116618bcf00d6106dd5446f3427902ff1"
73487410

7349-
tough-cookie@^2.3.2, tough-cookie@~2.3.0:
7411+
tough-cookie@>=2.3.0, tough-cookie@^2.3.2, tough-cookie@~2.3.0:
73507412
version "2.3.2"
73517413
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a"
73527414
dependencies:
@@ -7597,7 +7659,7 @@ webidl-conversions@^3.0.0:
75977659
version "3.0.1"
75987660
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
75997661

7600-
webidl-conversions@^4.0.0:
7662+
webidl-conversions@^4.0.0, webidl-conversions@^4.0.1:
76017663
version "4.0.1"
76027664
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.1.tgz#8015a17ab83e7e1b311638486ace81da6ce206a0"
76037665

@@ -7741,6 +7803,14 @@ whatwg-url@^4.3.0:
77417803
tr46 "~0.0.3"
77427804
webidl-conversions "^3.0.0"
77437805

7806+
whatwg-url@^6.1.0:
7807+
version "6.1.0"
7808+
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.1.0.tgz#5fc8279b93d75483b9ced8b26239854847a18578"
7809+
dependencies:
7810+
lodash.sortby "^4.7.0"
7811+
tr46 "~0.0.3"
7812+
webidl-conversions "^4.0.1"
7813+
77447814
whet.extend@~0.9.9:
77457815
version "0.9.9"
77467816
resolved "https://registry.yarnpkg.com/whet.extend/-/whet.extend-0.9.9.tgz#f877d5bf648c97e5aa542fadc16d6a259b9c11a1"

0 commit comments

Comments
 (0)