Comparing version 4.2.1 to 4.2.2
{ | ||
"name": "window", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "Exports a jsdom window object.", | ||
@@ -41,4 +41,4 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"ava": "^0.22.0", | ||
"coveralls": "^2.11.13", | ||
"ava": "^0.23.0", | ||
"coveralls": "^3.0.0", | ||
"eslint-config-xo-lukechilds": "^1.0.0", | ||
@@ -45,0 +45,0 @@ "nyc": "^11.0.2", |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
const { JSDOM } = require('jsdom'); | ||
@@ -7,8 +5,6 @@ | ||
// Accepts a jsdom config object. | ||
// Config object must be cloned before passing through otherwise jsdom will add | ||
// lots of properties to the original reference. | ||
module.exports = class Window { | ||
constructor(jsdomConfig) { | ||
return (new JSDOM('', Object.assign({}, jsdomConfig))).window; | ||
return (new JSDOM('', jsdomConfig)).window; | ||
} | ||
}; |
11003
274