Socket
Socket
Sign inDemoInstall

jsdom-global

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 3.0.0

7

HISTORY.md

@@ -0,1 +1,8 @@

## [v3.0.0]
> May 8, 2017
- jsdom-global now requires jsdom v10.
[v3.00]: https://github.com/rstacruz/jsdom-global/compare/v2.1.1...v3.0.0
## [v2.1.1]

@@ -2,0 +9,0 @@ > Dec 24, 2016

6

index.js

@@ -29,4 +29,4 @@ /*

var jsdom = require('jsdom')
var document = jsdom.jsdom(html, options)
var window = document.defaultView
var document = new jsdom.JSDOM(html, options)
var window = document.window

@@ -37,3 +37,3 @@ KEYS.forEach(function (key) {

global.document = document
global.document = window.document
global.window = window

@@ -40,0 +40,0 @@ window.console = global.console

{
"name": "jsdom-global",
"version": "2.1.1",
"version": "3.0.0",
"description": "Enable DOM in Node.js",

@@ -26,6 +26,6 @@ "main": "index.js",

"devDependencies": {
"jsdom": "9.0.0",
"standard": "7.0.1",
"tape": "4.4.0"
"jsdom": "~10.0.0",
"standard": "~10.0.2",
"tape": "~4.6.3"
}
}

@@ -19,2 +19,6 @@ # jsdom-global

## Note
jsdom-global now requires jsdom v10 or above. If you need jsdom v9 and below, use the previous version (`jsdom-global@2`).
## Usage

@@ -82,3 +86,3 @@

If you prefer to use `import` rather that `require`, you might want to use `jsdom-global/register` instead. Place it on top of your other import calls.
If you prefer to use `import` rather than `require`, you might want to use `jsdom-global/register` instead. Place it on top of your other import calls.

@@ -85,0 +89,0 @@ ```js

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc