Skip to content

Commit 19ae586

Browse files
committed
Upgrade dependencies
1 parent 534d080 commit 19ae586

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/book_mobile.pdf
1111
/html/[012]*.html
1212
/html/js/chapter_info.js
13+
/html/js/[012]*.js
1314
/html/js/acorn_codemirror.js
1415
/code/chapter/*
1516
/code/file_server.js

15_game.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ Level.prototype.isFinished = function() {
219219

220220
== Actors ==
221221

222-
[[vector]] (((Vector type)))(((coordinates)))To store the position and
222+
[[vector]]
223+
(((Vector type)))(((coordinates)))To store the position and
223224
size of an actor, we will return to our trusty `Vector` type, which
224225
groups an x-coordinate and a y-coordinate into an object.
225226

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ html/js/acorn_codemirror.js: node_modules/codemirror/lib/codemirror.js \
2121
node_modules/codemirror/mode/xml/xml.js \
2222
node_modules/codemirror/mode/htmlmixed/htmlmixed.js \
2323
node_modules/codemirror/addon/edit/matchbrackets.js \
24-
node_modules/acorn/acorn.js \
25-
node_modules/acorn/util/walk.js
24+
node_modules/acorn/dist/acorn.js \
25+
node_modules/acorn/dist/walk.js
2626
node_modules/.bin/uglifyjs $? -m -o $@
2727

2828
img/generated/%.png: img/%.svg

bin/run_tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ function nextSandbox() {
241241
report(e);
242242
}
243243
} else {
244-
require("jsdom").env({
244+
let {JSDOM} = require("jsdom")
245+
new JSDOM({
245246
url: "http://eloquentjavascript.net/" + file + "#" + i,
246247
html: sandbox.html || "<!doctype html><body></body>",
247248
src: [baseCode],

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@
99
"url": "git://github.com/marijnh/Eloquent-JavaScript.git"
1010
},
1111
"dependencies": {
12-
"acorn": "0.3",
13-
"codemirror": "4",
12+
"acorn": "^5.1.0",
13+
"codemirror": "^5.25.0",
1414
"jszip": "^2.5.0",
15-
"uglify-js": "2"
15+
"uglify-js": "^2.0.0"
1616
},
1717
"devDependencies": {
18-
"contextify": "kkoopa/contextify",
19-
"jsdom": "0.10",
20-
"canvas": "git://github.com/learnboost/node-canvas",
21-
"promise": "6",
22-
"jszip": "2"
18+
"canvas": "^1.6.7",
19+
"jsdom": "^11.2.0",
20+
"promise": "^8.0.1"
2321
}
2422
}

0 commit comments

Comments
 (0)