Skip to content

Commit 5e53c3d

Browse files
DinkDonkapparentlymart
authored andcommitted
Update jsdom to v11.11.0
1 parent e2ec93f commit 5e53c3d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var Context = function (template) {
99
// but we're not actually expecting to render an app in here... it just gives
1010
// us an anchor document so we can do things like call document.createElement
1111
// when using jqLite/jQuery.
12-
var document = jsdom.jsdom(
12+
var document = new jsdom.JSDOM(
1313
template,
1414
{
1515
features: {
@@ -22,7 +22,7 @@ var Context = function (template) {
2222
}
2323
}
2424
);
25-
var window = document.defaultView;
25+
var window = document.window;
2626
vm.createContext(window);
2727
var rawContext = window;
2828
var runner = function (code, filename) {

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "0.0.23",
44
"description": "Use AngularJS in Node applications",
55
"author": "Martin Atkins <[email protected]>",
6-
"keywords": ["angularjs"],
6+
"keywords": [
7+
"angularjs"
8+
],
79
"repository": {
810
"type": "git",
911
"url": "git://github.com/apparentlymart/node-angularcontext.git"
@@ -20,7 +22,7 @@
2022
}
2123
],
2224
"dependencies": {
23-
"jsdom": "~9.5.0"
25+
"jsdom": "~11.11.0"
2426
},
2527
"devDependencies": {
2628
"nodeunit": "*",

0 commit comments

Comments
 (0)