File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
223224size of an actor, we will return to our trusty `Vector` type, which
224225groups an x-coordinate and a y-coordinate into an object.
225226
Original file line number Diff line number Diff 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
2828img/generated/% .png : img/% .svg
Original file line number Diff line number Diff 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 ] ,
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments