New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

window

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

window - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

6

package.json
{
"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;
}
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc