Comparing version 3.0.0 to 3.1.0
{ | ||
"name": "window", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Exports a jsdom window object.", | ||
@@ -11,10 +11,7 @@ "main": "src/index.js", | ||
"test": "nyc ava test", | ||
"lint": "eslint src", | ||
"lint": "xo", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
"eslintConfig": { | ||
"extends": "lukechilds", | ||
"rules": { | ||
"prefer-rest-params": "off" | ||
} | ||
"xo": { | ||
"extends": "xo-lukechilds" | ||
}, | ||
@@ -48,6 +45,6 @@ "repository": { | ||
"coveralls": "^2.11.13", | ||
"eslint": "^3.5.0", | ||
"eslint-config-lukechilds": "^1.9.0", | ||
"nyc": "^10.0.0" | ||
"eslint-config-xo-lukechilds": "^1.0.0", | ||
"nyc": "^10.0.0", | ||
"xo": "^0.17.1" | ||
} | ||
} |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const jsdom = require('jsdom'); | ||
@@ -8,5 +10,5 @@ | ||
module.exports = class Window { | ||
constructor(jsdomConfig) { | ||
return jsdom.jsdom('', Object.assign({}, jsdomConfig)).defaultView; | ||
} | ||
constructor(jsdomConfig) { | ||
return jsdom.jsdom('', Object.assign({}, jsdomConfig)).defaultView; | ||
} | ||
}; |
16
3446